/* ==========================================================================
   Pusula / Kompass Guide - Authentic Human Editorial Publication Stylesheet
   Designed with classic typographic elegance, zero AI neon clichés.
   Clean, trustworthy, highly readable editorial magazine design.
   ========================================================================== */

:root {
  /* Editorial Color Palette */
  --bg-body: #faf8f5;            /* Warm off-white / book paper tone */
  --bg-surface: #ffffff;         /* Pure crisp white for cards */
  --bg-subtle: #f3efe8;          /* Light sand for secondary blocks */
  --bg-accent-soft: #fff1f2;     /* Very gentle rose for parenting/health */
  
  --text-main: #1c1917;          /* Deep warm slate/charcoal (not harsh black) */
  --text-muted: #57534e;         /* Warm grey for body prose */
  --text-light: #78716c;         /* Subdued metadata */
  
  --border-color: #e7e5e4;       /* Subtle, soft editorial border */
  --border-dark: #292524;        /* Bold editorial rule border */
  
  /* Category Accent Colors */
  --primary-rose: #be123c;       /* Rose/Cranberry for health/family */
  --primary-rose-hover: #9f1239;
  --primary-navy: #1e3a8a;       /* Classic editorial navy for guides */
  --primary-amber: #b45309;      /* Warm amber for highlights */
  --primary-emerald: #047857;    /* Medical / approved green */
  
  /* Typography */
  --font-serif: "Charter", "Bitstream Charter", "Sitka Text", "Cambria", Georgia, serif;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  
  /* Sizing & Spacing */
  --container-max: 1140px;
  --article-max: 760px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-card: 0 4px 14px -2px rgba(28, 25, 23, 0.06);
  --transition: all 0.2s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.7;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Reading Progress Bar */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background-color: var(--primary-rose);
  width: 0%;
  z-index: 9999;
  transition: width 0.1s linear;
}

/* Top Utility Masthead */
.masthead-top {
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-surface);
  font-size: 0.82rem;
  color: var(--text-light);
  padding: 0.5rem 0;
}

.masthead-top-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.publication-date {
  font-weight: 500;
  letter-spacing: 0.02em;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: var(--transition);
}

.lang-btn:hover {
  color: var(--text-main);
  background-color: var(--bg-subtle);
}

.lang-btn.active {
  background-color: var(--text-main);
  color: #fff;
  border-color: var(--text-main);
}

/* Main Navigation Bar */
.main-nav {
  border-bottom: 2px solid var(--text-main);
  background-color: var(--bg-surface);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-subtle);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  text-decoration: none;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.brand-sub {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-light);
  font-weight: 600;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.75rem;
  align-items: center;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  position: relative;
  padding-bottom: 0.25rem;
  transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary-rose);
}

.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: -0.9rem;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--primary-rose);
}

.nav-mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-color);
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  cursor: pointer;
}

/* Main Container */
.page-container {
  max-width: var(--container-max);
  margin: 2.5rem auto;
  padding: 0 1.5rem;
  flex: 1;
  width: 100%;
}

/* Breadcrumb */
.editorial-breadcrumb {
  display: flex;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.editorial-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.editorial-breadcrumb a:hover {
  color: var(--text-main);
  text-decoration: underline;
}

/* Editorial Article Layout */
.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 3.5rem;
  align-items: start;
}

.article-body {
  max-width: var(--article-max);
  font-size: 1.12rem;
  color: #292524;
  line-height: 1.85;
}

/* Article Header */
.article-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-color);
}

.article-category {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-rose);
  margin-bottom: 0.75rem;
}

.article-category.cat-game {
  color: var(--primary-navy);
}

.article-headline {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.article-subheadline {
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 1.75rem;
  font-family: var(--font-serif);
  font-style: italic;
}

/* Review / Author Byline */
.article-byline {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.88rem;
  color: var(--text-light);
}

.byline-author {
  font-weight: 600;
  color: var(--text-main);
}

.review-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: #ecfdf5;
  color: var(--primary-emerald);
  border: 1px solid #a7f3d0;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
}

/* Article Prose Typography */
.article-body p {
  margin-bottom: 1.6rem;
}

.article-body h2 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 2.75rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  letter-spacing: -0.01em;
}

.article-body h3 {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 2rem 0 0.75rem;
}

.article-body ul, 
.article-body ol {
  margin-bottom: 1.6rem;
  padding-left: 1.5rem;
}

.article-body li {
  margin-bottom: 0.5rem;
}

