/* ---------- Typography: Inter heading font ---------- */
@font-face{
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZ9hiA.woff2') format('woff2');
}

:root{
  --bg: #050a07;
  --panel: rgba(0,255,153,.08);
  --panel2: rgba(0,255,153,.06);
  --border: rgba(0,255,153,.28);
  --text: rgba(220,245,235,.92);
  --muted: rgba(180,255,220,.72);
  --muted2: rgba(150,255,210,.55);
  --accent: #00ff99;
  --glow: rgba(0,255,153,.65);
  --radius: 18px;
  --shadow: 0 18px 50px rgba(0,0,0,.45);
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

*{ box-sizing: border-box; }
html{
  margin:0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x:hidden;
}
body{
  margin:0;
  font-family: var(--sans);
  background:
    radial-gradient(900px 420px at 50% 0%, rgba(0,255,153,.22), transparent 60%),
    radial-gradient(520px 280px at 70% 18%, rgba(0,255,153,.18), transparent 62%),
    linear-gradient(180deg, rgba(0,255,153,.10), transparent 38%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x:hidden;
}

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

.wrap{
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 26px 16px 54px;
}

.topbar{
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(5,10,7,.80), rgba(5,10,7,.55));
  border-bottom: 1px solid rgba(0,255,153,.18);
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 14px 16px;
  max-width: 1120px;
  margin: 0 auto;
}

.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand-badge{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(0,255,153,.40);
  background: linear-gradient(180deg, rgba(0,255,153,.30), rgba(0,255,153,.10));
  box-shadow: 0 0 14px rgba(0,255,153,.30), inset 0 0 10px rgba(0,255,153,.18);
}

.navlinks{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.navlinks a{
  color: rgba(210,255,235,.88);
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.navlinks a:hover{
  border-color: rgba(0,255,153,.25);
  background: rgba(0,255,153,.05);
  text-decoration:none;
}
.navlinks a.active{
  color: var(--accent);
  border-color: rgba(0,255,153,.40);
  background: rgba(0,255,153,.07);
}

header.hero{
  position: relative;
  text-align:center;
  margin: 28px 0 18px;
  padding: 24px 0 10px;
  overflow:hidden;
}

/* Subtle hero-only ambient glow (keeps the rest of the page pure black) */
header.hero::after{
  content:"";
  position:absolute;
  left:50%;
  top:40%;
  transform: translate(-50%, -50%);
  width: min(720px, 88vw);
  height: 280px;
  pointer-events:none;
  z-index:0;
  background:
    radial-gradient(
      closest-side,
      rgba(0,255,153,.02),
      transparent 65%
    );
}

/* Circuit/chip watermark */
header.hero::before{
  content:"";
  position:absolute;
  left:50%;
  top:52%;
  transform: translate(-50%, -50%);
  width: min(680px, 94vw);
  height: 420px;
  background-repeat:no-repeat;
  background-position:center;
  background-size:contain;
  opacity:.12;
  pointer-events:none;
  z-index:0;
  filter: drop-shadow(0 0 24px rgba(0,255,153,.45));
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 520'%3E%3Crect x='250' y='130' width='400' height='260' rx='28' fill='none' stroke='%2300ff99' stroke-opacity='.9' stroke-width='2'/%3E%3Crect x='310' y='190' width='280' height='140' rx='18' fill='none' stroke='%2300ff99' stroke-opacity='.7' stroke-width='2'/%3E%3Cg stroke='%2300ff99' stroke-opacity='.65' stroke-width='2'%3E%3Cpath d='M250 170H160'/%3E%3Cpath d='M250 210H140'/%3E%3Cpath d='M250 250H120'/%3E%3Cpath d='M250 290H140'/%3E%3Cpath d='M250 330H160'/%3E%3Cpath d='M650 170H740'/%3E%3Cpath d='M650 210H760'/%3E%3Cpath d='M650 250H780'/%3E%3Cpath d='M650 290H760'/%3E%3Cpath d='M650 330H740'/%3E%3Cpath d='M350 130V70'/%3E%3Cpath d='M400 130V50'/%3E%3Cpath d='M450 130V40'/%3E%3Cpath d='M500 130V50'/%3E%3Cpath d='M550 130V70'/%3E%3Cpath d='M350 390V450'/%3E%3Cpath d='M400 390V470'/%3E%3Cpath d='M450 390V480'/%3E%3Cpath d='M500 390V470'/%3E%3Cpath d='M550 390V450'/%3E%3C/g%3E%3Cg fill='none' stroke='%2300ff99' stroke-opacity='.6' stroke-width='2'%3E%3Cpath d='M320 260h110c24 0 28-26 52-26h24c20 0 24 26 52 26h110'/%3E%3C/g%3E%3Cg fill='none' stroke='%2300ff99' stroke-opacity='.45' stroke-width='2'%3E%3Cpath d='M450 190v140'/%3E%3Cpath d='M390 260h120'/%3E%3C/g%3E%3C/svg%3E");
}
header.hero > *{ position:relative; z-index:1; }

h1{
  font-size: clamp(44px, 6.2vw, 80px);
  letter-spacing: -0.02em;
  margin: 0 0 10px 0;
  line-height: 1.02;
  color: var(--accent);
  text-shadow:
    0 0 12px rgba(0,255,153,.55),
    0 0 36px rgba(0,255,153,.25);
}
.sub{
  margin: 0 auto;
  max-width: 70ch;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.kpi{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content:center;
  margin-top: 14px;
}
.pill{
  font-size: 12px;
  color: rgba(210,255,235,.86);
  border: 1px solid rgba(0,255,153,.22);
  background: rgba(0,255,153,.05);
  padding: 7px 10px;
  border-radius: 999px;
}

.grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 18px;
}
@media (min-width: 900px){
  .grid{ grid-template-columns: 1.15fr .85fr; gap: 22px; }
}

.row3{
  display:grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 18px;
}
@media (min-width: 900px){
  .row3{ grid-template-columns: 1fr 1fr 1fr; }
}

.card{
  background: linear-gradient(180deg, rgba(0,255,153,.10), rgba(0,255,153,.04));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  backdrop-filter: blur(10px);
  box-shadow:
    inset 0 0 0 1px rgba(0,255,153,.10),
    0 0 24px rgba(0,255,153,.10);
}
.card h2{
  margin: 0 0 10px 0;
  font-size: 18px;
  letter-spacing: .01em;
}
.card p{ margin: 0; color: var(--muted); line-height: 1.7; font-size: 15px; max-width: 65ch; }

hr{
  border:none;
  border-top: 1px solid rgba(0,255,153,.18);
  margin: 18px 0;
}

.btnrow{
  display:flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0,255,153,.55);
  background: linear-gradient(180deg, rgba(0,255,153,.30), rgba(0,255,153,.18));
  color: var(--accent);
  cursor:pointer;
  font-weight: 800;
  letter-spacing: .01em;
  box-shadow:
    0 0 16px rgba(0,255,153,.55),
    inset 0 0 10px rgba(0,255,153,.30);
  transition: transform .06s ease, filter .2s ease, box-shadow .2s ease;
  text-decoration:none;
}
.btn.secondary{
  border-color: rgba(0,255,153,.32);
  background: rgba(0,0,0,.18);
  color: rgba(210,255,235,.92);
  box-shadow: none;
}
.btn:hover{
  filter: brightness(1.06);
  text-decoration:none;
}
.btn:active{ transform: translateY(1px); }

code, pre{
  font-family: var(--mono);
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(0,255,153,.22);
  border-radius: 14px;
}
pre{ padding: 14px; overflow:auto; }
code{ padding: 2px 6px; }

small, .small{ color: rgba(180,255,220,.62); }
.mono{ font-family: var(--mono); }
/* ---------- Repro table (preformatted, stable alignment) ---------- */

.repro-split{
  display: block;
  padding: 14px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(0,255,153,.22);
  border-radius: 14px;
}

.repro-split pre{
  margin: 0;
  padding-left: 18px;      /* single fixed anchor */
  background: transparent;
  border: none;

  width: max-content;
  max-width: 100%;
  margin: 0 auto;

  text-align: left;        /* never center pre text */
  white-space: pre;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  line-height: 1.35;

  display: block;
  overflow-x: auto;
}

/* Repro table header underline (first row only) */
.repro-split pre code{
  display: block;
  padding: 0;
  position: relative;
}

/* draw an underline after the first line */
.repro-split pre code::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;

  /* position after first line */
  top: 1.35em; /* matches line-height */

  border-bottom: 1px solid rgba(0,255,153,.45);
  pointer-events: none;
}


.repro-split pre + pre{
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(0,255,153,.18);
}

/* ---------- Verification table (tabular) ---------- */
.verify-table-wrap{
  display: block;
  padding: 12px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(0,255,153,.22);
  border-radius: 14px;
  overflow-x: auto;
}

.verify-table{
  width: 100%;
  min-width: 360px;
  border-collapse: collapse;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}

.verify-table thead th{
  text-align: center;
  padding: 6px 10px 8px;
  color: var(--accent);
  border-bottom: 1px solid rgba(0,255,153,.45);
  letter-spacing: .08em;
}

.verify-table tbody td{
  text-align: center;
  padding: 6px 10px;
  border-bottom: 1px solid rgba(0,255,153,.14);
  color: rgba(210,255,235,.90);
}

.verify-table tbody tr:nth-child(even){
  background: rgba(0,255,153,.04);
}

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

.list{
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}
.list li{ margin: 6px 0; }

.notice{
  border: 1px dashed rgba(0,255,153,.30);
  background: rgba(0,255,153,.05);
  padding: 12px 14px;
  border-radius: 14px;
  color: rgba(210,255,235,.86);
}

footer{
  text-align:center;
  margin-top: 22px;
  padding-bottom: 36px;
  color: rgba(180,255,220,.60);
  font-size: 12px;
}

/* ---------- Figure / Figcaption (reserved for future photos) ---------- */
figure{
  margin: 0;
}
figure img{
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid rgba(0,255,153,.18);
}
figcaption{
  font-size: 12px;
  color: rgba(180,255,220,.55);
  line-height: 1.5;
  margin-top: 6px;
}


form{ display:grid; gap: 12px; margin-top: 10px; }
label{ font-size: 13px; color: var(--muted2); }
.card form label{
  display: block;
  margin-bottom: 8px;
}
input, textarea{
  width:100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,255,153,.28);
  background: rgba(0,0,0,.22);
  color: var(--text);
  outline: none;
  font-size: 14px;
}
input:focus, textarea:focus{
  border-color: rgba(0,255,153,.55);
  box-shadow: 0 0 0 4px rgba(0,255,153,.10);
}
textarea{ min-height: 130px; resize: vertical; }

