/**
 * Learn Pages Stylesheet
 * 
 * Comprehensive SEO-optimized styling with:
 * - TOC (Table of Contents)
 * - Breadcrumbs
 * - Category hubs
 * - Related guides
 * - Article pages
 * 
 * Matches the Spotify-inspired dark theme from the main app.
 */

/* =====================================================
   CSS Variables (matching Tailwind config)
   ===================================================== */

:root {
  --spotify-black: #000000;
  --spotify-dark: #050505;
  --spotify-card: #121212;
  --spotify-card-hover: #1a1a1a;
  --spotify-green: #1DB954;
  --spotify-green-hover: #1ed760;
  --spotify-border: #272727;
  --spotify-text: #FFFFFF;
  --spotify-text-secondary: #A3A3A3;
  --spotify-text-muted: #6B6B6B;
  
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Quicksand', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --max-width: 1200px;
  --content-width: 720px;
}

/* =====================================================
   Reset & Base
   ===================================================== */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  /* Prevent horizontal overflow */
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--spotify-dark);
  color: var(--spotify-text);
  line-height: 1.6;
  min-height: 100vh;
  /* Prevent horizontal overflow on mobile */
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  /* Handle safe area for PWA/notched devices */
  padding-top: env(safe-area-inset-top, 0);
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}

a {
  color: var(--spotify-green);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--spotify-green-hover);
}

img {
  max-width: 100%;
  height: auto;
}

/* =====================================================
   Header
   ===================================================== */

.site-header {
  background-color: var(--spotify-black);
  border-bottom: 1px solid var(--spotify-border);
  position: sticky;
  top: 0;
  z-index: 100;
  /* Ensure header spans full width and covers content behind it */
  width: 100%;
  left: 0;
  right: 0;
  /* Prevent content from showing through on PWA/homescreen */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  /* Handle safe-area for PWA on devices with notch */
  padding-top: env(safe-area-inset-top, 0);
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  /* Ensure container doesn't overflow */
  width: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--spotify-green);
  line-height: 1.2;
}

.logo-subtitle {
  font-size: 0.75rem;
  color: var(--spotify-text-secondary);
  line-height: 1.2;
}

.header-nav {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--spotify-text-secondary);
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
}

.nav-link:hover {
  color: var(--spotify-text);
}

.nav-link-active {
  color: var(--spotify-green);
  border-bottom-color: var(--spotify-green);
}

/* =====================================================
   Main Content
   ===================================================== */

.main-content {
  min-height: calc(100vh - 200px);
  padding: 2rem 1.5rem;
  /* Prevent horizontal overflow */
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.hub-container {
  max-width: var(--max-width);
  margin: 0 auto;
  /* Prevent overflow */
  width: 100%;
  overflow-x: hidden;
}

/* =====================================================
   Article Layout (with sidebar)
   ===================================================== */

.article-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  /* Prevent overflow */
  width: 100%;
  overflow-x: hidden;
}

.article-container {
  max-width: var(--content-width);
  /* Prevent overflow */
  width: 100%;
  min-width: 0; /* Allow flex/grid child to shrink */
  overflow-x: hidden;
}

@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  
  .related-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--spotify-border);
  }
}

/* =====================================================
   Breadcrumbs
   ===================================================== */

.breadcrumb {
  font-size: 0.8125rem;
  color: var(--spotify-text-muted);
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}

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

.breadcrumb a:hover {
  color: var(--spotify-green);
}

.breadcrumb-sep {
  margin: 0 0.25rem;
  color: var(--spotify-text-muted);
}

.breadcrumb-current {
  color: var(--spotify-text-muted);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =====================================================
   Last Updated
   ===================================================== */

.last-updated {
  font-size: 0.75rem;
  color: var(--spotify-text-muted);
  margin-bottom: 1.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--spotify-card);
  border-radius: 6px;
  display: inline-block;
}

/* =====================================================
   Table of Contents
   ===================================================== */

