/* Typefaces are served from this site (assets/fonts), not from a third party. */
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/schibsted-grotesk-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/schibsted-grotesk-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/schibsted-grotesk-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/ibm-plex-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2'); }

/* pentested.com
   Layout idea: a printed test report turned into a website. Square corners,
   hairline rules, solid severity blocks, navy ink on a cool paper ground. */
:root {
  --ground: #F3F5F7;
  --surface: #FFFFFF;
  --ink: #0C1A2A;
  --body: #3B4A5A;
  --muted: #4A5A6B;
  --line: #D5DCE4;
  --line-strong: #C4CDD7;
  --accent: #1D4ED8;
  --accent-soft: #E3EAFD;
  --amber: #F5B54A;
  --on-dark: #EEF2F6;
  --on-dark-muted: #B9C5D1;
  --sev-critical: #B42318;
  --sev-high: #C2410C;
  --sev-medium: #F5B54A;
  --sev-low: #1E7F4F;
  --sev-info: #33506B;
  --display: 'Schibsted Grotesk', 'Segoe UI', Arial, sans-serif;
  --text: 'IBM Plex Sans', 'Segoe UI', Arial, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--text); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; text-wrap: balance; }
h1 { font-weight: 800; font-size: clamp(38px, 5vw, 68px); line-height: 1.0; letter-spacing: -0.035em; }
h2 { font-weight: 800; font-size: clamp(29px, 3.4vw, 46px); line-height: 1.05; letter-spacing: -0.03em; }
h3 { font-weight: 700; font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; }
p { margin: 0; }
code, pre, kbd, samp { font-family: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 10; }
.skip:focus { left: 8px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-lg { display: flex; flex-direction: column; gap: 48px; }
.lead { font-size: 20px; line-height: 1.5; color: var(--body); max-width: 34em; }
.measure { max-width: 720px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* Section label: the small square echoes the page marker in a printed report */
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; width: 12px; height: 12px; background: currentColor; flex: none; }

/* Buttons */
.btn {
  display: inline-block; text-align: center; text-decoration: none; font-weight: 600; font-size: 17px;
  padding: 15px 26px; border-radius: 2px; border: 1px solid transparent; cursor: pointer; font-family: var(--text);
}
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-ghost { color: var(--ink); border-color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--accent); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--amber); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn-block { display: block; }

/* Header */
.site-head { border-bottom: 1px solid var(--line); background: var(--ground); }
.head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; padding-top: 16px; padding-bottom: 16px; }
.logo { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; }
.logo span { color: var(--accent); }
.logo:hover { color: var(--ink); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--ink); text-decoration: none; padding: 12px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.nav a.btn { padding: 11px 18px; font-size: 15px; border-bottom: 1px solid var(--ink); }
.nav a.btn:hover { border-color: var(--accent); }