/* Editorial Pull Quote */
.editorial-quote {
  margin: 2rem 0;
  padding: 1.25rem 1.75rem;
  border-left: 3px solid var(--primary-rose);
  background-color: var(--bg-surface);
  box-shadow: var(--shadow-subtle);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.editorial-quote p {
  font-family: var(--font-serif);
  font-size: 1.22rem;
  font-style: italic;
  line-height: 1.6;
  color: #44403c;
  margin-bottom: 0.5rem;
}

.editorial-quote-caption {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Communication Comparison: Do's vs Don'ts */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2.25rem 0;
}

.comparison-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  box-shadow: var(--shadow-subtle);
}

.comparison-box.do-box {
  border-top: 4px solid var(--primary-emerald);
}

.comparison-box.dont-box {
  border-top: 4px solid var(--primary-rose);
}

.comparison-box-title {
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.do-box .comparison-box-title { color: var(--primary-emerald); }
.dont-box .comparison-box-title { color: var(--primary-rose); }

.comparison-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.comparison-list li {
  margin-bottom: 0.85rem;
  position: relative;
  padding-left: 1.4rem;
}

.do-box .comparison-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-emerald);
  font-weight: bold;
}

.dont-box .comparison-list li::before {
  content: '✗';
  position: absolute;
  left: 0;
  color: var(--primary-rose);
  font-weight: bold;
}

/* Interactive Checklist Card */
.kit-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin: 2.25rem 0;
  box-shadow: var(--shadow-subtle);
}

.kit-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-main);
}

.kit-card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.kit-items {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.kit-item {
  display: block;
  font-size: 0.98rem;
  padding: 0.85rem 1.15rem;
  background-color: var(--bg-body);
  border-radius: var(--radius-sm);
  line-height: 1.7;
  transition: var(--transition);
  border: 1px solid var(--border-color);
  margin-bottom: 0.75rem;
}

.kit-item:has(.kit-checkbox),
.kit-item.has-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
  border: none;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0;
}

.kit-item:hover {
  background-color: var(--bg-subtle);
}

/* Prayer Step Cards */
.prayer-step-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary-rose);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0;
  box-shadow: var(--shadow-subtle);
}

.prayer-step-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.prayer-step-body {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0;
}

.prayer-step-body ul {
  margin: 0.5rem 0 0 1.25rem;
  padding: 0;
}

.prayer-step-body li {
  margin-bottom: 0.4rem;
}

.kit-checkbox {
  margin-top: 0.3rem;
  cursor: pointer;
  accent-color: var(--primary-rose);
  width: 17px;
  height: 17px;
}

/* FAQ Accordion */
.faq-wrap {
  margin: 2.5rem 0;
}

.faq-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 0.85rem;
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
}

.faq-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.2rem 1.4rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
}

.faq-btn:hover {
  color: var(--primary-rose);
  background-color: var(--bg-body);
}

.faq-indicator {
  font-size: 1.1rem;
  color: var(--text-light);
  transition: transform 0.2s ease;
}

.faq-card.open .faq-indicator {
  transform: rotate(180deg);
}

.faq-card-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 1.4rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.faq-card.open .faq-card-content {
  max-height: 500px;
  padding: 0 1.4rem 1.25rem;
}

/* Sidebar / Table of Contents */
.editorial-sidebar {
  position: sticky;
  top: 5rem;
}

.sidebar-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-subtle);
}

.sidebar-title {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-main);
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--text-main);
  margin-bottom: 1rem;
}

.sidebar-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-list a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  display: block;
  padding: 0.25rem 0.4rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.sidebar-list a:hover,
.sidebar-list a.active {
  color: var(--primary-rose);
  font-weight: 600;
  background-color: var(--bg-accent-soft);
}

/* Magazine Feed & Cards (Homepage) */
.mag-hero {
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-color);
}

.mag-hero-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  display: block;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.mag-hero-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -3px rgba(28, 25, 23, 0.1);
  border-color: var(--text-muted);
}

.mag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.mag-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.mag-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: var(--text-muted);
}

.mag-card h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0.5rem 0 0.75rem;
  color: var(--text-main);
}

.mag-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1.25rem;
}

.mag-card-footer {
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  color: var(--primary-rose);
  border-top: 1px solid var(--border-color);
  padding-top: 0.75rem;
}

/* Cheats Engine (Clean Editorial Style) */
.clean-engine {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-subtle);
}

.clean-search {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  background-color: var(--bg-body);
}

.clean-search:focus {
  outline: none;
  border-color: var(--primary-navy);
  background-color: #fff;
}

