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

    :root {
      --bg-base: #F8F9FB;
      --bg-white: #FFFFFF;
      --text-primary: #1a1a2e;
      --text-secondary: #64748b;
      --text-muted: #94a3b8;
      --accent-purple: #8b5cf6;
      --accent-blue: #3b82f6;
      --border-light: #e2e8f0;
      --shadow-soft: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
      --shadow-hover: 0 4px 20px rgba(0,0,0,0.08);
      --radius: 12px;
      --radius-lg: 16px;
    }

    body {
      font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
      background: var(--bg-base);
      color: var(--text-primary);
      line-height: 1.6;
      min-height: 100vh;
    }

    body.dark-mode {
      --bg-base: #0f172a;
      --bg-white: #1e293b;
      --text-primary: #f1f5f9;
      --text-secondary: #94a3b8;
      --text-muted: #64748b;
      --border-light: #334155;
      --shadow-soft: 0 1px 3px rgba(0,0,0,0.2), 0 4px 12px rgba(0,0,0,0.15);
    }

    /* Header */
    .header {
      position: sticky;
      top: 0;
      background: var(--bg-white);
      border-bottom: 1px solid var(--border-light);
      z-index: 100;
      padding: 12px 24px;
    }

    .header-inner {
      max-width: 1200px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
    }

    .logo {
      font-size: 1.25rem;
      font-weight: 700;
      color: var(--text-primary);
      text-decoration: none;
      display: flex;
      align-items: center;
      gap: 8px;
      flex-shrink: 0;
    }

    .logo-icon {
      width: 28px;
      height: 28px;
      background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-weight: 700;
      font-size: 14px;
    }

    .search-bar {
      flex: 1;
      max-width: 480px;
      position: relative;
    }

    .search-bar input {
      width: 100%;
      padding: 10px 16px 10px 40px;
      border: 1px solid var(--border-light);
      border-radius: 50px;
      font-family: inherit;
      font-size: 0.875rem;
      background: var(--bg-base);
      color: var(--text-primary);
      outline: none;
      transition: all 0.2s;
    }

    .search-bar input:focus {
      border-color: var(--accent-purple);
      box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
    }

    .search-bar svg {
      position: absolute;
      left: 14px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--text-muted);
      width: 16px;
      height: 16px;
    }

    .header-actions {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .header-btn {
      padding: 8px 12px;
      border: none;
      background: transparent;
      color: var(--text-secondary);
      font-family: inherit;
      font-size: 0.8125rem;
      font-weight: 500;
      cursor: pointer;
      border-radius: 8px;
      transition: all 0.2s;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .header-btn:hover {
      background: var(--bg-base);
      color: var(--text-primary);
    }

    .header-btn svg {
      width: 16px;
      height: 16px;
    }

    /* Hero Section */
    .hero {
      padding: 48px 24px 32px;
      background: linear-gradient(180deg, rgba(139, 92, 246, 0.03) 0%, rgba(59, 130, 246, 0.02) 100%);
    }

    .hero-inner {
      max-width: 720px;
      margin: 0 auto;
    }

    .hero-card {
      background: var(--bg-white);
      border-radius: var(--radius-lg);
      padding: 32px;
      box-shadow: var(--shadow-soft);
      width: 100%;
      border: 1px solid var(--border-light);
    }

    .hero-headline {
      font-size: 1.5rem;
      font-weight: 700;
      text-align: center;
      margin-bottom: 24px;
      background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-purple) 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .input-wrapper {
      position: relative;
      width: 100%;
    }

    .main-input {
      width: 100%;
      min-height: 100px;
      padding: 16px 40px 32px 16px;
      border: 2px solid var(--border-light);
      border-radius: var(--radius);
      font-family: inherit;
      font-size: 1.125rem;
      resize: vertical;
      outline: none;
      transition: all 0.2s;
      background: var(--bg-white);
      display: block;
      color: var(--text-primary);
    }

    .main-input:focus {
      border-color: var(--accent-purple);
      box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.08);
    }

    .main-input::placeholder {
      color: var(--text-muted);
    }

    .char-count {
      position: absolute;
      bottom: 12px;
      right: 12px;
      font-size: 0.75rem;
      color: var(--text-muted);
    }

    .input-clear-btn {
      position: absolute;
      top: 10px;
      right: 10px;
      background: none;
      border: none;
      color: var(--text-muted);
      font-size: 0.875rem;
      cursor: pointer;
      padding: 2px 6px;
      border-radius: 4px;
      line-height: 1;
      transition: color 0.15s, background 0.15s;
    }

    .input-clear-btn:hover {
      color: var(--text-primary);
      background: var(--border-light);
    }

    /* Copy toast */
    .copy-toast {
      position: fixed;
      bottom: 24px;
      left: 50%;
      transform: translateX(-50%) translateY(20px);
      background: var(--text-primary);
      color: var(--bg-white);
      padding: 8px 20px;
      border-radius: 50px;
      font-size: 0.875rem;
      font-weight: 600;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.2s, transform 0.2s;
      z-index: 300;
      white-space: nowrap;
    }

    .copy-toast.is-visible {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }

    /* Platform Pills */
    .platform-pills {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 16px;
      justify-content: center;
    }

   /* Shared interactive chip base */
   .platform-pill,
   .decoration-tab,
   .category-tab,
   .category-more {
     border: 1px solid var(--border-light);
     font-weight: 500;
     color: var(--text-secondary);
     background: var(--bg-white);
     cursor: pointer;
     transition: all 0.2s;
   }

   /* Chip-specific overrides */
   .platform-pill {
     padding: 6px 14px;
     border-radius: 50px;
     font-size: 0.8125rem;
   }

   .platform-pill:hover,
   .platform-pill.active,
   .decoration-tab:hover,
   .decoration-tab.active,
   .decoration-item:hover,
   .category-tab:hover,
   .category-more:hover {
     border-color: var(--accent-purple);
     color: var(--accent-purple);
     background: rgba(139, 92, 246, 0.05);
   }

    /* Decoration Selector */
    .decoration-section {
      margin-top: 20px;
      padding-top: 20px;
      border-top: 1px solid var(--border-light);
    }

    .decoration-label {
      font-size: 0.75rem;
      font-weight: 600;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.05em;
      margin-bottom: 12px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .decoration-tabs {
      display: flex;
      gap: 6px;
      padding-right: 16px;
      margin-bottom: 12px;
      overflow-x: auto;
      scrollbar-width: none;
      -ms-overflow-style: none;
    }

    .decoration-tabs::-webkit-scrollbar {
      display: none;
    }

   .decoration-tab {
     padding: 6px 12px;
     border-radius: 8px;
     font-size: 0.75rem;
   }

    .decoration-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      max-height: 120px;
      overflow-y: auto;
    }

    .decoration-item {
      padding: 6px 12px;
      background: var(--bg-base);
      border: 1px solid var(--border-light);
      border-radius: 6px;
      font-size: 0.875rem;
      cursor: pointer;
      transition: all 0.2s;
    }

    .decoration-item.selected {
      border-color: var(--accent-purple);
      background: var(--accent-purple);
      color: white;
    }

    .clear-decoration {
      padding: 6px 12px;
      background: transparent;
      border: 1px dashed var(--border-light);
      border-radius: 6px;
      font-size: 0.75rem;
      color: var(--text-muted);
      cursor: pointer;
      transition: all 0.2s;
    }

    .clear-decoration:hover {
      border-color: var(--text-muted);
      color: var(--text-secondary);
    }

    /* Container */
    .container {
      max-width: 900px;
      margin: 0 auto;
      padding: 0 24px;
    }

    /* Category Tabs */
    .category-section {
      padding: 24px 0 16px;
      position: sticky;
      top: 57px;
      background: var(--bg-base);
      z-index: 50;
    }

    .category-tabs {
      display: flex;
      gap: 8px;
      overflow-x: auto;
      padding-bottom: 8px;
      padding-right: 16px;
      scrollbar-width: none;
      -ms-overflow-style: none;
    }

    .category-tabs::-webkit-scrollbar {
      display: none;
    }

   .category-tab,
   .category-more {
     padding: 10px 16px;
     border-radius: 50px;
     font-size: 0.875rem;
     white-space: nowrap;
     flex-shrink: 0;
   }

    .category-tab.active {
      background: var(--accent-purple);
      border-color: var(--accent-purple);
      color: white;
    }

    /* Results Grid */
    .results-grid {
      display: flex;
      flex-direction: column;
      gap: 8px;
      padding-bottom: 32px;
    }

    /* Skeleton loading shimmer */
    @keyframes shimmer {
      0%   { background-position: -600px 0; }
      100% { background-position: 600px 0; }
    }

    .skeleton {
      background: linear-gradient(90deg, var(--border-light) 25%, var(--bg-base) 50%, var(--border-light) 75%);
      background-size: 1200px 100%;
      animation: shimmer 1.5s infinite linear;
      border-radius: 6px;
    }

    .skeleton-tab {
      display: inline-block;
      height: 32px;
      border-radius: 20px;
    }

    .skeleton-card {
      background: var(--bg-white);
      border-radius: var(--radius);
      padding: 16px 20px;
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 16px;
      box-shadow: var(--shadow-soft);
      border: 1px solid var(--border-light);
    }

    .skeleton-card .skeleton-line {
      height: 12px;
      border-radius: 4px;
      margin-bottom: 10px;
    }

    .skeleton-card .skeleton-line:last-child {
      margin-bottom: 0;
    }

    .skeleton-card .skeleton-btn {
      width: 60px;
      height: 34px;
      border-radius: 8px;
      flex-shrink: 0;
    }

    .style-card {
      background: var(--bg-white);
      border-radius: var(--radius);
      padding: 16px 20px;
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 16px;
      box-shadow: var(--shadow-soft);
      border: 1px solid var(--border-light);
      transition: all 0.2s;
    }

    .style-card:hover {
      box-shadow: var(--shadow-hover);
      border-color: rgba(139, 92, 246, 0.2);
    }

    .style-info {
      flex: 1;
      min-width: 0;
    }

    .style-name {
      font-size: 0.75rem;
      font-weight: 600;
      color: var(--text-muted);
      margin-bottom: 6px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .style-tag {
      font-size: 0.625rem;
      padding: 2px 6px;
      background: rgba(139, 92, 246, 0.1);
      color: var(--accent-purple);
      border-radius: 4px;
      font-weight: 600;
    }

    .style-preview {
      font-size: 1.125rem;
      color: var(--text-primary);
      word-break: break-word;
      line-height: 1.5;
    }

    .style-preview.placeholder {
      color: var(--text-muted);
      font-style: italic;
    }

    .style-decoration {
      margin-top: 6px;
      font-size: 0.875rem;
      color: var(--text-secondary);
      opacity: 0.8;
    }

   .style-note {
     font-size: 0.7rem;
     color: var(--text-muted);
     margin-top: -4px;
     margin-bottom: 4px;
   }

    .copy-btn {
      padding: 8px 16px;
      border: 1px solid var(--border-light);
      border-radius: 8px;
      background: var(--bg-white);
      color: var(--text-secondary);
      font-family: inherit;
      font-size: 0.8125rem;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      gap: 5px;
    }

    .copy-kbd {
      font-family: inherit;
      font-size: 0.65rem;
      font-weight: 600;
      background: var(--border-light);
      color: var(--text-muted);
      border-radius: 3px;
      padding: 1px 4px;
      line-height: 1.4;
      opacity: 0;
      transition: opacity 0.15s;
    }

    .copy-btn:hover .copy-kbd,
    .copy-btn:focus-visible .copy-kbd {
      opacity: 1;
    }

    .copy-btn:hover .copy-kbd {
      background: rgba(255,255,255,0.2);
      color: rgba(255,255,255,0.9);
    }

    .copy-btn:hover {
      background: var(--accent-purple);
      border-color: var(--accent-purple);
      color: white;
    }

    .copy-btn.copied {
      background: #10b981;
      border-color: #10b981;
      color: white;
    }

    .copy-btn.copy-error {
      background: #ef4444;
      border-color: #ef4444;
      color: white;
    }

    .copy-btn:disabled {
      opacity: 0.5;
      cursor: not-allowed;
    }

    /* Sponsored Card */
    .sponsored-card {
      background: var(--bg-base);
      border: 1px dashed var(--border-light);
    }

    .sponsored-label {
      font-size: 0.625rem;
      font-weight: 600;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    /* Ad Block */
    .ad-block {
      margin: 24px 0;
      padding: 48px 24px;
      background: var(--bg-base);
      border: 1px dashed var(--border-light);
      border-radius: var(--radius);
      text-align: center;
    }

    .ad-block-label {
      font-size: 0.6875rem;
      font-weight: 600;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.1em;
    }

    /* FAQ Section (standalone, before footer) */
    .faq-section-wrapper {
      padding: 48px 24px;
      background: var(--bg-white);
      border-top: 1px solid var(--border-light);
    }

    /* Footer */
    .footer {
      padding: 24px 24px;
      background: var(--bg-white);
      border-top: 1px solid var(--border-light);
    }

    .footer-inner {
      max-width: 900px;
      margin: 0 auto;
    }

    .footer-links {
      display: flex;
      flex-wrap: wrap;
      gap: 12px 24px;
      margin-bottom: 32px;
    }

    .footer-link {
      font-size: 0.875rem;
      color: var(--text-secondary);
      text-decoration: none;
      transition: color 0.2s;
    }

    .footer-link:hover {
      color: var(--accent-purple);
    }

    .faq-section {
      margin-top: 32px;
    }
      
   .faq-category {
     margin-top: 24px;
     margin-bottom: 16px;
     padding-top: 0;
     font-size: 1.125rem;
     font-weight: 700;
     color: var(--text-primary);
   }

/* Add border-top on all subsequent category headings (all but first) */
   .faq-category ~ .faq-category {
     margin-top: 40px;
     padding-top: 24px;
     border-top: 1px solid var(--border-light);
   }

    .faq-question {
      width: 100%;
      padding: 16px 0;
      background: none;
      border: none;
      font-family: inherit;
      font-size: 0.9375rem;
      font-weight: 600;
      color: var(--text-primary);
      text-align: left;
      cursor: pointer;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .faq-question svg {
      width: 16px;
      height: 16px;
      color: var(--text-muted);
      transition: transform 0.2s;
    }

    .faq-item.open .faq-question svg {
      transform: rotate(180deg);
    }

    .faq-answer {
      display: none;
      padding-bottom: 16px;
      font-size: 0.875rem;
      color: var(--text-secondary);
      line-height: 1.7;
    }

    .faq-item.open .faq-answer {
      display: block;
    }

    .footer-bottom {
      margin-top: 32px;
      padding-top: 24px;
      border-top: 1px solid var(--border-light);
      font-size: 0.8125rem;
      color: var(--text-muted);
    }

    /* Responsive */
    @media (max-width: 640px) {
      .header-inner {
        flex-wrap: wrap;
      }

      .search-bar {
        order: 3;
        max-width: 100%;
        width: 100%;
        margin-top: 12px;
      }

      .header-btn span {
        display: none;
      }
    
     .hero-inner {
       max-width: 100%;
      }
       
      .hero-card {
        padding: 24px 16px;
      }

      .hero-headline {
        font-size: 1.25rem;
      }

      .style-card {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
      }

      .copy-btn {
        width: 100%;
        text-align: center;
      }

      .category-section {
        top: 57px;
        padding: 16px 0 12px;
      }

      .category-tabs {
        gap: 6px;
        padding-right: 24px;
      }

      .category-tab {
        padding: 8px 12px;
        font-size: 0.8125rem;
      }

      .decoration-tab {
        padding: 5px 10px;
        font-size: 0.6875rem;
        flex-shrink: 0;
        white-space: nowrap;
      }
    }     

/* -----------------------------
   Desktop: two-row category tabs
   - Disable horizontal scrolling
   - Wrap into rows
   - Limit to two visible rows and show "More" button if overflow
------------------------------ */
@media (min-width: 641px) {
  .category-tabs {
    /* allow wrapping and hide overflow by default on desktop */
    flex-wrap: wrap;
    overflow: hidden;
    padding-right: 8px; /* small padding since scrollbar not needed */
    /* cap height to approx two rows (approx. 48px per row + gap)
       The exact value is conservative to accommodate the .category-tab padding */
    max-height: calc(48px * 2 + 12px);
    transition: max-height 0.18s ease;
    position: relative;
  }

  /* Expanded state reveals all categories */
  .category-tabs.expanded {
    max-height: 1000px; /* large enough to show all */
    overflow: visible;
  }

  /* Hidden category helper class (applied by JS) */
  .category-tab.hidden-category {
    display: none !important;
  }
}

/* ===========================================
   Editorial Content Sections
   (for use-case pages: comment-fonts, etc.)
   =========================================== */

.hero-tagline {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 1.5rem;
  font-size: 1.05rem;
  line-height: 1.5;
  text-align: center;
}

/* Generic editorial container sections */
.how-to-use,
.why-section,
.mood-explainers,
.tips-section,
.editorial-section {
  max-width: 800px;
  margin: 3rem auto;
  padding: 0 1rem;
}

/* Section headings */
.how-to-use h2,
.why-section h2,
.mood-explainers h2,
.tips-section h2,
.editorial-section > h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Shared card / grid patterns (unchanged) */
.steps-grid,
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.step-card,
.tip-card {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-white);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
}

.step-number {
  width: 48px;
  height: 48px;
  line-height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 auto 1rem;
}

.step-card h3,
.tip-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.step-card p,
.tip-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.why-content p {
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: 1rem;
  font-size: 1rem;
}

/* Generic content block (was .mood-explainer) */
.mood-explainer,
.editorial-block {
  margin-bottom: 2.5rem;
}

.mood-explainer h3,
.editorial-block h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
}

.mood-explainer p,
.editorial-block p {
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

/* Example callout (generic) */
.mood-example,
.block-example {
  background: var(--bg-base);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border-left: 3px solid var(--accent-purple);
  font-size: 0.95rem;
  margin: 0.75rem 0;
  color: var(--text-primary);
}

.mood-example strong,
.block-example strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Responsive adjustments for editorial sections */
@media (max-width: 640px) {
  .hero-tagline {
    font-size: 0.95rem;
  }

  .how-to-use h2,
  .why-section h2,
  .mood-explainers h2,
  .tips-section h2,
  .editorial-section > h2 {
    font-size: 1.5rem;
  }

  .steps-grid,
  .tips-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .step-card,
  .tip-card {
    padding: 1.25rem;
  }

  .mood-explainer h3,
  .editorial-block h3 {
    font-size: 1.05rem;
  }
}

/* All Categories at a Glance */
.categories-glance {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.categories-glance-heading {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.categories-glance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.glance-card {
  padding: 14px 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}
.glance-card:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-1px);
}
.glance-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.glance-card-header span:last-child {
  font-weight: 500;
  font-size: 14px;
}
.glance-card-count {
  font-size: 12px;
  color: #555;
}
.glance-card-preview {
  font-size: 13px;
  font-family: 'Space Mono', monospace;
  margin-top: 8px;
}

/* -----------------------------------------------
   Component: Style Grid (.style-grid)
   Compact label + preview cards in a responsive grid.
   Use for: font showcases, feature lists, category overviews
   ----------------------------------------------- */
.style-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
  margin-top: 0.5rem;
}

.style-grid-card {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 12px 16px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  transition: border-color 0.15s ease;
}

.style-grid-card:hover {
  border-color: var(--accent-purple);
}

.style-grid-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 85px;
}

.style-grid-preview {
  font-size: 1.05rem;
  color: var(--text-primary);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* -----------------------------------------------
   Component: Data Table (.data-table)
   Quick-reference tables in any context.
   ----------------------------------------------- */
.data-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.data-table th {
  text-align: left;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.data-table td {
  padding: 0.5rem 0.75rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-light);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table code {
  background: var(--bg-base);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  color: var(--text-primary);
}

/* -----------------------------------------------
   Component: Compare Cards (.compare-grid)
   Side-by-side comparison of anything.
   ----------------------------------------------- */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.compare-card {
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  background: var(--bg-base);
}

.compare-card h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: var(--text-primary);
}

.compare-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.compare-card li {
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding: 0.2rem 0;
  line-height: 1.5;
}

.compare-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.compare-card.variant-muted .compare-badge {
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent-purple);
}

.compare-card.variant-muted li::before {
  content: "· ";
  color: var(--text-muted);
}

.compare-card.variant-positive .compare-badge {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.compare-card.variant-positive li::before {
  content: "✓ ";
  color: #10b981;
}

a {
  color: var(--accent-purple);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.header-breadcrumb {
  font-size: .8125rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-breadcrumb a {
  color: var(--text-secondary);
}

.editorial-block strong,
.mood-explainer strong {
  color: var(--text-primary);
  font-weight: 600;
}

.example-pair {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.example-pair .ex-label {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
}

.example-pair .ex-plain {
  color: var(--text-secondary);
  font-size: .9rem;
}

.example-pair .ex-arrow {
  color: var(--accent-purple);
  font-size: .85rem;
  text-align: center;
}

.example-pair .ex-styled {
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 500;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: .75rem;
  margin-top: .75rem;
}

.compare-card {
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  background: var(--bg-base);
}

.compare-card h4 {
  font-size: .9rem;
  font-weight: 600;
  margin: 0 0 .5rem 0;
  color: var(--text-primary);
}

.compare-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.compare-card li {
  font-size: .8rem;
  color: var(--text-secondary);
  padding: .2rem 0;
  line-height: 1.5;
}

.compare-badge {
  display: inline-block;
  font-size: .65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: .15rem .5rem;
  border-radius: 4px;
  margin-bottom: .5rem;
}

.compare-card.variant-muted .compare-badge {
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent-purple);
}

.compare-card.variant-muted li::before {
  content: "· ";
  color: var(--text-muted);
}

.compare-card.variant-positive .compare-badge {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.compare-card.variant-positive li::before {
  content: "✓ ";
  color: #10b981;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.section-divider {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
  border-top: 1px solid var(--border-light);
}

.article-section-label {
  display: inline-block;
  font-size: .65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 3px 10px;
  border-radius: 4px;
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent-purple);
  margin-bottom: .75rem;
}

.pull-quote {
  max-width: 800px;
  margin: 3rem auto;
  padding: 1.5rem 2rem;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  border-top: 2px solid var(--border-light);
  border-bottom: 2px solid var(--border-light);
  line-height: 1.4;
}

.cta-card {
  max-width: 800px;
  margin: 3rem auto;
  padding: 2.5rem 2rem;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.cta-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .5rem;
}

.cta-card p {
  color: var(--text-secondary);
  font-size: .95rem;
  margin-bottom: 1.5rem;
}

.cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  color: white;
  font-family: inherit;
  font-size: .9375rem;
  font-weight: 600;
  padding: 12px 32px;
  border-radius: 50px;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
  border: none;
  cursor: pointer;
}

.cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
  text-decoration: none;
}

/* Mobile responsive additions for new classes */
@media (max-width: 640px) {
  .compare-grid {
    grid-template-columns: 1fr;
  }

  .pull-quote {
    font-size: 1.1rem;
    padding: 1rem 1.25rem;
  }

  .data-table {
    font-size: .78rem;
  }

  .data-table th,
  .data-table td {
    padding: .4rem .5rem;
  }
}
/* -----------------------------------------------
   Component: Brand Card (.brand-card)
   Bordered card for brand/use-case examples within articles.
   Similar to .mood-explainer but with visible card container.
   ----------------------------------------------- */
.brand-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.brand-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.75rem 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0.5rem 0 0;
}

/* -----------------------------------------------
   Component: Tip Icon (.tip-icon)
   Emoji icon displayed above tip-card headings.
   ----------------------------------------------- */
.tip-icon {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}
/* ===========================================
   Category Index Page — /category/
   Only truly new rules; everything else reuses
   existing .style-card, .data-table, .block-example, etc.
   =========================================== */

/* /category/ index page */
.style-card.cat-anchor {
  scroll-margin-top: 80px;
  margin-bottom: 16px;
}

.cat-overview-table tbody tr {
  cursor: pointer;
  transition: background 0.15s ease;
}
.cat-overview-table tbody tr:hover {
  background: rgba(139, 92, 246, 0.05);
}

.cat-cta {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: var(--bg-white);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}
.cat-cta:hover {
  background: var(--accent-purple);
  border-color: var(--accent-purple);
  color: white;
}

/* Helper / chip / small section utilities (moved from usecase-specific page) */

/* Small helper block spacing */
.helper-section {
  margin-top: 1.25rem;
}

/* Small uppercase section label used across helper blocks */
.helper-section-title,
.style-phrase-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* Chip grid layout for small interactive chips */
.helper-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 0.5rem;
}

