/**
 * Nexfolio Compiled Styles
 * Generated: 2026-06-04 12:28:01
 */


/* ==================================
   VARIABLES
   ================================== */

/**
 * CSS Variables (Design Tokens)
 *
 * W Korea + NY Times inspired design system
 *
 * @package Nexfolio
 * @since 1.0.0
 */

:root {
  /* ==================================
     COLORS
     ================================== */
  --color-primary: #000000;
  --color-secondary: #666666;
  --color-accent: #d4af37;
  --color-white: #ffffff;
  --color-black: #000000;
  --color-gray-100: #f5f5f5;
  --color-gray-200: #eeeeee;
  --color-gray-300: #dddddd;
  --color-gray-400: #cccccc;
  --color-gray-500: #999999;
  --color-gray-600: #666666;
  --color-gray-700: #444444;
  --color-gray-800: #222222;
  --color-border: #e0e0e0;
  --color-meta: #999999;

  /* ==================================
     TYPOGRAPHY
     ================================== */
  --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-heading: 'Georgia', 'Times New Roman', serif;

  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.875rem;   /* 14px */
  --font-size-base: 1rem;     /* 16px */
  --font-size-md: 1.125rem;   /* 18px */
  --font-size-lg: 1.25rem;    /* 20px */
  --font-size-xl: 1.5rem;     /* 24px */
  --font-size-2xl: 1.875rem;  /* 30px */
  --font-size-3xl: 2.25rem;   /* 36px */
  --font-size-4xl: 3rem;      /* 48px */
  --font-size-5xl: 3.75rem;   /* 60px */

  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --line-height-tight: 1.2;
  --line-height-base: 1.6;
  --line-height-relaxed: 1.8;

  /* ==================================
     SPACING
     ================================== */
  --spacing-xs: 0.5rem;   /* 8px */
  --spacing-sm: 1rem;     /* 16px */
  --spacing-md: 1.5rem;   /* 24px */
  --spacing-lg: 2rem;     /* 32px */
  --spacing-xl: 3rem;     /* 48px */
  --spacing-2xl: 4rem;    /* 64px */
  --spacing-3xl: 6rem;    /* 96px */
  --spacing-4xl: 8rem;    /* 128px */

  /* ==================================
     LAYOUT
     ================================== */
  --layout-max-width: 1200px;
  --layout-wide-width: 1400px;
  --layout-content-width: 800px;
  --layout-gutter: 1.5rem;

  /* ==================================
     BREAKPOINTS
     ================================== */
  --breakpoint-sm: 576px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 992px;
  --breakpoint-xl: 1200px;

  /* ==================================
     TRANSITIONS
     ================================== */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* ==================================
     SHADOWS
     ================================== */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-base: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);

  /* ==================================
     BORDER RADIUS
     ================================== */
  --radius-sm: 0.25rem;
  --radius-base: 0.5rem;
  --radius-lg: 1rem;
  --radius-full: 9999px;

  /* ==================================
     Z-INDEX
     ================================== */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;

  /* ==================================
     DARK MODE TOKENS
     ================================== */
  --dm-surface: #070817;
  --dm-surface-elevated: #09091d;
  --dm-surface-card: rgba(18, 20, 38, 0.96);
  --dm-surface-muted: rgba(43, 33, 94, 0.72);
  --dm-text-primary: #f3efff;
  --dm-text-secondary: #d7d0ef;
  --dm-text-muted: #a59cbe;
  --dm-accent: #b58cff;
  --dm-accent-strong: #d2b8ff;
  --dm-border: #33275f;
  --dm-border-strong: #6f55d8;
  --dm-text: var(--dm-text-primary);
  --dm-text-soft: var(--dm-text-secondary);
  --dm-card: var(--dm-surface-card);
  --dm-card-hover: rgba(31, 34, 64, 0.98);
  --dm-card-2: rgba(39, 42, 76, 1);
  --dm-section: rgba(24, 26, 49, 0.94);
}


/* ==================================
   RESET
   ================================== */

/**
 * CSS Reset
 *
 * @package Nexfolio
 * @since 1.0.0
 */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.6;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

ul,
ol {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}


/* ==================================
   TYPOGRAPHY
   ================================== */

/**
 * Typography
 *
 * @package Nexfolio
 * @since 1.0.0
 */

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-base);
  color: var(--color-primary);
  background-color: var(--color-white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  margin-bottom: var(--spacing-md);
  color: var(--color-primary);
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-4xl); }
h3 { font-size: var(--font-size-3xl); }
h4 { font-size: var(--font-size-2xl); }
h5 { font-size: var(--font-size-xl); }
h6 { font-size: var(--font-size-lg); }

p {
  margin-bottom: var(--spacing-md);
  line-height: var(--line-height-base);
}

a {
  color: var(--color-primary);
  text-decoration: underline;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-secondary);
}

strong, b {
  font-weight: var(--font-weight-bold);
}

em, i {
  font-style: italic;
}

blockquote {
  margin: var(--spacing-lg) 0;
  padding-left: var(--spacing-lg);
  border-left: 4px solid var(--color-accent);
  font-style: italic;
  color: var(--color-secondary);
}

code, pre {
  font-family: 'Courier New', Courier, monospace;
  background-color: var(--color-gray-100);
  padding: 0.2em 0.4em;
  border-radius: var(--radius-sm);
}

pre {
  padding: var(--spacing-md);
  overflow-x: auto;
}


/* ==================================
   GLOBAL
   ================================== */

/**
 * Global Styles
 *
 * @package Nexfolio
 * @since 1.0.0
 */

.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: clip;
}

.site-content {
  flex: 1;
  padding: var(--spacing-3xl) 0;
}

.container {
  width: 100%;
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: 0 var(--layout-gutter);
}

.container--wide {
  max-width: var(--layout-wide-width);
}