.filter-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.clean-filter-btn {
  background-color: var(--bg-body);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.clean-filter-btn:hover,
.clean-filter-btn.active {
  background-color: var(--primary-navy);
  color: #fff;
  border-color: var(--primary-navy);
}

.clean-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.clean-table th {
  background-color: var(--bg-subtle);
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 2px solid var(--border-color);
  font-weight: 700;
}

.clean-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.clean-code {
  font-family: var(--font-mono);
  font-weight: 600;
  background-color: #f1f5f9;
  color: #0f172a;
  padding: 0.2rem 0.45rem;
  border-radius: var(--radius-sm);
  border: 1px solid #cbd5e1;
}

.clean-copy-btn {
  background-color: var(--bg-body);
  border: 1px solid var(--border-color);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.clean-copy-btn:hover {
  background-color: var(--primary-navy);
  color: #fff;
}

.clean-copy-btn.copied {
  background-color: var(--primary-emerald);
  color: #fff;
}

/* Toast */
.editorial-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: #1c1917;
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10000;
}

.editorial-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Footer */
.main-footer {
  margin-top: auto;
  border-top: 2px solid var(--border-color);
  background-color: #fff;
  padding: 3rem 1.5rem 2rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.footer-col h5 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--primary-rose);
  text-decoration: underline;
}

.footer-bottom {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-light);
  flex-wrap: wrap;
  gap: 1rem;
}

/* Responsive */
@media (max-width: 960px) {
  .article-grid {
    grid-template-columns: 1fr;
  }
  .editorial-sidebar {
    display: none;
  }
  .comparison-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 720px) {
  .article-headline {
    font-size: 1.95rem;
  }
  .nav-mobile-toggle {
    display: block;
  }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    border-bottom: 2px solid var(--text-main);
    flex-direction: column;
    padding: 1.5rem;
    display: none;
  }
  .nav-menu.open {
    display: flex;
  }
}

/* Infographic Timeline */
.infographic-timeline {
  position: relative;
  margin: 2.5rem 0;
  padding-left: 2rem;
  border-left: 3px solid var(--border-color);
}

.timeline-milestone {
  position: relative;
  margin-bottom: 2rem;
  padding: 1.25rem 1.5rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-subtle);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.timeline-milestone:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.timeline-marker {
  position: absolute;
  left: -2.85rem;
  top: 1.25rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--primary-rose);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--border-color);
}

.timeline-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
}

.timeline-year {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-rose);
  font-family: var(--font-sans);
  background-color: var(--bg-subtle);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.timeline-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  background-color: var(--primary-navy);
  color: #fff;
}

.timeline-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  line-height: 1.4;
}

.timeline-body {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* 12. Spoiler Component */
.spoiler-container {
  background-color: var(--bg-subtle);
  border: 2px dashed #e11d48;
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin: 2rem 0;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
}

.spoiler-warning-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(225, 29, 72, 0.12);
  color: #e11d48;
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
}

.spoiler-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.spoiler-toggle-btn {
  background-color: #e11d48;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem 1.75rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.35);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 auto;
}

.spoiler-toggle-btn:hover {
  background-color: #be123c;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.45);
}

.spoiler-content {
  display: none;
  text-align: left;
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-color);
  animation: fadeInSpoiler 0.4s ease forwards;
}

.spoiler-container.is-revealed .spoiler-content {
  display: block;
}

.spoiler-container.is-revealed {
  border-style: solid;
  border-color: var(--border-color);
}

@keyframes fadeInSpoiler {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* LyricsTranslate Parallel Layout */
.lyrics-translate-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin: 2.25rem 0;
  box-shadow: var(--shadow-subtle);
  overflow: hidden;
}

.lyrics-translate-header {
  background-color: var(--bg-subtle);
  border-bottom: 2px solid var(--border-color);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
}

.lyrics-lang-title {
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-right: 1px solid var(--border-color);
}

.lyrics-lang-title:last-child {
  border-right: none;
}

.lyrics-stanza-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.15s ease;
}

.lyrics-stanza-row:last-child {
  border-bottom: none;
}

.lyrics-stanza-row:hover {
  background-color: var(--bg-body);
}

.lyrics-stanza-col {
  padding: 1.35rem 1.25rem;
  border-right: 1px solid var(--border-color);
  font-size: 0.98rem;
  line-height: 1.9;
}

.lyrics-stanza-col:last-child {
  border-right: none;
}

.lyrics-stanza-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-rose);
  background-color: var(--bg-accent-soft);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.65rem;
}

@media (max-width: 900px) {
  .lyrics-translate-header {
    display: none;
  }
  .lyrics-stanza-row {
    grid-template-columns: 1fr;
  }
  .lyrics-stanza-col {
    border-right: none;
    border-bottom: 1px dashed var(--border-color);
  }
  .lyrics-stanza-col:last-child {
    border-bottom: none;
  }
}

