/* COMPASS 1.0. Palette from asmbs.org (see README). Brand and design tokens are all in :root, so the look can
   be changed here. Gold and teal are decorative only (they fail 4.5:1 on white); text uses the blues and the darker tier
   colors. Treatment-kind colors (--k-*) are used for graphics only, never for body text. */
:root {
  --brand-primary: #123e8d;      /* ASMBS primary blue */
  --brand-secondary: #005bff;    /* focus rings, large accents */
  --brand-navy: #0c2859;
  --brand-ink: #071938;          /* headings */
  --brand-text: #1f2937;         /* body text */
  --brand-light: #d7e3f9;
  --brand-lighter: #e8effd;
  --brand-lightest: #f4f7fd;
  --brand-teal: #5ac1e2;         /* decorative only */
  --brand-gold: #bd9a27;         /* decorative only */
  --gold-soft: #e9cf7a;          /* decorative only (on navy) */
  --gold-strong: #826400;
  --brand-red: #af2a30;
  --muted: #4a5568;
  --line: #dbe3f0;
  --bg: #f2f5fa;
  --white: #ffffff;
  --warn-bg: #fbf5df; --warn-border: #bd9a27; --warn-text: #3d3000;
  --bad-bg: #fbeaea; --bad-border: #af2a30; --bad-text: #6f1519;
  /* fit tiers: text color, tint, border */
  --t-well: #0b6b3a;  --t-well-bg: #e3f5ea;
  --t-suit: #123e8d;  --t-suit-bg: #e8effd;
  --t-less: #7a4b00;  --t-less-bg: #fdf1dc;
  --t-no: #8f1d22;    --t-no-bg: #fbeaea;
  --t-ne: #374151;    --t-ne-bg: #eef0f3;
  /* kinds of treatment (graphics) */
  --k-surgery: #1f4ea3;    --k-surgery-l: #b7cbef;    --k-surgery-bg: #e6eefb;
  --k-endoscopic: #0f7c86; --k-endoscopic-l: #a6dade; --k-endoscopic-bg: #e2f4f5;
  --k-medicine: #6a42c2;   --k-medicine-l: #d0c2f0;   --k-medicine-bg: #efe9fb;
  --k-lifestyle: #a8650a;  --k-lifestyle-l: #f1d3a3;  --k-lifestyle-bg: #fbf1e1;
  --risk: #c2410c; --risk-off: #dde3ec;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow-md: 0 6px 16px rgba(15, 23, 42, .08), 0 2px 4px rgba(15, 23, 42, .05);
  --radius: 14px; --radius-sm: 8px;
  --maxw: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; }
/* one text size for both views (the patient view used to be larger) */
body { margin: 0; font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif; line-height: 1.55;
  color: var(--brand-text); background: var(--bg); font-size: 1.0625rem; }
h1, h2, h3, h4, h5 { color: var(--brand-ink); line-height: 1.25; margin: 0 0 .5rem; letter-spacing: -.005em; }
h1 { font-size: 2rem; } h2 { font-size: 1.5rem; } h3 { font-size: 1.22rem; } h4 { font-size: 1.06rem; } h5 { font-size: 1.1rem; }
p { margin: 0 0 .75rem; } ul { margin: 0 0 .75rem; padding-left: 1.25rem; }
a { color: var(--brand-primary); text-underline-offset: 2px; }
a:hover { color: var(--brand-navy); }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
.icon { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -.2em; }
.ic { display: inline-flex; }

