
/* CIR — layout correction. Editorial content and diagnostic scripts are unchanged. */
:root {
  --bg: #fbfbfd;
  --surface: #f3f4f7;
  --border: #e4e6eb;
  --ink: #16181d;
  --muted: #5b616e;
  --accent: #2f4dc4;
  --accent-weak: #e7ecfb;
  --logo-badge: #16181d;
  --logo-glyph: #2f4dc4;
  --paper: #ffffff;
  --soft: #5b616e;
  --line: #e4e6eb;
  --blue: #2f4dc4;
  --blue-soft: #e7ecfb;
  --green: #0e7c7b;
  --green-soft: #edf8f3;
  --amber: #b25a2b;
  --amber-soft: #fff6e9;
  --navy: #16181d;
  --radius: 8px;
  --header-height: 56px;
  --nav-width: 272px;
  --sans: "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Code", monospace;
}
* { box-sizing: border-box; }
html { min-width: 280px; scroll-padding-top: 80px; overflow-x: hidden; }
body {
  margin: 0;
  min-width: 280px;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { color: inherit; cursor: pointer; border: 0; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button:focus-visible, a:focus-visible, input:focus-visible,
select:focus-visible, summary:focus-visible {
  outline: 3px solid #88aaf0;
  outline-offset: 3px;
}
[hidden] { display: none !important; }
.icon {
  display: inline-block;
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip {
  position: fixed;
  top: -90px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 3px 18px #12223f22;
}
.skip:focus { top: 10px; }

/* Application bar and persistent desktop navigation. */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header-height);
  padding: 0 24px;
  background: var(--bg);
  color: var(--ink);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  line-height: 0;
  text-decoration: none;
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; }
.brand .logo {
  height: 30px;
  width: auto;
  display: block;
}
.header-tagline {
  color: var(--muted);
  font: 500 0.82rem/1.2 var(--sans);
  white-space: nowrap;
}
.top-topic {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.top-topic .icon { width: 15px; height: 15px; }
.badge-proto {
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 12px;
  color: var(--ink);
  background: var(--surface);
  font: 600 12px/1 var(--sans);
  cursor: pointer;
  transition: all 0.12s ease;
  white-space: nowrap;
}
.badge-proto:hover {
  border-color: var(--accent);
  background: var(--accent-weak);
  color: var(--accent);
}
.app-shell {
  display: grid;
  grid-template-columns: var(--nav-width) minmax(0, 1fr);
  align-items: start;
  max-width: 1880px;
  min-height: calc(100vh - var(--header-height));
  margin: 0 auto;
}
.cir-nav {
  position: sticky;
  top: var(--header-height);
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--header-height));
  height: calc(100dvh - var(--header-height));
  min-height: 0;
  min-width: 0;
  border-right: 1px solid var(--line);
  padding: 20px 12px 14px;
  background: #fafbfe;
}
.cir-nav-head {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 8px;
  padding: 0 7px;
  margin-bottom: 14px;
}
.cir-nav-head > strong { font-size: 15px; letter-spacing: -.2px; }
.cir-nav-head > span {
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 5px;
  background: #edf1f8;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}
.cir-search {
  display: block;
  width: 100%;
  min-width: 0;
  height: 38px;
  flex-shrink: 0;
  border: 1px solid #d5ddea;
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 13px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
}
.cir-search::placeholder { color: var(--muted); }
.cir-list {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 5px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #c8d3e5 transparent;
}
.cir-item {
  position: relative;
  display: block;
  flex: 0 0 auto;
  min-width: 0;
  padding: 12px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--ink);
  transition: background .15s, border-color .15s;
}
.cir-item:hover { text-decoration: none; background: #f0f4fb; border-color: #e2e8f3; }
.cir-item.active { background: #eaf1ff; border-color: #cbdaf6; }
.cir-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--blue);
}
.cir-item-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 6px; }
.cir-item-id { color: var(--muted); font: 10px/1.4 ui-monospace, Consolas, monospace; white-space: nowrap; }
.cir-item-sev {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  border-radius: 4px;
  padding: 2px 5px;
  color: #825313;
  background: #fff0d4;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.5;
}
.cir-item-sev.high { background: #fae8e5; color: #a44737; }
.cir-item-sev.low { background: #e5f4ed; color: #147259; }
.cir-item-title { font-size: 12px; font-weight: 650; line-height: 1.5; overflow-wrap: anywhere; }
.cir-item.active .cir-item-title { color: #244fae; }
.cir-item-meta { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.cir-list:not(:has(.cir-item:not([hidden])))::after {
  content: "Aucun CIR ne correspond à la recherche.";
  display: block;
  padding: 18px 10px;
  color: var(--muted);
  font-size: 12px;
}
.nav-toggle, .nav-close, .nav-backdrop { display: none; }

/* Record header and four-cell summary. */
.main { width: 100%; min-width: 0; margin: 0; padding: 19px 24px 24px; }
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; min-width: 0; margin-bottom: 12px; color: var(--muted); font-size: 10px; }
.crumb .icon { width: 11px; height: 11px; }
.crumb .id { margin-left: auto; font: 10px/1.5 ui-monospace, Consolas, monospace; }
.head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 17px; }
.head-text { min-width: 0; flex: 1 1 auto; }
.head h1 { margin: 0 0 8px; font-size: clamp(23px, 1.75vw, 28px); font-weight: 730; line-height: 1.28; letter-spacing: -.6px; overflow-wrap: break-word; }
.head p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.head-actions { display: flex; align-items: stretch; flex-shrink: 0; gap: 7px; padding-top: 1px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  min-width: 0;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 11px;
  font-weight: 620;
  line-height: 1.4;
  text-align: center;
}
.btn:hover { background: #f6f9ff; border-color: #b5c6e1; text-decoration: none; }
.btn.primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn.primary:hover { background: #214dc0; }
.btn .icon { width: 14px; height: 14px; }
.link { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: none; color: var(--blue); font-size: 11px; font-weight: 600; }
.link:hover { text-decoration: underline; }
.link .icon { width: 13px; height: 13px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tag { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 4px 7px; border-radius: 5px; background: #edf0f5; color: #5b6b80; font-size: 10px; font-weight: 650; line-height: 1.35; }
.tag .icon { width: 12px; height: 12px; }
.tag.green { color: var(--green); background: var(--green-soft); }
.tag.blue { color: var(--blue); background: var(--blue-soft); }
.tag.amber { color: var(--amber); background: var(--amber-soft); }
.dot { flex: 0 0 auto; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.info-strip { display: grid; grid-template-columns: 1.15fr 1.15fr 1fr 1fr; min-width: 0; margin-bottom: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.metric { min-width: 0; padding: 13px 14px; overflow-wrap: break-word; }
.metric + .metric { border-left: 1px solid var(--line); }
.eyebrow { display: flex; align-items: center; gap: 5px; margin: 0 0 8px; color: var(--muted); font-size: 9px; font-weight: 700; line-height: 1.5; letter-spacing: .055em; text-transform: uppercase; }
.eyebrow .icon { width: 12px; height: 12px; }
.metric strong { font-size: 13px; font-weight: 660; line-height: 1.55; }
.metric p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.metric .subtle { font-size: 10px; color: var(--soft); }
.meter-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; }
.meter-header strong { color: var(--amber); }
.meter-help { display: grid; place-items: center; flex: 0 0 auto; width: 24px; height: 24px; margin-top: -2px; border-radius: 5px; background: none; color: var(--muted); }
.meter-help:hover { background: #f1f4f9; }
.meter-help .icon { width: 14px; height: 14px; }
.meter { position: relative; display: flex; gap: 3px; height: 6px; margin: 11px 0 7px; border-radius: 3px; }
.meter i { flex: 1; border-radius: 2px; background: #94c5af; }
.meter i:nth-child(2) { background: #d7bc72; }
.meter i:nth-child(3) { background: #d69b77; }
.meter i:nth-child(4) { background: #be8190; }
.meter::after { content: ""; position: absolute; top: -3px; left: clamp(0%, var(--position, 48%), 99%); width: 3px; height: 12px; border-radius: 2px; background: #233551; box-shadow: 0 0 0 2px #fff; }
.meter-range { display: flex; justify-content: space-between; color: var(--soft); font-size: 9px; }
.proof { display: inline; vertical-align: super; padding-left: 3px; font-size: 9px; line-height: 0; white-space: nowrap; }

/* Complete analysis stays in the main page; no clipping or inner article scroll. */
.grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; gap: 15px; min-width: 0; }
.left, .right { display: flex; flex-direction: column; gap: 15px; min-width: 0; }
.card { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 3px 10px #1b335803; overflow-wrap: break-word; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; min-width: 0; }
.card-heading h2 { display: flex; align-items: center; gap: 8px; min-width: 0; margin: 0; font-size: 14px; font-weight: 690; line-height: 1.45; letter-spacing: -.1px; }
.card-heading h2 .icon { width: 17px; height: 17px; color: #6b7d99; }
.lead { margin: 0 0 13px; font-size: 13px; line-height: 1.7; }
.source-quote { margin: 14px 0; padding: 11px 13px; border: 1px solid #e0e8f6; border-left: 3px solid #8ba8df; border-radius: 0 8px 8px 0; background: #f7f9fe; }
.source-quote blockquote { margin: 0; padding: 0; color: #415572; font-size: 12px; font-style: italic; line-height: 1.65; }
.source-quote footer { margin-top: 7px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.effect-line { display: flex; align-items: baseline; gap: 10px; padding: 9px 11px; margin-bottom: 12px; border-radius: 7px; background: #f0f5ff; font-size: 12px; line-height: 1.6; }
.effect-line > span { flex-shrink: 0; font-size: 11px; font-weight: 650; color: var(--blue); }
.effect-line p { min-width: 0; margin: 0; }
.scope-line { margin: 0; padding-top: 11px; border-top: 1px solid #edf0f6; color: var(--muted); font-size: 11px; line-height: 1.7; }
.scope-line strong { color: #425777; font-weight: 650; }
.analysis-card { border-color: #d9e2f5; }
.analysis-card .card-heading .icon { color: var(--blue); }
.ai-body { margin: 0 0 14px; font-size: 13px; line-height: 1.7; }
.analysis-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; min-width: 0; }
.analysis-point { min-width: 0; padding: 13px; border: 1px solid #e3e9f3; border-radius: 9px; background: #f8faff; }
.analysis-point > b { display: block; margin: 0 0 6px; color: #2b466c; font-size: 12px; line-height: 1.5; }
.analysis-point p { margin: 0; font-size: 12px; line-height: 1.7; }
.analysis-point:nth-child(n+3) { background: #fff; }
.inline-cites { margin: 14px 0 0; padding-top: 11px; border-top: 1px solid #edf0f6; color: var(--muted); font-size: 10px; line-height: 1.75; }
.solution { border-top: 3px solid var(--green); padding-top: 16px; }
.solution.behavior { border-top-color: var(--blue); }
.mastery-row { display: flex; align-items: flex-start; gap: 11px; min-width: 0; margin-bottom: 11px; }
.mastery-row > div { min-width: 0; flex: 1; }
.mastery-type, .method-badge { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; padding: 5px 8px; border: 1px solid #d8e4f9; border-radius: 6px; background: var(--blue-soft); color: #355b9b; font-size: 10px; font-weight: 750; line-height: 1.4; }
.mastery-title { font-size: 14px; font-weight: 650; line-height: 1.6; overflow-wrap: anywhere; }
.setting-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; color: var(--muted); font-size: 11px; }
.setting-value { padding: 3px 9px; border: 1px solid #c9d7f2; border-radius: 5px; background: #f0f5ff; color: #234dad; font-weight: 750; }
.solution p { margin: 0 0 11px; font-size: 12px; line-height: 1.7; }
.side-note { padding-top: 11px; border-top: 1px solid var(--line); }
.side-note p, .solution .side-note p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.solution .solution-action { width: 100%; margin: 13px 0 0; }
.tool-group + .tool-group { margin-top: 17px; padding-top: 14px; border-top: 1px solid #edf0f6; }
.tool-group-title { margin: 0 0 9px; color: var(--muted); font-size: 11px; font-weight: 650; }
.tool-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tool-choice { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; min-height: 44px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 11px; font-weight: 650; }
.tool-choice:hover { background: #f6f9ff; border-color: #b5c6e1; }
.tool-choice.primary { color: #2c53b2; background: #f3f6ff; border-color: #cbdaf6; }
.control-badge { display: inline-grid; place-items: center; width: 26px; height: 26px; flex: 0 0 auto; border-radius: 6px; color: var(--blue); background: #e9effe; font: 700 11px/1 ui-monospace, Consolas, monospace; }
.siem-row { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; min-width: 0; }
.siem-select { flex: 1 1 140px; min-width: 0; max-width: 100%; min-height: 38px; padding: 8px 7px; border: 1px solid #d5ddea; border-radius: 8px; background: #fff; color: var(--ink); font-size: 11px; }
.siem-open { flex: 1 1 134px; min-height: 38px; padding-inline: 8px; }
.exposure-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 16px; }
.exposure-legend span { display: inline-flex; align-items: center; padding: 3px 5px; border-radius: 4px; border: 1px solid #e2e7ef; background: #f3f5f9; color: #60708a; font-size: 9px; font-weight: 650; line-height: 1.5; white-space: nowrap; }
.exposure-legend span:first-child { color: #91601e; background: #fff8eb; border-color: #f0e1c1; }
.exposure-legend span:nth-child(2) { color: #31755f; background: #f0f8f4; border-color: #dceee4; }
.detect-note { display: flex; gap: 7px; margin: 11px 0 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.detect-note .icon { width: 13px; height: 13px; margin-top: 2px; }
.bottom-row { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; padding: 16px 2px 0; color: var(--soft); font-size: 10px; }
.bottom-links { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; }
.bottom-links .link { font-size: 10px; line-height: 1.7; }
.snapshot { margin-left: auto; max-width: 400px; text-align: right; font-size: 10px; line-height: 1.65; }

/* Accessible detail panel, source cards, tables and code blocks. */
dialog {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(760px, 94vw);
  max-width: 100%;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  background: #fff;
  color: var(--ink);
  box-shadow: -18px 0 65px #12233b2b;
  overflow: hidden;
}
dialog::backdrop { background: #0e1d3469; backdrop-filter: blur(2px); }
.drawer { display: flex; flex-direction: column; width: 100%; min-width: 0; min-height: 0; height: 100%; }
.drawer-head { display: flex; align-items: flex-start; gap: 15px; flex: 0 0 auto; padding: 22px 25px 18px; border-bottom: 1px solid var(--line); }
.drawer-head > div { min-width: 0; flex: 1; }
.drawer-head .eyebrow { margin-bottom: 6px; }
.drawer-head h2 { margin: 0; font-size: 21px; line-height: 1.4; letter-spacing: -.4px; overflow-wrap: break-word; }
.close { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 auto; margin-left: auto; border: 1px solid var(--line); border-radius: 8px; background: #f1f4f9; }
.close:hover { background: #e7edf7; }
.drawer-body { flex: 1 1 auto; min-height: 0; min-width: 0; padding: 21px 25px 28px; overflow-y: auto; overscroll-behavior: contain; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.drawer-body p { margin: 0 0 13px; }
.drawer-body h3 { margin: 21px 0 10px; font-size: 15px; line-height: 1.5; letter-spacing: -.2px; }
.drawer-body h3:first-child { margin-top: 0; }
.drawer-body h4 { margin: 13px 0 6px; font-size: 13px; }
.drawer-body .tag { font-size: 10px; }
.note-box { margin: 13px 0; padding: 12px 13px; border: 1px solid #dce5f4; border-radius: 8px; background: #f1f5fc; font-size: 12px; line-height: 1.7; }
.note-box.amber { background: #fff8ed; border-color: #ead8b5; color: #745728; }
.source-card { margin-bottom: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 10px; }
.source-card h3 { margin: 0 0 6px; font-size: 14px; }
.source-card .source-meta { margin-bottom: 8px; color: var(--muted); font-size: 10px; }
.source-card p { margin: 0 0 7px; font-size: 12px; }
.source-card a { font-size: 11px; overflow-wrap: anywhere; }
.source-card blockquote { margin: 10px 0; padding: 9px 11px; border-left: 3px solid #a8bce1; background: #f7f9fc; font-size: 12px; }
.kv { width: 100%; margin: 12px 0; border-collapse: collapse; table-layout: fixed; font-size: 12px; }
.kv th, .kv td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.kv th { width: 31%; font-weight: 550; color: var(--muted); }
.ordered-steps { padding-left: 20px; margin: 10px 0; }
.ordered-steps li, .check-list li { margin: 5px 0; }
.check-list { padding-left: 18px; margin: 8px 0; }
.code-wrap { min-width: 0; width: 100%; margin: 13px 0; border: 1px solid #344562; border-radius: 10px; background: #14243f; overflow: hidden; }
.code-head { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding: 10px 12px; background: #21324e; color: #c8d5e8; font-size: 10px; }
.code-head .spacer { flex: 1 1 180px; min-width: 0; margin-right: auto; }
.code-head button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 31px; padding: 5px 8px; border: 1px solid #506688; border-radius: 5px; background: transparent; color: #e4ebf7; font-size: 10px; }
.code-head button:hover { background: #31496d; }
.code-head button:focus-visible { outline-color: #b0c8fa; }
.code-head .icon { width: 12px; height: 12px; }
pre { max-width: 100%; max-height: 360px; margin: 0; padding: 15px 16px; overflow: auto; overscroll-behavior: contain; color: #dce6f6; font: 11px/1.8 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre; tab-size: 4; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
p code, td code { padding: 1px 4px; border-radius: 4px; background: #f0f3f8; font-size: .92em; }
.caption { margin: 6px 0 11px; color: var(--muted); font-size: 10px; line-height: 1.7; }
.definition { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 13px 0; }
.definition > div { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
.definition b { display: block; margin-bottom: 5px; font-size: 12px; }
.definition p { margin: 0; font-size: 12px; }
.solution-step { padding: 15px; margin-bottom: 13px; border: 1px solid var(--line); border-radius: 10px; }
.solution-step h3 { margin: 0 0 10px; }
.solution-step .tag { margin-bottom: 8px; }
.drawer-body details { margin: 12px 0; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; }
.drawer-body summary { cursor: pointer; font-size: 12px; font-weight: 650; }
.drawer-body details p { margin-top: 9px; font-size: 12px; }
.timeline { margin: 16px 0 16px 6px; padding-left: 18px; border-left: 2px solid #dce5f6; }
.time-item { position: relative; margin: 0 0 21px; }
.time-item::before { content: ""; position: absolute; left: -24px; top: 7px; width: 10px; height: 10px; border: 2px solid #fff; border-radius: 50%; background: #557fdc; }
.time-item time { font-size: 11px; font-weight: 650; color: var(--blue); }
.time-item h3 { margin: 3px 0 5px; font-size: 13px; }
.time-item p { margin: 0; color: var(--muted); font-size: 12px; }
.sources-foot { margin-top: 17px; padding-top: 13px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.sources-foot a { display: inline-block; margin: 0 10px 5px 0; }
.toast { position: fixed; left: 50%; bottom: 20px; z-index: 200; max-width: min(540px, calc(100vw - 24px)); padding: 12px 17px; border-radius: 9px; background: var(--navy); color: #fff; box-shadow: 0 10px 30px #1123432e; font-size: 12px; line-height: 1.6; text-align: center; opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: opacity .18s, transform .18s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
dialog .toast { position: absolute; left: 50%; bottom: 18px; max-width: calc(100% - 32px); z-index: 1; }
.copy-buffer { position: fixed; left: -2000px; top: 0; opacity: 0; }
.noscript { margin: 30px; padding: 25px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }

/* Breakpoints account for the sidebar width, not just viewport width. */
@media (min-width: 1700px) {
  :root { --nav-width: 288px; }
  .main { padding: 24px 30px 28px; }
  .grid { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 18px; }
  .left, .right { gap: 18px; }
  .card { padding: 21px; }
  .metric { padding: 16px 18px; }
  .metric strong { font-size: 14px; }
  .lead, .ai-body { font-size: 14px; }
  .analysis-point p, .solution p { font-size: 13px; }
}
@media (max-width: 1450px) {
  .top-note { display: none; }
  .head-actions { flex-direction: column; }
  .head-actions .btn { min-height: 33px; }
  .grid { gap: 13px; }
  .left, .right { gap: 13px; }
  .card { padding: 16px; }
  .metric { padding: 12px; }
  .effect-line { display: block; }
  .effect-line > span { display: block; margin-bottom: 3px; }
}
@media (min-width: 1081px) and (max-width: 1240px) {
  :root { --nav-width: 252px; }
  .main { padding-inline: 20px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .right { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
@media (max-width: 1080px) {
  .top { padding-inline: 18px; gap: 12px; }
  .badge-proto { display: none; }
  .app-shell { grid-template-columns: minmax(0, 1fr); }
  .main { padding: 20px 24px 24px; }
  .nav-toggle { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; padding: 0; border: 1px solid #4b5f7c; border-radius: 7px; background: #203455; color: #fff; }
  .nav-toggle:hover { background: #2b446a; }
  .nav-close { display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; margin-left: 1px; border-radius: 6px; background: #edf1f8; color: #4e6384; }
  .cir-nav {
    position: fixed;
    inset: 0 auto 0 0;
    top: 0;
    z-index: 80;
    width: min(304px, calc(100vw - 44px));
    height: 100vh;
    height: 100dvh;
    border-right: 1px solid var(--line);
    padding: 17px 13px;
    box-shadow: 12px 0 40px #12223f22;
    visibility: hidden;
    transform: translateX(-105%);
    transition: transform .2s ease, visibility .2s;
  }
  .cir-nav-head { min-height: 33px; padding: 0 4px; }
  .cir-search { font-size: 14px; }
  .cir-item { padding-block: 13px; }
  .cir-item-title { font-size: 13px; }
  .cir-item-meta { font-size: 11px; }
  .cir-item-id { font-size: 11px; }
  .cir-item-sev { font-size: 9px; }
  .nav-backdrop { position: fixed; inset: 0; z-index: 70; width: 100%; height: 100%; padding: 0; background: #10213d70; backdrop-filter: blur(2px); }
  body.nav-open { overflow: hidden; }
  body.nav-open .cir-nav { visibility: visible; transform: translateX(0); }
  body.nav-open .nav-backdrop { display: block; }
}
@media (max-width: 900px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .right { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .head h1 { font-size: 25px; }
  .info-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric { padding: 14px 16px; }
  .metric:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .metric:nth-child(4) { border-top: 1px solid var(--line); }
  .metric .eyebrow { min-height: 14px; }
  .meter-header { align-items: center; }
  .meter-help { margin-top: 0; }
  .head-actions { flex-direction: row; padding-top: 0; }
  .head { flex-wrap: wrap; gap: 12px; }
  .head-text { flex-basis: 100%; }
  .head-actions .btn { min-height: 36px; }
  .card { padding: 19px; }
  .card-heading h2 { font-size: 15px; }
}
@media (max-width: 640px) {
  :root { --header-height: 56px; }
  html { scroll-padding-top: 70px; }
  .top { padding-inline: 13px; gap: 9px; }
  .brand-sub, .header-tagline, .top-topic { display: none; }
  .mark { width: 28px; height: 28px; font-size: 21px; }
  .wordmark { font-size: 21px; }
  .main { padding: 15px 14px 20px; }
  .crumb { gap: 6px; margin-bottom: 12px; font-size: 9px; }
  .crumb .id { font-size: 9px; }
  .head { margin-bottom: 15px; }
  .head h1 { font-size: 24px; line-height: 1.3; }
  .head p { font-size: 12px; }
  .head-actions { width: 100%; }
  .head-actions .btn:first-child { flex: 1 1 auto; }
  .head-actions .btn { min-height: 40px; }
  .info-strip { margin-bottom: 14px; }
  .metric { padding: 12px; }
  .metric strong { font-size: 12px; }
  .metric .eyebrow { font-size: 9px; letter-spacing: .02em; }
  .metric p { font-size: 10px; }
  .metric .subtle { font-size: 10px; }
  .grid, .left, .right { gap: 14px; }
  .right { display: flex; flex-direction: column; }
  .right > .card { width: 100%; }
  .analysis-list { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 17px; }
  .card-heading { margin-bottom: 12px; }
  .card-heading h2 { font-size: 14px; }
  .lead, .ai-body { font-size: 13px; line-height: 1.75; }
  .analysis-point p { font-size: 12px; }
  .scope-line, .detect-note { font-size: 11px; }
  .mastery-title { font-size: 14px; }
  .solution p { font-size: 12px; }
  .tool-choice { min-height: 47px; font-size: 12px; }
  .siem-select { min-height: 42px; font-size: 12px; }
  .siem-open { min-height: 42px; font-size: 11px; }
  .exposure-legend span { font-size: 9px; }
  .bottom-row { gap: 14px; padding-top: 17px; }
  .bottom-links { gap: 12px 16px; }
  .snapshot { width: 100%; margin-left: 0; text-align: left; font-size: 10px; }
  dialog { width: 100vw; max-width: 100vw; }
  .drawer-head { padding: 17px 16px; gap: 10px; }
  .drawer-head h2 { font-size: 19px; }
  .drawer-body { padding: 18px 16px 26px; }
  .drawer-head .eyebrow { font-size: 9px; }
  .definition { grid-template-columns: minmax(0, 1fr); }
  .source-card { padding: 13px; }
  .solution-step { padding: 13px; }
  .kv th { width: 32%; }
  .kv th, .kv td { padding: 9px 6px; font-size: 11px; }
  .code-head .spacer { flex-basis: 100%; }
  .code-head button { min-height: 34px; padding-inline: 10px; font-size: 11px; }
  .code-wrap pre { padding: 13px 12px; font-size: 11px; max-height: 320px; }
}
@media (max-width: 359px) {
  .main { padding-inline: 10px; }
  .top-topic { max-width: 120px; font-size: 9px; }
  .crumb .id { flex-basis: 100%; margin-left: 0; }
  .head h1 { font-size: 22px; }
  .metric { padding: 10px; }
  .card { padding: 14px; }
  .tag { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media print {
  .top, .cir-nav, .nav-backdrop, .nav-toggle, .head-actions, .bottom-row,
  .tool-picker, .siem-row, .solution-action, .meter-help, .toast, .skip, dialog { display: none !important; }
  body { background: #fff; }
  .app-shell { display: block; min-height: 0; }
  .main { width: 100%; margin: 0; padding: 0; }
  .head h1 { font-size: 22px; }
  .info-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .metric { border-top: 0 !important; }
  .metric + .metric { border-left: 1px solid var(--line) !important; }
  .grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 12px; }
  .right { display: flex; }
  .card, .info-strip, .analysis-point { box-shadow: none; break-inside: avoid; }
  .card { padding: 12px; }
  .analysis-list { grid-template-columns: minmax(0, 1fr); }
}

