/* ==========================================================================
   LOCT for Healthcare — Design System
   Brand tokens derived from TEMPLATE_LOCT_for_Healthcare.potx
   ========================================================================== */

:root {
  /* --- Brand colors (from Supplier_LOCT_Seminar_Template_2025.pptx) --- */
  --forest: #178FF0;      /* accent1 — primary blue */
  --forest-deep: #000000; /* dk1 — black, primary dark bg/text */
  --moss: #8DC72F;        /* accent3 — green */
  --sage: #F722A1;        /* accent4 — magenta */
  --terracotta: #FE7240;  /* accent2 — orange */
  --gold: #FEA200;        /* accent6 — amber */
  --navy: #2E3192;        /* dk2 — indigo */
  --sky: #C661FF;         /* accent5 — purple */

  --ink: #111111;
  --ink-soft: #4C4C4C;
  --paper: #FAFAFA;
  --mist: #F2F2F2;
  --line: #E3E3E6;
  --white: #FFFFFF;

  /* --- Type --- */
  --font-display: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --font-body: Arial, "Helvetica Neue", Helvetica, "Segoe UI", sans-serif;

  /* --- Scale --- */
  --container: 1180px;
  --radius: 10px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.14);
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--forest); text-decoration: none; overflow-wrap: anywhere; word-break: break-word; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.3em; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.15;
  color: var(--forest-deep);
  margin: 0 0 0.5em;
}
p { margin: 0 0 1em; overflow-wrap: anywhere; }
button { font-family: inherit; }

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--moss);
}
.eyebrow .hex {
  width: 9px; height: 9px;
  background: var(--moss);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Hexagon link motif (signature element)
   -------------------------------------------------------------------------- */
.hex-marker {
  display: inline-block;
  width: 10px; height: 10px;
  background: currentColor;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Site header / nav
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--forest-deep);
  white-space: nowrap;
}
.brand img { height: 42px; width: auto; }
.brand .brand-name { display: flex; flex-direction: column; line-height: 1.1; }
.brand .brand-name small {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul {
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--forest);
  border-bottom-color: var(--moss);
}
.nav-cta {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--forest);
  color: var(--white) !important;
  padding: 14px 30px;
  min-width: 230px;
  text-align: center;
  border-radius: 8px;
  border-bottom: none !important;
  transition: background 0.15s ease;
}
.nav-cta:hover { background: var(--forest-deep); text-decoration: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px; height: 40px;
  position: relative;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: "";
  position: absolute;
  left: 9px; right: 9px;
  height: 2px;
  background: var(--forest-deep);
}
.nav-toggle::before { top: 14px; }
.nav-toggle span { top: 19px; }
.nav-toggle::after { top: 24px; }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    inset: 72px 0 0 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 24px 24px;
    display: none;
    overflow-y: auto;
  }
  .main-nav.open { display: flex; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul li { border-bottom: 1px solid var(--line); }
  .main-nav ul li a { display: block; padding: 16px 4px; }
  .nav-cta { display: block; width: 100%; margin-top: 16px; text-align: center; }
}

/* --------------------------------------------------------------------------
   Hero / hex pattern backgrounds
   -------------------------------------------------------------------------- */
.hex-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.14;
}
.hero {
  position: relative;
  background: var(--forest-deep);
  color: var(--white);
  overflow: hidden;
}
.hero .container { position: relative; z-index: 2; padding: 100px 24px 110px; }
.hero-text { max-width: 560px; }
.hero-ribbon {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  height: 100%;
  width: auto;
  z-index: 1;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to right, #000 0%, #000 36%, rgba(0,0,0,0.82) 47%, rgba(0,0,0,0.2) 62%, transparent 74%);
  pointer-events: none;
}
@media (max-width: 880px) {
  .hero .container { padding: 80px 24px 90px; }
  .hero-text { max-width: 100%; }
  .hero-ribbon { width: 100%; opacity: 0.35; }
}