.toc {
  background: linear-gradient(135deg, var(--spotify-card) 0%, rgba(29, 185, 84, 0.05) 100%);
  border: 1px solid var(--spotify-border);
  border-radius: 12px;
  padding: 1.25rem;
  margin: 1.5rem 0 2rem;
}

.toc-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--spotify-text);
  margin-bottom: 0.75rem;
}

.toc-icon {
  width: 18px;
  height: 18px;
  color: var(--spotify-green);
}

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

.toc-list li {
  margin: 0;
  padding: 0.375rem 0;
  border-bottom: 1px solid var(--spotify-border);
}

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

.toc-list a {
  color: var(--spotify-text-secondary);
  font-size: 0.875rem;
  display: block;
  transition: all 0.15s ease;
}

.toc-list a:hover {
  color: var(--spotify-green);
  padding-left: 0.25rem;
}

.toc-indent {
  padding-left: 1rem;
}

.toc-indent a {
  font-size: 0.8125rem;
  color: var(--spotify-text-muted);
}

/* Anchor links */
.anchor {
  display: block;
  position: relative;
  top: -80px;
  visibility: hidden;
}

/* =====================================================
   Hub Hero
   ===================================================== */

.hub-hero {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
}

.hub-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--spotify-text);
  margin-bottom: 0.75rem;
}

.hub-subtitle {
  font-size: 1.125rem;
  color: var(--spotify-text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

/* =====================================================
   Section Titles
   ===================================================== */

.section-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--spotify-text);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-icon {
  width: 20px;
  height: 20px;
  color: var(--spotify-green);
}

/* =====================================================
   Start Here Section
   ===================================================== */

.start-here-section {
  margin-bottom: 3rem;
}

.start-here-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.start-here-card {
  background: var(--spotify-card);
  border: 1px solid var(--spotify-border);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.start-here-card:hover {
  background: var(--spotify-card-hover);
  border-color: var(--spotify-green);
  transform: translateY(-2px);
}

.start-here-number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--spotify-green);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.start-here-content h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--spotify-text);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.start-here-content p {
  font-size: 0.8125rem;
  color: var(--spotify-text-secondary);
  line-height: 1.4;
}

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

/* =====================================================
   Categories Section
   ===================================================== */

.categories-section {
  margin-bottom: 3rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.category-card {
  background: var(--spotify-card);
  border: 1px solid var(--spotify-border);
  border-radius: 12px;
  padding: 1.25rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.category-card:hover {
  background: var(--spotify-card-hover);
  border-color: var(--spotify-green);
  transform: translateY(-2px);
}

.category-card-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--spotify-text);
  margin-bottom: 0.25rem;
}

.category-card-count {
  font-size: 0.8125rem;
  color: var(--spotify-text-muted);
}

/* =====================================================
   Latest Updates Section
   ===================================================== */

.latest-section {
  margin-bottom: 3rem;
}

.latest-list {
  background: var(--spotify-card);
  border: 1px solid var(--spotify-border);
  border-radius: 12px;
  overflow: hidden;
}

.latest-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--spotify-border);
  text-decoration: none;
  transition: background 0.15s ease;
}

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

.latest-item:hover {
  background: var(--spotify-card-hover);
}

.latest-title {
  color: var(--spotify-text);
  font-size: 0.9375rem;
  font-weight: 500;
}

.latest-date {
  color: var(--spotify-text-muted);
  font-size: 0.8125rem;
  flex-shrink: 0;
  margin-left: 1rem;
}

/* =====================================================
   FAQ Link Section
   ===================================================== */

.faq-link-section {
  margin-bottom: 2rem;
}

.faq-link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, var(--spotify-card) 0%, rgba(29, 185, 84, 0.1) 100%);
  border: 1px solid var(--spotify-border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.faq-link-card:hover {
  border-color: var(--spotify-green);
  transform: translateY(-2px);
}

.faq-link-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--spotify-green);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-link-icon svg {
  width: 24px;
  height: 24px;
  color: white;
}

.faq-question-mark {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
  line-height: 1;
}

.faq-link-content {
  flex: 1;
}

.faq-link-content h3 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--spotify-text);
  margin-bottom: 0.25rem;
}

