/* ===== CSS RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --clr-accent: #acc66d;
  --clr-accent-dark: #8aa855;
  --clr-dark: #32373c;
  --clr-secondary: #e3dcee;
  --clr-bg: #fafaf8;
  --clr-text: #2c2c2c;
  --clr-border: #e0e0dc;
  --font: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-content: 860px;
  --max-wide: 1100px;
  --radius: 6px;
  --transition: 0.2s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

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

a:hover {
  color: var(--clr-accent);
  text-decoration: underline;
}

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

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 3px solid var(--clr-accent);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.hdr-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  height: 64px;
  gap: 2rem;
}

.site-logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--clr-accent);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.site-logo:hover {
  color: var(--clr-accent-dark);
  text-decoration: none;
}

.main-nav {
  margin-left: auto;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.main-nav a {
  display: block;
  padding: 0.4rem 0.75rem;
  color: var(--clr-dark);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--clr-accent);
  background: rgba(172, 198, 109, 0.1);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--clr-dark);
  margin-left: auto;
  padding: 0.25rem 0.5rem;
}

/* ===== HERO ===== */
.site-hero {
  background: var(--clr-dark);
  color: #fff;
  padding: 4rem 1.5rem 3rem;
  text-align: center;
}

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

.site-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: #fff;
  border: none;
  padding: 0;
}

.hero-sub {
  font-size: 1.1rem;
  color: #fff;
  opacity: 0.85;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--clr-dark);
  padding: 0 1rem 2rem;
}

.stats-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.stat-card {
  background: var(--clr-accent);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  background: #f2f2ef;
  border-bottom: 1px solid var(--clr-border);
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  color: #666;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  max-width: var(--max-wide);
  margin: 0 auto;
}

.breadcrumb li + li::before {
  content: '›';
  margin-right: 0.25rem;
  color: #999;
}

.breadcrumb a {
  color: var(--clr-accent-dark);
}

/* ===== MAIN CONTENT ===== */
.main-content {
  padding: 2.5rem 1rem 4rem;
}

.content-wrap {
  max-width: var(--max-content);
  margin: 0 auto;
}

/* ===== TYPOGRAPHY ===== */
h1 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--clr-dark);
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  font-weight: 700;
  color: var(--clr-dark);
  border-left: 4px solid var(--clr-accent);
  padding-left: 12px;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--clr-dark);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

p {
  line-height: 1.8;
  margin-bottom: 1rem;
  color: var(--clr-text);
}

/* ===== ANCHOR NAV ===== */
.art-anchors {
  background: #f5f5f2;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 0.875rem 1.25rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.art-anchors p {
  margin: 0;
  color: #555;
}

.art-anchors a {
  color: var(--clr-accent-dark);
  font-weight: 500;
}

/* ===== TABLES ===== */
.tbl-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

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

.data-table th {
  background: var(--clr-accent);
  color: #fff;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}

.data-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid #eee;
  color: var(--clr-text);
}

.data-table tr:nth-child(even) td {
  background: #f5f5f2;
}

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

.data-table tr:hover td {
  background: rgba(172, 198, 109, 0.08);
}

/* ===== CHECKLIST ===== */
.art-checklist {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.art-checklist li {
  padding: 0.4rem 0 0.4rem 2rem;
  position: relative;
  line-height: 1.7;
  border-bottom: 1px solid #f0f0ec;
}

.art-checklist li:last-child {
  border-bottom: none;
}

.art-checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--clr-accent);
  font-weight: 700;
  font-size: 1.1rem;
}

/* ===== STEPS ===== */
.art-steps {
  padding-left: 1.75rem;
  margin: 1rem 0;
}

.art-steps li {
  margin-bottom: 0.6rem;
  line-height: 1.75;
  padding-left: 0.25rem;
}

/* ===== INFO BOX ===== */
.art-info {
  background: var(--clr-secondary);
  border-left: 4px solid var(--clr-accent);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}

.art-info strong {
  color: var(--clr-dark);
}

/* ===== MYTH ITEMS ===== */
.myth-item {
  padding: 0.6rem 1rem;
  border-left: 3px solid var(--clr-accent);
  margin: 0.5rem 0;
  background: #f9f9f7;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.myth-icon {
  color: #e07b39;
  margin-right: 0.4rem;
}

/* ===== FAQ ===== */
.faq-list {
  border-top: 2px solid var(--clr-accent);
  margin-top: 1rem;
}

.faq-item {
  border-bottom: 1px solid #ddd;
}

.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1rem 1.25rem 1rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--clr-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: var(--font);
  transition: color var(--transition);
}

.faq-q:hover {
  color: var(--clr-accent-dark);
}

.faq-q::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--clr-accent);
  flex-shrink: 0;
  transition: transform var(--transition);
  line-height: 1;
}

.faq-q.open::after {
  content: '−';
}

.faq-a {
  display: none;
  padding: 0 0 1rem;
}

.faq-a.open {
  display: block;
}

.faq-a p {
  margin: 0;
  color: #444;
  line-height: 1.8;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--clr-dark);
  color: rgba(255,255,255,0.85);
  padding: 3rem 1rem 0;
  margin-top: auto;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  max-width: var(--max-wide);
  margin: 0 auto;
  padding-bottom: 2rem;
}

.footer-col strong {
  display: block;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.footer-col p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.4rem;
}

.footer-col a {
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--clr-accent);
  text-decoration: none;
}

.footer-note {
  margin-top: 1rem;
  font-size: 0.8rem;
}

.footer-note a {
  color: var(--clr-accent) !important;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 1rem 0;
  text-align: center;
  max-width: var(--max-wide);
  margin: 0 auto;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  margin: 0;
}

/* ===== BACK TO TOP ===== */
.btt {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--clr-accent);
  color: #fff;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  font-size: 1.6rem;
  line-height: 1;
  box-shadow: 0 3px 12px rgba(0,0,0,0.2);
  transition: background var(--transition), transform var(--transition);
  z-index: 99;
}

.btt:hover {
  background: var(--clr-accent-dark);
  transform: translateY(-2px);
}

/* ===== NO SIDEBAR — FORBIDDEN SELECTORS (enforced) ===== */
/* .toc-sidebar, .article-aside, .sticky-sidebar: not used anywhere */

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

/* 1024px */
@media (max-width: 1024px) {
  .hdr-inner {
    gap: 1.5rem;
  }
  .main-nav a {
    padding: 0.35rem 0.6rem;
    font-size: 0.875rem;
  }
  .footer-inner {
    gap: 1.5rem;
  }
}

/* 768px */
@media (max-width: 768px) {
  /* Mobile nav */
  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 3px solid var(--clr-accent);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    margin-left: 0;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 0.5rem 0;
    gap: 0;
  }

  .main-nav a {
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    border-bottom: 1px solid #f0f0ec;
    font-size: 1rem;
  }

  .main-nav a:last-child {
    border-bottom: none;
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Hero */
  .site-hero {
    padding: 2.5rem 1rem 2rem;
  }

  .stats-inner {
    gap: 0.75rem;
  }

  .stat-card {
    padding: 0.6rem 1rem;
    font-size: 0.875rem;
  }
}

/* 480px */
@media (max-width: 480px) {
  .site-hero {
    padding: 2rem 1rem 1.5rem;
  }

  .stats-bar {
    padding: 0 0.75rem 1.5rem;
  }

  .stats-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .stat-card {
    text-align: center;
  }

  .main-content {
    padding: 1.5rem 0.75rem 3rem;
  }

  h2 {
    margin-top: 2rem;
  }

  .btt {
    bottom: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
  }
}