.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-mist { background: var(--mist); }
.section-forest {
  background: var(--forest-deep);
  color: var(--white);
}
.section-forest h2, .section-forest h3 { color: var(--white); }
.hero h1, .hero h2, .hero h3, .hero h4 { color: var(--white); }
.hero h1 { font-weight: 300; letter-spacing: -0.01em; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, background 0.15s ease, color 0.15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--gold); color: var(--forest-deep); }
.btn-primary:hover { background: #ffd27e; }
.btn-ghost { border-color: rgba(255,255,255,0.55); color: var(--white); background: transparent; }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-outline { border-color: var(--forest); color: var(--forest); background: transparent; }
.btn-outline:hover { background: var(--forest); color: var(--white); }

/* --------------------------------------------------------------------------
   Cards / grids
   -------------------------------------------------------------------------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.card-stat {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.card-stat .num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--forest);
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}
.card-stat .label { color: var(--ink-soft); font-size: 0.95rem; }

/* chapter chain (signature progression element) */
.chapter-chain {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  margin: 48px 0;
}
.chapter-chain::before {
  content: "";
  position: absolute;
  top: 34px; left: 6%; right: 6%;
  height: 2px;
  background: repeating-linear-gradient(to right, var(--sage) 0 10px, transparent 10px 16px);
  z-index: 0;
}
.chapter-chain .node { position: relative; z-index: 1; text-align: center; padding: 0 14px; }
.chapter-chain .hexnum {
  width: 68px; height: 68px;
  margin: 0 auto 16px;
  background: var(--forest);
  color: var(--white);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 700;
}
.chapter-chain .node:nth-child(2) .hexnum { background: var(--moss); color: var(--forest-deep); }
.chapter-chain .node:nth-child(3) .hexnum { background: var(--sage); color: var(--forest-deep); }
.chapter-chain .node:nth-child(4) .hexnum { background: var(--terracotta); }
.chapter-chain h4 { font-size: 1.05rem; margin-bottom: 6px; }
.chapter-chain p { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }
@media (max-width: 760px) {
  .chapter-chain { grid-template-columns: 1fr; gap: 36px; }
  .chapter-chain::before { display: none; }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--forest-deep);
  color: rgba(255,255,255,0.95);
  padding: 56px 0 28px;
}
.site-footer a { color: var(--white); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer-grid h5 {
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-grid ul a {
  color: var(--forest);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: underline;
}

.footer-grid ul a:hover { color: #5ab5ff; text-decoration: underline; }
.footer-brand .brand { color: var(--white); }
.footer-brand .brand .brand-name small { color: rgba(255,255,255,0.90); }
.footer-brand p { font-size: 0.9rem; color: rgba(255,255,255,0.90); max-width: 320px; margin-top: 14px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 22px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.85);
}
.footer-bottom a { color: rgba(255,255,255,0.90); }
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Training page
   ========================================================================== */
.training-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 24px 100px;
  min-width: 0;
}
.training-main { min-width: 0; }
.training-sidebar {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.training-sidebar h2 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin-bottom: 12px;
  padding: 0 6px;
}
.toc-chapter { margin-bottom: 4px; }
.toc-chapter > a {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--forest-deep);
  padding: 9px 6px;
  border-radius: 6px;
  font-size: 0.98rem;
}
.toc-chapter > a:hover { background: var(--mist); text-decoration: none; }
.toc-chapter .toc-num { color: var(--moss); flex-shrink: 0; }
.toc-lessons { list-style: none; margin: 0 0 10px; padding-left: 22px; display: flex; flex-direction: column; gap: 2px; }
.toc-lessons a {
  display: block;
  font-size: 0.88rem;
  color: var(--ink-soft);
  padding: 6px 6px;
  border-radius: 6px;
  border-left: 2px solid transparent;
}
.toc-lessons a:hover { color: var(--forest); text-decoration: none; background: var(--mist); }
.toc-lessons a.active { color: var(--navy); border-left-color: var(--moss); font-weight: 600; background: var(--mist); }