.split{
  display:grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 900px){
  .split{ grid-template-columns: 1fr 1fr; }
}

/* ---------- Hamburger toggle button ---------- */
.nav-toggle{
  display: none;
  background: none;
  border: 1px solid rgba(0,255,153,.30);
  border-radius: 8px;
  padding: 6px 8px;
  cursor: pointer;
  z-index: 40;
}
.hamburger,
.hamburger::before,
.hamburger::after{
  display: block;
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: transform .25s ease, opacity .15s ease;
  position: relative;
}
.hamburger::before,
.hamburger::after{
  content:"";
  position: absolute;
  left: 0;
  width: 20px;
}
.hamburger::before{ top: -6px; }
.hamburger::after{ top: 6px; }
/* Animate to X when open */
.nav-toggle[aria-expanded="true"] .hamburger{ background: transparent; }
.nav-toggle[aria-expanded="true"] .hamburger::before{ top:0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .hamburger::after{ top:0; transform: rotate(-45deg); }

/* ---------- Mobile header tuning ---------- */
@media (max-width: 768px){

  .nav{
    flex-wrap: wrap;
    padding: 10px 14px;
  }

  .nav-toggle{
    display: block;
    margin-left: auto;
  }

  .brand{
    gap: 8px;
  }
  .brand-badge{
    width: 28px;
    height: 28px;
    border-radius: 9px;
  }

  .navlinks{
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
    padding-top: 10px;
    border-top: 1px solid rgba(0,255,153,.12);
    margin-top: 8px;
  }
  .navlinks.open{
    display: flex;
  }
  .navlinks a{
    font-size: 13px;
    padding: 8px 10px;
    border-radius: 10px;
    width: 100%;
  }

  /* Hero block tighter */
  header.hero{
    margin: 18px 0 12px;
    padding: 16px 0 8px;
  }

  /* Main title: reduce overscale + soften glow */
  h1{
    font-size: clamp(34px, 10vw, 52px);
    line-height: 1.03;
    text-shadow:
      0 0 10px rgba(0,255,153,.42),
      0 0 26px rgba(0,255,153,.18);
  }

  /* Tighter card padding on mobile */
  .card{
    padding: 16px 14px;
    border-radius: 14px;
  }
  .card h2{ font-size: 16px; }
  .card p{ font-size: 14px; }
  .list li{ font-size: 14px; }
  .btnrow{ gap: 8px; }
  .btn{ padding: 10px 12px; font-size: 13px; }
}


/* ---------- Details / Summary (dropdown titles) ---------- */
/* Force dropdown labels (e.g., "Show K1 plaintext") to match title color */
details > summary,
details > summary.small{
  color: var(--accent) !important;
  cursor: pointer;
}
details > summary:hover,
details > summary.small:hover{
  color: var(--accent) !important;
}

/* References in the resources.html file */
/* References: smooth, elegant expand/collapse (scoped) */

#refs details { width: 100%; }

/* Remove bullets/indent just for the References list */
#refs ul.list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
#refs ul.list > li {
  margin: 0;
  padding: 0;
}

