/* Careful Copy design system.
   ---------------------------------------------------------------
   One stylesheet, linked first by every page. Page-specific layout stays
   in that page's own <style> block; anything shared lives here.

   This replaces the earlier tokens.css + theme.css pair. That split existed
   to allow reskinning by swapping one file, but the site now has a single
   design, so a second override layer is just somewhere for rules to hide.

   System fonts only. No @import, no external URL, nothing that would need
   a CSP change (default-src 'self'). */

:root{
  --ink:#14201B; --ink-2:#4A5751; --ink-3:#5C6A63;
  --paper:#FBFBF8; --mist:#EEF2EE; --line:#DDE3DE;
  --green:#14653F; --green-d:#0D4B2E; --mint:#D6F0E2;
  --mark:#B3261E;
  --sans:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;
  --serif:"Iowan Old Style","Palatino Linotype",Palatino,Georgia,serif;
  --sh-s:0 1px 2px rgba(20,32,27,.06), 0 2px 8px -4px rgba(20,32,27,.10);
  --sh-m:0 2px 4px rgba(20,32,27,.05), 0 14px 34px -14px rgba(20,32,27,.20);
  --sh-l:0 3px 6px rgba(20,32,27,.06), 0 32px 64px -26px rgba(20,32,27,.34);

  /* Names the older pages still use. They map onto the new palette rather
     than being hunted down one by one: an undefined custom property resolves
     to nothing, so a single missed reference would blank out real text. */
  --muted:var(--ink-2);
  --keep:var(--green);
  --pale:var(--mist);
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--sans);
     font-size:17px;line-height:1.62;text-wrap:pretty}
a{color:var(--green);text-underline-offset:3px}
a:hover{color:var(--green-d)}
*:focus{outline:none}
*:focus-visible{outline:2px solid var(--green);outline-offset:3px}
.onDark:focus-visible{outline-color:#fff;outline-offset:3px}

h1,h2,h3{font-weight:700;letter-spacing:-.025em;line-height:1.12;margin:0 0 12px}
h1{font-size:clamp(2.1rem,1.1rem + 4.2vw,3.9rem);line-height:1.04;letter-spacing:-.033em}
h2{font-size:clamp(1.5rem,1.15rem + 1.5vw,2.1rem)}
h3{font-size:1.2rem;letter-spacing:-.015em}
p{margin:0 0 1em}

.wrap{max-width:1200px;margin:0 auto}
section{padding:clamp(44px,6vw,80px) 24px}
.mist{background:var(--mist)}
.sub{margin:0 0 clamp(28px,3vw,40px);max-width:54ch;font-size:17px;color:var(--ink-2)}
.note{color:var(--ink-2);font-size:15.5px}
.fine{font-size:14.5px;color:var(--ink-3)}

/* Visually hidden but announced. The del/ins labels depend on this, so it is
   not decoration: without it a screen reader runs the removed and inserted
   text together as one sentence. */
/* .sr-only is the same thing under the name the older pages use, mostly on
   table captions. Undefined, those captions would render as visible text. */
.vh,.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.skip{position:absolute;left:24px;top:12px;width:1px;height:1px;overflow:hidden;
      clip-path:inset(50%);white-space:nowrap}
.skip:focus-visible{width:auto;height:auto;overflow:visible;clip-path:none;z-index:60;
      background:var(--ink);color:#fff;padding:11px 22px;border-radius:999px;
      text-decoration:none;outline-color:#fff;outline-offset:-4px}

/* The editing marks. Line decoration, never colour alone: these have to
   survive greyscale printing and colour blindness, because the diff is the
   product. Never drop the line or take it below .075em. */
.x{color:var(--mark);text-decoration:none;background-image:linear-gradient(currentColor,currentColor);
   background-repeat:no-repeat;background-position:0 57%;background-size:100% .075em}
.v{color:var(--green);text-decoration:underline;text-decoration-thickness:.075em;
   text-underline-offset:.17em}

/* Header. .navcta is the guide pages' existing class name for the same thing,
   matched here so their markup does not have to change. */
header .bar{padding:20px 24px;display:flex;flex-wrap:wrap;gap:12px 28px;align-items:center}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink)}
.brand .mk{width:30px;height:30px;border-radius:999px;background:var(--green);
           display:grid;place-items:center;flex:none}
.brand .nm{font-size:18px;font-weight:700;letter-spacing:-.02em}
header nav{margin-left:auto;display:flex;flex-wrap:wrap;gap:8px 24px;align-items:center;font-size:15.5px}
header nav a{color:var(--ink-2);text-decoration:none;min-height:44px;display:inline-flex;align-items:center}
header nav a:hover{color:var(--ink)}
header nav a.cta,header nav a.navcta{background:var(--green);color:#fff;padding:0 22px;
           border-radius:999px;font-weight:600;box-shadow:var(--sh-s);border:0}