.container--narrow {
  max-width: var(--layout-content-width);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.skip-link {
  position: absolute;
  top: -9999px;
  left: 0;
  z-index: var(--z-tooltip);
  padding: var(--spacing-sm) var(--spacing-md);
  background-color: var(--color-primary);
  color: var(--color-white);
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

img,
svg,
video,
canvas,
iframe {
  max-width: 100%;
  height: auto;
}

table {
  max-width: 100%;
}

pre,
code {
  max-width: 100%;
}

.site-main,
.content-with-sidebar,
.main-content-area,
.single-post,
.single-post__container,
.single-post__content,
.page-content,
.page-entry-content,
.entry-content {
  min-width: 0;
}

.single-post__content,
.page-entry-content,
.entry-content {
  overflow-wrap: anywhere;
}

body.dark-mode,
html[data-theme="dark"] body {
  background-color: var(--dm-surface);
  color: var(--dm-text-secondary);
}

body.dark-mode,
html[data-theme="dark"] {
  --color-primary: var(--dm-text-primary);
  --color-secondary: var(--dm-text-secondary);
  --color-accent: var(--dm-accent);
  --color-border: var(--dm-border);
  --color-meta: var(--dm-text-muted);
}

body.dark-mode .site-content,
html[data-theme="dark"] .site-content {
  background: transparent;
}


/* ==================================
   BUTTONS
   ================================== */

/**
 * Button Component
 */

.button,
.wp-block-button__link {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  text-align: center;
  text-decoration: none;
  background-color: var(--color-primary);
  color: var(--color-white);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  cursor: pointer;
}

.button:hover {
  background-color: var(--color-white);
  color: var(--color-primary);
}

.button--secondary {
  background-color: transparent;
  color: var(--color-primary);
}

.button--secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* ==================================
   Extended Buttons
   ================================== */

.nexfolio-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 48px;
  padding: 0.85rem 1.4rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 999px;
  border: 0;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
  margin: 0.5rem 0.5rem 0.5rem 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.nexfolio-action-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.nexfolio-action-button:hover::before {
  left: 100%;
}

.nexfolio-action-button:hover {
  transform: translateY(-3px) scale(1.02);
}

.nexfolio-action-button__icon,
.nexfolio-action-button svg {
  flex-shrink: 0;
}

.nexfolio-action-button__text {
  display: inline-block;
  white-space: nowrap;
}

.nexfolio-action-button--small {
  padding: 0.5rem 1.2rem;
  font-size: 0.875rem;
}

.nexfolio-action-button--medium {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.nexfolio-action-button--large {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

.nexfolio-action-button--primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.nexfolio-action-button--primary:hover {
  background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.nexfolio-action-button--secondary {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
}

.nexfolio-action-button--secondary:hover {
  background: linear-gradient(135deg, #e080eb 0%, #e04a5f 100%);
  box-shadow: 0 8px 25px rgba(245, 87, 108, 0.6);
}

.nexfolio-action-button--success {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(56, 239, 125, 0.4);
}

.nexfolio-action-button--success:hover {
  background: linear-gradient(135deg, #0e8077 0%, #2dd66b 100%);
  box-shadow: 0 8px 25px rgba(56, 239, 125, 0.6);
}

.nexfolio-action-button--warning {
  background: linear-gradient(135deg, #f2994a 0%, #f2c94c 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(242, 201, 76, 0.4);
}

.nexfolio-action-button--warning:hover {
  background: linear-gradient(135deg, #e08538 0%, #ddb93a 100%);
  box-shadow: 0 8px 25px rgba(242, 201, 76, 0.6);
}

.nexfolio-action-button--danger {
  background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(235, 51, 73, 0.4);
}

.nexfolio-action-button--danger:hover {
  background: linear-gradient(135deg, #d02b3f 0%, #dc4f38 100%);
  box-shadow: 0 8px 25px rgba(235, 51, 73, 0.6);
}

.nexfolio-action-button--download {
  background: linear-gradient(135deg, #00b09b 0%, #96c93d 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 176, 155, 0.4);
}

.nexfolio-action-button--download:hover {
  background: linear-gradient(135deg, #009187 0%, #7eb02f 100%);
  box-shadow: 0 8px 25px rgba(0, 176, 155, 0.6);
}

.nexfolio-action-button--external {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
}

.nexfolio-action-button--external:hover {
  background: linear-gradient(135deg, #3e8bde 0%, #00d0e0 100%);
  box-shadow: 0 8px 25px rgba(79, 172, 254, 0.6);
}

.nexfolio-action-button:hover .nexfolio-action-button__icon {
  animation: nexfolio-button-bounce 0.5s ease;
}

@keyframes nexfolio-button-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.post-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.nexfolio-button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.nexfolio-button-group .nexfolio-action-button {
  margin: 0;
}

.post-like-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 42px;
  padding: 0.7rem 1.1rem;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #ffffff;
  color: #111827;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.post-like-button:hover {
  transform: translateY(-1px);
}

.post-like-button.is-liked {
  background: #111827;
  border-color: #111827;
  color: #ffffff;
}

.social-share {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.social-share__label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #111827;
}

.social-share__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 42px;
  padding: 0.7rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #ffffff;
  color: #111827;
  text-decoration: none;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.social-btn:hover {
  transform: translateY(-1px);
  background: #111827;
  border-color: #111827;
  color: #ffffff;
}

.social-btn.copied {
  background: #111827;
  border-color: #111827;
  color: #ffffff;
}

body.dark-mode .nexfolio-action-button,
html[data-theme="dark"] .nexfolio-action-button {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

body.dark-mode .post-like-button,
html[data-theme="dark"] .post-like-button,
body.dark-mode .social-btn,
html[data-theme="dark"] .social-btn {
  background: rgba(18, 20, 38, 0.96);
  border-color: #3b3f60;
  color: #f3efff;
}

body.dark-mode .post-like-button.is-liked,
html[data-theme="dark"] .post-like-button.is-liked,
body.dark-mode .social-btn:hover,
body.dark-mode .social-btn.copied,
html[data-theme="dark"] .social-btn:hover,
html[data-theme="dark"] .social-btn.copied {
  background: #f3efff;
  border-color: #f3efff;
  color: #09091d;
}

body.dark-mode .social-share__label,
html[data-theme="dark"] .social-share__label {
  color: #FFFFFF;
}

.nexfolio-download-box {
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 25px;
  margin: 30px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.nexfolio-download-box__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 10px;
}

.nexfolio-download-box__meta {
  flex: 1;
  min-width: 200px;
}

.nexfolio-download-box__title {
  margin: 0;
  font-size: 18px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nexfolio-download-box__description {
  margin: 8px 0 0;
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

.nexfolio-download-box__size {
  background: #e9ecef;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  color: #666;
  font-weight: 500;
}

.nexfolio-download-box__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

body.dark-mode .nexfolio-download-box,
html[data-theme="dark"] .nexfolio-download-box {
  background: rgba(18, 20, 38, 0.96);
  border-color: #3b3f60;
}

body.dark-mode .nexfolio-download-box__title,
html[data-theme="dark"] .nexfolio-download-box__title {
  color: #f3efff;
}

body.dark-mode .nexfolio-download-box__description,
body.dark-mode .nexfolio-download-box__size,
html[data-theme="dark"] .nexfolio-download-box__description,
html[data-theme="dark"] .nexfolio-download-box__size {
  color: #b8b7c9;
}

body.dark-mode .nexfolio-download-box__size,
html[data-theme="dark"] .nexfolio-download-box__size {
  background: #1e223c;
}

@media (max-width: 768px) {
  .nexfolio-action-button {
    width: 100%;
    justify-content: center;
  }

  .nexfolio-button-group {
    flex-direction: column;
  }
}

.nexfolio-url-button-wrapper {
  margin: 20px 0;
  text-align: center;
}

.nexfolio-url-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.nexfolio-url-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s;
}

.nexfolio-url-button:hover::before {
  left: 100%;
}

.nexfolio-url-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.nexfolio-url-button:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.nexfolio-url-btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #fff;
}

.nexfolio-url-btn-primary:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #fff;
}

.nexfolio-url-btn-secondary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
}

.nexfolio-url-btn-secondary:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #fff;
}

.nexfolio-url-btn-outline {
  background: #fff;
  color: #6366f1;
  border: 2px solid #6366f1;
}

.nexfolio-url-btn-outline:hover {
  background: #6366f1;
  color: #fff;
}

.nexfolio-url-btn-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nexfolio-url-btn-icon svg {
  width: 20px;
  height: 20px;
}

.nexfolio-url-btn-text {
  position: relative;
  z-index: 1;
}

.nexfolio-url-btn-arrow {
  flex-shrink: 0;
  transition: transform 0.3s;
}

.nexfolio-url-button:hover .nexfolio-url-btn-arrow {
  transform: translate(3px, -3px);
}

body.dark-mode .nexfolio-url-btn-outline,
html[data-theme="dark"] .nexfolio-url-btn-outline {
  background: var(--dm-surface-card);
  border-color: var(--dm-accent);
  color: var(--dm-text-primary);
}

body.dark-mode .nexfolio-url-btn-outline:hover,
html[data-theme="dark"] .nexfolio-url-btn-outline:hover {
  background: var(--dm-accent);
  color: #09091d;
}

@media (max-width: 768px) {
  .nexfolio-url-button {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 15px;
  }
}


/* ==================================
   CARDS
   ================================== */

/**
 * Card Components - Additional Styles
 *
 * Search results and generic cards
 *
 * @package Nexfolio
 * @since 1.0.0
 */

/* Search Result Card */
.search-result {
  padding: var(--spacing-lg) 0;
  border-bottom: 1px solid var(--color-border);
}

.search-result__header {
  margin-bottom: var(--spacing-sm);
}

.search-result__title {
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-xs);
}

.search-result__title a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.search-result__title a:hover {
  color: var(--color-accent);
}

.search-result__meta {
  display: flex;
  gap: var(--spacing-sm);
  font-size: var(--font-size-xs);
  color: var(--color-meta);
}

.search-result__type {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.search-result__excerpt {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-base);
  color: var(--color-secondary);
  margin-bottom: var(--spacing-sm);
}

.search-result__link {
  font-size: var(--font-size-sm);
  color: var(--color-primary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color var(--transition-fast);
}

.search-result__link:hover {
  color: var(--color-accent);
}

/* Page Content */
.page-content,
.page-entry-content {
  font-size: var(--font-size-md);
  line-height: var(--line-height-relaxed);
}

.page-content > * + *,
.page-entry-content > * + * {
  margin-top: var(--spacing-lg);
}

/* 404 Error Page */
.error-404 {
  text-align: center;
  padding: var(--spacing-4xl) 0;
}

.error-404 .page-title {
  font-size: var(--font-size-5xl);
  margin-bottom: var(--spacing-lg);
}

.error-404 .page-content {
  max-width: 600px;
  margin: 0 auto;
}

.search-form-wrapper {
  max-width: 400px;
  margin: var(--spacing-2xl) auto;
}

.404-links {
  margin-top: var(--spacing-2xl);
}

.404-links h2 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-md);
}

.404-links ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.404-links a {
  color: var(--color-primary);
  text-decoration: none;
  font-size: var(--font-size-base);
  transition: color var(--transition-fast);
}

.404-links a:hover {
  color: var(--color-accent);
}


/* ==================================
   FORMS
   ================================== */

/**
 * Form Components
 *
 * Form inputs, labels, and layouts
 *
 * @package Nexfolio
 * @since 1.0.0
 */

/* ==================================
   Form Groups
   ================================== */

.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-group label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-primary);
}

/* ==================================
   Form Controls
   ================================== */

.form-control {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: var(--font-size-base);
  font-family: var(--font-primary);
  color: var(--color-primary);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  appearance: none;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-control::placeholder {
  color: var(--color-meta);
}

/* Textarea */
textarea.form-control {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

/* Select */
select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--spacing-md) center;
  background-size: 12px;
  padding-right: calc(var(--spacing-md) + 24px);
}

/* ==================================
   Search Form
   ================================== */

.search-form {
  display: flex;
  gap: var(--spacing-sm);
}

.search-form input[type="search"] {
  flex: 1;
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: var(--font-size-base);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.search-form button {
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: var(--color-white);
  background-color: var(--color-primary);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.search-form button:hover {
  background-color: var(--color-accent);
}

/* ==================================
   Contact Form Specific
   ================================== */

.nexfolio-contact-form {
  max-width: 100%;
}

.nexfolio-contact-form .form-group:last-of-type {
  margin-bottom: 0;
}

/* ==================================
   Form Validation States
   ================================== */

.form-control:invalid:not(:placeholder-shown) {
  border-color: #dc3545;
}

.form-control:valid:not(:placeholder-shown) {
  border-color: #28a745;
}

/* ==================================
   Responsive
   ================================== */

@media (max-width: 576px) {
  .form-control {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: var(--font-size-sm);
  }

  textarea.form-control {
    min-height: 100px;
  }
}


/* ==================================
   NAVIGATION
   ================================== */

/* Placeholder for _navigation.css */


/* ==================================
   PAGINATION
   ================================== */

/**
 * Pagination Component
 *
 * @package Nexfolio
 * @since 1.4.0
 */

/* ==================================
   PAGINATION CONTAINER
   ================================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-xs);
    margin: var(--spacing-2xl) 0;
    padding: var(--spacing-lg) 0;
}

/* ==================================
   PAGINATION LINKS
   ================================== */

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-gray-700);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all var(--transition-base);
}

.pagination .page-numbers:hover {
    color: var(--color-primary);
    background: var(--color-gray-50);
    border-color: var(--color-primary);
}

/* Current page */
.pagination .page-numbers.current {
    color: var(--color-white);
    background: var(--color-primary);
    border-color: var(--color-primary);
    cursor: default;
}

/* Dots */
.pagination .page-numbers.dots {
    border: none;
    background: transparent;
    cursor: default;
}

.pagination .page-numbers.dots:hover {
    background: transparent;
    border: none;
}

/* Prev/Next buttons */
.pagination .prev,
.pagination .next {
    font-weight: var(--font-weight-semibold);
}

.pagination .prev.page-numbers,
.pagination .next.page-numbers {
    padding: 0 16px;
}

/* ==================================
   RESPONSIVE
   ================================== */

@media (max-width: 576px) {
    .pagination {
        gap: var(--spacing-xxs);
    }

    .pagination .page-numbers {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: var(--font-size-xs);
    }

    /* Hide some numbers on mobile */
    .pagination .page-numbers:not(.current):not(.prev):not(.next):not(.dots) {
        display: none;
    }

    /* Show adjacent pages on mobile */
    .pagination .page-numbers.current + .page-numbers,
    .pagination .page-numbers.current - .page-numbers {
        display: inline-flex;
    }
}

/* ==================================
   ARCHIVE PAGINATION (posts_nav_link)
   ================================== */

.navigation.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-sm);
    margin: var(--spacing-2xl) 0;
}

.navigation.pagination .nav-links {
    display: flex;
    gap: var(--spacing-xs);
    align-items: center;
}

.navigation.pagination a,
.navigation.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-gray-700);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all var(--transition-base);
}

.navigation.pagination a:hover {
    color: var(--color-primary);
    background: var(--color-gray-50);
    border-color: var(--color-primary);
}

.navigation.pagination .current {
    color: var(--color-white);
    background: var(--color-primary);
    border-color: var(--color-primary);
}


/* ==================================
   WIDGETS
   ================================== */

/**
 * Widget Components
 *
 * Sidebar widgets and sidebar layout
 *
 * @package Nexfolio
 * @since 1.0.4
 */

/* ==================================
   Sidebar Layout — Swiss Editorial Design
   Matches: tools-hub monochrome / Helvetica feel
   ================================== */

.sidebar-area,
.sidebar-left-area,
.sidebar-right-area {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.content-with-sidebar {
  display: flex;
  flex-wrap: nowrap;
  gap: 4rem;
  max-width: var(--layout-max-width, 1200px);
  margin: 4rem auto;
  padding: 0 var(--layout-gutter, 1.5rem);
  align-items: flex-start;
  width: 100%;
  box-sizing: border-box;
}

.main-content-area {
  flex: 1;
  min-width: 0;
}

.sidebar-area {
  width: 320px;
  flex-shrink: 0;
  position: sticky;
  top: 120px;
  align-self: flex-start;
}

/* Layout Variants */
.layout-left-sidebar .main-content-area {
  order: 2;
}
.layout-left-sidebar .sidebar-area {
  order: 1;
}

.layout-right-sidebar .main-content-area {
  order: 1;
}
.layout-right-sidebar .sidebar-area {
  order: 2;
}

.layout-both-sidebars .main-content-area {
  order: 2;
  flex: 1;
  min-width: 0;
}
.layout-both-sidebars .sidebar-left-area {
  order: 1;
  width: 250px;
  flex-shrink: 0;
  position: sticky;
  top: 120px;
}
.layout-both-sidebars .sidebar-right-area {
  order: 3;
  width: 250px;
  flex-shrink: 0;
  position: sticky;
  top: 120px;
}

@media (max-width: 900px) {
  .content-with-sidebar {
    flex-direction: column;
  }
  .sidebar-area, .sidebar-left-area, .sidebar-right-area {
    width: 100%;
    position: static;
    order: 3 !important;
  }
  .main-content-area {
    order: 1 !important;
  }
}

/* ==================================
   Widget Base Styles — Swiss Editorial
   ================================== */

.sidebar-inner .widget {
  background: transparent;
  border: none;
  border-top: 1px solid #000;
  padding: 2rem 0;
  margin-bottom: 0;
  border-radius: 0;
  box-shadow: none;
}

.sidebar-inner .widget-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #888;
  border-bottom: none;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.widget:last-child {
  margin-bottom: 0;
}

/* Widget Links — Swiss Editorial */
.sidebar-inner .widget a {
  color: #111;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.5;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.sidebar-inner .widget a:hover {
  border-bottom-color: #111;
}

/* Widget Lists */
.sidebar-inner .widget_recent_entries ul,
.sidebar-inner .widget_categories ul,
.sidebar-inner .widget_pages ul,
.sidebar-inner .widget_nav_menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-inner .widget_recent_entries li,
.sidebar-inner .widget_categories li,
.sidebar-inner .widget_pages li,
.sidebar-inner .widget_nav_menu li {
  padding: 0.6rem 0;
  border-bottom: 1px solid #e8e8e8;
  font-size: 0.9rem;
  line-height: 1.4;
}
.sidebar-inner .widget_recent_entries li:last-child,
.sidebar-inner .widget_categories li:last-child,
.sidebar-inner .widget_pages li:last-child,
.sidebar-inner .widget_nav_menu li:last-child {
  border-bottom: none;
}

/* Post Date */
.sidebar-inner .post-date {
  display: block;
  font-size: 0.75rem;
  color: #888;
  font-family: monospace;
  margin-top: 0.2rem;
}

/* Search Widget */
.sidebar-inner .widget_search .search-form {
  display: flex;
  border: 1px solid #000;
}
.sidebar-inner .widget_search .search-form input[type="search"] {
  flex: 1;
  border: none;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.9rem;
  background: transparent;
  outline: none;
}
.sidebar-inner .widget_search .search-form button,
.sidebar-inner .widget_search .search-form input[type="submit"] {
  border: none;
  background: #000;
  color: #fff;
  padding: 0.75rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.2s ease;
}
.sidebar-inner .widget_search .search-form button:hover,
.sidebar-inner .widget_search .search-form input[type="submit"]:hover {
  background: #444;
}

/* Tag Cloud */
.sidebar-inner .widget_tag_cloud .tagcloud a {
  display: inline-block;
  border: 1px solid #000;
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  margin: 0.2rem 0.2rem 0 0;
  color: #111;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.sidebar-inner .widget_tag_cloud .tagcloud a:hover {
  background: #000;
  color: #fff;
}

/* Fallback Widget */
.sidebar-inner .widget p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

/* ==================================
   Nexfolio Popular Tools Widget
   ================================== */

.nexfolio-popular-tools-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nexfolio-popular-tools-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

.nexfolio-popular-tools-list .tool-rank {
  font-size: 11px;
  font-weight: 700;
  color: #9ca3af;
  min-width: 18px;
  font-family: monospace;
}

.nexfolio-popular-tools-list .tool-icon {
  width: 14px;
  color: #555;
  flex-shrink: 0;
  text-align: center;
}

.nexfolio-popular-tools-list .tool-icon span {
  font-size: 12px;
}

.nexfolio-popular-tools-list a {
  font-size: 0.875rem;
  font-weight: 600;
  color: #111;
  text-decoration: none;
  line-height: 1.3;
  flex: 1;
}

/* ==================================
   Nexfolio Ad Slot Widget
   ================================== */

.nexfolio-ad-slot-widget {
  text-align: center;
}

.nexfolio-ad-slot-widget .ad-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 6px;
  font-family: sans-serif;
}

/* ==================================
   Nexfolio Recent Guides Widget
   ================================== */

.nexfolio-recent-guides-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nexfolio-recent-guides-list li {
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

.nexfolio-recent-guides-list a {
  font-size: 0.875rem;
  font-weight: 600;
  color: #111;
  text-decoration: none;
  display: block;
  line-height: 1.4;
  margin-bottom: 3px;
}

.nexfolio-recent-guides-list .guide-date {
  font-size: 11px;
  color: #9ca3af;
  font-family: monospace;
}

/* ==================================
   Category Widget
   ================================== */

.category-widget-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-widget-list li {
  margin-bottom: var(--spacing-xs);
}

.category-widget-list li:last-child {
  margin-bottom: 0;
}

.category-widget-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-xs) 0;
  color: var(--color-primary);
  text-decoration: none;
  font-size: var(--font-size-base);
  transition: color var(--transition-fast);
}

.category-widget-list a:hover {
  color: var(--color-accent);
}

.category-widget-list .count {
  font-size: var(--font-size-xs);
  color: var(--color-meta);
  font-weight: var(--font-weight-normal);
}

/* ==================================
   Popular Posts Widget
   ================================== */

.popular-posts-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.popular-posts-list li {
  padding: var(--spacing-xs) 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.popular-posts-list li:first-child {
  padding-top: 0;
}

.popular-posts-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.popular-posts-list a {
  display: block;
  color: var(--color-primary);
  text-decoration: none;
  font-size: var(--font-size-base);
  line-height: 1.6;
  transition: color var(--transition-fast);
  margin-bottom: var(--spacing-xs);
}

.popular-posts-list a:hover {
  color: var(--color-accent);
}

.popular-posts-list .post-date {
  font-size: var(--font-size-xs);
  color: var(--color-meta);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==================================
   Search Widget
   ================================== */

.widget-search .search-form {
  margin: 0;
}

.widget-search input[type="search"] {
  width: 100%;
  padding: var(--spacing-sm) 0;
  font-size: var(--font-size-sm);
  border: none;
  border-bottom: 1px solid var(--color-border);
  border-radius: 0;
  background-color: transparent;
  transition: border-color var(--transition-fast);
}

.widget-search input[type="search"]:focus {
  outline: none;
  border-bottom-color: var(--color-primary);
}

.widget-search button {
  width: 100%;
  margin-top: var(--spacing-md);
  padding: var(--spacing-sm) 0;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  background-color: transparent;
  border: 1px solid var(--color-primary);
  border-radius: 0;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.widget-search button:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* ==================================
   Post List Item (Latest Posts)
   ================================== */

.post-list-item {
  display: flex;
  gap: var(--spacing-md);
  padding: var(--spacing-md) 0;
  border-bottom: 1px solid var(--color-border);
}

.post-list-item:first-child {
  padding-top: 0;
}

.post-list-item:last-child {
  border-bottom: none;
}

.post-list-item__thumbnail {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.post-list-item__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.post-list-item__thumbnail a:hover img {
  transform: scale(1.05);
}

.post-list-item__content {
  flex: 1;
  min-width: 0;
}

.post-list-item__title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  margin: 0 0 var(--spacing-xs);
  line-height: 1.4;
}

.post-list-item__title a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.post-list-item__title a:hover {
  color: var(--color-accent);
}

.post-list-item__category {
  margin-top: var(--spacing-xs);
}

.post-list-item__category a {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  color: #dc3545;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: opacity var(--transition-fast);
}

.post-list-item__category a:hover {
  opacity: 0.8;
}

/* ==================================
   Responsive Design
   ================================== */

@media (max-width: 1024px) {
  .content-with-sidebar {
    grid-template-columns: 1fr 280px;
    gap: var(--spacing-xl);
  }

  .sidebar-area {
    top: var(--spacing-lg);
  }
}

@media (max-width: 768px) {
  .content-with-sidebar {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }

  .sidebar-area {
    position: relative;
    top: 0;
  }

  .widget {
    padding: var(--spacing-md);
  }

  .post-list-item__thumbnail {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 576px) {
  .content-with-sidebar {
    padding: var(--spacing-lg) 0;
  }

  .widget {
    padding: var(--spacing-sm) var(--spacing-md);
    margin-bottom: var(--spacing-lg);
  }

  .widget-title {
    font-size: var(--font-size-base);
  }

  .post-list-item {
    gap: var(--spacing-sm);
  }

  .post-list-item__thumbnail {
    width: 50px;
    height: 50px;
  }

  .post-list-item__title {
    font-size: var(--font-size-sm);
  }
}

/* ==================================
   Dark Mode Sidebar Widgets
   ================================== */

body.dark-mode .sidebar-inner .widget,
html[data-theme="dark"] .sidebar-inner .widget {
  border-top-color: #2a2d4a;
}

body.dark-mode .sidebar-inner .widget-title,
html[data-theme="dark"] .sidebar-inner .widget-title {
  color: #FFFFFF;
}

body.dark-mode .sidebar-inner .widget a,
html[data-theme="dark"] .sidebar-inner .widget a,
body.dark-mode .nexfolio-popular-tools-list a,
html[data-theme="dark"] .nexfolio-popular-tools-list a,
body.dark-mode .nexfolio-recent-guides-list a,
html[data-theme="dark"] .nexfolio-recent-guides-list a,
body.dark-mode .post-list-item__title a,
html[data-theme="dark"] .post-list-item__title a {
  color: #FFFFFF;
}

body.dark-mode .sidebar-inner .widget a:hover,
html[data-theme="dark"] .sidebar-inner .widget a:hover {
  border-bottom-color: #f3efff;
}

body.dark-mode .sidebar-inner .widget p,
html[data-theme="dark"] .sidebar-inner .widget p {
  color: #F0F0F0;
}

body.dark-mode .sidebar-inner .widget_recent_entries li,
body.dark-mode .sidebar-inner .widget_categories li,
body.dark-mode .sidebar-inner .widget_pages li,
body.dark-mode .sidebar-inner .widget_nav_menu li,
html[data-theme="dark"] .sidebar-inner .widget_recent_entries li,
html[data-theme="dark"] .sidebar-inner .widget_categories li,
html[data-theme="dark"] .sidebar-inner .widget_pages li,
html[data-theme="dark"] .sidebar-inner .widget_nav_menu li,
body.dark-mode .nexfolio-popular-tools-list li,
html[data-theme="dark"] .nexfolio-popular-tools-list li,
body.dark-mode .nexfolio-recent-guides-list li,
html[data-theme="dark"] .nexfolio-recent-guides-list li,
body.dark-mode .popular-posts-list li,
html[data-theme="dark"] .popular-posts-list li,
body.dark-mode .post-list-item,
html[data-theme="dark"] .post-list-item {
  border-bottom-color: #2a2d4a;
}

body.dark-mode .sidebar-inner .post-date,
html[data-theme="dark"] .sidebar-inner .post-date,
body.dark-mode .nexfolio-popular-tools-list .tool-rank,
html[data-theme="dark"] .nexfolio-popular-tools-list .tool-rank,
body.dark-mode .nexfolio-recent-guides-list .guide-date,
html[data-theme="dark"] .nexfolio-recent-guides-list .guide-date,
body.dark-mode .popular-posts-list .post-date,
html[data-theme="dark"] .popular-posts-list .post-date,
body.dark-mode .nexfolio-ad-slot-widget .ad-label,
html[data-theme="dark"] .nexfolio-ad-slot-widget .ad-label {
  color: #E0E0E0;
}

body.dark-mode .nexfolio-popular-tools-list .tool-icon,
html[data-theme="dark"] .nexfolio-popular-tools-list .tool-icon {
  color: #F0F0F0;
}

body.dark-mode .sidebar-inner .widget_tag_cloud .tagcloud a,
html[data-theme="dark"] .sidebar-inner .widget_tag_cloud .tagcloud a {
  border-color: #3b3f60;
  color: #F0F0F0;
  background: rgba(18, 20, 38, 0.92);
}

body.dark-mode .sidebar-inner .widget_tag_cloud .tagcloud a:hover,
html[data-theme="dark"] .sidebar-inner .widget_tag_cloud .tagcloud a:hover {
  background: #f3efff;
  border-color: #f3efff;
  color: #09091d;
}

body.dark-mode .sidebar-inner .widget_search .search-form,
html[data-theme="dark"] .sidebar-inner .widget_search .search-form {
  border-color: #3b3f60;
  background: rgba(18, 20, 38, 0.96);
}

body.dark-mode .sidebar-inner .widget_search .search-form input[type="search"],
html[data-theme="dark"] .sidebar-inner .widget_search .search-form input[type="search"],
body.dark-mode .widget-search input[type="search"],
html[data-theme="dark"] .widget-search input[type="search"] {
  color: #FFFFFF;
}

body.dark-mode .sidebar-inner .widget_search .search-form input[type="search"]::placeholder,
html[data-theme="dark"] .sidebar-inner .widget_search .search-form input[type="search"]::placeholder,
body.dark-mode .widget-search input[type="search"]::placeholder,
html[data-theme="dark"] .widget-search input[type="search"]::placeholder {
  color: #E0E0E0;
}

body.dark-mode .sidebar-inner .widget_search .search-form button,
body.dark-mode .sidebar-inner .widget_search .search-form input[type="submit"],
html[data-theme="dark"] .sidebar-inner .widget_search .search-form button,
html[data-theme="dark"] .sidebar-inner .widget_search .search-form input[type="submit"] {
  background: #f3efff;
  color: #09091d;
}

body.dark-mode .sidebar-inner .widget_search .search-form button:hover,
body.dark-mode .sidebar-inner .widget_search .search-form input[type="submit"]:hover,
html[data-theme="dark"] .sidebar-inner .widget_search .search-form button:hover,
html[data-theme="dark"] .sidebar-inner .widget_search .search-form input[type="submit"]:hover {
  background: #d9d7e8;
}


/* ==================================
   HEADER
   ================================== */

/**
 * Header Layout - Unique Design
 *
 * Minimalist luxury header with clean navigation
 *
 * @package Nexfolio
 * @since 1.0.0
 */

/* Editorial & Swiss Style — Inter Font Override */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #fcfcfc;
  color: #111;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background-color: #fcfcfc;
  border-bottom: 1px solid #000;
  padding: 1rem 0;
  transition: all var(--transition-base);
}

.site-header__container {
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: var(--spacing-lg) var(--layout-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-xl);
}

/* Site Branding */
.site-branding {
  flex-shrink: 0;
}

.site-title {
  margin: 0;
  font-size: var(--font-size-2xl);
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.02em;
}

.site-title a {
  color: #000;
  font-weight: 700;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  font-size: 1.5rem;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.site-title a:hover {
  color: var(--color-accent);
}

.site-description {
  margin: 0;
  font-size: var(--font-size-xs);
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Primary Navigation */
.primary-navigation {
  flex: 1;
  display: flex;
  justify-content: center;
}

.primary-menu {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-menu li {
  position: relative;
}

.primary-menu a {
  display: block;
  padding: var(--spacing-xs) 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #000;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color var(--transition-fast);
  position: relative;
}

.primary-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width var(--transition-base);
}

.primary-menu a:hover {
  color: var(--color-accent);
}

.primary-menu a:hover::after,
.primary-menu .current-menu-item a::after {
  width: 100%;
}

/* Submenu */
.primary-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-base);
  list-style: none;
  padding: var(--spacing-sm) 0;
  margin: 0;
}

.primary-menu li:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.primary-menu .sub-menu a {
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: var(--font-size-sm);
  text-transform: none;
}

.primary-menu .sub-menu a::after {
  display: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: var(--spacing-sm);
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-toggle__line {
  width: 24px;
  height: 2px;
  background-color: var(--color-primary);
  transition: all var(--transition-base);
}

.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-toggle__line:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-toggle__line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-toggle__line:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* Responsive */
@media (max-width: 992px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .primary-navigation {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--color-white);
    box-shadow: var(--shadow-xl);
    padding: var(--spacing-2xl) var(--spacing-xl);
    transition: right var(--transition-base);
    overflow-y: auto;
  }

  .primary-navigation.active {
    right: 0;
  }

  .primary-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-md);
  }

  .primary-menu a {
    font-size: var(--font-size-base);
  }

  .primary-menu .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--color-border);
    margin-left: var(--spacing-md);
    margin-top: var(--spacing-sm);
  }
}

@media (max-width: 576px) {
  .site-header__container {
    padding: var(--spacing-md) var(--layout-gutter);
  }

  .site-title {
    font-size: var(--font-size-xl);
  }

  .site-description {
    display: none;
  }

  .category-bar {
    display: none;
  }
}

/* Category Bar */
.category-bar {
  background-color: var(--color-gray-100);
  border-bottom: 1px solid var(--color-border);
  padding: var(--spacing-sm) 0;
}

.category-bar__container {
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: 0 var(--layout-gutter);
}

.category-navigation {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.category-navigation::-webkit-scrollbar {
  height: 4px;
}

.category-navigation::-webkit-scrollbar-track {
  background: var(--color-gray-200);
}

.category-navigation::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: var(--radius-sm);
}

.category-menu {
  display: flex;
  gap: var(--spacing-lg);
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.category-menu li {
  flex-shrink: 0;
}

.category-menu a {
  display: block;
  padding: var(--spacing-xs) var(--spacing-sm);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-secondary);
  text-decoration: none;
  text-transform: capitalize;
  transition: all var(--transition-fast);
  position: relative;
}

.category-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width var(--transition-base);
}

.category-menu a:hover {
  color: var(--color-primary);
}

.category-menu a:hover::after {
  width: 100%;
}

.category-menu .current-cat a {
  color: var(--color-primary);
  font-weight: var(--font-weight-bold);
}

.category-menu .current-cat a::after {
  width: 100%;
}

/* ==============================================
   DARK MODE - 다크모드 스타일
   ============================================== */

html[data-theme="dark"] body {
  background-color: #070817;
  color: #F0F0F0;
}

html[data-theme="dark"] .site-header {
  background-color: #09091D;
  border-bottom-color: #2a2d4a;
}

html[data-theme="dark"] .site-title a,
html[data-theme="dark"] .primary-navigation a,
html[data-theme="dark"] .primary-menu a,
html[data-theme="dark"] .theme-toggle {
  color: #FFFFFF;
}

html[data-theme="dark"] .site-description {
  color: #F0F0F0;
}

html[data-theme="dark"] .primary-navigation {
  background-color: #09091D;
}

html[data-theme="dark"] .primary-menu .sub-menu {
  background-color: #121426;
  border-color: #33275f;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .primary-menu .sub-menu a {
  color: #F3EFFF;
}

html[data-theme="dark"] .primary-menu .sub-menu a:hover {
  color: #D2B8FF;
  background: rgba(111, 85, 216, 0.14);
}

html[data-theme="dark"] .primary-menu .sub-menu a::after {
  display: none;
}


/* ==================================
   FOOTER
   ================================== */

/**
 * Footer Layout - W Korea Style
 *
 * Clean minimal footer with link sections and copyright
 *
 * @package Nexfolio
 * @since 1.0.0
 */

.site-footer {
  background-color: var(--color-white);
  border-top: 1px solid var(--color-border);
  margin-top: var(--spacing-4xl);
}

.site-footer__inner {
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: 0 var(--layout-gutter) var(--spacing-lg);
}

.site-footer__widgets {
  padding: var(--spacing-2xl) 0 var(--spacing-lg);
  display: grid;
  gap: var(--spacing-xl);
}

.site-footer__widgets > *:last-child {
  margin-bottom: 0;
}

.site-footer__widgets .widget {
  margin: 0;
  padding: var(--spacing-lg) 0 0;
  border: 0;
  border-top: 1px solid var(--color-border);
  background: transparent;
  box-shadow: none;
}

.site-footer__widgets .widget:first-child {
  padding-top: 0;
  border-top: 0;
}

