:root {
  --navy: #0A1628;
  --navy-2: #12253f;
  --accent: #2B6CB0;
  --accent-soft: #e8f0ff;
  --text: #142033;
  --muted: #5b6b7c;
  --line: #d9e2ec;
  --bg: #f7f9fc;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 31, 58, 0.08);
  --max: 1120px;
  --warn: #8a5a00;
  --warn-bg: #fff7e8;
  --stale: #9a3412;
  --stale-bg: #ffedd5;
  --ok: #166534;
  --ok-bg: #dcfce7;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
code { font-size: 0.9em; background: var(--accent-soft); padding: 0.1em 0.35em; border-radius: 4px; }
.wrap { width: min(var(--max), calc(100% - 2.5rem)); margin-inline: auto; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.eyebrow.light { color: #9fc0ff; }
h1, h2, h3 { font-family: "Plus Jakarta Sans", Inter, sans-serif; line-height: 1.15; margin: 0 0 0.75rem; color: var(--navy); }
h1 { font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 2.5vw, 2rem); font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1rem; color: var(--muted); }
.accent { color: var(--accent); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.8rem 1.15rem; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  border: 1.5px solid transparent; transition: 0.15s ease; cursor: pointer;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { filter: brightness(1.05); color: white; }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.45); color: white; }
.btn-outline:hover { background: rgba(255,255,255,0.08); color: white; }
.btn-ghost { background: var(--accent-soft); color: var(--accent); }
.btn-ghost:hover { background: #d9e8ff; color: var(--accent); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 5rem; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.65rem; color: var(--navy); }
.brand:hover { color: var(--navy); }

.brand-wordmark {
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--navy);
  white-space: nowrap;
}
.foot-wordmark {
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: white;
}

.brand picture { display: block; line-height: 0; }
.brand-logo {
  display: block;
  height: 72px; /* v3 wordmark-dominant lockup */
  width: auto !important;
  max-width: 420px;
  object-fit: contain;
  object-position: left center;
}
.foot-logo {
  display: block;
  height: 64px; /* v3 footer lockup */
  width: auto !important;
  max-width: min(380px, 70vw);
  object-fit: contain;
  object-position: left center;
}
.nav-links { display: flex; gap: 1.25rem; align-items: center; font-size: 0.92rem; color: var(--muted); font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--navy); }
.nav-cta { padding: 0.55rem 0.95rem; font-size: 0.88rem; }
.menu-toggle { display: none; background: none; border: 0; font-size: 1.4rem; color: var(--navy); cursor: pointer; }
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 500px at 80% -10%, #2f6fed55, transparent),
              linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, #0a1830 100%);
  color: white; padding: 2rem 0 1.75rem;
}
.hero h1, .hero h2 { color: white; }
.hero p { color: #c9d7ea; font-size: 1.05rem; max-width: 38rem; }
.hero .eyebrow { color: #9fc0ff; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 2rem; align-items: start; }
.hero-aside {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius); padding: 1.35rem 1.4rem;
}
.aside-title { color: white; font-size: 1rem; margin-bottom: 0.75rem; }
.aside-list { margin: 0; padding-left: 1.1rem; color: #c9d7ea; font-size: 0.92rem; }
.aside-list li { margin-bottom: 0.45rem; }
.search-bar {
  display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.5rem;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px; padding: 0.4rem 0.4rem 0.4rem 1.1rem; max-width: 34rem;
}
.search-bar input {
  flex: 1; min-width: 12rem; border: 0; background: transparent; color: white;
  font: inherit; outline: none;
}
.search-bar input::placeholder { color: #9fb0c5; }
.rating-strip {
  background: var(--navy-2); color: white; padding: 44px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.strip-head { margin-bottom: 1rem; }
.strip-head p { color: #b7c8de; margin: 0; font-size: 0.92rem; }
.rating-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
.rating-chip {
  display: grid; gap: 0.2rem; padding: 0.9rem 1rem; border-radius: 12px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  color: white; font-size: 0.88rem;
}
.rating-chip:hover { background: rgba(255,255,255,0.1); color: white; }
.rating-chip .chip-meta { color: #9fb0c5; font-size: 0.78rem; }
.rating-chip.stale { border-color: #f59e0b66; }
.phero {
  background: linear-gradient(160deg, var(--navy), var(--navy-2));
  color: white; padding: 1.75rem 0 1.5rem;
}
.phero h1 { color: white; }
.phero p { color: #c9d7ea; max-width: 40rem; }
.phero .eyebrow { color: #9fc0ff; }
.phero.compact { padding: 1.5rem 0 1.35rem; max-height: 240px; }
.crumb { display: inline-block; color: #9fc0ff; font-size: 0.9rem; margin-bottom: 0.75rem; font-weight: 600; }
.crumb:hover { color: white; }
section.block { padding: 80px 0; } /* HOMEPAGE_LAYOUT: 72–96px */
section.block.tight { padding: 64px 0 80px; }
section.block.alt { padding-top: 0; }
.section-head {
  display: flex; justify-content: space-between; gap: 1.5rem; align-items: end;
  flex-wrap: wrap; margin-bottom: 1.5rem;
}
.section-head p { margin-bottom: 0; max-width: 36rem; }
.split { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 2.5rem; align-items: start; }
.dual { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.card-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem; box-shadow: var(--shadow);
}
.card p { margin: 0; font-size: 0.92rem; }
.card-link { display: block; transition: 0.15s ease; color: inherit; }
.card-link:hover { border-color: #b8c9ff; transform: translateY(-2px); color: inherit; }
.card-meta {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.5rem;
}
.card-cta { display: inline-block; margin-top: 0.9rem; color: var(--accent); font-weight: 600; font-size: 0.9rem; }
.parent-line { font-size: 0.88rem !important; margin-bottom: 0.75rem !important; }
.rating-line { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.5rem 0 0.85rem; }
.panel { border-radius: calc(var(--radius) + 4px); padding: 1.75rem; min-height: 100%; }
.panel-dark { background: var(--navy); color: white; }
.panel-dark p, .panel-dark li { color: #c9d7ea; }
.panel-dark h2 { color: white; }
.panel-light { background: var(--white); border: 1px solid var(--line); }
.quick-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 1.25rem; }
.quick-links a {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px; padding: 0.9rem 1rem; font-weight: 600; font-size: 0.92rem; color: white;
}
.quick-links a:hover { background: rgba(255,255,255,0.14); color: white; }
.news-list { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.news-list li { padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.news-list li:last-child { border-bottom: 0; }
.news-list a { display: grid; gap: 0.2rem; }
.news-list .meta { font-size: 0.78rem; color: var(--muted); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.news-list strong { font-size: 0.98rem; color: var(--text); }
.muted-inline { color: var(--muted); font-size: 0.9rem; }
.filters {
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 0.75rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem; margin-bottom: 1rem; box-shadow: var(--shadow);
}
.filters label { display: grid; gap: 0.35rem; font-size: 0.78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.filters input, .filters select {
  font: inherit; padding: 0.65rem 0.75rem; border-radius: 10px; border: 1px solid var(--line);
  color: var(--text); background: var(--bg); text-transform: none; letter-spacing: normal; font-weight: 500;
}
.filter-count { font-size: 0.9rem; color: var(--muted); margin-bottom: 1rem; }
.result-list { display: grid; gap: 0.85rem; }
.result-row {
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.15rem 1.25rem; box-shadow: var(--shadow);
}
.result-main h2 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.result-main h2 a:hover { color: var(--accent); }
.result-main p { margin-bottom: 0.65rem; font-size: 0.92rem; }
.result-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.pill {
  display: inline-flex; align-items: center; padding: 0.25rem 0.65rem; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--line); font-size: 0.78rem; font-weight: 600; color: var(--muted);
}
.pill.muted { font-weight: 500; }
.badge {
  display: inline-flex; align-items: center; padding: 0.25rem 0.65rem; border-radius: 999px;
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
}
.badge-current, .badge-active, .badge-fresh { background: var(--ok-bg); color: var(--ok); }
.badge-rating { background: var(--accent-soft); color: var(--accent); }
.badge-outlook { background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.badge-stale { background: var(--stale-bg); color: var(--stale); }
.empty-state {
  text-align: center; padding: 2.5rem 1rem; background: var(--white);
  border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted);
}
.empty-state a { color: var(--accent); font-weight: 600; }
.fields { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.fields th, .fields td { text-align: left; vertical-align: top; padding: 0.9rem 1rem; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.fields th { width: 34%; color: var(--navy); font-weight: 700; background: #f0f4fa; }
.fields tr:last-child th, .fields tr:last-child td { border-bottom: 0; }
.prose-grid { display: grid; grid-template-columns: 1.5fr 0.7fr; gap: 1.5rem; align-items: start; }
.side-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem; margin-bottom: 1rem; box-shadow: var(--shadow);
}
.side-card p { font-size: 0.9rem; margin-bottom: 0.75rem; }
.plain-list { margin: 0; padding-left: 1.1rem; color: var(--muted); }
.plain-list a { color: var(--accent); font-weight: 600; }
.callout {
  margin-top: 1.25rem; padding: 1.1rem 1.2rem; border-radius: 12px;
  background: var(--accent-soft); border: 1px solid #c9dbff;
}
.callout p { margin: 0.35rem 0 0; font-size: 0.92rem; }
.callout.warn { background: var(--warn-bg); border-color: #f0d19a; }
.callout.warn strong { color: var(--warn); }
.reading { max-width: 44rem; }
.reading h2 { margin-top: 1.75rem; }
.reading ul, .reading ol { color: var(--muted); }
.glossary { display: grid; gap: 0.85rem; }
.glossary dt {
  font-family: "Plus Jakarta Sans", sans-serif; font-weight: 700; color: var(--navy);
  margin-top: 0.5rem;
}
.glossary dd {
  margin: 0.25rem 0 0; padding: 0.85rem 1rem; background: var(--white);
  border: 1px solid var(--line); border-radius: 12px; color: var(--muted);
}
.cta-band { padding: 2.5rem 0 3rem; }
.cta-box {
  background: var(--white); border: 1px solid var(--line); border-radius: 20px;
  padding: 2.25rem; box-shadow: var(--shadow);
  display: flex; justify-content: space-between; gap: 1.5rem; align-items: center; flex-wrap: wrap;
}
.cta-box p { margin: 0; max-width: 36rem; }
footer { background: #071526; color: #9fb0c5; padding: 3rem 0 2rem; font-size: 0.92rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 1.5rem; margin-bottom: 2rem; }
.foot-grid h3 { color: white; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.9rem; }
.foot-grid a { display: block; color: #9fb0c5; margin-bottom: 0.45rem; }
.foot-grid a:hover { color: white; }
.foot-brand { color: white; margin-bottom: 0.35rem; }
.foot-brand picture { display: block; line-height: 0; margin-bottom: 0.85rem; }
.foot-blurb { color: #9fb0c5; margin: 0; }
.legal {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1.25rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.85rem;
}
:focus-visible { outline: 3px solid #8eb6ff; outline-offset: 2px; }

/* Solid institutional hero — SAC-like, no empty-hallway stock */
.hero.hero-solid {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, #0a1830 100%);
  padding: 2rem 0 1.75rem;
  min-height: 0;
  max-height: 340px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero.hero-solid h1 {
  font-size: clamp(1.45rem, 2.6vw, 2.05rem);
  margin-bottom: 0.45rem;
}
.hero.hero-solid p {
  font-size: 0.95rem;
  margin-bottom: 0.65rem;
  max-width: 34rem;
}
.hero.hero-solid .eyebrow { margin-bottom: 0.4rem; }
.hero.hero-solid .search-bar { margin-top: 0.75rem; max-width: 30rem; }
.hero.hero-solid .btn-row { margin-top: 0.75rem; }
.hero.hero-solid .btn { padding: 0.55rem 0.95rem; font-size: 0.88rem; }
.hero.hero-solid .hero-grid { grid-template-columns: 1fr; gap: 0; }
.hero.hero-solid .accent { color: #9fc0ff; }

/* Photoreal hero / section headers — short bands only (Learn article heroes) */
.hero.hero-photo {
  background: var(--navy);
  padding: 1.75rem 0 1.5rem;
  min-height: 0;
  max-height: 340px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero.hero-short {
  max-height: none;
  padding: 72px 0 64px; /* HOMEPAGE_LAYOUT: hero 64–80px */
}
.hero.hero-short .search-bar { display: none; }

/* Homepage split hero — text left / purposeful image right (not full-bleed wallpaper) */
.hero.hero-split {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, #0a1830 100%);
  max-height: none;
  padding: 64px 0 56px;
  display: block;
  position: relative;
  overflow: hidden;
}
.hero.hero-split .hero-media,
.hero.hero-split .hero-scrim { display: none; }
.hero.hero-split .hero-grid {
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}
.hero.hero-split .hero-copy { max-width: 36rem; }
.hero.hero-split h1 {
  font-size: clamp(2.05rem, 4.2vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 0.85rem;
}
.hero.hero-split p {
  font-size: clamp(1.08rem, 1.55vw, 1.28rem);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  max-width: 34rem;
  color: #d5e2f3;
}
.hero.hero-split .eyebrow {
  margin-bottom: 0.65rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}
.hero.hero-split .btn-row { margin-top: 0.35rem; gap: 0.85rem; }
.hero.hero-split .btn { padding: 0.7rem 1.15rem; font-size: 0.95rem; }
.hero.hero-split .accent { color: #9fc0ff; }
.hero-visual {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 18px 40px rgba(0,0,0,0.28);
  min-height: 320px;
  aspect-ratio: 2 / 1;
}
.hero-visual picture,
.hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
@media (max-width: 960px) {
  .hero.hero-split .hero-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .hero-visual { min-height: 220px; max-height: 320px; aspect-ratio: 16 / 10; }
}
@media (max-width: 640px) {
  .hero.hero-split { padding: 40px 0 36px; }
  .hero.hero-split h1 { font-size: clamp(1.75rem, 7vw, 2.25rem); }
  .hero.hero-split p { font-size: 1.05rem; }
  .hero-visual { min-height: 180px; max-height: 240px; }
}

.hero-media, .phero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media picture, .hero-media img,
.phero-media picture, .phero-media img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: left center;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, #0A1628e8 0%, #0A1628b8 42%, #0A162866 72%, transparent 100%),
              linear-gradient(180deg, #0A162855 0%, #0A162899 100%);
  pointer-events: none;
}
.phero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, #0A1628ef 0%, #0A1628aa 50%, #0A162866 100%),
              radial-gradient(ellipse at left center, #0A1628cc 0%, transparent 70%);
  pointer-events: none;
}
.hero.hero-photo .wrap,
.phero.phero-photo .wrap {
  position: relative;
  z-index: 2;
}
.hero.hero-photo h1 {
  font-size: clamp(1.45rem, 2.6vw, 2.05rem);
  margin-bottom: 0.45rem;
}
.hero.hero-photo p {
  font-size: 0.95rem;
  margin-bottom: 0.65rem;
  max-width: 34rem;
}
.hero.hero-photo .eyebrow { margin-bottom: 0.4rem; }
.hero.hero-photo .search-bar { margin-top: 0.75rem; max-width: 30rem; }
.hero.hero-photo .btn-row { margin-top: 0.75rem; }
.hero.hero-photo .btn { padding: 0.55rem 0.95rem; font-size: 0.88rem; }
.hero-copy { max-width: 38rem; }
.hero.hero-photo .accent { color: #9fc0ff; }
.hero.hero-photo .hero-grid {
  grid-template-columns: 1fr;
  gap: 0;
  align-items: center;
}
.phero.phero-photo {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  padding: 1.75rem 0 1.5rem;
  min-height: 0;
  max-height: 280px;
  display: flex;
  align-items: center;
}
.phero.phero-photo h1 {
  font-size: clamp(1.4rem, 2.4vw, 1.95rem);
  margin-bottom: 0.4rem;
}
.phero.phero-photo p {
  font-size: 0.95rem;
  margin-bottom: 0;
  max-width: 38rem;
}
.phero.phero-photo.compact {
  min-height: 0;
  max-height: 220px;
  padding: 1.35rem 0 1.2rem;
}
.card-with-thumb {
  padding: 0;
  overflow: hidden;
}
.card-with-thumb .card-thumb {
  margin: 0 0 0.65rem;
  height: 140px;
  max-height: 160px;
  aspect-ratio: auto;
  overflow: hidden;
  background: var(--navy-2);
  border-radius: var(--radius) var(--radius) 0 0;
}
.card-with-thumb .card-thumb picture,
.card-with-thumb .card-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.card-with-thumb .card-meta,
.card-with-thumb h2,
.card-with-thumb h3,
.card-with-thumb p,
.card-with-thumb .card-cta {
  padding-left: 1.1rem;
  padding-right: 1.1rem;
}
.card-with-thumb .card-meta { padding-top: 0; }
.card-with-thumb h2, .card-with-thumb h3 { margin-top: 0; font-size: 1.02rem; }
.card-with-thumb p { padding-bottom: 0.25rem; font-size: 0.88rem; }
.card-with-thumb .card-cta { padding-bottom: 1.1rem; }
.card-with-thumb > h3 { padding-top: 0; }
/* home learn cards: h3/p without card-meta */
.card-grid .card-with-thumb h3 { padding-top: 0; }
.card-grid .card-with-thumb p { padding-bottom: 1rem; }
.article-figure {
  margin: 0 0 1.25rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--navy-2);
  max-height: 180px;
}
.article-figure picture, .article-figure img {
  display: block;
  width: 100%;
  height: 180px;
  max-height: 180px;
  object-fit: cover;
  object-position: center;
}
.article-figure-secondary { display: none; }
.panel-with-media { position: relative; overflow: hidden; }
.panel-with-media .panel-media { display: none; }
.panel-with-media > *:not(.panel-media) { position: relative; z-index: 1; }


.reading-wide { max-width: 52rem; }
.reading .table-wrap, .reading-wide .table-wrap {
  overflow-x: auto; margin: 1rem 0 1.5rem;
  border: 1px solid var(--line); border-radius: 12px; background: var(--white);
}
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.data-table th, .data-table td {
  text-align: left; vertical-align: top; padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--line);
}
.data-table th { background: #f0f4fa; color: var(--navy); font-weight: 700; }
.data-table tr:last-child td { border-bottom: 0; }
.reading h2, .reading-wide h2 { margin-top: 2rem; scroll-margin-top: 5rem; }
.reading h3, .reading-wide h3 { margin-top: 1.25rem; color: var(--navy); }
.reading a, .reading-wide a { color: var(--accent); font-weight: 600; }
.reading a:hover, .reading-wide a:hover { text-decoration: underline; }
.callout-flag { border-color: #f59e0b; background: #fff7e8; }
.callout-flag strong { color: var(--warn); }
.reading ol li, .reading-wide ol li, .reading ul li, .reading-wide ul li { margin-bottom: 0.35rem; }

@media (max-width: 960px) {
  .hero-grid, .split, .dual, .card-grid-3, .prose-grid, .rating-chips, .filters, .foot-grid { grid-template-columns: 1fr 1fr; }
  .filters { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .menu-toggle { display: inline-block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 4rem;
    background: white; border-bottom: 1px solid var(--line); padding: 1rem 1.25rem 1.25rem; align-items: flex-start;
  }
  .nav { position: relative; }
  .result-row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .hero-grid, .split, .dual, .card-grid, .card-grid-2, .card-grid-3, .prose-grid, .rating-chips, .filters, .foot-grid, .quick-links { grid-template-columns: 1fr; }
  .search-bar { border-radius: 16px; }
  .hero { padding: 1.5rem 0 1.35rem; }
  .hero.hero-photo {
    max-height: 240px;
    padding: 1.25rem 0 1.1rem;
  }
  .phero.phero-photo {
    max-height: 200px;
    padding: 1.15rem 0 1rem;
  }
  .phero.phero-photo.compact { max-height: 180px; }
  .brand-logo { height: 56px; max-width: min(340px, 72vw); }
  .foot-logo { height: 48px; max-width: min(320px, 70vw); }
  .card-with-thumb .card-thumb { height: 120px; max-height: 140px; }
  .nav { min-height: 3.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}


/* Learn diagrams / badges — purposeful, not giant stock */
.learn-figure {
  margin: 1.25rem 0 1.5rem;
  padding: 0.75rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}
.learn-figure img {
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
  max-height: 420px;
  margin: 0 auto;
  object-fit: contain;
}
.learn-badge {
  margin: 1rem 0 1.25rem;
  text-align: left;
}
.learn-badge img {
  display: block;
  height: auto;
  max-height: 96px;
  width: auto;
  max-width: min(360px, 100%);
  object-fit: contain;
}
.reading-wide .learn-figure img { max-width: 800px; }

@media (max-width: 640px) {
  .hero.hero-solid { max-height: 280px; padding: 1.35rem 0 1.2rem; }
  .learn-figure img { max-height: 280px; }
  .learn-badge img { max-height: 72px; }
}


/* SAC-style task grid under home hero — HOMEPAGE_LAYOUT */
.task-band { padding: 64px 0 24px; }
.task-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px; /* 24–32px */
}
.task-card {
  display: grid;
  gap: 0.35rem;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 1px 2px rgba(10, 22, 40, 0.04);
  color: inherit;
  transition: 0.15s ease;
}
.task-card:hover {
  border-color: #b8c9ff;
  transform: translateY(-2px);
  color: inherit;
}
.task-card h2 {
  font-size: 1.05rem;
  margin: 0;
}
.task-card p {
  margin: 0;
  font-size: 0.88rem;
}
.task-card__icon {
  width: 56px;
  height: 56px;
  display: block;
  margin-bottom: 16px;
  object-fit: contain;
}

/* Short secondary support strip — restrained document imagery, not a hero wallpaper */
.support-strip { padding: 0 0 64px; background: var(--bg); }
.support-strip__inner {
  position: relative; isolation: isolate; overflow: hidden; min-height: 200px;
  border-radius: 18px; background: var(--navy);
}
.support-strip__media, .support-strip__scrim { position: absolute; inset: 0; }
.support-strip__media { z-index: 0; }
.support-strip__media img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: center;
}
.support-strip__scrim {
  z-index: 1;
  background: linear-gradient(90deg, rgba(10,22,40,0.92) 0%, rgba(10,22,40,0.72) 48%, rgba(10,22,40,0.28) 100%);
}
.support-strip__copy { position: relative; z-index: 2; max-width: 38rem; padding: 2.25rem 2.5rem; }
.support-strip h2 { color: white; margin-bottom: 0.5rem; }
.support-strip p { color: #d8e3f2; max-width: 34rem; margin-bottom: 1.1rem; }
@media (min-width: 768px) {
  .task-card__icon { width: 64px; height: 64px; }
}
/* legacy letter tile (other pages may still reference) */
.task-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

/* Rating strip logo cards — 56×56 white rounded squares */
.rating-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.rating-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  color: white;
  transition: 0.15s ease;
}
.rating-card:hover { background: rgba(255,255,255,0.1); color: white; }
.rating-card.stale { border-color: #f59e0b66; }
.rating-card__logo-wrap {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(10, 22, 40, 0.06);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.rating-card__logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.rating-card__body { min-width: 0; display: grid; gap: 0.15rem; }
.rating-card__name {
  font-weight: 600;
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.25;
}
.rating-card__rating {
  color: #9fc0ff;
  font-size: 0.85rem;
  font-weight: 500;
}
.rating-card .chip-meta { color: #9fb0c5; font-size: 0.78rem; }

/* News strip pattern (placeholder OK) */
.news-strip { padding: 72px 0; background: var(--bg); }
.news-strip__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.news-card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 20px 22px;
}
.news-card--placeholder { opacity: 0.85; }
.news-card__title {
  color: #0A1628;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card__date { color: #64748B; font-size: 0.8125rem; margin: 8px 0 6px; }
.news-card__dek {
  color: #475569;
  font-size: 0.9375rem;
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 960px) {
  .task-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .news-strip__grid { grid-template-columns: 1fr 1fr; }
  .task-band { padding: 48px 0 16px; }
  .hero.hero-short { padding: 48px 0 40px; }
  .news-strip { padding: 48px 0; }
  section.block { padding: 64px 0; }
  .rating-strip { padding: 32px 0; }
}
@media (max-width: 640px) {
  .task-grid { grid-template-columns: 1fr; gap: 16px; }
  .support-strip { padding-bottom: 40px; }
  .support-strip__inner { min-height: 240px; }
  .support-strip__copy { padding: 1.5rem; }
  .news-strip__grid { grid-template-columns: 1fr; }
  .hero.hero-short { max-height: none; padding: 40px 0 32px; }
  .task-band { padding: 40px 0 12px; }
  .news-strip { padding: 40px 0; }
  section.block { padding: 48px 0; }
  .rating-strip { padding: 24px 0; }
}


/* Underwriter profile market badges + short header band */
.uw-market-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.75rem 0 0.35rem; }
.uw-market-badge { display: block; height: 28px; width: auto; object-fit: contain; }
.phero.phero-photo.compact .phero-media img { object-position: center center; }
