:root {
  /* Common Design Tokens */
  --brand-50: #f0fdfa;
  --brand-100: #ccfbf1;
  --brand-200: #99f6e4;
  --brand-500: #14b8a6;
  --brand-600: #0d9488;
  --brand-700: #0f766e;
  --brand-900: #134e4a;
  
  --blue: #2563eb;
  --green: #22c55e;
  --orange: #f97316;
  --red: #ef4444;
  --white: #ffffff;
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  
  /* Light Theme Variables */
  --bg-primary: #f8fafc;
  --bg-gradient-start: #f8fafc;
  --bg-gradient-middle: #edf2f7;
  --bg-gradient-end: #f8fafc;
  --grid-line: rgba(15, 23, 42, 0.035);
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --glass-bg: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(255, 255, 255, 0.72);
  --glass-border-hover: rgba(20, 184, 166, 0.38);
  --panel-border: rgba(226, 232, 240, 0.9);
  
  --shadow-soft: 0 12px 40px rgba(15, 23, 42, 0.06);
  --shadow-lift: 0 20px 50px rgba(15, 23, 42, 0.12);
  --shadow-header: 0 10px 30px rgba(15, 23, 42, 0.04);
  
  --input-bg: rgba(255, 255, 255, 0.85);
  --input-border: rgba(203, 213, 225, 0.8);
  --brand-shadow: rgba(15, 118, 110, 0.12);
  --accent-glow: rgba(20, 184, 166, 0.06);
  
  --btn-header-bg: #0f172a;
  --btn-header-text: #ffffff;
  
  --gold-bg: rgba(240, 253, 250, 0.75);
  --gold-border: rgba(15, 118, 110, 0.18);
  --gold-glow: rgba(20, 184, 166, 0.12);
  
  --active-sidebar-bg: #ccfbf1;
  --active-sidebar-text: #0f766e;
  --sidebar-hover-bg: rgba(15, 23, 42, 0.04);
}

[data-theme="dark"] {
  /* Dark Theme Variables */
  --bg-primary: #090d16;
  --bg-gradient-start: #090d16;
  --bg-gradient-middle: #0f172a;
  --bg-gradient-end: #090d16;
  --grid-line: rgba(255, 255, 255, 0.02);
  
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  
  --glass-bg: rgba(15, 23, 42, 0.75);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(20, 184, 166, 0.5);
  --panel-border: rgba(255, 255, 255, 0.08);
  
  --shadow-soft: 0 12px 40px rgba(0, 0, 0, 0.4);
  --shadow-lift: 0 20px 50px rgba(0, 0, 0, 0.5);
  --shadow-header: 0 10px 30px rgba(0, 0, 0, 0.3);
  
  --input-bg: rgba(15, 23, 42, 0.85);
  --input-border: rgba(255, 255, 255, 0.12);
  --brand-shadow: rgba(0, 0, 0, 0.3);
  --accent-glow: rgba(20, 184, 166, 0.15);
  
  --btn-header-bg: #14b8a6;
  --btn-header-text: #0f172a;
  
  --gold-bg: rgba(13, 148, 136, 0.1);
  --gold-border: rgba(20, 184, 166, 0.35);
  --gold-glow: rgba(20, 184, 166, 0.08);
  
  --active-sidebar-bg: rgba(20, 184, 166, 0.2);
  --active-sidebar-text: #2dd4bf;
  --sidebar-hover-bg: rgba(255, 255, 255, 0.04);
}

/* Base Styles */
* {
  box-sizing: border-box;
  min-width: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

button,
input,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

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

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 2px;
}

/* Background Gradients */
.app-bg {
  position: fixed;
  inset: -26vmax;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 14%, rgba(20, 184, 166, 0.22), transparent 35vmax),
    radial-gradient(circle at 86% 18%, rgba(37, 99, 235, 0.12), transparent 30vmax),
    radial-gradient(circle at 74% 86%, rgba(249, 115, 22, 0.09), transparent 28vmax),
    linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-middle) 50%, var(--bg-gradient-end) 100%);
  transition: background 0.3s ease;
}

.grid-noise {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 94%);
  transition: opacity 0.3s ease;
}

/* Glassmorphism Panel */
.glass-panel {
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Premium Typography Rules */
h1, h2, h3, h4, .brand strong, .category-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1, h2, h3, p {
  margin-top: 0;
}

/* Site Header */
.site-header {
  position: sticky;
  top: 18px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 28px));
  min-height: 72px;
  margin: 18px auto 0;
  padding: 12px 24px;
  border-radius: var(--radius-full);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 4px;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--brand-shadow);
  transition: transform 0.2s ease;
}

.brand:hover .brand-icon {
  transform: scale(1.05);
}