.site-footer__widgets .widget-title,
.site-footer__widgets h2,
.site-footer__widgets h3 {
  margin: 0 0 var(--spacing-sm);
  font-size: var(--font-size-xs);
  font-family: inherit;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.site-footer__widgets p,
.site-footer__widgets li,
.site-footer__widgets span,
.site-footer__widgets strong {
  color: var(--color-secondary);
  font-size: var(--font-size-sm);
  line-height: 1.7;
}

.site-footer__widgets ul,
.site-footer__widgets ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__widgets li + li {
  margin-top: 10px;
}

.site-footer__widgets a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

.site-footer__widgets a:hover {
  color: var(--color-secondary);
  opacity: 1;
}

.site-footer__widgets .search-form {
  display: flex;
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.site-footer__widgets .search-form input[type="search"] {
  flex: 1;
  border: 0;
  padding: 0.85rem 1rem;
  background: transparent;
  color: var(--color-primary);
}

.site-footer__widgets .search-form button,
.site-footer__widgets .search-form input[type="submit"] {
  border: 0;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0.85rem 1rem;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Footer Widgets */
.footer-widgets {
  padding: var(--spacing-3xl) 0;
  background-color: var(--color-gray-100);
}

.footer-widgets__container {
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: 0 var(--layout-gutter);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-2xl);
}

.footer-widget-area {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.footer-widget-area .widget-title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--spacing-md);
  color: var(--color-primary);
}

.footer-widget-area ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.footer-widget-area a {
  font-size: var(--font-size-sm);
  color: var(--color-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-widget-area a:hover {
  color: var(--color-primary);
}

/* Site Info */
.site-info {
  padding: var(--spacing-lg) 0;
  background-color: var(--color-white);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-md);
  border-top: 1px solid var(--color-border);
}

.site-info a {
  color: var(--color-secondary);
  text-decoration: none;
}

.site-info a:hover {
  color: var(--color-primary);
}

.site-footer__trust-links {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: var(--spacing-lg);
  align-items: start;
  padding: var(--spacing-xl) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.site-footer__trust-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.site-footer__trust-kicker {
  margin: 0;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.site-footer__trust-note {
  margin: 0;
  font-size: var(--font-size-sm);
  line-height: 1.65;
  color: var(--color-secondary);
}

.site-footer__trust-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer__trust-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-gray-100);
  color: var(--color-primary);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.site-footer__trust-link:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-1px);
}

.site-info__container {
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: 0 var(--layout-gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-lg);
}

.copyright {
  font-size: var(--font-size-xs);
  color: var(--color-secondary);
}

/* Footer Navigation */
.footer-navigation {
  display: flex;
}

.footer-menu {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-menu a {
  font-size: var(--font-size-xs);
  color: var(--color-secondary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color var(--transition-fast);
}

.footer-menu a:hover {
  color: var(--color-primary);
}

/* Responsive */
@media (max-width: 992px) {
  .footer-widgets__container {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
  }
}

@media (max-width: 768px) {
  .footer-widgets__container {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .site-footer__trust-links {
    grid-template-columns: 1fr;
  }

  .site-footer__trust-items {
    gap: 8px;
  }

  .site-info__container {
    flex-direction: column;
    text-align: center;
  }

  .site-info {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-menu {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .footer-widgets {
    padding: var(--spacing-2xl) 0;
  }

  .site-info {
    padding: var(--spacing-md) 0;
  }

  .site-footer__widgets {
    padding-top: var(--spacing-xl);
  }

  .site-footer__trust-link {
    width: 100%;
    justify-content: center;
  }

  .footer-menu {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
}

body.dark-mode .site-footer,
body.dark-mode .site-info,
html[data-theme="dark"] .site-footer,
html[data-theme="dark"] .site-info {
  background: var(--dm-surface-elevated);
  border-top-color: var(--dm-border);
}

body.dark-mode .site-footer__trust-links,
html[data-theme="dark"] .site-footer__trust-links {
  border-top-color: var(--dm-border);
  border-bottom-color: var(--dm-border);
}

body.dark-mode .site-footer__widgets .widget,
html[data-theme="dark"] .site-footer__widgets .widget {
  border-top-color: var(--dm-border);
}

body.dark-mode .site-footer__widgets .widget-title,
body.dark-mode .site-footer__widgets h2,
body.dark-mode .site-footer__widgets h3,
html[data-theme="dark"] .site-footer__widgets .widget-title,
html[data-theme="dark"] .site-footer__widgets h2,
html[data-theme="dark"] .site-footer__widgets h3 {
  color: var(--dm-text-primary) !important;
}

body.dark-mode .footer-widget-area .widget-title,
body.dark-mode .site-footer__trust-kicker,
html[data-theme="dark"] .footer-widget-area .widget-title,
html[data-theme="dark"] .site-footer__trust-kicker {
  color: var(--dm-text-primary);
}

body.dark-mode .footer-widget-area a,
body.dark-mode .site-info,
body.dark-mode .site-info a,
body.dark-mode .copyright,
body.dark-mode .site-footer__trust-note,
body.dark-mode .site-footer__widgets p,
body.dark-mode .site-footer__widgets li,
body.dark-mode .site-footer__widgets span,
body.dark-mode .site-footer__widgets strong,
body.dark-mode .site-footer__widgets a,
html[data-theme="dark"] .footer-widget-area a,
html[data-theme="dark"] .site-info,
html[data-theme="dark"] .site-info a,
html[data-theme="dark"] .copyright,
html[data-theme="dark"] .site-footer__trust-note,
html[data-theme="dark"] .site-footer__widgets p,
html[data-theme="dark"] .site-footer__widgets li,
html[data-theme="dark"] .site-footer__widgets span,
html[data-theme="dark"] .site-footer__widgets strong,
html[data-theme="dark"] .site-footer__widgets a {
  color: var(--dm-text-secondary) !important;
}

body.dark-mode .site-footer__widgets a:hover,
html[data-theme="dark"] .site-footer__widgets a:hover {
  color: var(--dm-text-primary) !important;
}

body.dark-mode .site-footer__widgets .search-form,
html[data-theme="dark"] .site-footer__widgets .search-form {
  border-color: var(--dm-border);
  background: var(--dm-surface-card);
}

body.dark-mode .site-footer__widgets .search-form input[type="search"],
html[data-theme="dark"] .site-footer__widgets .search-form input[type="search"] {
  color: var(--dm-text-primary);
}

body.dark-mode .site-footer__widgets .search-form input[type="search"]::placeholder,
html[data-theme="dark"] .site-footer__widgets .search-form input[type="search"]::placeholder {
  color: var(--dm-text-muted);
}

body.dark-mode .site-footer__widgets .search-form button,
body.dark-mode .site-footer__widgets .search-form input[type="submit"],
html[data-theme="dark"] .site-footer__widgets .search-form button,
html[data-theme="dark"] .site-footer__widgets .search-form input[type="submit"] {
  background: var(--dm-accent);
  color: #09091d;
}

body.dark-mode .site-footer__trust-link,
html[data-theme="dark"] .site-footer__trust-link {
  background: var(--dm-surface-card);
  border-color: #3b3f60;
  color: var(--dm-text-primary);
}

body.dark-mode .site-footer__trust-link:hover,
html[data-theme="dark"] .site-footer__trust-link:hover {
  background: var(--dm-text-primary);
  border-color: var(--dm-text-primary);
  color: #09091d;
}


/* ==================================
   MAIN
   ================================== */

/**
 * Main Content Layout - W Korea Style
 *
 * Image-centric luxury magazine layout with generous spacing
 *
 * @package Nexfolio
 * @since 1.0.0
 */

.site-main {
  min-height: 60vh;
}

/* ==================================
   Entry Content — Editorial Typography
   ================================== */

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 3rem;
  color: #000;
}

.entry-content h2 {
  font-size: 2rem;
  border-bottom: 1px solid #000;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.entry-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 1.5rem;
}

/* 다크모드 - 가독성 향상 (밝은 흰색 계열) */
html[data-theme="dark"] .entry-content h2,
html[data-theme="dark"] .entry-content h3,
html[data-theme="dark"] .entry-content h4 {
  color: #FFFFFF;
}

html[data-theme="dark"] .entry-content h2 {
  border-bottom-color: #33275F;
}

html[data-theme="dark"] .entry-content p {
  color: #F0F0F0;
}

html[data-theme="dark"] .entry-content,
html[data-theme="dark"] .single-post {
  background: transparent;
}

/* Full-width Content Layout */
.main-content-area.full-width-content {
  max-width: 800px;
  margin: 0 auto;
}

/* Posts Grid - W Korea Style */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-3xl);
}

/* Post Card */
.post-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform var(--transition-base);
}

.post-card:hover {
  transform: translateY(-4px);
}

.post-card__thumbnail {
  position: relative;
  overflow: hidden;
  margin-bottom: var(--spacing-xs);
  aspect-ratio: 2 / 3; /* W Korea uses vertical images */
}

.post-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.post-card:hover .post-card__image {
  transform: scale(1.05);
}

.post-card__content {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: var(--spacing-sm);
}

.post-card__header {
  margin-bottom: 0;
}

.post-card__title {
  font-size: var(--font-size-2xl);
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  margin: 0;
}

.post-card__title a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.post-card__title a:hover {
  color: var(--color-accent);
}

.post-card__category {
  margin-top: var(--spacing-xs);
}

.post-card__category a {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  color: #dc3545;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: opacity var(--transition-fast);
}

.post-card__category a:hover {
  opacity: 0.8;
}

/* Post Meta */
.post-meta {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  font-size: var(--font-size-xs);
  color: var(--color-meta);
  margin-bottom: var(--spacing-sm);
}

.post-meta span {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.post-meta a {
  color: var(--color-meta);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.post-meta a:hover {
  color: var(--color-primary);
}

/* Single Post */
.single-post {
  background-color: var(--color-white);
}

.single-post__featured-image {
  width: 100%;
  max-height: 70vh;
  overflow: hidden;
  margin-bottom: 0;
}

.single-post__featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-post__container {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--spacing-4xl) var(--layout-gutter);
}

.single-post__header {
  margin-bottom: var(--spacing-3xl);
  padding-bottom: var(--spacing-2xl);
  border-bottom: 1px solid var(--color-border);
}

.single-post__category {
  margin-bottom: var(--spacing-md);
}

.single-post__category a {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  color: #dc3545;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: opacity var(--transition-fast);
}

.single-post__category a:hover {
  opacity: 0.8;
}

.single-post__title {
  font-size: var(--font-size-4xl);
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  margin: 0;
  letter-spacing: -0.02em;
}

.single-post__content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #1f2937;
  margin-bottom: var(--spacing-4xl);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans KR", sans-serif;
  word-break: keep-all;
  word-wrap: break-word;
}

body.dark-mode .single-post__content,
html[data-theme="dark"] .single-post__content {
  color: #F0F0F0;
}

.single-post__content > * + * {
  margin-top: 1.5rem;
}

.single-post__content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  border-left: 5px solid var(--color-accent, #d4af37);
  padding-left: 12px;
  margin-top: 2.8rem;
  margin-bottom: 1.2rem;
  line-height: 1.4;
}

body.dark-mode .single-post__content h2,
html[data-theme="dark"] .single-post__content h2 {
  color: #FFFFFF;
  border-left-color: var(--color-accent, #d4af37);
}

.single-post__content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin-top: 2.2rem;
  margin-bottom: 1rem;
  line-height: 1.4;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 6px;
}

body.dark-mode .single-post__content h3,
html[data-theme="dark"] .single-post__content h3 {
  color: #F0F0F0;
  border-bottom-color: #334155;
}

.single-post__content h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #374151;
  margin-top: 1.8rem;
  margin-bottom: 0.8rem;
}

body.dark-mode .single-post__content h4,
html[data-theme="dark"] .single-post__content h4 {
  color: #E0E0E0;
}

.single-post__content p {
  margin-bottom: 1.5rem;
  color: #374151;
}

body.dark-mode .single-post__content p,
html[data-theme="dark"] .single-post__content p {
  color: #F0F0F0;
}

.single-post__content a {
  color: var(--color-accent, #d4af37);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 500;
}

.single-post__content a:hover {
  color: #111827;
}

body.dark-mode .single-post__content a:hover,
html[data-theme="dark"] .single-post__content a:hover {
  color: #ffffff;
}

.single-post__content img {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2rem auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.single-post__content figcaption {
  font-size: 0.85rem;
  color: #6b7280;
  text-align: center;
  margin-top: -1.5rem;
  margin-bottom: 2rem;
}

body.dark-mode .single-post__content figcaption,
html[data-theme="dark"] .single-post__content figcaption {
  color: #E0E0E0;
}

.single-post__content blockquote {
  border-left: 4px solid var(--color-accent, #d4af37);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  background-color: #f8fafc;
  border-radius: 0 8px 8px 0;
  font-style: normal;
  color: #4b5563;
  font-size: 1.025rem;
  line-height: 1.7;
}

body.dark-mode .single-post__content blockquote,
html[data-theme="dark"] .single-post__content blockquote {
  background-color: #1e293b;
  color: #F0F0F0;
}

.single-post__content blockquote p {
  margin-bottom: 0;
  color: inherit;
}

.single-post__content ul,
.single-post__content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.single-post__content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
  color: #374151;
}

body.dark-mode .single-post__content li,
html[data-theme="dark"] .single-post__content li {
  color: #F0F0F0;
}

.single-post__content ul {
  list-style-type: disc;
}

.single-post__content ol {
  list-style-type: decimal;
}

.single-post__content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
}

.single-post__content th,
.single-post__content td {
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
}

body.dark-mode .single-post__content th,
body.dark-mode .single-post__content td,
html[data-theme="dark"] .single-post__content th,
html[data-theme="dark"] .single-post__content td {
  border-color: #334155;
}

.single-post__content th {
  background-color: #f1f5f9;
  font-weight: 600;
  color: #0f172a;
  text-align: left;
}

body.dark-mode .single-post__content th,
html[data-theme="dark"] .single-post__content th {
  background-color: #1e293b;
  color: #FFFFFF;
}

.single-post__content tr:nth-child(even) td {
  background-color: #f8fafc;
}

body.dark-mode .single-post__content tr:nth-child(even) td,
html[data-theme="dark"] .single-post__content tr:nth-child(even) td {
  background-color: #111827;
}

.single-post__content code {
  font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
  background-color: #f1f5f9;
  color: #e11d48;
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}

body.dark-mode .single-post__content code,
html[data-theme="dark"] .single-post__content code {
  background-color: #334155;
  color: #fda4af;
}

.single-post__content pre {
  font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
  background-color: #0f172a;
  color: #f8fafc;
  padding: 1.25rem;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 2rem 0;
  border: 1px solid #1e293b;
}

body.dark-mode .single-post__content pre,
html[data-theme="dark"] .single-post__content pre {
  border-color: #334155;
}

.single-post__content pre code {
  background-color: transparent;
  color: inherit;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
}

.single-post__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  padding-top: var(--spacing-2xl);
  border-top: 1px solid var(--color-border);
}

.single-post__tags a {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-md);
  font-size: var(--font-size-xs);
  color: var(--color-primary);
  background-color: var(--color-background);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.single-post__tags a:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

body.dark-mode .single-post__tags a,
html[data-theme="dark"] .single-post__tags a {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  color: #111827;
}

body.dark-mode .single-post__tags a:hover,
html[data-theme="dark"] .single-post__tags a:hover {
  background: #111827;
  border-color: #111827;
  color: #ffffff;
}

/* Related Posts */
.related-posts {
  background-color: var(--color-background);
  padding: var(--spacing-4xl) 0;
  margin-top: var(--spacing-4xl);
}

.related-posts__container {
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: 0 var(--layout-gutter);
}

.related-posts__title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin: 0 0 var(--spacing-2xl);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--color-primary);
}

.related-posts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
}

.related-post-card {
  background-color: var(--color-white);
  transition: transform var(--transition-base);
}

.related-post-card:hover {
  transform: translateY(-4px);
}

.related-post-card__thumbnail {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin-bottom: var(--spacing-sm);
}

.related-post-card__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.related-post-card:hover .related-post-card__thumbnail img {
  transform: scale(1.05);
}

.related-post-card__content {
  padding: var(--spacing-md);
}

.related-post-card__title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  margin: 0 0 var(--spacing-xs);
}

.related-post-card__title a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.related-post-card__title a:hover {
  color: var(--color-accent);
}

.related-post-card__category a {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  color: #dc3545;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: opacity var(--transition-fast);
}

.related-post-card__category a:hover {
  opacity: 0.8;
}

/* Single Post Layout with Sidebar */
.single-post-layout {
  padding-top: var(--spacing-3xl);
  padding-bottom: var(--spacing-3xl);
}

/* Comments Area */
.comments-area {
  margin-top: var(--spacing-2xl);
  padding-top: var(--spacing-2xl);
  border-top: 1px solid var(--color-border);
  max-width: 100%;
}

.comments-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-lg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--spacing-3xl);
}

.comment-list .comment {
  margin-bottom: var(--spacing-2xl);
  padding-bottom: var(--spacing-2xl);
  border-bottom: 1px solid var(--color-border);
}

.comment-list .comment:last-child {
  border-bottom: none;
}

.comment-body {
  display: flex;
  gap: var(--spacing-lg);
}

.comment-author {
  flex-shrink: 0;
}

.comment-author .avatar {
  border-radius: 50%;
}

.comment-content {
  flex: 1;
}

.comment-metadata {
  font-size: var(--font-size-xs);
  color: var(--color-meta);
  margin-bottom: var(--spacing-sm);
}

.comment-metadata a {
  color: var(--color-meta);
  text-decoration: none;
}

.comment-metadata a:hover {
  color: var(--color-primary);
}

.comment-text p {
  margin-bottom: var(--spacing-md);
}

.reply {
  margin-top: var(--spacing-sm);
}

.reply a {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  color: var(--color-primary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.reply a:hover {
  color: var(--color-accent);
}

/* Comment Form */
.comment-reply-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-lg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.comment-form {
  margin-top: 0;
  width: 100%;
}

.comment-form p {
  margin-bottom: var(--spacing-lg);
}

.comment-form label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-primary);
  margin-bottom: var(--spacing-xs);
}

.comment-form .required {
  color: #dc3545;
}

.comment-form .form-control {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: var(--font-size-base);
  font-family: var(--font-primary);
  color: var(--color-primary);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.comment-form .form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.comment-form textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

.comment-form .submit-button {
  padding: var(--spacing-sm) var(--spacing-2xl);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-white);
  background-color: var(--color-primary);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.comment-form .submit-button:hover {
  background-color: var(--color-accent);
}

.no-comments {
  font-style: italic;
  color: var(--color-meta);
}

/* Archive Header */
.archive-header {
  text-align: center;
  margin-bottom: var(--spacing-3xl);
  padding-bottom: var(--spacing-2xl);
  border-bottom: 1px solid var(--color-border);
}

.archive-title {
  font-size: var(--font-size-3xl);
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-md);
}

.archive-description {
  font-size: var(--font-size-md);
  color: var(--color-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Page Header */
.page-header {
  text-align: center;
  margin-bottom: var(--spacing-3xl);
}

.page-title {
  font-size: var(--font-size-4xl);
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-lg);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-3xl);
  padding-top: var(--spacing-2xl);
  border-top: 1px solid var(--color-border);
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--spacing-sm);
  font-size: var(--font-size-sm);
  color: var(--color-primary);
  text-decoration: none;
  border: 1px solid var(--color-border);
  transition: all var(--transition-fast);
}

.pagination a:hover {
  background-color: var(--color-gray-100);
  border-color: var(--color-primary);
}

.pagination .current {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

/* Responsive */
@media (max-width: 992px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-2xl);
  }

  .single-post__title {
    font-size: var(--font-size-3xl);
  }

  .single-post__content {
    font-size: var(--font-size-base);
  }

  .related-posts__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .archive-title,
  .page-title {
    font-size: var(--font-size-3xl);
  }
}

@media (max-width: 768px) {
  .posts-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }

  .post-card__thumbnail {
    aspect-ratio: 16 / 9;
  }

  .single-post__container {
    padding: var(--spacing-2xl) var(--layout-gutter);
  }

  .single-post__title {
    font-size: var(--font-size-2xl);
  }

  .single-post__content {
    font-size: var(--font-size-base);
  }

  .related-posts__grid {
    grid-template-columns: 1fr;
  }

  .related-posts {
    padding: var(--spacing-2xl) 0;
  }

  .archive-title,
  .page-title {
    font-size: var(--font-size-2xl);
  }
}

@media (max-width: 576px) {
  .posts-grid {
    gap: var(--spacing-lg);
  }

  .post-card__title {
    font-size: var(--font-size-lg);
  }

  .single-post__header {
    margin-bottom: var(--spacing-2xl);
  }

  .single-post__title {
    font-size: var(--font-size-xl);
  }

  .post-meta,
  .single-post__meta {
    font-size: var(--font-size-xs);
    gap: var(--spacing-sm);
  }
}

/* ==================================
   Durable Dark Mode and Content Fixes
   ================================== */

body.dark-mode .single-post,
html[data-theme="dark"] .single-post {
  background: transparent;
}

body.dark-mode .single-post__header,
html[data-theme="dark"] .single-post__header,
body.dark-mode .page-header,
html[data-theme="dark"] .page-header,
body.dark-mode .comments-area,
html[data-theme="dark"] .comments-area,
body.dark-mode .comment-list .comment,
html[data-theme="dark"] .comment-list .comment,
body.dark-mode .related-posts__title,
html[data-theme="dark"] .related-posts__title {
  border-color: #2a2d4a;
}

body.dark-mode .single-post__title,
html[data-theme="dark"] .single-post__title,
body.dark-mode .page-title,
html[data-theme="dark"] .page-title,
body.dark-mode .comments-title,
body.dark-mode .comment-reply-title,
html[data-theme="dark"] .comments-title,
html[data-theme="dark"] .comment-reply-title {
  color: #f3efff;
}

.single-post__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.2rem;
  margin-top: 1rem;
}

