/* Gazet · white paper, black serif masthead, double rules, burgundy accent (from the PDF design). Mobile first. */
@font-face { font-family: "Suez"; src: url("/assets/fonts/SuezOne-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Frank"; src: url("/assets/fonts/FrankRuhlLibre-VF.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "David"; src: url("/assets/fonts/DavidLibre-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "David"; src: url("/assets/fonts/DavidLibre-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root { color-scheme: light;
  --ink: #151515; --muted: #4f4f4f; --rule: #151515; --paper: #fff; --accent: #7a1414; --soft: #f6f3ee; --hair: #c9c2b2; --grid: #c9c2b2;
  --card: #fff; --sub-ink: #2b2b2b; --link-deco: #8a8a8a; --band: #151515; --on-band: #fff; --band-hover: #333;
  --btn-bg: #151515; --btn-fg: #fff; --on-accent: #fff; --upd-bg: #7a1414;
  --serif: "Frank", "David", "Times New Roman", serif; --body: "David", "Frank", "Times New Roman", serif; --display: "Suez", "Frank", serif; }
* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 1.125rem; line-height: 1.6; }
a { color: inherit; text-decoration-color: var(--link-deco); text-underline-offset: 3px; }
a:hover { color: var(--accent); text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--btn-bg); color: var(--btn-fg); padding: 8px 14px; z-index: 10; }
.skip:focus { top: 8px; }
main:focus { outline: none; }
bdi, .ltr { unicode-bidi: isolate; }
.ltr { white-space: nowrap; }

.paper { max-width: 1120px; margin: 0 auto; padding: 10px 12px 24px; }

/* ---- masthead: boxed double frame ---- */
.masthead { border: 3px solid var(--ink); outline: 1px solid var(--ink); outline-offset: 3px; margin: 4px 4px 0; padding: 6px 8px 8px; text-align: center; }
.ears { display: flex; justify-content: space-between; gap: 6px; font-family: var(--serif); font-weight: 800; font-size: .72rem; line-height: 1.2; }
.ears span { border: 1.5px solid var(--ink); padding: 2px 6px; }
.brand { font-family: var(--display); font-size: clamp(3.6rem, 21vw, 7.5rem); line-height: .95; margin: 4px 0 2px; letter-spacing: -.01em; }
.brand a { text-decoration: none; color: var(--ink); }
.subtitle { font-family: var(--serif); font-weight: 800; font-size: clamp(.95rem, 4.2vw, 1.35rem); margin: 0; line-height: 1.3; }
.subtitle span { font-size: .7em; letter-spacing: .15em; }

/* ---- black band nav ---- */
.nav { background: var(--band); margin: 10px 0 0; }
.nav ul { list-style: none; margin: 0; padding: 0 4px; display: flex; flex-wrap: wrap; justify-content: center; }
.nav a { display: block; color: var(--on-band); text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 1rem; padding: 9px 11px; min-height: 44px; }
.nav a[aria-current="page"] { box-shadow: inset 0 -4px 0 var(--on-band); }
.nav a:hover { color: var(--on-band); background: var(--band-hover); }
.nav a:focus-visible { outline-color: var(--on-band); outline-offset: -3px; }
/* light/dark switch: shown only when theme.js runs (the button ships with the hidden attribute) */
.theme-toggle { display: block; margin: 0 auto; padding: 6px 14px; min-height: 36px; background: transparent; color: var(--on-band); border: 0; border-top: 1px solid var(--band-hover);
  width: 100%; font-family: var(--serif); font-weight: 700; font-size: .85rem; cursor: pointer; }
.theme-toggle[hidden] { display: none; }
.theme-toggle:hover { background: var(--band-hover); }
.theme-toggle:focus-visible { outline: 2px solid var(--on-band); outline-offset: -3px; }

.disc-short { margin: 0 0 14px; border-bottom: 3px double var(--rule); padding: 6px 2px; text-align: center; font-family: var(--serif); font-weight: 700; font-size: .78rem; line-height: 1.45; }
.disc-short a { text-decoration: none; }
.disc-short span { color: var(--accent); }

/* ---- dateline ---- */
.dateline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; font-family: var(--serif); font-weight: 700; font-size: .82rem;
  border-bottom: 1px solid var(--rule); padding: 2px 0 6px; margin-bottom: 18px; }