/* ==========================================================================
   LYRICSTRANSLATE DEDICATED PLAYER & VIEWER SYSTEM
   ========================================================================== */
.lt-page-wrapper {
  max-width: 1320px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 4rem;
}

/* Top UI Bar with Language Switcher */
.lt-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.75rem 0 1.25rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.lt-breadcrumb {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lt-breadcrumb a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
}

.lt-breadcrumb a:hover {
  text-decoration: underline;
}

.lt-ui-lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: var(--bg-surface);
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-subtle);
}

.lt-ui-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-right: 0.25rem;
  padding-left: 0.25rem;
}

.lt-ui-btn {
  background: transparent;
  border: none;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.lt-ui-btn:hover {
  color: var(--text-main);
  background-color: var(--bg-subtle);
}

.lt-ui-btn.active {
  background-color: var(--primary-navy);
  color: #fff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25);
}

/* Song Header Banner */
.lt-song-header {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-subtle);
}

.lt-song-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.lt-song-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-rose);
  background-color: var(--bg-accent-soft);
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-pill);
}

.lt-song-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

.lt-song-meta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border-color);
}

.lt-meta-item strong {
  color: var(--text-main);
}

/* LyricsTranslate Control Bar */
.lt-control-bar {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  box-shadow: var(--shadow-subtle);
  position: sticky;
  top: 70px;
  z-index: 20;
}

.lt-source-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.98rem;
}

.lt-source-badge {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.9rem;
}

.lt-target-selector {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.lt-target-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
}

.lt-trans-tab {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.lt-trans-tab:hover {
  background-color: var(--border-color);
}

.lt-trans-tab.active {
  background-color: #e11d48;
  color: #fff;
  border-color: #e11d48;
  box-shadow: 0 3px 10px rgba(225, 29, 72, 0.3);
}

.lt-view-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lt-tool-btn {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 700;
}

.lt-tool-btn:hover {
  background-color: var(--border-color);
}

/* Parallel Lyrics Viewer (2 Columns) */
.lt-lyrics-viewport {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
  font-size: 1.05rem;
}

.lt-lyrics-viewport.stacked-mode {
  grid-template-columns: 1fr;
}

.lt-col {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-subtle);
  overflow: hidden;
}

.lt-col-head {
  background-color: var(--bg-subtle);
  border-bottom: 2px solid var(--border-color);
  padding: 1.1rem 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.02rem;
}

.lt-col-body {
  padding: 1rem;
}

.lt-stanza-block {
  padding: 1.15rem 1.25rem;
  margin-bottom: 1rem;
  border-radius: var(--radius-sm);
  line-height: 1.95;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
  min-height: 130px;
}

.lt-stanza-block:last-child {
  margin-bottom: 0;
}

.lt-stanza-block.highlighted {
  background-color: rgba(225, 29, 72, 0.07);
  border-left-color: var(--primary-rose);
}

.lt-stanza-num {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-rose);
  margin-bottom: 0.4rem;
  display: block;
}

.lt-lyrics-line {
  display: block;
}

/* Dynamic target translations container */
.lt-target-pane {
  display: none;
}
.lt-target-pane.active {
  display: block;
  animation: fadeInPane 0.25s ease forwards;
}

/* Song notes footer card */
.lt-song-notes {
  margin-top: 2rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow-subtle);
  color: var(--text-main);
  line-height: 1.8;
}

.lt-song-notes h3 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  color: var(--text-main);
}

@media (max-width: 860px) {
  .lt-lyrics-viewport {
    grid-template-columns: 1fr;
  }
  .lt-song-title {
    font-size: 1.85rem;
  }
  .lt-control-bar {
    position: static;
  }
}

/* ==========================================================================
   Article Container & Full-Width Guides Layout
   ========================================================================== */