/* Interactive chip (use instead of many per-page variants) */
.helper-chip,
.chip {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 0.3rem 0.65rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  line-height: 1.4;
}

/* Hover / active state for chips */
.helper-chip:hover,
.chip:hover,
.helper-chip.active,
.chip.active {
  background: var(--accent-purple);
  color: #fff;
  border-color: var(--accent-purple);
}

/* Reusable small section with top border (page blocks that separate controls) */
.style-phrase-section {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
}

/* Selection indicator / helper text under inputs */
.selection-indicator {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  min-height: 1.2em;
}
.selection-indicator em {
  font-style: normal;
  color: var(--accent-purple);
  font-weight: 600;
}

/* Primary action button (rename apply-btn -> btn-primary for reuse) */
.btn-primary,
.apply-btn {
  background: var(--accent-purple);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
  margin-top: 0.5rem;
}
.btn-primary:disabled,
.apply-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.btn-primary:not(:disabled):hover,
.apply-btn:not(:disabled):hover {
  opacity: 0.85;
}

/* Small variation / character count helpers */
.variation-char-count,
.char-count-small {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}
.variation-char-over {
  color: #e53e3e;
  font-weight: 600;
}

/* Empty-state placeholder for variations area */
.variations-placeholder {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem 1rem;
  font-size: 0.95rem;
}