.pdf-mini { flex-basis: 100%; text-align: center; font-weight: 800; color: var(--accent); text-decoration: none; border: 1.5px solid var(--accent); padding: 5px 10px; min-height: 36px; }
.pdf-mini:hover { background: var(--accent); color: var(--on-accent); }

/* ---- stories ---- */
.kicker { font-family: var(--serif); font-weight: 800; font-size: .86rem; color: var(--accent); margin: 0 0 4px; letter-spacing: .01em; }
.hed { font-family: var(--serif); font-weight: 900; line-height: 1.14; margin: 0 0 8px; text-wrap: balance; }
.hed a { text-decoration: none; }
.hed a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.sub { font-family: var(--serif); font-weight: 500; color: var(--sub-ink); line-height: 1.45; margin: 0 0 12px; text-wrap: pretty; }
.byline { font-size: .9rem; color: var(--muted); margin: -4px 0 10px; }
.body p { margin: 0 0 .8em; text-wrap: pretty; }
.todo { border-inline-start: 4px solid var(--accent); background: var(--soft); padding: 7px 12px; margin: 10px 0 8px; font-size: .98rem; line-height: 1.5; break-inside: avoid; }
.todo b { color: var(--accent); }
.src { font-size: .86rem; color: var(--muted); margin: 6px 0 0; }
.src a { color: var(--muted); }
.upd { display: inline-block; background: var(--upd-bg); color: var(--on-band); font-family: var(--serif); font-size: .74rem; font-weight: 800; padding: 1px 7px; border-radius: 2px; vertical-align: 2px; }

/* lead */
.lead .art-head { text-align: center; border-bottom: 1px solid var(--rule); margin-bottom: 14px; }
.lead .hed { font-size: clamp(2rem, 8.4vw, 3.3rem); line-height: 1.08; }
.lead .sub { font-size: clamp(1.1rem, 4.4vw, 1.3rem); max-width: 44rem; margin-inline: auto; }
.lead .body { font-size: 1.16rem; line-height: 1.68; }
.lead .body > p:first-child::first-letter { font-family: var(--serif); font-weight: 900; float: right; font-size: 3.9em; line-height: .82; margin: 6px 0 0 8px; color: var(--ink); }

/* front: lead + side column */
.front { display: grid; gap: 22px; }
.front-side { border-top: 3px double var(--rule); padding-top: 6px; }
.side-head { font-family: var(--serif); font-weight: 900; font-size: 1.2rem; margin: 0 0 6px; border-bottom: 1px solid var(--rule); padding-bottom: 3px; }
.inside { margin: 0 0 16px; padding-inline-start: 1.4em; font-family: var(--serif); font-weight: 600; line-height: 1.35; }
.inside li { margin-bottom: 8px; }
.inside li::marker { color: var(--accent); font-weight: 800; }
.inside a { text-decoration: none; }
.inside a:hover { text-decoration: underline; }

/* in-edition box, above the lead: compact on-page jump list */
.edtoc { margin: 0 0 16px; padding: 6px 10px 8px; border-top: 3px double var(--rule); border-bottom: 1px solid var(--rule); background: var(--soft); }
.edtoc h2 { font-family: var(--serif); font-weight: 900; font-size: .9rem; line-height: 1.2; margin: 0 0 4px; letter-spacing: .06em; }
.edtoc ol { margin: 0; padding-inline-start: 1.35em; font-family: var(--serif); font-weight: 600; font-size: .95rem; line-height: 1.3; }
.edtoc li { margin: 0; padding: 3px 0; break-inside: avoid; }
.edtoc a { text-decoration: none; }
.edtoc a:hover { text-decoration: underline; color: var(--accent); }
.edtoc .toc-kev { margin-top: 1px; padding-top: 4px; }

/* sections */
.sec { margin-top: 30px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; border-top: 4px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding: 4px 0 3px; margin-bottom: 14px; }
.sec-head h2 { font-family: var(--serif); font-weight: 900; font-size: 1.55rem; line-height: 1.15; margin: 0; }
.runner { font-size: .75rem; color: var(--muted); font-family: var(--serif); font-weight: 700; white-space: nowrap; }
.intro { color: var(--muted); font-style: italic; }
.story { padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--hair); }
.story .hed { font-size: 1.42rem; }
.story .sub { font-size: 1.04rem; }
.cols > .story:last-child { border-bottom: 0; }