.article-container {
  max-width: var(--container-max);
  margin: 2.5rem auto;
  padding: 0 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

.article-container article {
  max-width: 900px;
  margin: 0 auto;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.75rem 3rem;
  box-shadow: var(--shadow-card);
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .article-container {
    padding: 0 1rem;
    margin: 1.5rem auto;
  }
  .article-container article {
    padding: 1.75rem 1.25rem;
    border-radius: var(--radius-md);
  }
}

/* Article Header & Meta */
.article-title {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin: 1rem 0 1.25rem;
}

@media (max-width: 768px) {
  .article-title {
    font-size: 1.75rem;
  }
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.category-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background-color: var(--bg-subtle);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.category-tag.cat-pol {
  background-color: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.category-tag.cat-tech {
  background-color: #f5f3ff;
  color: #6d28d9;
  border-color: #ddd6fe;
}

.category-tag.cat-lifestyle {
  background-color: #fff1f2;
  color: #be123c;
  border-color: #fecdd3;
}

.category-tag.cat-family {
  background-color: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

.lead-paragraph {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  line-height: 1.7;
  color: var(--text-muted);
  font-style: italic;
  margin: 1.25rem 0 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

/* Guide Section & Headings */
.guide-section {
  margin: 2.5rem 0;
}

.guide-section h2 {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 2.25rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
}

.guide-section h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 1.75rem 0 0.75rem;
}

.guide-section p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #292524;
  margin-bottom: 1.25rem;
}

.guide-section ul,
.guide-section ol {
  margin: 1rem 0 1.5rem 2rem;
  padding-left: 0.5rem;
}

.guide-section li {
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 0.6rem;
  color: #292524;
}

/* Feature Grid & Cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 1.75rem 0;
}

.feature-card {
  background-color: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: #cbd5e1;
}

/* Data Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.data-table th {
  background-color: var(--bg-subtle);
  color: var(--text-main);
  font-weight: 700;
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 2px solid var(--border-color);
}

.data-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  color: #333;
}

.data-table tr:hover {
  background-color: #faf7f2;
}

/* FAQ Items */
.faq-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary-rose);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-subtle);
}

.faq-item h4 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.45rem;
}