/* Utility for red warning emphasis */
.char-warning,
.text-warning {
  color: #e53e3e !important;
  font-weight: 700;
}

/* ===========================================
   Use Cases Page — /usecase/
   New classes appended; no existing rules altered.
   =========================================== */

/* Example block inside each use-case card */
.usecase-example {
  background: var(--bg-base);
  border: 1px solid var(--border-light);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-primary);
  margin: 8px 0;
  white-space: pre-line;
}

/* Outcome headline inside each use-case card */
.usecase-outcome {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

/* Differentiator line inside each use-case card */
.usecase-diff {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

/* Muted subline beneath section headings */
.section-subline {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: -1rem;
  margin-bottom: 1.5rem;
}

/* Inline CTA link (replaces full-width .cat-cta on use-cases page) */
.usecase-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-purple);
  text-decoration: none;
  transition: opacity 0.2s;
}
.usecase-cta:hover {
  opacity: 0.8;
}

/* Card spacing overrides scoped to use-cases page cards */
.style-card.usecase-cards {
  padding: 14px 18px;
}

/* Increase spacing between sections on the use-cases page */
.editorial-section + .editorial-section,
.editorial-section + .cta-card {
  margin-top: 4rem;
}

/* Tighter gap between cards within editorial sections */
.editorial-section .style-card + .style-card {
  margin-top: 6px;
}

