*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --cream: #F7F3EC;
  --ink: #18160F;
  --ink-60: rgba(24,22,15,0.6);
  --ink-20: rgba(24,22,15,0.12);
  --green: #1F6B4A;
  --green-light: #E0F0E8;
  --amber: #B5460F;
  --sand: #EDE8DF;
  --white: #FFFFFF;
}
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--cream); color: var(--ink); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
.container { max-width: 1040px; margin: 0 auto; padding: 0 2rem; }
.container-narrow { max-width: 680px; margin: 0 auto; padding: 0 2rem; }

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--ink-20);
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.nav-logo-circle { width: 30px; height: 30px; border-radius: 50%; background: var(--green); display: flex; align-items: center; justify-content: center; font-size: 15px; }
.nav-logo-name { font-family: 'Fraunces', serif; font-weight: 500; font-size: 16px; letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 1.75rem; list-style: none; }
.nav-links a { font-size: 13px; font-weight: 400; text-decoration: none; color: var(--ink-60); transition: color 0.15s; }
.nav-links a:hover { color: var(--ink); }
.nav-pill { background: var(--ink) !important; color: white !important; padding: 7px 18px; border-radius: 100px; font-weight: 500 !important; transition: opacity 0.15s; }
.nav-pill:hover { opacity: 0.75; color: white !important; }

/* Mobile hamburger */
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: all 0.2s; }
.mobile-menu { display: none; position: fixed; top: 60px; left: 0; right: 0; background: var(--cream); border-bottom: 1px solid var(--ink-20); padding: 1rem 2rem; z-index: 99; flex-direction: column; gap: 0; }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 15px; text-decoration: none; color: var(--ink); padding: 0.85rem 0; border-bottom: 1px solid var(--ink-20); font-weight: 400; }
.mobile-menu a:last-child { border-bottom: none; color: var(--green); font-weight: 500; }

/* ── GUIDE PAGE ── */
.guide-hero { padding: 4rem 2rem 3rem; border-bottom: 1px solid var(--ink-20); }
.guide-system-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; padding: 4px 12px; border-radius: 100px; margin-bottom: 1.5rem; }
.sys-ng { background: #FEF3C7; color: #92400E; }
.sys-my { background: #ECFDF5; color: #065F46; }
.sys-ca { background: #EFF6FF; color: #1E40AF; }
.sys-all { background: var(--sand); color: var(--ink-60); }
.guide-hero h1 { font-family: 'Fraunces', serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 1.25rem; }
.guide-meta-row { display: flex; align-items: center; gap: 1.5rem; font-size: 13px; color: var(--ink-60); flex-wrap: wrap; }

/* ── ARTICLE BODY ── */
.article-body { padding: 3.5rem 2rem; }
.article-body p { font-size: 16px; line-height: 1.8; color: var(--ink); margin-bottom: 1.5rem; font-weight: 300; }
.article-body p strong { font-weight: 500; }
.article-body h2 { font-family: 'Fraunces', serif; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.025em; margin: 2.5rem 0 1rem; line-height: 1.2; }
.article-body h3 { font-family: 'Fraunces', serif; font-size: 1.15rem; font-weight: 500; margin: 2rem 0 0.75rem; }
.article-body ul { margin: 0 0 1.5rem 1.25rem; }
.article-body ul li { font-size: 15px; line-height: 1.75; color: var(--ink); margin-bottom: 0.5rem; font-weight: 300; }
.article-body ul li strong { font-weight: 500; }
.pullquote { border-left: 3px solid var(--green); padding: 1rem 1.5rem; margin: 2rem 0; background: var(--green-light); border-radius: 0 8px 8px 0; }
.pullquote p { font-family: 'Fraunces', serif; font-style: italic; font-size: 1.1rem; color: var(--ink); margin: 0; font-weight: 400; line-height: 1.6; }
.callout { background: var(--sand); border-radius: 10px; padding: 1.5rem; margin: 2rem 0; }
.callout-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; color: var(--amber); margin-bottom: 0.6rem; }
.callout p { margin: 0; font-size: 14px; line-height: 1.7; }
.callout ul { margin: 0.5rem 0 0 1.25rem; }
.callout ul li { font-size: 14px; margin-bottom: 0.35rem; }
.script-block { background: var(--ink); color: white; border-radius: 10px; padding: 1.5rem; margin: 2rem 0; }
.script-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.4); margin-bottom: 0.75rem; font-weight: 500; }
.script-block p { color: rgba(255,255,255,0.88); font-size: 14px; line-height: 1.75; margin: 0; font-style: italic; font-family: 'Fraunces', serif; font-weight: 300; }
.divider-line { border: none; border-top: 1px solid var(--ink-20); margin: 2.5rem 0; }

/* ── TABLE ── */
.guide-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0 2rem; font-size: 13px; }
.guide-table th { background: #FAFAF7; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-60); font-weight: 500; padding: 10px 1rem; text-align: left; border-bottom: 1px solid var(--ink-20); border-top: 1px solid var(--ink-20); }
.guide-table td { padding: 11px 1rem; border-bottom: 1px solid var(--ink-20); vertical-align: top; line-height: 1.5; }
.guide-table tr:last-child td { border-bottom: none; }
.guide-table tr:hover td { background: #FAFAF7; }

/* ── GUIDE NAV ── */
.guide-nav { border-top: 1px solid var(--ink-20); padding: 2rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.guide-nav a { font-size: 13px; text-decoration: none; color: var(--ink-60); transition: color 0.15s; }
.guide-nav a:hover { color: var(--ink); }

/* ── FOOTER ── */
footer { padding: 2rem; border-top: 1px solid var(--ink-20); text-align: center; font-size: 12px; color: var(--ink-60); }

/* ── RESPONSIVE ── */
@media (max-width: 720px) {
  nav { padding: 0 1.25rem; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .container { padding: 0 1.25rem; }
  .container-narrow { padding: 0 1.25rem; }
}