/* Each expandable item */
#refs .ref-item {
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.65rem 0;
}
#refs ul.list > li:first-child .ref-item {
  border-top: 0;
}

#refs summary {
  cursor: pointer;
  list-style: none;

  /* Smooth layout: Title | Hint | Chevron */
  display: grid;
  grid-template-columns: 240px 1fr 18px;
  gap: 0.9rem;
  align-items: center;

  padding: 0.45rem 0.35rem;
  border-radius: 10px;
}
#refs summary::-webkit-details-marker { display: none; }

/* Title tone-down (muted, museum-like) */
#refs summary b {
  color: rgba(127, 220, 182, 0.70); /* muted phosphor green (less bright) */
  font-weight: 520;
  letter-spacing: 0.01em;
}

/* Hint text softer + controlled measure */
#refs .ref-hint {
  font-size: 0.95rem;
  color: rgba(200, 215, 210, 0.72);
  line-height: 1.35;
  max-width: 52ch;
}

/* Chevron: quiet + aligned */
#refs summary::after {
  content: "›";
  justify-self: end;
  color: rgba(160, 180, 175, 0.55);
  font-size: 1.25rem;
  transform: translateY(-1px);
  transition: transform 160ms ease, opacity 160ms ease;
  opacity: 0.5;
}

#refs summary:hover::after { opacity: 0.75; }

