/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; color: #1a2035; background: #fff; line-height: 1.75; }
img { max-width: 100%; display: block; }
a { color: #0891b2; }
a:hover { color: #0e7490; }
ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; }

/* ===== VARIABLES ===== */
:root {
  --amber: #f59e0b;
  --amber-dark: #d97706;
  --amber-light: rgba(245,158,11,0.1);
  --teal: #0891b2;
  --teal-dark: #0e7490;
  --teal-light: rgba(8,145,178,0.08);
  --navy: #0f172a;
  --navy-2: #1e293b;
  --text: #1a2035;
  --muted: #64748b;
  --border: #e2e8f0;
  --bg-light: #f8fafc;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5 { font-family: Georgia, 'Times New Roman', serif; line-height: 1.3; }
h1 { font-size: clamp(1.875rem, 4.5vw, 3rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.375rem, 3vw, 2rem); margin-bottom: 0.75rem; }
h3 { font-size: clamp(1.125rem, 2.5vw, 1.5rem); margin-bottom: 0.5rem; }
h4 { font-size: 1.0625rem; margin-bottom: 0.5rem; }
strong { color: #0f172a; }

/* ===== DISCLAIMER BANNER ===== */
.disclaimer-banner {
  background: var(--amber);
  color: #1a2035;
  padding: 0.625rem 1.25rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
}
.disclaimer-banner a { color: var(--navy); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* ===== NAVBAR ===== */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: var(--navy);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.navbar {
  max-width: 1200px; margin: 0 auto;
  padding: 0 1.5rem; height: 62px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  color: #fff; text-decoration: none;
  font-family: Georgia, serif; font-size: 1.2rem; font-weight: 700;
  display: flex; align-items: center; gap: 0.5rem;
  flex-shrink: 0;
}
.logo-icon { color: var(--amber); font-size: 1.3rem; }
.nav-links {
  list-style: none; display: flex; gap: 0.1rem;
  margin: 0; padding: 0; flex-wrap: wrap;
}
.nav-links a {
  color: rgba(255,255,255,0.78); text-decoration: none;
  padding: 0.35rem 0.6rem; border-radius: 5px;
  font-size: 0.84rem; font-weight: 500;
  transition: background 0.15s, color 0.15s; white-space: nowrap;
}
.nav-links a:hover { background: rgba(255,255,255,0.12); color: #fff; }
.nav-links a.active { background: rgba(245,158,11,0.2); color: var(--amber); }
.menu-toggle {
  display: none; background: none; border: none;
  cursor: pointer; color: #fff; font-size: 1.6rem;
  line-height: 1; padding: 0.4rem; border-radius: 4px;
}
.menu-toggle:hover { background: rgba(255,255,255,0.1); }

/* ===== MOBILE NAV ===== */
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 62px; left: 0; right: 0;
    background: var(--navy-2); flex-direction: column; padding: 0.75rem;
    gap: 0; border-top: 1px solid rgba(255,255,255,0.1);
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 0.7rem 1rem; border-radius: 6px; font-size: 0.9375rem; }
}

/* ===== PAGE HERO ===== */
.page-hero {
  background: var(--navy); color: #fff;
  padding: 4.5rem 1.5rem 4rem;
}
.hero-inner { max-width: 1200px; margin: 0 auto; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--amber-light); border: 1px solid rgba(245,158,11,0.35);
  color: var(--amber); padding: 0.3rem 0.875rem;
  border-radius: 100px; font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 1.25rem;
}
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.25rem); margin-bottom: 1.1rem; }
.page-hero .lead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.72); max-width: 720px; line-height: 1.7;
  margin-bottom: 0;
}
.hero-btns { display: flex; flex-wrap: wrap; gap: 0.875rem; margin-top: 2rem; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; border-radius: 8px;
  font-weight: 700; text-decoration: none; font-size: 0.9375rem;
  transition: all 0.15s; white-space: nowrap;
}
.btn-amber { background: var(--amber); color: var(--navy); }
.btn-amber:hover { background: var(--amber-dark); color: var(--navy); }
.btn-outline-white { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.4); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); color: #fff; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); color: #fff; }

/* ===== EDU BANNER ===== */
.edu-banner { background: var(--teal); color: #fff; padding: 2.5rem 1.5rem; text-align: center; }
.edu-banner-inner { max-width: 800px; margin: 0 auto; }
.edu-banner h2 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.edu-banner p { color: rgba(255,255,255,0.82); margin: 0; font-size: 1.0625rem; }

/* ===== CONTENT SECTIONS ===== */
.section { padding: 4rem 1.5rem; }
.section.bg-light { background: var(--bg-light); }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-inner.narrow { max-width: 860px; }
.section-head { text-align: center; margin-bottom: 3rem; }
.section-head h2 { margin-bottom: 0.75rem; }
.section-head p { color: var(--muted); font-size: 1.0625rem; max-width: 650px; margin: 0 auto; }

/* ===== STAGES GRID ===== */
.stages-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.25rem; }
.stage-card {
  background: #fff; border: 1.5px solid var(--border);
  border-radius: 14px; padding: 1.5rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.stage-card:hover { border-color: var(--teal); box-shadow: 0 4px 16px rgba(8,145,178,0.1); }
.stage-num {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--muted); margin-bottom: 0.5rem;
}
.stage-icon { font-size: 1.75rem; margin-bottom: 0.75rem; }
.stage-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.stage-card p { font-size: 0.875rem; color: var(--muted); margin: 0; }