.faq-item p {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* Magazine Grid & Homepage */
.magazine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.main-content {
  max-width: var(--container-max);
  margin: 2.5rem auto;
  padding: 0 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

.hero-section {
  padding: 2.5rem 1.5rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-subtle);
}

.code-block {
  background-color: #1e1e2e;
  color: #cdd6f4;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  margin: 1.25rem 0;
}





/* ==========================================================================
   Master Clean Editorial Header & Streamlined Navigation
   ========================================================================== */

.editorial-header {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}

.header-top-row {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.editorial-brand {
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.editorial-brand .brand-name {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.editorial-brand .brand-tagline {
  font-size: 0.72rem;
  color: var(--text-light);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Compact Language Dropdown */
.lang-dropdown-wrapper {
  position: relative;
}

.lang-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-dropdown-btn:hover {
  background-color: var(--bg-surface);
  border-color: var(--text-muted);
}

.lang-dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  min-width: 170px;
  z-index: 1001;
  padding: 0.4rem 0;
}

.lang-dropdown-wrapper:hover .lang-dropdown-menu,
.lang-dropdown-wrapper:focus-within .lang-dropdown-menu,
.lang-dropdown-wrapper.active .lang-dropdown-menu {
  display: block;
}

.lang-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 500;
  transition: background-color 0.15s ease;
}

.lang-dropdown-menu a:hover {
  background-color: var(--bg-subtle);
  color: var(--primary-rose);
}

.lang-dropdown-menu a.active {
  font-weight: 700;
  color: var(--primary-rose);
  background-color: rgba(190, 18, 60, 0.05);
}

/* Category Navigation Strip */
.category-nav-strip {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  border-top: 1px solid var(--border-color);
}

.category-nav-strip::-webkit-scrollbar {
  display: none;
}

.nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
}

.nav-tab:hover {
  color: var(--text-main);
  border-bottom-color: var(--border-color);
}

.nav-tab.active {
  color: var(--primary-rose) !important;
  border-bottom-color: var(--primary-rose) !important;
  font-weight: 700;
}

/* Streamlined Section Headers */
.clean-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2.5rem 0 1.25rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
}

.clean-section-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.clean-section-badge {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  background-color: var(--bg-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.portal-search-container {
  margin: 1.5rem 0 2rem 0;
  display: flex;
}

.portal-search-input {
  width: 100%;
  padding: 0.85rem 1.25rem;
  font-size: 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s ease;
}

.portal-search-input:focus {
  border-color: var(--primary-rose);
}

.mag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3.5rem;
}

/* Dark Mode Overrides for Header */
[data-theme="dark"] .editorial-header {
  background-color: #1e293b;
  border-bottom-color: #334155;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .editorial-brand .brand-name {
  color: #ffffff !important;
}

[data-theme="dark"] .editorial-brand .brand-tagline {
  color: #94a3b8 !important;
}

[data-theme="dark"] .lang-dropdown-btn {
  background-color: #0f172a;
  border-color: #334155;
  color: #f8fafc;
}

[data-theme="dark"] .lang-dropdown-menu {
  background-color: #1e293b;
  border-color: #334155;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .lang-dropdown-menu a {
  color: #f8fafc;
}

[data-theme="dark"] .lang-dropdown-menu a:hover {
  background-color: #334155;
  color: #38bdf8;
}

[data-theme="dark"] .category-nav-strip {
  border-top-color: #334155;
}

[data-theme="dark"] .nav-tab {
  color: #cbd5e1;
}

[data-theme="dark"] .nav-tab:hover {
  color: #ffffff;
}

[data-theme="dark"] .nav-tab.active {
  color: #38bdf8 !important;
  border-bottom-color: #38bdf8 !important;
}

[data-theme="dark"] .clean-section-header {
  border-bottom-color: #334155;
}

[data-theme="dark"] .clean-section-title {
  color: #ffffff !important;
}

[data-theme="dark"] .clean-section-badge {
  background-color: #0f172a;
  border-color: #334155;
  color: #94a3b8;
}

[data-theme="dark"] .portal-search-input {
  background-color: #1e293b;
  border-color: #334155;
  color: #ffffff;
}

[data-theme="dark"] .portal-search-input:focus {
  border-color: #38bdf8;
}


/* ==========================================================================
   Comprehensive Deep Luxury Dark Mode Engine ([data-theme="dark"])
   High Contrast, Crisp Serif Typography, Deep Midnight Palette
   ========================================================================== */

[data-theme="dark"] {
  --bg-body: #0b0f19;            /* Deep midnight black-slate */
  --bg-surface: #131b2e;         /* Elevated midnight surface */
  --bg-subtle: #1e293b;          /* Secondary panels & tab strips */
  --bg-accent-soft: #2d1522;     /* Muted luxury rose */

  --text-main: #f8fafc;          /* High-contrast crisp white */
  --text-muted: #cbd5e1;         /* Silver-white readable prose */
  --text-light: #94a3b8;         /* Clear metadata */

  --border-color: #243049;       /* Subtle dark borders */
  --border-dark: #3b4c6e;

  --shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] body {
  background-color: #0b0f19 !important;
  color: #f8fafc !important;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6,
[data-theme="dark"] .brand-name,
[data-theme="dark"] .clean-section-title,
[data-theme="dark"] .portal-section-title {
  color: #f8fafc !important;
}

[data-theme="dark"] p,
[data-theme="dark"] li,
[data-theme="dark"] .guide-section p,
[data-theme="dark"] .article-body p,
[data-theme="dark"] .faq-item p,
[data-theme="dark"] .mag-card p {
  color: #cbd5e1 !important;
}

[data-theme="dark"] .mag-card {
  background-color: #131b2e !important;
  border-color: #243049 !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .mag-card:hover {
  border-color: #38bdf8 !important;
  box-shadow: 0 12px 35px rgba(56, 189, 248, 0.25) !important;
}

[data-theme="dark"] .mag-card-footer {
  border-top-color: #243049 !important;
  color: #94a3b8 !important;
}

[data-theme="dark"] .clean-section-header {
  border-bottom-color: #243049 !important;
}

[data-theme="dark"] .clean-section-badge {
  background-color: #1e293b !important;
  color: #94a3b8 !important;
  border-color: #243049 !important;
}

[data-theme="dark"] .feature-card,
[data-theme="dark"] .kit-card,
[data-theme="dark"] .faq-card,
[data-theme="dark"] .faq-item,
[data-theme="dark"] .editorial-quote,
[data-theme="dark"] .table-of-contents,
[data-theme="dark"] .comparison-box {
  background-color: #131b2e !important;
  border-color: #243049 !important;
  color: #f8fafc !important;
}

[data-theme="dark"] .table-of-contents {
  background-color: #1e293b !important;
}

[data-theme="dark"] .table-of-contents a {
  color: #38bdf8 !important;
}

/* LyricsTranslate Dark Mode */
[data-theme="dark"] .lt-lyrics-viewport,
[data-theme="dark"] .lt-control-bar {
  background-color: #131b2e !important;
  border-color: #243049 !important;
}

[data-theme="dark"] .lt-col {
  background-color: #131b2e !important;
  border-color: #243049 !important;
}

[data-theme="dark"] .lt-col-head {
  background-color: #1e293b !important;
  border-color: #243049 !important;
  color: #f8fafc !important;
}

[data-theme="dark"] .lt-col-head-orig-title,
[data-theme="dark"] .lt-col-head-target-title {
  color: #f8fafc !important;
}

[data-theme="dark"] .lt-line-orig,
[data-theme="dark"] .lt-line-trans {
  color: #f8fafc !important;
}

[data-theme="dark"] .lt-trans-tab {
  background-color: #1e293b !important;
  border-color: #243049 !important;
  color: #cbd5e1 !important;
}

[data-theme="dark"] .lt-trans-tab.active {
  background-color: var(--primary-rose) !important;
  color: #ffffff !important;
}

[data-theme="dark"] .lt-tool-btn,
[data-theme="dark"] .lt-ui-btn {
  background-color: #1e293b !important;
  border-color: #243049 !important;
  color: #f8fafc !important;
}

[data-theme="dark"] .lt-ui-btn.active {
  background-color: var(--primary-rose) !important;
  color: #ffffff !important;
}

/* Data Tables */
[data-theme="dark"] .data-table {
  background-color: #131b2e !important;
  border-color: #243049 !important;
}

[data-theme="dark"] .data-table th {
  background-color: #1e293b !important;
  border-bottom-color: #243049 !important;
  color: #f8fafc !important;
}

[data-theme="dark"] .data-table td {
  border-bottom-color: #243049 !important;
  color: #cbd5e1 !important;
}

/* Footer */
[data-theme="dark"] .main-footer {
  background-color: #0b0f19 !important;
  border-top-color: #243049 !important;
}

[data-theme="dark"] .footer-bottom {
  border-top-color: #243049 !important;
}

/* Search Modal */
[data-theme="dark"] .search-modal-container {
  background-color: #131b2e !important;
  border-color: #243049 !important;
}

[data-theme="dark"] .search-input-field {
  color: #f8fafc !important;
}

[data-theme="dark"] .search-modal-filters {
  background-color: #1e293b !important;
  border-bottom-color: #243049 !important;
}

[data-theme="dark"] .search-result-item {
  border-bottom-color: #243049 !important;
}

[data-theme="dark"] .search-result-link:hover {
  background-color: #1e293b !important;
}

[data-theme="dark"] .search-result-title {
  color: #f8fafc !important;
}

[data-theme="dark"] .search-result-desc {
  color: #cbd5e1 !important;
}

[data-theme="dark"] .search-modal-footer {
  background-color: #1e293b !important;
  border-top-color: #243049 !important;
}


/* ==========================================================================
   Featured Horizontal Scroll Strip (.featured-scroll-container)
   ========================================================================== */
.featured-section {
  margin: 1.25rem 0 2.25rem 0;
}

.featured-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border-color);
}

.featured-header-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.featured-scroll-hint {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 500;
}

.featured-scroll-container {
  display: flex;
  gap: 1.15rem;
  overflow-x: auto;
  padding: 0.4rem 0.2rem 1.2rem 0.2rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-rose) var(--bg-subtle);
}