/* Small optional subline in the hero (use-cases page) */
.hero-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.jump-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 14px 0 0;
}

.jump-links a {
  border: 1px solid var(--border-light);
  background: var(--bg-white);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.jump-links a:hover {
  border-color: var(--accent-purple);
  color: var(--accent-purple);
  background: rgba(139, 92, 246, 0.05);
}

.section-head {
  text-align: center;
  margin-bottom: 1.75rem;
}

.lede {
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0.75rem auto 0;
  font-size: 1rem;
  line-height: 1.65;
}

.block-example {
  background: var(--bg-base);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border-left: 3px solid var(--accent-purple);
  font-size: 0.95rem;
  margin: 0.75rem 0;
}

/* ===========================================
   Symbol Library — /library/linkedin-symbol-library/
   =========================================== */

.symbol-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin: 0.75rem 0;
}

.symbol-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  font-size: 1.5rem;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  user-select: none;
  -webkit-user-select: none;
  line-height: 1;
}

.symbol-tile:hover {
  border-color: var(--accent-purple);
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

.symbol-tile:focus-visible {
  outline: 2px solid var(--accent-purple);
  outline-offset: 2px;
}

.symbol-tile.is-copied {
  background: var(--accent-purple);
  color: #fff;
  border-color: var(--accent-purple);
}

/* Toast notification */
.symbol-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text-primary);
  color: var(--bg-base);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 200;
  white-space: nowrap;
}

