
:root {
  --bg: #f5f7fb;
  --bg-2: #eef3ff;
  --ink: #111827;
  --muted: #5f6b7a;
  --subtle: #8090a4;
  --surface: rgba(255,255,255,.82);
  --surface-solid: #ffffff;
  --line: #dfe6f2;
  --line-strong: #c8d4e7;
  --primary: #3655f6;
  --primary-2: #7c3aed;
  --primary-soft: #e9edff;
  --danger: #bd2435;
  --danger-soft: #fff1f2;
  --warning: #b45309;
  --warning-soft: #fff7ed;
  --good: #087f5b;
  --good-soft: #eafaf3;
  --shadow: 0 22px 60px rgba(18, 32, 66, .14);
  --shadow-soft: 0 14px 36px rgba(18, 32, 66, .08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --container: 1180px;
  --anchor-offset: 96px;
}
* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--anchor-offset);
}
[id] { scroll-margin-top: var(--anchor-offset); }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(54,85,246,.18), transparent 32rem),
    radial-gradient(circle at top right, rgba(124,58,237,.13), transparent 34rem),
    linear-gradient(180deg, #fbfcff 0%, var(--bg) 42%, #f9fbff 100%);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
code {
  font: 0.92em ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  background: #eef2ff;
  color: #1f2a6d;
  padding: .08rem .32rem;
  border-radius: .42rem;
  border: 1px solid #dce3ff;
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: white;
  padding: .7rem 1rem;
  border-radius: 999px;
  z-index: 10;
}
.skip-link:focus { top: 1rem; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(210, 220, 238, .7);
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(18px);
}
.topbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.25rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .72rem;
  min-width: 0;
  font-weight: 760;
  letter-spacing: -.03em;
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 10px 28px rgba(54,85,246,.32);
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 680;
  letter-spacing: .02em;
  margin-top: -.18rem;
}
.nav {
  display: flex;
  align-items: center;
  gap: .35rem;
  min-width: 0;
  max-width: 100%;
}
.nav a {
  flex: 0 0 auto;
  color: #526174;
  font-weight: 650;
  font-size: .93rem;
  padding: .62rem .78rem;
  border-radius: 999px;
}
.nav a:hover, .nav a:focus-visible { background: var(--primary-soft); color: #233fd4; outline: none; }
.nav .cta {
  background: var(--ink);
  color: white;
  margin-left: .3rem;
  box-shadow: 0 12px 26px rgba(17,24,39,.16);
}
.nav .cta:hover { background: #222a39; color: white; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
.hero { padding: 3rem 0 2.2rem; }
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .46rem;
  color: var(--muted);
  font-size: .92rem;
  margin-bottom: 1.1rem;
}
.breadcrumbs span { color: var(--subtle); }
.hero-panel {
  position: relative;
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
  border: 1px solid rgba(206, 216, 235, .82);
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(255,255,255,.94), rgba(246,248,255,.78));
  box-shadow: var(--shadow);
}
.hero-panel::before {
  content: "";
  position: absolute;
  inset: -8rem -8rem auto auto;
  width: 26rem;
  height: 26rem;
  background: radial-gradient(circle, rgba(54,85,246,.18), transparent 67%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 2rem;
  padding: clamp(1.4rem, 4vw, 2.4rem);
  align-items: start;
  min-width: 0;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: #2f45d4;
  background: rgba(54,85,246,.09);
  border: 1px solid rgba(54,85,246,.18);
  padding: .38rem .72rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.eyebrow::before {
  content: "";
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 5px rgba(34,197,94,.12);
}
h1 {
  margin: 1rem 0 .9rem;
  font-size: clamp(2.25rem, 6vw, 2.8rem);
  line-height: 1.04;
  letter-spacing: -.07em;
}
.lede {
  font-size: clamp(1.03rem, 1.7vw, 1.22rem);
  color: #435064;
  max-width: 70ch;
  margin: 0;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  margin-top: 1.35rem;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: .78rem 1rem;
  background: var(--surface-solid);
  font-weight: 760;
  color: #273449;
  box-shadow: 0 8px 18px rgba(18,32,66,.06);
  cursor: pointer;
}
.button.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  border: none;
  box-shadow: 0 14px 34px rgba(54,85,246,.28);
}
.button:hover, .button:focus-visible { transform: translateY(-1px); outline: none; }
.tag-row { display: flex; flex-wrap: wrap; gap: .55rem; min-width: 0; max-width: 100%; margin-top: 1.2rem; }
.tag {
  max-width: 100%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.68);
  color: #536173;
  padding: .38rem .66rem;
  border-radius: 999px;
  font-weight: 680;
  font-size: .86rem;
  overflow-wrap: anywhere;
}
.hero-card {
  min-width: 0;
  max-width: 100%;
  border-radius: 24px;
  background: rgba(17, 24, 39, .96);
  color: #fff;
  padding: 1.25rem;
  box-shadow: 0 24px 54px rgba(17,24,39,.22);
}
.hero-card h2 { margin: 0 0 .8rem; font-size: 1.08rem; letter-spacing: -.03em; }
.fact-list { margin: 0; display: grid; gap: .7rem; }
.fact-row {
  display: flex;
  justify-content: space-between;
  gap: .9rem;
  min-width: 0;
  padding: .72rem .78rem;
  background: rgba(255,255,255,.075);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 15px;
}
.fact-row dt { color: #b6c0d4; font-size: .82rem; }
.fact-row dd {
  min-width: 0;
  margin: 0;
  font-weight: 760;
  text-align: right;
  overflow-wrap: anywhere;
}
.sparkline {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(54,85,246,.26), rgba(124,58,237,.18));
  border: 1px solid rgba(255,255,255,.14);
}
.sparkline strong { display: block; font-size: 1.8rem; line-height: 1; }
.sparkline span { color: #cbd5e1; font-size: .9rem; }
.page-shell {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  gap: 1.45rem;
  align-items: start;
  padding-bottom: 4rem;
}
.sidebar { position: sticky; top: 92px; display: grid; gap: 1rem; }
.side-card, .content-card {
  background: var(--surface);
  border: 1px solid rgba(206, 216, 235, .78);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}
.side-card { padding: 1rem; }
.side-title {
  margin: 0 0 .75rem;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--subtle);
  text-transform: uppercase;
}
.toc { display: grid; gap: .15rem; }
.toc a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  padding: .64rem .72rem;
  border-radius: 13px;
  color: #526174;
  font-weight: 680;
  font-size: .92rem;
}
.toc a:hover, .toc a.active { background: var(--primary-soft); color: #243fd5; }
.toc a small { color: var(--subtle); font-weight: 760; }
.source-note { color: var(--muted); font-size: .92rem; margin: .45rem 0 0; }
.mini-list { display: grid; gap: .52rem; margin-top: .7rem; }
.mini-list span {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  padding-bottom: .52rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
}
.mini-list strong { color: var(--ink); }
.article { display: grid; gap: 1.2rem; }
.content-card { padding: clamp(1.15rem, 3vw, 1.65rem); }
.section-header { display: flex; align-items: start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.section-header h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.8vw, 2.05rem);
  letter-spacing: -.045em;
  line-height: 1.08;
}
.section-header p { margin: .42rem 0 0; color: var(--muted); max-width: 70ch; }
.anchor-button {
  border: 1px solid var(--line);
  background: white;
  color: var(--muted);
  width: 38px;
  height: 38px;
  border-radius: 12px;
  cursor: pointer;
}
.anchor-button:hover { color: var(--primary); border-color: #bac6ff; }
.summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.summary-tile {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.64);
}
.summary-tile small { color: var(--subtle); font-weight: 760; text-transform: uppercase; letter-spacing: .08em; }
.summary-tile strong { display: block; margin-top: .35rem; font-size: 1.45rem; letter-spacing: -.04em; }
.summary-tile span { display: block; color: var(--muted); margin-top: .2rem; font-size: .92rem; }