.featured-scroll-container::-webkit-scrollbar {
  height: 6px;
}

.featured-scroll-container::-webkit-scrollbar-track {
  background: var(--bg-subtle);
  border-radius: 9999px;
}

.featured-scroll-container::-webkit-scrollbar-thumb {
  background: var(--primary-rose);
  border-radius: 9999px;
}

[data-theme="dark"] .featured-scroll-container::-webkit-scrollbar-thumb {
  background: #38bdf8;
}

.featured-card {
  flex: 0 0 310px;
  scroll-snap-align: start;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.featured-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-rose);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .featured-card {
  background: #131b2e !important;
  border-color: #243049 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .featured-card:hover {
  border-color: #38bdf8 !important;
  box-shadow: 0 10px 25px rgba(56, 189, 248, 0.2);
}

.featured-card-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  background: var(--primary-rose);
  color: #ffffff;
  margin-bottom: 0.65rem;
}

[data-theme="dark"] .featured-card-badge {
  background: #0284c7;
}

.featured-card h3 {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 0.45rem;
}

[data-theme="dark"] .featured-card h3 {
  color: #f8fafc !important;
}

.featured-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

[data-theme="dark"] .featured-card p {
  color: #cbd5e1 !important;
}

.featured-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-rose);
}

[data-theme="dark"] .featured-card-footer {
  color: #38bdf8 !important;
}

/* Top Search Hero Box */
.top-search-wrapper {
  max-width: var(--container-max);
  margin: 1.25rem auto 0.5rem auto;
  padding: 0 1.5rem;
}

.top-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.top-search-box .search-icon {
  position: absolute;
  left: 1.15rem;
  color: var(--text-light);
  pointer-events: none;
  font-size: 1.05rem;
}