.briefs { background: var(--soft); border-top: 3px solid var(--ink); padding: 8px 14px 6px; margin: 6px 0 0; }
.briefs-title { font-family: var(--serif); font-weight: 900; font-size: 1.15rem; margin: 0 0 6px; }
.briefs ul { margin: 0; padding: 0; list-style: none; }
.briefs li { margin: 0 0 9px; padding-bottom: 9px; border-bottom: 1px solid var(--hair); font-size: 1rem; line-height: 1.5; break-inside: avoid; }
.briefs li:last-child { border-bottom: 0; }
.bsrc { font-size: .85rem; color: var(--muted); }

.tablewrap { overflow-x: auto; margin: 8px 0 14px; border-top: 3px double var(--rule); }
table.vulns { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .95rem; line-height: 1.4; }
.vulns th, .vulns td { border-bottom: 1px solid var(--grid); padding: 7px 8px; text-align: start; vertical-align: top; }
.vulns th { border-bottom: 2px solid var(--rule); font-family: var(--serif); font-weight: 900; white-space: nowrap; }
.vulns td b { color: var(--accent); }
.vulns td:first-child b { color: var(--ink); font-family: var(--serif); }
.tsrc { font-size: .82rem; color: var(--muted); }

/* feature blocks (Friday) */
.crosshead { font-family: var(--serif); font-weight: 900; font-size: 1.25rem; margin: 18px 0 6px; border-top: 1px solid var(--hair); padding-top: 6px; }
.box { background: var(--soft); border-top: 3px solid var(--accent); padding: 8px 12px; margin: 12px 0; break-inside: avoid; }
.box h5 { font-family: var(--serif); font-weight: 900; color: var(--accent); font-size: 1rem; margin: 0 0 6px; }
blockquote.pull { margin: 16px 10px; border-top: 2px solid var(--accent); border-bottom: 2px solid var(--accent); padding: 10px 0; text-align: center; }
blockquote.pull p { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; margin: 0 0 4px; }
blockquote.pull cite { font-style: normal; font-size: .85rem; color: var(--muted); }

/* single story page */
.crumbs { font-family: var(--serif); font-weight: 700; font-size: .9rem; color: var(--muted); margin: -6px 0 14px; }
.crumbs a { color: var(--muted); }
.single { max-width: 42rem; margin: 0 auto; }
.single .hed { font-size: clamp(1.9rem, 7.6vw, 2.8rem); line-height: 1.12; }
.single .sub { font-size: 1.2rem; border-bottom: 1px solid var(--rule); padding-bottom: 12px; }
.single .body { font-size: 1.18rem; line-height: 1.72; }
.single .body > p:first-child::first-letter { font-family: var(--serif); font-weight: 900; float: right; font-size: 3.6em; line-height: .82; margin: 6px 0 0 8px; }
.also { max-width: 42rem; margin: 0 auto; }

/* pdf card */
.pdf-card { display: flex; gap: 12px; align-items: center; border: 1.5px solid var(--ink); padding: 10px; margin: 18px auto 0; max-width: 42rem; background: var(--card); }
.pdf-card img { width: 84px; height: auto; border: 1px solid var(--hair); flex: none; }
.pdf-card .pc-t { font-family: var(--serif); font-weight: 800; margin: 0; line-height: 1.3; }
.pc-dark { display: none; margin: 6px 0 0; font-size: .82rem; color: var(--muted); }
.pdf-card .pc-m { font-size: .85rem; color: var(--muted); margin: 0 0 6px; }
.front-side .pdf-card { margin: 0; }
.btn { display: inline-block; text-align: center; font-family: var(--serif); font-weight: 800; font-size: 1rem; padding: 9px 14px; min-height: 44px;
  background: var(--btn-bg); color: var(--btn-fg); text-decoration: none; border: 2px solid var(--btn-bg); }
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* lists, heads */
.rule-head, .page-title { font-family: var(--serif); font-weight: 900; font-size: 1.45rem; line-height: 1.2; margin: 30px 0 10px;
  border-top: 3px double var(--rule); border-bottom: 1px solid var(--rule); padding: 5px 0 3px; }