header nav a.cta:hover,header nav a.navcta:hover{background:var(--green-d);color:#fff}

/* Buttons and fields, site-wide. */
button{font:inherit;font-size:16px;font-weight:600;padding:13px 26px;background:var(--green);
       color:#fff;border:0;border-radius:999px;cursor:pointer;min-height:44px}
button:hover{background:var(--green-d)}
input[type=text],input[type=url],input[type=email],select,textarea{
       width:100%;font:inherit;padding:12px 14px;border:1px solid var(--line);
       border-radius:12px;background:#fff;color:var(--ink)}
label{display:block}
.btn{display:inline-block;background:var(--green);color:#fff;padding:14px 28px;border-radius:999px;
     text-decoration:none;font-weight:600;font-size:16.5px;box-shadow:var(--sh-s);min-height:44px}
.btn:hover{background:var(--green-d);color:#fff}

/* The one-field pill used in the hero, the score card and the closing block. */
.pf{display:flex;flex-wrap:wrap;gap:10px;max-width:560px;margin:0 auto 14px;justify-content:center;
    background:#fff;border:1px solid var(--line);border-radius:999px;padding:8px;box-shadow:var(--sh-m)}
.pf input{font-size:17px;flex:1 1 200px;min-width:0;padding:12px 18px;background:transparent;
          border:0;border-radius:999px;width:auto}
.pf button{white-space:nowrap}
.under{margin:0 0 clamp(40px,5vw,64px);font-size:14.5px;color:var(--ink-3)}
@media (max-width:560px){
  /* A usable field and a nowrap button cannot share a row this narrow, so
     stack deliberately rather than let the pill deform into an oval. */
  .pf{border-radius:18px}
  .pf input{flex:1 1 100%}
  .pf button{width:100%}
}

/* Consent-gated second step of the scan form. */
.step2{max-width:560px;margin:0 auto 14px;background:#fff;border:1px solid var(--line);
       border-radius:18px;padding:22px;box-shadow:var(--sh-m);text-align:left}
.step2 h2{margin:0 0 4px;font-size:18px;font-weight:600;letter-spacing:-.012em}
.step2 label{font-size:14.5px;margin:12px 0 6px}
.step2 button{margin-top:16px;width:100%}
.agree label{display:flex;gap:10px;align-items:flex-start;font-size:14.5px;color:var(--ink-2);
             margin-top:12px;min-height:44px;padding:4px 0;cursor:pointer}
.agree input{margin-top:9px;width:20px;height:20px;flex:none}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

/* Cards, used for the rule areas and anywhere else a linked tile is wanted. */
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:14px}
.card{display:block;text-decoration:none;color:inherit;background:#fff;border:1px solid var(--line);
      border-radius:16px;padding:22px 24px 24px;box-shadow:var(--sh-s)}
.card:hover{border-color:var(--green);color:inherit}
.card .code{display:inline-block;background:var(--mint);color:var(--green-d);border-radius:999px;
            padding:4px 12px;font-size:13px;font-weight:700;letter-spacing:.04em;margin-bottom:14px}
.card .code.ju{background:#F5E0DE;color:#8C1D16}
.card .nm{display:block;font-size:18px;font-weight:600;letter-spacing:-.012em;margin-bottom:7px}
.card .de{display:block;font-size:15px;line-height:1.55;color:var(--ink-2)}

/* FAQ accordion. */
.faqGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:24px 72px;align-items:start}
.faq{border-bottom:1px solid var(--line)}
.faq:first-of-type{border-top:1px solid var(--line)}
.faq summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;gap:22px;
             align-items:center;padding:21px 0;font-size:18px;font-weight:600;
             letter-spacing:-.01em;min-height:44px}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";font-size:22px;font-weight:400;color:var(--green);flex:none}
.faq[open] summary::after{content:"\2013"}
.faq p{margin:0 0 22px;font-size:16.5px;line-height:1.66;max-width:62ch;color:var(--ink-2)}

/* Tables. Every table on the site gets a caption and scope in the markup; this
   is only the look. */
table{width:100%;border-collapse:collapse;font-size:15.5px}
th,td{text-align:left;padding:13px 12px;border-bottom:1px solid var(--line);vertical-align:top}
th{font-size:13px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-3)}
.tbl{overflow-x:auto;margin:18px 0 12px}

footer{border-top:1px solid var(--line)}
footer .bar{padding:36px 24px 20px;display:flex;flex-wrap:wrap;gap:18px 48px;
            justify-content:space-between;align-items:flex-end;font-size:14.5px;color:var(--ink-3)}
footer nav{display:flex;flex-wrap:wrap;gap:10px 26px}
footer a{color:var(--ink-3)}
.ftnav{margin-bottom:14px}
.legal{padding:0 24px 40px;font-size:13.5px;line-height:1.6;color:var(--ink-3)}
/* On the landing page .legal sits under the footer nav row, which supplies the
   space above it. Every other page has no such row, so it needs its own. */
footer .legal:first-child{padding-top:32px}
.legal p{max-width:92ch;margin:0 0 8px}