.single-post__meta > span,
.single-post__meta .reading-time,
.single-post__meta .post-views {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

body.dark-mode .single-post__meta,
html[data-theme="dark"] .single-post__meta {
  color: #b8b7c9;
}

body.dark-mode .single-post__content,
html[data-theme="dark"] .single-post__content {
  background: transparent;
}

body.dark-mode .single-post__content > .wp-block-group,
body.dark-mode .single-post__content > .wp-block-columns,
body.dark-mode .single-post__content > .wp-block-cover,
body.dark-mode .single-post__content > .wp-block-media-text,
html[data-theme="dark"] .single-post__content > .wp-block-group,
html[data-theme="dark"] .single-post__content > .wp-block-columns,
html[data-theme="dark"] .single-post__content > .wp-block-cover,
html[data-theme="dark"] .single-post__content > .wp-block-media-text {
  background: transparent;
}

body.dark-mode .entry-content,
body.dark-mode .page-entry-content,
body.dark-mode .single-post__content,
html[data-theme="dark"] .entry-content,
html[data-theme="dark"] .page-entry-content,
html[data-theme="dark"] .single-post__content {
  color: var(--dm-text-secondary);
}

body.dark-mode .entry-content h1,
body.dark-mode .entry-content h2,
body.dark-mode .entry-content h3,
body.dark-mode .entry-content h4,
body.dark-mode .entry-content h5,
body.dark-mode .entry-content h6,
body.dark-mode .page-entry-content h1,
body.dark-mode .page-entry-content h2,
body.dark-mode .page-entry-content h3,
body.dark-mode .page-entry-content h4,
body.dark-mode .page-entry-content h5,
body.dark-mode .page-entry-content h6,
body.dark-mode .single-post__content h1,
body.dark-mode .single-post__content h2,
body.dark-mode .single-post__content h3,
body.dark-mode .single-post__content h4,
body.dark-mode .single-post__content h5,
body.dark-mode .single-post__content h6,
html[data-theme="dark"] .entry-content h1,
html[data-theme="dark"] .entry-content h2,
html[data-theme="dark"] .entry-content h3,
html[data-theme="dark"] .entry-content h4,
html[data-theme="dark"] .entry-content h5,
html[data-theme="dark"] .entry-content h6,
html[data-theme="dark"] .page-entry-content h1,
html[data-theme="dark"] .page-entry-content h2,
html[data-theme="dark"] .page-entry-content h3,
html[data-theme="dark"] .page-entry-content h4,
html[data-theme="dark"] .page-entry-content h5,
html[data-theme="dark"] .page-entry-content h6,
html[data-theme="dark"] .single-post__content h1,
html[data-theme="dark"] .single-post__content h2,
html[data-theme="dark"] .single-post__content h3,
html[data-theme="dark"] .single-post__content h4,
html[data-theme="dark"] .single-post__content h5,
html[data-theme="dark"] .single-post__content h6 {
  color: var(--dm-text-primary) !important;
}

body.dark-mode .entry-content p,
body.dark-mode .entry-content li,
body.dark-mode .entry-content span,
body.dark-mode .entry-content strong,
body.dark-mode .entry-content em,
body.dark-mode .page-entry-content p,
body.dark-mode .page-entry-content li,
body.dark-mode .page-entry-content span,
body.dark-mode .page-entry-content strong,
body.dark-mode .page-entry-content em,
body.dark-mode .single-post__content p,
body.dark-mode .single-post__content li,
body.dark-mode .single-post__content span,
body.dark-mode .single-post__content strong,
body.dark-mode .single-post__content em,
html[data-theme="dark"] .entry-content p,
html[data-theme="dark"] .entry-content li,
html[data-theme="dark"] .entry-content span,
html[data-theme="dark"] .entry-content strong,
html[data-theme="dark"] .entry-content em,
html[data-theme="dark"] .page-entry-content p,
html[data-theme="dark"] .page-entry-content li,
html[data-theme="dark"] .page-entry-content span,
html[data-theme="dark"] .page-entry-content strong,
html[data-theme="dark"] .page-entry-content em,
html[data-theme="dark"] .single-post__content p,
html[data-theme="dark"] .single-post__content li,
html[data-theme="dark"] .single-post__content span,
html[data-theme="dark"] .single-post__content strong,
html[data-theme="dark"] .single-post__content em {
  color: var(--dm-text-secondary) !important;
}

body.dark-mode .entry-content a,
body.dark-mode .page-entry-content a,
body.dark-mode .single-post__content a,
html[data-theme="dark"] .entry-content a,
html[data-theme="dark"] .page-entry-content a,
html[data-theme="dark"] .single-post__content a {
  color: var(--dm-accent-strong) !important;
}

body.dark-mode .entry-content a:hover,
body.dark-mode .page-entry-content a:hover,
body.dark-mode .single-post__content a:hover,
html[data-theme="dark"] .entry-content a:hover,
html[data-theme="dark"] .page-entry-content a:hover,
html[data-theme="dark"] .single-post__content a:hover {
  color: var(--dm-text-primary) !important;
}

body.dark-mode .entry-content [style*="color:"],
body.dark-mode .page-entry-content [style*="color:"],
body.dark-mode .single-post__content [style*="color:"],
html[data-theme="dark"] .entry-content [style*="color:"],
html[data-theme="dark"] .page-entry-content [style*="color:"],
html[data-theme="dark"] .single-post__content [style*="color:"] {
  color: inherit !important;
}

body.dark-mode .entry-content [style*="background"],
body.dark-mode .page-entry-content [style*="background"],
body.dark-mode .single-post__content [style*="background"],
html[data-theme="dark"] .entry-content [style*="background"],
html[data-theme="dark"] .page-entry-content [style*="background"],
html[data-theme="dark"] .single-post__content [style*="background"] {
  background: transparent !important;
}

body.dark-mode .related-posts,
html[data-theme="dark"] .related-posts {
  background: transparent;
}

body.dark-mode .related-post-card,
html[data-theme="dark"] .related-post-card {
  background: rgba(18, 20, 38, 0.96);
  border: 1px solid #2a2d4a;
}

body.dark-mode .related-post-card__title a,
html[data-theme="dark"] .related-post-card__title a {
  color: #f3efff;
}

body.dark-mode .related-post-card__category a,
html[data-theme="dark"] .related-post-card__category a {
  color: #f59e8b;
}

body.dark-mode .page-content,
body.dark-mode .page-entry-content,
html[data-theme="dark"] .page-content,
html[data-theme="dark"] .page-entry-content,
body.dark-mode .comment-content,
body.dark-mode .comment-text p,
html[data-theme="dark"] .comment-content,
html[data-theme="dark"] .comment-text p {
  color: #F0F0F0;
}

body.dark-mode .page-entry-content h2,
body.dark-mode .page-entry-content h3,
body.dark-mode .page-entry-content h4,
body.dark-mode .page-entry-content strong,
html[data-theme="dark"] .page-entry-content h2,
html[data-theme="dark"] .page-entry-content h3,
html[data-theme="dark"] .page-entry-content h4,
html[data-theme="dark"] .page-entry-content strong,
body.dark-mode .comment-author .fn,
html[data-theme="dark"] .comment-author .fn,
body.dark-mode .reply a,
html[data-theme="dark"] .reply a,
body.dark-mode .comment-form label,
html[data-theme="dark"] .comment-form label {
  color: #FFFFFF;
}

body.dark-mode .page-entry-content p,
body.dark-mode .page-entry-content li,
body.dark-mode .page-entry-content span,
html[data-theme="dark"] .page-entry-content p,
html[data-theme="dark"] .page-entry-content li,
html[data-theme="dark"] .page-entry-content span,
body.dark-mode .comment-metadata,
body.dark-mode .comment-metadata a,
body.dark-mode .logged-in-as,
body.dark-mode .logged-in-as a,
body.dark-mode .comment-form .comment-notes,
html[data-theme="dark"] .comment-metadata,
html[data-theme="dark"] .comment-metadata a,
html[data-theme="dark"] .logged-in-as,
html[data-theme="dark"] .logged-in-as a,
html[data-theme="dark"] .comment-form .comment-notes {
  color: #F0F0F0;
}

body.dark-mode .page-entry-content a,
html[data-theme="dark"] .page-entry-content a {
  color: #FFFFFF;
}

body.dark-mode .page-entry-content section,
html[data-theme="dark"] .page-entry-content section {
  background: transparent;
}

body.dark-mode .comment-form input[type="text"],
body.dark-mode .comment-form input[type="email"],
body.dark-mode .comment-form input[type="url"],
body.dark-mode .comment-form textarea,
html[data-theme="dark"] .comment-form input[type="text"],
html[data-theme="dark"] .comment-form input[type="email"],
html[data-theme="dark"] .comment-form input[type="url"],
html[data-theme="dark"] .comment-form textarea {
  background: rgba(18, 20, 38, 0.96);
  border: 1px solid #3b3f60;
  color: #FFFFFF;
}

body.dark-mode .comment-form input::placeholder,
body.dark-mode .comment-form textarea::placeholder,
html[data-theme="dark"] .comment-form input::placeholder,
html[data-theme="dark"] .comment-form textarea::placeholder {
  color: #8b8ca7;
}

body.dark-mode .comment-form input:focus,
body.dark-mode .comment-form textarea:focus,
html[data-theme="dark"] .comment-form input:focus,
html[data-theme="dark"] .comment-form textarea:focus {
  border-color: #f3efff;
  outline: none;
}

body.dark-mode .comment-form .submit,
body.dark-mode .submit-button,
html[data-theme="dark"] .comment-form .submit,
html[data-theme="dark"] .submit-button {
  background: #f3efff;
  color: #09091d;
  border-color: #f3efff;
}

body.dark-mode .comment-form .submit:hover,
body.dark-mode .submit-button:hover,
html[data-theme="dark"] .comment-form .submit:hover,
html[data-theme="dark"] .submit-button:hover {
  background: #d9d7e8;
  border-color: #d9d7e8;
}

/* Ad Slots */
.nexfolio-ad-slot {
  position: relative;
  margin: 2rem auto;
  text-align: center;
  clear: both;
}

.nexfolio-ad-slot__label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 6px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.nexfolio-ad-slot--ad_home_grid_middle,
.nexfolio-ad-slot--ad_home_before_recent_articles {
  grid-column: 1 / -1;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
  padding: 20px 0;
}

.nexfolio-ad-slot--ad_post_after_intro,
.nexfolio-ad-slot--ad_post_mid_content,
.nexfolio-ad-slot--ad_post_bottom {
  border-top: 1px solid #ebebeb;
  padding-top: 1.25rem;
}

body.dark-mode .nexfolio-ad-slot--ad_home_grid_middle,
body.dark-mode .nexfolio-ad-slot--ad_home_before_recent_articles,
html[data-theme="dark"] .nexfolio-ad-slot--ad_home_grid_middle,
html[data-theme="dark"] .nexfolio-ad-slot--ad_home_before_recent_articles {
  border-top-color: #2a2d4a;
  border-bottom-color: #2a2d4a;
}

body.dark-mode .nexfolio-ad-slot--ad_post_after_intro,
body.dark-mode .nexfolio-ad-slot--ad_post_mid_content,
body.dark-mode .nexfolio-ad-slot--ad_post_bottom,
html[data-theme="dark"] .nexfolio-ad-slot--ad_post_after_intro,
html[data-theme="dark"] .nexfolio-ad-slot--ad_post_mid_content,
html[data-theme="dark"] .nexfolio-ad-slot--ad_post_bottom {
  border-top-color: #2a2d4a;
}

body.dark-mode .nexfolio-ad-slot__label,
html[data-theme="dark"] .nexfolio-ad-slot__label {
  color: #8b8ca7;
}

.nexfolio-sidebar-toc .nexfolio-toc__content {
  max-height: 50vh;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}

.nexfolio-sidebar-toc .nexfolio-toc__content::-webkit-scrollbar {
  width: 3px;
}

.nexfolio-sidebar-toc .nexfolio-toc__content::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 2px;
}

.nexfolio-sidebar-toc .nexfolio-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 2px solid var(--color-border);
}

.nexfolio-sidebar-toc .nexfolio-toc__item {
  margin: 0;
}

.nexfolio-sidebar-toc .nexfolio-toc__link {
  display: block;
  padding: 6px 0 6px 16px;
  font-size: 14px;
  color: var(--color-secondary);
  text-decoration: none;
  transition: all 0.2s;
  border-left: 2px solid transparent;
  margin-left: -2px;
  line-height: 1.4;
}

.nexfolio-sidebar-toc .nexfolio-toc__link:hover {
  color: var(--color-primary);
}

.nexfolio-sidebar-toc .nexfolio-toc__link.active {
  color: var(--color-accent);
  border-left-color: var(--color-accent);
  font-weight: 600;
}

.nexfolio-sidebar-toc .nexfolio-toc__item--level-3 .nexfolio-toc__link {
  padding-left: 26px;
}

.nexfolio-sidebar-toc .nexfolio-toc__item--level-4 .nexfolio-toc__link {
  padding-left: 36px;
}

.nexfolio-related-posts-section {
  margin: 40px 0;
  padding: 30px;
  background: #f9fafb;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.nexfolio-related-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 25px;
  color: #1f2937;
  border-bottom: 3px solid #6366f1;
  padding-bottom: 12px;
}

.nexfolio-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.nexfolio-related-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.nexfolio-related-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  transform: translateY(-4px);
  border-color: #6366f1;
}

.nexfolio-related-thumbnail {
  width: 100%;
  height: 180px;
  overflow: hidden;
  position: relative;
}

.nexfolio-related-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.nexfolio-related-card:hover .nexfolio-related-thumbnail img {
  transform: scale(1.05);
}

.nexfolio-related-content {
  padding: 20px;
}

.nexfolio-related-post-title {
  margin: 0 0 12px 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.nexfolio-related-post-title a {
  color: #1f2937;
  text-decoration: none;
  transition: color 0.2s;
}

.nexfolio-related-post-title a:hover {
  color: #6366f1;
}

.nexfolio-related-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #6b7280;
}

.nexfolio-related-roadmap {
  margin: 40px 0;
  position: relative;
  border-top: 2px solid #1d1d1d;
}

.nexfolio-related-roadmap .iscene__head {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 24px;
  padding: 22px 0 18px;
  border-bottom: 1px solid #d6cec0;
}

.nexfolio-related-roadmap .iscene__no {
  font-size: 34px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.nexfolio-related-roadmap .iscene__type {
  display: block;
  margin-top: 8px;
  color: #164c3f;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.nexfolio-related-roadmap .iscene__title {
  margin: 0;
  font-size: clamp(22px, 3.5vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.05em;
  font-weight: 900;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.nexfolio-related-roadmap .iscene__desc {
  max-width: 760px;
  margin: 16px 0 0;
  color: #6d675d;
  font-size: 15px;
  line-height: 1.6;
}

.nexfolio-related-roadmap .iscene__body {
  padding: 26px 0 0;
}

.nexfolio-related-roadmap .learning-path {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border: 1px solid #202020;
  background: #fffaf0;
}

.nexfolio-related-roadmap .path-node {
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 0;
  padding: 24px;
  border-right: 1px solid #202020;
}

.nexfolio-related-roadmap .path-node:last-child {
  border-right: 0;
}

.nexfolio-related-roadmap .path-node::after {
  content: "NEXT";
  position: absolute;
  top: 14px;
  right: 14px;
  color: #6d675d;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nexfolio-related-roadmap .path-node:last-child::after {
  content: "LATER";
}

.nexfolio-related-roadmap .path-node > span {
  display: block;
  margin-bottom: 10px;
  color: #164c3f;
  font-size: 11px;
  font-weight: 950;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.nexfolio-related-roadmap .path-node__title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.nexfolio-related-roadmap .path-node__title a {
  color: #0f172a;
  text-decoration: none;
}

.nexfolio-related-roadmap .path-node__title a:hover {
  color: #164c3f;
}

.nexfolio-related-roadmap .path-node p {
  margin: 0;
  margin-top: 8px;
  color: #6d675d;
  font-size: 13px;
  line-height: 1.5;
}

.nexfolio-related-roadmap .path-node--empty .path-node__placeholder {
  min-height: 112px;
}

.nexfolio-related-roadmap .path-node--empty .path-node__title,
.nexfolio-related-roadmap .path-node--empty p {
  visibility: hidden;
}

body.dark-mode .nexfolio-related-posts-section,
html[data-theme="dark"] .nexfolio-related-posts-section {
  background: var(--dm-surface-card);
  border-color: var(--dm-border);
}

body.dark-mode .nexfolio-related-title,
html[data-theme="dark"] .nexfolio-related-title {
  color: var(--dm-text-primary);
  border-bottom-color: var(--dm-accent);
}

body.dark-mode .nexfolio-related-card,
html[data-theme="dark"] .nexfolio-related-card {
  background: rgba(24, 26, 49, 0.96);
  border-color: var(--dm-border);
  box-shadow: 0 10px 28px rgba(0,0,0,0.22);
}

body.dark-mode .nexfolio-related-card:hover,
html[data-theme="dark"] .nexfolio-related-card:hover {
  border-color: var(--dm-border-strong);
}

body.dark-mode .nexfolio-related-post-title a,
html[data-theme="dark"] .nexfolio-related-post-title a {
  color: var(--dm-text-primary);
}

body.dark-mode .nexfolio-related-post-title a:hover,
html[data-theme="dark"] .nexfolio-related-post-title a:hover {
  color: var(--dm-accent-strong);
}

body.dark-mode .nexfolio-related-meta,
html[data-theme="dark"] .nexfolio-related-meta {
  color: var(--dm-text-muted);
}

body.dark-mode .nexfolio-related-roadmap,
html[data-theme="dark"] .nexfolio-related-roadmap {
  background: transparent;
  border-top-color: #4b4275;
}

body.dark-mode .nexfolio-related-roadmap .learning-path,
html[data-theme="dark"] .nexfolio-related-roadmap .learning-path {
  background: #11111e;
  border-color: #4b4275;
}

body.dark-mode .nexfolio-related-roadmap .iscene__head,
html[data-theme="dark"] .nexfolio-related-roadmap .iscene__head {
  border-bottom-color: #3a3455;
}

body.dark-mode .nexfolio-related-roadmap .iscene__no,
body.dark-mode .nexfolio-related-roadmap .iscene__title,
html[data-theme="dark"] .nexfolio-related-roadmap .iscene__no,
html[data-theme="dark"] .nexfolio-related-roadmap .iscene__title {
  color: var(--dm-text-primary);
}

body.dark-mode .nexfolio-related-roadmap .iscene__type,
html[data-theme="dark"] .nexfolio-related-roadmap .iscene__type {
  color: #9f7aea;
}

body.dark-mode .nexfolio-related-roadmap .iscene__desc,
html[data-theme="dark"] .nexfolio-related-roadmap .iscene__desc {
  color: #c8c2df;
}

body.dark-mode .nexfolio-related-roadmap .path-node,
html[data-theme="dark"] .nexfolio-related-roadmap .path-node {
  border-right-color: #4b4275;
}

body.dark-mode .nexfolio-related-roadmap .path-node::after,
html[data-theme="dark"] .nexfolio-related-roadmap .path-node::after {
  color: #8b8ca7;
}

body.dark-mode .nexfolio-related-roadmap .path-node > span,
html[data-theme="dark"] .nexfolio-related-roadmap .path-node > span {
  color: #9f7aea;
}

body.dark-mode .nexfolio-related-roadmap .path-node__title a,
html[data-theme="dark"] .nexfolio-related-roadmap .path-node__title a {
  color: var(--dm-text-primary);
}

body.dark-mode .nexfolio-related-roadmap .path-node__title a:hover,
html[data-theme="dark"] .nexfolio-related-roadmap .path-node__title a:hover {
  color: var(--dm-accent-strong);
}

body.dark-mode .nexfolio-related-roadmap .path-node p,
html[data-theme="dark"] .nexfolio-related-roadmap .path-node p {
  color: #c8c2df;
}

@media (max-width: 768px) {
  .nexfolio-related-grid {
    grid-template-columns: 1fr;
  }

  .nexfolio-related-posts-section {
    padding: 20px;
  }

  .nexfolio-related-roadmap {
    margin: 32px 0;
  }

  .nexfolio-related-roadmap .iscene__head {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .nexfolio-related-roadmap .iscene__body {
    padding-top: 18px;
  }

  .nexfolio-related-roadmap .learning-path {
    grid-template-columns: 1fr;
  }

  .nexfolio-related-roadmap .path-node {
    border-right: 0;
    border-bottom: 1px solid #202020;
  }

  .nexfolio-related-roadmap .path-node:last-child {
    border-bottom: 0;
  }

  .nexfolio-related-roadmap .path-node + .path-node {
    border-top: 1px solid #202020;
  }

  body.dark-mode .nexfolio-related-roadmap .path-node,
  html[data-theme="dark"] .nexfolio-related-roadmap .path-node,
  body.dark-mode .nexfolio-related-roadmap .path-node + .path-node,
  html[data-theme="dark"] .nexfolio-related-roadmap .path-node + .path-node {
    border-top-color: #4b4275;
    border-bottom-color: #4b4275;
  }

  .nexfolio-related-roadmap .path-node__title {
    font-size: 18px;
  }
}


/* ==================================
   SIDEBAR
   ================================== */

/**
 * Sidebar Layout
 *
 * @package Nexfolio
 * @since 1.0.0
 */

/* Sidebar Layout */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--spacing-3xl);
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: var(--spacing-3xl) var(--layout-gutter);
}

.main-content-area {
  min-width: 0;
}

.sidebar-area {
  position: sticky;
  top: var(--spacing-2xl);
  align-self: start;
}

/* Widget Styling */
.widget {
  margin-bottom: var(--spacing-2xl);
}

.widget-title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin: 0 0 var(--spacing-md);
  padding-bottom: var(--spacing-xs);
  border-bottom: 1px solid var(--color-primary);
  height: 41.8px;
  display: flex;
  align-items: center;
}

/* Categories Widget */
.category-widget-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-widget-list li {
  margin-bottom: var(--spacing-sm);
}

.category-widget-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-xs) 0;
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.category-widget-list a:hover {
  color: var(--color-accent);
}

.category-widget-list .count {
  color: var(--color-meta);
  font-size: var(--font-size-xs);
}

/* Popular Posts Widget */
.popular-posts-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.popular-posts-list li {
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--color-border);
}

.popular-posts-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.popular-posts-list a {
  display: block;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-tight);
  margin-bottom: var(--spacing-xs);
  transition: color var(--transition-fast);
}

.popular-posts-list a:hover {
  color: var(--color-accent);
}

.popular-posts-list .post-date {
  font-size: var(--font-size-xs);
  color: var(--color-meta);
}

/* Search Widget */
.widget-search .search-form {
  position: relative;
  display: flex;
  width: 100%;
}

.widget-search .search-field {
  width: 100%;
  height: 30px;
  padding: 0 var(--spacing-md);
  font-size: var(--font-size-sm);
  border: 1px solid var(--color-border);
  border-radius: 0;
  transition: border-color var(--transition-fast);
}

.widget-search .search-field:focus {
  outline: none;
  border-color: var(--color-primary);
}

.widget-search .search-submit {
  height: 30px;
  padding: 0 var(--spacing-lg);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
  background-color: var(--color-primary);
  border: none;
  cursor: pointer;
  transition: background-color var(--transition-fast);
  white-space: nowrap;
}

.widget-search .search-submit:hover {
  background-color: var(--color-accent);
}

/* Responsive */
@media (max-width: 992px) {
  .content-with-sidebar {
    grid-template-columns: 1fr;
  }

  .sidebar-area {
    position: static;
  }
}


/* ==================================
   TOOL-TEMPLATES
   ================================== */

﻿/**
 * Tool Template Styles
 * Extracted from individual tool template inline style blocks.
 */

.tool-output-readonly {
	display: block;
	background: #fcfcfc;
}

.tool-muted-button {
	background: #eee;
	border: none;
	padding: 0.8rem 1.5rem;
	font-weight: 600;
	cursor: pointer;
	text-transform: uppercase;
	font-size: 0.75rem;
}

.tool-drop-title {
	font-size: 1.2rem;
	font-weight: 700;
	margin-bottom: 1rem;
}

