/* NetSaver — site styles. No external fonts or frameworks. */
:root {
  --ink: #0f1b2d;
  --ink-2: #33415c;
  --muted: #56627a;
  --line: #d9e0ea;
  --line-2: #e8edf4;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --bg-tint: #eaf2ff;
  --brand: #1747b8;
  --brand-ink: #0d2f80;
  --brand-dark: #0b1f4d;
  --accent: #00a59a;
  --accent-soft: #e0f6f3;
  --warn: #8a4b00;
  --warn-bg: #fff4e0;
  --warn-line: #f0c27a;
  --bad: #a1221b;
  --bad-bg: #fdecea;
  --good: #0f6b3a;
  --good-bg: #e5f5ec;
  --focus: #ffbf47;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 27, 45, .06), 0 6px 20px rgba(15, 27, 45, .06);
  --measure: 70ch;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1rem; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--bg); overflow-wrap: break-word; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--brand-ink); text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 5px var(--ink); border-radius: 3px; }
a:focus-visible { background: var(--focus); color: var(--ink); box-shadow: 0 4px 0 var(--ink); outline: none; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.22; color: var(--ink); letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 2.9rem); margin: .2em 0 .4em; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.8rem); margin: 2.2em 0 .6em; }
h3 { font-size: 1.22rem; margin: 1.8em 0 .5em; }
h4 { font-size: 1.05rem; margin: 1.5em 0 .4em; }
p, ul, ol { margin: 0 0 1em; }
li + li { margin-top: .3em; }
strong { font-weight: 650; }
code { font-family: var(--mono); font-size: .92em; background: var(--bg-soft); padding: .05em .3em; border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 820px; }
.skip { position: absolute; left: .75rem; top: -4rem; z-index: 50; background: var(--focus); color: var(--ink); padding: .6rem 1rem; font-weight: 700; border-radius: 0 0 6px 6px; }
.skip:focus { top: 0; }