/* focus: always visible, two-tone so it shows on light and dark */
:focus-visible { outline: 3px solid var(--brand-secondary); outline-offset: 2px; box-shadow: 0 0 0 2px #fff; }
.site-footer :focus-visible, .hero :focus-visible { outline-color: #fff; box-shadow: 0 0 0 2px var(--brand-navy); }
.skip-link { position: absolute; left: .5rem; top: -4rem; background: var(--brand-primary); color: #fff; padding: .6rem 1rem; border-radius: 6px; z-index: 100; }
.skip-link:focus { top: .5rem; }
h2[tabindex="-1"]:focus, fieldset[tabindex="-1"]:focus, article[tabindex="-1"]:focus:not(:focus-visible) { outline: none; box-shadow: none; }

/* header */
.site-header { background: #fff; border-bottom: 4px solid var(--brand-primary); box-shadow: var(--shadow-sm); }
.site-header .container { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; padding-top: .7rem; padding-bottom: .7rem; }
.brand { display: flex; align-items: center; gap: 1rem; flex: 1 1 420px; min-width: 0; }
.brand img { height: 54px; width: auto; display: block; }
.brand-title { border-left: 3px solid var(--brand-gold); padding-left: 1rem; min-width: 0; }
/* the claude.ai copy (build/make_web.py without --standalone): a neutral COMPASS mark in place of the logo */
.brand-mark { flex: none; width: 54px; height: 54px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--brand-primary); color: #fff; box-shadow: inset 0 0 0 3px var(--gold-soft); }
.brand-mark .icon { width: 30px; height: 30px; stroke-width: 1.8; }
.brand-title .name { font-size: 1.5rem; font-weight: 700; color: var(--brand-primary); letter-spacing: .06em; margin: 0; }
.brand-title .tag { margin: 0; font-size: .9rem; color: var(--muted); }
.brand-title .tag .ac { color: var(--brand-primary); font-weight: 700; }   /* the letters of COMPASS, in the title's ASMBS blue (project lead, 2026-10-24) */
.segmented { display: inline-flex; border: 2px solid var(--brand-primary); border-radius: 999px; overflow: hidden; background: #fff; }
.segmented label { position: relative; display: block; padding: .45rem 1.1rem; min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; color: var(--brand-primary); }
.segmented input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.segmented label + label { border-left: 2px solid var(--brand-primary); }
.segmented label:has(input:checked) { background: var(--brand-primary); color: #fff; }
.segmented label:has(input:focus-visible) { outline: 3px solid var(--brand-secondary); outline-offset: 2px; }

/* banners */
.banner { border-left: 6px solid var(--brand-gold); background: var(--warn-bg); color: var(--warn-text); padding: .75rem 1rem; border-radius: var(--radius-sm); margin: 1rem 0; }
.banner strong { color: var(--warn-text); }
.banner p { margin: 0; }
.banner.slim { display: flex; gap: .65rem; align-items: flex-start; font-size: .92rem; padding: .55rem .9rem; margin: .9rem 0; border-left-width: 4px; }
.banner.slim .icon { width: 1.3em; height: 1.3em; color: var(--gold-strong); margin-top: .05rem; }
.banner.danger { border-left-color: var(--brand-red); background: var(--bad-bg); color: var(--bad-text); }
.banner.info { border-left-color: var(--brand-primary); background: var(--brand-lighter); color: var(--brand-ink); }

/* cards and general */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.35rem; margin: 0 0 1.1rem; box-shadow: var(--shadow-sm); }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.hint { color: var(--muted); font-size: .9rem; margin: .15rem 0 .5rem; }
.mb { margin-bottom: .75rem; } .mt { margin-top: .5rem; } .mt2 { margin-top: 1rem; } .tight { margin: 0; } .self-center { align-self: center; }
details { margin: .4rem 0; }
summary { cursor: pointer; font-weight: 600; color: var(--brand-primary); min-height: 36px; padding: .25rem 0; }

/* start section */
.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-navy) 100%); color: #fff; border-radius: 18px; padding: 1.9rem 2.1rem 1.6rem; margin: 0 0 1.25rem; box-shadow: var(--shadow-md); }
.hero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; border: 36px solid rgba(255, 255, 255, .06); }
.hero h1 { color: #fff; font-size: 2.05rem; margin-bottom: .55rem; max-width: 34ch; }
.hero-lead { font-size: 1.1rem; max-width: 62ch; color: #e8eefb; }
.hero-points { list-style: none; padding: 0; margin: 1.1rem 0 .9rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: .6rem 1.1rem; }
.hero-points li { display: flex; gap: .65rem; align-items: center; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; padding: .6rem .8rem; }
.hero-points .icon { width: 1.55em; height: 1.55em; color: var(--gold-soft); }
.hero-points strong { color: #fff; }
.hero-note { display: flex; gap: .5rem; align-items: center; margin: 0; font-size: .9rem; color: #d5def3; }
.hero-note .icon { color: var(--gold-soft); }

/* form: one card, four steps */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.3rem 1.4rem 1.2rem; margin-bottom: 1.25rem; }
.form-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; }
.form-head h2 { margin: 0; }
.step-count { margin: 0; color: var(--muted); font-weight: 600; font-size: .92rem; }
.stepper { list-style: none; margin: 1rem 0 .55rem; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; counter-reset: s; }
.step-btn { width: 100%; display: flex; align-items: center; gap: .55rem; min-height: 48px; padding: .4rem .6rem; border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--brand-ink); font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; text-align: left; }
.step-btn:hover { border-color: var(--brand-light); background: var(--brand-lightest); }
.step-btn .num { flex: none; width: 1.9rem; height: 1.9rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--brand-lighter); color: var(--brand-primary); font-weight: 700; }
.step-btn[aria-current="step"] { border-color: var(--brand-primary); background: var(--brand-lightest); }
.step-btn[aria-current="step"] .num, .step-btn.done .num { background: var(--brand-primary); color: #fff; }
.progress { height: 6px; border-radius: 3px; background: var(--brand-lighter); overflow: hidden; margin-bottom: 1.1rem; }
.progress span { display: block; height: 100%; width: 25%; background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary)); border-radius: 3px; transition: width .25s ease; }
fieldset { border: 0; padding: 0; margin: 0 0 .5rem; min-width: 0; }
fieldset.step > legend { font-weight: 700; color: var(--brand-ink); padding: 0; font-size: 1.25rem; margin-bottom: .6rem; }
legend { font-weight: 700; color: var(--brand-primary); padding: 0 .4rem; font-size: 1.05rem; }
.grid { display: grid; gap: .9rem 1.25rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.field { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.field > label, .field > .lbl { font-weight: 600; }
/* optional feedback survey at the end of the results (2026-10-21) */
.survey .sv-q { margin: .9rem 0; }
.survey .sv-q > legend { color: var(--brand-ink); padding: 0; font-size: 1rem; margin-bottom: .35rem; }
.survey .sv-q label { display: inline-flex; align-items: center; gap: .35rem; margin: 0 1.1rem .4rem 0; font-weight: 400; }
.survey .field { margin: .9rem 0; max-width: 34rem; }
.survey textarea { width: 100%; }
.survey .sv-sure { border-left: 3px solid var(--brand-lighter); padding-left: .85rem; margin: .9rem 0; }   /* the SURE test (patients only) */
.survey .sv-sure-intro { font-weight: 600; color: var(--brand-ink); margin: 0; }
.survey .sv-sure .sv-q { margin: .55rem 0; }
input[type=number], input[type=text], select { font: inherit; min-height: 46px; padding: .45rem .65rem; border: 2px solid #8a97ad; border-radius: 10px; background: #fff; color: var(--brand-text); width: 100%; }
input[type=number]:hover, select:hover { border-color: var(--brand-primary); }
input[aria-invalid=true] { border-color: var(--brand-red); background: #fff7f7; }
.inline { display: flex; gap: .6rem; align-items: flex-end; }
.inline .field { flex: 1 1 0; }
.checks { display: grid; gap: .1rem 1.25rem; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.check, .radio { display: flex; gap: .6rem; align-items: flex-start; min-height: 44px; padding: .4rem 0; cursor: pointer; }
.check input, .radio input { width: 22px; height: 22px; margin: .15rem 0 0; flex: 0 0 auto; accent-color: var(--brand-primary); }
.sub { margin: 0 0 .25rem 2rem; }
.radio-row { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.error-text { color: var(--bad-text); font-weight: 600; font-size: .9rem; }
#error-summary { background: var(--bad-bg); border: 2px solid var(--brand-red); color: var(--bad-text); border-radius: var(--radius-sm); padding: .75rem 1rem; margin-bottom: 1rem; }
#error-summary a { color: var(--bad-text); font-weight: 600; }
.bmi-box { background: var(--brand-lighter); border: 1px solid var(--brand-light); border-radius: 10px; padding: .6rem .9rem; min-height: 46px; display: flex; align-items: center; font-weight: 700; color: var(--brand-ink); }
/* BMI scale 15 to 55: bands at 18.5, 25, 30, 35, 40 and 50 */
.bmi-scale { margin-top: .45rem; }
.bmi-track { position: relative; display: flex; height: 10px; border-radius: 5px; overflow: visible; }
.bmi-track .z:nth-child(1) { flex: 0 0 8.75%; background: #e3e8f1; border-radius: 5px 0 0 5px; }
.bmi-track .z:nth-child(2) { flex: 0 0 16.25%; background: #cfe0f5; }
.bmi-track .z:nth-child(3) { flex: 0 0 12.5%; background: #b4cdee; }
.bmi-track .z:nth-child(4) { flex: 0 0 12.5%; background: #93b4e4; }
.bmi-track .z:nth-child(5) { flex: 0 0 12.5%; background: #6f97d6; }
.bmi-track .z:nth-child(6) { flex: 1 1 auto; background: #4a78c4; border-radius: 0 5px 5px 0; }
.bmi-marker { position: absolute; top: -5px; width: 4px; height: 20px; margin-left: -2px; background: var(--brand-ink); border-radius: 2px; box-shadow: 0 0 0 2px #fff; }
.bmi-ticks { position: relative; height: 1.2rem; font-size: .72rem; color: var(--muted); }
.bmi-ticks span { position: absolute; transform: translateX(-50%); top: .15rem; }
.bmi-ticks span:nth-child(1) { left: 8.75%; } .bmi-ticks span:nth-child(2) { left: 25%; } .bmi-ticks span:nth-child(3) { left: 37.5%; }
.bmi-ticks span:nth-child(4) { left: 50%; } .bmi-ticks span:nth-child(5) { left: 62.5%; } .bmi-ticks span:nth-child(6) { left: 87.5%; }
details.more-q { margin: .75rem 0 0; border-top: 1px solid var(--line); padding-top: .5rem; }
details.more-q > summary { min-height: 44px; padding: .55rem 0; }
details.more-q > summary .hint { margin: 0 0 0 .3rem; font-weight: 400; }

/* weight-loss goal: a slider in percent that also shows the weight it means (step 4 of the form, and above the weight-loss
   chart). The thumb is 28px in every browser, so the filled track and the tick labels line up with its centre, which
   travels from 14px to (width - 14px). app.js sets --f (0 to 1). */
.goal-box { margin: 1.1rem 0 .3rem; padding: .8rem 1rem .45rem; background: var(--brand-lightest); border: 1px solid var(--brand-light); border-radius: 12px; }
.goal-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .1rem 1rem; }
.goal-lbl { font-weight: 700; color: var(--brand-ink); }
.goal-out { margin: 0; color: var(--brand-ink); }
.goal-out strong { font-size: 1.3rem; color: var(--brand-primary); }
.goal-out .goal-to { color: var(--muted); }
.goal-range { --f: 0; -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 44px; margin: .2rem 0 0; padding: 0; background: transparent; cursor: pointer; }
.goal-range::-webkit-slider-runnable-track { height: 10px; border-radius: 5px; border: 1px solid #8a97ad;
  background: linear-gradient(to right, var(--brand-primary) calc(14px + (100% - 28px) * var(--f)), #fff calc(14px + (100% - 28px) * var(--f))); }
.goal-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; box-sizing: border-box; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%; background: #fff; border: 3px solid var(--brand-primary); box-shadow: 0 1px 3px rgba(7, 25, 56, .35); }
.goal-range::-moz-range-track { height: 10px; border-radius: 5px; border: 1px solid #8a97ad; background: #fff; }
.goal-range::-moz-range-progress { height: 10px; border-radius: 5px 0 0 5px; background: var(--brand-primary); }
.goal-range::-moz-range-thumb { box-sizing: border-box; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 3px solid var(--brand-primary); box-shadow: 0 1px 3px rgba(7, 25, 56, .35); }
.goal-range:hover::-webkit-slider-thumb { background: var(--brand-lighter); }
.goal-range:hover::-moz-range-thumb { background: var(--brand-lighter); }
.goal-range:focus-visible { outline: 3px solid var(--brand-secondary); outline-offset: 2px; border-radius: 8px; }
.goal-ticks { margin: 0 0 .3rem; font-size: .76rem; color: var(--muted); }
.goal-row { position: relative; height: 1.15rem; }
.goal-row.wt { color: var(--brand-ink); }
.goal-row span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.goal-row span:nth-child(1) { left: 14px; }
.goal-row span:nth-child(2) { left: calc(14px + (100% - 28px) / 6); }
.goal-row span:nth-child(3) { left: calc(14px + (100% - 28px) / 3); }
.goal-row span:nth-child(4) { left: 50%; }
.goal-row span:nth-child(5) { left: calc(14px + (100% - 28px) * 2 / 3); }
.goal-row span:nth-child(6) { left: calc(14px + (100% - 28px) * 5 / 6); }
.goal-row span:nth-child(7) { left: calc(100% - 14px); }
#goal-res-box { margin: .75rem 0 .25rem; }

/* buttons */
.btn { font: inherit; font-weight: 700; min-height: 46px; padding: .55rem 1.25rem; border-radius: 10px; border: 2px solid var(--brand-primary); background: var(--brand-primary); color: #fff; cursor: pointer; display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; }
.btn:hover { background: var(--brand-navy); border-color: var(--brand-navy); }
.btn.secondary { background: #fff; color: var(--brand-primary); }
.btn.secondary:hover { background: var(--brand-lighter); color: var(--brand-navy); }
.btn.link { background: transparent; border-color: transparent; color: var(--brand-primary); padding-left: .4rem; padding-right: .4rem; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.btn.link:hover { color: var(--brand-navy); background: var(--brand-lightest); }
.btn-row, .wizard-nav { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: .75rem; }
.wizard-nav { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1.1rem; }
.wizard-nav .spacer { flex: 1 1 auto; }

/* demonstration examples (form page) */
.examples { margin: 0 0 1.25rem; padding: 1rem 1.3rem; border: 1px dashed #b9c6dc; border-radius: var(--radius); background: #fff; }
.examples h2 { font-size: 1.1rem; margin-bottom: .2rem; }
.ex-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .65rem; }
.ex-btn { min-height: 40px; padding: .35rem .9rem; font-size: .92rem; font-weight: 600; border-radius: 999px; border-width: 1.5px; }

/* results: top */
#results { margin-top: .4rem; }
.results-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: .5rem 1.5rem; margin: .4rem 0 1rem; }
.results-title { flex: 1 1 420px; }
.results-title h2 { font-size: 1.75rem; margin-bottom: .2rem; }
.lead { font-size: 1.08rem; color: var(--brand-ink); margin: 0; }
.results-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.results-actions .btn { min-height: 42px; padding: .4rem .9rem; font-size: .95rem; }

/* fit badges (chips): symbol plus words */
.chip { display: inline-flex; align-items: center; gap: .3rem; font-size: .88rem; font-weight: 700; padding: .18rem .7rem .18rem .5rem; border-radius: 999px; border: 1.5px solid; white-space: nowrap; line-height: 1.3; }
.chip .icon { width: 1.05em; height: 1.05em; stroke-width: 2.4; }
.chip.well_suited { background: var(--t-well-bg); border-color: var(--t-well); color: var(--t-well); }
.chip.reasonable { background: var(--t-suit-bg); border-color: var(--t-suit); color: var(--t-suit); }
.chip.less_suited { background: var(--t-less-bg); border-color: var(--t-less); color: var(--t-less); }
.chip.contraindicated { background: var(--t-no-bg); border-color: var(--t-no); color: var(--t-no); }
.chip.not_eligible { background: var(--t-ne-bg); border-color: #6b7280; color: var(--t-ne); }
.chip.small { font-size: .74rem; padding: .05rem .5rem .05rem .35rem; border-width: 1px; font-weight: 600; }
/* treatment-kind badges: icon in a tinted circle */
.tbadge { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; }
.tbadge .icon { width: 1.45rem; height: 1.45rem; }
.tbadge.sm { width: 1.75rem; height: 1.75rem; }
.tbadge.sm .icon { width: 1.05rem; height: 1.05rem; }
.k-surgery .tbadge, .tbadge.k-surgery { background: var(--k-surgery-bg); color: var(--k-surgery); }
.k-endoscopic .tbadge, .tbadge.k-endoscopic { background: var(--k-endoscopic-bg); color: var(--k-endoscopic); }
.k-medicine .tbadge, .tbadge.k-medicine { background: var(--k-medicine-bg); color: var(--k-medicine); }
.k-lifestyle .tbadge, .tbadge.k-lifestyle { background: var(--k-lifestyle-bg); color: var(--k-lifestyle); }

/* at a glance */
.glance h3 { margin-bottom: .7rem; }
.glance-row { display: grid; grid-template-columns: minmax(150px, 190px) 1fr; gap: .6rem 1rem; align-items: start; padding: .55rem 0; border-top: 1px solid var(--line); }
.glance-row:first-of-type { border-top: 0; padding-top: 0; }
.glance-tier { padding-top: .3rem; }
.glance-opts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.gopt { display: inline-flex; align-items: center; gap: .45rem; padding: .25rem .8rem .25rem .3rem; min-height: 40px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--brand-ink); font-weight: 600; text-decoration: none; box-shadow: var(--shadow-sm); }
.gopt:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.glance-more { margin-top: .6rem; }

/* weight chart for this person */
.wl-tabs { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: .7rem 0 .25rem; }
.wl-tabs-lbl { font-weight: 600; color: var(--muted); margin-right: .15rem; }
.wl-tab { font: inherit; font-size: .95rem; font-weight: 600; min-height: 44px; padding: .35rem .95rem; border-radius: 999px; border: 2px solid var(--brand-primary); background: #fff; color: var(--brand-primary); cursor: pointer; }
.wl-tab:hover { background: var(--brand-lighter); color: var(--brand-navy); }
.wl-tab[aria-pressed="true"] { background: var(--brand-primary); color: #fff; }
.wl-when { font-weight: 700; color: var(--brand-ink); margin: .7rem 0 .2rem; font-size: 1.05rem; }
.wl-rows { list-style: none; margin: 0; padding: 0; }
.wl-group { margin: .9rem 0 .35rem; }
.wl-group + .wl-rows .wl-row:first-child { border-top: 0; padding-top: .2rem; }
.wl-row { padding: .6rem 0 .75rem; border-top: 1px solid var(--line); }
.wl-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .2rem 1rem; }
.wl-head.sub { margin-top: .45rem; font-size: .92rem; padding-left: 2.25rem; }
.wl-head.sub .wl-name { font-weight: 400; font-style: italic; }
.wl-name { display: inline-flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-weight: 600; color: var(--brand-ink); }
.wl-val { color: var(--brand-ink); }
.wl-val strong { font-size: 1.06rem; }
.wl-pct { color: var(--muted); font-size: .92rem; }
.wl-none { color: var(--muted); font-style: italic; }
.wl-bar { position: relative; height: 20px; margin: .35rem 0 0 2.25rem; background: #f6f8fc; border: 1px solid #c9d4e6; border-radius: 10px; overflow: hidden; }
.wl-bar.dm { height: 12px; border-style: dashed; }
.wl-lo { position: absolute; left: 0; top: 0; bottom: 0; background: var(--k-surgery); }
.wl-hi { position: absolute; top: 0; bottom: 0; background: var(--k-surgery-l); }
.wl-row.k-endoscopic .wl-lo { background: var(--k-endoscopic); } .wl-row.k-endoscopic .wl-hi { background: var(--k-endoscopic-l); }
.wl-row.k-medicine .wl-lo { background: var(--k-medicine); } .wl-row.k-medicine .wl-hi { background: var(--k-medicine-l); }
.wl-row.k-lifestyle .wl-lo { background: var(--k-lifestyle); } .wl-row.k-lifestyle .wl-hi { background: var(--k-lifestyle-l); }
.wl-goal { position: absolute; top: 0; bottom: 0; border-left: 3px dashed var(--brand-red); }
.wl-legend { margin: .8rem 0 .2rem; }
.wl-legend li { gap: .45rem; }
.wl-key { display: inline-block; width: 1.4rem; height: .8rem; border-radius: 3px; flex: 0 0 auto; }
.wl-key.lo { background: #4b5d7a; }
.wl-key.hi { background: #b9c4d6; }
.wl-key.goal { width: 0; height: 1rem; border-left: 3px dashed var(--brand-red); border-radius: 0; }

/* options */
#details-sec { margin-top: 1.6rem; }
#details-sec > h3 { font-size: 1.4rem; margin-bottom: .3rem; }
.tier-section { margin: 1.4rem 0 .5rem; }
.tier-section > h4 { display: flex; align-items: center; gap: .6rem; font-size: 1.12rem; border-bottom: 2px solid var(--line); padding-bottom: .35rem; margin-bottom: .35rem; }
.tier-count { font-weight: 400; color: var(--muted); font-size: .95rem; }
.tier-h .icon { width: 1.25em; height: 1.25em; stroke-width: 2.4; }
.tier-h.well_suited .icon { color: var(--t-well); } .tier-h.reasonable .icon { color: var(--t-suit); } .tier-h.less_suited .icon { color: var(--t-less); }
.tier-h.contraindicated .icon { color: var(--t-no); } .tier-h.not_eligible .icon { color: var(--t-ne); }
h4 + .hint { margin-top: 0; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 1rem; align-items: start; margin-top: .75rem; }
.tcard { background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--t-suit); border-radius: var(--radius); padding: 1rem 1.15rem .65rem; box-shadow: var(--shadow-sm); scroll-margin-top: 1rem; }
.tcard.well_suited { border-top-color: var(--t-well); }
.tcard.less_suited { border-top-color: #b07a12; }
.tcard.contraindicated { border-top-color: var(--brand-red); }
.tcard.not_eligible { border-top-color: #9ca3af; }
.tcard-head { display: flex; gap: .75rem; align-items: flex-start; }
.tcard-title { flex: 1 1 auto; min-width: 0; }
.tcard-head h5 { font-size: 1.14rem; margin: .1rem 0 0; }
.tcard-sub { margin: 0; font-size: .88rem; color: var(--muted); }
.tcard-head .chip { margin-top: .15rem; }
/* after earlier weight-loss surgery: one option to talk about with a bariatric surgeon (2026-10-21) */
.rcard { background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--brand-primary); border-radius: var(--radius); padding: 1rem 1.15rem .65rem; box-shadow: var(--shadow-sm); scroll-margin-top: 1rem; }
.chip.discuss { background: var(--brand-lighter); border-color: var(--brand-primary); color: var(--brand-ink); white-space: normal; }
.desc { color: var(--brand-text); margin: .6rem 0 .45rem; }
.promo { display: inline-block; font-size: .88rem; color: var(--brand-ink); background: var(--brand-lighter); border: 1px solid var(--brand-light); border-radius: 6px; padding: .1rem .55rem; margin: 0 0 .5rem; }
.reasons { list-style: none; padding: 0; margin: .25rem 0 .55rem; }
.reasons li { padding: .15rem 0 .15rem 1.4rem; position: relative; }
.reasons li::before { content: ""; position: absolute; left: .25rem; top: .72em; width: .5rem; height: .5rem; border-radius: 50%; background: var(--brand-primary); }
.reasons li.down::before { background: var(--gold-strong); border-radius: 0; transform: rotate(45deg); }
.reasons li.hard::before { background: var(--brand-red); border-radius: 0; }
.reasons li.note::before { background: transparent; border: 2px solid var(--muted); }
.src { font-size: .78rem; background: var(--brand-lighter); border-radius: 4px; padding: 0 .35rem; margin-left: .35rem; white-space: nowrap; color: var(--brand-ink); text-decoration: none; }
a.src:hover { text-decoration: underline; }
.status { font-size: .74rem; border: 1px solid var(--muted); border-radius: 4px; padding: 0 .3rem; margin-left: .3rem; color: var(--muted); }
.status.draft { border-color: var(--gold-strong); color: var(--warn-text); background: var(--warn-bg); }
details.opt-more { margin: .55rem 0 0; border-top: 1px solid var(--line); padding-top: .2rem; }
details.opt-more > summary { min-height: 44px; padding: .55rem 0; }
.flash { animation: flash 1.6s ease-out; }
@keyframes flash { from { box-shadow: 0 0 0 5px rgba(0, 91, 255, .45); } to { box-shadow: var(--shadow-sm); } }

/* risks: natural frequencies and icon arrays */
.risks { background: #fbfcfe; border: 1px solid var(--line); border-radius: 12px; padding: .6rem .75rem .5rem; margin: .5rem 0 .3rem; }
.risks-h { display: flex; align-items: center; gap: .4rem; margin: 0 0 .35rem; font-weight: 700; color: var(--brand-ink); font-size: .95rem; }
.risks-h .icon { color: var(--risk); }
.risk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.risk { display: flex; gap: .7rem; align-items: center; }
.rtxt { display: flex; flex-direction: column; min-width: 0; }
.risks-h.risks-mild { margin-top: .6rem; font-weight: 600; font-size: .9rem; }
.risks > .risks-h:first-child { margin-top: 0; }
.rl { font-size: .92rem; color: var(--brand-text); }
.rv { font-size: .92rem; color: var(--brand-ink); }
.ia { display: grid; gap: 2px; flex: none; }
.ia span { display: block; border-radius: 50%; background: var(--risk-off); }
.ia span.on { background: var(--risk); }
.ia.muted span.on { background: #5b6b86; }
.ia100 { grid-template-columns: repeat(10, 9px); }
.ia100 span { width: 9px; height: 9px; }
.ia1000 { grid-template-columns: repeat(40, 4px); gap: 1px; }
.ia1000 span { width: 4px; height: 4px; }
.ia.mini { grid-template-columns: repeat(10, 4px); gap: 1px; }
.ia.mini span { width: 4px; height: 4px; }
.ia-rare { flex: none; width: 49px; height: 49px; border-radius: 8px; background: #fff; border: 1px dashed #c4cede; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 700; color: var(--risk); font-size: 1rem; line-height: 1; }
.ia-rare small { font-size: .62rem; color: var(--muted); font-weight: 600; margin-top: .15rem; }
.risk-detail { margin: .5rem 0 .75rem; }
.risk-item { padding: .55rem 0; border-top: 1px dashed var(--line); }
.risk-item:first-of-type { border-top: 0; }
.risk-name { margin-bottom: .35rem; }
.ia-pair { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; margin: .3rem 0 .35rem; }
.ia-fig { margin: 0; display: flex; flex-direction: column; gap: .35rem; }
.ia-fig figcaption { display: flex; flex-direction: column; font-size: .88rem; line-height: 1.3; }
.ia-fig figcaption span { color: var(--muted); }

/* evidence pieces inside "More about this option" */
.wins { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 125px), 1fr)); gap: .5rem; margin: .5rem 0; }
.win { background: var(--brand-lightest); border: 1px solid var(--brand-light); border-radius: 10px; padding: .5rem .7rem; }
.win .w { font-size: .82rem; color: var(--muted); font-weight: 600; }
.win .r { font-size: 1.08rem; font-weight: 700; color: var(--brand-ink); }
.win .n { font-size: .82rem; color: var(--muted); }
.win.none .r { font-weight: 400; font-style: italic; color: var(--muted); font-size: .95rem; }
.gap-note { border-left: 4px solid var(--brand-primary); background: var(--brand-lighter); padding: .45rem .75rem; margin: .45rem 0; border-radius: 4px; font-size: .95rem; color: var(--brand-ink); }
.keytag { display: inline-block; font-size: .76rem; font-weight: 700; color: var(--brand-ink); border: 1px solid var(--brand-primary); border-radius: 4px; padding: 0 .35rem; margin-top: .2rem; }
.flag-note { border-left: 4px solid var(--brand-red); background: var(--bad-bg); color: var(--bad-text); padding: .3rem .55rem; margin: .35rem 0; border-radius: 4px; font-size: .85rem; }
.flag-note strong { color: var(--bad-text); }
.not-with { margin: .4rem 0 .2rem; color: var(--brand-text); }
.src-line { margin: .3rem 0; }
.h2h { border: 1px solid var(--brand-light); border-left: 4px solid var(--brand-primary); background: var(--brand-lightest); border-radius: 8px; padding: .55rem .85rem; margin: .5rem 0; font-size: .95rem; }
.h2h-list { margin: .2rem 0 .4rem; padding-left: 1.1rem; }
.h2h-list li { margin: .15rem 0; }
.h2h details { margin: .1rem 0; } .h2h summary { min-height: 0; font-size: .85rem; padding: 0; }
.h2h-ref { margin: .5rem 0; font-size: .95rem; }
.h2h-sum { margin: .2rem 0; }
.dm-head { margin-top: .4rem; }
.dm-list { list-style: none; padding: 0; margin: .3rem 0 .5rem; display: flex; flex-wrap: wrap; gap: .35rem .5rem; }
.dm-list li { border: 1px dashed var(--brand-primary); border-radius: 6px; padding: .15rem .6rem; font-size: .92rem; background: #fff; color: var(--brand-ink); }
.more-wrap { margin: 1.75rem 0 1.25rem; padding-top: .9rem; border-top: 2px solid var(--line); }
.more-wrap > h4 { margin-bottom: .25rem; font-size: 1.12rem; }
#more-options { margin-top: 1rem; }

/* compare two options */
#cmp2-card h3 { display: flex; align-items: center; gap: .5rem; }
#cmp2-card h3 .icon { color: var(--brand-primary); }
.cmp2-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: .75rem 1.25rem; margin: .75rem 0 .9rem; }
table.cmp2 { table-layout: fixed; }
table.cmp2 thead th { background: #fff; border-bottom: 2px solid var(--line); vertical-align: bottom; }
table.cmp2 thead td { border-top: 0; width: 24%; }
table.cmp2 tbody th { width: 24%; color: var(--brand-ink); background: var(--brand-lightest); }
.cmp2-name { display: inline-flex; align-items: center; gap: .5rem; font-size: 1.02rem; }
.cmp2-risks { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.how { display: inline-flex; align-items: center; gap: .45rem; }
tr.h2h-row td { background: var(--brand-lightest); }

/* research section, tables and per-study charts */
details.research { margin-top: 1.4rem; }
details.research > summary { min-height: 44px; padding: .4rem 0; font-size: 1.06rem; }
details.research[open] > summary { margin-bottom: .75rem; border-bottom: 1px solid var(--line); }
#compare-card, #chart-card { margin: 0 0 1.25rem; }
.ev-switch { border: 0; background: transparent; padding: 0; margin: 0 0 1rem; }
.ev-switch legend { font-size: .9rem; font-weight: 600; color: var(--muted); padding: 0; margin-bottom: .25rem; }
/* position: relative keeps the hidden "(opens in a new tab)" text of wide tables inside this scrolling box; without it
   that text escaped the box and made the whole page wider than a phone screen (2026-10-22) */
.table-wrap { overflow-x: auto; position: relative; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.table-wrap:focus-visible { outline-offset: 0; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
caption { text-align: left; font-weight: 700; padding: .6rem .75rem; color: var(--brand-ink); }
th, td { text-align: left; padding: .5rem .7rem; border-top: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--brand-lighter); color: var(--brand-ink); border-top: 0; position: sticky; top: 0; }
tbody th { font-weight: 600; background: #fff; }
td.num { white-space: nowrap; }
.cert { font-size: .78rem; font-weight: 700; padding: 0 .4rem; border-radius: 4px; border: 1px solid; white-space: nowrap; }
.cert.high { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); }
.cert.moderate { background: var(--brand-lighter); color: var(--brand-ink); border-color: var(--brand-primary); }
.cert.low { background: #fff; color: var(--brand-ink); border-color: #5b6b86; border-style: dashed; }
.cert.very_low { background: #fff; color: var(--bad-text); border-color: var(--brand-red); border-style: dotted; }
.charts { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); }
.chart-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem; margin: 0; }
.chart-card h4 { margin: 0 0 .4rem; }
.legend { display: flex; flex-wrap: wrap; gap: .35rem 1.2rem; font-size: .9rem; margin: .5rem 0; padding: 0; list-style: none; }
.legend li { display: flex; align-items: center; gap: .4rem; }
.chart-rows { list-style: none; margin: 0; padding: 0; }
.crow { display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 1fr); gap: .25rem .75rem; align-items: center; padding: .4rem 0; border-top: 1px solid var(--brand-lighter); }
.clabel { display: flex; flex-direction: column; min-width: 0; }
.cname { font-weight: 600; font-size: .92rem; }
.cval { font-size: .85rem; color: var(--muted); }
.crow .cval, .crow .cname { overflow-wrap: anywhere; }
.ctrack { position: relative; height: 30px; background-image: linear-gradient(to right, var(--brand-light) 1px, transparent 1px); background-repeat: repeat-x; border-right: 1px solid var(--brand-light); }
.cbar { position: absolute; top: 50%; height: 8px; transform: translateY(-50%); background: var(--brand-light); border: 1px solid var(--brand-primary); border-radius: 4px; }
.dot { position: absolute; top: 50%; width: 14px; height: 14px; transform: translate(-50%, -50%); background: var(--brand-primary); border: 2px solid #fff; box-sizing: border-box; }
.dot.circle { border-radius: 50%; }
.dot.square { border-radius: 2px; }
.dot.diamond { transform: translate(-50%, -50%) rotate(45deg); }
.dot.tri { width: 17px; height: 17px; border: 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.dot.sample { position: static; display: inline-block; transform: none; flex: 0 0 auto; }
.dot.sample.diamond { transform: rotate(45deg); }
.dot.hollow { background: #fff; border: 2px solid var(--brand-primary); }
.dot.tri.hollow { background: var(--brand-primary); border: 0; clip-path: polygon(evenodd, 50% 0, 100% 100%, 0 100%, 50% 0, 50% 34%, 22% 84%, 78% 84%, 50% 34%); }
.crow.dm { border-top-style: dashed; }
.crow.dm .cname { font-weight: 400; font-style: italic; }
.cgoal { position: absolute; top: 0; bottom: 0; border-left: 2px dashed var(--brand-red); }
.goal-sample { display: inline-block; width: 0; height: 16px; border-left: 2px dashed var(--brand-red); }
.caxis { display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 1fr); gap: 0 .75rem; }
.cticks { position: relative; height: 1.5rem; }
.tick { position: absolute; transform: translateX(-50%); font-size: .8rem; color: var(--muted); }
tr.dm-sub th, tr.dm-sub td { background: var(--brand-lightest); border-top-style: dashed; }
tr.dm-sub th { font-weight: 400; font-style: italic; }

/* answers, referral, about */
.recap-wrap { margin: 1rem 0; }
.recap-wrap > summary, details.card > summary { min-height: 44px; padding: .45rem 0; }
.recap { display: flex; flex-wrap: wrap; gap: .4rem .6rem; margin: .25rem 0 1rem; padding: 0; list-style: none; }
.recap li { background: var(--brand-lighter); border-radius: 999px; padding: .2rem .8rem; font-size: .92rem; color: var(--brand-ink); }
details.card > summary .sum-h { display: inline; font-size: 1.2rem; margin: 0; }
details.card[open] > summary { margin-bottom: .5rem; }
.refer ul li { margin-bottom: .35rem; }
.meta-grid { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1rem; font-size: .95rem; }
.meta-grid dt { font-weight: 600; } .meta-grid dd { margin: 0; }
.site-footer { background: var(--brand-navy); color: #fff; margin-top: 2rem; padding: 1.5rem 0 2rem; font-size: .92rem; }
.site-footer a { color: #fff; }
.site-footer p { margin-bottom: .6rem; }
/* one view since 2026-10-24: clinician wording and detail sit in closed "For clinicians" sections */
.for-clin { margin: .55rem 0 .35rem; padding: .1rem 0 .1rem .75rem; border-left: 3px solid var(--brand-light); }
.for-clin > summary { font-size: .95rem; }
.for-clin[open] { padding-bottom: .4rem; }
.for-clin .reasons.clin { margin-top: .2rem; }
.clin-risks { margin: .25rem 0 .4rem; padding-left: 1.2rem; font-size: .95rem; }
.clin-risks li { margin-bottom: .35rem; }
.print-only { display: none; }

@media (max-width: 760px) {
  .stepper .lbl { display: none; }
  .step-btn { justify-content: center; }
  .glance-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .container { padding: 0 1rem; }
  .brand img { height: 44px; } .brand-title { padding-left: .7rem; }
  .hero { padding: 1.3rem 1.2rem 1.1rem; border-radius: 14px; }
  .hero h1 { font-size: 1.6rem; }
  .form-card { padding: 1rem; }
  /* minmax(0, 1fr), not 1fr: a 1fr column grows to fit its widest content, which pushed the research charts past the
     screen; long source labels may wrap here (2026-10-22) */
  .charts { grid-template-columns: minmax(0, 1fr); } .chart-card { padding: .4rem; min-width: 0; }
  .src { white-space: normal; overflow-wrap: anywhere; }
  /* option cards: the fit badge drops below the name when both do not fit on one line, instead of covering the name */
  .tcard-head { flex-wrap: wrap; row-gap: .4rem; } .tcard-title { flex: 1 1 8rem; } .tcard-head .chip { white-space: normal; }
  .checks { grid-template-columns: 1fr; }
  .inline { flex-wrap: wrap; }
  .crow { grid-template-columns: minmax(0, 1fr); } .caxis { grid-template-columns: minmax(0, 1fr); } .caxis > span { display: none; }
  .wl-bar { margin-left: 0; } .wl-head.sub { padding-left: 0; }
  .results-title h2 { font-size: 1.5rem; }
  .ia100 { grid-template-columns: repeat(10, 7px); } .ia100 span { width: 7px; height: 7px; }
  .ia1000 { grid-template-columns: repeat(25, 4px); }
  /* side-by-side tables: each option becomes a block with labeled values (data-label) */
  table.cmp thead, table.cmp2 thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  table.cmp, table.cmp tbody, table.cmp tr, table.cmp th, table.cmp td, table.cmp2, table.cmp2 tbody, table.cmp2 tr, table.cmp2 th, table.cmp2 td { display: block; width: auto; }
  table.cmp tr, table.cmp2 tr { padding: .45rem .6rem; border-top: 1px solid var(--line); }
  table.cmp tr.dm-sub { border-top-style: dashed; }
  table.cmp th, table.cmp td, table.cmp2 th, table.cmp2 td { border: 0; padding: .1rem 0; }
  table.cmp td { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; white-space: normal; }
  table.cmp td::before { content: attr(data-label); font-weight: 600; color: var(--brand-ink); flex: 0 1 48%; }
  table.cmp td > .cv { text-align: right; }
  table.cmp td:empty { display: none; }
  table.cmp caption { display: block; width: auto; }
  table.cmp2 tbody th { background: transparent; font-size: 1rem; padding-top: .3rem; }
  table.cmp2 td::before { content: attr(data-label); display: block; font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; margin-top: .3rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media (forced-colors: active) { .chip, .cert, .tcard, .rcard, .tbadge, .step-btn { border: 2px solid CanvasText; } .ia span.on, .wl-lo { background: CanvasText; } }

@media print {
  body { background: #fff; font-size: 10.5pt; }
  .no-print, .skip-link, #page-form, .ev-switch, .results-actions, summary::marker, .wl-tabs { display: none !important; }
  .print-only { display: block; }
  .site-header { border-bottom-width: 3px; box-shadow: none; }
  .card, .tcard, .rcard, .chart-card, .form-card, .glance { box-shadow: none; break-inside: avoid; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .ev-details { display: none !important; }
  a { color: #000; text-decoration: none; }
  .site-footer { background: #fff; color: #000; border-top: 2px solid #000; }
  .site-footer a { color: #000; }
  .table-wrap { overflow: visible; }
  .wl-lo, .wl-hi, .wl-key, .chip, .tbadge, .ia span, .hero, .bmi-track .z { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  details:not([open]) { display: none !important; }   /* print what is open; "Your answers" is opened for printing (app.js) */
}
