/* managedvulnerabilities.com: the whole site's stylesheet.

   The design is "Divided" from the design project
   (~/Developer/Sites/webdesign-dashboard/designs/managed-vulnerabilities), built into the
   site on 2026-11-16 with the values Scott chose on its tweak bar that day
   (final/settings-2026-11-16.json there).

   Every page is two panes. The left one (.raw) is navy; on the home page it carries what
   a scanner hands you. The right one (.plain) is light and says it in plain words. Below
   50rem the panes stack. Sections are told apart by their grounds: every other one (.alt)
   sits on the second pair. Nothing is set below 16px (Scott finds small text hard to read).

   Fonts are self-hosted in ../fonts: Atkinson Hyperlegible Next for everything, Departure
   Mono only for scanner output and the <MV/> mark. Both are open-licence (a client's site
   uses no licensed fonts). */

@font-face{font-family:"Atkinson Hyperlegible Next";font-weight:400;font-style:normal;font-display:swap;src:url("../fonts/AtkinsonHyperlegibleNext-Regular.woff2?v=fcd76a238b") format("woff2")}
@font-face{font-family:"Atkinson Hyperlegible Next";font-weight:400;font-style:italic;font-display:swap;src:url("../fonts/AtkinsonHyperlegibleNext-RegularItalic.woff2?v=4c126e3d64") format("woff2")}
@font-face{font-family:"Atkinson Hyperlegible Next";font-weight:500;font-style:normal;font-display:swap;src:url("../fonts/AtkinsonHyperlegibleNext-Medium.woff2?v=7a748392fe") format("woff2")}
@font-face{font-family:"Atkinson Hyperlegible Next";font-weight:600;font-style:normal;font-display:swap;src:url("../fonts/AtkinsonHyperlegibleNext-SemiBold.woff2?v=d923b5c09e") format("woff2")}
@font-face{font-family:"Atkinson Hyperlegible Next";font-weight:700;font-style:normal;font-display:swap;src:url("../fonts/AtkinsonHyperlegibleNext-Bold.woff2?v=6e8ee71a6e") format("woff2")}
@font-face{font-family:"Atkinson Hyperlegible Next";font-weight:800;font-style:normal;font-display:swap;src:url("../fonts/AtkinsonHyperlegibleNext-ExtraBold.woff2?v=93486af312") format("woff2")}
@font-face{font-family:"Departure Mono";font-weight:400;font-style:normal;font-display:swap;src:url("../fonts/DepartureMono-Regular.woff2?v=94345ba1d2") format("woff2")}

:root{
  /* Grounds. The second pair is the tweak bar's alternate grounds at its 90% setting. */
  --navy:#0a1628;
  --light:#e8edf3;
  --navy-alt:#1b3054;
  --light-alt:#c8d4e0;
  --panel:#f9fafc;        /* the raised panels: the finding on the home page, form fields */

  /* Text. The quieter colours are each pane's text mixed toward its ground. */
  --on-raw:#e8edf3;       /* text on the left */
  --on-plain:#0a1628;     /* text on the right */
  --soft-d:#e0e5eb;       /* prose on the left */
  --muted-d:#b1b7c0;      /* quiet text on the left, 9.0:1 on navy */
  --muted-l:#182335;      /* quiet text on the right */
  --line-d:rgb(232 237 243 / .28);   /* hairlines on the left */
  --line-l:rgb(10 22 40 / .28);      /* hairlines on the right */

  /* Colour. Text colours on fills were chosen by contrast when the site was built
     (measured 2026-11-16): white on the button 7.9:1, white on Critical 5.2:1, navy on
     High 7.5:1, Medium 9.2:1, Low 11.4:1, navy on the accent 9.2:1. Recheck if a fill changes. */
  --red:#dd002a;          /* "Decoded." and the <MV/> mark */
  --button:#4017f4;
  --button-hover:#3413c8;
  --on-button:#fff;
  --accent:#fca700;       /* hosts in the scanner lines, the closing pane, focus on the left */
  --on-accent:#0a1628;
  --spine:#4efbfb;        /* the line down the middle */
  --crit:#dd002a; --on-crit:#fff;
  --high:#ff827b; --med:#fca702; --low:#3aec41; --on-sev:#0a1628;
  --error:#a3001f;        /* form errors on the light pane, 7.6:1 */

  --sans:"Atkinson Hyperlegible Next",system-ui,-apple-system,"Segoe UI",sans-serif;
  --mono:"Departure Mono",ui-monospace,Menlo,Consolas,monospace;

  /* Type sizes. */
  --body:1.25rem;
  --lede:1.5rem;
  --h1:clamp(2.25rem,4.68vw,4.95rem);
  --head-sm:1.5625rem;    /* left-pane headings: the small ones, and every one on narrow screens */
  --head-l:1.753rem;      /* left-pane section headings and step names on wide screens */
  --head-xl:2.3375rem;    /* the closing heading on wide screens */
  --scan:1.203125rem;     /* scanner lines; Departure Mono is drawn on an 11px grid, this is 1.75x */

  /* Layout. */
  --split:44%;            /* where the middle sits */
  --col:45.5rem;          /* the widest a pane's column gets */
  --gutter:clamp(1.3125rem,4.2vw,3.675rem);
  --py:clamp(2.25rem,4.5vw,4.125rem);
  --row-pad:1.3rem;
  --radius:16px;
  --ease:cubic-bezier(.16,1,.3,1);
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;scrollbar-color:var(--muted-d) var(--navy)}
body{margin:0;background:var(--navy);color:var(--on-raw);font-family:var(--sans);font-size:var(--body);line-height:1.35;overflow-wrap:break-word}
h1,h2,h3,p,ul,ol,dl,dd,figure{margin:0}
ul,ol{padding:0;list-style:none}
h1,h2,h3{text-wrap:balance}
p{text-wrap:pretty}
a{color:inherit;text-underline-offset:.2em;text-decoration-thickness:2px}
svg{display:block}
::selection{background:var(--button);color:var(--on-button)}
.raw ::selection{background:var(--accent);color:var(--on-accent)}
.plain ::selection{background:var(--on-plain);color:var(--light)}
:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.plain :focus-visible{outline-color:var(--on-plain)}

