/* Threat Brief — console design system. Fonts self-hosted (SIL OFL): no third-party requests. */
@font-face { font-family: "Archivo"; src: url(fonts/archivo-wdth.woff2) format("woff2-variations");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(fonts/jetbrains-mono.woff2) format("woff2-variations");
  font-weight: 100 800; font-display: swap; }
:root {
  --base: #0B0F15;
  --panel: #121823;
  --panel-2: #18202D;
  --rule: #263042;
  --text: #E8ECF2;
  --muted: #93A0B4;
  --breach: #F0283C;      /* confirmed exploitation only */
  --breach-solid: #D41B2F; /* filled badges: white text passes WCAG AA (5.2:1) */
  --breach-text: #FF4D5E;  /* red text on dark tints (5.4:1) */
  --deadline: #FFB020;    /* KEV due dates, reported exploitation */
  --tooling: #2BC3B0;     /* repos and tooling */
  --info: #7C9BF7;
  --sev-high: #FF7A45;
  --sev-med: #E5C04A;
  --radius-s: 4px;
  --radius-m: 8px;
  --wide: "wdth" 118;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --measure: 72ch;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0; background: var(--base); color: var(--text);
  font: 400 1rem/1.6 var(--font); -webkit-font-smoothing: antialiased;
}
a { color: var(--text); text-decoration-color: var(--rule); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--breach); }
:focus-visible { outline: 2px solid var(--deadline); outline-offset: 2px; border-radius: 2px; }
.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--panel); padding: .5rem 1rem; z-index: 10; }