.summary-card {
  background: linear-gradient(145deg, rgba(255,255,255,.9), rgba(246,248,255,.72));
}
.page-section > p,
.page-section > ul:not([data-wf-style]),
.page-section > ol:not([data-wf-style]),
.relation-body p {
  color: #435064;
  line-height: 1.66;
}
.page-section > ul:not([data-wf-style]),
.page-section > ol:not([data-wf-style]) {
  margin: 0 0 1.35rem;
  padding-left: 1.35rem;
}
.page-section li + li { margin-top: .35rem; }
.page-section > p a,
.page-section li a {
  color: #243fd5;
  font-weight: 760;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.badge-line,
.chip-strip,
.relation-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
}
.badge-line { margin: .9rem 0 .7rem; }
.chip-strip { margin: .75rem 0 0; }
.relation-badges .chip-strip { margin: 0; }
.status-badge,
.data-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 30px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.74);
  color: #46546a;
  padding: .32rem .58rem;
  font-size: .78rem;
  font-weight: 780;
  letter-spacing: .04em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  white-space: normal;
}
.data-chip-more {
  color: var(--muted);
  border-color: rgba(148,163,184,.32);
  background: rgba(241,245,249,.86);
}
.status-realized,
.status-cisa-kev,
.status-critical,
.status-high,
.status-known {
  color: #8f1d2d;
  border-color: rgba(189,36,53,.22);
  background: var(--danger-soft);
}
.status-demonstrated,
.status-medium,
.status-yes {
  color: #92400e;
  border-color: rgba(180,83,9,.22);
  background: var(--warning-soft);
}
.status-feasible,
.status-low,
.status-no,
.status-not-in-cisa-kev {
  color: #276749;
  border-color: rgba(8,127,91,.2);
  background: var(--good-soft);
}
.detail-grid,
.source-grid,
.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: .72rem;
  margin: 1rem 0;
  min-width: 0;
}
.detail-grid div,
.source-grid div,
.status-grid div {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.62);
  padding: .82rem .9rem;
  min-width: 0;
}
.detail-grid dt,
.source-grid dt,
.status-grid dt {
  color: var(--subtle);
  font-size: .74rem;
  font-weight: 820;
  letter-spacing: .11em;
  text-transform: uppercase;
  margin-bottom: .26rem;
}
.detail-grid dd,
.source-grid dd,
.status-grid dd {
  margin: 0;
  color: #263247;
  font-weight: 760;
  overflow-wrap: anywhere;
}
.source-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .72fr);
  gap: 1.2rem;
  align-items: start;
  margin: 1rem 0;
  padding: 1.05rem;
  border: 1px solid rgba(206,216,235,.9);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255,255,255,.88), rgba(246,248,255,.72));
  box-shadow: 0 14px 34px rgba(18,32,66,.06);
}
.source-panel-main {
  min-width: 0;
}
.source-kicker {
  margin: 0 0 .42rem;
  color: var(--subtle);
  font-size: .74rem;
  font-weight: 820;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.source-panel h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.12rem;
  line-height: 1.28;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}