.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.skip{position:absolute;left:1rem;top:-5rem;z-index:10;padding:.75rem 1rem;background:var(--light);color:var(--navy);font-weight:700}
.skip:focus{top:1rem}

/* ---------- The two panes ---------- */
.raw{background:var(--navy);color:var(--on-raw)}
.plain{background:var(--light);color:var(--on-plain)}
.pane{padding:var(--py) var(--gutter)}
.pane > .in{max-width:var(--col)}
.plain a{text-decoration-color:var(--button)}
.raw a{text-decoration-color:var(--accent)}

/* Left-pane headings. On wide screens the section headings and step names are bigger
   (further down); on narrow ones they are all this size. */
.raw h2,.term{font-weight:800;font-size:var(--head-sm);line-height:1.25;letter-spacing:-.015em}

/* Sections are set apart by their grounds: every other one takes the second pair. */
.alt .raw{background:var(--navy-alt)}
.alt .plain{background:var(--light-alt)}

/* ---------- Buttons ---------- */
.btn{display:inline-flex;align-items:center;gap:.6rem;min-height:3.25rem;padding:.8rem 1.35rem;border:2px solid transparent;border-radius:var(--radius);font:inherit;font-weight:700;font-size:1.125rem;line-height:1.2;text-decoration:none;cursor:pointer;transition:background-color .2s var(--ease),color .2s var(--ease),border-color .2s var(--ease)}
.btn svg{width:1.15rem;height:1.15rem;flex:none;transition:transform .3s var(--ease)}
.btn-primary{background:var(--button);color:var(--on-button)}
.btn-primary:hover{background:var(--button-hover)}
.btn-primary:hover svg{transform:translateX(.25rem)}
.btn-ghost{border-color:var(--on-plain);color:var(--on-plain)}
.btn-ghost:hover{background:var(--on-plain);color:var(--light)}
.btn-ghost:hover svg{transform:translateY(.2rem)}
.btn-lg{min-height:3.75rem;padding:1rem 1.75rem;font-size:1.25rem}
.btn[disabled]{opacity:.6;cursor:wait}

/* ---------- Header ---------- */
.site-head .pane{padding-block:1rem}
.logo{display:inline-flex;align-items:center;gap:.75rem;text-decoration:none;color:var(--on-raw)}
.logo-mark{font-family:var(--mono);font-size:1.375rem;line-height:1;color:var(--red)}
.logo-name{font-weight:700;font-size:1.125rem;line-height:1.15}
.nav ul{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem 1.5rem}
.nav a{display:inline-flex;align-items:center;min-height:2.75rem;font-weight:600;font-size:1.0625rem;text-decoration:none}
.nav a:not(.nav-cta):hover,.nav a[aria-current="page"]:not(.nav-cta){text-decoration:underline}
.nav-cta{padding:.5rem 1rem;border-radius:var(--radius);background:var(--button);color:var(--on-button);font-weight:700}
.nav-cta:hover{background:var(--button-hover)}