.tool-drop-hint {
	color: #888;
}

.tool-hidden-file-input {
	display: none;
}

.tool-security-notice {
	padding: 2rem;
	margin-bottom: 2rem;
}

.tool-heading-reset {
	margin-top: 0;
}

.tool-reset-button {
	background: #fff;
	border: 1px solid #ccc;
	padding: 1.2rem;
	cursor: pointer;
	font-weight: 700;
}

.tool-margin-top-md {
	margin-top: 1.5rem;
}

.tool-push-right {
	margin-left: auto;
}

.btn-secondary--muted {
	border-color: #ccc;
	color: #888;
}

.stat-card--inverse {
	background: #000;
	color: #fff;
	border-color: #000;
}

.stat-label--inverse {
	color: #888;
}

.stat-value--inverse {
	color: #fff;
}

body.dark-mode .tool-muted-button,
body.dark-mode .tool-reset-button,
html[data-theme="dark"] .tool-muted-button,
html[data-theme="dark"] .tool-reset-button {
	background: rgba(18, 20, 38, 0.96);
	border: 1px solid #3b3f60;
	color: #f3efff;
}

body.dark-mode .tool-output-readonly,
html[data-theme="dark"] .tool-output-readonly {
	background: rgba(18, 20, 38, 0.96);
}

body.dark-mode .tool-drop-hint,
html[data-theme="dark"] .tool-drop-hint {
	color: #b8b7c9;
}

body.dark-mode .stat-card--inverse,
html[data-theme="dark"] .stat-card--inverse {
	background: #f3efff;
	border-color: #f3efff;
	color: #09091d;
}

body.dark-mode .stat-label--inverse,
body.dark-mode .stat-value--inverse,
html[data-theme="dark"] .stat-label--inverse,
html[data-theme="dark"] .stat-value--inverse {
	color: #09091d;
}