.brand img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.brand strong {
  display: block;
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

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

.header-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: var(--radius-full);
  background: var(--btn-header-bg);
  color: var(--btn-header-text);
  font-size: 0.9rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.3s ease, color 0.3s ease;
}

.header-link:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-1px);
}

.header-link:active {
  transform: translateY(0);
}

/* Theme Toggle Button */
.theme-toggle-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text-primary);
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}

.theme-toggle-btn:hover {
  transform: scale(1.05);
  background: var(--active-sidebar-bg);
  color: var(--active-sidebar-text);
  border-color: var(--brand-500);
}

.theme-toggle-btn svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.theme-toggle-btn:hover svg {
  transform: rotate(15deg);
}

/* Display/Hide theme icons */
.theme-toggle-btn .icon-sun { display: none; }
.theme-toggle-btn .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle-btn .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle-btn .icon-moon { display: none; }

/* Page Shell Layout */
.page-shell {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  padding: 40px 0 60px;
}

/* Hero Section */
.home-hero {
  display: grid;
  justify-items: center;
  padding: 60px 0 40px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--brand-600);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.15);
  content: "";
}

.home-hero h1 {
  max-width: 800px;
  margin-bottom: 20px;
  color: var(--text-primary);
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  line-height: 1.1;
  font-weight: 800;
}

.home-hero p {
  max-width: 620px;
  margin-bottom: 32px;
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Search Panel with KBD */
.search-panel {
  position: relative;
  width: min(640px, 100%);
}

.search-panel svg {
  position: absolute;
  top: 50%;
  left: 20px;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--text-muted);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
  transform: translateY(-50%);
  transition: stroke 0.2s;
  pointer-events: none;
}

.search-panel input {
  width: 100%;
  min-height: 60px;
  padding: 0 80px 0 56px;
  border: 1px solid var(--input-border);
  border-radius: var(--radius-full);
  background: var(--input-bg);
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.search-panel input:focus {
  border-color: var(--brand-500);
  box-shadow: var(--shadow-lift), 0 0 0 4px var(--accent-glow);
  outline: none;
}

.search-panel input:focus + svg {
  stroke: var(--brand-600);
}

.search-panel kbd {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  pointer-events: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: background-color 0.2s, border-color 0.2s;
}

/* Category Sections on Home */
.category-section {
  margin-top: 48px;
  margin-bottom: 48px;
}

.category-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--panel-border);
}

.category-icon {
  font-size: 1.5rem;
}

/* Grid layout */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

/* Topic Card */
.topic-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  padding: 24px;
  border-radius: var(--radius-lg);
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.topic-card:hover {
  border-color: var(--glass-border-hover);
  box-shadow: var(--shadow-lift), 0 0 0 8px var(--accent-glow);
  transform: translateY(-4px);
}

.topic-card h2 {
  margin: 16px 0 8px;
  color: var(--text-primary);
  font-size: 1.15rem;
  line-height: 1.3;
}

.topic-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.5;
  flex-grow: 1;
}

.topic-card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--btn-header-bg);
  color: var(--btn-header-text);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  transition: background-color 0.3s, color 0.3s;
}

.topic-card-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.topic-card-footer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  color: var(--brand-600);
  font-size: 0.85rem;
  font-weight: 700;
  transition: gap 0.2s;
}

.topic-card:hover .topic-card-footer {
  gap: 10px;
  color: var(--brand-500);
}

/* Empty search state */
.empty-state {
  grid-column: 1 / -1;
  padding: 48px;
  border-radius: var(--radius-lg);
  color: var(--text-muted);
  text-align: center;
  font-weight: 500;
}

.empty-state button {
  margin-top: 12px;
  color: var(--brand-600);
  font-weight: 700;
  text-decoration: underline;
}

/* Article Shell Layout (Two Columns on Desktop) */
.article-layout {
  display: block;
}

.article-main {
  width: 100%;
}

/* Article Sidebar List */
.article-sidebar {
  display: none;
}

/* Responsive side-by-side on desktop */
@media (min-width: 992px) {
  .article-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    align-items: start;
  }
  
  .article-sidebar {
    display: block;
    position: sticky;
    top: 108px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    padding-right: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--input-border) transparent;
  }

  .article-sidebar::-webkit-scrollbar {
    width: 4px;
  }
  
  .article-sidebar::-webkit-scrollbar-thumb {
    background-color: var(--input-border);
    border-radius: var(--radius-full);
  }
}

/* Sidebar Styling */
.sidebar-section {
  margin-bottom: 24px;
}

.sidebar-section-title {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  padding-left: 8px;
}