/* Top bar */
.bar { border-bottom: 1px solid var(--rule); background: rgba(11, 15, 21, .92); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(6px); }
.bar .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 60px; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.brand b { font-weight: 700; font-variation-settings: var(--wide); letter-spacing: .01em; font-size: 1.02rem; }
.brand span { color: var(--muted); font-size: .9rem; }
.nav { margin-left: auto; display: flex; gap: 1.25rem; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--muted); font-size: .95rem; padding: .25rem 0; border-bottom: 2px solid transparent; }
.nav a[aria-current="page"], .nav a:hover { color: var(--text); border-bottom-color: var(--breach); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2.5rem; padding: 3rem 0 2.25rem; border-bottom: 1px solid var(--rule); }
.hero-item { display: grid; grid-template-columns: 6px 1fr; gap: 1.5rem; }
.rail { border-radius: 3px; background: var(--muted); }
.rail.EXPLOITED_CONFIRMED { background: var(--breach); box-shadow: 0 0 24px rgba(240, 40, 60, .45); }
.rail.EXPLOITED_REPORTED { background: var(--deadline); }
.rail.POC_PUBLIC { background: var(--sev-high); }
.rail.N\/A { background: var(--tooling); }
.hero-date { color: var(--muted); font-size: .95rem; margin: 0 0 .75rem; }
.hero h1 {
  margin: 0 0 1rem; font-weight: 800; font-variation-settings: var(--wide);
  font-size: clamp(1.9rem, 4.2vw, 3.3rem); line-height: 1.04; letter-spacing: -.01em; max-width: 22ch;
}
.hero h1.long { font-size: clamp(1.6rem, 3vw, 2.4rem); max-width: 30ch; line-height: 1.1; }
.hero .summary { color: #C9D1DD; font-size: 1.08rem; max-width: 60ch; margin: 0 0 1.25rem; }
.deadline {
  display: inline-flex; align-items: baseline; gap: .6rem; padding: .55rem .9rem; border: 1px solid var(--deadline);
  border-radius: var(--radius-s); color: var(--deadline); font-weight: 600;
}
.deadline strong { font-size: 1.5rem; font-variation-settings: var(--wide); }

.side { border-left: 1px solid var(--rule); padding-left: 2rem; display: flex; flex-direction: column; gap: 1.5rem; }
.pulse-text { margin: 0; color: var(--text); font-size: 1.02rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin: 0; }
.stats div { background: var(--panel); border-radius: var(--radius-s); padding: .7rem .75rem; }
.stats dt { color: var(--muted); font-size: .78rem; line-height: 1.3; }
.stats dd { margin: .2rem 0 0; font-size: 1.6rem; font-weight: 700; font-variation-settings: var(--wide); }
.stats .hot dd { color: var(--breach); }

/* Hourly pulse strip — the signature element */
.strip { padding: 1.4rem 0 1.6rem; border-bottom: 1px solid var(--rule); }
.strip-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .7rem; }
.strip-head h2 { margin: 0; font-size: 1rem; font-weight: 600; }
.strip-head p { margin: 0; color: var(--muted); font-size: .88rem; }
.cells { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; }
.cell { height: 34px; border-radius: 2px; background: var(--panel); position: relative; }
.cell[data-n="1"] { background: #3A2430; }
.cell[data-n="2"] { background: #6B2533; }
.cell[data-n="3"] { background: #A0263A; }
.cell[data-n="4"] { background: var(--breach); }
.cell.kev::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--deadline); }
.cell-scale { display: flex; justify-content: space-between; color: var(--muted); font-size: .75rem; margin-top: .35rem; }

/* Sections */
section.block { padding: 2.25rem 0; }
.block > h2, .page-head h1 { font-variation-settings: var(--wide); font-weight: 700; margin: 0 0 .35rem; }
.block > h2 { font-size: 1.45rem; }
.lede { color: var(--muted); margin: 0 0 1.5rem; max-width: var(--measure); }

/* Brief entries: rows, not cards */
.entries { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.entry { display: grid; grid-template-columns: 4px 2.5rem minmax(0, 1fr); gap: 0 1rem; border-bottom: 1px solid var(--rule); }
.entry .rail { margin: 1.1rem 0; }
.rank { padding-top: 1.05rem; color: var(--muted); font-weight: 700; font-variation-settings: var(--wide); font-size: 1.15rem; }
.entry details { padding: 1rem 0; }
.entry summary { cursor: pointer; list-style: none; }
.entry summary::-webkit-details-marker { display: none; }
.entry h3 { margin: 0 0 .45rem; font-size: 1.12rem; line-height: 1.35; font-weight: 650; max-width: 70ch; }
.entry summary:hover h3 { text-decoration: underline; text-decoration-color: var(--breach); text-underline-offset: 4px; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.tag { font-size: .8rem; padding: .12rem .5rem; border-radius: var(--radius-s); background: var(--panel-2); color: var(--muted); }
.tag.sev-CRITICAL { color: var(--breach-text); background: rgba(240, 40, 60, .12); }
.tag.sev-HIGH { color: var(--sev-high); background: rgba(255, 122, 69, .12); }
.tag.sev-MEDIUM { color: var(--sev-med); background: rgba(229, 192, 74, .1); }
.tag.x-EXPLOITED_CONFIRMED { color: #fff; background: var(--breach-solid); font-weight: 600; }
.tag.x-EXPLOITED_REPORTED { color: var(--deadline); background: rgba(255, 176, 32, .12); }
.tag.x-N\/A, .tag.cat-GITHUB_REPO { color: var(--tooling); background: rgba(43, 195, 176, .1); }
.tag.due { color: var(--deadline); background: transparent; border: 1px solid rgba(255, 176, 32, .5); }
.tag.stack { color: var(--info); background: rgba(124, 155, 247, .12); }
.tag.epss, .tag.ssvc { color: var(--sev-high); background: rgba(255, 122, 69, .1); }
.tag.vck { color: var(--deadline); background: rgba(255, 176, 32, .12); }
.detail .risk { font-variant-numeric: tabular-nums; }
.detail { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: .5rem 1.25rem; margin: 1rem 0 .25rem; max-width: 820px; }
.detail dt { color: var(--muted); font-size: .9rem; }
.detail dd { margin: 0; }
code, .id { font-family: var(--mono); font-size: .88em; color: #D5DCE7; }
.ids { display: flex; flex-wrap: wrap; gap: .35rem .9rem; }
.report { font-size: .85rem; color: var(--muted); }

/* Watch table */
.filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.filters button {
  font: inherit; font-size: .88rem; color: var(--muted); background: var(--panel); border: 1px solid var(--rule);
  border-radius: 999px; padding: .3rem .85rem; cursor: pointer;
}
.filters button[aria-pressed="true"] { color: var(--text); border-color: var(--breach); }
table.watch { width: 100%; border-collapse: collapse; font-size: .93rem; }
.watch th { text-align: left; font-weight: 600; color: var(--muted); font-size: .82rem; padding: .55rem .6rem; border-bottom: 1px solid var(--rule); }
.watch td { padding: .7rem .6rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.watch tr.kev td:first-child { box-shadow: inset 3px 0 0 var(--breach); }
.watch .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.watch td a { text-decoration: none; }
.watch td a:hover { text-decoration: underline; }
.kind { font-size: .78rem; font-weight: 600; padding: .1rem .45rem; border-radius: var(--radius-s); background: var(--panel-2); color: var(--muted); }
.kind.KEV { background: var(--breach-solid); color: #fff; }
.kind.GHSA { color: var(--tooling); }
.table-scroll { overflow-x: auto; }

/* Pages */
.page-head { padding: 2.75rem 0 1rem; }
.page-head h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.prose { max-width: var(--measure); }
.prose h2 { font-variation-settings: var(--wide); font-size: 1.2rem; margin: 2rem 0 .5rem; }
.archive { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); max-width: 820px; }
.archive li { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr) auto; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.archive time { color: var(--muted); font-variant-numeric: tabular-nums; }
.archive .count { color: var(--muted); font-size: .85rem; }

/* Profile */
.profile { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 3rem; padding: 2.75rem 0; }
.profile h1 { font-variation-settings: var(--wide); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1; margin: 0 0 .75rem; }
.profile .role { font-size: 1.2rem; color: #C9D1DD; margin: 0 0 1.25rem; }
.focus { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.focus li { border: 1px solid var(--rule); border-radius: var(--radius-s); padding: .3rem .7rem; font-size: .92rem; }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--rule); }
.timeline li { padding: 0 0 1.2rem 1.25rem; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: .45rem; width: 10px; height: 10px; border-radius: 50%; background: var(--rule); }
.timeline li:first-child::before { background: var(--breach); }
.timeline b { display: block; }
.timeline span { color: var(--muted); font-size: .92rem; }
.links { display: flex; gap: 1rem; margin-top: 1.5rem; }

/* Footer */
footer { border-top: 1px solid var(--rule); margin-top: 2rem; padding: 2rem 0 3rem; color: var(--muted); font-size: .88rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }
footer nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
footer a { color: var(--muted); }
.empty { padding: 2rem; border: 1px dashed var(--rule); border-radius: var(--radius-m); color: var(--muted); }

@media (max-width: 900px) {
  .hero, .profile { grid-template-columns: 1fr; }
  .side { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 1.5rem; }
  .detail { grid-template-columns: 1fr; gap: .15rem; }
  .detail dd { margin-bottom: .6rem; }
  .archive li { grid-template-columns: 1fr; gap: .2rem; }
  .bar .wrap { flex-wrap: wrap; padding: .6rem 0 0; gap: .25rem; }
  .nav { margin-left: 0; width: 100%; flex-wrap: nowrap; overflow-x: auto; gap: 1.1rem; padding-bottom: .35rem; scrollbar-width: none; }
  .nav a { white-space: nowrap; }
  .cells { gap: 2px; }
}
@media (prefers-reduced-motion: no-preference) {
  .rail.EXPLOITED_CONFIRMED.live { animation: beat 2.4s ease-in-out 3; }
  @keyframes beat { 50% { box-shadow: 0 0 4px rgba(240, 40, 60, .2); } }
}

/* Utilities (no inline styles: CSP forbids them) */
a.plain { text-decoration: none; }
a.plain:hover { text-decoration: underline; text-decoration-color: var(--breach); }
.mt { margin-top: 1.25rem; }
.mt-s { margin-top: .3rem; }
.profile h2.sub { font-size: 1.05rem; font-weight: 600; margin: 1.75rem 0 .75rem; }
.profile h2.sub.first { margin-top: 0; }

/* Profile landing */
.intro { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 3rem; padding: 3.5rem 0 3rem; border-bottom: 1px solid var(--rule); align-items: start; }
.intro h1 { font-variation-settings: "wdth" 125; font-weight: 800; font-size: clamp(2.6rem, 6.4vw, 5rem); line-height: .95; letter-spacing: -.015em; margin: 0 0 1rem; }
.intro .role { font-size: 1.2rem; color: #C9D1DD; margin: 0 0 1.25rem; max-width: 46ch; }
.intro .lead { max-width: 60ch; margin: 0; }
.links { list-style: none; padding: 0; margin: 1.75rem 0 0; display: flex; gap: 1.25rem; flex-wrap: wrap; }
.live { background: var(--panel); border-radius: var(--radius-m); padding: 1.4rem 1.4rem 1.2rem; border: 1px solid var(--rule); }
.live h2 { font-size: .95rem; font-weight: 600; margin: 0 0 1.1rem; display: flex; align-items: center; gap: .55rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--breach); box-shadow: 0 0 0 4px rgba(240, 40, 60, .18); }
.live-top { display: grid; grid-template-columns: 4px 1fr; gap: 1rem; margin-bottom: 1.25rem; }
.live-date { color: var(--muted); font-size: .85rem; margin: 0 0 .35rem; }
.live-head { font-weight: 700; font-size: 1.15rem; line-height: 1.3; margin: 0 0 .7rem; font-variation-settings: "wdth" 108; }
.cells.mini .cell { height: 22px; }
.cells.mini .cell[data-n="0"] { background: var(--base); box-shadow: inset 0 0 0 1px var(--rule); }
.live-foot { color: var(--muted); font-size: .85rem; margin: .7rem 0 0; }
.quiet { color: var(--muted); max-width: var(--measure); margin: -0.75rem 0 1.5rem; padding-left: .75rem; border-left: 2px solid var(--rule); }
.quiet time { color: var(--text); }
.quiet .stale-note { display: none; }
.quiet.stale { border-left-color: var(--deadline); }
.quiet.stale .stale-note { display: inline; color: var(--text); }
.live-foot a { color: var(--text); }
section.two { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 2rem; border-bottom: 1px solid var(--rule); padding: 2.5rem 0; }
section.two > h2 { font-size: 1.15rem; margin: .15rem 0 0; }
.niches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 2.5rem; margin: 0; }
.niches dt { font-weight: 650; margin-bottom: .3rem; }
.niches dt::before { content: ""; display: inline-block; width: 10px; height: 2px; background: var(--breach); margin-right: .55rem; vertical-align: middle; }
.niches dd { margin: 0; color: #B8C2D1; font-size: .96rem; }
.stats.wide { margin-top: 1.25rem; max-width: 640px; }
.exp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; }
h3.sub { font-size: 1rem; font-weight: 600; margin: 0 0 .75rem; }
h3.sub + ul + h3.sub, .focus + h3.sub { margin-top: 1.5rem; }
.plainlist { list-style: none; padding: 0; margin: 0; }
.plainlist li { padding: .25rem 0; }
.muted { color: var(--muted); }
.kind.tier-authority { background: var(--breach-solid); color: #fff; }
.kind.tier-vendor { color: var(--deadline); }
.kind.tier-research { color: var(--info); }
.kind.tier-data { color: var(--tooling); }
table.sources { margin: .5rem 0 2rem; }
@media (max-width: 900px) {
  .intro, section.two, .exp { grid-template-columns: 1fr; }
  .niches { grid-template-columns: 1fr; }
}

.creds { list-style: none; padding: 0; margin: 0 0 .5rem; }
.creds li { padding: .55rem 0 .55rem .9rem; border-left: 2px solid var(--rule); margin-bottom: .45rem; }
.creds li b { display: block; font-weight: 600; line-height: 1.35; }
.creds li span { color: var(--muted); font-size: .88rem; }
h3.sub + .creds + h3.sub { margin-top: 1.4rem; }

.fixlist { margin: 0; padding-left: 1.1rem; }
.fixlist li { margin: .15rem 0; }
.wfix { margin-top: .45rem; font-size: .9rem; max-width: 62ch; }
.wfix summary { cursor: pointer; color: var(--tooling); width: max-content; }
.wfix p { margin: .4rem 0; }

/* Expert Zone */
.series-nav { margin: 0 0 1.25rem; font-size: .92rem; }
.note { max-width: 860px; }
.note .page-head h1 { max-width: 30ch; }
.note-teaser { font-weight: 700; font-size: 1.2rem; line-height: 1.3; margin: .2rem 0 .6rem; font-variation-settings: "wdth" 108; max-width: 50ch; }
.claims { margin: 1.5rem 0 2rem; }
.claims h2, .note-sources h2 { font-size: 1.05rem; font-weight: 600; margin: 0 0 .75rem; }
.claims ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.claim { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: .1rem 1rem; padding: .7rem 0; border-bottom: 1px solid var(--rule); }
.claim .state { grid-row: span 2; font-size: .8rem; font-weight: 600; padding: .15rem .5rem; border-radius: var(--radius-s); align-self: start; width: max-content; }
.claim.confirmed .state { background: rgba(43, 195, 176, .14); color: var(--tooling); }
.claim.reported .state { background: rgba(255, 176, 32, .14); color: var(--deadline); }
.claim.refuted .state { background: var(--panel-2); color: var(--muted); }
.claim .muted { font-size: .9rem; }
.note-body { max-width: 72ch; }
.note-body h2 { font-variation-settings: var(--wide); font-size: 1.3rem; margin: 2.25rem 0 .6rem; }
.note-body table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 1rem 0 1.25rem; }
.note-body .scroll { margin: 1rem 0 1.25rem; }
.note-body th { text-align: left; color: var(--muted); font-weight: 600; font-size: .84rem; border-bottom: 1px solid var(--rule); padding: .5rem .6rem; }
.note-body td { border-bottom: 1px solid var(--rule); padding: .55rem .6rem; vertical-align: top; }
.note-body pre { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius-m); padding: 1rem; overflow-x: auto; font-size: .84rem; line-height: 1.5; }
.note-body code { background: var(--panel-2); padding: .05rem .3rem; border-radius: 3px; }
.note-body pre code { background: none; padding: 0; }
.note-body li { margin: .3rem 0; }
.note-sources { margin-top: 2.5rem; max-width: 72ch; }
.note-sources li { margin: .35rem 0; }
.takeaways { margin-top: 2rem; max-width: 72ch; padding: 1rem 1.25rem; border-left: 4px solid var(--accent, #1f3a5f); background: var(--panel, #f4f6f9); overflow-wrap: anywhere; }
.takeaways li { margin: .35rem 0; }
.takeaways .takeaway-q { margin: .75rem 0 0; }
@media (max-width: 900px) { .claim { grid-template-columns: 1fr; } .claim .state { grid-row: auto; } }

.page-head h1 { line-height: 1.12; }

/* ---- Profile: frameworks, publications, review, impact ---- */
.frameworks { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.fw { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1.25rem; padding: 1.1rem 1.2rem;
      background: var(--panel); border-radius: var(--radius-m); }
.fw-short { margin: 0; font-size: 2rem; font-weight: 800; line-height: 1; letter-spacing: -.01em;
            font-variation-settings: var(--wide); color: var(--text); }
.fw-name { margin: 0 0 .3rem; font-size: 1.05rem; font-weight: 650; }
.fw-sum { margin: 0 0 .8rem; color: #B8C2D1; font-size: .96rem; max-width: var(--measure); }
.stages { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .35rem 0; counter-reset: st; }
.stages li { counter-increment: st; position: relative; padding: .28rem .7rem .28rem .6rem; font-size: .84rem;
             background: var(--panel-2); border: 1px solid var(--rule); border-radius: var(--radius-s); margin-right: 1.05rem; }
.stages li::before { content: counter(st); color: var(--breach); font-family: var(--mono); font-size: .74rem; margin-right: .45rem; }
.stages li:not(:last-child)::after { content: ""; position: absolute; right: -1.05rem; top: 50%; width: 1.05rem; height: 1px; background: var(--rule); }
.pubs, .service { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.pubs li, .service li { padding: .15rem 0 .15rem 1rem; border-left: 2px solid var(--rule); }
.pub-title, .svc-event { margin: 0; font-weight: 600; line-height: 1.4; }
.pub-meta, .svc-detail { margin: .2rem 0 0; color: var(--muted); font-size: .9rem; max-width: var(--measure); }
.pub-status { display: inline-block; font-size: .76rem; padding: .05rem .45rem; border-radius: var(--radius-s);
              border: 1px solid var(--rule); color: var(--text); margin-right: .35rem; }
.pub-status.s-published { border-color: var(--tooling); color: var(--tooling); }
.svc-role { margin: 0 0 .1rem; font-size: .84rem; color: var(--deadline); font-weight: 600; }
.svc-detail { color: #B8C2D1; }
.impact { display: grid; gap: .6rem; margin: 0; }
.impact div { background: var(--panel); border-radius: var(--radius-s); padding: .65rem .8rem; }
.impact dd { margin: 0; font-size: 1.45rem; font-weight: 700; font-variation-settings: var(--wide); order: -1; }
.impact div { display: flex; flex-direction: column; }
.impact dt { color: var(--muted); font-size: .86rem; }
/* Preview-only draft marking */
.preview-banner { background: rgba(255,176,32,.12); border: 1px solid var(--deadline); color: var(--text);
                  border-radius: var(--radius-s); padding: .6rem .9rem; margin: 0 0 1.5rem; font-size: .92rem; }
.draft { outline: 1px dashed var(--deadline); outline-offset: 4px; }
.confirm-chip { display: inline-block; margin-top: .35rem; font-size: .72rem; color: var(--deadline);
                border: 1px solid var(--deadline); border-radius: var(--radius-s); padding: 0 .4rem; }
@media (max-width: 700px) {
  .fw { grid-template-columns: 1fr; gap: .4rem; }
  .fw-short { font-size: 1.5rem; }
}
.creds .confirm-chip, .impact .confirm-chip { display: table; align-self: flex-start; margin-top: .35rem; }
.stages.dims li { margin-right: .4rem; }
.stages.dims li::before, .stages.dims li::after { content: none; }
.fw-paper { margin: .7rem 0 0; font-size: .88rem; }
.earlier { font-size: .88rem; margin: .2rem 0 1rem; color: #B8C2D1; }

/* Portrait beside the name */
.id-row { display: flex; align-items: center; gap: 1.6rem; margin-bottom: 1.1rem; }
.id-row h1 { margin: 0; }
.portrait { flex: 0 0 auto; }
.portrait img { display: block; width: 136px; height: 136px; border-radius: 50%; object-fit: cover;
                border: 2px solid var(--rule); box-shadow: 0 0 0 4px var(--base), 0 0 0 5px rgba(240,40,60,.55); }
@media (max-width: 700px) {
  .id-row { gap: 1rem; }
  .portrait img { width: 88px; height: 88px; }
}

/* Keyboard-scrollable regions (tables and code in notes) */
.scroll { overflow-x: auto; }
.scroll:focus-visible, pre:focus-visible { outline: 2px solid var(--info); outline-offset: 2px; }
/* Mobile nav: show that it scrolls */
@media (max-width: 900px) {
  .bar .wrap { position: relative; }
  .nav { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 2rem; }
}

.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Open to community work */
.niches.open { margin-top: 1.4rem; }
.niches.open dt::before { background: var(--tooling); }
.cta { margin: 1.6rem 0 0; }
.button { display: inline-block; padding: .65rem 1.1rem; border-radius: var(--radius-s); background: var(--text); color: var(--base);
          font-weight: 650; text-decoration: none; }
.button:hover { background: #fff; }
.button:focus-visible { outline: 2px solid var(--info); outline-offset: 3px; }
.open-note { margin: 1rem 0 .2rem; font-size: .95rem; }
.open-note a { color: var(--tooling); text-decoration-color: rgba(43,195,176,.45); }

.button.ghost { background: transparent; color: var(--text); border: 1px solid var(--rule); margin-left: .5rem; }
.button.ghost:hover { border-color: var(--text); background: transparent; }

/* Share row */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 1.25rem 0 2rem; }
.share-label { color: var(--muted); font-size: .9rem; margin-right: .25rem; }
.share-btn { font: inherit; font-size: .9rem; color: var(--text); background: var(--panel); border: 1px solid var(--rule);
  border-radius: var(--radius-s); padding: .35rem .75rem; text-decoration: none; cursor: pointer; line-height: 1.4; }
.share-btn:hover { border-color: var(--muted); }
.share-btn:focus-visible { outline: 2px solid var(--info); outline-offset: 2px; }
.share-status { color: var(--tooling); font-size: .9rem; }
/* Feeds page */
.feeds { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: .5rem; }
.feeds li { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius-s); padding: .6rem .8rem; }
.feeds .count { color: var(--muted); font-size: .85rem; display: block; }

/* CVE timeline */
.cve-facts { display: grid; gap: .5rem 1.5rem; grid-template-columns: max-content 1fr; margin: 0 0 2rem; }
.cve-facts > div { display: contents; }
.cve-facts dt { color: var(--muted); }
.cve-facts dd { margin: 0; }
.cve-timeline { list-style: none; margin: 1rem 0; padding: 0 0 0 1.25rem; border-left: 2px solid var(--rule); }
.cve-timeline li { position: relative; padding: .45rem 0 .9rem .75rem; display: grid; grid-template-columns: 14rem 4rem 1fr; gap: .25rem 1rem; align-items: baseline; }
.cve-timeline li::before { content: ""; position: absolute; left: -1.25rem; top: .85rem; width: 12px; height: 12px; margin-left: -7px;
  border-radius: 50%; background: var(--base); border: 2px solid var(--muted); }
.cve-timeline .tl-kev_added::before { border-color: var(--breach); background: var(--breach); }
.cve-timeline .tl-poc_first_seen::before { border-color: var(--deadline); }
.cve-timeline .tl-detection_seen::before { border-color: var(--tooling); }
.tl-date { color: var(--text); }
.tl-day { color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .cve-timeline li { grid-template-columns: 1fr; gap: 0; } .tl-day { order: -1; } }
.detections { list-style: none; padding: 0; }
.detections li { padding: .3rem 0; }
.det-kind { display: inline-block; min-width: 4.5rem; color: var(--muted); font-size: .9rem; }

/* KEV trends */
.trend-facts { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); margin: 0 0 2rem; }
.trend-facts div { background: var(--panel); border-radius: 8px; padding: .9rem 1rem; }
.trend-facts dt { color: var(--muted); font-size: .85rem; }
.trend-facts dd { margin: .25rem 0 0; font-size: 1.6rem; font-weight: 700; }
.trend-facts dd .muted { font-size: .9rem; font-weight: 400; }
.trend-actions { max-width: var(--measure); padding-left: 1.1rem; }
.trend-actions li { margin: .35rem 0; }
.trend-split { display: grid; gap: 0 3rem; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); }
.bars { list-style: none; padding: 0; margin: .5rem 0 0; max-width: 46rem; }
.bars li { display: grid; grid-template-columns: minmax(9rem, 16rem) 1fr 2.5rem; gap: .75rem; align-items: center; padding: .3rem 0; }
.bar-label { font-size: .93rem; }
.hbar { height: .65rem; min-width: 2px; background: var(--info); border-radius: 2px; }
.hbar.w0 { width: 0%; }
.hbar.w1 { width: 5%; }
.hbar.w2 { width: 10%; }
.hbar.w3 { width: 15%; }
.hbar.w4 { width: 20%; }
.hbar.w5 { width: 25%; }
.hbar.w6 { width: 30%; }
.hbar.w7 { width: 35%; }
.hbar.w8 { width: 40%; }
.hbar.w9 { width: 45%; }
.hbar.w10 { width: 50%; }
.hbar.w11 { width: 55%; }
.hbar.w12 { width: 60%; }
.hbar.w13 { width: 65%; }
.hbar.w14 { width: 70%; }
.hbar.w15 { width: 75%; }
.hbar.w16 { width: 80%; }
.hbar.w17 { width: 85%; }
.hbar.w18 { width: 90%; }
.hbar.w19 { width: 95%; }
.hbar.w20 { width: 100%; }
.bar-n { font-variant-numeric: tabular-nums; text-align: right; }
.muted { color: var(--muted); }
/* Anatomy of a bug */
.anatomy-story { max-width: var(--measure); font-size: 1.08rem; }
.axis { margin: 1.25rem 0; max-width: 820px; }
.axis svg { width: 100%; height: auto; }
.axis-line { stroke: var(--rule); stroke-width: 3; }
.axis-pt circle { fill: var(--info); }
.axis-pt.k-kev_added circle, .axis-pt.k-kev_due circle { fill: var(--breach); }
.axis-pt.k-poc_first_seen circle { fill: var(--deadline); }
.axis-pt.k-detection_seen circle { fill: var(--tooling); }
.axis-pt text { fill: var(--text); font-size: 13px; }
.axis-pt .axis-day { fill: var(--muted); font-size: 11px; }
table.gaps { max-width: 820px; }

/* Affected resources (icons are our own drawings: static/affected.svg) */
.ico { width: 1.15em; height: 1.15em; flex: none; color: var(--info); }
.ico-inline { vertical-align: -0.2em; }
.affected { list-style: none; padding: 0; margin: .45rem 0 0; display: flex; flex-wrap: wrap; gap: .35rem .5rem; }
.aff { display: inline-flex; align-items: center; gap: .35rem; font-size: .86rem; padding: .15rem .55rem .15rem .4rem;
       border: 1px solid var(--rule); border-radius: 999px; color: var(--muted); }
.aff b { color: var(--text); font-weight: 600; }
.aff.c-ics .ico, .aff.c-network .ico, .aff.c-remote .ico { color: var(--deadline); }
.aff.c-ai .ico { color: var(--tooling); }
.cve-affects { margin: 0 0 1rem; }
.aff-filter { display: inline-flex; align-items: center; gap: .4rem; margin-left: .5rem; color: var(--muted); font-size: .93rem; }
.aff-filter select { background: var(--panel); color: var(--text); border: 1px solid var(--rule); border-radius: 999px;
                     padding: .35rem .8rem; font: inherit; }
dd .affected + .muted { display: block; margin-top: .3rem; }

/* Priority (Act / Attend / Track), ransomware badge, bottom line, my stack, ticket text */
.prio { display: inline-block; font-size: .8rem; font-weight: 600; padding: .12rem .5rem; border-radius: var(--radius-s); white-space: nowrap; }
.prio.p-act, .tag.prio.p-act { color: #fff; background: var(--breach-solid); }
.prio.p-attend, .tag.prio.p-attend { color: var(--deadline); background: rgba(255, 176, 32, .12); }
.prio.p-track, .tag.prio.p-track { color: var(--muted); background: var(--panel-2); font-weight: 500; }
.prio-why { color: var(--text); }
.tag.ransom { color: #fff; background: #7A1F9A; font-weight: 600; }
table.watch td .tag.ransom { display: inline-block; margin-top: .3rem; }
.cve-prio { margin: 0 0 1rem; max-width: var(--measure); }
.cve-prio .tag.ransom { margin-left: .3rem; }
.bottomline { border: 1px solid var(--rule); border-left: 3px solid var(--breach); border-radius: var(--radius-m);
  background: var(--panel); padding: 1rem 1.25rem; margin: 0 0 1.5rem; max-width: 80ch; }
.bottomline h2 { margin: 0 0 .5rem; font-size: 1.05rem; }
.bottomline ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.bottomline li { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: .75rem; }
.bottomline li > span { min-width: 0; overflow-wrap: anywhere; }
.bottomline b.p-act { color: var(--breach-text); }
.bottomline b.p-attend { color: var(--deadline); }
.bottomline .note { margin: .6rem 0 0; }
.mystack { border: 1px solid var(--rule); border-radius: var(--radius-m); background: var(--panel); padding: .6rem 1rem; margin: 0 0 1rem; }
.mystack summary { cursor: pointer; font-weight: 600; }
.mystack fieldset { border: 0; padding: 0; margin: .5rem 0; }
.mystack legend { color: var(--muted); font-size: .9rem; margin-bottom: .3rem; }
.mystack-cats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: .25rem .75rem; }
.mystack-words { display: grid; gap: .3rem; max-width: 34rem; color: var(--muted); font-size: .93rem; }
.mystack input[type="text"] { background: var(--base); color: var(--text); border: 1px solid var(--rule); border-radius: var(--radius-s); padding: .4rem .6rem; font: inherit; }
.mystack button, .ticket button { background: var(--panel-2); color: var(--text); border: 1px solid var(--rule); border-radius: 999px; padding: .3rem .9rem; font: inherit; cursor: pointer; }
.mystack button:hover, .ticket button:hover { border-color: var(--breach); }
.ms-status, .copied { color: var(--muted); margin-left: .5rem; font-size: .9rem; }
.filters button:disabled { opacity: .45; cursor: not-allowed; }
table.watch tbody tr.mine td:first-child { box-shadow: inset 3px 0 0 var(--info); }
.entry.mine { box-shadow: inset 3px 0 0 var(--info); }
.mine-badge { display: inline-block; margin: .3rem 0 0 .5rem; font-size: .75rem; color: var(--info); background: rgba(124, 155, 247, .12);
  padding: .1rem .45rem; border-radius: var(--radius-s); }
.ticket { margin: 1rem 0; }
.ticket summary { cursor: pointer; color: var(--muted); }
.ticket pre { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--base); border: 1px solid var(--rule); border-radius: var(--radius-s); padding: .75rem; font: .85rem/1.5 var(--mono); max-width: 90ch; }
.detections .attack { color: var(--muted); font-size: .9rem; margin-left: .4rem; }

/* Press (v4.8): opinion editorials */
.opinion-label { text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; font-weight: 700; }
.byline { margin: .2rem 0 .3rem; font-weight: 600; }
.opinion-note { font-size: .88rem; }