.training-progress {
  position: fixed;
  top: 72px; left: 0; right: 0;
  height: 3px;
  background: transparent;
  z-index: 99;
}
.training-progress .bar { height: 100%; width: 0%; background: var(--moss); transition: width 0.1s linear; }

.training-main h2.chapter-title {
  font-size: 2rem;
  padding-top: 8px;
  margin-bottom: 4px;
}
.chapter-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 64px 0 28px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.chapter-divider:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.chapter-divider .chapter-hex {
  width: 44px; height: 44px;
  background: var(--forest);
  color: var(--white);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem;
  flex-shrink: 0;
}
.chapter-divider-text .chapter-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--moss);
  font-weight: 600;
}
.chapter-divider-text h2 { margin: 2px 0 0; }

.lesson-block { margin-bottom: 56px; padding-bottom: 8px; }
.lesson-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 18px;
}
.lesson-header .lesson-num {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--forest);
  background: transparent;
  border-radius: 6px;
  padding: 2px 0;
  font-size: 0.85rem;
}
.lesson-header h3 { margin: 0; font-size: 1.5rem; }

.training-main h3.screen-title {
  font-size: 1.18rem;
  margin-top: 40px;
  color: var(--ink);
  padding: 0 0 8px 14px;
  border-bottom: 1px solid var(--line);
  border-left: 3px solid var(--moss);
}
.training-main h4.sub-title {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: 24px;
}
.training-main p { color: var(--ink); max-width: 720px; }
.training-main ul, .training-main ol { max-width: 720px; color: var(--ink); }
.training-main li { margin-bottom: 6px; }

.callout {
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 24px 0;
  max-width: 760px;
}
.callout-goals { background: var(--mist); border-left: 4px solid var(--moss); }
.callout-goals h4 { margin-top: 0; color: var(--navy); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; }
.callout-goals ol { margin: 0; padding-left: 1.2em; }
.callout-recap { background: #FFF1EA; border-left: 4px solid var(--terracotta); }
.callout-recap h4 { margin-top: 0; color: var(--terracotta); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; }
.callout-discussion {
  background: var(--white);
  border: 1px dashed var(--sage);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 20px 0;
  max-width: 720px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.callout-discussion .hex-marker { color: var(--moss); margin-top: 6px; }
.callout-discussion strong { color: var(--ink); }

figure.content-figure {
  margin: 26px 0;
  max-width: 100%;
  background: none;
  border: none;
  padding: 0;
}
figure.content-figure img {
  width: 100%;
  height: auto;
  display: block;
}
figure.content-figure figcaption {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 8px;
}

.video-card {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--forest-deep);
  border-radius: var(--radius);
  padding: 14px;
  max-width: 560px;
  margin: 22px 0;
  color: var(--white);
}
.video-card .thumb {
  width: 110px; height: 64px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--forest);
  position: relative;
}
.video-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-card .thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at center, rgba(0,0,0,0.15), rgba(0,0,0,0.35));
}
.video-card .play {
  position: absolute; top: 50%; left: 50%;
  width: 26px; height: 26px;
  margin: -13px 0 0 -13px;
  background: rgba(255,255,255,0.92);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.video-card .play::after {
  content: "";
  border-style: solid;
  border-width: 6px 0 6px 9px;
  border-color: transparent transparent transparent var(--forest-deep);
  margin-left: 2px;
}
.video-card .meta { min-width: 0; }
.video-card .meta .tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sage);
}
.video-card .meta .title { font-weight: 700; font-size: 0.95rem; }

table.content-table {
  width: 100%;
  max-width: 760px;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.92rem;
}
table.content-table th, table.content-table td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
table.content-table th {
  background: var(--forest);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
}
table.content-table tr:nth-child(even) td { background: var(--mist); }
.table-scroll { overflow-x: auto; max-width: 760px; }