/* ---------- Home: the headline that straddles the middle ---------- */
.straddle{font-weight:800;font-size:var(--h1);line-height:.92;letter-spacing:0}
.h1a,.h1b{display:block;padding-inline:var(--gutter)}
.h1a{padding-top:clamp(2rem,4vw,3.5rem);padding-bottom:1.25rem}
.h1b{padding-top:1.5rem;padding-bottom:.25rem;color:var(--red)}
.hero-offer{padding-top:1rem;padding-bottom:2.25rem}
.hero-raw{padding-top:2.25rem;padding-bottom:2.75rem}
.hero-decoded{padding-top:2.25rem;padding-bottom:var(--py)}
.lede{font-size:var(--lede);line-height:1.5;max-width:34rem}
.lede strong{font-weight:800}
.actions{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:1.75rem}

.hero-raw h2{max-width:22ch}
.hero-raw .intro{margin-top:.85rem;color:var(--soft-d);max-width:34rem}
.scan-label{margin-top:2rem;font-weight:700;font-size:1rem;color:var(--muted-d)}

/* ---------- Home: the sample scanner output. Each line is a button; the pressed one
   takes the colour of the plain pane. ---------- */
.scan-list{margin-top:.5rem;border-bottom:1px solid var(--line-d);container:scan / inline-size;font-family:var(--mono);font-size:var(--scan)}
.scan-line{display:flex;flex-wrap:wrap;column-gap:1.5ch;row-gap:.15rem;position:relative;width:100%;min-height:3rem;align-items:center;padding:.65rem .75rem;border:0;border-top:1px solid var(--line-d);background:transparent;color:var(--on-raw);font-family:var(--mono);font-size:var(--scan);line-height:1.35;text-align:left;cursor:pointer;transition:background-color .2s var(--ease),color .2s var(--ease)}
.scan-line .id{width:5ch;color:var(--muted-d)}
.scan-line .score{width:4ch}
.scan-line .host{width:11ch;color:var(--accent)}
.scan-line .check{flex:1 1 100%;min-width:0;padding-left:6.5ch}
.scan-line:hover{background:var(--navy-alt)}
.scan-line[aria-pressed="true"]{background:var(--light);color:var(--on-plain);border-top-color:var(--light)}
.scan-line[aria-pressed="true"] .id,.scan-line[aria-pressed="true"] .host{color:inherit}
.scan-more{padding:.65rem .75rem 0;font-family:var(--mono);font-size:var(--scan);color:var(--muted-d)}
/* Room for the whole scanner line on one row. Asked of the list's own width in its own
   type, not of the window: 48.5ch is the four columns with the longest check, 1.5rem the
   padding. (Found 2026-11-16 in the design: a window-width rule let checks break at their
   hyphens once the text size and the middle moved.) */
@container scan (min-width:calc(50ch + 1.5rem)){
  .scan-line .check{flex:1 1 0;padding-left:0}
}

/* ---------- Home: the finding, in plain words ---------- */
.decoded{border-radius:var(--radius);padding:1.5rem;background:var(--panel);box-shadow:0 1rem 2.25rem -.75rem rgb(10 22 40 / .36),0 .125rem .375rem rgb(10 22 40 / .18)}
/* Without the script all six findings are listed; with it they share one place. */
.finding + .finding{margin-top:2.5rem;padding-top:2rem;border-top:1px solid var(--line-l)}
.js .decoded-stack{display:grid}
.js .finding{grid-area:1/1;margin-top:0;padding-top:0;border-top:0}
.js .finding:not(.is-current){visibility:hidden}
.finding-meta{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem .85rem;font-size:1.0625rem;font-weight:600;color:var(--muted-l)}
.finding-meta .ref{margin-left:auto;font-family:var(--mono);font-size:var(--scan);font-weight:400}
.chip{display:inline-block;padding:.2rem .65rem;border-radius:var(--radius);font-size:1rem;font-weight:700;line-height:1.4;color:var(--on-sev)}
.chip-critical{background:var(--crit);color:var(--on-crit)}
.chip-high{background:var(--high)}
.chip-medium{background:var(--med)}
.chip-low{background:var(--low)}
.finding h3{margin-top:1rem;font-size:clamp(1.95rem,2.88vw,2.4rem);font-weight:800;line-height:1.12;letter-spacing:-.01em}
.finding h3 + p{margin-top:.75rem;max-width:34rem}
@keyframes arrive{from{opacity:0}to{opacity:1}}
.finding.is-entering{animation:arrive .3s var(--ease) backwards}