/* Sections */
.section { padding: 96px 0; border-bottom: 1px solid var(--line); }
.section-white { background: var(--surface); }
.section-dark { background: var(--ink); color: var(--on-dark); border-bottom: 0; }
.section-dark .eyebrow { color: var(--amber); }
.section-dark p { color: var(--on-dark-muted); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-tight { padding: 64px 0; }

/* Page heading band used on inner pages */
.page-head { padding: 72px 0 64px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(36px, 4.4vw, 58px); max-width: 16em; }

/* Hero */
.hero { padding: 88px 0 96px; border-bottom: 1px solid var(--line); }
.hero-row { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero-card { flex: 1 1 420px; min-width: 0; }

/* Report card */
.report { background: var(--surface); border: 1px solid var(--ink); border-radius: 2px; box-shadow: 10px 10px 0 var(--ink); }
.report-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 14px 20px; border-bottom: 1px solid var(--ink); font-size: 13px; font-weight: 600; }
.report-head span:last-child { color: var(--muted); font-weight: 500; }
.report-body { padding: 24px 20px; display: flex; flex-direction: column; gap: 14px; }
.report-title { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -0.02em; }

/* Severity count rows, as they appear on a report's summary page */
.sev-row { display: flex; align-items: center; gap: 18px; }
.sev-count {
  flex: none; width: 64px; height: 64px; display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700; font-size: 34px; color: #fff; border-radius: 2px;
}
.sev-row strong { display: block; font-size: 16px; }
.sev-row span { font-size: 14px; color: var(--muted); }
.sev-critical { background: var(--sev-critical); }
.sev-high { background: var(--sev-high); }
.sev-medium { background: var(--sev-medium); color: #fff; }
.sev-low { background: var(--sev-low); }
.sev-info { background: var(--sev-info); }

/* Grids */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 40px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 40px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); border: 1px solid var(--ink); border-radius: 2px; background: var(--surface); overflow: hidden; }
/* Dividers are drawn as shadows so they are clipped at the outer edge and never cover the frame. */
.step { padding: 32px; display: flex; flex-direction: column; gap: 14px; box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line); }
.step p { color: var(--body); font-size: 16px; }
.num { width: 34px; height: 34px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 15px; border-radius: 2px; }
.rule-top { border-top: 2px solid var(--ink); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.section-dark .rule-top { border-top-color: var(--amber); }
.rule-top p { font-size: 16px; color: var(--body); }

/* Lists */
.ticks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.ticks li { padding-left: 22px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 9px; height: 9px; background: var(--accent); }
.ticks li.no { color: var(--muted); }
.ticks li.no::before { background: none; border: 1px solid var(--muted); }
.ticks li.key { font-weight: 600; }
.on-dark .ticks li::before, .ticks.amber li::before { background: var(--amber); }

/* Testing year timeline */
.year-scroll { overflow-x: auto; }
.year { min-width: 860px; display: flex; flex-direction: column; gap: 10px; }
.year-row { display: grid; grid-template-columns: 160px repeat(12, minmax(0, 1fr)); gap: 6px; align-items: center; font-size: 14px; font-weight: 500; }
.year-months { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-muted); }
.cell { height: 34px; border: 1px dashed #3A4B5E; border-radius: 2px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: var(--ink); }
.cell.auto { background: #2B5BE8; border: 0; }
.cell.manual { background: var(--amber); border: 0; color: #fff; }
.cell.fix { background: var(--on-dark); border: 0; grid-column: span 3; }
.cell.pass { background: #6FD3A0; border: 0; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(255px, 100%), 1fr)); gap: 16px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 2px; padding: 28px 24px; display: flex; flex-direction: column; gap: 22px; }
.plan-tag { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.plan-price { font-family: var(--display); font-weight: 800; font-size: 44px; letter-spacing: -0.03em; line-height: 1; }
.plan-per { color: var(--muted); font-size: 15px; }
.plan-year { color: var(--muted); font-size: 14px; margin-top: 6px; }
.plan-featured { border: 2px solid var(--accent); padding: 27px 23px; box-shadow: 8px 8px 0 var(--accent); }
.plan-featured .plan-tag { color: var(--accent); }
.plan-dark { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.plan-dark .plan-tag, .plan-dark .plan-per, .plan-dark .plan-year { color: var(--on-dark-muted); }
.plan-dark .ticks li::before { background: var(--amber); }

/* Tables */
.table-scroll { overflow-x: auto; border: 1px solid var(--ink); border-radius: 2px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 720px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-family: var(--display); font-size: 17px; border-bottom: 1px solid var(--ink); }
tbody th { font-weight: 500; color: var(--body); }
tr:last-child th, tr:last-child td { border-bottom: 0; }

/* FAQ */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line-strong); padding: 22px 0; }
.faq summary { font-family: var(--display); font-weight: 700; font-size: 20px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 500; }
.faq details[open] summary::after { content: "\2212"; }
.faq p { margin-top: 12px; color: var(--body); max-width: 40em; }
.split { display: flex; flex-wrap: wrap; gap: 48px; }
.split > :first-child { flex: 1 1 300px; min-width: 0; }
.split > :last-child { flex: 999 1 560px; min-width: 0; }

/* Methodology cards */
.areas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 16px; }
.area { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 2px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.area-head { display: flex; align-items: center; gap: 12px; }
.area p { font-size: 15px; color: var(--body); }

/* Report page */
.cover { background: var(--ink); color: #fff; padding: 56px 40px; border-radius: 2px; display: flex; flex-direction: column; gap: 14px; border-bottom: 14px solid var(--accent); }
.cover p { color: var(--on-dark-muted); }
.sheet { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 2px; padding: 40px; display: flex; flex-direction: column; gap: 24px; }
.sheet-rule { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--accent); padding-bottom: 10px; }
.callout { background: var(--ink); color: var(--on-dark); padding: 24px 28px; border-radius: 2px; }
.dist { display: flex; height: 22px; border-radius: 2px; overflow: hidden; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 12px; height: 12px; display: inline-block; }
.finding-bar { display: flex; justify-content: space-between; gap: 16px; padding: 12px 20px; color: #fff; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: 15px; border-radius: 2px; }
.finding h4 { font-size: 17px; margin-bottom: 4px; }
.finding p, .finding li { font-size: 16px; color: var(--body); }
.finding { display: flex; flex-direction: column; gap: 18px; }
.term { background: #E9EDF2; border: 1px solid var(--line-strong); padding: 0 5px; border-radius: 2px; font-weight: 500; color: var(--ink); }

/* Blog */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr)); gap: 32px 24px; }
.post-card { display: flex; flex-direction: column; gap: 16px; text-decoration: none; color: var(--ink); }
.post-card:hover h3 { color: var(--accent); }
.post-thumb { aspect-ratio: 2 / 1; background: var(--ink); border: 1px solid var(--ink); border-radius: 2px; overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-meta { font-size: 14px; color: var(--muted); }
.post-card p { font-size: 16px; color: var(--body); }
.post-head { padding: 64px 0 40px; }
.post-head h1 { font-size: clamp(34px, 4.2vw, 54px); max-width: 18em; }
.post-hero { aspect-ratio: 2 / 1; max-height: 520px; width: 100%; background: var(--ink); border: 1px solid var(--ink); border-radius: 2px; overflow: hidden; box-shadow: 10px 10px 0 var(--accent); }
.post-hero img { width: 100%; height: 100%; object-fit: cover; }
.prose { max-width: 700px; font-size: 18px; line-height: 1.65; color: #24323F; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 30px; margin-top: 1.8em; color: var(--ink); }
.prose h3 { font-size: 23px; margin-top: 1.6em; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose img { border: 1px solid var(--line-strong); border-radius: 2px; }
.prose blockquote { margin-left: 0; margin-right: 0; padding: 18px 24px; background: var(--surface); border: 1px solid var(--ink); border-radius: 2px; font-weight: 500; color: var(--ink); }
.prose code { background: #E9EDF2; border: 1px solid var(--line-strong); padding: 0 5px; border-radius: 2px; font-weight: 500; font-size: 0.94em; overflow-wrap: anywhere; }
.prose pre { background: var(--ink); color: var(--on-dark); padding: 20px 24px; border-radius: 2px; overflow-x: auto; font-size: 16px; line-height: 1.5; }
.prose pre code { background: none; border: 0; padding: 0; white-space: pre; }
.prose hr { border: 0; border-top: 1px solid var(--line-strong); margin: 2em 0; }
.pager { display: flex; justify-content: space-between; gap: 16px; align-items: center; }

/* Forms */
.form { display: flex; flex-direction: column; gap: 20px; background: var(--surface); border: 1px solid var(--ink); border-radius: 2px; padding: 32px; box-shadow: 10px 10px 0 var(--ink); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field input, .field select, .field textarea { font: inherit; padding: 12px 14px; border: 1px solid var(--muted); border-radius: 2px; background: #fff; color: var(--ink); width: 100%; }
.field textarea { min-height: 130px; resize: vertical; }
.field .error { color: var(--sev-critical); font-size: 14px; font-weight: 500; }
.notice { padding: 16px 20px; border-radius: 2px; font-weight: 500; }
.notice-ok { background: #E3F4EA; color: #05603A; border: 1px solid #05603A; }
.notice-bad { background: #FBE4E1; color: #912018; border: 1px solid #912018; }
.hp { position: absolute; left: -9999px; }

/* Call to action band and footer */
.cta { background: var(--accent); color: #fff; padding: 80px 0; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.cta p { color: var(--accent-soft); font-size: 19px; max-width: 34em; margin-top: 14px; }
.cta .btn { box-shadow: 6px 6px 0 var(--ink); }
.site-foot { background: var(--ink); color: var(--on-dark-muted); font-size: 14px; padding: 48px 0; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px 56px; }
.foot-col { display: flex; flex-direction: column; gap: 8px; }
.foot-col strong { color: #fff; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }
.site-foot a { color: var(--on-dark); text-decoration: none; padding: 4px 0; }
.site-foot a:hover { color: var(--amber); }
.site-foot .logo { color: #fff; font-size: 22px; }

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 64px; }
  .sheet, .cover { padding: 28px 20px; }
  .nav { gap: 0 18px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Overrides that must win over the general rules above */
.nav a.btn, .nav a.btn:hover { color: #fff; }
.section-dark .rule-top p { color: var(--on-dark-muted); }
.prose pre code { white-space: pre-wrap; overflow-wrap: anywhere; }

/* Partner rate ladder */
.bands { background: var(--surface); border: 1px solid var(--ink); border-radius: 2px; box-shadow: 10px 10px 0 var(--ink); align-self: flex-start; }
.band { display: grid; grid-template-columns: 110px minmax(0, 1fr) 64px; gap: 18px; align-items: center; padding: 14px 24px; border-bottom: 1px solid var(--line); }
.band:last-child { border-bottom: 0; }
.band-head { grid-template-columns: 110px minmax(0, 1fr); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--ink); }
.band-amount { font-weight: 600; }
.band-bar { height: 14px; background: #E9EDF2; border-radius: 2px; display: block; }
.band-bar i { display: block; height: 100%; background: var(--accent); border-radius: 2px; }
.band:last-child .band-bar i { background: var(--amber); }
.band-rate { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -0.02em; text-align: right; }

/* Sample report details */
.meta { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 14px 32px; }
.meta dt { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.meta dd { margin: 2px 0 0; font-size: 16px; overflow-wrap: anywhere; }
.evidence { margin-top: 10px; background: #E9EDF2; border: 1px solid var(--line-strong); border-left: 4px solid var(--ink); border-radius: 2px; padding: 14px 18px; font-size: 15px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.pill { display: inline-block; padding: 3px 10px; border-radius: 2px; font-size: 13px; font-weight: 600; color: #fff; }
.coverage { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 0 32px; }
.coverage div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.coverage strong { font-weight: 500; }
.coverage span { color: var(--muted); text-align: right; }
.sheet table { min-width: 560px; }

/* Blog categories, author box */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-block; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 2px; background: var(--surface); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; }
.chip:hover, .chip[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip span { color: var(--muted); font-weight: 400; }
.chip:hover span, .chip[aria-current="page"] span { color: var(--on-dark-muted); }
.post-cat { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.author { max-width: 700px; margin-top: 56px; padding: 24px 28px; background: var(--surface); border: 1px solid var(--ink); border-radius: 2px; display: flex; flex-direction: column; gap: 6px; }
.author-role { font-size: 14px; color: var(--muted); }
.author p { font-size: 16px; color: var(--body); margin-top: 6px; }

/* Resources hub */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.search { display: flex; flex-wrap: wrap; gap: 10px; max-width: 720px; margin-top: 8px; }
.search input { flex: 1 1 280px; min-width: 0; font: inherit; padding: 14px 16px; border: 1px solid var(--ink); border-radius: 2px; background: #fff; color: var(--ink); }
.hub-card { text-decoration: none; color: var(--ink); }
.hub-card:hover { border-color: var(--ink); box-shadow: 6px 6px 0 var(--ink); color: var(--ink); }
.result { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.result:hover h3 { color: var(--accent); }
.result p { font-size: 16px; color: var(--body); }
.glossary { margin: 0; display: flex; flex-direction: column; }
.glossary > div { padding: 20px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 24px; }
.glossary dt { font-family: var(--display); font-weight: 700; font-size: 21px; }
.glossary dd { margin: 6px 0 0; color: var(--body); max-width: 44em; }
.glossary-letter { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; background: var(--accent); color: #fff; font-weight: 600; border-radius: 2px; margin-bottom: 12px; scroll-margin-top: 24px; }
.faq-answer { margin-top: 12px; color: var(--body); max-width: 44em; }
.faq-answer > * + * { margin-top: 0.8em; }
.faq-answer ul, .faq-answer ol { padding-left: 1.3em; }
.faq details { scroll-margin-top: 24px; }
.prose .table-scroll { margin-top: 1.4em; }
.prose table { font-size: 16px; min-width: 560px; }

@media print {
  .site-head, .site-foot, .cta, .page-head, .skip { display: none !important; }
  body { background: #fff; }
  .section { padding: 0; border: 0; }
  .sheet, .cover { break-inside: avoid; }
  .sheet { border: 0; padding: 24px 0; }
}

/* Popups */
.popup { border: 1px solid var(--ink); border-radius: 2px; padding: 0; width: min(580px, calc(100% - 32px)); background: var(--surface); color: var(--ink); box-shadow: 10px 10px 0 var(--accent); }
.popup::backdrop { background: rgba(12, 26, 42, 0.72); }
.popup-body { padding: 36px 32px; display: flex; flex-direction: column; gap: 18px; }
.popup h2 { font-size: 30px; }
.popup p { color: var(--body); }
.popup-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 10px 24px; }

/* Document layout with an "On this page" column on the right */
.doc { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 64px; align-items: start; }
.doc-main { min-width: 0; }
.toc { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; background: var(--surface); border: 1px solid var(--ink); border-radius: 2px; padding: 20px 20px 16px; }
.toc-title { display: block; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.toc a { display: block; padding: 8px 10px; font-size: 15px; line-height: 1.35; color: var(--body); text-decoration: none; border-radius: 2px; }
.toc a:hover { color: var(--ink); background: var(--ground); }
.toc a[aria-current="true"] { background: var(--ink); color: #fff; font-weight: 600; }
.toc-sub a { padding-left: 24px; font-size: 14px; }
.prose h2[id], .prose h3[id], .doc-main h2[id] { scroll-margin-top: 24px; }
@media (max-width: 960px) {
  .doc { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .toc { position: static; max-height: none; order: -1; }
}

/* Glossary index: terms grouped by letter */
.glossary-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 40px 32px; }
.glossary-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 16px; }
a.glossary-letter { text-decoration: none; margin-bottom: 0; }
a.glossary-letter:hover { background: var(--ink); color: #fff; }

/* SEO and editorial navigation; keep complete diagrams visible. */
.breadcrumbs { padding-top: 20px; font-size: 13px; color: var(--muted); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 12px; color: var(--muted); }
.breadcrumbs a { color: var(--body); text-underline-offset: 3px; }
.breadcrumbs [aria-current] { overflow-wrap: anywhere; }
.post-thumb, .post-hero { background: var(--ground); }
.post-thumb img { object-fit: contain; }
.post-hero { aspect-ratio: auto; max-height: none; }
.post-hero img { height: auto; object-fit: contain; }
.prose pre code { font-family: ui-monospace, Consolas, monospace; }
.prose a { text-underline-offset: 3px; overflow-wrap: anywhere; }
.post-meta a { color: inherit; }
.doc-main { min-width: 0; }
@media (max-width: 600px) { .breadcrumbs { padding-top: 14px; } .post-hero { box-shadow: 5px 5px 0 var(--accent); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