details.accordion-section {
  max-width: 760px;
  margin: 12px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
}
details.accordion-section + details.accordion-section { margin-top: 10px; }
details.accordion-section summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 18px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--forest-deep);
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--mist);
}
details.accordion-section summary::-webkit-details-marker { display: none; }
details.accordion-section summary .hex-marker { color: var(--moss); }
details.accordion-section summary::after {
  content: "+";
  margin-left: auto;
  font-size: 1.2rem;
  color: var(--ink-soft);
}
details.accordion-section[open] summary::after { content: "\2212"; }
.accordion-body { padding: 16px 20px 18px; }
.accordion-body dt { font-weight: 700; color: var(--ink); margin-top: 12px; }
.accordion-body dt:first-child { margin-top: 0; }
.accordion-body dd { margin: 4px 0 0; color: var(--ink); }
.accordion-group { margin: 20px 0; }

.accordion-recap > summary { background: #FFF1EA; }
.accordion-recap > summary .hex-marker { color: var(--terracotta); }

.quiz-card {
  max-width: 760px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin: 26px 0;
  box-shadow: var(--shadow-sm);
}
.quiz-card .quiz-kind {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  color: var(--moss);
  font-weight: 700;
}
.quiz-card h4 { margin-top: 4px; }
.quiz-question { margin-top: 20px; }
.quiz-question:first-of-type { margin-top: 14px; }
.quiz-question p.q-text { font-weight: 600; margin-bottom: 4px; }
.quiz-question .q-hint { font-size: 0.78rem; color: var(--ink-soft); margin-bottom: 10px; }
.quiz-reveal-btn {
  margin-top: 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  background: var(--forest);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 9px 20px;
  cursor: pointer;
}
.quiz-reveal-btn:hover { background: var(--forest-deep); }
.weblink-card {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 560px;
  margin: 20px 0;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.weblink-card .hex-marker { color: var(--navy); flex-shrink: 0; }
.weblink-card a { font-weight: 600; }

.mobile-toc-toggle {
  display: none;
  grid-column: 1 / -1;
  width: 100%;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  background: var(--forest);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 4px;
  cursor: pointer;
}

@media (max-width: 980px) {
  .training-layout { grid-template-columns: minmax(0, 1fr); padding-top: 24px; }
  .training-sidebar {
    position: static;
    max-height: none;
    display: none;
  }
  .training-sidebar.open { display: block; }
  .mobile-toc-toggle { display: block; }
}

/* ==========================================================================
   Generic content page (contact / privacy)
   ========================================================================== */
.page-hero {
  background: var(--forest-deep);
  color: var(--white);
  padding: 64px 0 56px;
}
.page-hero h1 { color: var(--white); font-size: 2.4rem; margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,0.95); max-width: 640px; font-size: 1.05rem; margin: 0; }

.prose { max-width: 760px; }
.prose h2 { margin-top: 2.2em; font-size: 1.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; font-size: 1.15rem; color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { margin-bottom: 1.2em; }

.legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0,1fr);
  gap: 48px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px 24px 100px;
  align-items: start;
  min-width: 0;
}
.legal-toc {
  position: sticky;
  top: 96px;
  border-left: 2px solid var(--line);
  padding-left: 18px;
}
.legal-toc h2 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.legal-toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.legal-toc a { font-size: 0.9rem; color: var(--ink-soft); }
.legal-toc a:hover { color: var(--forest); text-decoration: none; }
@media (max-width: 880px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 18px; }
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 72px 24px 100px;
  align-items: start;
  min-width: 0;
}
@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--forest-deep);
}
.form-row input, .form-row select, .form-row textarea {
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  border-color: var(--moss);
}
.form-note { font-size: 0.82rem; color: var(--ink-soft); }

.info-cards { display: flex; flex-direction: column; gap: 18px; }
.info-card {
  display: flex;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.info-card .hexicon {
  width: 42px; height: 42px;
  flex-shrink: 0;
  background: var(--forest);
  color: var(--white);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700;
}
.info-card h4 { margin: 0 0 4px; font-size: 1rem; }
.info-card p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--forest);
  color: var(--white);
  padding: 10px 16px;
  z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ==========================================================================
   Access gate page
   ========================================================================== */