.symbol-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Responsive: tablet */
@media (max-width: 768px) {
  .symbol-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Responsive: mobile */
@media (max-width: 480px) {
  .symbol-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .symbol-tile {
    font-size: 1.25rem;
  }
}

/* ==========================================================================
   Vertical Text Generator — vertical-specific components
   ========================================================================== */

/* Control panel container */
.vertical-control-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
  margin-bottom: 16px;
}

/* Each row in the control panel */
.vertical-control-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.vertical-control-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted, #888);
  text-transform: uppercase;
  letter-spacing: .04em;
  min-width: 90px;
  padding-top: 6px;
}

/* Layout select dropdown */
.vertical-layout-select {
  flex: 1;
  min-width: 160px;
  padding: 6px 10px;
  border: 1px solid var(--border, #e0e0e0);
  border-radius: 8px;
  background: var(--bg-card, #fff);
  color: var(--text, #111);
  font-size: 0.875rem;
  cursor: pointer;
}

/* Generic chip */
.vertical-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border: 1px solid var(--border, #e0e0e0);
  border-radius: 20px;
  background: var(--bg-card, #fff);
  color: var(--text, #111);
  font-size: 0.8rem;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}

.vertical-chip:hover:not(:disabled) {
  border-color: var(--accent, #6366f1);
  color: var(--accent, #6366f1);
}

.vertical-chip.active {
  background: var(--accent, #6366f1);
  border-color: var(--accent, #6366f1);
  color: #fff;
}

.vertical-chip:disabled {
  opacity: .4;
  cursor: not-allowed;
}

/* Chip groups */
.vertical-mode-chips,
.vertical-divider-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Disabled word-divider row styling */
.vertical-divider-row.disabled-row {
  opacity: .4;
  pointer-events: none;
}

/* Decoration tabs within the control panel */
.vertical-deco-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

/* Recent decorators row */
.vertical-recent-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.vertical-recent-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted, #888);
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* Vertical preview — uses pre-wrap for multi-line stacked text */
.vertical-preview {
  white-space: pre-wrap;
  font-family: monospace, monospace;
  line-height: 1.6;
  word-break: break-word;
}

/* Vertical results grid — multi-column layout for compact vertical cards */
.vertical-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  padding-bottom: 32px;
}

/* Vertical style card — compact layout sized to stacked content */
.vertical-style-card {
  flex-direction: column;
  padding: 12px 14px;
  gap: 8px;
}

.vertical-style-card .style-info {
  flex: unset;
}

.vertical-style-card .style-preview {
  font-size: 0.95rem;
  line-height: 1.4;
}

.vertical-style-card .copy-btn {
  align-self: flex-start;
  padding: 6px 12px;
  font-size: 0.75rem;
}

/* Ad cards span the full grid width */
.vertical-results-grid .ad-card {
  grid-column: 1 / -1;
}

/* Dark mode overrides */
body.dark-mode .vertical-layout-select {
  background: var(--bg-card-dark, #1e1e2e);
  color: var(--text-dark, #e2e8f0);
  border-color: var(--border-dark, #334155);
}

body.dark-mode .vertical-chip {
  background: var(--bg-card-dark, #1e1e2e);
  color: var(--text-dark, #e2e8f0);
  border-color: var(--border-dark, #334155);
}