/* ---------- Rows that read across the middle: a term on the left, its meaning on the right ---------- */
.term,.meaning{padding:var(--row-pad) var(--gutter)}
.meaning{font-size:1.3125rem}
.meaning > *{max-width:34rem}
.commit .meaning{font-weight:500}
.rows > * > .term{border-top:1px solid var(--line-d)}
.rows > * > .meaning{border-top:1px solid var(--line-l)}
.commit > :first-child > *{border-top:0}
.rows-end .raw,.rows-end .plain{padding-block:0;height:clamp(1.5rem,4vw,3.5rem)}

.sec-head .pane{padding-bottom:clamp(1.75rem,3vw,2.5rem)}
.sec-head .plain p{font-size:var(--lede);line-height:1.5;max-width:34rem}

/* ---------- A section's content on the right: articles, item lists, prose ---------- */
.stack > * + *{margin-top:2.25rem;padding-top:2.25rem;border-top:1px solid var(--line-l)}
.stack h3,.items h3{font-size:clamp(1.8rem,2.64vw,2.25rem);font-weight:800;line-height:1.15;letter-spacing:-.01em}
.stack h3 + p{margin-top:.7rem;max-width:34rem}
.prose > * + *{margin-top:1em}
.prose p,.prose li{max-width:36rem}
.prose .lead{font-size:var(--lede);line-height:1.5}
.sub{margin-top:2rem;font-size:1.375rem;font-weight:800;line-height:1.2}
.items{margin-top:1.5rem;border-bottom:1px solid var(--line-l)}
.items > div{padding:1.1rem 0;border-top:1px solid var(--line-l)}
.items h3{font-size:1.4375rem;line-height:1.2}
.items h3 + p{margin-top:.35rem;max-width:36rem}
.updated{margin-top:2rem;font-style:italic;color:var(--muted-l)}

/* The privacy and terms pages: short sections on one pair of grounds, ruled apart. */
.ruled .sec + .sec > .raw{border-top:1px solid var(--line-d)}
.ruled .sec + .sec > .plain{border-top:1px solid var(--line-l)}

/* ---------- Other pages: the page's name, at the top of the left pane ----------
   One element, not two panes. On wide screens its right side is painted as the light pane
   (see "Wide: the split"), so the right side of the page is one colour from the menu down
   (Scott, 2026-11-16; the first build ran the navy across the whole width). */
.page-head{padding:clamp(2.5rem,6vw,5rem) var(--gutter) clamp(2rem,4.5vw,3.75rem);padding-left:max(var(--gutter),calc(var(--split) - var(--col) - var(--gutter)))}
.page-head h1{font-weight:800;font-size:var(--h1);line-height:.92;letter-spacing:0}
.page-head p{margin-top:1.25rem;max-width:44rem;font-size:var(--lede);line-height:1.5;color:var(--soft-d)}

/* ---------- Closing ---------- */
.closing .raw{background:var(--accent);color:var(--on-accent)}
.closing .raw :focus-visible{outline-color:var(--on-accent)}
.closing .plain p{font-size:1.625rem;line-height:1.45;max-width:32rem}
.closing .btn{margin-top:2rem}

/* ---------- Contact ---------- */
.expect dt{font-size:1.375rem;font-weight:800;line-height:1.2}
.expect dd{margin-top:.35rem;color:var(--soft-d);max-width:30rem}
.expect > div + div{margin-top:1.5rem;padding-top:1.5rem;border-top:1px solid var(--line-d)}
.expect{margin-top:1.75rem}
.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr));gap:1.25rem}
.field{display:block}
.field > span{display:block;margin-bottom:.4rem;font-size:1.0625rem;font-weight:700}
.field input,.field select,.field textarea{display:block;width:100%;min-height:3.25rem;padding:.75rem .9rem;border:2px solid var(--line-l);border-radius:var(--radius);background:var(--panel);color:var(--on-plain);font:inherit;font-size:1.125rem;line-height:1.4}
.field textarea{resize:vertical;min-height:10rem}
.field input:hover,.field select:hover,.field textarea:hover{border-color:var(--on-plain)}
.field-wide{margin-top:1.25rem}
/* The honeypot: bots fill it, people never see it. The Worker drops a message that has it filled. */
.mv-hp{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}
.cf-turnstile{margin-top:1.25rem}
.form-actions{margin-top:1.5rem}
/* The form's script puts its message here and marks the form sent, failed or invalid. */
.wpcf7-response-output{margin-top:1.25rem;font-size:1.1875rem;font-weight:700}
.wpcf7-response-output:empty{display:none}
.failed .wpcf7-response-output,.invalid .wpcf7-response-output{color:var(--error)}