/* Header */
.site-header { background: var(--brand-dark); color: #fff; position: relative; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: .55rem; color: #fff; text-decoration: none; font-weight: 750; font-size: 1.2rem; letter-spacing: -0.01em; padding: .4rem 0; }
.logo:hover { color: #fff; }
.logo-mark { flex: none; }
.logo .tld { font-weight: 450; opacity: .7; }
.nav-list { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; flex-wrap: wrap; }
.nav-list li { margin: 0; }
.nav-list a { display: block; color: #dfe8ff; text-decoration: none; padding: .5rem .75rem; border-radius: 8px; font-weight: 550; font-size: .98rem; }
.nav-list a:hover { background: rgba(255,255,255,.1); color: #fff; }
.nav-list a[aria-current="page"] { background: rgba(255,255,255,.14); color: #fff; box-shadow: inset 0 -3px 0 var(--accent); }
.nav-toggle { display: none; font: inherit; font-weight: 650; color: #fff; background: transparent; border: 2px solid rgba(255,255,255,.5); border-radius: 8px; padding: .35rem .8rem; cursor: pointer; }
@media (max-width: 860px) {
  .js .nav-toggle { display: inline-block; }
  .js .nav-list { display: none; width: 100%; flex-direction: column; padding: 0 0 .9rem; }
  .js .nav-list.open { display: flex; }
  .js nav[aria-label="Main"] { display: contents; }
}

/* Hero */
.hero { background: radial-gradient(1200px 400px at 85% -10%, rgba(0,165,154,.35), transparent 60%), linear-gradient(160deg, var(--brand-dark), #12358f 70%, #1747b8); color: #fff; padding: 3.2rem 0 4.2rem; }
.hero h1 { color: #fff; max-width: 18ch; }
.hero .lede { color: #dbe6ff; font-size: clamp(1.08rem, 1rem + .5vw, 1.3rem); max-width: 56ch; }
.hero .eyebrow { color: #9fe8df; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--brand); margin: 0; }
.lede { font-size: 1.18rem; color: var(--ink-2); max-width: var(--measure); }

/* Home */
.needs { margin-top: -2.4rem; }
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.cards li { margin: 0; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); height: 100%; transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(15,27,45,.08), 0 12px 28px rgba(15,27,45,.1); }
.card-link { display: flex; flex-direction: column; height: 100%; padding: 1.3rem 1.3rem 1.2rem; color: var(--ink); text-decoration: none; border-radius: var(--radius); }
.card-link:hover { color: var(--ink); }
.card-link:focus-visible { background: #fff; box-shadow: 0 0 0 3px var(--focus), 0 0 0 6px var(--ink); }
.card-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--bg-tint); color: var(--brand); margin-bottom: .8rem; }
.card-icon svg { width: 26px; height: 26px; }
.card h2 { font-size: 1.2rem; margin: 0 0 .4rem; }
.card p { color: var(--ink-2); font-size: .98rem; margin-bottom: 1rem; }
.card-cta { margin-top: auto; font-weight: 650; color: var(--brand); }
.card-link:hover .card-cta { text-decoration: underline; }
.section-title { margin-top: 2.6rem; }
.tool-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.tool-grid li { margin: 0; background: var(--bg-soft); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.tool-grid h3 { margin: 0 0 .3rem; font-size: 1.05rem; }
.tool-grid p { margin: 0 0 .5rem; color: var(--ink-2); font-size: .97rem; }
.facts { margin-top: 2.5rem; }
.fact-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.fact-list li { margin: 0; border-left: 4px solid var(--accent); padding: .2rem 0 .2rem 1rem; }
.fact-list h3 { margin: 0 0 .3rem; font-size: 1.05rem; }
.fact-list p { margin: 0 0 .4rem; color: var(--ink-2); font-size: .97rem; }
.trust { margin: 3rem 0 3.5rem; background: var(--bg-soft); border-radius: var(--radius); padding: 1.5rem 1.6rem; }
.trust h2 { margin-top: 0; }
.trust-list { padding-left: 1.2rem; }

/* Article */
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 1.2rem 0 0; font-size: .92rem; color: var(--muted); }
.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before { content: "›"; margin-right: .4rem; color: var(--muted); }
.page-head { padding: .8rem 0 1.2rem; border-bottom: 1px solid var(--line); margin-bottom: 1.6rem; }
.page-head h1 { max-width: 26ch; }
.meta { color: var(--muted); font-size: .93rem; margin: .6rem 0 0; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
@media (min-width: 1040px) {
  .article-layout.has-toc { grid-template-columns: 260px minmax(0, 1fr); }
  .toc { position: sticky; top: 1rem; align-self: start; max-height: calc(100vh - 2rem); overflow: auto; }
}
.prose { max-width: var(--measure); min-width: 0; }
.prose > h2:first-child { margin-top: 0; }
.prose h2 { padding-top: .4rem; border-top: 1px solid var(--line-2); }
.toc { background: var(--bg-soft); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 1rem 1.1rem; font-size: .93rem; }
.toc h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .07em; margin: 0 0 .6rem; color: var(--muted); border: 0; padding: 0; }
.toc ol { margin: 0; padding-left: 1.2rem; }
.toc li + li { margin-top: .35rem; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--brand); text-decoration: underline; }
.callout { background: var(--bg-tint); border-left: 4px solid var(--brand); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: .9rem 1.1rem; margin: 1.3rem 0; }
.callout p:last-child { margin-bottom: 0; }
.callout.key { background: var(--accent-soft); border-left-color: var(--accent); }
.callout.warn { background: var(--warn-bg); border-left-color: var(--warn); }
.callout.note { background: var(--bg-soft); border-left-color: var(--muted); }
.quick { background: var(--accent-soft); border-radius: var(--radius); padding: 1.1rem 1.3rem; margin: 0 0 1.5rem; }
.quick h2 { margin: 0 0 .4rem; border: 0; padding: 0; font-size: 1.2rem; }

/* Tables */
.table-wrap { position: relative; overflow-x: auto; margin: 1.3rem 0 1.6rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.table-wrap:focus-visible { outline: 3px solid var(--focus); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; line-height: 1.45; }
caption { text-align: left; font-weight: 650; padding: .7rem .9rem 0; }
th, td { text-align: left; vertical-align: top; padding: .65rem .8rem; border-bottom: 1px solid var(--line-2); }
thead th { background: var(--bg-soft); font-weight: 650; border-bottom: 2px solid var(--line); white-space: nowrap; }
tbody tr:last-child > * { border-bottom: 0; }
tbody th { font-weight: 650; }
@media (max-width: 640px) {
  table { font-size: .9rem; }
  th, td { padding: .55rem .6rem; min-width: 8.5rem; }
  thead th { white-space: normal; }
}

/* Lists */
.checklist { list-style: none; padding-left: 0; }
.checklist li { display: flex; gap: .6rem; }
.check { flex: none; width: 1.1rem; height: 1.1rem; border: 2px solid var(--brand); border-radius: 4px; margin-top: .3rem; }
.sources li { font-size: .95rem; }

/* Tools */
.tool { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.3rem 1.3rem 1.4rem; margin: 1.6rem 0 2rem; }
.tool > h3:first-child, .tool > h2:first-child { margin-top: 0; border: 0; padding: 0; }
.tool-intro { color: var(--ink-2); }
.tool .noscript, .tool-fallback { background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: var(--radius-sm); padding: .8rem 1rem; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .9rem 1.1rem; }
.field { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.field label, .field .label, legend { font-weight: 620; font-size: .97rem; }
.hint { color: var(--muted); font-size: .88rem; line-height: 1.4; }
input[type="number"], input[type="text"], input[type="month"], select { font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 2px solid #8794aa; border-radius: 8px; padding: .5rem .6rem; width: 100%; min-height: 44px; }
input:focus-visible, select:focus-visible { outline: 3px solid var(--focus); outline-offset: 0; box-shadow: inset 0 0 0 2px var(--ink); border-color: var(--ink); }
.input-affix { display: flex; align-items: stretch; }
.input-affix span { display: grid; place-items: center; padding: 0 .55rem; background: var(--bg-soft); border: 2px solid #8794aa; color: var(--ink-2); font-weight: 600; min-width: 2.2rem; }
.input-affix span:first-child { border-right: 0; border-radius: 8px 0 0 8px; }
.input-affix span:last-child { border-left: 0; border-radius: 0 8px 8px 0; }
.input-affix input { border-radius: 0; }
.input-affix input:first-child { border-radius: 8px 0 0 8px; }
.input-affix input:last-child { border-radius: 0 8px 8px 0; }
[aria-invalid="true"] { border-color: var(--bad) !important; background: #fffafa; }
.field-error { color: var(--bad); font-weight: 600; font-size: .9rem; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .8rem 1rem 1rem; margin: 1rem 0; min-width: 0; }
legend { padding: 0 .35rem; }
.radio-row { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; }
.radio-row label, .check-row label { display: inline-flex; align-items: center; gap: .45rem; font-weight: 500; cursor: pointer; min-height: 44px; }
input[type="radio"], input[type="checkbox"] { width: 1.25rem; height: 1.25rem; accent-color: var(--brand); margin: 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.btn { font: inherit; font-weight: 650; border-radius: 10px; padding: .6rem 1.1rem; min-height: 44px; cursor: pointer; border: 2px solid var(--brand); background: var(--brand); color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.btn:hover { background: var(--brand-ink); border-color: var(--brand-ink); color: #fff; }
.btn.secondary { background: #fff; color: var(--brand); }
.btn.secondary:hover { background: var(--bg-tint); color: var(--brand-ink); }
.btn.link { background: none; border-color: transparent; color: var(--brand); padding-left: .3rem; padding-right: .3rem; text-decoration: underline; }
.error-summary { border: 3px solid var(--bad); border-radius: var(--radius-sm); padding: .9rem 1.1rem; margin: 1rem 0; background: var(--bad-bg); }
.error-summary h4 { margin: 0 0 .4rem; color: var(--bad); }
.error-summary ul { margin: 0; padding-left: 1.2rem; }
.error-summary a { color: var(--bad); font-weight: 600; }
.result { margin-top: 1.3rem; border-radius: var(--radius-sm); padding: 1rem 1.2rem; background: var(--bg-soft); border: 1px solid var(--line); }
.result:empty { display: none; }
.result h4 { margin-top: 0; }
.result .big { font-size: 1.5rem; font-weight: 750; letter-spacing: -0.01em; margin: .1rem 0 .5rem; }
.verdict { display: inline-block; font-weight: 700; padding: .15rem .6rem; border-radius: 999px; font-size: .95rem; }
.verdict.good { background: var(--good-bg); color: var(--good); }
.verdict.mid { background: var(--warn-bg); color: var(--warn); }
.verdict.bad { background: var(--bad-bg); color: var(--bad); }
.verdict.info { background: var(--bg-tint); color: var(--brand-ink); }
.assumptions { font-size: .92rem; color: var(--ink-2); }
.assumptions summary { cursor: pointer; font-weight: 650; color: var(--ink); min-height: 32px; }
.tests-table input { min-width: 6rem; }
.cost-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.cost-option { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .9rem 1rem 1rem; background: var(--bg-soft); min-width: 0; }
.cost-option legend { font-size: 1.05rem; }
.cost-option .form-grid { grid-template-columns: 1fr 1fr; }
@media (max-width: 420px) { .cost-option .form-grid { grid-template-columns: 1fr; } }
.bar { height: .6rem; border-radius: 99px; background: var(--brand); min-width: 2px; }
.bar-track { background: var(--line-2); border-radius: 99px; overflow: hidden; margin-top: .25rem; }

/* Decision tree */
.tree-steps { counter-reset: q; list-style: none; padding: 0; }
.tree-step { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .9rem 1rem; margin: 0 0 .8rem; background: #fff; }
.tree-step.answered { background: var(--bg-soft); }
.tree-step fieldset { border: 0; padding: 0; margin: 0; }
.tree-step legend { font-size: 1.05rem; padding: 0; }
.tree-step .hint { margin: .2rem 0 .5rem; }
.tree-result { border: 2px solid var(--accent); border-radius: var(--radius-sm); padding: 1rem 1.2rem; background: var(--accent-soft); }
.tree-result h4 { margin: 0 0 .3rem; font-size: 1.2rem; }
.tree-result.unknown { border-color: var(--brand); background: var(--bg-tint); }
.tree-result .why { margin: .6rem 0; padding-left: 1.2rem; }
.flow { list-style: none; padding: 0; margin: 1rem 0; }
.flow > li { position: relative; padding: .7rem 1rem .7rem 3rem; border: 1px solid var(--line); border-radius: var(--radius-sm); margin: 0 0 .6rem; background: #fff; }
.flow > li::before { counter-increment: flow; content: counter(flow); position: absolute; left: .8rem; top: .7rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .9rem; }
.flow { counter-reset: flow; }
.flow ul { margin: .4rem 0 0; padding-left: 1.2rem; }

/* Official checker links */
.link-cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .8rem; margin: 1rem 0 1.4rem; }
.link-cards li { margin: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .9rem 1rem; background: #fff; }
.link-cards a { font-weight: 650; }
.link-cards p { margin: .3rem 0 0; font-size: .93rem; color: var(--ink-2); }
.ext::after { content: " ↗"; font-size: .85em; }

/* Footer */
.site-footer { background: var(--brand-dark); color: #c9d6f5; margin-top: 4rem; padding: 2.5rem 0 2rem; font-size: .95rem; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; gap: 1.2rem; } }
.site-footer a { color: #fff; }
.site-footer a:focus-visible { color: var(--ink); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer h2 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 .7rem; }
.footer-brand { display: flex; align-items: center; gap: .5rem; color: #fff; font-weight: 750; font-size: 1.1rem; margin: 0 0 .5rem; }
.footer-note { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.15); padding-top: 1rem; margin: 0; color: #a9b9e0; font-size: .88rem; }

/* Print */
@media print {
  .site-header, .site-footer, .toc, .breadcrumbs, .tool, .btn-row, .skip, .no-print { display: none !important; }
  body { font-size: 11pt; color: #000; }
  a { color: #000; }
  .prose { max-width: none; }
  .printable { break-inside: avoid; }
  body.print-only-area > *:not(#print-area) { display: none !important; }
  #print-area .check { border-color: #000; }
}
#print-area { display: none; }
@media print { #print-area { display: block; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.tests-table select { min-width: 10.5rem; }