#refs details[open] summary::after {
  transform: rotate(90deg) translateX(2px);
  opacity: 0.85;
}

/* Subtle hover/focus polish (quiet museum feel) */
#refs summary:hover {
  background: rgba(127, 220, 182, 0.06);
}

#refs summary:focus-visible {
  outline: 2px solid rgba(127, 220, 182, 0.22);
  outline-offset: 2px;
}

/* Body spacing: tighter and cleaner */
#refs .ref-body {
  margin-top: 0.5rem;
  padding: 0.25rem 0.35rem 0.1rem 0.35rem;
}

#refs .ref-body .list { margin-top: 0.45rem; }

#refs .ref-body a { text-decoration: none; }
#refs .ref-body a:hover { text-decoration: underline; }

/* Mobile: stack Title + Hint cleanly */
@media (max-width: 760px) {
  #refs summary {
    grid-template-columns: 1fr 18px;
    grid-template-areas:
      "title chevron"
      "hint  chevron";
    gap: 0.35rem 0.75rem;
    align-items: start;
  }

  #refs summary b { grid-area: title; }

  #refs .ref-hint {
    grid-area: hint;
    max-width: none;
  }

  #refs summary::after {
    grid-area: chevron;
    margin-top: 0.15rem;
  }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumb{
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 16px 0;
  font-size: 12px;
  color: rgba(180,255,220,.50);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumb a{
  color: rgba(180,255,220,.60);
  text-decoration: none;
  transition: color .15s;
}
.breadcrumb a:hover{
  color: var(--accent);
  text-decoration: underline;
}
.breadcrumb .sep{
  color: rgba(0,255,153,.25);
  font-size: 10px;
  user-select: none;
}
.breadcrumb .current{
  color: rgba(210,255,235,.82);
}

/* ---------- CTA Path Cards (homepage) ---------- */
.path-cards{
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 22px 0;
}
@media (min-width: 900px){
  .path-cards{ grid-template-columns: 1fr 1fr 1fr; }
}
.path-card{
  background: linear-gradient(180deg, rgba(0,255,153,.08), rgba(0,255,153,.03));
  border: 1px solid rgba(0,255,153,.22);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color .2s, box-shadow .2s;
}
.path-card:hover{
  border-color: rgba(0,255,153,.45);
  box-shadow: 0 0 20px rgba(0,255,153,.12);
}
.path-card .path-audience{
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  opacity: .8;
}
.path-card h3{
  margin: 0;
  font-size: 17px;
  color: var(--text);
  line-height: 1.3;
}
.path-card .path-desc{
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}
.path-card .path-route{
  font-size: 12px;
  color: rgba(180,255,220,.50);
  font-family: var(--mono);
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.path-card .path-route .step{
  color: rgba(210,255,235,.75);
}
.path-card .path-route .arr{
  color: rgba(0,255,153,.35);
}
.path-card .path-start{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0,255,153,.40);
  background: rgba(0,255,153,.08);
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, box-shadow .15s;
  align-self: flex-start;
}
.path-card .path-start:hover{
  background: rgba(0,255,153,.16);
  box-shadow: 0 0 12px rgba(0,255,153,.25);
  text-decoration: none;
}

/* ---------- Credibility strip ---------- */
.cred-strip{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 18px 0;
}
.cred-pill{
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid rgba(0,255,153,.30);
  background: rgba(0,255,153,.06);
  padding: 8px 14px;
  border-radius: 999px;
  letter-spacing: .01em;
}

/* ---------- Glossary (definition list) ---------- */
.glossary{ margin: 0; }
.glossary dt{
  color: var(--accent);
  font-weight: 700;
  font-size: 15px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(0,255,153,.10);
  scroll-margin-top: 80px;
}
.glossary dt:first-child{ margin-top: 0; padding-top: 0; border-top: none; }
.glossary dd{
  margin: 6px 0 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  max-width: 65ch;
}
.glossary dd a{ color: var(--accent); }

/* ---------- Continue-nav (bottom-of-page navigation) ---------- */
.continue-nav{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 14px;
}
@media (min-width: 900px){
  .continue-nav{ grid-template-columns: repeat(3, 1fr); }
}
.continue-link{
  display: block;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(0,255,153,.18);
  background: rgba(0,255,153,.04);
  text-decoration: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.continue-link:hover{
  border-color: rgba(0,255,153,.40);
  background: rgba(0,255,153,.08);
  box-shadow: 0 0 14px rgba(0,255,153,.10);
  text-decoration: none;
}
.continue-link .cl-title{
  display: block;
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
}
.continue-link .cl-desc{
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* ---------- Print stylesheet ---------- */
@media print{
  /* Reset dark theme for paper */
  :root{
    --bg: #fff;
    --text: #111;
    --muted: #333;
    --muted2: #555;
    --accent: #006644;
    --border: #ccc;
    --panel: transparent;
  }
  html, body{
    background: #fff;
    color: #111;
  }
  body{ background-image: none; }

  /* Hide navigation, hero decorations, buttons */
  .topbar, .breadcrumb, .nav-toggle,
  .btn, .btnrow, .continue-nav,
  .path-cards, .cred-strip,
  header.hero::before, header.hero::after,
  form, #contact, #contact-form,
  footer .disclaimer{ display: none !important; }

  /* Clean up cards for print */
  .card{
    background: none;
    border: 1px solid #ccc;
    box-shadow: none;
    backdrop-filter: none;
    padding: 14px;
    page-break-inside: avoid;
  }

  /* Headings */
  h1{
    color: #111;
    text-shadow: none;
    font-size: 28pt;
  }
  h2{ color: #222; font-size: 14pt; }
  h3{ color: #333; font-size: 12pt; }

  /* Links show URL */
  a{ color: #006644; }
  a[href^="http"]::after{
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #666;
    word-break: break-all;
  }
  /* Don't print URL for internal nav links */
  a[href^="index"]::after,
  a[href^="about"]::after,
  a[href^="solution"]::after,
  a[href^="method"]::after,
  a[href^="physical"]::after,
  a[href^="verify"]::after,
  a[href^="resources"]::after,
  a[href^="fieldguide"]::after,
  a[href^="glossary"]::after{ content: none; }

  /* Tables readable on paper */
  .verify-table{ font-size: 9pt; }
  .verify-table thead th{
    color: #111;
    border-bottom: 2px solid #333;
  }
  .verify-table tbody td{
    color: #111;
    border-bottom: 1px solid #ddd;
  }
  .verify-table tbody tr:nth-child(even){ background: #f5f5f5; }

  /* Pre/code blocks */
  pre, code{
    background: #f5f5f5;
    border-color: #ccc;
    color: #111;
  }

  /* Footer */
  footer{
    color: #666;
    border-top: 1px solid #ccc;
    padding-top: 10px;
  }

  /* Page breaks */
  .card + .card{ page-break-before: auto; }
  h2{ page-break-after: avoid; }
  table{ page-break-inside: avoid; }
}

/* ---------- Glossary (dl/dt/dd) ---------- */
.glossary{ margin: 0; }
.glossary dt{
  color: var(--accent);
  font-weight: 700;
  font-size: 15px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(0,255,153,.12);
  scroll-margin-top: 80px;
}
.glossary dt:first-child{
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.glossary dd{
  margin: 6px 0 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  max-width: 65ch;
}