.page-title { font-size: clamp(1.8rem, 7vw, 2.5rem); margin-top: 6px; border-top: 0; }
.archive { list-style: none; margin: 0; padding: 0; }
.archive li { border-bottom: 1px solid var(--hair); }
.archive a { display: block; padding: 12px 2px; text-decoration: none; }
.archive time { display: block; font-family: var(--serif); font-weight: 800; font-size: .85rem; color: var(--accent); }
.archive .a-title { display: block; font-family: var(--serif); font-weight: 900; font-size: 1.3rem; line-height: 1.25; margin: 2px 0 4px; }
.archive .a-sub { display: block; color: var(--sub-ink); font-size: 1rem; line-height: 1.45; }
.archive a:hover .a-title { color: var(--accent); }
.more { margin: 12px 0 0; font-family: var(--serif); font-weight: 800; }
.empty { color: var(--muted); font-style: italic; }
.prose { max-width: 42rem; margin-inline: auto; }
.prose p { margin: 0 0 .9em; }
.prose h2 { font-family: var(--serif); font-weight: 900; font-size: 1.3rem; margin: 24px 0 6px; border-bottom: 1px solid var(--rule); }
.corr-note { border: 2px solid var(--accent); padding: 8px 12px; margin: 16px 0; }
.corr-note h2 { font-family: var(--serif); font-size: 1.1rem; color: var(--accent); margin: 0 0 4px; }
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 26px auto 0; border-top: 3px double var(--rule); padding-top: 10px; font-family: var(--serif); font-weight: 800; max-width: 42rem; }
.prevnext a { text-decoration: none; min-width: 0; }
.prevnext a[rel="next"] { text-align: end; }
.prevnext a span { text-wrap: balance; }
.prevnext a span { display: block; font-weight: 600; font-size: .92rem; color: var(--muted); line-height: 1.3; }
.prevnext a:hover span { color: var(--accent); }

/* ---- colophon ---- */
.colophon { margin-top: 34px; border-top: 3px double var(--rule); padding-top: 8px; text-align: center; font-size: .85rem; color: var(--muted); line-height: 1.5; }
.colophon p { margin: 0 0 6px; }