/* ===== CARD GRID ===== */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.card {
  background: #fff; border: 1px solid var(--border);
  border-radius: 12px; padding: 1.75rem;
}
.card-icon {
  font-size: 1.75rem; width: 52px; height: 52px;
  border-radius: 10px; background: var(--teal-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.9375rem; margin: 0; }

/* ===== TWO-COL ===== */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.two-col.reverse .col-text { order: 2; }
.two-col.reverse .col-visual { order: 1; }
@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .two-col.reverse .col-text, .two-col.reverse .col-visual { order: unset; }
}
.col-visual {
  background: var(--bg-light); border-radius: 16px;
  border: 1px solid var(--border); padding: 3rem 2rem;
  text-align: center; aspect-ratio: 16/9;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.col-visual-icon { font-size: 4rem; margin-bottom: 1rem; opacity: 0.4; }
.col-visual p { color: var(--muted); font-size: 0.9375rem; margin: 0; }
.phase-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--teal-light); color: var(--teal-dark);
  padding: 0.3rem 0.875rem; border-radius: 100px;
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.07em; margin-bottom: 1rem;
}
.col-text ul { list-style: none; padding: 0; margin-top: 1.25rem; }
.col-text ul li {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.875rem; background: var(--bg-light);
  border-radius: 8px; margin-bottom: 0.625rem;
}
.col-text ul li::before { content: "▸"; color: var(--teal); flex-shrink: 0; font-size: 0.875rem; margin-top: 0.15rem; }

