/* Mail Health Report — shared styles */
/* Fonts are self-hosted (SIL Open Font License 1.1; licences in /assets/fonts/). */
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/ibm-plex-sans-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/ibm-plex-sans-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/ibm-plex-sans-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/ibm-plex-mono-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 200 900; font-display: swap; src: url(/assets/fonts/source-serif-4-latin-opsz-normal.woff2) format('woff2-variations'), url(/assets/fonts/source-serif-4-latin-opsz-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
:root {
  --bg:#F4F5F6; --surface:#FFFFFF; --ink:#16202A; --muted:#4D5966; --line:#DCE0E4; --input:#8E99A4;
  --accent:#0E5A61; --accent-ink:#FFFFFF; --code:#EDF0F2;
  --pass-bg:#E2F0EA; --pass:#17583F; --warn-bg:#FDEFD8; --warn:#7A4A00; --bad-bg:#FBE3E0; --bad:#9B231B;
  --info-bg:#E8EBEE; --info:#4D5966;
  --serif:"Source Serif 4", Georgia, serif;
  --sans:"IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:"IBM Plex Mono", ui-monospace, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg:#14171A; --surface:#1C2024; --ink:#E6E9EC; --muted:#A4ADB6; --line:#2E343A; --input:#5A646E;
    --accent:#6CC1C6; --accent-ink:#0B1A1C; --code:#23282D;
    --pass-bg:#18322A; --pass:#8FD3B4; --warn-bg:#3A2C14; --warn:#F2C47A; --bad-bg:#3D1D1B; --bad:#F4A39C;
    --info-bg:#262B30; --info:#A4ADB6;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[tabindex="-1"]:focus { outline: none; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 920px; margin: 0 auto; padding: 0 24px; }

/* header */
header.site { border-bottom: 1px solid var(--line); }
header.site .wrap { padding-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-height: 44px; }
.brand span { font-family: var(--serif); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.secondary { display: flex; gap: 20px; font-size: 15px; }
.secondary a { color: var(--ink); text-decoration: none; padding: 12px 0; }
.toolbar { display: flex; gap: 4px 24px; overflow-x: auto; white-space: nowrap; font-size: 14px; scrollbar-width: thin; }
.toolbar a { color: var(--muted); text-decoration: none; padding: 10px 0 12px; border-bottom: 2px solid transparent; }
.toolbar a:hover { color: var(--ink); }
.toolbar a[aria-current="page"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent); }

/* type */
.eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
h1.big { margin: 0 0 18px; font-family: var(--serif); font-size: clamp(34px, 5vw, 56px); line-height: 1.07; font-weight: 600; letter-spacing: -0.015em; max-width: 800px; }
h1.page { margin: 0 0 12px; font-family: var(--serif); font-size: clamp(30px, 4.4vw, 46px); line-height: 1.1; font-weight: 600; letter-spacing: -0.015em; }
.lede { margin: 0; font-size: 19px; color: var(--muted); max-width: 640px; }
h2.h { margin: 0 0 8px; font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.25; }
h2.h-lg { margin: 0 0 8px; font-family: var(--serif); font-size: 32px; font-weight: 600; letter-spacing: -0.01em; }
.sub { margin: 0 0 16px; font-size: 15px; color: var(--muted); }
.kv-l { margin: 0 0 4px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mono { font-family: var(--mono); font-size: 13px; }

/* forms and buttons */
form.check { margin-top: 28px; max-width: 600px; display: flex; flex-direction: column; gap: 10px; }
form.check label, .field label { font-size: 14px; font-weight: 600; }
.row { display: flex; flex-wrap: wrap; gap: 10px; }
input[type=text], input[type=email], textarea, select {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--input); border-radius: 6px; padding: 0 14px; min-height: 48px;
}
.row > input[type=text], .row > input[type=email] { flex: 1 1 240px; min-width: 0; }
form.check input[type=text] { min-height: 52px; font-size: 17px; }
textarea { width: 100%; padding: 12px 14px; font-family: var(--mono); font-size: 13px; line-height: 1.6; resize: vertical; }
input[aria-invalid="true"] { border-color: var(--bad); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; font: inherit; font-size: 15px; font-weight: 600; border-radius: 6px; cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); border: 0; }
form.check .btn-primary { min-height: 52px; font-size: 16px; }
.btn-primary:disabled { opacity: .6; cursor: progress; }
.btn-secondary { background: var(--surface); color: var(--ink); border: 1.5px solid var(--input); min-height: 44px; }
.btn-link { background: none; border: 0; color: var(--accent); padding: 0; min-height: 44px; }
.hint { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.field-error { margin: 2px 0 0; font-size: 14px; font-weight: 600; color: var(--bad); }

/* sections */
.hero { padding: 60px 0 52px; }
.tool-hero { padding: 44px 0 8px; }
.band { border-top: 1px solid var(--line); }
.band > .wrap { padding-top: 56px; padding-bottom: 56px; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 48px; }
.mono-label { margin: 0 0 10px; font-family: var(--mono); font-size: 13px; color: var(--accent); }
.rule-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.rule-list li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.tool-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.group-h { margin: 0 0 4px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.link-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.link-list li { border-bottom: 1px solid var(--line); }
.link-list a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; min-height: 44px; color: var(--ink); text-decoration: none; }
.link-list .t { display: flex; flex-direction: column; gap: 2px; }
.link-list .n { font-size: 16px; font-weight: 600; }
.link-list .d { font-size: 14px; color: var(--muted); }
.link-list svg { flex: 0 0 16px; color: var(--accent); }

/* progress */
.progress { padding: 36px 0 64px; }
.progress h2 { margin: 0 0 20px; font-family: var(--serif); font-size: 28px; font-weight: 600; }
.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); max-width: 560px; }
.steps li { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.steps li.active { color: var(--ink); font-weight: 600; }
.steps li.done { color: var(--ink); }
.dot { width: 18px; height: 18px; flex: 0 0 18px; border-radius: 50%; border: 2px solid var(--line); display: inline-flex; align-items: center; justify-content: center; }
.active .dot { border-color: var(--accent); border-top-color: transparent; animation: spin .8s linear infinite; }
.done .dot { border-color: var(--pass); background: var(--pass); }
.done .dot::after { content: ""; width: 8px; height: 4px; border-left: 2px solid var(--bg); border-bottom: 2px solid var(--bg); transform: rotate(-45deg) translate(1px,-1px); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .active .dot { animation: none; border-top-color: var(--accent); } }
.loading { padding: 24px 0; color: var(--muted); }

.error-box { margin: 32px 0 48px; padding: 24px; border: 1px solid var(--bad); background: var(--bad-bg); border-radius: 4px; max-width: 640px; }
.error-box h2 { margin: 0 0 6px; font-family: var(--serif); font-size: 22px; }
.error-box p { margin: 0 0 14px; }

/* report */
.report { padding-top: 40px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 40px; }
.r-head { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: flex-end; justify-content: space-between; padding-bottom: 24px; border-bottom: 2px solid var(--ink); }
.r-head h1 { margin: 0; font-family: var(--serif); font-size: clamp(30px, 4.6vw, 46px); line-height: 1.1; font-weight: 600; letter-spacing: -0.015em; word-break: break-word; }
.meta { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.r-actions { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.actions-row { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.seg { display: inline-flex; padding: 3px; border: 1.5px solid var(--input); border-radius: 8px; background: var(--surface); }
.seg button { min-height: 40px; padding: 0 18px; border: 0; border-radius: 5px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; background: transparent; color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
@media (max-width: 640px) { .r-actions { align-items: flex-start; } }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.pill.lg { padding: 6px 14px; font-size: 15px; }
.pill.pass { background: var(--pass-bg); color: var(--pass); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.info { background: var(--info-bg); color: var(--info); }
.verdict { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.verdict h2 { margin: 0; font-family: var(--serif); font-size: clamp(23px, 3vw, 32px); line-height: 1.25; font-weight: 600; max-width: 740px; }
.counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; width: 100%; max-width: 560px; }
.counts .cnt { padding: 12px 14px; border-top: 3px solid var(--line); border-radius: 0 0 4px 4px; }
.counts .n { display: flex; align-items: center; gap: 8px; font-family: var(--serif); font-size: 32px; font-weight: 600; line-height: 1.2; }
.counts .ic { display: inline-flex; } .counts .ic svg { width: 20px; height: 20px; }
.counts .l { font-size: 14px; color: var(--muted); }
.counts .cnt.pass { background: var(--pass-bg); border-color: var(--pass); } .counts .cnt.pass .n { color: var(--pass); }
.counts .cnt.warn { background: var(--warn-bg); border-color: var(--warn); } .counts .cnt.warn .n { color: var(--warn); }
.counts .cnt.bad { background: var(--bad-bg); border-color: var(--bad); } .counts .cnt.bad .n { color: var(--bad); }
.counts .cnt.zero { background: transparent; border-color: var(--line); } .counts .cnt.zero .n { color: var(--muted); }
.counts .cnt.zero .ic { opacity: .5; }
.counts .cnt .l { color: var(--ink); } .counts .cnt.zero .l { color: var(--muted); }
@media (max-width: 480px) { .counts { gap: 8px; } .counts .cnt { padding: 10px; } .counts .n { font-size: 26px; gap: 6px; } .counts .ic svg { width: 16px; height: 16px; } .counts .l { font-size: 13px; } }
.testline { margin: 0; font-size: 15px; color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 26px 28px; }
.card h2 { margin: 0 0 6px; font-family: var(--serif); font-size: 23px; font-weight: 600; }
.fixes { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.fixes li { display: flex; gap: 16px; }
.num { flex: 0 0 auto; font-family: var(--mono); font-size: 15px; color: var(--accent); padding-top: 1px; }
.fixes h3 { margin: 0 0 4px; font-size: 17px; font-weight: 600; }
.fixes p { margin: 0; font-size: 15px; color: var(--muted); }
.sec-head { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; justify-content: space-between; }
.checks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.checks > li { border-bottom: 1px solid var(--line); padding: 20px 0 10px; display: flex; flex-direction: column; gap: 8px; }
.c-top { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
.c-top h3 { margin: 0; font-size: 17px; font-weight: 600; }
.c-top h3 small { font-weight: 400; font-size: 14px; color: var(--muted); }
.c-sum { margin: 0; font-size: 15px; max-width: 700px; }
.tests { list-style: none; margin: 4px 0 2px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 4px 24px; }
.tests li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.45; }
.tests li svg { flex: 0 0 14px; margin-top: 3px; }
.t-pass svg { color: var(--pass); } .t-warn svg { color: var(--warn); } .t-bad svg { color: var(--bad); }
.tests li.t-info, .tests li.t-unverified { color: var(--muted); }
.toggle { align-self: flex-start; }
.chev { transition: transform .15s; }
[aria-expanded="true"] .chev { transform: rotate(180deg); }
.tech { background: var(--code); border-radius: 4px; padding: 16px; margin-bottom: 8px; display: flex; flex-direction: column; gap: 14px; }
pre.rec, code.rec { display: block; margin: 0; font-family: var(--mono); font-size: 13px; line-height: 1.6; white-space: pre-wrap; word-break: break-all; }
.recwrap { margin-top: 14px; }
.recbox { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 12px; }
.copy { margin-top: 10px; }
.forward { border: 1.5px dashed var(--input); border-radius: 4px; padding: 24px; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; }
.forward h2 { margin: 0 0 6px; font-family: var(--serif); font-size: 21px; font-weight: 600; }
.forward p { margin: 0; font-size: 15px; color: var(--muted); }

/* technical view */
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stats div { background: var(--surface); padding: 14px 16px; }
.stats .n { display: block; font-family: var(--mono); font-size: 22px; }
.stats .l { font-size: 13px; color: var(--muted); }
.stats .n.pass { color: var(--pass); } .stats .n.warn { color: var(--warn); }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } .stats div:last-child { grid-column: span 2; } }
@media (max-width: 420px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th { text-align: left; padding: 10px 14px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; background: var(--code); }
table.data td { padding: 9px 14px; border-top: 1px solid var(--line); vertical-align: top; }
table.data td.area { font-family: var(--mono); font-size: 13px; color: var(--muted); white-space: nowrap; }
table.data td.res { font-weight: 600; white-space: nowrap; }
td.res { white-space: nowrap; } td.res .pill { font-size: 12px; padding: 3px 9px; }
.records { display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.records > div { display: grid; grid-template-columns: minmax(120px, 190px) minmax(0, 1fr); gap: 16px; padding: 12px 14px; background: var(--surface); }
.records .k { font-family: var(--mono); font-size: 13px; color: var(--muted); word-break: break-all; }
.house { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.house li { display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.house .v { font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* tool pages */
.answer { border-top: 2px solid var(--ink); padding-top: 24px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.answer h2 { margin: 0; font-family: var(--serif); font-size: clamp(23px, 3vw, 28px); line-height: 1.25; font-weight: 600; max-width: 740px; }
.meter-wrap { width: 100%; max-width: 560px; }
.meter-top { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px; }
.meter { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; }
.meter span { height: 14px; border-radius: 2px; background: var(--line); }
.meter span.on { background: var(--accent); }
.meter.warn span.on { background: var(--warn); }
.meter.bad span.on { background: var(--bad); }
.tree { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.tree li { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); }
.tree .t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tree .who { font-size: 13px; color: var(--muted); }
.tree .cost { flex: 0 0 auto; font-family: var(--mono); font-size: 13px; }
.tree li.child .cost { color: var(--muted); }
.explain { border-top: 1px solid var(--line); padding-top: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px 36px; }
.explain h2 { margin: 0 0 8px; font-family: var(--serif); font-size: 20px; font-weight: 600; }
.explain p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.tool-body { padding-bottom: 72px; display: flex; flex-direction: column; gap: 36px; }
.auth3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.auth3 > div { border-top: 3px solid var(--line); padding-top: 12px; }
.auth3 .top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-weight: 600; }
.auth3 .r { font-size: 13px; }
.auth3 p { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.auth3 > div.pass { border-color: var(--pass); } .auth3 > div.pass .r { color: var(--pass); }
.auth3 > div.bad { border-color: var(--bad); } .auth3 > div.bad .r { color: var(--bad); }
.auth3 > div.warn { border-color: var(--warn); } .auth3 > div.warn .r { color: var(--warn); }
.auth3 > div.info .r { color: var(--muted); }
.path { list-style: none; margin: 0 0 0 7px; padding: 0; border-left: 2px solid var(--line); }
.path li { position: relative; padding: 0 0 20px 24px; }
.path li::before { content: ""; position: absolute; left: -8px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--input); }
.path .h { display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: space-between; }
.path .srv { font-family: var(--mono); font-size: 13px; word-break: break-all; }
.path .when { font-size: 13px; color: var(--muted); }
.path p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.path li.slow::before { border-color: var(--warn); }

/* builders */
.builder { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 36px; align-items: start; }
@media (max-width: 860px) { .builder { grid-template-columns: 1fr; } }
.builder fieldset { border: 0; margin: 0 0 24px; padding: 0; }
.builder legend { font-family: var(--serif); font-size: 20px; font-weight: 600; margin: 0 0 6px; padding: 0; }
.checklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2px 20px; }
.checklist label { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 15px; cursor: pointer; }
.checklist input, .radio input { width: 18px; height: 18px; accent-color: var(--accent); }
.radio { display: flex; flex-direction: column; gap: 2px; }
.radio label { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; cursor: pointer; font-size: 15px; }
.radio label span small { display: block; font-size: 13px; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field input, .field select { width: 100%; }
.output { position: sticky; top: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.output h2 { margin: 0; font-family: var(--serif); font-size: 20px; font-weight: 600; }
.output .rec { background: var(--code); padding: 12px; border-radius: 4px; }
.output dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; }
.output dt { color: var(--muted); }
.output dd { margin: 0; }
.notes { margin: 0; padding-left: 18px; font-size: 14px; color: var(--muted); }
.notes li { margin: 4px 0; }

/* prose (guides, legal) */
.prose { max-width: 720px; font-size: 17px; line-height: 1.65; }
.prose h2 { font-family: var(--serif); font-size: 26px; font-weight: 600; margin: 36px 0 10px; line-height: 1.25; }
.prose h3 { font-size: 18px; margin: 24px 0 6px; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose li { margin: 6px 0; }
.prose code { font-family: var(--mono); font-size: 14px; background: var(--code); padding: 1px 5px; border-radius: 3px; word-break: break-all; }
.prose pre { background: var(--code); padding: 14px; border-radius: 4px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose .callout { border-left: 3px solid var(--accent); padding: 4px 0 4px 16px; color: var(--muted); }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 0 0 16px; }
.prose th, .prose td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.page-body { padding-top: 44px; padding-bottom: 72px; }
.crumbs { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.crumbs a { color: var(--muted); }

/* footer */
footer.site { border-top: 1px solid var(--line); }
footer.site .wrap { padding-top: 28px; padding-bottom: 32px; font-size: 14px; color: var(--muted); }
.foot-cols { display: flex; flex-wrap: wrap; gap: 12px 40px; justify-content: space-between; }
.foot-cols p { margin: 0; max-width: 620px; }
.foot-cols nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-cols nav a { color: var(--muted); }
.fine { margin: 16px 0 0; font-size: 13px; }

@media print {
  :root { --bg:#fff; --surface:#fff; --ink:#000; --muted:#333; --line:#bbb; --code:#f2f2f2; }
  header.site .toolbar, header.site .secondary, .r-actions, .forward, .toggle, .copy, .selform, .sec-head .btn, .no-print, footer.site nav, .skip { display: none !important; }
  .tech[hidden] { display: flex !important; }
  .report { padding-top: 12px; padding-bottom: 12px; gap: 24px; }
  .checks > li, .card, .fixes li { break-inside: avoid; }
  .pill { border: 1px solid currentColor; }
  a { color: #000; }
}
form.check select { min-height: 52px; }
/* long DNS names must wrap rather than widen the page */
body { overflow-wrap: break-word; }
.answer h2, .verdict h2, .r-head h1, .c-sum, .house .v, .meta, .forward h2, .tests li, .error-box p, .output dd { overflow-wrap: anywhere; }
.tool-body > *, .report > *, .view-simple > *, .view-tech > * { min-width: 0; }
/* review fixes */
.explain.cols-2 { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); }
.prose code { word-break: normal; overflow-wrap: break-word; }
.prose td code { overflow-wrap: anywhere; }
summary.disclose { cursor: pointer; font-weight: 600; min-height: 44px; padding: 10px 0; }
@media (max-width: 760px) {
  .toolbar { -webkit-mask-image: linear-gradient(to right, #000 85%, transparent); mask-image: linear-gradient(to right, #000 85%, transparent); padding-right: 32px; }
}
.mobile-bar { display: none; }
@media (max-width: 860px) {
  .mobile-bar { display: flex; align-items: center; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
    padding: 10px 16px; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -4px 12px rgba(0,0,0,.06); font-size: 13px; }
  .mobile-bar .rec { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; word-break: normal; }
  .mobile-bar a { font-weight: 600; white-space: nowrap; }
  #builder[data-builder="spf"] { padding-bottom: 96px !important; }
}
@media print { .mobile-bar { display: none !important; } }
/* no layout jump between pages: reserve the scrollbar's space, and the bold width of each menu item */
html { scrollbar-gutter: stable; }
.toolbar a { display: inline-flex; flex-direction: column; align-items: flex-start; }
.toolbar a::after { content: attr(data-label); font-weight: 600; height: 0; overflow: hidden; visibility: hidden; pointer-events: none; user-select: none; }
/* long domain names shrink instead of breaking awkwardly */
.r-head h1.long-1 { font-size: clamp(24px, 3.4vw, 36px); }
.r-head h1.long-2 { font-size: clamp(20px, 2.6vw, 28px); }

.reviewed { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.learn { padding-top: 56px; padding-bottom: 8px; }
.learn .prose > h2:first-child { margin-top: 0; }
.learn + section.narrow { padding-top: 32px !important; }
main > .learn:last-child, .learn:last-of-type { padding-bottom: 64px; }
@media (max-width: 640px) { .prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; } }