/* ---- tablet / desktop: newspaper columns ---- */
@media (min-width: 760px) {
  .edtoc ol { columns: 2; column-gap: 28px; column-rule: 1px solid var(--hair); font-size: .98rem; }
  .paper { padding: 18px 26px 34px; }
  .masthead { padding: 8px 14px 12px; }
  .ears { font-size: .85rem; }
  .disc-short { font-size: .85rem; }
  .pdf-mini { flex-basis: auto; }
  .lead .body { columns: 2; column-gap: 32px; column-rule: 1px solid var(--hair); }
  .lead .todo, .lead .src { column-span: all; }
  .cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 0; align-items: start; }
  .cols > .story { padding-inline: 16px; border-bottom: 0; border-inline-start: 1px solid var(--hair); margin-bottom: 18px; }
  .cols > .story:nth-child(2n+1) { padding-inline-start: 0; border-inline-start: 0; }
  .cols > .story:nth-child(2n) { padding-inline-end: 0; }
  .cols.one { display: block; max-width: 46rem; }
  .cols.one > .story { padding: 0; border: 0; }
  .story .art-head { break-inside: avoid; }
  .briefs ul { columns: 2; column-gap: 28px; column-rule: 1px solid var(--hair); }
}
@media (min-width: 1040px) {
  .front { grid-template-columns: minmax(0, 1fr) 290px; gap: 0; }
  .front-main { padding-inline-end: 26px; border-inline-end: 1px solid var(--rule); }
  .front-side { padding-inline-start: 22px; border-top: 0; padding-top: 0; }
  .cols.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cols.three > .story { padding-inline: 16px; border-inline-start: 1px solid var(--hair); }
  .cols.three > .story:nth-child(3n+1) { padding-inline-start: 0; border-inline-start: 0; }
  .cols.three > .story:nth-child(3n) { padding-inline-end: 0; }
  .front-side .pdf-card { flex-direction: column; align-items: stretch; text-align: center; }
  .front-side .pdf-card img { width: 120px; margin: 0 auto; }
  .story .hed { font-size: 1.32rem; }
  .story .body { font-size: 1.04rem; line-height: 1.6; }
}
/* ---- dark mode: the same paper by lamplight. Warm ink-brown, parchment text, muted burgundy (AA on paper and boxes). ---- */
/* Light is the default for everyone. Dark is opt-in: assets/theme.js sets data-theme="dark" on <html> from the reader's saved choice. */
@media screen {
  :root[data-theme="dark"] { color-scheme: dark;
    --ink: #ebe1cc; --muted: #b8ab94; --rule: #d9ccb2; --paper: #1d1814; --accent: #c98478; --soft: #28211b; --hair: #4a3f34; --grid: #7d6d5b;
    --card: #221c17; --sub-ink: #d6cab3; --link-deco: #8f826d; --band: #120e0b; --on-band: #ebe1cc; --band-hover: #2e261f;
    --btn-bg: #ebe1cc; --btn-fg: #1d1814; --on-accent: #1d1814; --upd-bg: #8a2a22; }
  [data-theme="dark"] .nav { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
  [data-theme="dark"] .pdf-card img, [data-theme="dark"] .cover img { filter: brightness(.88) sepia(.12); }
  [data-theme="dark"] .cve { background: var(--soft); border-color: var(--hair); color: var(--ink); }
  [data-theme="dark"] .pc-dark { display: block; }
}

@media print { .nav, .skip, .pdf-card, .pdf-mini, .theme-toggle, .edtoc { display: none; } }

.cve { font-family: ui-monospace, "DejaVu Sans Mono", monospace; font-size: .78rem; background: var(--soft); border: 1px solid var(--hair); padding: 0 5px; unicode-bidi: isolate; white-space: nowrap; display: inline-block; margin: 1px 0; }
.cve:has(bdi) { white-space: normal; }
/* phone: compact head, so the KEV box reaches the first screen */
@media (max-width: 759px) {
  .edtoc { margin-bottom: 12px; padding: 5px 8px 6px; }
  .edtoc ol { font-size: .9rem; }
  .paper { padding-top: 6px; }
  .masthead { padding: 4px 6px 6px; }
  .brand { font-size: clamp(3rem, 15vw, 4.2rem); margin: 0 0 2px; }
  .subtitle { font-size: .95rem; }
  .nav { margin-top: 8px; }
  .nav a { padding: 8px 9px; min-height: 40px; font-size: .95rem; }
  .disc-short { font-size: .72rem; padding: 4px 2px; margin-bottom: 8px; }
  .dateline { margin-bottom: 10px; font-size: .78rem; }
  .pdf-mini { flex-basis: auto; padding: 2px 8px; min-height: 0; font-size: .78rem; }
  .lead .hed { font-size: 1.85rem; }
  .lead .sub { font-size: 1.05rem; margin-bottom: 8px; }
  .lead .art-head { margin-bottom: 10px; }
}
.story, .lead, .sec { scroll-margin-top: 10px; }
.cve bdi { white-space: nowrap; }

/* ---- vulnerabilities: last section, short table ---- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sec-kev { margin-top: 36px; }
.kevtable { border-collapse: collapse; width: 100%; font-size: .95rem; line-height: 1.4; }
.kevtable th, .kevtable td { text-align: start; vertical-align: top; padding: 7px 8px; border-bottom: 1px solid var(--grid); } /* table rules carry meaning: 3.5:1 on dark paper */
.kevtable thead th { font-family: var(--serif); font-weight: 900; border-bottom: 2px solid var(--rule); white-space: nowrap; }
.kevtable tbody th { font-family: var(--serif); font-weight: 800; width: 30%; }
.kevtable tbody th a { text-decoration: none; }
.kevtable tbody th a:hover { text-decoration: underline; color: var(--accent); }
.kevtable .c-cve { width: 22%; }
.kevtable .c-src { width: 14%; font-size: .85rem; color: var(--muted); }
.kevtable .c-src a { color: var(--muted); }
.dash { color: var(--muted); }
.kev-sub { font-family: var(--serif); font-weight: 900; font-size: 1.05rem; margin: 18px 0 8px; border-bottom: 1px solid var(--rule); }
.story.compact .hed { font-size: 1.15rem; }
.story.compact .sub { font-size: .98rem; }
.story.compact .body { font-size: .98rem; line-height: 1.55; }
.toc-kev a { color: var(--accent); }
/* phone: rows become stacked cards */
@media (max-width: 759px) {
  .sec-kev .tablewrap { overflow: visible; border-top: 0; }
  .kevtable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .kevtable, .kevtable tbody, .kevtable tr, .kevtable th, .kevtable td { display: block; width: auto; }
  .kevtable tr { border-top: 2px solid var(--rule); padding: 6px 0 4px; }
  .kevtable tbody th { width: auto; padding: 0 0 4px; border: 0; font-size: 1.05rem; }
  .kevtable td { border: 0; padding: 3px 0; display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 8px; align-items: baseline; width: auto; }
  .kevtable td::before { content: attr(data-h); font-family: var(--serif); font-weight: 800; color: var(--accent); font-size: .85rem; }
  .kevtable .c-cve, .kevtable .c-src { width: auto; }
}