.faq-link-content p {
  font-size: 0.875rem;
  color: var(--spotify-text-secondary);
}

.faq-link-arrow {
  font-size: 1.5rem;
  color: var(--spotify-green);
}

/* =====================================================
   Category Hub Page
   ===================================================== */

.category-hero {
  margin-bottom: 2rem;
}

.category-hub-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--spotify-text);
  margin-bottom: 0.75rem;
}

.category-hub-desc {
  font-size: 1rem;
  color: var(--spotify-text-secondary);
  max-width: 600px;
}

.article-list {
  margin-bottom: 2rem;
}

.article-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: var(--spotify-card);
  border: 1px solid var(--spotify-border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.75rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.article-list-item:hover {
  background: var(--spotify-card-hover);
  border-color: var(--spotify-green);
  transform: translateX(4px);
}

.article-list-content {
  flex: 1;
  min-width: 0;
}

.article-list-title {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--spotify-text);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.article-list-desc {
  font-size: 0.875rem;
  color: var(--spotify-text-secondary);
  line-height: 1.4;
}

.article-list-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.article-list-date {
  font-size: 0.75rem;
  color: var(--spotify-text-muted);
}

.article-list-arrow {
  font-size: 1.25rem;
  color: var(--spotify-green);
}

.other-categories {
  margin-bottom: 2rem;
}

.other-categories h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--spotify-text);
  margin-bottom: 0.75rem;
}

.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.category-chip {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--spotify-card);
  border: 1px solid var(--spotify-border);
  border-radius: 50px;
  font-size: 0.8125rem;
  color: var(--spotify-text-secondary);
  text-decoration: none;
  transition: all 0.15s ease;
}

.category-chip:hover {
  background: var(--spotify-card-hover);
  border-color: var(--spotify-green);
  color: var(--spotify-green);
}

/* =====================================================
   Related Guides Sidebar
   ===================================================== */

.related-section {
  position: sticky;
  top: 100px;
  align-self: start;
}

.related-guides,
.popular-guides {
  background: var(--spotify-card);
  border: 1px solid var(--spotify-border);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.related-guides h3,
.popular-guides h3 {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--spotify-text);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.related-list li {
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--spotify-border);
}

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

.related-list a {
  display: block;
  text-decoration: none;
}

.related-list a:hover .related-title {
  color: var(--spotify-green);
}

.related-title {
  display: block;
  font-size: 0.875rem;
  color: var(--spotify-text);
  line-height: 1.3;
  margin-bottom: 0.25rem;
  transition: color 0.15s ease;
}

.related-date {
  font-size: 0.75rem;
  color: var(--spotify-text-muted);
}

/* =====================================================
   Article Content
   ===================================================== */

.article-content {
  margin-bottom: 3rem;
}

.article-content h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--spotify-text);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.article-content h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--spotify-text);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.article-content h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--spotify-text);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.article-content p {
  color: var(--spotify-text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.article-content strong {
  color: var(--spotify-text);
  font-weight: 600;
}

.article-content em {
  font-style: italic;
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
  color: var(--spotify-text-secondary);
}

.article-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.article-content a {
  color: var(--spotify-green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-content a:hover {
  color: var(--spotify-green-hover);
}

.article-content code {
  font-family: 'SF Mono', Monaco, 'Courier New', monospace;
  font-size: 0.875em;
  background-color: var(--spotify-card);
  border: 1px solid var(--spotify-border);
  border-radius: 4px;
  padding: 0.125rem 0.375rem;
  color: var(--spotify-green);
  /* Prevent inline code from overflowing */
  word-break: break-word;
}

.article-content pre {
  background-color: var(--spotify-card);
  border: 1px solid var(--spotify-border);
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.25rem;
  /* Ensure pre blocks don't overflow container */
  max-width: 100%;
}

.article-content pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.875rem;
  color: var(--spotify-text-secondary);
  word-break: normal; /* Reset for pre code blocks */
}

.article-content blockquote {
  border-left: 3px solid var(--spotify-green);
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: var(--spotify-text-secondary);
  font-style: italic;
}

/* Table wrapper for horizontal scroll on mobile */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.25rem;
}

.article-content table {
  width: 100%;
  min-width: 400px; /* Ensure table has minimum width for readability */
  border-collapse: collapse;
  font-size: 0.875rem;
}

.article-content th,
.article-content td {
  border: 1px solid var(--spotify-border);
  padding: 0.75rem 1rem;
  text-align: left;
  white-space: nowrap; /* Prevent cell content from wrapping */
}

@media (min-width: 768px) {
  .article-content th,
  .article-content td {
    white-space: normal; /* Allow wrapping on larger screens */
  }
}

.article-content th {
  background-color: var(--spotify-card);
  color: var(--spotify-text);
  font-weight: 600;
}

.article-content td {
  color: var(--spotify-text-secondary);
}

.article-content hr {
  border: none;
  border-top: 1px solid var(--spotify-border);
  margin: 2rem 0;
}

/* =====================================================
   CTA Blocks
   ===================================================== */

.cta-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--spotify-border);
}