/* ==================================
   AFFILIATE-LINK-CHECKER.PHP
   ================================== */

	.affiliate-grid {
		display: grid;
		grid-template-columns: minmax(0, 1.05fr) minmax(320px, 420px);
		gap: 2rem;
		align-items: start;
	}

	.affiliate-editor,
	.affiliate-summary,
	.affiliate-guide-card,
	.affiliate-results {
		border: 1.5px solid #111;
		background: #fff;
	}

	.affiliate-editor,
	.affiliate-summary,
	.affiliate-results {
		padding: 1.4rem;
	}

	.affiliate-field label {
		display: block;
		font-size: 0.78rem;
		text-transform: uppercase;
		letter-spacing: 0.08em;
		font-weight: 700;
		margin-bottom: 0.55rem;
		color: #667085;
	}

	.affiliate-field textarea {
		width: 100%;
		min-height: 280px;
		border: 1.5px solid #111;
		padding: 1rem;
		font-size: 0.98rem;
		line-height: 1.7;
		outline: none;
		resize: vertical;
		transition: box-shadow 0.2s ease, transform 0.2s ease;
	}

	.affiliate-field input {
		width: 100%;
		border: 1.5px solid #111;
		padding: 0.9rem 1rem;
		font-size: 0.98rem;
		line-height: 1.6;
		outline: none;
		transition: box-shadow 0.2s ease, transform 0.2s ease;
	}

	.affiliate-field input:focus,
	.affiliate-field textarea:focus {
		box-shadow: 6px 6px 0 #111;
		transform: translate(-2px, -2px);
	}

	.affiliate-settings-grid {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1rem;
		margin-top: 1rem;
	}

	.affiliate-field-help {
		margin-top: 0.45rem;
		font-size: 0.88rem;
		line-height: 1.6;
		color: #667085;
	}

	.affiliate-action-row {
		display: flex;
		gap: 0.75rem;
		flex-wrap: wrap;
		margin-top: 1rem;
	}

	.affiliate-action-row button {
		border: 1.5px solid #111;
		background: #111;
		color: #fff;
		padding: 0.85rem 1.1rem;
		font-weight: 700;
		cursor: pointer;
	}

	.affiliate-action-row .affiliate-secondary {
		background: #fff;
		color: #111;
	}

	.affiliate-summary-grid,
	.affiliate-guide-grid {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1rem;
	}

	.affiliate-summary-card,
	.affiliate-guide-card {
		border: 1px solid #d0d5dd;
		background: #f8fafc;
		padding: 1rem;
	}

	.affiliate-summary-card strong {
		display: block;
		font-size: 0.8rem;
		text-transform: uppercase;
		letter-spacing: 0.08em;
		color: #667085;
		margin-bottom: 0.55rem;
	}

	.affiliate-summary-card span {
		font-size: 1.5rem;
		font-weight: 800;
		color: #111;
	}

	.affiliate-table-wrap {
		overflow-x: auto;
		margin-top: 1rem;
	}

	.affiliate-table {
		width: 100%;
		border-collapse: collapse;
		min-width: 880px;
	}

	.affiliate-table th,
	.affiliate-table td {
		border-bottom: 1px solid #e5e7eb;
		padding: 0.85rem;
		text-align: left;
		vertical-align: top;
		font-size: 0.94rem;
		line-height: 1.6;
	}

	.affiliate-table th {
		font-size: 0.78rem;
		text-transform: uppercase;
		letter-spacing: 0.08em;
		color: #667085;
	}

	.affiliate-badge {
		display: inline-flex;
		align-items: center;
		padding: 0.28rem 0.55rem;
		border: 1px solid #111;
		font-size: 0.78rem;
		font-weight: 700;
		text-transform: uppercase;
		letter-spacing: 0.05em;
	}

	.affiliate-badge.is-affiliate { background: #fff7ed; color: #b45309; }
	.affiliate-badge.is-suspicious { background: #fef2f2; color: #b42318; }
	.affiliate-badge.is-clean { background: #ecfdf3; color: #166534; }

	.affiliate-chip-list {
		display: flex;
		flex-wrap: wrap;
		gap: 0.45rem;
	}

	.affiliate-chip {
		display: inline-flex;
		padding: 0.25rem 0.5rem;
		border: 1px solid #d0d5dd;
		background: #fff;
		font-size: 0.82rem;
		color: #475467;
	}

	.affiliate-empty {
		margin-top: 1rem;
		padding: 1rem;
		border: 1px dashed #d0d5dd;
		background: #f8fafc;
		color: #667085;
	}

	.affiliate-guide-card {
		padding: 1.15rem;
	}

	.affiliate-guide-card h3 {
		margin: 0 0 0.7rem;
	}

	.affiliate-guide-card p,
	.affiliate-guide-card li {
		font-size: 0.95rem;
		line-height: 1.7;
		color: #475467;
	}

	.affiliate-guide-card ul {
		margin: 0;
		padding-left: 1rem;
	}

	@media (max-width: 1024px) {
		.affiliate-grid,
		.affiliate-settings-grid,
		.affiliate-summary-grid,
		.affiliate-guide-grid {
			grid-template-columns: 1fr;
		}
	}

/* ==================================
   AI-SEARCH-VISIBILITY-CHECKER.PHP
   ================================== */

	.ai-visibility-grid {
		display: grid;
		grid-template-columns: minmax(0, 1.15fr) minmax(320px, 420px);
		gap: 2rem;
		align-items: start;
	}

	.ai-visibility-editor,
	.ai-visibility-panel,
	.ai-visibility-card,
	.ai-visibility-results {
		border: 1.5px solid #111;
		background: #fff;
	}

	.ai-visibility-editor,
	.ai-visibility-panel,
	.ai-visibility-results {
		padding: 1.4rem;
	}

	.ai-visibility-field {
		margin-bottom: 1rem;
	}

	.ai-visibility-field label {
		display: block;
		font-size: 0.78rem;
		text-transform: uppercase;
		letter-spacing: 0.08em;
		font-weight: 700;
		margin-bottom: 0.45rem;
		color: #667085;
	}

	.ai-visibility-field input,
	.ai-visibility-field textarea,
	.ai-visibility-field select {
		width: 100%;
		border: 1.5px solid #111;
		padding: 0.9rem 1rem;
		font-size: 0.98rem;
		line-height: 1.6;
		background: #fff;
		outline: none;
		transition: box-shadow 0.2s ease, transform 0.2s ease;
	}

	.ai-visibility-field textarea {
		min-height: 110px;
		resize: vertical;
	}

	.ai-visibility-field input:focus,
	.ai-visibility-field textarea:focus,
	.ai-visibility-field select:focus {
		box-shadow: 6px 6px 0 #111;
		transform: translate(-2px, -2px);
	}

	.ai-visibility-action-row,
	.ai-visibility-preset-row {
		display: flex;
		gap: 0.75rem;
		flex-wrap: wrap;
		margin-bottom: 1rem;
	}

	.ai-visibility-action-row button,
	.ai-visibility-preset-row button,
	.ai-visibility-copy-row button {
		border: 1.5px solid #111;
		background: #fff;
		padding: 0.82rem 1rem;
		font-weight: 700;
		cursor: pointer;
	}

	.ai-visibility-action-row .is-primary {
		background: #111;
		color: #fff;
	}

	.ai-visibility-score {
		font-size: 3rem;
		line-height: 1;
		font-weight: 800;
		margin: 0.4rem 0;
	}

	.ai-visibility-meter {
		height: 12px;
		border: 1px solid #111;
		background: #f2f4f7;
		overflow: hidden;
	}

	.ai-visibility-meter span {
		display: block;
		height: 100%;
		width: 0;
		background: #111;
	}

	.ai-visibility-list,
	.ai-visibility-prompts {
		display: grid;
		gap: 0.8rem;
		margin-top: 1rem;
	}

	.ai-visibility-item {
		border: 1px solid #d0d5dd;
		background: #f8fafc;
		padding: 0.9rem;
		line-height: 1.65;
	}

	.ai-visibility-item strong {
		display: block;
		margin-bottom: 0.35rem;
	}

	.ai-visibility-output {
		border: 1px solid #d0d5dd;
		background: #f8fafc;
		padding: 1rem;
		white-space: pre-wrap;
		line-height: 1.7;
		font-family: Consolas, Monaco, monospace;
		font-size: 0.94rem;
	}

	.ai-visibility-guide-grid {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1rem;
		margin-top: 2rem;
	}

	.ai-visibility-card {
		padding: 1.15rem;
	}

	.ai-visibility-card h3 {
		margin-top: 0;
	}

	.ai-visibility-card li,
	.ai-visibility-card p {
		font-size: 0.95rem;
		line-height: 1.7;
		color: #475467;
	}

	.ai-visibility-card ul {
		margin: 0;
		padding-left: 1rem;
	}

	@media (max-width: 1024px) {
		.ai-visibility-grid,
		.ai-visibility-guide-grid {
			grid-template-columns: 1fr;
		}
	}

/* ==================================
   BASE64.PHP
   ================================== */

    .input-area { margin-bottom: 3rem; }
    .input-area label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.05em; }
    .input-area textarea { width: 100%; height: 250px; border: 1px solid #000; padding: 1.5rem; font-family: monospace; font-size: 1rem; outline: none; background: transparent; transition: all 0.2s ease; resize: vertical; }
    .input-area textarea:focus { background: #f9f9f9; box-shadow: 6px 6px 0px #000; transform: translate(-2px, -2px); }

    .action-bar { display: flex; gap: 1rem; margin-bottom: 3rem; }

/* ==================================
   CSV-JSON.PHP
   ================================== */

    .converter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 3rem; }
    .input-box label { display: block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; color: #888; }
    .input-box textarea { width: 100%; height: 400px; border: 2px solid #000; padding: 1.5rem; font-family: monospace; font-size: 0.9rem; outline: none; background: transparent; transition: all 0.2s; resize: vertical; }
    .input-box textarea:focus { background: #fdfdfd; box-shadow: 10px 10px 0px #000; transform: translate(-2px, -2px); }

    .btn-group { display: flex; gap: 1rem; margin-bottom: 4rem; }

    @media (max-width: 900px) {
        .converter-grid { grid-template-columns: 1fr; }
    }

    /* ── SEO 카드 섹션 ───────────────────────────────────────── */
    .cj-feature-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        margin: 3rem 0;
    }
    .cj-feature-card {
        border: 2px solid #000;
        padding: 2rem 1.5rem;
        background: #fff;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }
    .cj-feature-card__tag {
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.18em;
        color: #888;
    }
    .cj-feature-card h3 {
        font-size: 1.05rem;
        font-weight: 700;
        margin: 0;
        letter-spacing: -0.01em;
    }
    .cj-feature-card p {
        font-size: 0.95rem;
        line-height: 1.7;
        color: #444;
        margin: 0;
    }

    .cj-faq-item {
        border: 1px solid #e0e0e0;
        padding: 2rem;
        background: #fafafa;
    }
    .cj-faq-item h3 {
        font-size: 1rem;
        font-weight: 700;
        margin: 0 0 0.75rem;
        padding-bottom: 0.75rem;
        border-bottom: 1px solid #e0e0e0;
    }
    .cj-faq-item p,
    .cj-faq-item ul {
        font-size: 0.95rem;
        line-height: 1.8;
        color: #555;
        margin: 0;
    }
    .cj-faq-item ul {
        padding-left: 1.2rem;
    }
    .cj-faq-item li {
        margin-bottom: 0.3rem;
    }

    .cj-security-card {
        display: flex;
        align-items: flex-start;
        gap: 1.5rem;
        border: 2px solid #000;
        padding: 2rem;
        margin-bottom: 3rem;
        background: #f9f9f9;
    }
    .cj-security-card__icon {
        font-size: 2rem;
        line-height: 1;
        flex-shrink: 0;
    }
    .cj-security-card h3 {
        font-size: 1rem;
        font-weight: 700;
        margin: 0 0 0.4rem;
    }
    .cj-security-card p {
        font-size: 0.92rem;
        line-height: 1.7;
        color: #555;
        margin: 0;
    }

    @media (max-width: 768px) {
        .cj-feature-grid { grid-template-columns: 1fr; }
    }
    @media (min-width: 576px) and (max-width: 768px) {
        .cj-feature-grid { grid-template-columns: 1fr 1fr; }
    }

    /* 다크모드 */
    body.dark-mode .cj-feature-card,
    html[data-theme="dark"] .cj-feature-card {
        background: var(--dm-card) !important;
        border-color: var(--dm-border) !important;
    }
    body.dark-mode .cj-feature-card h3,
    html[data-theme="dark"] .cj-feature-card h3 { color: var(--dm-text) !important; }
    body.dark-mode .cj-feature-card p,
    html[data-theme="dark"] .cj-feature-card p { color: var(--dm-text-soft) !important; }
    body.dark-mode .cj-faq-item,
    html[data-theme="dark"] .cj-faq-item {
        background: var(--dm-card) !important;
        border-color: var(--dm-border) !important;
    }
    body.dark-mode .cj-faq-item h3,
    html[data-theme="dark"] .cj-faq-item h3 {
        color: var(--dm-text) !important;
        border-bottom-color: var(--dm-border) !important;
    }
    body.dark-mode .cj-faq-item p,
    body.dark-mode .cj-faq-item ul,
    html[data-theme="dark"] .cj-faq-item p,
    html[data-theme="dark"] .cj-faq-item ul { color: var(--dm-text-muted) !important; }
    body.dark-mode .cj-security-card,
    html[data-theme="dark"] .cj-security-card {
        background: var(--dm-section) !important;
        border-color: var(--dm-border-strong) !important;
    }
    body.dark-mode .cj-security-card h3,
    html[data-theme="dark"] .cj-security-card h3 { color: var(--dm-text) !important; }
    body.dark-mode .cj-security-card p,
    html[data-theme="dark"] .cj-security-card p { color: var(--dm-text-soft) !important; }

/* ==================================
   EXCEL-VIEWER.PHP
   ================================== */

    .drop-zone { border: 3px dashed #000; padding: 4rem; text-align: center; margin-bottom: 3rem; background: #fff; cursor: pointer; }
    .drop-zone:hover { background: #f9f9f9; }

    .viewer-controls { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; display: none; }
    .sheet-tabs { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.5rem; }
    .sheet-tab { padding: 0.5rem 1rem; border: 1px solid #000; background: #fff; cursor: pointer; font-size: 0.85rem; font-weight: 600; white-space: nowrap; }
    .sheet-tab.active { background: #000; color: #fff; }

    .table-container { width: 100%; overflow-x: auto; border: 1px solid #000; background: #fff; max-height: 700px; overflow-y: auto; display: none; }
    table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
    th { position: sticky; top: 0; background: #000; color: #fff; padding: 1rem; text-align: left; border: 1px solid #333; z-index: 10; }
    td { padding: 0.8rem 1rem; border: 1px solid #eee; }
    tr:nth-child(even) { background: #fcfcfc; }
    tr:hover { background: #f0f0f0; }

    .search-box { padding: 0.8rem 1.5rem; border: 1px solid #000; width: 300px; outline: none; }

    .security-notice { background: #f0fff4; border: 2px solid #2e7d32; }
    .security-notice h3 { color: #2e7d32; }
    .security-notice p { color: #1b5e20; }

/* ==================================
   IMAGE-COMPRESSOR.PHP
   ================================== */

    .drop-zone { border: 3px dashed #000; padding: 5rem 2rem; text-align: center; margin-bottom: 3rem; transition: all 0.3s; cursor: pointer; background: #fff; }
    .drop-zone:hover { background: #f9f9f9; }
    .drop-zone p { font-size: 1.2rem; font-weight: 700; margin-bottom: 1.5rem; }

    .control-panel { background: #fff; border: 2px solid #000; padding: 2rem; margin-bottom: 3rem; display: none; }
    .quality-row { display: flex; align-items: center; gap: 2rem; margin-bottom: 1.5rem; }
    .quality-slider { flex: 1; height: 8px; background: #eee; accent-color: #000; -webkit-appearance: none; outline: none; }

    .image-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; }
    .image-card { border: 1px solid #000; background: #fff; padding: 1.5rem; display: flex; flex-direction: column; }
    .image-card img { width: 100%; height: 200px; object-fit: contain; background: #f5f5f5; margin-bottom: 1rem; border: 1px solid #eee; }
    .card-meta { font-size: 0.85rem; display: flex; justify-content: space-between; margin-bottom: 1rem; align-items: center; }
    .save-badge { background: #2e7d32; color: #fff; padding: 2px 8px; font-weight: 700; font-size: 0.75rem; }

    .security-notice { background: #f0fff4; border: 2px solid #2e7d32; }
    .security-notice h3 { color: #2e7d32; }
    .security-notice p { color: #1b5e20; }

    .btn-download-all { background: #000; color: #fff; border: none; padding: 1.2rem 2.5rem; font-weight: 700; cursor: pointer; text-transform: uppercase; letter-spacing: 0.1em; width: 100%; margin-top: 2rem; display: none; }

    .seo-content h2 { font-size: 2rem; font-weight: 700; margin-bottom: 2rem; letter-spacing: -0.02em; }

/* ==================================
   INVESTMENT-CALENDAR.PHP
   ================================== */

	.calendar-shell {
		display: grid;
		grid-template-columns: minmax(0, 1.45fr) 360px;
		gap: 2rem;
		align-items: start;
	}

	.calendar-panel,
	.calendar-sidebar,
	.calendar-summary-card,
	.calendar-method-card,
	.calendar-filter-chip,
	.calendar-legend-item {
		border: 1.5px solid #111;
		background: #fff;
	}

	.calendar-summary-grid {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1rem;
		margin-bottom: 2rem;
	}

	.calendar-summary-card {
		padding: 1.25rem;
		min-height: 180px;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
	}

	.calendar-summary-label,
	.calendar-toolbar-label,
	.calendar-legend-label,
	.calendar-day-week {
		font-size: 0.72rem;
		text-transform: uppercase;
		letter-spacing: 0.08em;
		font-weight: 700;
		color: #667085;
	}

	.calendar-summary-dday {
		font-size: 2.4rem;
		line-height: 1;
		font-weight: 800;
		letter-spacing: -0.04em;
		margin: 0.35rem 0 0.8rem;
	}

	.calendar-summary-title {
		font-size: 1.1rem;
		font-weight: 700;
		line-height: 1.3;
		margin: 0 0 0.45rem;
	}

	.calendar-summary-meta,
	.calendar-event-meta,
	.calendar-event-note,
	.calendar-method-card p,
	.calendar-empty {
		font-size: 0.95rem;
		line-height: 1.6;
		color: #475467;
	}

	.calendar-toolbar {
		display: flex;
		justify-content: space-between;
		align-items: center;
		gap: 1rem;
		margin-bottom: 1rem;
		flex-wrap: wrap;
	}

	.calendar-filter-group,
	.calendar-legend {
		display: flex;
		gap: 0.7rem;
		flex-wrap: wrap;
	}

	.calendar-filter-chip {
		padding: 0.65rem 0.95rem;
		cursor: pointer;
		font-weight: 700;
		font-size: 0.92rem;
		transition: 0.2s ease;
	}

	.calendar-filter-chip.is-active {
		background: #111;
		color: #fff;
	}

	.calendar-panel {
		padding: 1.25rem;
	}

	.calendar-month-header {
		display: flex;
		justify-content: space-between;
		align-items: center;
		gap: 1rem;
		margin-bottom: 1rem;
	}

	.calendar-month-title {
		font-size: clamp(1.9rem, 4vw, 2.6rem);
		line-height: 1;
		letter-spacing: -0.04em;
		margin: 0;
	}

	.calendar-nav {
		display: flex;
		gap: 0.65rem;
	}

	.calendar-nav button {
		width: 44px;
		height: 44px;
		border: 1.5px solid #111;
		background: #fff;
		font-size: 1rem;
		font-weight: 700;
		cursor: pointer;
	}

	.calendar-grid {
		display: grid;
		grid-template-columns: repeat(7, minmax(0, 1fr));
		gap: 0.65rem;
	}

	.calendar-day-week {
		padding: 0.5rem 0.25rem;
	}

	.calendar-day {
		min-height: 150px;
		border: 1.5px solid #d0d5dd;
		padding: 0.65rem;
		background: #fcfcfd;
		display: flex;
		flex-direction: column;
		gap: 0.45rem;
	}

	.calendar-day.is-outside {
		opacity: 0.42;
		background: #f8fafc;
	}

	.calendar-day.is-today {
		border-color: #111;
		box-shadow: inset 0 0 0 1px #111;
	}

	.calendar-day-head {
		display: flex;
		justify-content: space-between;
		align-items: center;
		gap: 0.4rem;
	}

	.calendar-day-number {
		font-size: 0.95rem;
		font-weight: 700;
	}

	.calendar-event-pill {
		display: block;
		padding: 0.45rem 0.55rem;
		font-size: 0.78rem;
		font-weight: 700;
		line-height: 1.35;
		border-left: 4px solid #111;
		background: #f4f4f5;
	}

	.calendar-event-pill.market-us { border-left-color: #c62828; }
	.calendar-event-pill.market-kr { border-left-color: #1565c0; }
	.calendar-event-pill.impact-high { background: #111827; color: #fff; }
	.calendar-event-pill.impact-medium { background: #eef2ff; }
	.calendar-event-pill.impact-low { background: #f5f5f5; }

	.calendar-more-label {
		font-size: 0.78rem;
		font-weight: 700;
		color: #475467;
	}

	.calendar-sidebar {
		padding: 1.25rem;
		position: sticky;
		top: 110px;
		overflow: hidden;
		display: flex;
		flex-direction: column;
		max-height: calc(100vh - 120px);
	}

	.calendar-sidebar h2,
	.calendar-method-card h2 {
		font-size: 1.1rem;
		margin: 0 0 1rem;
	}

	.calendar-upcoming-list {
		display: grid;
		gap: 0.8rem;
		align-content: start;
		overflow-y: auto;
		flex: 1;
		min-height: 0;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;
	}

	.calendar-event-card {
		border: 1px solid #d0d5dd;
		padding: 0.9rem;
		background: #fcfcfd;
	}

	.calendar-badges {
		display: flex;
		gap: 0.4rem;
		flex-wrap: wrap;
		margin-bottom: 0.55rem;
	}

	.calendar-badge {
		display: inline-flex;
		align-items: center;
		padding: 0.2rem 0.5rem;
		font-size: 0.72rem;
		font-weight: 700;
		text-transform: uppercase;
		letter-spacing: 0.06em;
		background: #eef2f6;
		color: #344054;
	}

	.calendar-badge.market-us { background: #fee2e2; color: #991b1b; }
	.calendar-badge.market-kr { background: #dbeafe; color: #1d4ed8; }
	.calendar-badge.type-official { background: #dcfce7; color: #166534; }
	.calendar-badge.type-estimated { background: #fef3c7; color: #92400e; }
	.calendar-badge.type-calculated { background: #ede9fe; color: #6d28d9; }

	.calendar-event-title {
		font-size: 1rem;
		font-weight: 700;
		margin: 0 0 0.35rem;
	}

	.calendar-legend {
		margin: 1.25rem 0;
	}

	.calendar-legend-item {
		padding: 0.55rem 0.8rem;
		font-size: 0.82rem;
		font-weight: 700;
	}

	.calendar-method-grid {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1rem;
		margin-top: 2rem;
	}

	.calendar-method-card {
		padding: 1.15rem;
	}

	.calendar-method-card ul {
		margin: 0;
		padding-left: 1rem;
		color: #475467;
		line-height: 1.7;
	}

	@media (max-width: 1080px) {
		.calendar-shell,
		.calendar-summary-grid,
		.calendar-method-grid {
			grid-template-columns: 1fr;
		}

		.calendar-sidebar {
			position: static;
			max-height: 70vh;
		}
	}

	@media (max-width: 768px) {
		.calendar-grid {
			gap: 0.45rem;
		}

		.calendar-day {
			min-height: 122px;
			padding: 0.5rem;
		}

		.calendar-event-pill {
			font-size: 0.72rem;
			padding: 0.38rem 0.42rem;
		}

		.calendar-summary-dday {
			font-size: 2rem;
		}
	}

	@media (max-width: 560px) {
		.calendar-day-week {
			font-size: 0.65rem;
		}

		.calendar-day {
			min-height: 108px;
		}

		.calendar-event-pill {
			font-size: 0.68rem;
			line-height: 1.25;
		}
	}

	/* ── 480px 이하: 달력 → 리스트 뷰 전환 ── */
	@media (max-width: 480px) {

		/* 달력 그리드 숨기고 리스트 뷰 표시 */
		.calendar-grid {
			display: none;
		}

		.calendar-mobile-list {
			display: block;
		}

		/* 리스트 뷰 날짜 행 */
		.calendar-mobile-day {
			border: 1.5px solid #d0d5dd;
			margin-bottom: 0.5rem;
			background: #fcfcfd;
		}

		.calendar-mobile-day-head {
			display: flex;
			align-items: center;
			gap: 0.6rem;
			padding: 0.6rem 0.8rem;
			cursor: pointer;
			font-weight: 700;
			font-size: 0.92rem;
		}

		.calendar-mobile-day-head .day-num {
			font-size: 1.3rem;
			font-weight: 800;
			letter-spacing: -0.03em;
			min-width: 2rem;
		}

		.calendar-mobile-day-head .day-weekname {
			color: #667085;
			font-size: 0.78rem;
			font-weight: 600;
		}

		.calendar-mobile-day-head .day-event-count {
			margin-left: auto;
			font-size: 0.78rem;
			color: #475467;
		}

		.calendar-mobile-day-head.is-today-head {
			background: #111;
			color: #fff;
		}

		.calendar-mobile-day-head.is-today-head .day-weekname,
		.calendar-mobile-day-head.is-today-head .day-event-count {
			color: #ccc;
		}

		.calendar-mobile-day-events {
			padding: 0 0.8rem 0.8rem;
			display: flex;
			flex-direction: column;
			gap: 0.4rem;
		}

		.calendar-mobile-day.no-events .calendar-mobile-day-events {
			display: none;
		}

		/* 필터 그룹 세로 정렬 */
		.calendar-toolbar {
			flex-direction: column;
			align-items: flex-start;
		}

		/* summary 카드 1열 */
		.calendar-summary-grid {
			grid-template-columns: 1fr;
		}

		.calendar-summary-card {
			min-height: auto;
		}

		/* 요약 D-day 크기 */
		.calendar-summary-dday {
			font-size: 1.6rem;
		}
	}

	/* 480px 초과에서는 모바일 리스트 숨김 */
	@media (min-width: 481px) {
		.calendar-mobile-list {
			display: none;
		}
	}

/* ══════════════════════════════════════
   DARK MODE — body.dark-mode
   ══════════════════════════════════════ */

/* 캘린더 패널 / 사이드바 / 카드 공통 배경+테두리 */
body.dark-mode .calendar-panel,
body.dark-mode .calendar-sidebar,
body.dark-mode .calendar-summary-card,
body.dark-mode .calendar-method-card,
body.dark-mode .calendar-filter-chip,
body.dark-mode .calendar-legend-item {
    border-color: #2a2a2a;
    background: #161616;
    color: #e8e8e8;
}

/* 필터 칩 활성 */
body.dark-mode .calendar-filter-chip.is-active {
    background: #e8e8e8;
    color: #111;
    border-color: #e8e8e8;
}

/* 캘린더 네비 버튼 */
body.dark-mode .calendar-nav button {
    background: #161616;
    border-color: #2a2a2a;
    color: #e8e8e8;
}
body.dark-mode .calendar-nav button:hover {
    background: #252525;
}

/* 캘린더 셀 */
body.dark-mode .calendar-day {
    background: #161616;
    border-color: #2a2a2a;
    color: #e8e8e8;
}
body.dark-mode .calendar-day.is-outside {
    background: #111;
    opacity: .5;
}
body.dark-mode .calendar-day.is-today {
    border-color: #e8e8e8;
    box-shadow: inset 0 0 0 1px #e8e8e8;
}
body.dark-mode .calendar-day-week {
    color: #666;
}
body.dark-mode .calendar-day-number {
    color: #ccc;
}

/* 이벤트 pill */
body.dark-mode .calendar-event-pill {
    background: #252525;
    color: #e8e8e8;
    border-left-color: #555;
}
body.dark-mode .calendar-event-pill.market-us { border-left-color: #ef5350; }
body.dark-mode .calendar-event-pill.market-kr { border-left-color: #42a5f5; }
body.dark-mode .calendar-event-pill.impact-high {
    background: #e8e8e8;
    color: #111;
}
body.dark-mode .calendar-event-pill.impact-medium {
    background: #1e2a3a;
    color: #a8c4e0;
}
body.dark-mode .calendar-event-pill.impact-low {
    background: #1f1f1f;
    color: #999;
}
body.dark-mode .calendar-more-label { color: #666; }

/* 우측 사이드바 이벤트 카드 */
body.dark-mode .calendar-event-card {
    background: #1a1a1a;
    border-color: #2a2a2a;
}
body.dark-mode .calendar-event-title { color: #e8e8e8; }
body.dark-mode .calendar-event-meta,
body.dark-mode .calendar-event-note  { color: #888; }

/* 배지 다크 */
body.dark-mode .calendar-badge           { background: #252525; color: #aaa; }
body.dark-mode .calendar-badge.market-us { background: #2d1a1a; color: #ef9a9a; }
body.dark-mode .calendar-badge.market-kr { background: #1a2040; color: #90caf9; }
body.dark-mode .calendar-badge.type-official   { background: #1a2d1a; color: #81c784; }
body.dark-mode .calendar-badge.type-estimated  { background: #2d2010; color: #ffcc80; }
body.dark-mode .calendar-badge.type-calculated { background: #231a35; color: #ce93d8; }

/* 요약 카드 */
body.dark-mode .calendar-summary-label { color: #666; }
body.dark-mode .calendar-summary-dday  { color: #e8e8e8; }
body.dark-mode .calendar-summary-title { color: #e8e8e8; }
body.dark-mode .calendar-summary-meta  { color: #888; }

/* 방법 카드 */
body.dark-mode .calendar-method-card h2 { color: #e8e8e8; }
body.dark-mode .calendar-method-card p,
body.dark-mode .calendar-method-card ul { color: #888; }

/* 범례 */
body.dark-mode .calendar-legend-label { color: #666; }

/* 빈 상태 */
body.dark-mode .calendar-empty { color: #666; }

/* 월 제목 */
body.dark-mode .calendar-month-title { color: #e8e8e8; }
body.dark-mode .calendar-toolbar-label { color: #666; }

/* 사이드바 섹션 헤딩 */
body.dark-mode .calendar-sidebar h2 { color: #e8e8e8; }

/* 모바일 리스트 다크모드 */
body.dark-mode .calendar-mobile-day { border-color: #2a2a2a; background: #161616; }
body.dark-mode .calendar-mobile-day-head { color: #e8e8e8; }
body.dark-mode .calendar-mobile-day-head .day-weekname,
body.dark-mode .calendar-mobile-day-head .day-event-count { color: #888; }
body.dark-mode .calendar-mobile-day-head.is-today-head { background: #2a2a2a; color: #fff; }

/* ==================================
   JSON-FORMATTER.PHP
   ================================== */

    .editor-container { margin-bottom: 2rem; position: relative; }
    .editor-container label { display: block; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; color: #000; }
    .editor-container textarea { width: 100%; height: 500px; border: 1px solid #000; padding: 2rem; font-family: 'Courier New', monospace; font-size: 0.95rem; line-height: 1.5; outline: none; background: transparent; transition: all 0.2s; resize: vertical; }
    .editor-container textarea:focus { background: #fdfdfd; box-shadow: 8px 8px 0px #000; transform: translate(-2px, -2px); }

    .button-group { display: flex; gap: 1rem; margin-bottom: 3rem; flex-wrap: wrap; }
    .btn-action { background: #000; color: #fff; border: none; padding: 1.2rem 2rem; font-weight: 700; cursor: pointer; text-transform: uppercase; letter-spacing: 0.1em; transition: all 0.2s; }
    .btn-action:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
    .btn-secondary { background: #fff; color: #000; border: 1px solid #000; padding: 1.2rem 2rem; font-weight: 700; cursor: pointer; text-transform: uppercase; letter-spacing: 0.1em; }

    #statusBadge { padding: 1rem 1.5rem; border: 1px solid #000; font-weight: 700; font-size: 0.9rem; margin-bottom: 2rem; display: none; }
    .status-valid { background: #e8f5e9; color: #2e7d32; border-color: #2e7d32 !important; }
    .status-invalid { background: #ffebee; color: #c62828; border-color: #c62828 !important; }

/* ==================================
   PDF-MERGE.PHP
   ================================== */

    .drop-zone { border: 3px dashed #000; padding: 5rem 2rem; text-align: center; margin-bottom: 3rem; transition: all 0.3s; cursor: pointer; background: #fff; }
    .drop-zone:hover { background: #f9f9f9; }
    .drop-zone.dragover { background: #f0f0f0; border-color: #555; }

    .file-list { margin-bottom: 3rem; border: 1px solid #000; display: none; }
    .file-item { display: flex; align-items: center; padding: 1.5rem; border-bottom: 1px solid #eee; background: #fff; }

    .security-notice { background: #f0fff4; border: 2px solid #2e7d32; }
    .security-notice h3 { color: #2e7d32; }
    .security-notice p { color: #1b5e20; }
    .file-item:last-child { border-bottom: none; }
    .file-name { flex: 1; font-weight: 600; font-size: 1rem; }
    .file-size { color: #888; margin: 0 1.5rem; font-size: 0.9rem; }
    .btn-remove { background: #eee; border: none; padding: 0.5rem 1rem; cursor: pointer; font-size: 0.75rem; font-weight: 700; }
    .btn-remove:hover { background: #000; color: #fff; }

    .action-panel { display: flex; gap: 1rem; margin-bottom: 4rem; display: none; }
    .btn-prime:disabled { background: #ccc; cursor: not-allowed; }

    .status-msg { padding: 1.5rem; border: 1px solid #000; margin-bottom: 2rem; font-weight: 700; display: none; }

/* ==================================
   SEO-CONTENT-BRIEF.PHP
   ================================== */

	.brief-grid {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(330px, 440px);
		gap: 2rem;
		align-items: start;
	}

	.brief-editor,
	.brief-panel,
	.brief-output-card,
	.brief-guide-card {
		border: 1.5px solid #111;
		background: #fff;
	}

	.brief-editor,
	.brief-panel,
	.brief-output-card {
		padding: 1.35rem;
	}

	.brief-field {
		margin-bottom: 1rem;
	}

	.brief-field label {
		display: block;
		font-size: 0.78rem;
		text-transform: uppercase;
		letter-spacing: 0.08em;
		font-weight: 700;
		margin-bottom: 0.45rem;
		color: #667085;
	}

	.brief-field input,
	.brief-field textarea,
	.brief-field select {
		width: 100%;
		border: 1.5px solid #111;
		padding: 0.9rem 1rem;
		font-size: 0.98rem;
		line-height: 1.6;
		background: #fff;
		outline: none;
		transition: box-shadow 0.2s ease, transform 0.2s ease;
	}

	.brief-field textarea {
		min-height: 105px;
		resize: vertical;
	}

	.brief-field input:focus,
	.brief-field textarea:focus,
	.brief-field select:focus {
		box-shadow: 6px 6px 0 #111;
		transform: translate(-2px, -2px);
	}

	.brief-row {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1rem;
	}

	.brief-action-row,
	.brief-preset-row {
		display: flex;
		gap: 0.75rem;
		flex-wrap: wrap;
		margin-bottom: 1rem;
	}

	.brief-action-row button,
	.brief-preset-row button,
	.brief-output-card button {
		border: 1.5px solid #111;
		background: #fff;
		padding: 0.82rem 1rem;
		font-weight: 700;
		cursor: pointer;
	}

	.brief-action-row .is-primary {
		background: #111;
		color: #fff;
	}

	.brief-score-grid {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.8rem;
	}

	.brief-score-card {
		border: 1px solid #d0d5dd;
		background: #f8fafc;
		padding: 0.9rem;
	}

	.brief-score-card strong {
		display: block;
		font-size: 0.78rem;
		text-transform: uppercase;
		letter-spacing: 0.08em;
		color: #667085;
		margin-bottom: 0.35rem;
	}

	.brief-score-card span {
		font-size: 1.2rem;
		font-weight: 800;
	}

	.brief-output-grid {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1rem;
		margin-top: 2rem;
	}

	.brief-output {
		border: 1px solid #d0d5dd;
		background: #f8fafc;
		padding: 1rem;
		white-space: pre-wrap;
		line-height: 1.7;
		font-family: Consolas, Monaco, monospace;
		font-size: 0.94rem;
		min-height: 170px;
	}

	.brief-guide-grid {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1rem;
		margin-top: 2rem;
	}

	.brief-guide-card {
		padding: 1.15rem;
	}

	.brief-guide-card h3 {
		margin-top: 0;
	}

	.brief-guide-card li,
	.brief-guide-card p {
		font-size: 0.95rem;
		line-height: 1.7;
		color: #475467;
	}

	.brief-guide-card ul {
		margin: 0;
		padding-left: 1rem;
	}

	@media (max-width: 1024px) {
		.brief-grid,
		.brief-output-grid,
		.brief-guide-grid,
		.brief-row,
		.brief-score-grid {
			grid-template-columns: 1fr;
		}
	}

/* ==================================
   SEO-META-PACK.PHP
   ================================== */

	.meta-pack-grid {
		display: grid;
		grid-template-columns: minmax(0, 1.15fr) minmax(320px, 420px);
		gap: 2rem;
		align-items: start;
	}

	.meta-pack-editor,
	.meta-pack-preview,
	.meta-pack-guide-card,
	.meta-pack-output-card {
		border: 1.5px solid #111;
		background: #fff;
	}

	.meta-pack-editor,
	.meta-pack-preview {
		padding: 1.4rem;
	}

	.meta-pack-field {
		margin-bottom: 1rem;
	}

	.meta-pack-field label {
		display: block;
		font-size: 0.875rem;
		text-transform: uppercase;
		letter-spacing: 0.08em;
		font-weight: 700;
		margin-bottom: 0.45rem;
		color: #667085;
	}

	.meta-pack-field input,
	.meta-pack-field textarea {
		width: 100%;
		border: 1.5px solid #111;
		padding: 0.95rem 1rem;
		font-size: 0.98rem;
		line-height: 1.6;
		background: #fff;
		outline: none;
		transition: box-shadow 0.2s ease, transform 0.2s ease;
	}

	.meta-pack-field textarea {
		min-height: 100px;
		resize: vertical;
	}

	.meta-pack-field input:focus,
	.meta-pack-field textarea:focus {
		box-shadow: 6px 6px 0 #111;
		transform: translate(-2px, -2px);
	}

	.meta-pack-field-help {
		margin-top: 0.4rem;
		font-size: 0.9rem;
		color: #667085;
		line-height: 1.6;
	}

	.meta-pack-preset-row,
	.meta-pack-action-row,
	.meta-pack-copy-row {
		display: flex;
		gap: 0.75rem;
		flex-wrap: wrap;
	}

	.meta-pack-preset-row,
	.meta-pack-action-row {
		margin-bottom: 1rem;
	}

	.meta-pack-preset-row button,
	.meta-pack-action-row button,
	.meta-pack-copy-row button {
		border: 1.5px solid #111;
		background: #fff;
		padding: 0.8rem 1rem;
		font-weight: 700;
		cursor: pointer;
	}

	.meta-pack-action-row .is-primary,
	.meta-pack-copy-row .is-primary {
		background: #111;
		color: #fff;
	}

	.meta-pack-preview h2,
	.meta-pack-guide-card h3 {
		margin-top: 0;
	}

	.meta-pack-score-grid,
	.meta-pack-output-grid,
	.meta-pack-guide-grid {
		display: grid;
		gap: 1rem;
	}

	.meta-pack-score-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		margin-bottom: 1rem;
	}

	.meta-pack-score-card {
		border: 1px solid #d0d5dd;
		padding: 0.95rem;
		background: #f8fafc;
	}

	.meta-pack-score-card strong {
		display: block;
		font-size: 0.875rem;
		text-transform: uppercase;
		letter-spacing: 0.08em;
		color: #667085;
		margin-bottom: 0.35rem;
	}

	.meta-pack-score-card span {
		font-size: 1.2rem;
		font-weight: 700;
	}

	.meta-pack-output-card {
		padding: 1rem;
	}

	.meta-pack-output-card h3 {
		margin: 0 0 0.6rem;
		font-size: 1rem;
	}

	.meta-pack-output-box {
		border: 1px solid #d0d5dd;
		background: #f8fafc;
		padding: 1rem;
		min-height: 74px;
		line-height: 1.7;
		word-break: break-word;
		font-family: Consolas, Monaco, monospace;
		font-size: 0.95rem;
	}

	.meta-pack-checklist {
		margin: 0;
		padding-left: 1.1rem;
		line-height: 1.8;
	}

	.meta-pack-checklist li,
	.meta-pack-guide-card li,
	.meta-pack-guide-card p {
		font-size: 1rem;
		color: #475467;
	}

	.meta-pack-guide-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		margin-top: 2rem;
	}

	.meta-pack-guide-card {
		padding: 1.15rem;
	}

	.meta-pack-guide-card ul {
		margin: 0;
		padding-left: 1rem;
	}

	.meta-pack-good {
		color: #166534;
	}

	.meta-pack-warn {
		color: #b45309;
	}

	@media (max-width: 1024px) {
		.meta-pack-grid,
		.meta-pack-guide-grid,
		.meta-pack-score-grid {
			grid-template-columns: 1fr;
		}
	}

/* ==================================
   SERP-PREVIEW.PHP
   ================================== */

	.serp-grid {
		display: grid;
		grid-template-columns: minmax(0, 1.15fr) minmax(320px, 420px);
		gap: 2rem;
		align-items: start;
	}

	.serp-editor,
	.serp-preview-panel,
	.serp-guide-card {
		border: 1.5px solid #111;
		background: #fff;
	}

	.serp-editor {
		padding: 1.5rem;
	}

	.serp-field {
		margin-bottom: 1.35rem;
	}

	.serp-field label {
		display: block;
		font-size: 0.78rem;
		text-transform: uppercase;
		letter-spacing: 0.08em;
		font-weight: 700;
		margin-bottom: 0.55rem;
		color: #475467;
	}

	.serp-field input,
	.serp-field textarea {
		width: 100%;
		border: 1.5px solid #111;
		padding: 0.9rem 1rem;
		font-size: 1rem;
		background: #fff;
		outline: none;
		transition: box-shadow 0.2s ease, transform 0.2s ease;
	}

	.serp-field textarea {
		min-height: 120px;
		resize: vertical;
		line-height: 1.6;
	}

	.serp-field input:focus,
	.serp-field textarea:focus {
		box-shadow: 6px 6px 0 #111;
		transform: translate(-2px, -2px);
	}

	.serp-field-meta {
		margin-top: 0.45rem;
		font-size: 0.9rem;
		color: #667085;
		display: flex;
		justify-content: space-between;
		gap: 0.75rem;
		flex-wrap: wrap;
	}

	.serp-field-meta strong.is-good { color: #166534; }
	.serp-field-meta strong.is-warn { color: #b45309; }
	.serp-field-meta strong.is-bad { color: #b42318; }

	.serp-action-row {
		display: flex;
		gap: 0.75rem;
		flex-wrap: wrap;
	}

	.serp-action-row button {
		border: 1.5px solid #111;
		background: #111;
		color: #fff;
		padding: 0.85rem 1.1rem;
		font-weight: 700;
		cursor: pointer;
	}

	.serp-action-row button.serp-secondary {
		background: #fff;
		color: #111;
	}

	.serp-preview-stack {
		display: grid;
		gap: 1rem;
	}

	.serp-preview-panel {
		padding: 1.25rem;
	}

	.serp-preview-heading {
		font-size: 0.78rem;
		text-transform: uppercase;
		letter-spacing: 0.08em;
		font-weight: 700;
		color: #667085;
		margin-bottom: 1rem;
	}

	.serp-snippet {
		border: 1px solid #d0d5dd;
		padding: 1rem;
		background: #fff;
	}

	.serp-url-line {
		font-size: 0.88rem;
		color: #1f1f1f;
		margin-bottom: 0.35rem;
	}

	.serp-title-line {
		font-size: 1.35rem;
		line-height: 1.3;
		color: #1a0dab;
		margin-bottom: 0.4rem;
		font-weight: 500;
	}

	.serp-mobile .serp-title-line {
		font-size: 1.15rem;
	}

	.serp-description-line {
		font-size: 0.94rem;
		line-height: 1.6;
		color: #4d5156;
	}

	.serp-guide-grid {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1rem;
		margin-top: 2rem;
	}

	.serp-guide-card {
		padding: 1.15rem;
	}

	.serp-guide-card h3 {
		margin: 0 0 0.7rem;
		font-size: 1rem;
	}

	.serp-guide-card p,
	.serp-guide-card li {
		font-size: 0.95rem;
		line-height: 1.7;
		color: #475467;
	}

	.serp-guide-card ul {
		margin: 0;
		padding-left: 1rem;
	}

	@media (max-width: 1024px) {
		.serp-grid,
		.serp-guide-grid {
			grid-template-columns: 1fr;
		}
	}

/* ==================================
   URL-ENCODER.PHP
   ================================== */

    .input-area { margin-bottom: 3rem; }
    .input-area label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.05em; }
    .input-area textarea { width: 100%; height: 180px; border: 1px solid #000; padding: 1.5rem; font-family: monospace; font-size: 1rem; outline: none; background: transparent; transition: all 0.2s ease; resize: vertical; }
    .input-area textarea:focus { background: #f9f9f9; box-shadow: 6px 6px 0px #000; transform: translate(-2px, -2px); }

    .action-bar { display: flex; gap: 1rem; margin-bottom: 3rem; }

/* ==================================
   UTM-BUILDER.PHP
   ================================== */

	.utm-grid {
		display: grid;
		grid-template-columns: minmax(0, 1.15fr) 380px;
		gap: 2rem;
		align-items: start;
	}

	.utm-editor,
	.utm-preview,
	.utm-guide-card {
		border: 1.5px solid #111;
		background: #fff;
	}

	.utm-editor,
	.utm-preview {
		padding: 1.4rem;
	}

	.utm-field {
		margin-bottom: 1rem;
	}

	.utm-field label {
		display: block;
		font-size: 0.78rem;
		text-transform: uppercase;
		letter-spacing: 0.08em;
		font-weight: 700;
		margin-bottom: 0.45rem;
		color: #667085;
	}

	.utm-field input {
		width: 100%;
		border: 1.5px solid #111;
		padding: 0.9rem 1rem;
		font-size: 1rem;
		outline: none;
		background: #fff;
		transition: box-shadow 0.2s ease, transform 0.2s ease;
	}

	.utm-field input:focus {
		box-shadow: 6px 6px 0 #111;
		transform: translate(-2px, -2px);
	}

	.utm-preset-row,
	.utm-action-row {
		display: flex;
		gap: 0.75rem;
		flex-wrap: wrap;
		margin-bottom: 1rem;
	}

	.utm-preset-row button,
	.utm-action-row button {
		border: 1.5px solid #111;
		background: #fff;
		padding: 0.8rem 1rem;
		font-weight: 700;
		cursor: pointer;
	}

	.utm-action-row .utm-primary {
		background: #111;
		color: #fff;
	}

	.utm-result-box {
		border: 1px solid #d0d5dd;
		background: #f8fafc;
		padding: 1rem;
		word-break: break-all;
		line-height: 1.7;
		font-family: Consolas, Monaco, monospace;
		font-size: 0.95rem;
	}

	.utm-preview h2,
	.utm-guide-card h3 {
		margin-top: 0;
	}

	.utm-preview-list {
		display: grid;
		gap: 0.7rem;
		margin-top: 1rem;
	}

	.utm-preview-item {
		border: 1px solid #d0d5dd;
		padding: 0.8rem 0.9rem;
		background: #fff;
	}

	.utm-preview-item strong {
		display: block;
		font-size: 0.78rem;
		text-transform: uppercase;
		letter-spacing: 0.08em;
		color: #667085;
		margin-bottom: 0.35rem;
	}

	.utm-guide-grid {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1rem;
		margin-top: 2rem;
	}

	.utm-guide-card {
		padding: 1.15rem;
	}

	.utm-guide-card p,
	.utm-guide-card li {
		font-size: 0.95rem;
		line-height: 1.7;
		color: #475467;
	}

	.utm-guide-card ul {
		margin: 0;
		padding-left: 1rem;
	}

	@media (max-width: 1024px) {
		.utm-grid,
		.utm-guide-grid {
			grid-template-columns: 1fr;
		}
	}

/* ==================================
   UTM-QR-GENERATOR.PHP
   ================================== */

	.utm-qr-grid {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
		gap: 2rem;
		align-items: start;
	}

	.utm-qr-editor,
	.utm-qr-preview,
	.utm-qr-card,
	.utm-qr-result {
		border: 1.5px solid #111;
		background: #fff;
	}

	.utm-qr-editor,
	.utm-qr-preview,
	.utm-qr-result {
		padding: 1.4rem;
	}

	.utm-qr-row {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1rem;
	}

	.utm-qr-field {
		margin-bottom: 1rem;
	}

	.utm-qr-field label {
		display: block;
		font-size: 0.78rem;
		text-transform: uppercase;
		letter-spacing: 0.08em;
		font-weight: 700;
		margin-bottom: 0.45rem;
		color: #667085;
	}

	.utm-qr-field input,
	.utm-qr-field select {
		width: 100%;
		border: 1.5px solid #111;
		padding: 0.9rem 1rem;
		font-size: 0.98rem;
		line-height: 1.6;
		background: #fff;
		outline: none;
		transition: box-shadow 0.2s ease, transform 0.2s ease;
	}

	.utm-qr-field input:focus,
	.utm-qr-field select:focus {
		box-shadow: 6px 6px 0 #111;
		transform: translate(-2px, -2px);
	}

	.utm-qr-action-row,
	.utm-qr-preset-row {
		display: flex;
		gap: 0.75rem;
		flex-wrap: wrap;
		margin-bottom: 1rem;
	}

	.utm-qr-action-row button,
	.utm-qr-preset-row button,
	.utm-qr-download-row a {
		border: 1.5px solid #111;
		background: #fff;
		color: #111;
		padding: 0.82rem 1rem;
		font-weight: 700;
		cursor: pointer;
		text-decoration: none;
		display: inline-flex;
		align-items: center;
	}

	.utm-qr-action-row .is-primary,
	.utm-qr-download-row .is-primary {
		background: #111;
		color: #fff;
	}

	.utm-qr-box {
		border: 1px solid #d0d5dd;
		background: #f8fafc;
		padding: 1rem;
		text-align: center;
		min-height: 300px;
		display: grid;
		place-items: center;
	}

	.utm-qr-box img {
		max-width: min(100%, 320px);
		height: auto;
		background: #fff;
	}

	.utm-qr-output {
		border: 1px solid #d0d5dd;
		background: #f8fafc;
		padding: 1rem;
		word-break: break-all;
		line-height: 1.7;
		font-family: Consolas, Monaco, monospace;
		font-size: 0.94rem;
	}

	.utm-qr-guide-grid {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1rem;
		margin-top: 2rem;
	}

	.utm-qr-card {
		padding: 1.15rem;
	}

	.utm-qr-card h3 {
		margin-top: 0;
	}

	.utm-qr-card li,
	.utm-qr-card p {
		font-size: 0.95rem;
		line-height: 1.7;
		color: #475467;
	}

	.utm-qr-card ul {
		margin: 0;
		padding-left: 1rem;
	}

	@media (max-width: 1024px) {
		.utm-qr-grid,
		.utm-qr-row,
		.utm-qr-guide-grid {
			grid-template-columns: 1fr;
		}
	}

/* ==================================
   WORD-COUNTER.PHP
   ================================== */

    .grid-main { display: grid; grid-template-columns: 1fr 320px; gap: 4rem; align-items: flex-start; }

    .editor-area label { display: block; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }
    .editor-area textarea { width: 100%; height: 500px; border: 2px solid #000; padding: 2rem; font-size: 1.1rem; line-height: 1.7; outline: none; background: transparent; transition: all 0.2s; resize: vertical; }
    .editor-area textarea:focus { background: #fdfdfd; box-shadow: 10px 10px 0px #000; transform: translate(-2px, -2px); }

    .stats-sidebar { position: sticky; top: 120px; }
    .stat-card { border: 2px solid #000; padding: 2rem; margin-bottom: 1.5rem; }
    .stat-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #888; margin-bottom: 0.5rem; display: block; }
    .stat-value { font-size: 2.5rem; font-weight: 700; color: #000; display: block; line-height: 1; }
    .stat-sub { font-size: 0.9rem; margin-top: 0.5rem; font-weight: 600; }

    @media (max-width: 900px) {
        .grid-main { grid-template-columns: 1fr; }
        .stats-sidebar { position: static; order: -1; margin-bottom: 2rem; }
        .stat-grid-mobile { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
    }

/* ==================================
   PAGE-PASSBANK-QUIZ.PHP
   ================================== */

body.page-template-page-passbank-quiz #content.site-content,
body.page-template-page-passbank-quiz .site-content {
	padding: 0 !important;
}

.pb-quiz-page-main {
	min-height: unset !important;
	padding-top: 0 !important;
	margin-top: 0 !important;
}

.pb-quiz-page-content {
	padding: 0 !important;
	margin-top: 0 !important;
	max-width: 100% !important;
	width: 100% !important;
}

.pb-quiz-page-main .page-header,
.pb-quiz-page-main .entry-header,
.pb-quiz-page-main .page-title {
	display: none !important;
}

@media (max-width: 992px) {
	body.page-template-page-passbank-quiz .mobile-menu-toggle,
	body.page-template-page-passbank-quiz .primary-navigation,
	body.page-template-page-passbank-quiz .mobile-menu-overlay {
		display: none !important;
	}

	body.page-template-page-passbank-quiz .site-header__container {
		justify-content: space-between;
		gap: 12px;
	}
}

/* ==================================
   TEMPLATE-PHONE-CALCULATOR.PHP
   ================================== */

.calc-wrapper {
  max-width: var(--layout-max-width, 1200px);
  margin: 4rem auto;
  padding: 0 var(--layout-gutter, 1.5rem);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.calc-header {
  border-bottom: 2px solid #000;
  padding-bottom: 2rem;
  margin-bottom: 4rem;
}

.calc-header h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 0;
  line-height: 1.1;
}

.calc-header__intro {
  margin-top: 1.5rem;
  font-size: 1.1rem;
  color: #555;
  max-width: 600px;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.calc-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #888;
  margin-bottom: 2rem;
  display: block;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.5rem;
}

.input-group {
  margin-bottom: 2rem;
}

.input-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.input-group input {
  width: 100%;
  padding: 1rem;
  border: 1px solid #000;
  font-size: 1.1rem;
  outline: none;
  background: transparent;
  transition: all 0.2s ease;
}

.input-group input:focus {
  background: #f0f0f0;
  box-shadow: 4px 4px 0px #000;
}

.result-card {
  grid-column: span 2;
  margin-top: 4rem;
  border: 2px solid #000;
  padding: 3rem;
  background: #fff;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  border-top: 1px solid #eee;
  padding-top: 2rem;
  margin-top: 2rem;
}

.result-item {
  display: flex;
  flex-direction: column;
}

.result-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #888;
  margin-bottom: 0.5rem;
}

.result-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #000;
}

.winner-banner {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  display: block;
}

.diff-highlight {
  background: #000;
  color: #fff;
  padding: 0.2rem 0.6rem;
}

.seo-content {
  margin-top: 8rem;
  border-top: 1px solid #eee;
  padding-top: 4rem;
}

.seo-content h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.seo-content > p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 2rem;
}

.seo-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.seo-guide-card {
  border: 1.5px solid #111;
  background: #fff;
  padding: 1.5rem;
}

.seo-guide-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e0e0e0;
  letter-spacing: -0.01em;
}

.seo-guide-card p,
.seo-guide-card ul {
  font-size: 0.92rem;
  line-height: 1.8;
  color: #475467;
  margin: 0;
}

.seo-guide-card ul {
  padding-left: 1.2rem;
}

.seo-guide-card li {
  margin-bottom: 0.35rem;
}

.faq-item h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.calc-page-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--sidebar-gap, 4rem);
  max-width: var(--layout-max-width, 1200px);
  margin: 0 auto;
  padding: 2.5rem var(--layout-gutter, 1.5rem);
  align-items: start;
}

.calc-page-layout__main {
  min-width: 0;
}

.calc-page-layout .calc-wrapper {
  max-width: none;
  margin: 0;
  padding: 0;
}

.calc-page-layout__sidebar {
  position: sticky;
  top: var(--spacing-2xl, 4rem);
}

@media (max-width: 900px) {
  .calc-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .result-card {
    grid-column: span 1;
  }

  .result-grid {
    grid-template-columns: 1fr;
  }

  .calc-header h1 {
    font-size: 2.5rem;
  }

  .calc-page-layout {
    grid-template-columns: 1fr;
  }

  .calc-page-layout__sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .seo-guide-grid {
    grid-template-columns: 1fr;
  }
}

body.dark-mode .calc-page-layout,
html[data-theme="dark"] .calc-page-layout {
  background: transparent;
}

body.dark-mode .calc-header,
html[data-theme="dark"] .calc-header {
  border-bottom-color: var(--dm-border);
}

body.dark-mode .calc-header h1,
html[data-theme="dark"] .calc-header h1 {
  color: var(--dm-text);
}

body.dark-mode .calc-section-title,
html[data-theme="dark"] .calc-section-title {
  color: var(--dm-text-muted);
  border-bottom-color: var(--dm-border);
}

body.dark-mode .calc-grid,
html[data-theme="dark"] .calc-grid {
  color: var(--dm-text);
}

body.dark-mode .plan-inputs,
html[data-theme="dark"] .plan-inputs {
  background: var(--dm-card);
  border: 1px solid var(--dm-border);
  padding: 2rem;
}

body.dark-mode .input-group label,
html[data-theme="dark"] .input-group label {
  color: var(--dm-text-soft);
}

body.dark-mode .input-group input,
html[data-theme="dark"] .input-group input {
  background: var(--dm-card-hover) !important;
  border-color: var(--dm-border) !important;
  color: var(--dm-text) !important;
}

body.dark-mode .input-group input:focus,
html[data-theme="dark"] .input-group input:focus {
  background: var(--dm-card-2) !important;
  border-color: var(--dm-border-strong) !important;
  box-shadow: 4px 4px 0px var(--dm-border-strong) !important;
}

body.dark-mode .result-card,
html[data-theme="dark"] .result-card {
  background: var(--dm-card) !important;
  border-color: var(--dm-border) !important;
}

body.dark-mode .result-label,
html[data-theme="dark"] .result-label {
  color: var(--dm-text-muted) !important;
}

body.dark-mode .result-value,
html[data-theme="dark"] .result-value {
  color: var(--dm-text) !important;
}

body.dark-mode .result-grid,
html[data-theme="dark"] .result-grid {
  border-top-color: var(--dm-border);
}

body.dark-mode .winner-banner,
html[data-theme="dark"] .winner-banner {
  color: var(--dm-text);
}

body.dark-mode .diff-highlight,
html[data-theme="dark"] .diff-highlight {
  background: var(--dm-accent) !important;
  color: #fff !important;
}

body.dark-mode .seo-content,
html[data-theme="dark"] .seo-content {
  border-top-color: var(--dm-border);
}

body.dark-mode .seo-content h2,
html[data-theme="dark"] .seo-content h2 {
  color: var(--dm-text);
}

body.dark-mode .seo-content p,
html[data-theme="dark"] .seo-content p {
  color: var(--dm-text-soft);
}

body.dark-mode .seo-guide-card,
html[data-theme="dark"] .seo-guide-card {
  background: var(--dm-card) !important;
  border-color: var(--dm-border) !important;
}

body.dark-mode .seo-guide-card h3,
html[data-theme="dark"] .seo-guide-card h3 {
  color: var(--dm-text) !important;
  border-bottom-color: var(--dm-border) !important;
}

body.dark-mode .seo-guide-card p,
body.dark-mode .seo-guide-card ul,
html[data-theme="dark"] .seo-guide-card p,
html[data-theme="dark"] .seo-guide-card ul {
  color: var(--dm-text-muted) !important;
}

body.dark-mode .calc-header p,
html[data-theme="dark"] .calc-header p {
  color: var(--dm-text-muted) !important;
}

/* ==================================
   TEMPLATE-CALC-TRAINER.PHP
   ================================== */

.trainer-wrapper {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 1.5rem;
  font-family: "Pretendard", sans-serif;
}

.trainer-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 4rem;
  align-items: start;
}

.calc-svg-wrapper {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.calc-skin {
  width: 100%;
  height: auto;
  display: block;
}

.calc-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#calcSvg * {
  visibility: hidden;
}

#calcSvg #btnOverlays,
#calcSvg #btnOverlays rect {
  visibility: visible;
  pointer-events: all;
  cursor: pointer;
  fill: transparent;
}

@keyframes btnPulse {
  0% { fill: rgba(255,235,59,0.05); }
  100% { fill: rgba(255,235,59,0.45); }
}

#calcSvg rect[data-btn].btn-highlight {
  animation: btnPulse .6s ease-in-out infinite alternate;
  stroke: #ffeb3b;
  stroke-width: 6;
}

#calcSvg rect[data-btn]:hover {
  fill: rgba(255,255,255,0.18) !important;
}

@keyframes btnPress {
  0% { fill: rgba(0,0,0,0); }
  30% { fill: rgba(0,0,0,0.25); }
  100% { fill: rgba(0,0,0,0); }
}

#calcSvg rect[data-btn].btn-pressed {
  animation: btnPress .25s ease-out;
}

#calcSvg.debug-mode #btnOverlays rect {
  fill: rgba(255,0,0,0.15) !important;
  stroke: #ff0000 !important;
  stroke-width: 2 !important;
}

#calcSvg.debug-mode #btnOverlays text {
  visibility: visible;
  fill: #ff0000;
  font-size: 18px;
  font-weight: bold;
  pointer-events: none;
}

.lcd-overlay {
  position: absolute;
  pointer-events: none;
  z-index: 10;
  top: 15.5%;
  left: 10%;
  width: 80%;
  height: 13.5%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1% 3%;
  font-family: 'Courier New', monospace;
}

.lcd-line {
  font-size: clamp(.6rem, 2vw, .9rem);
  color: #2b3224;
}

.lcd-result {
  text-align: right;
  font-size: clamp(1rem, 3vw, 1.5rem);
  font-weight: bold;
  color: #2b3224;
}

.lesson-sidebar {
  background: #fff;
  border: 2px solid #000;
  padding: 2.5rem;
}

.lesson-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #000;
  padding-bottom: 1rem;
}

.lesson-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 2rem;
}

.step-box {
  background: #f9f9f9;
  padding: 1.5rem;
  border-left: 4px solid #000;
  margin-bottom: 1.5rem;
}

.step-number {
  font-size: .75rem;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
}

.step-text {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: .5rem;
}

.lesson-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

.btn-nav {
  padding: .8rem 1.5rem;
  border: 1px solid #000;
  background: #fff;
  cursor: pointer;
  font-weight: 700;
}

.btn-nav:hover {
  background: #000;
  color: #fff;
}

#hintBox {
  display: none;
  background: #fff3f3;
  border-left: 4px solid #c62828;
  padding: 1rem;
  color: #c62828;
  font-weight: 700;
  margin-bottom: 1rem;
}

.trainer-hero {
  border-bottom: 2px solid #000;
  padding-bottom: 2rem;
  margin-bottom: 4rem;
}

.trainer-hero__eyebrow {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: #888;
  display: block;
  margin-bottom: 2rem;
}

.trainer-hero__title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -.04em;
  margin: 0;
  line-height: 1.1;
}

.trainer-debug-row {
  margin-top: 1rem;
  text-align: center;
}

.trainer-debug-toggle {
  padding: .6rem 1.2rem;
  border: 2px solid #c62828;
  background: #fff;
  color: #c62828;
  cursor: pointer;
  font-weight: 700;
  font-size: .85rem;
}

.trainer-debug-info {
  margin-left: 1rem;
  font-size: .8rem;
  color: #666;
}

.trainer-seo-section {
  margin-top: 8rem;
  border-top: 1px solid #eee;
  padding-top: 4rem;
}

.trainer-seo-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.trainer-seo-section p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
}

@media (max-width: 900px) {
  .trainer-grid {
    grid-template-columns: 1fr;
  }

  .lesson-sidebar {
    order: -1;
  }
}

body.dark-mode .lesson-sidebar,
html[data-theme="dark"] .lesson-sidebar {
  background: var(--dm-card);
  border-color: var(--dm-border);
}

body.dark-mode .lesson-title,
html[data-theme="dark"] .lesson-title {
  color: var(--dm-text);
  border-bottom-color: var(--dm-border);
}

body.dark-mode .lesson-desc,
body.dark-mode .step-number,
body.dark-mode .trainer-hero__eyebrow,
body.dark-mode .trainer-debug-info,
body.dark-mode .trainer-seo-section p,
html[data-theme="dark"] .lesson-desc,
html[data-theme="dark"] .step-number,
html[data-theme="dark"] .trainer-hero__eyebrow,
html[data-theme="dark"] .trainer-debug-info,
html[data-theme="dark"] .trainer-seo-section p {
  color: var(--dm-text-muted);
}

body.dark-mode .step-box,
html[data-theme="dark"] .step-box {
  background: var(--dm-section);
  border-left-color: var(--dm-accent);
}

body.dark-mode .step-text,
body.dark-mode .trainer-hero__title,
body.dark-mode .trainer-seo-section h2,
html[data-theme="dark"] .step-text,
html[data-theme="dark"] .trainer-hero__title,
html[data-theme="dark"] .trainer-seo-section h2 {
  color: var(--dm-text);
}

body.dark-mode .trainer-hero,
body.dark-mode .trainer-seo-section,
html[data-theme="dark"] .trainer-hero,
html[data-theme="dark"] .trainer-seo-section {
  border-color: var(--dm-border);
}

body.dark-mode .btn-nav,
body.dark-mode .trainer-debug-toggle,
html[data-theme="dark"] .btn-nav,
html[data-theme="dark"] .trainer-debug-toggle {
  background: var(--dm-card);
  color: var(--dm-text);
  border-color: var(--dm-border);
}

body.dark-mode .btn-nav:hover,
body.dark-mode .trainer-debug-toggle:hover,
html[data-theme="dark"] .btn-nav:hover,
html[data-theme="dark"] .trainer-debug-toggle:hover {
  background: var(--dm-accent);
  border-color: var(--dm-accent);
  color: #09091d;
}


/* ==================================
   TOOLS-HUB
   ================================== */

﻿/**
 * Tools Hub Layout
 * Extracted from template inline styles for stable compiled CSS.
 */

/* 
 * Minimalist Editorial / Swiss Design 
 * Focus on whitespace, clean lines, and stark typography
 */
.tools-hub-container {
    background-color: #fcfcfc;
    color: #111111;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    min-height: 100vh;
}

.tools-hub-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.tools-hub-ad-slot {
    border-right: 1px solid #000;
    border-bottom: 1px solid #000;
}

.tools-blog-section {
    margin-top: 8rem;
    border-top: 1px solid #000;
    padding-top: 4rem;
}

.tools-blog-section__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 3rem;
}

.tools-blog-section__title {
    font-size: 2.5rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.03em;
    color: #000;
}

.tools-blog-section__link {
    color: #000;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid #000;
    padding-bottom: 2px;
}

.tools-blog-grid {
    grid-template-columns: repeat(2, 1fr);
}

.tools-blog-card {
    border-right: 1px solid #000;
    border-bottom: 1px solid #000;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.tools-blog-thumb {
    width: 100%;
    height: 200px;
    border-bottom: 1px solid #000;
    overflow: hidden;
    background: #eee;
}

.tools-blog-card__body {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.tools-blog-card__title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.tools-blog-card__excerpt {
    flex-grow: 1;
}

.tools-blog-date {
    margin-top: 2rem;
    font-size: 0.85rem;
    color: #888;
    font-family: monospace;
}

.tools-blog-empty {
    padding: 2rem;
    color: #666;
}

/* Hero Section */
.tools-hero {
    margin-bottom: 5rem;
    text-align: left;
    border-bottom: 1px solid #000;
    padding-bottom: 3rem;
}

.tools-hero h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin: 0 0 1.5rem 0;
    color: #000;
}

.tools-hero p {
    font-size: 1.25rem;
    color: #444;
    max-width: 600px;
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
}

/* Search Bar */
.tools-search-wrapper {
    margin-top: 3rem;
    position: relative;
    max-width: 600px;
}

.tools-search-wrapper input {
    width: 100%;
    padding: 1.2rem 1.5rem;
    font-size: 1.1rem;
    border: 1px solid #000;
    background: transparent;
    border-radius: 0; /* Sharp corners */
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.tools-search-wrapper input:focus {
    box-shadow: 4px 4px 0px #000;
    transform: translate(-2px, -2px);
}

.tools-search-wrapper input::placeholder {
    color: #888;
}

/* Bento Grid */
.tools-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0; /* Grid with no gap, handled by borders */
    border-top: 1px solid #000;
    border-left: 1px solid #000;
}

.tool-card {
    border-right: 1px solid #000;
    border-bottom: 1px solid #000;
    padding: 3rem 2rem;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: background-color 0.3s ease;
    background: #fcfcfc;
    position: relative;
}

.tool-card--cta {
    background-color: #000;
    color: #fff;
}

.tool-card--cta .tool-icon,
.tool-card--cta .tool-title {
    color: #fff;
}

.tool-card--cta .tool-desc {
    color: #ccc;
}

.tool-card__cta-link {
    margin-top: 1rem;
    color: #fff;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.4);
    text-decoration: none;
    align-self: flex-start;
}

.tool-card:hover {
    background-color: #f0eee9; /* Subtle warm beige on hover */
}

/* Grid Spans */
.col-span-2 {
    grid-column: span 2;
}
.col-span-1 {
    grid-column: span 1;
}

/* Tool Icon Placeholder (Typography driven) */
.tool-icon {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 3rem;
    color: #000;
    font-family: monospace;
}

.tool-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.02em;
}

.tool-desc {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

.tool-arrow {
    position: absolute;
    top: 3rem;
    right: 2rem;
    font-size: 1.5rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.tool-card:hover .tool-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive */
@media (max-width: 900px) {
    .tools-bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .col-span-2 {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .tools-bento-grid {
        grid-template-columns: 1fr;
    }
    .col-span-2 {
        grid-column: span 1;
    }
}

/* Layout container overrides for tools hub */
.tools-hub-container .content-with-sidebar {
    display: flex;
    flex-wrap: nowrap;
    gap: 3rem;
    max-width: var(--layout-max-width, 1200px);
    margin: 0 auto;
    padding: 3rem var(--layout-gutter, 1.5rem);
    align-items: flex-start;
    box-sizing: border-box;
    width: 100%;
}
.tools-hub-container .main-content-area {
    flex: 1;
    min-width: 0;
    margin: 0;
}
.tools-hub-container .sidebar-area {
    width: 280px;
    flex-shrink: 0;
    flex-grow: 0;
    position: sticky;
    top: 80px;
    align-self: flex-start;
    min-width: 280px;
    max-width: 280px;
}
.tools-hub-container .full-width-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}
@media (max-width: 1024px) {
    .tools-hub-container .content-with-sidebar {
        flex-wrap: wrap;
    }
    .tools-hub-container .sidebar-area {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        position: static;
        order: 99;
    }
    .tools-hub-container .main-content-area {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .tools-hub-container .content-with-sidebar,
    .tools-hub-container .full-width-layout {
        padding: 1.5rem 1rem;
    }

    .tools-hero {
        margin-bottom: 2.5rem;
        padding-bottom: 1.75rem;
    }

    .tools-hero h1 {
        font-size: clamp(2.2rem, 11vw, 3.4rem);
        margin-bottom: 1rem;
    }

    .tools-hero p {
        font-size: 1rem;
        max-width: 100%;
    }

    .tools-search-wrapper {
        margin-top: 1.5rem;
        max-width: 100%;
    }

    .tools-search-wrapper input {
        padding: 1rem 1rem;
        font-size: 1rem;
    }

    .tools-search-wrapper input:focus {
        transform: none;
        box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.25);
    }

    .tool-card {
        padding: 1.75rem 1.25rem;
        min-height: 220px;
    }

    .tool-icon {
        font-size: 2rem;
        margin-bottom: 1.75rem;
    }

    .tool-title {
        font-size: 1.25rem;
    }

    .tool-arrow {
        top: 1.75rem;
        right: 1.25rem;
    }

    .tools-blog-section {
        margin-top: 4rem;
        padding-top: 2rem;
    }

    .tools-blog-section__header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 1.5rem;
    }

    .tools-blog-section__title {
        font-size: 1.9rem;
    }

    .tools-blog-grid {
        grid-template-columns: 1fr;
    }

    .tools-blog-thumb {
        height: 180px;
    }

    .tools-blog-card__body {
        padding: 1.5rem 1.25rem;
    }
}

@media (max-width: 576px) {
    .tools-hub-container .content-with-sidebar,
    .tools-hub-container .full-width-layout {
        padding: 1rem 0.75rem;
    }

    .tools-hero {
        margin-bottom: 2rem;
        padding-bottom: 1.25rem;
    }

    .tool-card {
        min-height: 0;
        padding: 1.4rem 1rem;
    }

    .tool-title {
        font-size: 1.1rem;
    }

    .tool-desc {
        font-size: 0.9rem;
    }

    .tools-blog-section__title {
        font-size: 1.55rem;
    }

    .tools-blog-thumb {
        height: 160px;
    }

    .tools-blog-card__body {
        padding: 1.2rem 1rem;
    }
}

/* ══════════════════════════════════════
   DARK MODE — body.dark-mode
   ══════════════════════════════════════ */
body.dark-mode .tools-hub-container,
html[data-theme="dark"] .tools-hub-container {
    background: transparent;
    color: #F3EFFF;
}

/* 히어로 */
body.dark-mode .tools-hero,
html[data-theme="dark"] .tools-hero {
    background: transparent;
    border-bottom-color: rgba(179,156,255,0.16);
}
body.dark-mode .tools-hero h1,
html[data-theme="dark"] .tools-hero h1 { color: #F3EFFF; }
body.dark-mode .tools-hero p,
html[data-theme="dark"] .tools-hero p  { color: #C9BFF2; }

/* 검색바 */
body.dark-mode .tools-search-wrapper input,
html[data-theme="dark"] .tools-search-wrapper input {
    background: rgba(43,33,94,0.72);
    border: 1px solid #33275F;
    color: #F3EFFF;
    border-radius: 10px;
    box-shadow: none;
    transform: none;
}
body.dark-mode .tools-search-wrapper input:focus,
html[data-theme="dark"] .tools-search-wrapper input:focus {
    border-color: #6F55D8;
    box-shadow: 0 0 0 3px rgba(165,107,255,0.18);
    transform: none;
}
body.dark-mode .tools-search-wrapper input::placeholder,
html[data-theme="dark"] .tools-search-wrapper input::placeholder { color: #6F62A8; }

/* Tools List Page */
.tools-list-page {
    max-width: var(--layout-max-width, 1200px);
    margin: 0 auto;
    padding: 4rem var(--layout-gutter, 1.5rem);
}

.tools-list-hero {
    border-bottom: 2px solid #000;
    padding-bottom: 3rem;
    margin-bottom: 4rem;
}

.tools-list-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin: 0 0 1rem;
    color: #000;
}

.tools-list-hero p {
    font-size: 1.15rem;
    color: #444;
    max-width: 640px;
    line-height: 1.7;
    margin: 0;
}

.tools-list-search {
    margin-top: 2rem;
    max-width: 540px;
    position: relative;
}

.tools-list-search input {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    border: 1.5px solid #000;
    background: transparent;
    border-radius: 0;
    outline: none;
    font-family: inherit;
    transition: box-shadow 0.2s;
}

.tools-list-search input:focus {
    box-shadow: 4px 4px 0 #000;
    transform: translate(-2px, -2px);
}

.tools-list-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border-top: 1.5px solid #000;
    border-left: 1.5px solid #000;
}

.tl-card {
    border-right: 1.5px solid #000;
    border-bottom: 1.5px solid #000;
    padding: 2rem 1.75rem;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: #fcfcfc;
    transition: background 0.2s;
    position: relative;
    min-width: 0;
}

.tl-card:hover {
    background: #f0eee9;
}

.tl-card__icon {
    font-size: 2rem;
    color: #111;
    line-height: 1;
}

.tl-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #000;
    margin: 0;
}

.tl-card__desc {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.55;
    margin: 0;
    flex: 1;
}

.tl-card__arrow {
    position: absolute;
    top: 1.75rem;
    right: 1.5rem;
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.2s;
    font-size: 1.1rem;
}

.tl-card:hover .tl-card__arrow {
    opacity: 1;
    transform: translateX(0);
}

.tl-empty {
    grid-column: 1 / -1;
    padding: 3rem 2rem;
    color: #888;
    font-size: 1rem;
    text-align: center;
    border-right: 1.5px solid #000;
    border-bottom: 1.5px solid #000;
}

.tl-empty.is-hidden {
    display: none;
}

@media (max-width: 900px) {
    .tools-list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 576px) {
    .tools-list-page { padding: 2rem 1rem; }
    .tools-list-hero h1 { font-size: 2.2rem; }
    .tools-list-grid { grid-template-columns: 1fr; }
    .tl-card { padding: 1.5rem 1.25rem; }
}

body.dark-mode .tools-list-hero,
html[data-theme="dark"] .tools-list-hero {
    border-bottom-color: var(--dm-border);
}
body.dark-mode .tools-list-hero h1,
html[data-theme="dark"] .tools-list-hero h1 { color: var(--dm-text-primary); }
body.dark-mode .tools-list-hero p,
html[data-theme="dark"] .tools-list-hero p  { color: var(--dm-text-secondary); }

body.dark-mode .tools-list-search input,
html[data-theme="dark"] .tools-list-search input {
    border-color: var(--dm-border);
    background: var(--dm-surface-muted);
    color: var(--dm-text-primary);
}
body.dark-mode .tools-list-search input:focus,
html[data-theme="dark"] .tools-list-search input:focus {
    box-shadow: 4px 4px 0 var(--dm-border-strong);
    transform: translate(-2px,-2px);
}

body.dark-mode .tools-list-grid,
html[data-theme="dark"] .tools-list-grid {
    border-color: var(--dm-border);
}
body.dark-mode .tl-card,
html[data-theme="dark"] .tl-card {
    background: var(--dm-surface-card);
    border-color: var(--dm-border);
}
body.dark-mode .tl-card:hover,
html[data-theme="dark"] .tl-card:hover {
    background: rgba(43,33,94,0.98);
    border-color: var(--dm-border-strong);
}
body.dark-mode .tl-card__icon,
html[data-theme="dark"] .tl-card__icon { color: var(--dm-accent); }
body.dark-mode .tl-card__title,
html[data-theme="dark"] .tl-card__title { color: var(--dm-text-primary); }
body.dark-mode .tl-card__desc,
html[data-theme="dark"] .tl-card__desc  { color: var(--dm-text-secondary); }
body.dark-mode .tl-empty,
html[data-theme="dark"] .tl-empty {
    border-color: var(--dm-border);
    color: var(--dm-text-muted);
}

/* 벤토 그리드 */
body.dark-mode .tools-bento-grid,
html[data-theme="dark"] .tools-bento-grid {
    border-color: #33275F;
}
body.dark-mode .tool-card,
html[data-theme="dark"] .tool-card {
    background: linear-gradient(180deg, rgba(33,26,73,0.94), rgba(26,21,56,0.98));
    border-color: #33275F;
    color: #F3EFFF;
}
body.dark-mode .tool-card:hover,
html[data-theme="dark"] .tool-card:hover {
    background: linear-gradient(180deg, rgba(43,33,94,0.98), rgba(33,26,73,1));
    border-color: #6F55D8;
    box-shadow: 0 18px 52px rgba(0,0,0,0.36), 0 0 0 1px rgba(165,107,255,0.14);
    transform: translateY(-2px);
}
body.dark-mode .tool-icon,
html[data-theme="dark"] .tool-icon  { color: #A56BFF; }
body.dark-mode .tool-title,
html[data-theme="dark"] .tool-title { color: #F3EFFF; }
body.dark-mode .tool-desc,
html[data-theme="dark"] .tool-desc  { color: #C9BFF2; }

/* 블로그 섹션 */
body.dark-mode .tools-blog-section,
html[data-theme="dark"] .tools-blog-section {
    border-top-color: #33275F;
}
body.dark-mode .tools-blog-section__title,
html[data-theme="dark"] .tools-blog-section__title { color: #F3EFFF; }
body.dark-mode .tools-blog-section__link,
html[data-theme="dark"] .tools-blog-section__link {
    color: #D9CCFF;
    border-bottom-color: #D9CCFF;
}
body.dark-mode .tools-blog-card,
html[data-theme="dark"] .tools-blog-card {
    background: linear-gradient(180deg, rgba(33,26,73,0.92), rgba(18,16,51,0.98));
    border-color: #33275F;
}
body.dark-mode .tools-blog-thumb,
html[data-theme="dark"] .tools-blog-thumb {
    background: linear-gradient(135deg, rgba(165,107,255,0.18), rgba(7,8,23,0.2)), #211A49;
    border-bottom-color: #33275F;
}
body.dark-mode .tools-blog-card__body,
html[data-theme="dark"] .tools-blog-card__body {
    background: transparent;
}
body.dark-mode .tools-blog-date,
html[data-theme="dark"] .tools-blog-date { color: #9385C7; }

/* 사이드바 영역 */
body.dark-mode .tools-hub-container .sidebar-area,
html[data-theme="dark"] .tools-hub-container .sidebar-area {
    color: #F3EFFF;
}
body.dark-mode .tools-hub-container .sidebar-inner .widget,
html[data-theme="dark"] .tools-hub-container .sidebar-inner .widget {
    border-top-color: #33275F;
}
body.dark-mode .tools-hub-container .sidebar-inner .widget-title,
html[data-theme="dark"] .tools-hub-container .sidebar-inner .widget-title {
    color: #B8B2D6;
}
body.dark-mode .tools-hub-container .sidebar-inner .widget a,
html[data-theme="dark"] .tools-hub-container .sidebar-inner .widget a {
    color: #EDEBFF !important;
}
body.dark-mode .tools-hub-container .sidebar-inner .widget a:hover,
html[data-theme="dark"] .tools-hub-container .sidebar-inner .widget a:hover {
    color: #FFFFFF !important;
    border-bottom-color: #8E7BFF;
}
body.dark-mode .tools-hub-container .sidebar-inner .widget_recent_entries li,
body.dark-mode .tools-hub-container .sidebar-inner .widget_categories li,
body.dark-mode .tools-hub-container .sidebar-inner .widget_pages li,
body.dark-mode .tools-hub-container .sidebar-inner .widget_nav_menu li,
html[data-theme="dark"] .tools-hub-container .sidebar-inner .widget_recent_entries li,
html[data-theme="dark"] .tools-hub-container .sidebar-inner .widget_categories li,
html[data-theme="dark"] .tools-hub-container .sidebar-inner .widget_pages li,
html[data-theme="dark"] .tools-hub-container .sidebar-inner .widget_nav_menu li {
    border-bottom-color: #33275F;
}
body.dark-mode .tools-hub-container .nexfolio-popular-tools-list li,
body.dark-mode .tools-hub-container .nexfolio-recent-guides-list li,
html[data-theme="dark"] .tools-hub-container .nexfolio-popular-tools-list li,
html[data-theme="dark"] .tools-hub-container .nexfolio-recent-guides-list li {
    border-bottom-color: #33275F !important;
}
body.dark-mode .tools-hub-container .nexfolio-popular-tools-list a,
body.dark-mode .tools-hub-container .nexfolio-recent-guides-list a,
html[data-theme="dark"] .tools-hub-container .nexfolio-popular-tools-list a,
html[data-theme="dark"] .tools-hub-container .nexfolio-recent-guides-list a {
    color: #F3EFFF !important;
}
body.dark-mode .tools-hub-container .nexfolio-popular-tools-list span,
body.dark-mode .tools-hub-container .nexfolio-recent-guides-list span,
body.dark-mode .tools-hub-container .nexfolio-popular-tools-list i,
html[data-theme="dark"] .tools-hub-container .nexfolio-popular-tools-list span,
html[data-theme="dark"] .tools-hub-container .nexfolio-recent-guides-list span,
html[data-theme="dark"] .tools-hub-container .nexfolio-popular-tools-list i {
    color: #9F97C7 !important;
}
body.dark-mode .tools-hub-container .sidebar-inner .widget_search .search-form,
html[data-theme="dark"] .tools-hub-container .sidebar-inner .widget_search .search-form {
    border-color: #33275F;
    background: rgba(24, 20, 48, 0.88);
}
body.dark-mode .tools-hub-container .sidebar-inner .widget_search input[type="search"],
html[data-theme="dark"] .tools-hub-container .sidebar-inner .widget_search input[type="search"] {
    color: #F3EFFF;
}
body.dark-mode .tools-hub-container .sidebar-inner .widget_search input[type="search"]::placeholder,
html[data-theme="dark"] .tools-hub-container .sidebar-inner .widget_search input[type="search"]::placeholder {
    color: #7E77A6;
}
body.dark-mode .tools-hub-container .sidebar-inner .widget_search button,
body.dark-mode .tools-hub-container .sidebar-inner .widget_search input[type="submit"],
html[data-theme="dark"] .tools-hub-container .sidebar-inner .widget_search button,
html[data-theme="dark"] .tools-hub-container .sidebar-inner .widget_search input[type="submit"] {
    background: #8E7BFF;
    color: #0B0D1F;
}


/* ==================================
   GRID
   ================================== */

/* Placeholder for _grid.css */