/* ---------- Footer ---------- */
.site-foot > :first-child > .raw{border-top:1px solid var(--line-d)}
.site-foot > :first-child > .plain{border-top:1px solid var(--line-l)}
.site-foot .pane{padding-block:clamp(2.5rem,5vw,3.5rem)}
.site-foot .logo{margin-bottom:1rem}
.tagline{color:var(--soft-d);max-width:26rem}
.foot-cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(11rem,1fr));gap:2rem 1.5rem}
.foot-cols h2{font-size:1rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:var(--muted-l)}
.foot-cols ul{margin-top:.6rem}
.foot-cols a{display:inline-block;padding-block:.45rem;font-size:1.0625rem;text-decoration:none}
.foot-cols a:hover{text-decoration:underline}
.foot-base > .raw{border-top:1px solid var(--line-d)}
.foot-base > .plain{border-top:1px solid var(--line-l)}
.site-foot .foot-base .pane{padding-block:1.25rem;font-size:1rem}
.foot-base .raw{color:var(--soft-d)}
.foot-base ul{display:flex;flex-wrap:wrap;gap:.25rem 1.5rem}
.foot-base a{display:inline-block;padding-block:.3rem}

/* ---------- Wide: the split ---------- */
@media (min-width:50rem){
  body{background:linear-gradient(to right,var(--navy) var(--split),var(--light) var(--split))}
  .split,.rows > *{display:grid;grid-template-columns:var(--split) minmax(0,1fr)}
  .raw > .in{margin-left:auto}
  /* The line down the middle is the left edge of every right-hand pane. */
  .plain{box-shadow:inset 2px 0 0 var(--spine)}

  .nav ul{justify-content:flex-end}

  /* The page's name keeps to the left pane; right of the middle is the light ground and
     the line down the middle, painted here because there is no right-hand pane element. */
  .page-head{padding-right:calc(100% - var(--split) + var(--gutter));background:linear-gradient(to right,var(--navy) var(--split),var(--spine) var(--split),var(--spine) calc(var(--split) + 2px),var(--light) calc(var(--split) + 2px))}

  .hero{display:grid;grid-template-columns:var(--split) minmax(0,1fr);grid-template-rows:auto auto 1fr}
  .straddle{grid-column:1 / -1;display:grid;grid-template-columns:var(--split) minmax(0,1fr)}
  .h1a,.h1b{display:flex;align-items:flex-end;padding-bottom:1.75rem}
  .h1a{justify-content:flex-end;text-align:right}
  .h1a > span{display:block;max-width:7.4em}
  .h1b{padding-top:0}
  .hero-offer{grid-column:2;grid-row:2;padding-top:0}
  .hero-raw{grid-column:1;grid-row:2 / span 2;padding-top:0;padding-bottom:var(--py)}
  .hero-decoded{grid-column:2;grid-row:3;padding-top:0}

  /* Terms start where the left pane's column starts, so they line up with its headings. */
  .term{display:flex;align-items:center;padding-left:max(var(--gutter),calc(100% - var(--col) - var(--gutter)))}
  .commit > :first-child > *{padding-top:clamp(2.5rem,5vw,4rem)}
  .commit > :last-child > *{padding-bottom:clamp(2.5rem,5vw,4rem)}
}
@media (min-width:68rem){
  .sec-head .raw h2,.sec .raw h2,.steps .term{font-size:var(--head-l);line-height:1.2}
  .closing .raw h2{font-size:var(--head-xl);line-height:1.15}
}
@media (max-width:49.99rem){
  /* Stacked, the change of ground is the seam; no rules needed between blocks. */
  .rows > * > .term,.rows > * > .meaning{border-top:0}
  .rows-end{display:none}
  .sec-head .raw,.sec > .raw,.closing .raw{padding-bottom:1.75rem}
  .sec-head .plain,.sec > .plain,.closing .plain{padding-top:1.75rem}
  .term{padding-block:1rem}
  /* On the contact page the form comes before what to expect. */
  .form-first{display:flex;flex-direction:column}
  .form-first > .plain{order:-1}
}
@media (prefers-reduced-motion:no-preference){
  html{scroll-behavior:smooth}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none !important;transition:none !important}
}