.cta-card {
  background-color: var(--spotify-card);
  border: 1px solid var(--spotify-border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

.cta-card h3 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--spotify-text);
  margin-bottom: 0.5rem;
}

.cta-card p {
  font-size: 0.875rem;
  color: var(--spotify-text-secondary);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.cta-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.cta-primary {
  background-color: var(--spotify-green);
  color: white;
}

.cta-primary:hover {
  background-color: var(--spotify-green-hover);
  color: white;
}

.cta-secondary {
  background-color: transparent;
  border: 1px solid var(--spotify-green);
  color: var(--spotify-green);
}

.cta-secondary:hover {
  background-color: var(--spotify-green);
  color: white;
}

/* =====================================================
   FAQ Page
   ===================================================== */

.faq-list {
  max-width: var(--content-width);
  margin: 0 auto 2rem;
}

.faq-item {
  background-color: var(--spotify-card);
  border: 1px solid var(--spotify-border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.faq-question {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--spotify-text);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.faq-answer {
  font-size: 0.9375rem;
  color: var(--spotify-text-secondary);
  line-height: 1.6;
}

.faq-more {
  text-align: center;
  color: var(--spotify-text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 2rem;
}

/* =====================================================
   Footer
   ===================================================== */

.site-footer {
  background-color: var(--spotify-black);
  border-top: 1px solid var(--spotify-border);
  padding: 2rem 1.5rem;
  margin-top: 3rem;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.footer-disclaimer {
  font-size: 0.8125rem;
  color: var(--spotify-text-muted);
  max-width: 600px;
  margin: 0 auto 1.5rem;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--spotify-text-secondary);
}

.footer-links a:hover {
  color: var(--spotify-green);
}

.footer-copyright {
  font-size: 0.8125rem;
  color: var(--spotify-text-muted);
}

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

@media (max-width: 768px) {
  .header-container {
    padding: 0.75rem 1rem;
  }
  
  .logo-subtitle {
    display: none;
  }
  
  .hub-title {
    font-size: 2rem;
  }
  
  .hub-subtitle {
    font-size: 1rem;
  }
  
  .article-content h1 {
    font-size: 1.75rem;
  }
  
  .article-content h2 {
    font-size: 1.375rem;
  }
  
  .category-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .cta-section {
    grid-template-columns: 1fr;
  }
  
  .latest-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  
  .latest-date {
    margin-left: 0;
  }
  
  .article-list-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .article-list-meta {
    margin-top: 0.5rem;
  }
}

@media (max-width: 480px) {
  .main-content {
    padding: 1.5rem 1rem;
  }
  
  .hub-title {
    font-size: 1.75rem;
  }
  
  .article-content h1 {
    font-size: 1.5rem;
  }
  
  .header-nav {
    gap: 1rem;
  }
  
  .nav-link {
    font-size: 0.8125rem;
  }
  
  .category-grid {
    grid-template-columns: 1fr;
  }
  
  .toc {
    padding: 1rem;
  }
}