.source-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .72rem;
  margin-top: .76rem;
  color: var(--muted);
  font-size: .92rem;
}
.source-meta span {
  display: inline-flex;
  gap: .38rem;
  align-items: baseline;
  min-width: 0;
}
.source-meta strong {
  color: #334155;
  font-size: .72rem;
  font-weight: 820;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.source-links {
  display: grid;
  gap: .58rem;
  min-width: 0;
}
.source-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: .5rem;
  align-items: center;
  min-width: 0;
  padding: .66rem .72rem;
  border: 1px solid rgba(206,216,235,.9);
  border-radius: 15px;
  background: rgba(255,255,255,.76);
  color: #1f3ad1;
  font-weight: 760;
  line-height: 1.25;
  text-decoration: none;
}
.source-link:hover {
  border-color: #bac6ff;
  background: #fff;
  text-decoration: none;
}
.source-link-label {
  color: #334155;
  font-size: .72rem;
  font-weight: 820;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.source-link-value {
  min-width: 0;
  overflow-wrap: anywhere;
}
.source-link-static {
  color: #263247;
}
.external-link-icon {
  width: 16px;
  height: 16px;
  color: currentColor;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}
.source-panel + [data-wf-style="source-box"] {
  margin-top: 1rem;
}
.relationship-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .9rem;
  min-width: 0;
}
.relation-card {
  display: grid;
  gap: .72rem;
  align-content: start;
  min-width: 0;
  border: 1px solid rgba(206,216,235,.86);
  border-radius: 19px;
  background: rgba(255,255,255,.7);
  padding: .96rem;
  box-shadow: 0 10px 26px rgba(18,32,66,.055);
}
.relation-card:hover {
  border-color: #bac6ff;
  background: rgba(255,255,255,.9);
}
.relation-card header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: start;
  gap: .8rem;
}
.relation-card h3 {
  flex: 1 1 180px;
  min-width: 0;
  margin: 0;
  font-size: 1rem;
  line-height: 1.28;
  letter-spacing: -.02em;
}
.relation-card h3 a,
.relation-meta a {
  color: #1f3ad1;
  text-decoration: none;
}
.relation-card h3 a:hover,
.relation-meta a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.relation-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex: 1 1 220px;
  min-width: 0;
}
.relation-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .44rem;
  color: var(--muted);
  font-size: .86rem;
}
.relation-meta span {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  max-width: 100%;
  border-radius: 999px;
  background: rgba(238,242,255,.72);
  padding: .32rem .54rem;
  overflow-wrap: anywhere;
  white-space: normal;
}
.relation-meta strong {
  color: #334155;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.relation-body p { margin: 0 0 .66rem; }
.relation-body p:last-child { margin-bottom: 0; }
.coverage-card {
  border-left: 4px solid var(--primary);
}
.taxonomy-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: .75rem;
  min-width: 0;
  margin-top: 1rem;
}
.taxonomy-card {
  min-width: 0;
  border: 1px solid rgba(206,216,235,.86);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255,255,255,.82), rgba(238,242,255,.62));
  padding: .9rem;
}
.taxonomy-card span {
  display: block;
  color: var(--subtle);
  font-size: .74rem;
  font-weight: 820;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.taxonomy-card strong {
  display: block;
  margin-top: .32rem;
  color: var(--ink);
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.status-panel {
  display: grid;
  gap: .85rem;
  border: 1px solid rgba(206,216,235,.86);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255,255,255,.86), rgba(246,248,255,.7));
  padding: 1rem;
}
.status-panel-main {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}
.section-source [data-wf-style="source-box"] {
  margin: 0;
}

