@font-face {
  font-family: "Inter";
  src: url("/static/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("/static/fonts/JetBrainsMonoVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --sheet: #ffffff;
  --ink: #17202f;
  --soft: #4b5565;
  --quiet: #667080;
  --line: #e7ebef;
  --accent: #cc4b3c;
  --link: #0e7490;
  --rule: #d5dbe2;
  --mark: #c3cbd5;
  --brand: #0891b2;
  --logo-bg: #ffffff;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0b0d11;
    --sheet: #0b0d11;
    --ink: #eff3f8;
    --soft: #c3cad6;
    --quiet: #a3adbd;
    --line: #26313e;
    --accent: #ef8670;
    --link: #22d3ee;
    --rule: #323d4b;
    --mark: #3a4553;
    --brand: #22d3ee;
    --logo-bg: #ffffff;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --paper: #0b0d11;
  --sheet: #0b0d11;
  --ink: #eff3f8;
  --soft: #c3cad6;
  --quiet: #a3adbd;
  --line: #26313e;
  --accent: #ef8670;
  --link: #22d3ee;
  --rule: #323d4b;
  --mark: #3a4553;
  --brand: #22d3ee;
  --logo-bg: #ffffff;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--link);
}

button,
input {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

[hidden] {
  display: none !important;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 8px 12px;
  translate: 0 -180%;
  background: var(--ink);
  color: var(--paper);
}

.skip-link:focus {
  translate: 0;
}

.page-shell,
.header-inner,
.footer-inner {
  width: min(calc(100% - 64px), 1240px);
  margin-inline: auto;
}

.site-header {
  min-height: 72px;
}

.header-inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.site-identity,
.primary-nav {
  display: flex;
  align-items: center;
}

.site-identity {
  gap: 14px;
}

.brand {
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.brand i {
  font-style: normal;
  font-weight: 450;
}

.site-provenance {
  display: flex;
  gap: 6px;
  align-items: center;
  padding-left: 14px;
  border-left: 1px solid var(--line);
  color: var(--soft);
  font-size: 11px;
}

.site-provenance img {
  width: 18px;
  height: 18px;
}

.site-provenance .rdintel-mark-dark {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .site-provenance .rdintel-mark-light {
    display: none;
  }

  :root:not([data-theme="light"]) .site-provenance .rdintel-mark-dark {
    display: block;
  }
}

:root[data-theme="dark"] .site-provenance .rdintel-mark-light {
  display: none;
}

:root[data-theme="dark"] .site-provenance .rdintel-mark-dark {
  display: block;
}

.primary-nav {
  gap: 22px;
  font-size: 11px;
}

.primary-nav a,
.theme-toggle {
  color: var(--soft);
}

.primary-nav .rdintel-nav {
  color: var(--ink);
  font-weight: 500;
}

.theme-toggle,
.view-switch button,
.entry-actions button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.theme-toggle:hover,
.view-switch button:hover,
.entry-actions button:hover {
  color: var(--link);
}

/* Coverage index */
.coverage-tool {
  padding-bottom: 80px;
}

.edition-picker {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--ink);
  font-size: 12px;
}

.edition-picker nav {
  display: flex;
  gap: 16px;
  font-size: 17px;
}

.calendar-control {
  position: relative;
}

.calendar-trigger,
.calendar-popover button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

.calendar-trigger {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
}

.calendar-trigger span {
  color: var(--quiet);
  font-size: 15px;
}

.calendar-popover {
  position: absolute;
  z-index: 40;
  top: calc(100% + 20px);
  left: 0;
  width: 292px;
  padding: 18px;
  border: 1px solid var(--rule);
  background: var(--paper);
}

.calendar-popover header {
  display: grid;
  grid-template-columns: 24px 1fr 24px;
  align-items: center;
  margin-bottom: 18px;
  text-align: center;
}

.calendar-popover strong {
  font-size: 12px;
  font-weight: 400;
}

.calendar-popover button:disabled {
  visibility: hidden;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
}

.calendar-weekdays {
  margin-bottom: 7px;
  color: var(--quiet);
  font-size: 9px;
}

.calendar-grid {
  row-gap: 3px;
}

.calendar-day,
.calendar-blank {
  display: grid;
  height: 32px;
  place-items: center;
  font-size: 11px;
}

.calendar-day:hover {
  background: var(--line);
  color: var(--ink);
}

.calendar-day.is-selected {
  background: var(--ink);
  color: var(--paper);
}

.calendar-day.is-future {
  color: var(--quiet);
  text-decoration: line-through;
}

.index-controls {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.view-switch {
  display: flex;
  gap: 22px;
  align-items: center;
  font-size: 11px;
}

.view-switch button {
  color: var(--quiet);
}

.view-switch button.is-active {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.coverage-visual {
  padding: 18px 0 16px;
  border-bottom: 1px solid var(--line);
}

.visual-readout {
  display: grid;
  min-height: 32px;
  grid-template-columns: 42px 158px minmax(0, 1fr) 210px;
  gap: 16px;
  align-items: start;
  font-size: 11px;
}

.visual-readout [data-visual-rank] {
  color: var(--quiet);
  font-variant-numeric: tabular-nums;
}

.visual-readout [data-visual-cve] {
  font-family: var(--mono);
  font-size: 10px;
}

.visual-readout [data-visual-title] {
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visual-readout [data-visual-activity] {
  color: var(--quiet);
  font-size: 10px;
  text-align: right;
}

.visual-field {
  display: flex;
  height: 88px;
  gap: 4px;
  align-items: end;
}

.visual-mark {
  display: flex;
  height: 88px;
  flex: 1 1 0;
  align-items: end;
  justify-content: center;
  gap: 3px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.visual-mark i {
  display: block;
  width: 3px;
  height: 10%;
  flex: 0 0 3px;
  background: var(--mark);
}

.visual-mark.prominence-2 i { height: 20%; }
.visual-mark.prominence-3 i { height: 30%; }
.visual-mark.prominence-4 i { height: 40%; }
.visual-mark.prominence-5 i { height: 50%; }
.visual-mark.prominence-6 i { height: 60%; }
.visual-mark.prominence-7 i { height: 70%; }
.visual-mark.prominence-8 i { height: 80%; }
.visual-mark.prominence-9 i { height: 90%; }
.visual-mark.prominence-10 i { height: 100%; }

.visual-mark.prominence-9 i,
.visual-mark.prominence-10 i {
  background: var(--accent);
}

.visual-mark:hover i,
.visual-mark:focus-visible i,
.visual-mark.is-active i {
  background: var(--link);
}

.coverage-entry {
  border-bottom: 1px solid var(--line);
}

.entry-summary {
  display: grid;
  width: 100%;
  min-height: 108px;
  grid-template-columns: 42px minmax(0, 1fr) 110px 20px;
  gap: 16px;
  align-items: center;
  padding: 17px 0;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.entry-summary:hover strong,
.entry-summary:focus-visible strong {
  color: var(--link);
}

.entry-rank {
  align-self: start;
  padding-top: 3px;
  color: var(--quiet);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.has-change .entry-rank::after {
  content: "•";
  margin-left: 4px;
  color: var(--accent);
}

.entry-cve {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 450;
  letter-spacing: -0.02em;
}

.entry-content {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.entry-summary strong {
  overflow: hidden;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entry-title {
  display: flex;
  min-width: 0;
  gap: 8px;
  align-items: center;
}

.entry-title img {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  background: var(--logo-bg);
  object-fit: contain;
}

.entry-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  color: var(--quiet);
  font-size: 11px;
}

.entry-social i {
  color: var(--accent);
  font-style: normal;
}

.entry-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 16px;
  margin: 2px 0 0;
  font-size: 10px;
  line-height: 1.25;
}

.entry-facts > span {
  display: flex;
  gap: 5px;
  align-items: baseline;
}

.entry-facts .fact-label {
  color: var(--quiet);
}

.entry-facts .fact-value {
  color: var(--ink);
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.entry-facts .fact-alert .fact-value {
  color: var(--accent);
}

.entry-publishers {
  display: flex;
  min-width: 0;
  justify-content: flex-end;
}

.entry-publishers img {
  width: 23px;
  height: 23px;
  margin-left: -3px;
  border: 3px solid var(--paper);
  background: var(--logo-bg);
  object-fit: contain;
}

.entry-mark {
  color: var(--quiet);
  font-size: 18px;
  font-weight: 300;
  transition: rotate 160ms ease;
}

.coverage-entry.is-open .entry-mark {
  rotate: 45deg;
}

.entry-attention {
  height: 2px;
  margin-top: -2px;
}

.entry-attention i {
  display: block;
  height: 2px;
  background: var(--mark);
}

.prominence-1 .entry-attention i { width: 10%; }
.prominence-2 .entry-attention i { width: 20%; }
.prominence-3 .entry-attention i { width: 30%; }
.prominence-4 .entry-attention i { width: 40%; }
.prominence-5 .entry-attention i { width: 50%; }
.prominence-6 .entry-attention i { width: 60%; }
.prominence-7 .entry-attention i { width: 70%; }
.prominence-8 .entry-attention i { width: 80%; }
.prominence-9 .entry-attention i { width: 90%; }
.prominence-10 .entry-attention i { width: 100%; }

.prominence-9 .entry-attention i,
.prominence-10 .entry-attention i {
  background: var(--accent);
}

.entry-details {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  padding: 6px 0 30px;
  animation: reveal 150ms ease-out;
}

.report-list {
  grid-column: 2;
  margin: 0;
  padding: 0;
  list-style: none;
}

.report-list li {
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr);
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.report-list span {
  overflow: hidden;
  color: var(--soft);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-list a {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
}

.report-list a i {
  color: var(--quiet);
  font-style: normal;
  font-weight: 400;
}

.entry-actions {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 18px;
  font-size: 11px;
}

.entry-actions button,
.entry-actions a {
  color: var(--soft);
}

.entry-actions button.is-saved {
  color: var(--accent);
}

.coverage-empty {
  margin: 0;
  padding: 48px 0;
  color: var(--soft);
}

.tool-foot {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 22px;
  color: var(--quiet);
  font-size: 10px;
}

.tool-foot a {
  color: var(--soft);
}

@keyframes reveal {
  from { opacity: 0; translate: 0 -4px; }
  to { opacity: 1; translate: 0 0; }
}

/* Shared record pages */
.detail-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 56px;
  padding-block: 38px 84px;
}

.crumbs {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--soft);
  font-size: 10px;
}

.record-header {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 20px;
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}

.record-index,
.section-number,
.rail-label {
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.record-id {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 10px;
  color: var(--link);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
}

.record-header h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 450;
  letter-spacing: -0.05em;
  line-height: 1;
}

.record-dates {
  margin: 16px 0 0;
  color: var(--soft);
  font-size: 10px;
}

.record-facts dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.record-facts div {
  padding: 16px 10px 16px 0;
}

.record-facts dt {
  color: var(--quiet);
  font-size: 9px;
}

.record-facts dd {
  margin: 5px 0 0;
  font-size: 14px;
  font-weight: 450;
}

.danger-text {
  color: var(--accent) !important;
}

.prose-section,
.source-ledger,
.related-section {
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.lead-prose {
  max-width: 760px;
  margin: 12px 0 0;
  font-size: 18px;
  line-height: 1.58;
}

.record-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.record-columns > div {
  padding: 30px 30px 30px 0;
}

.plain-list {
  margin: 12px 0 0;
  padding-left: 18px;
}

.plain-list li {
  margin-block: 6px;
}

.ledger-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.related-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.related-list li {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.related-list a,
.ledger-row a {
  font-weight: 450;
}

.related-list time,
.related-list p {
  color: var(--soft);
  font-size: 10px;
}

.related-list p {
  margin: 4px 0 0;
}

.detail-cta {
  position: sticky;
  top: 24px;
  align-self: start;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}

.detail-cta h2 {
  margin: 12px 0;
  font-size: 23px;
  letter-spacing: -0.035em;
}

.detail-cta p:not(.rail-label) {
  color: var(--soft);
  font-size: 12px;
  line-height: 1.55;
}

.arrow-link {
  color: var(--link);
  font-size: 11px;
  font-weight: 500;
}

.source-logo,
.source-logo-large {
  object-fit: contain;
}

.source-logo { width: 18px; height: 18px; }
.source-logo-large { width: 24px; height: 24px; }

/* Progressive feed fragments */
.feed-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
}

.item-rail,
.item-body {
  padding: 16px 12px;
}

.item-rail {
  color: var(--soft);
  font-size: 10px;
}

.item-rail > * {
  display: block;
  margin-bottom: 5px;
}

.item-kicker,
.fact-line,
.entity-line,
.product-line,
.source-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--soft);
  font-size: 10px;
}

.item-body h3 {
  margin: 9px 0;
  font-size: 18px;
}

.item-summary {
  margin: 0 0 10px;
  line-height: 1.5;
}

.load-row,
.empty-state {
  padding: 28px 0;
}

.load-more {
  padding: 0;
  border: 0;
  background: none;
  color: var(--link);
  cursor: pointer;
}

.error-page {
  max-width: 760px;
  padding-block: 120px;
}

.error-page h1 {
  margin: 12px 0;
  font-size: 44px;
  letter-spacing: -0.05em;
}

.error-code {
  color: var(--quiet);
  font-weight: 500;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  min-height: 88px;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  color: var(--quiet);
  font-size: 10px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner p:last-child {
  text-align: right;
}

.footer-inner nav {
  display: flex;
  gap: 16px;
}

.footer-inner .footer-archive {
  grid-column: 1 / -1;
  order: 1;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding-bottom: 20px;
}

.footer-inner .footer-subscribe {
  grid-column: 1 / -1;
  order: 2;
  padding-bottom: 22px;
}

.subscribe-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.subscribe-form label {
  color: var(--quiet);
}

.subscribe-form input[type="email"] {
  min-width: 240px;
  padding: 8px 10px;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
}

.subscribe-form input[type="email"]:focus {
  border-color: var(--link);
  outline: none;
}

.subscribe-form button {
  padding: 8px 14px;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.subscribe-form button:hover {
  background: var(--link);
}

.subscribe-form-page {
  margin-top: 18px;
}

.subscribe-notice {
  margin-top: 14px;
  color: var(--link);
  font-weight: 600;
}

.subscribe-fineprint {
  margin-top: 12px;
  color: var(--quiet);
  font-size: 12px;
}

.legal-section .subscribe-fineprint a,
.legal-section code {
  font-size: 12px;
}

.footer-archive span {
  color: var(--quiet);
}

.brand-small {
  color: var(--ink);
  font-weight: 500;
}

/* Legal pages */
.legal-page {
  max-width: 720px;
  padding: 48px 0 96px;
}

.legal-page h1 {
  margin: 0 0 32px;
  font-size: 32px;
  font-weight: 600;
}

.legal-section {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.legal-section h2 {
  margin: 0 0 10px;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
}

.legal-section p,
.legal-section address {
  margin: 0;
  font-style: normal;
  line-height: 1.65;
}

.legal-section a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* RDI lane */
.rdi-lane {
  padding: 18px 0 8px;
  border-top: 1px solid var(--rule);
}

.rdi-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 6px;
}

.rdi-head h2 {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
}

.rdi-head a {
  color: var(--link);
  font-size: 11px;
}

.rdi-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rdi-row {
  display: grid;
  grid-template-columns: 112px 28px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.rdi-list li:last-child .rdi-row {
  border-bottom: 0;
}

.rdi-row:hover strong {
  color: var(--link);
}

.rdi-id,
.rdi-tier,
.rdi-main span,
.rdi-when {
  font-family: var(--mono);
  font-size: 11px;
}

.rdi-id,
.rdi-when,
.rdi-main span {
  color: var(--quiet);
}

.rdi-tier {
  font-weight: 600;
}

.rdi-tier-p0 {
  color: var(--accent);
}

.rdi-main {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.rdi-main strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rdi-when {
  white-space: nowrap;
}

@media (max-width: 760px) {
  .rdi-row {
    grid-template-columns: auto auto minmax(0, 1fr);
    gap: 4px 10px;
  }

  .rdi-main {
    grid-column: 1 / -1;
    order: 3;
  }

  .rdi-when {
    justify-self: end;
  }
}

/* Live pulse */
:root {
  --grid: #eef1f5;
  --trend-m2: #eef4f6;
  --trend-m1: #c6e2eb;
  --trend-0: #8fcbdb;
  --trend-p1: #3fa7bf;
  --trend-ink-p2: #ffffff;
  --trend-p2: #0e7490;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --grid: #1a1f27;
    --trend-m2: #111c22;
    --trend-m1: #0f2f38;
    --trend-0: #124e5b;
    --trend-p1: #136f82;
    --trend-ink-p2: #0b0d11;
    --trend-p2: #22d3ee;
  }
}

:root[data-theme="dark"] {
  --grid: #1a1f27;
  --trend-m2: #111c22;
  --trend-m1: #0f2f38;
  --trend-0: #124e5b;
  --trend-p1: #136f82;
  --trend-ink-p2: #0b0d11;
  --trend-p2: #22d3ee;
}

.pulse {
  position: relative;
  padding: 18px 0 28px;
  border-top: 1px solid var(--rule);
}

.pulse-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
}

.pulse-head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 12px;
  font-weight: 600;
}

.pulse-meta {
  margin: 0;
  color: var(--quiet);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.pulse-meta a {
  color: var(--link);
}

.pulse-figure {
  margin: 20px 0 0;
}

.pulse-figure figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  margin-bottom: 8px;
  color: var(--quiet);
  font-size: 11px;
}

.pulse.is-refreshing .pulse-chart,
.pulse.is-refreshing .pulse-map {
  opacity: 0.6;
}

.pulse-chart {
  height: 176px;
  transition: opacity 0.2s ease;
}

.pulse-svg {
  display: block;
  overflow: visible;
}

.pulse-svg:focus-visible {
  outline: 1px solid var(--link);
  outline-offset: 4px;
}

.pulse-grid {
  stroke: var(--grid);
  stroke-width: 1;
  shape-rendering: crispEdges;
}

.pulse-tick {
  fill: var(--quiet);
  font-family: var(--mono);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.pulse-area {
  fill: var(--brand);
  fill-opacity: 0.1;
}

.pulse-line {
  fill: none;
  stroke: var(--brand);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pulse-now,
.pulse-hover-dot {
  fill: var(--brand);
  stroke: var(--paper);
  stroke-width: 2;
}

.pulse-rail {
  stroke: var(--line);
  stroke-width: 1;
  shape-rendering: crispEdges;
}

.pulse-event-stem {
  stroke: var(--accent);
  stroke-opacity: 0.45;
  stroke-width: 1;
}

.pulse-event {
  cursor: pointer;
  outline: none;
}

.pulse-event-hit {
  fill: transparent;
}

.pulse-event-mark {
  fill: var(--accent);
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.pulse-event-p1 .pulse-event-mark {
  fill: var(--paper);
}

.pulse-event:hover .pulse-event-mark {
  fill: var(--accent);
}

.pulse-event:focus-visible .pulse-event-mark {
  stroke: var(--ink);
  stroke-width: 2;
}

.pulse-rdi-key {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
}

.pulse-rdi-key[hidden] {
  display: none;
}

.pulse-rdi-key i {
  width: 7px;
  height: 7px;
  flex: none;
  background: var(--accent);
  transform: rotate(45deg);
}

.pulse-rdi-key a {
  overflow: hidden;
  max-width: 46ch;
  color: var(--link);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pulse-tooltip .tooltip-rdi {
  margin-top: 4px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
}

.pulse-crosshair {
  stroke: var(--quiet);
  stroke-width: 1;
  shape-rendering: crispEdges;
}

.pulse-hit {
  fill: transparent;
  cursor: crosshair;
}

.pulse-map {
  position: relative;
  height: clamp(300px, 36vw, 460px);
  background: var(--paper);
  transition: opacity 0.2s ease;
}

.pulse-tile {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
  padding: 6px 7px;
  background: var(--trend-0);
  color: var(--ink);
  transition: left 0.6s ease, top 0.6s ease, width 0.6s ease, height 0.6s ease, background-color 0.6s ease, opacity 0.4s ease;
}

.pulse-tile:hover,
.pulse-tile:focus-visible {
  z-index: 2;
  color: inherit;
  outline: 2px solid var(--ink);
  outline-offset: -2px;
}

.pulse-tile.is-entering,
.pulse-tile.is-leaving {
  opacity: 0;
}

.pulse-tile.is-bumped {
  animation: tile-bump 1.4s ease-out;
}

@keyframes tile-bump {
  0% { outline: 3px solid var(--ink); outline-offset: -3px; }
  100% { outline: 3px solid transparent; outline-offset: -3px; }
}

.pulse-tile > span {
  display: none;
}

.pulse-tile.tile-sm .tile-cve,
.pulse-tile.tile-sm .tile-trend,
.pulse-tile.tile-md .tile-title {
  display: block;
}

.tile-cve {
  font-family: var(--mono);
  font-size: 10px;
  white-space: nowrap;
}

.tile-title {
  display: -webkit-box;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tile-trend {
  margin-top: auto;
  font-size: 10px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.pulse-tile.tile-lg .tile-cve {
  font-size: 12px;
}

.pulse-tile.tile-lg .tile-title {
  font-size: 16px;
  -webkit-line-clamp: 3;
}

.pulse-tile.tile-lg .tile-trend {
  font-size: 11px;
}

.trend-m2 { background: var(--trend-m2); }
.trend-m1 { background: var(--trend-m1); }
.trend-0 { background: var(--trend-0); }
.trend-p1 { background: var(--trend-p1); }
.trend-p2 { background: var(--trend-p2); color: var(--trend-ink-p2); }

.pulse-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 10px 0 0;
  padding: 0;
  color: var(--quiet);
  font-size: 11px;
  list-style: none;
}

.pulse-legend li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pulse-legend i {
  width: 14px;
  height: 10px;
}

.pulse-tooltip {
  position: absolute;
  z-index: 30;
  min-width: 180px;
  max-width: 280px;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  font-size: 11px;
  pointer-events: none;
}

.pulse-tooltip p {
  margin: 0;
  line-height: 1.45;
}

.pulse-tooltip .tooltip-label {
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 10px;
}

.pulse-tooltip .tooltip-title {
  margin: 2px 0 6px;
  font-size: 13px;
  font-weight: 600;
}

.pulse-tooltip .tooltip-lead strong {
  font-size: 15px;
}

.pulse-tooltip .tooltip-trend,
.pulse-tooltip .tooltip-facts {
  margin-top: 6px;
  color: var(--quiet);
}

.pulse-tooltip .tooltip-cta {
  margin-top: 6px;
  color: var(--link);
}

.pulse-tables summary {
  margin-top: 16px;
  color: var(--quiet);
  font-size: 11px;
  cursor: pointer;
}

.pulse-tables table {
  width: 100%;
  margin-top: 12px;
  border-collapse: collapse;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.pulse-tables caption {
  padding-bottom: 6px;
  font-weight: 600;
  text-align: left;
}

.pulse-tables th,
.pulse-tables td {
  padding: 4px 10px 4px 0;
  border-bottom: 1px solid var(--grid);
  text-align: left;
}

@media (max-width: 560px) {
  .pulse-map {
    height: 420px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 1000px) and (min-width: 761px) {
  .entry-summary {
    grid-template-columns: 38px minmax(0, 1fr) 20px;
  }

  .entry-publishers {
    display: none;
  }
}

@media (max-width: 760px) {
  .page-shell,
  .header-inner,
  .footer-inner {
    width: calc(100% - 32px);
  }

  .site-provenance,
  .primary-nav a:nth-child(2),
  .primary-nav .rdintel-nav {
    display: none;
  }

  .header-inner,
  .site-header {
    min-height: 58px;
  }

  .primary-nav {
    gap: 16px;
  }

  .edition-picker {
    gap: 12px;
    font-size: 10px;
  }

  .index-controls {
    min-height: 58px;
  }

  .view-switch {
    gap: 18px;
  }

  .coverage-visual {
    padding-top: 14px;
  }

  .visual-readout {
    min-height: 64px;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 3px 10px;
  }

  .visual-readout [data-visual-rank] {
    grid-row: 1 / 3;
  }

  .visual-readout [data-visual-cve],
  .visual-readout [data-visual-title],
  .visual-readout [data-visual-activity] {
    grid-column: 2;
  }

  .visual-readout [data-visual-title] {
    font-size: 13px;
  }

  .visual-readout [data-visual-activity] {
    text-align: left;
  }

  .visual-field {
    height: 72px;
    gap: 2px;
  }

  .visual-mark {
    height: 72px;
  }

  .entry-summary {
    min-height: 104px;
    grid-template-columns: 28px minmax(0, 1fr) 18px;
    gap: 10px;
    padding: 15px 0;
  }

  .entry-rank {
    grid-column: 1;
  }

  .entry-cve {
    font-size: 10px;
  }

  .entry-summary strong {
    font-size: 17px;
    white-space: normal;
  }

  .entry-social {
    gap: 5px 10px;
    font-size: 10px;
  }

  .entry-facts {
    gap: 5px 12px;
    font-size: 9px;
  }

  .entry-publishers {
    display: none;
  }

  .entry-mark {
    grid-column: 3;
  }

  .entry-details {
    display: block;
    padding: 2px 0 26px 38px;
  }

  .report-list li {
    display: block;
    padding: 12px 0;
  }

  .report-list span {
    display: block;
    margin-bottom: 5px;
  }

  .report-list a {
    font-size: 13px;
  }

  .tool-foot span {
    display: none;
  }

  .detail-shell {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .detail-cta {
    position: static;
  }

  .record-header {
    grid-template-columns: 1fr;
  }

  .record-facts dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .record-columns {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-block: 22px;
  }

  .footer-inner p:last-child {
    text-align: left;
  }
}