.top-search-input {
  width: 100%;
  padding: 0.85rem 1.25rem 0.85rem 2.85rem;
  font-size: 1rem;
  border: 1.5px solid var(--border-color);
  border-radius: 9999px;
  background-color: var(--bg-surface);
  color: var(--text-main);
  outline: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.top-search-input:focus {
  border-color: var(--primary-rose);
  box-shadow: 0 0 0 3px rgba(190, 18, 60, 0.15);
}

[data-theme="dark"] .top-search-input {
  background-color: #131b2e;
  border-color: #243049;
  color: #f8fafc;
}

[data-theme="dark"] .top-search-input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.top-search-clear {
  position: absolute;
  right: 1.1rem;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.1rem;
  cursor: pointer;
  display: none;
  padding: 0.2rem;
}

.no-search-results-box {
  display: none;
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--bg-surface);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  margin: 2rem 0;
}

[data-theme="dark"] .no-search-results-box {
  background: #131b2e;
  border-color: #243049;
}

/* ==========================================================================
   Cookie Consent Banner
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2.5rem);
  max-width: 850px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  z-index: 99999;
  backdrop-filter: blur(12px);
  animation: slideUpFade 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.cookie-content {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.cookie-content strong {
  color: var(--text-main);
}

.cookie-content a {
  color: var(--primary-rose);
  text-decoration: underline;
  font-weight: 600;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.55rem 1.2rem;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.cookie-btn-accept {
  background-color: var(--primary-rose);
  color: #ffffff;
  border: none;
}

.cookie-btn-accept:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.cookie-btn-decline {
  background-color: var(--bg-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.cookie-btn-decline:hover {
  background-color: var(--border-color);
  color: var(--text-main);
}

@media (max-width: 640px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    bottom: 0.75rem;
    padding: 1rem;
  }
  .cookie-actions {
    justify-content: flex-end;
  }
}


/* ==========================================================================
   Modern Multilingual Cookie Consent Modal
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2.5rem);
  max-width: 880px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.25), 0 10px 10px -5px rgba(0, 0, 0, 0.15);
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  z-index: 999999;
  backdrop-filter: blur(12px);
  animation: cookieSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cookieSlideUp {
  from {
    opacity: 0;
    transform: translate(-50%, 25px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.cookie-content {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.cookie-content strong {
  color: var(--text-main);
}

.cookie-content a {
  color: var(--primary-rose);
  text-decoration: underline;
  font-weight: 700;
  margin-left: 0.25rem;
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
  flex-wrap: wrap;
  align-items: center;
}

.cookie-btn {
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cookie-btn-accept {
  background-color: #059669;
  color: #ffffff;
  border: none;
}

.cookie-btn-accept:hover {
  background-color: #047857;
  transform: translateY(-1px);
}

.cookie-btn-decline {
  background-color: #be123c;
  color: #ffffff;
  border: none;
}

.cookie-btn-decline:hover {
  background-color: #9f1239;
  transform: translateY(-1px);
}

.cookie-btn-never {
  background-color: var(--bg-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.cookie-btn-never:hover {
  background-color: var(--border-color);
  color: var(--text-main);
}

@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    bottom: 0.75rem;
    padding: 1.1rem;
  }
  .cookie-actions {
    justify-content: stretch;
    margin-top: 0.5rem;
  }
  .cookie-btn {
    flex: 1;
    text-align: center;
  }
}

/* ==========================================================================
   Modern Multilingual Cookie Consent Modal (3 Buttons)
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 920px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.25), 0 10px 10px -5px rgba(0, 0, 0, 0.15);
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  z-index: 999999;
  backdrop-filter: blur(12px);
  animation: cookieSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cookieSlideUp {
  from {
    opacity: 0;
    transform: translate(-50%, 25px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.cookie-content {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.cookie-content strong {
  color: var(--text-main);
}

.cookie-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
  flex-wrap: wrap;
  align-items: center;
}

.cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  font-size: 0.86rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
  font-family: inherit;
}

.cookie-btn-accept {
  background-color: #059669;
  color: #ffffff;
  border: none;
}

.cookie-btn-accept:hover {
  background-color: #047857;
  transform: translateY(-1px);
}

.cookie-btn-decline {
  background-color: #be123c;
  color: #ffffff;
  border: none;
}

.cookie-btn-decline:hover {
  background-color: #9f1239;
  transform: translateY(-1px);
}

.cookie-btn-view {
  background-color: var(--bg-subtle);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.cookie-btn-view:hover {
  background-color: var(--border-color);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    bottom: 0.75rem;
    padding: 1.1rem;
  }
  .cookie-actions {
    justify-content: stretch;
    margin-top: 0.5rem;
  }
  .cookie-btn {
    flex: 1;
    text-align: center;
  }
}