/* ===== PROCESS STEPS ===== */
.process-steps { display: flex; flex-direction: column; gap: 0.875rem; margin-top: 1.25rem; }
.process-step {
  display: flex; align-items: flex-start; gap: 1rem;
  background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 10px; padding: 1rem;
}
.step-num {
  background: #16a34a; color: #fff; font-weight: 700;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 0.875rem;
}
.step-num.blue { background: #2563eb; }
.step-num.amber { background: var(--amber); color: var(--navy); }
.process-step p { margin: 0; font-size: 0.9375rem; }

/* ===== PARAMETER TABLE ===== */
.param-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }
.param-table th { background: var(--navy); color: #fff; padding: 0.875rem 1rem; text-align: left; font-size: 0.875rem; font-weight: 600; }
.param-table td { padding: 0.875rem 1rem; border-bottom: 1px solid var(--border); font-size: 0.9375rem; vertical-align: top; }
.param-table tr:last-child td { border-bottom: none; }
.param-table tr:nth-child(even) td { background: var(--bg-light); }
.badge-teal { background: var(--teal); color: #fff; padding: 0.2rem 0.65rem; border-radius: 100px; font-size: 0.78rem; font-weight: 700; white-space: nowrap; display: inline-block; }
.badge-red { background: #dc2626; color: #fff; padding: 0.2rem 0.65rem; border-radius: 100px; font-size: 0.78rem; font-weight: 700; white-space: nowrap; display: inline-block; }

/* ===== INFO / WARN / DANGER BOXES ===== */
.info-box { background: var(--teal-light); border: 1px solid rgba(8,145,178,0.25); border-radius: 12px; padding: 1.25rem 1.5rem; margin: 1.5rem 0; }
.info-box h4 { color: var(--teal-dark); margin-bottom: 0.5rem; font-size: 1rem; }
.info-box p { color: #155e75; margin: 0; font-size: 0.9375rem; }
.warn-box { background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.35); border-radius: 12px; padding: 1.25rem 1.5rem; margin: 1.5rem 0; }
.warn-box h4 { color: #92400e; margin-bottom: 0.5rem; font-size: 1rem; }
.warn-box p { color: #78350f; margin: 0; font-size: 0.9375rem; }
.danger-box { background: rgba(220,38,38,0.05); border: 1px solid rgba(220,38,38,0.2); border-radius: 12px; padding: 1rem 1.5rem; margin: 1rem 0; }
.danger-box strong { color: #dc2626; }

/* ===== FAQ ===== */
.faq-list { list-style: none; padding: 0; }
.faq-item { border-bottom: 1px solid var(--border); padding: 1.375rem 0; }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q { font-weight: 700; color: var(--text); font-family: Georgia, serif; font-size: 1.05rem; margin-bottom: 0.625rem; }
.faq-q::before { content: "P: "; color: var(--teal); }
.faq-a { color: var(--muted); }
.faq-a::before { content: "R: "; font-weight: 600; color: var(--text); }

/* ===== SOURCE LIST ===== */
.source-list { list-style: none; padding: 0; }
.source-item {
  border: 1px solid var(--border); border-radius: 10px;
  padding: 1rem 1.25rem; margin-bottom: 0.875rem;
  transition: border-color 0.15s, background 0.15s;
}
.source-item:hover { border-color: var(--teal); background: var(--teal-light); }
.source-item a { text-decoration: none; color: var(--text); font-weight: 600; font-size: 0.9375rem; }
.source-item a:hover { color: var(--teal); }
.source-org { color: var(--muted); font-size: 0.8125rem; margin-top: 0.25rem; }
.source-url { color: var(--teal); font-size: 0.8rem; margin-top: 0.25rem; }

/* ===== CONTACT ===== */
.contact-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: 16px; padding: 2.5rem; max-width: 680px;
}
.contact-item { display: flex; gap: 1.25rem; align-items: flex-start; padding-bottom: 1.75rem; margin-bottom: 1.75rem; border-bottom: 1px solid var(--border); }
.contact-item:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: none; }
.contact-ico { background: var(--teal-light); width: 48px; height: 48px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.c-label { font-weight: 700; font-size: 1.0625rem; margin-bottom: 0.25rem; }
.c-value { color: var(--teal); font-weight: 600; display: block; text-decoration: none; font-size: 1.0625rem; }
.c-value:hover { text-decoration: underline; }
.c-note { color: var(--muted); font-size: 0.875rem; margin-top: 0.375rem; }

/* ===== GLOSSARY ===== */
.gloss-list { list-style: none; padding: 0; }
.gloss-item { margin-bottom: 1.75rem; display: flex; flex-direction: column; gap: 0.375rem; }
.gloss-term { font-weight: 700; font-size: 1.05rem; color: var(--navy); font-family: Georgia, serif; }
.gloss-def { color: var(--muted); padding-left: 1rem; border-left: 3px solid var(--amber); font-size: 0.9375rem; }

/* ===== TIMELINE ===== */
.timeline { list-style: none; padding: 0; }
.timeline-item { display: flex; gap: 1.25rem; margin-bottom: 2rem; }
.t-marker { display: flex; flex-direction: column; align-items: center; gap: 0; }
.t-dot { width: 14px; height: 14px; background: var(--amber); border-radius: 50%; flex-shrink: 0; }
.t-line { width: 2px; flex: 1; background: var(--border); margin-top: 4px; }
.t-content { padding-top: 0; }
.t-date { font-weight: 700; color: var(--navy); margin-bottom: 0.375rem; }
.t-desc { color: var(--muted); font-size: 0.9375rem; margin: 0; }

/* ===== PROSE ===== */
.prose h2 { margin-top: 2.5rem; margin-bottom: 0.875rem; padding-bottom: 0.625rem; border-bottom: 2px solid var(--border); }
.prose h3 { margin-top: 2rem; margin-bottom: 0.75rem; }
.prose p, .prose li { color: var(--text); }
.prose ul { margin-bottom: 1.5rem; }

/* ===== VALUES GRID ===== */
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.value-card {
  background: var(--bg-light); border: 1.5px solid var(--border);
  border-radius: 12px; padding: 1.5rem; text-align: center;
}
.value-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.value-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.value-card p { color: var(--muted); font-size: 0.875rem; margin: 0; }

/* ===== FOOTER ===== */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.65); }
.footer-top { max-width: 1200px; margin: 0 auto; padding: 3rem 1.5rem 2.5rem; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; }
@media (max-width: 768px) { .footer-top { grid-template-columns: 1fr; gap: 2rem; } }
.footer-brand .logo { margin-bottom: 1rem; display: inline-flex; }
.footer-brand p { font-size: 0.875rem; line-height: 1.65; margin-bottom: 0.625rem; }
.footer-col h4 { color: #fff; font-size: 0.9375rem; margin-bottom: 1rem; font-family: Georgia, serif; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 0.625rem; }
.footer-col a { color: rgba(255,255,255,0.55); text-decoration: none; font-size: 0.875rem; transition: color 0.15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 1.5rem;
  max-width: 1200px; margin: 0 auto;
}
.footer-disclaimer {
  background: rgba(245,158,11,0.12); border: 1px solid rgba(245,158,11,0.3);
  border-radius: 8px; padding: 0.875rem 1rem;
  text-align: center; font-size: 0.8125rem;
  color: rgba(255, 215, 80, 0.9); margin-bottom: 1rem;
}
.footer-copy { text-align: center; font-size: 0.8125rem; color: rgba(255,255,255,0.4); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .section { padding: 2.5rem 1.25rem; }
  .page-hero { padding: 3rem 1.25rem 2.5rem; }
  .card-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero-btns { flex-direction: column; }
  .btn { justify-content: center; }
}