.access-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 48px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px 24px 110px;
  align-items: start;
  min-width: 0;
}
.access-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.access-card form { display: flex; flex-direction: column; gap: 20px; }
.access-card form[hidden] { display: none; }
.access-trust ul { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 14px; }
.access-trust li {
  font-size: 0.92rem;
  color: var(--ink-soft);
  padding-left: 20px;
  position: relative;
}
.access-trust li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 9px; height: 9px;
  background: var(--moss);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}
@media (max-width: 880px) {
  .access-wrap { grid-template-columns: minmax(0, 1fr); }
}

.access-alert {
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.9rem;
  background: #FFF1EA;
  border-left: 4px solid var(--terracotta);
  color: var(--ink);
}
.access-alert.is-blocked {
  background: var(--mist);
  border-left-color: var(--forest-deep);
}
.access-success {
  border-radius: 8px;
  padding: 16px 18px;
  background: #EFF7EC;
  border-left: 4px solid var(--moss);
  color: var(--ink);
}
.access-success h4 { margin: 0 0 4px; font-size: 1rem; color: var(--forest-deep); }
.access-success p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 300;
}
.modal-overlay[hidden] { display: none; }
.modal-box {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  max-width: 460px;
  width: 100%;
  box-shadow: var(--shadow-md);
}
.modal-box form { display: flex; flex-direction: column; gap: 16px; margin-top: 18px; }
.modal-box form[hidden] { display: none; }
.modal-box p { color: var(--ink-soft); }
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--mist);
  color: var(--ink);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover { background: var(--line); }

/* NAM grid responsive */
@media (max-width: 880px) {
  .nam-grid { grid-template-columns: minmax(0, 1fr) !important; }
}

/* Survey cards — options are selectable but have no "correct" answer */
.survey-card /* Open-response text area in quiz/self-check cards */
.open-response {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  resize: vertical;
  background: var(--white);
  margin-top: 6px;
}
.open-response:focus {
  outline: none;
  border-color: var(--moss);
}


/* Fix anchor scroll offset for sticky header */
.lesson-block, .chapter-divider { scroll-margin-top: 112px; }
.lesson-block::before { display: block; content: ""; margin-top: -112px; padding-top: 112px; visibility: hidden; pointer-events: none; }

/* Emission factor source blocks */
.ef-source { padding: 4px 0 8px; }
.ef-source p { margin-bottom: 6px; }
.ef-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.ef-table th {
  text-align: left;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 3px 10px 3px 0;
  width: 200px;
  vertical-align: top;
  white-space: nowrap;
}
.ef-table td { padding: 3px 0; color: var(--ink); }
.ef-divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 14px 0;
}

/* Numbered steps in training content */
.training-main ol:not(.callout-goals ol):not(.toc-lessons) {
  list-style: decimal;
  padding-left: 1.6em;
  margin: 0 0 1.2em;
}
.training-main ol:not(.callout-goals ol):not(.toc-lessons) > li {
  margin-bottom: 14px;
  padding-left: 4px;
}

/* Match accordion body paragraph spacing to body copy */
.accordion-body p {
  margin: 0 0 1em;
  line-height: 1.6;
}
.accordion-body p:last-child {
  margin-bottom: 0;
}
.accordion-body dd {
  margin: 0 0 1em;
  line-height: 1.6;
}
.accordion-body dd:last-child {
  margin-bottom: 0;
}
.accordion-body dl {
  margin: 0;
}

/* Hide answer notes in practice/open-response cards until revealed */
.quiz-card .quiz-question > p.note { display: none; }

/* Notes inside quiz options — hidden until Reveal Answer */
.quiz-options li .note {
  display: none;
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-left: 4px;
}
.quiz-card.revealed .quiz-options li .note { display: inline; }

/* Card-level note paragraphs */
.quiz-card > p.note { display: none; }
.quiz-card .quiz-question > p.note { display: none; }
.quiz-card.revealed > p.note { display: block; }
.quiz-card.revealed .quiz-question > p.note { display: block; }

/* Keep textarea editable after reveal */
.quiz-card.revealed textarea.open-response { pointer-events: auto; cursor: text; }