.pattern-list { display: grid; gap: .72rem; padding: 0; margin: 1rem 0 0; list-style: none; }
.pattern-list li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: .8rem;
  align-items: start;
  padding: .95rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.58);
}
.pattern-list b {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #243fd5;
  background: var(--primary-soft);
}
.pattern-list strong { display: block; margin-bottom: .18rem; }
.pattern-list span { color: var(--muted); }
.metric-strip { display: flex; flex-wrap: wrap; gap: .55rem; margin: .8rem 0 1.1rem; }
.metric-chip {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .45rem .6rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: .84rem;
}
.metric-chip strong { color: #374151; }
.metric-chip em {
  min-width: 1.55rem;
  height: 1.55rem;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-soft);
  color: #2f45d4;
  font-style: normal;
  font-weight: 800;
  font-size: .77rem;
}
.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px auto;
  gap: .75rem;
  align-items: center;
  padding: .8rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.62);
  margin-bottom: 1.2rem;
}
.field { position: relative; }
.field input, .field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: #fff;
  color: var(--ink);
  padding: 0 .9rem;
  font: inherit;
  font-weight: 620;
}
.field input:focus, .field select:focus {
  outline: 3px solid rgba(54,85,246,.15);
  border-color: rgba(54,85,246,.55);
}
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: linear-gradient(180deg, rgba(54,85,246,.3), rgba(124,58,237,.18));
}
.timeline-step {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.timeline-step[hidden] { display: none; }
.timeline-pin {
  position: sticky;
  top: 102px;
  z-index: 2;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 13px 28px rgba(54,85,246,.28);
  font-weight: 860;
}
.step-card {
  border: 1px solid rgba(206, 216, 235, .88);
  border-radius: 20px;
  background: rgba(255,255,255,.82);
  padding: 1rem;
  box-shadow: 0 12px 30px rgba(18,32,66,.06);
}
.step-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  margin-bottom: .55rem;
}
.step-kicker {
  margin: 0 0 .15rem;
  color: var(--subtle);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 820;
  font-size: .75rem;
}
.step-card h3 { margin: 0; font-size: 1.18rem; letter-spacing: -.035em; }
.step-card p { color: #49566a; margin: .55rem 0 0; }
.tactic-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: .38rem .62rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 820;
  border: 1px solid transparent;
  white-space: nowrap;
}
.tactic-reconnaissance { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.tactic-resource-development { background: #f5f3ff; color: #6d28d9; border-color: #ddd6fe; }
.tactic-discovery { background: #ecfeff; color: #0e7490; border-color: #a5f3fc; }
.tactic-defense-evasion { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }
.tactic-initial-access { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.tactic-execution { background: #fdf2f8; color: #be185d; border-color: #fbcfe8; }
.tactic-persistence { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.tactic-command-and-control { background: #eef2ff; color: #4338ca; border-color: #c7d2fe; }
.tactic-impact { background: #f1f5f9; color: #334155; border-color: #cbd5e1; }
.unsafe-snippet {
  margin-top: .85rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #fecdd3;
  background: var(--danger-soft);
}
.unsafe-snippet summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  cursor: pointer;
  padding: .8rem .9rem;
  color: var(--danger);
  font-weight: 820;
}
.unsafe-snippet summary small { color: #9f1239; font-weight: 700; }
.snippet-warning {
  margin: 0 .9rem .75rem;
  padding: .72rem .82rem;
  border-radius: 13px;
  background: #fff;
  border: 1px solid #fecdd3;
  color: #9f1239;
  font-size: .9rem;
  font-weight: 650;
}
.code-block {
  margin: 0;
  padding: 1rem;
  max-height: 340px;
  overflow: auto;
  background: #111827;
  color: #e5e7eb;
  font: .88rem/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
.code-block code {
  background: transparent;
  border: none;
  color: inherit;
  padding: 0;
}
.empty-state {
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  background: rgba(255,255,255,.6);
  padding: 1.2rem;
  color: var(--muted);
}
.empty-state strong { display: block; color: var(--ink); margin-bottom: .25rem; }
.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.related-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.62);
  padding: 1rem;
}
.related-card strong { display: block; margin-bottom: .25rem; }
.related-card p { margin: 0; color: var(--muted); }
.template-note {
  border-left: 4px solid var(--primary);
  padding: .9rem 1rem;
  background: #f4f6ff;
  border-radius: 0 16px 16px 0;
  color: #435064;
}
.template-note strong { color: #243fd5; }
.wf-content {
  display: grid;
  gap: 1rem;
}
.wf-content > * { min-width: 0; }
.wf-content > h2 {
  margin: 1.6rem 0 .15rem;
  font-size: clamp(1.22rem, 2.1vw, 1.58rem);
  line-height: 1.12;
  letter-spacing: -.04em;
}
.wf-content > h2:first-child { margin-top: 0; }
.wf-content > h3 {
  margin: 1.05rem 0 .05rem;
  font-size: 1.05rem;
  line-height: 1.2;
  letter-spacing: -.03em;
}
.wf-content p {
  margin: 0;
  color: #49566a;
}
.wf-content p[data-wf-style="lead"] {
  font-size: clamp(1rem, 1.7vw, 1.17rem);
  color: #435064;
}
.wf-content dl[data-wf-style] {
  margin: .15rem 0 .5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}
.wf-content dl[data-wf-style="stat-grid"] {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.wf-content dl[data-wf-style] dt,
.wf-content dl[data-wf-style] dd {
  margin: 0;
}
.wf-content dl[data-wf-style] dt {
  color: var(--subtle);
  font-size: .76rem;
  font-weight: 790;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.wf-content dl[data-wf-style] dd {
  min-height: 2.55rem;
  margin-top: .18rem;
  padding: .72rem .78rem;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255,255,255,.62);
  color: #273449;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.wf-content dl[data-wf-style] dt:nth-of-type(n),
.wf-content dl[data-wf-style] dd:nth-of-type(n) {
  display: block;
}
.wf-content dl[data-wf-style] dt:nth-of-type(1) { grid-column: 1; grid-row: 1; }
.wf-content dl[data-wf-style] dd:nth-of-type(1) { grid-column: 1; grid-row: 2; }
.wf-content dl[data-wf-style] dt:nth-of-type(2) { grid-column: 2; grid-row: 1; }
.wf-content dl[data-wf-style] dd:nth-of-type(2) { grid-column: 2; grid-row: 2; }
.wf-content dl[data-wf-style] dt:nth-of-type(3) { grid-column: 1; grid-row: 3; }
.wf-content dl[data-wf-style] dd:nth-of-type(3) { grid-column: 1; grid-row: 4; }
.wf-content dl[data-wf-style] dt:nth-of-type(4) { grid-column: 2; grid-row: 3; }
.wf-content dl[data-wf-style] dd:nth-of-type(4) { grid-column: 2; grid-row: 4; }
.wf-content dl[data-wf-style] dt:nth-of-type(5) { grid-column: 1; grid-row: 5; }
.wf-content dl[data-wf-style] dd:nth-of-type(5) { grid-column: 1; grid-row: 6; }
.wf-content dl[data-wf-style] dt:nth-of-type(6) { grid-column: 2; grid-row: 5; }
.wf-content dl[data-wf-style] dd:nth-of-type(6) { grid-column: 2; grid-row: 6; }
.wf-content dl[data-wf-style] dt:nth-of-type(n+7),
.wf-content dl[data-wf-style] dd:nth-of-type(n+7) {
  grid-column: auto;
  grid-row: auto;
}
.wf-content ul[data-wf-style="chip-list"] {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
.wf-content ul[data-wf-style="chip-list"] li {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.68);
  color: #536173;
  padding: .38rem .66rem;
  border-radius: 999px;
  font-weight: 680;
  font-size: .86rem;
}
.wf-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.68);
  box-shadow: 0 10px 24px rgba(18,32,66,.05);
}
.wf-content caption {
  padding: .8rem .95rem;
  color: var(--muted);
  text-align: left;
  font-weight: 700;
}
.wf-content th,
.wf-content td {
  padding: .78rem .9rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.wf-content th {
  color: #374151;
  background: rgba(233,237,255,.74);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.wf-content tr:last-child td { border-bottom: none; }
.wf-content tr:nth-child(even) td { background: rgba(255,255,255,.48); }
.wf-content aside[data-wf-style] {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.62);
  padding: 1rem;
  color: var(--muted);
}
.wf-content aside[data-wf-style="source-box"] {
  border-left: 4px solid var(--primary);
  border-radius: 0 16px 16px 0;
  background: #f4f6ff;
}
.wf-content aside[data-wf-style="warning"] {
  border-color: #fed7aa;
  background: var(--warning-soft);
  color: #9a3412;
}
.wf-content aside[data-wf-style="note"] {
  border-style: dashed;
}
.wf-content ul:not([data-wf-style]) {
  margin: 0;
  padding-left: 1.2rem;
  color: #49566a;
}
.wf-content li + li { margin-top: .45rem; }
footer {
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.72);
  padding: 2rem 0;
  color: var(--muted);
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.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;
}
@media (max-width: 980px) {
  .hero-grid, .page-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .hero-card { max-width: none; }
  .summary-grid, .related-grid { grid-template-columns: 1fr; }
  .source-panel { grid-template-columns: 1fr; }
  .wf-content dl[data-wf-style],
  .wf-content dl[data-wf-style="stat-grid"] { grid-template-columns: 1fr; }
  .wf-content dl[data-wf-style] dt,
  .wf-content dl[data-wf-style] dd {
    grid-column: auto !important;
    grid-row: auto !important;
  }
}
@media (max-width: 760px) {
  .topbar-inner {
    min-height: 64px;
    align-items: flex-start;
    flex-direction: column;
    gap: .65rem;
    padding-top: .7rem;
    padding-bottom: .7rem;
  }
  .nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    padding-bottom: .12rem;
  }
  .nav .cta {
    margin-left: 0;
  }
  .hero { padding-top: 1.4rem; }
  .hero-grid { padding: 1rem; }
  .fact-row {
    display: grid;
    gap: .25rem;
  }
  .fact-row dd {
    text-align: left;
  }
  .toolbar { grid-template-columns: 1fr; }
  .source-link { grid-template-columns: auto minmax(0, 1fr) auto; }
  .timeline-step { grid-template-columns: 38px minmax(0,1fr); gap: .7rem; }
  .timeline::before { left: 18px; }
  .timeline-pin { width: 38px; height: 38px; border-radius: 13px; font-size: .9rem; }
  .step-header { flex-direction: column; }
  h1 { max-width: none; }
}
@media print {
  .topbar, .sidebar, .toolbar, .hero-actions, .anchor-button { display: none !important; }
  body { background: white; }
  .hero-panel, .content-card, .step-card { box-shadow: none; background: white; }
  .page-shell, .hero-grid { display: block; }
  .timeline::before { display: none; }
  .timeline-step { display: block; page-break-inside: avoid; }
  .timeline-pin { display: none; }
}


/* Webfactory AIVulnDB template integration. Trusted full-document pages use the
   base classes above; these selectors adapt standard Webfactory routes. */
body[data-template="aivulndb"] {
  --bg: #f5f7fb;
  --bg-2: #eef3ff;
  --ink: #111827;
  --muted: #5f6b7a;
  --subtle: #8090a4;
  --surface: rgba(255,255,255,.82);
  --surface-solid: #ffffff;
  --line: #dfe6f2;
  --line-strong: #c8d4e7;
  --primary: #3655f6;
  --primary-2: #7c3aed;
  --primary-soft: #e9edff;
  --shadow: 0 22px 60px rgba(18, 32, 66, .14);
  --shadow-soft: 0 14px 36px rgba(18, 32, 66, .08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --container: 1180px;
  --wf-background: var(--bg);
  --wf-surface: var(--surface-solid);
  --wf-text: var(--ink);
  --wf-accent: var(--primary);
  --wf-muted: var(--muted);
  --wf-radius: var(--radius-md);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(54,85,246,.18), transparent 32rem),
    radial-gradient(circle at top right, rgba(124,58,237,.13), transparent 34rem),
    linear-gradient(180deg, #fbfcff 0%, var(--bg) 42%, #f9fbff 100%);
  line-height: 1.55;
}

body[data-template="aivulndb"] .site-shell {
  display: block;
}

body[data-template="aivulndb"] .chrome {
  width: min(100%, var(--container));
  max-width: var(--container);
  padding: 0 1.25rem;
}

body[data-template="aivulndb"] .site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(210, 220, 238, .7);
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(18px);
}

body[data-template="aivulndb"] .site-header::before,
body[data-template="aivulndb"] .site-footer::before {
  display: none;
}

body[data-template="aivulndb"] .site-header .chrome {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0;
  padding-bottom: 0;
}

body[data-template="aivulndb"] .brand {
  display: inline-flex;
  align-items: center;
  gap: .72rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 760;
  line-height: 1.1;
  letter-spacing: 0;
}

body[data-template="aivulndb"] .brand-mark {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 10px 28px rgba(54,85,246,.32);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 760;
}

body[data-template="aivulndb"] .brand-name {
  font-weight: 760;
}

body[data-template="aivulndb"] .brand-kicker,
body[data-template="aivulndb"] .footer-kicker {
  color: var(--muted);
  font-family: inherit;
  font-size: .72rem;
  font-weight: 680;
  letter-spacing: .02em;
  text-transform: none;
}

body[data-template="aivulndb"] .brand:hover .brand-name {
  color: #233fd4;
}

body[data-template="aivulndb"] .nav-row {
  display: flex;
  align-items: center;
  gap: .35rem;
  justify-content: flex-end;
  font-family: inherit;
  font-size: .93rem;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

body[data-template="aivulndb"] .nav-row a,
body[data-template="aivulndb"] .footer-links a {
  border: 0;
  border-radius: 999px;
  color: #526174;
  padding: .62rem .78rem;
}

body[data-template="aivulndb"] .nav-row a::before {
  display: none;
}

body[data-template="aivulndb"] .nav-row a:hover,
body[data-template="aivulndb"] .footer-links a:hover {
  background: var(--primary-soft);
  color: #233fd4;
}

body[data-template="aivulndb"] .stack,
body[data-template="aivulndb"] .page-body,
body[data-template="aivulndb"] .article-shell {
  max-width: var(--container);
  padding: clamp(24px, 5vw, 58px) 1.25rem 0;
  font-family: inherit;
}

body[data-template="aivulndb"] .home-stack {
  gap: clamp(18px, 3vw, 30px);
}

body[data-template="aivulndb"] .hero,
body[data-template="aivulndb"] .section-block,
body[data-template="aivulndb"] .lead-card,
body[data-template="aivulndb"] .article-card,
body[data-template="aivulndb"] .row-link,
body[data-template="aivulndb"] .article-header,
body[data-template="aivulndb"] .related-inline,
body[data-template="aivulndb"] .related-block,
body[data-template="aivulndb"] .related-card,
body[data-template="aivulndb"] .related-inline-link,
body[data-template="aivulndb"] .locale-chip,
body[data-template="aivulndb"] .notice-panel,
body[data-template="aivulndb"] .author-bio {
  border-radius: var(--radius-lg);
}

body[data-template="aivulndb"] .hero,
body[data-template="aivulndb"] .article-header {
  overflow: hidden;
  border: 1px solid rgba(206, 216, 235, .82);
  background: linear-gradient(145deg, rgba(255,255,255,.94), rgba(246,248,255,.78));
  box-shadow: var(--shadow);
  padding: clamp(1.4rem, 4vw, 2.4rem);
}

body[data-template="aivulndb"] .hero::before,
body[data-template="aivulndb"] .article-header::before {
  display: none;
}

body[data-template="aivulndb"] .hero-intro {
  gap: 12px;
  max-width: 74ch;
  padding-left: 0;
}

body[data-template="aivulndb"] .hero-intro::before,
body[data-template="aivulndb"] .section-block::before,
body[data-template="aivulndb"] .lead-card::before,
body[data-template="aivulndb"] .article-card::before,
body[data-template="aivulndb"] .row-link::before,
body[data-template="aivulndb"] .related-inline::before,
body[data-template="aivulndb"] .related-block::before {
  display: none;
}

body[data-template="aivulndb"] h1,
body[data-template="aivulndb"] h2,
body[data-template="aivulndb"] h3,
body[data-template="aivulndb"] .lead-card strong,
body[data-template="aivulndb"] .article-card strong,
body[data-template="aivulndb"] .row-link strong,
body[data-template="aivulndb"] .related-copy strong,
body[data-template="aivulndb"] .rich-copy h2,
body[data-template="aivulndb"] .rich-copy h3 {
  font-family: inherit;
  color: var(--ink);
  letter-spacing: 0;
  max-width: none;
  overflow-wrap: normal;
  text-wrap: wrap;
  word-break: normal;
  hyphens: manual;
}

body[data-template="aivulndb"] h1,
body[data-template="aivulndb"] .hero h1 {
  font-size: clamp(2.25rem, 6vw, 2.8rem);
  line-height: 1.04;
}

body[data-template="aivulndb"] .article h1 {
  font-size: clamp(2.1rem, 5vw, 2.8rem);
  line-height: 1.04;
}

body[data-template="aivulndb"] .lede,
body[data-template="aivulndb"] .section-head p,
body[data-template="aivulndb"] .article-header > .lede {
  max-width: 72ch;
  color: #435064;
  font-size: clamp(1.03rem, 1.7vw, 1.22rem);
  line-height: 1.6;
}

body[data-template="aivulndb"] .eyebrow,
body[data-template="aivulndb"] .kicker {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: #2f45d4;
  background: rgba(54,85,246,.09);
  border: 1px solid rgba(54,85,246,.18);
  border-radius: 999px;
  padding: .38rem .72rem;
  font-family: inherit;
  font-size: .82rem;
  font-weight: 760;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body[data-template="aivulndb"] .eyebrow::before,
body[data-template="aivulndb"] .kicker::before {
  content: "";
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 5px rgba(34,197,94,.12);
}

body[data-template="aivulndb"] .lead-card,
body[data-template="aivulndb"] .section-block,
body[data-template="aivulndb"] .article-card,
body[data-template="aivulndb"] .row-link,
body[data-template="aivulndb"] .related-inline,
body[data-template="aivulndb"] .related-block,
body[data-template="aivulndb"] .related-card,
body[data-template="aivulndb"] .related-inline-link,
body[data-template="aivulndb"] .notice-panel,
body[data-template="aivulndb"] .author-bio,
body[data-template="aivulndb"] .rich-copy pre,
body[data-template="aivulndb"] .rich-copy table,
body[data-template="aivulndb"] .rich-copy blockquote,
body[data-template="aivulndb"] .rich-copy aside,
body[data-template="aivulndb"] .rich-copy dl[data-wf-style~="stat-grid"] {
  border: 1px solid rgba(206, 216, 235, .78);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

body[data-template="aivulndb"] .lead-card,
body[data-template="aivulndb"] .article-card,
body[data-template="aivulndb"] .row-link,
body[data-template="aivulndb"] .related-card,
body[data-template="aivulndb"] .related-inline-link {
  box-shadow: 0 12px 30px rgba(18,32,66,.06);
}

body[data-template="aivulndb"] .lead-card:hover,
body[data-template="aivulndb"] .article-card:hover,
body[data-template="aivulndb"] .row-link:hover,
body[data-template="aivulndb"] .related-card:hover,
body[data-template="aivulndb"] .related-inline-link:hover {
  border-color: #bac6ff;
  background: rgba(255,255,255,.92);
  box-shadow: 0 16px 38px rgba(18,32,66,.1);
  transform: translateY(-1px);
}

body[data-template="aivulndb"] .lead-copy {
  gap: 12px;
  padding: clamp(18px, 3vw, 30px);
}

body[data-template="aivulndb"] .lead-card strong {
  font-size: clamp(1.55rem, 3vw, 2.5rem);
  line-height: 1.08;
}

body[data-template="aivulndb"] .article-card {
  gap: 10px;
  padding: 1rem;
  border-top-width: 1px;
}

body[data-template="aivulndb"] .section-block {
  margin-top: 1rem;
  padding: clamp(1.15rem, 3vw, 1.65rem);
}

body[data-template="aivulndb"] .row-link {
  margin-top: 1rem;
  padding: 1rem;
}

body[data-template="aivulndb"] .summary,
body[data-template="aivulndb"] .row-link p,
body[data-template="aivulndb"] .meta-line,
body[data-template="aivulndb"] .row-meta,
body[data-template="aivulndb"] .rich-copy figcaption,
body[data-template="aivulndb"] .rich-copy caption {
  color: #49566a;
}

body[data-template="aivulndb"] .meta-pill,
body[data-template="aivulndb"] .locale-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.68);
  color: #536173;
}

body[data-template="aivulndb"] .meta-row a,
body[data-template="aivulndb"] .pager a,
body[data-template="aivulndb"] .text-link,
body[data-template="aivulndb"] .rich-copy a {
  color: #243fd5;
  font-weight: 760;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

body[data-template="aivulndb"] .article-shell {
  max-width: 1120px;
}

body[data-template="aivulndb"] .article {
  width: 100%;
}

body[data-template="aivulndb"] .article-header {
  margin-top: 0;
  margin-bottom: 1rem;
}

body[data-template="aivulndb"] .article-image {
  margin: 0;
  border-radius: var(--radius-lg);
}

body[data-template="aivulndb"] .article-flow {
  width: 100%;
  margin-top: 0;
}

body[data-template="aivulndb"] .article-flow > .rich-copy,
body[data-template="aivulndb"] .page-body > .rich-copy {
  max-width: 78ch;
  color: #49566a;
  font-family: inherit;
  font-size: 1.04rem;
  line-height: 1.72;
}

body[data-template="aivulndb"] .rich-copy h2 {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

body[data-template="aivulndb"] .rich-copy h3 {
  font-size: 1.18rem;
}

body[data-template="aivulndb"] .rich-copy pre {
  background: #111827;
  color: #e5e7eb;
}

body[data-template="aivulndb"] .rich-copy blockquote,
body[data-template="aivulndb"] .rich-copy aside {
  border-left: 4px solid var(--primary);
  border-radius: 0 16px 16px 0;
  background: #f4f6ff;
  color: #435064;
}

body[data-template="aivulndb"] .related-inline,
body[data-template="aivulndb"] .related-block {
  background: linear-gradient(145deg, rgba(255,255,255,.94), rgba(246,248,255,.78));
}

body[data-template="aivulndb"] .pager {
  align-items: center;
  border-top-color: var(--line);
}

body[data-template="aivulndb"] .site-footer {
  margin-top: clamp(48px, 8vw, 96px);
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.72);
  color: var(--muted);
  font-family: inherit;
}

body[data-template="aivulndb"] .site-footer strong {
  font-family: inherit;
  color: var(--ink);
}

@media (min-width: 720px) {
  body[data-template="aivulndb"] .lead-card:has(.lead-media) {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.78fr);
  }

  body[data-template="aivulndb"] .lead-card:has(.lead-media) .lead-media {
    border-right: 0;
    border-left: 1px solid var(--line);
    order: 2;
  }

  body[data-template="aivulndb"] .card-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  }

  body[data-template="aivulndb"] .row-link:has(.row-image) {
    grid-template-columns: minmax(0, 1fr) clamp(118px, 15vw, 168px);
  }

  body[data-template="aivulndb"] .row-image {
    width: clamp(118px, 15vw, 168px);
    height: 104px;
  }
}

@media (max-width: 760px) {
  body[data-template="aivulndb"] .site-header .chrome {
    align-items: flex-start;
    flex-direction: column;
    gap: .65rem;
    padding-top: .7rem;
    padding-bottom: .7rem;
  }

  body[data-template="aivulndb"] .nav-row {
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    padding-bottom: .12rem;
  }

  body[data-template="aivulndb"] .nav-row a {
    flex: 0 0 auto;
  }
}

@media (max-width: 640px) {
  body[data-template="aivulndb"] .site-header .chrome {
    min-height: 64px;
  }

  body[data-template="aivulndb"] .brand-kicker {
    display: none;
  }

  body[data-template="aivulndb"] .stack,
  body[data-template="aivulndb"] .page-body,
  body[data-template="aivulndb"] .article-shell {
    padding-right: 16px;
    padding-left: 16px;
  }

  body[data-template="aivulndb"] .hero,
  body[data-template="aivulndb"] .article-header,
  body[data-template="aivulndb"] .section-block {
    padding: 18px;
  }

  body[data-template="aivulndb"] h1,
  body[data-template="aivulndb"] .hero h1,
  body[data-template="aivulndb"] .article h1 {
    max-width: none;
    font-size: clamp(2.1rem, 12vw, 2.8rem);
    line-height: 1.04;
  }

  body[data-template="aivulndb"] .row-image {
    display: block;
    width: 100%;
    height: 168px;
  }
}