.sidebar-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar-nav-item a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.sidebar-nav-item a:hover {
  background: var(--sidebar-hover-bg);
  color: var(--text-primary);
}

.sidebar-nav-item.active a {
  background: var(--active-sidebar-bg);
  color: var(--active-sidebar-text);
  font-weight: 700;
}

.sidebar-nav-item svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  flex-shrink: 0;
}

/* Article Page Content */
.article {
  padding: 40px;
  border-radius: var(--radius-xl);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.breadcrumb a {
  color: var(--brand-600);
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--brand-500);
  text-decoration: underline;
}

.breadcrumb span {
  color: var(--text-light);
}

.article-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.article-heading {
  display: flex;
  align-items: center;
  gap: 18px;
}

.article h1 {
  margin: 0;
  color: var(--text-primary);
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  line-height: 1.2;
}

.article-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--btn-header-bg);
  color: var(--btn-header-text);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
  transition: background-color 0.3s, color 0.3s;
}

.article-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

/* Share Button */
.share-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text-secondary);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.share-btn:hover {
  border-color: var(--brand-500);
  background: var(--active-sidebar-bg);
  color: var(--active-sidebar-text);
  transform: scale(1.05);
}

.share-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Toast Tooltip for Copied notification */
.share-btn::after {
  content: "Link copiado!";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px) scale(0.9);
  padding: 6px 12px;
  background: #0f172a;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.share-btn.copied::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-8px) scale(1);
}

.intro {
  margin-bottom: 32px;
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.75;
}

.article-section {
  padding: 32px 0;
  border-top: 1px solid var(--panel-border);
}

.section-title {
  margin-bottom: 16px;
  color: var(--text-primary);
  font-size: 1.3rem;
  line-height: 1.3;
}

.article-section p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* Resource List */
.resource-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.resource-list li {
  position: relative;
  padding-left: 28px;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

.resource-list li::before {
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--brand-500);
  content: "";
}

.resource-list strong {
  color: var(--text-primary);
}

/* Gold Callout Card */
.gold-callout {
  margin: 16px 0 32px;
  padding: 24px;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 10% 10%, var(--gold-glow), transparent 38%),
    var(--gold-bg);
  box-shadow: 0 8px 24px rgba(20, 184, 166, 0.03);
}

.gold-callout strong {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--brand-600);
  font-size: 1.05rem;
}

[data-theme="dark"] .gold-callout strong {
  color: var(--brand-200);
}

.gold-callout p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.65;
}



/* Next Link Area */
.next-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  margin-top: 36px;
  border-radius: var(--radius-lg);
  background: var(--btn-header-bg);
  color: var(--btn-header-text);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.next-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.next-link span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  font-weight: 700;
}

[data-theme="dark"] .next-link span {
  color: var(--text-secondary);
}

.next-link strong {
  display: block;
  margin-top: 4px;
  font-size: 1.15rem;
  font-weight: 800;
}

.next-link i {
  font-style: normal;
  font-size: 1.4rem;
  transition: transform 0.2s;
}

.next-link:hover i {
  transform: translateX(4px);
}

/* Floating Back to Top Button */
.back-to-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  color: var(--text-primary);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px) scale(0.9);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background-color 0.2s, border-color 0.2s;
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top-btn:hover {
  background: var(--active-sidebar-bg);
  color: var(--active-sidebar-text);
  border-color: var(--brand-500);
  transform: translateY(-3px);
}

.back-to-top-btn svg {
  width: 20px;
  height: 20px;
}

/* Animations helper */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

/* Highlight matching search terms */
.search-highlight {
  background: rgba(20, 184, 166, 0.18);
  border-bottom: 2px solid var(--brand-500);
  border-radius: 2px;
  padding: 0 2px;
}

/* Responsive Breakpoints */
@media (max-width: 920px) {
  .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    border-radius: var(--radius-md);
    padding: 10px 16px;
  }

  .brand small,
  .header-link,
  .search-panel kbd {
    display: none;
  }

  .page-shell {
    width: calc(100% - 20px);
    padding-top: 24px;
  }

  .home-hero {
    padding: 30px 0 24px;
  }

  .home-hero h1 {
    font-size: clamp(1.8rem, 10vw, 2.5rem);
  }

  .home-hero p,
  .intro {
    font-size: 0.95rem;
  }

  .search-panel input {
    min-height: 52px;
    padding-right: 20px;
  }

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

  .topic-card {
    min-height: 180px;
    padding: 20px;
  }

  .article {
    padding: 24px;
    border-radius: var(--radius-lg);
  }

  .article-header-row {
    flex-direction: column;
    align-items: stretch;
  }

  .share-btn {
    align-self: flex-start;
  }

  .next-link {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .back-to-top-btn {
    bottom: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
