@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&display=swap');

/* =========================================================================
   v4.3 staging overrides
   - Two-row masthead (replaces #staging-nav + .masthead)
   - Sub-nav row per domain
   - Full-width .related-stats grid (replaces v4.2 .related-rail)
   - Restricted pill (dormant on Tier 1 via [hidden])
   - Body padding-top neutralised (mastheads scroll with content)
   ========================================================================= */

body { padding-top: 0 !important; }

/* Hide leftover v4.1/v4.2 chrome if browser cache serves an older HTML */
#staging-nav, header.masthead { display: none !important; }

/* =====================  MASTHEAD V3  ===================== */

.masthead-v3 {
  background: #141A24;
  color: #E8E0D4;
  border-bottom: 1px solid rgba(184, 160, 122, 0.2);
}
.masthead-v3 .mh-row {
  display: flex;
  align-items: center;
  padding: 0 40px;
}
.masthead-v3 .mh-row-primary {
  min-height: 64px;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 32px;
}
.masthead-v3 .mh-brand { flex: 0 0 auto; }
.masthead-v3 .mh-wordmark {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: #E8E0D4;
  text-decoration: none;
  white-space: nowrap;
}
.masthead-v3 .mh-wordmark sup {
  font-size: 9px;
  letter-spacing: 0;
  vertical-align: super;
  margin-left: 1px;
  color: #B8A07A;
}
.masthead-v3 .mh-wordmark:hover { color: #FFF; }

.masthead-v3 .mh-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
}
.masthead-v3 .mh-nav-link {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9A9590;
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 120ms ease, border-color 120ms ease;
  white-space: nowrap;
}
.masthead-v3 .mh-nav-link:hover { color: #E8E0D4; }
.masthead-v3 .mh-nav-link.active {
  color: #B8A07A;
  border-bottom-color: #B8A07A;
}

.masthead-v3 .mh-meta {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.masthead-v3 .mh-staging-badge {
  background: #D45555;
  color: #3D3833;
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
  white-space: nowrap;
}
.masthead-v3 .mh-substrate {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9A9590;
  white-space: nowrap;
}
.masthead-v3 .mh-restricted {
  background: #943C3C;
  color: #E8E0D4;
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
  white-space: nowrap;
}

.masthead-v3 .mh-row-sub {
  background: #141A24;
  min-height: 36px;
  border-top: 1px solid rgba(184, 160, 122, 0.10);
  padding-top: 8px;
  padding-bottom: 8px;
}
.masthead-v3 .mh-sub-nav {
  display: flex;
  flex: 1 1 auto;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.masthead-v3 .mh-sub-link {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7A7168;
  text-decoration: none;
  padding: 2px 0;
  border-bottom: 1px solid transparent;
  transition: color 120ms ease, border-color 120ms ease;
  white-space: nowrap;
}
.masthead-v3 .mh-sub-link:hover { color: #E8E0D4; }
.masthead-v3 .mh-sub-link.active {
  color: #B8A07A;
  border-bottom-color: #B8A07A;
}

@media (max-width: 768px) {
  .masthead-v3 .mh-row { padding: 0 20px; }
  .masthead-v3 .mh-row-primary {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .masthead-v3 .mh-nav { justify-content: flex-start; gap: 14px; }
  .masthead-v3 .mh-nav-link { font-size: 10px; }
  .masthead-v3 .mh-meta { gap: 8px; flex-wrap: wrap; }
  .masthead-v3 .mh-sub-nav { justify-content: flex-start; gap: 12px; }
  .masthead-v3 .mh-sub-link { font-size: 9px; letter-spacing: 0.10em; }
}

/* =====================  RELATED-STATS BLOCK  ===================== */

.related-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(184, 160, 122, 0.5);
  border-bottom: 1px solid rgba(184, 160, 122, 0.5);
  margin: 0 0 40px 0;
  position: relative;
}
.related-stats .rs-eyebrow-band {
  position: absolute;
  top: -10px;
  left: 0;
  background: #E8E0D4;
  padding: 0 10px 0 0;
  z-index: 1;
}
.related-stats .rs-eyebrow-label {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8C7754;
}
.related-stats .rs-cell {
  padding: 18px 24px;
  border-right: 1px solid rgba(184, 160, 122, 0.5);
  text-align: center;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background 140ms ease;
}
.related-stats .rs-cell:last-child { border-right: none; }
.related-stats .rs-cell:hover { background: rgba(184, 160, 122, 0.06); }
.related-stats .rs-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8C7754;
}
.related-stats .rs-stat {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.005em;
  color: #3D3833;
  line-height: 1.1;
}

@media (max-width: 768px) {
  .related-stats { grid-template-columns: 1fr; }
  .related-stats .rs-cell {
    border-right: none;
    border-bottom: 1px solid rgba(184, 160, 122, 0.5);
    padding: 16px 20px;
  }
  .related-stats .rs-cell:last-child { border-bottom: none; }
  .related-stats .rs-stat { font-size: 22px; }
}

/* Hide any v4.2 .related-rail residue */
nav.related-rail { display: none !important; }

/* =====================  CHART WATERMARK  ===================== */
.v43-centre-wm { pointer-events: none; }

/* =====================  v4.3.3: LAYOUT BUG FIX  ===================== */
/* PRE-EXISTING BUG (v4.1/v4.2): aside.cite-this-finding is a sibling of
   .frame inside <main>, and main { display: flex; justify-content: center }
   forces side-by-side layout. The cite aside crushed .frame to ~50% width on
   four pages (vendor-anchor, observability-paradox, shared-surface,
   authority-gap), making every label and stat wrap into tiny columns.
   Fix: switch main to flex-direction: column, align-items: center. .frame
   keeps its centered max-width 920px; aside stacks below at the same width. */

main {
  flex-direction: column !important;
  align-items: center !important;
}
aside.cite-this-finding {
  width: 100% !important;
  max-width: 920px !important;
  box-sizing: border-box !important;
}

/* =====================  v4.3.3: STAT LABEL BREATHING  ===================== */
/* Loosen .stat horizontal padding and label letter-spacing so labels with longer
   regulatory references (DORA Art 28 etc.) wrap cleanly to two lines max
   instead of three. With the layout fix above, columns now genuinely use
   ~287px each in a 920px frame; this breathing makes the wrap feel intentional
   rather than forced. */

.stats .stat {
  padding-left: 10px !important;
  padding-right: 10px !important;
}
.stats .stat .label {
  letter-spacing: 0.06em !important;
  line-height: 1.45 !important;
  max-width: none !important;
}

/* =====================  v4.3.3: MASTHEAD/SUB-NAV GOLD SEPARATOR  ===================== */
/* Replace the faint 0.10 opacity gold rgba between row 1 and row 2 with a
   clearer hairline at 0.45 opacity. Visible but not loud, consistent with
   the gold-deep typographic accents elsewhere on the page. */

.masthead-v3 .mh-row-primary {
  border-bottom: none !important;
}
.masthead-v3 .mh-row-sub {
  border-top: 1px solid rgba(184, 160, 122, 0.45) !important;
}

/* =====================  v4.3.4: TYPOGRAPHY HIERARCHY  ===================== */
/* Establish a real size hierarchy between primary nav (mh-nav-link) and
   sub-nav (mh-sub-link). Original 11px vs 10px is functionally identical
   under cap-height squint. Bumps:
     primary nav  11px -> 13px
     sub-nav      10px -> 11.5px
   Row heights and gaps grow proportionally so the larger text has air.
   Colours unchanged: hierarchy reads through size, not new colour rules.
   ========================================================================= */

.masthead-v3 .mh-row-primary {
  min-height: 72px !important;
  padding-top: 18px !important;
  padding-bottom: 18px !important;
  gap: 36px !important;
}

.masthead-v3 .mh-nav {
  gap: 28px !important;
}

.masthead-v3 .mh-nav-link {
  font-size: 13px !important;
  letter-spacing: 0.14em !important;
}

.masthead-v3 .mh-row-sub {
  min-height: 44px !important;
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}

.masthead-v3 .mh-sub-nav {
  gap: 24px !important;
}

.masthead-v3 .mh-sub-link {
  font-size: 11.5px !important;
  letter-spacing: 0.12em !important;
}

@media (max-width: 768px) {
  .masthead-v3 .mh-nav-link {
    font-size: 12px !important;
    letter-spacing: 0.12em !important;
  }
  .masthead-v3 .mh-sub-link {
    font-size: 10.5px !important;
    letter-spacing: 0.10em !important;
  }
}

/* =====================  v4.3.5: EMAIL CAPTURE BAND  ===================== */
/* Editorial band that injects before <footer> on visit count >= 2.
   Matches publication aesthetic: parchment, hairlines, gold-deep accents.
   No popup, no animation, no overlay. Dismissable, persistable.
   ========================================================================= */

#email-capture-band {
  background: #E8E0D4;
  border-top: 1px solid rgba(184, 160, 122, 0.5);
  border-bottom: 1px solid rgba(184, 160, 122, 0.5);
}
#email-capture-band .ec-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 40px 32px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
  position: relative;
}
#email-capture-band .ec-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8C7754;
  margin-bottom: 10px;
}
#email-capture-band .ec-headline {
  font-family: 'Crimson Pro', Georgia, serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.3;
  color: #3D3833;
  margin: 0 0 8px;
}
#email-capture-band .ec-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #7A7168;
  font-style: italic;
}
#email-capture-band .ec-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#email-capture-band .ec-input {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(184, 160, 122, 0.5);
  background: #E8E0D4;
  color: #3D3833;
  border-radius: 0;
  outline: none;
  transition: border-color 160ms ease;
}
#email-capture-band .ec-input:focus {
  border-color: #8C7754;
}
#email-capture-band .ec-submit {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: #141A24;
  color: #E8E0D4;
  border: 1px solid #1A1F2E;
  padding: 12px 24px;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
  align-self: flex-start;
}
#email-capture-band .ec-submit:hover {
  background: #8C7754;
  border-color: #8C7754;
}
#email-capture-band .ec-submit:disabled {
  background: #6B6F7E;
  border-color: #8A847E;
  cursor: not-allowed;
}
#email-capture-band .ec-fine {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: #8A847E;
  font-style: italic;
  line-height: 1.5;
}
#email-capture-band .ec-status {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  margin-top: 4px;
  line-height: 1.5;
}
#email-capture-band .ec-status-success {
  color: #3D7A4A;
}
#email-capture-band .ec-status-error {
  color: #D45555;
}
#email-capture-band .ec-dismiss {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8A847E;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 160ms ease;
}
#email-capture-band .ec-dismiss:hover {
  color: #3D3833;
}
@media (max-width: 720px) {
  #email-capture-band .ec-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 24px 24px;
  }
  #email-capture-band .ec-dismiss {
    top: 10px;
    right: 10px;
  }
}

/* =====================  v4.3.6: MAR500 HOME CHART STYLES  ===================== */
/* Diverging cool-to-warm palette for the six MAR bands:
     A pine     #1F4068    cool / governed
     B lagoon   #3D6A95
     C amber    #7A93AB    modal middle
     D coral    #B89568
     E crimson  #9A5236
     F wine     #6B1A1A    warm / least governed
   Charts are vanilla SVG. Interactivity via /_assets/charts.js.
   ============================================================================ */

:root {
  --mar-a: #1F4068;
  --mar-b: #3D6A95;
  --mar-c: #7A93AB;
  --mar-d: #B89568;
  --mar-e: #9A5236;
  --mar-f: #6B1A1A;
}

.chart-section {
  margin: 0 0 80px;
}
.chart-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8C7754;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.chart-eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #C9BFA8;
}
.chart-h2 {
  font-family: 'Crimson Pro', Georgia, serif;
  font-weight: 300;
  font-size: 36px;
  line-height: 1.18;
  letter-spacing: -0.005em;
  color: #3D3833;
  margin: 0 0 28px;
  max-width: 820px;
}
.chart-h2 em {
  font-style: italic;
  color: #8C7754;
  font-weight: 300;
}
.chart-lede {
  font-family: 'Crimson Pro', Georgia, serif;
  font-style: italic;
  font-size: 16px;
  line-height: 1.55;
  color: #7A7168;
  margin-top: 18px;
  max-width: 820px;
}

.chart-headline-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 8px;
}
.chart-display-figure .figure {
  font-family: 'Crimson Pro', Georgia, serif;
  font-weight: 300;
  font-size: 96px;
  line-height: 0.95;
  color: #1F4068;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.chart-display-figure .label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8A847E;
  line-height: 1.6;
}

.chart-bar {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
}
.chart-segment {
  cursor: pointer;
  transition: opacity 160ms ease;
}
.chart-segment:hover,
.chart-segment.locked {
  opacity: 0.82;
}
.chart-row-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  fill: #1A1F2E;
  letter-spacing: 0.04em;
}
.chart-row-count {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  fill: #6B6F7E;
  letter-spacing: 0.06em;
}
.chart-band-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.chart-band-label-on-light { fill: #1A1F2E; }
.chart-band-label-on-dark { fill: #F5EFE6; }
.chart-tick {
  font-family: 'Crimson Pro', Georgia, serif;
  font-style: italic;
  font-size: 13px;
  fill: #6B6F7E;
}
.chart-tick-strong { fill: #1A1F2E; }

#chart-tooltip {
  position: absolute;
  z-index: 9999;
  background: #141A24;
  color: #E8E0D4;
  border: 1px solid #8C7754;
  padding: 12px 16px;
  min-width: 200px;
  max-width: 260px;
  pointer-events: none;
  box-shadow: 0 6px 24px rgba(26, 31, 46, 0.18);
}
#chart-tooltip[hidden] { display: none !important; }
#chart-tooltip .tt-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #B8A07A;
  margin-bottom: 6px;
}
#chart-tooltip .tt-figure {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 28px;
  font-weight: 300;
  color: #E8E0D4;
  line-height: 1;
}
#chart-tooltip .tt-suffix {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: #9A9590;
  margin-left: 4px;
}
#chart-tooltip .tt-percent {
  font-family: 'DM Sans', sans-serif;
  font-style: italic;
  font-size: 12px;
  color: #9A9590;
  margin-top: 4px;
}

.mar-concept {
  padding: 0;
  margin: 48px 0 80px;
}
.mar-concept p {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.55;
  color: #3D3833;
  margin: 0;
  max-width: 880px;
}
.mar-concept p em {
  font-style: italic;
  color: #8C7754;
}

.coverage-strip {
  border-top: 1px solid rgba(184, 160, 122, 0.5);
  border-bottom: 1px solid rgba(184, 160, 122, 0.5);
  padding: 22px 0;
  margin: 0 0 80px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #8A847E;
  text-align: center;
  line-height: 1.7;
}

@media (max-width: 720px) {
  .chart-h2 { font-size: 28px; }
  .chart-headline-grid { grid-template-columns: 1fr; gap: 16px; }
  .chart-display-figure .figure { font-size: 72px; }
  .mar-concept p { font-size: 17px; }
}

/* =====================  v4.3.7: CHART TYPOGRAPHY SCALE  ===================== */
/* Lock in the standard scale used across all chart visuals.
   Applies to the MAR500 home and every sub-page that adopts chart-section.
   ========================================================================= */

:root { --mar-c: #D97706; }

.chart-row-label { font-size: 13px !important; font-weight: 500 !important; }
.chart-row-count { font-size: 12px !important; letter-spacing: 0.08em !important; }
.chart-band-label { font-size: 13.5px !important; font-weight: 500 !important; }
.chart-tick { font-size: 15px !important; }
.chart-display-figure .label { font-size: 12px !important; letter-spacing: 0.12em !important; line-height: 1.55 !important; }
.chart-lede { font-size: 17px !important; }

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  padding: 14px 0 22px;
  margin-bottom: 8px;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #7A7168;
}
.chart-legend .legend-eyebrow {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8C7754;
  font-weight: 500;
  margin-right: 4px;
}
.chart-legend .legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chart-legend .swatch {
  width: 12px;
  height: 12px;
  display: inline-block;
  border: 1px solid rgba(26, 31, 46, 0.15);
}
.chart-legend .legend-note {
  font-style: italic;
  color: #8A847E;
  font-size: 11px;
  letter-spacing: 0;
  font-family: 'Crimson Pro', Georgia, serif;
}

/* v4.3.8: wordmark bump */
.masthead-v3 .mh-wordmark { font-size: 20px !important; letter-spacing: 0.005em !important; }

/* === v4.4.0 :: credit ratings deep page components === */

/* Subhead under headline */
.subhead {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 22px;
  line-height: 1.45;
  font-weight: 400;
  color: #3D3833;
  max-width: 880px;
  margin: 18px 0 48px;
}
.subhead em {
  font-style: italic;
  color: #8C7754;
  font-weight: 500;
}

/* Agency strip: three side-by-side cards */
.agency-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 24px 0;
}
@media (max-width: 720px) {
  .agency-strip { grid-template-columns: 1fr; }
}
.agency-card {
  background: rgba(184, 160, 122, 0.06);
  border: 1px solid rgba(184, 160, 122, 0.35);
  padding: 22px 26px 24px;
}
.agency-name {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8A847E;
  margin-bottom: 8px;
}
.agency-r {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 36px;
  font-weight: 300;
  color: #3D3833;
  line-height: 1.1;
  margin-bottom: 4px;
}
.agency-n {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #8A847E;
}

/* Sector cohort table */
.sector-cohort-table {
  width: 100%;
  max-width: 720px;
  border-collapse: collapse;
  margin: 24px 0;
  font-family: 'DM Mono', monospace;
  font-size: 13px;
}
.sector-cohort-table thead th {
  text-align: left;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8A847E;
  border-bottom: 1px solid rgba(184, 160, 122, 0.5);
  padding: 12px 16px 10px;
}
.sector-cohort-table thead th:nth-child(2),
.sector-cohort-table thead th:nth-child(3) {
  text-align: right;
}
.sector-cohort-table tbody td {
  padding: 11px 16px;
  border-bottom: 1px solid rgba(184, 160, 122, 0.18);
}
.sector-cohort-table .sector-cell {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #3D3833;
}
.sector-cohort-table .n-cell {
  text-align: right;
  color: #8A847E;
}
.sector-cohort-table .r-cell {
  text-align: right;
  font-weight: 500;
  font-feature-settings: "tnum";
}
/* Implication section: parchment band */
.implication-section {
  background: rgba(184, 160, 122, 0.05);
  border-top: 1px solid rgba(184, 160, 122, 0.4);
  border-bottom: 1px solid rgba(184, 160, 122, 0.4);
  padding: 48px 0 40px;
  margin: 64px -40px 40px;
  padding-left: 40px;
  padding-right: 40px;
}
@media (max-width: 720px) {
  .implication-section {
    margin: 48px -20px 32px;
    padding-left: 20px;
    padding-right: 20px;
  }
}
.implication-lede {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 18px;
  line-height: 1.55;
  color: #3D3833;
  max-width: 760px;
  margin: 16px 0;
}

/* Byline */
.byline-section {
  margin: 56px 0 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(184, 160, 122, 0.3);
}
.byline {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 1.55;
  color: #8A847E;
  max-width: 760px;
}

/* === v4.4.1 :: sector cohort table tightening (decision #248) === */

.sector-cohort-table {
  font-size: 14px;
}

.sector-cohort-table thead th {
  font-size: 11px;
  padding: 14px 16px 12px;
}

.sector-cohort-table tbody td {
  padding: 14px 16px;
}

.sector-cohort-table .sector-cell {
  font-size: 15px;
  color: #3D3833;
}

.sector-cohort-table .r-cell {
  font-size: 17px;
  font-weight: 500;
  font-feature-settings: "tnum";
  color: #3D3833;
  letter-spacing: 0.02em;
}

.sector-cohort-table .r-cell.r-positive,
.sector-cohort-table .r-cell.r-negative {
  color: #3D3833;
}

/* === END v4.4.1 === */



/* === v4.4.3 :: rs-cell hover invert (decision #251) - correct selectors === */

.rs-cell {
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  text-decoration: none;
}

.rs-cell:hover {
  background-color: #141A24 !important;
  border-color: rgba(184, 160, 122, 0.6) !important;
}

.rs-cell:hover .rs-eyebrow {
  color: #B8A07A !important;
}

.rs-cell:hover .rs-stat {
  color: #E8E0D4 !important;
}

/* === END v4.4.3 === */

/* === v4.4.4 :: rs-eyebrow-band hidden (decision #252) === */
.rs-eyebrow-band {
  display: none !important;
}
/* === END v4.4.4 === */

/* === v4.4.5 :: related-stats gold dividers + eyebrow lift site-wide (decision #253) === */

/* Gold dividers in/around the related-stats strip */
.related-stats,
.related-stats .rs-cell {
  border-color: rgba(184, 160, 122, 0.5) !important;
}

/* Eyebrow text lift across the site */
.rs-eyebrow {
  font-size: 11px !important;
  letter-spacing: 0.16em !important;
}
.eyebrow,
.chart-eyebrow,
.section-eyebrow,
.page-eyebrow {
  font-size: 13px !important;
  letter-spacing: 0.08em !important;
}

/* === END v4.4.5 === */

/* === v4.4.6 :: paragraph width uniformity below stats strips === */

.subhead,
.section-intro,
.intro-paragraph,
.related-stats + p,
section.related-stats + p,
.related-stats ~ p:first-of-type {
  max-width: none !important;
  width: 100% !important;
}

/* === END v4.4.6 === */

/* === v4.4.7 :: hero-stats unify to gold-tint dividers (decision #254) === */

.headline-stats,
.intro-stats,
.stats-strip,
section.stats,
section.fact-strip,
.fact-strip {
  border: none !important;
}

/* Kill any duplicate adjacent borders that produce the double-line effect */

/* Kill the horizontal line beneath the hero paragraph */
.hero-body,
.hero-intro + p,

/* Inner vertical dividers between stats stay gold (consistent with #253) */

/* === END v4.4.7 === */

/* === v4.4.10 :: surgical hero fix - blue internal to gold + kill lower border === */

/* Internal vertical dividers between hero-stat elements: blue → gold */

/* Kill the lower horizontal border below the stats area */
/* Covers both spellings: the typo'd .mar-concep AND the correct .mar-concept */
.mar-concept,
.mar-concep {
  border-top: none !important;
}

/* === END v4.4.10 === */

/* === v4.4.11 :: h1.hero down one notch === */
h1.hero {
  font-size: clamp(38px, 5.5vw, 64px) !important;
}
/* === END v4.4.11 === */

/* === v4.4.12 :: finding-page h1 down to match home h1.hero (decision #254 family) === */

h1.headline,
h1.finding-headline,
h1.page-headline,
main > h1,
main > section > h1:first-of-type,
article > h1 {
  font-size: clamp(38px, 5.5vw, 64px) !important;
  line-height: 1.1 !important;
}

/* === END v4.4.12 === */

/* === v4.7.0 :: clean home hero (no horizontal framing, dividers via border-left) === */

:root {
  --rule: rgba(184, 160, 122, 0.5);
}

h1.hero em {
  font-style: italic;
  color: #8C7754;
  font-weight: 400;
}

/* === END v4.7.0 === */




/* === BEGIN WORDMARK V2 === */
/* Wordmark v5 (Cormorant Garamond SemiBold, tuned): editorial-luxury serif,
   first-line indent for asymmetric composition, tight vertical stacking.
   Applied via patch_wordmark_v2.py v1.4.0. */
:root {
  --font-wordmark: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
}
.masthead-v3 .mh-wordmark {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  color: #E8E0D4;
  font-family: var(--font-wordmark);
  font-weight: 600;
  font-size: 38px;
  line-height: 0.85;
  letter-spacing: 0.005em;
  padding: 4px 0;
}
.masthead-v3 .mh-wordmark .mh-wordmark-line {
  display: block;
}
.masthead-v3 .mh-wordmark .mh-wordmark-line:first-child {
  padding-left: 1.2ch;
}
.masthead-v3 .mh-wordmark .mh-wordmark-tm {
  font-size: 0.30em;
  vertical-align: super;
  color: #B8A07A;
  letter-spacing: 0.05em;
  margin-left: 0.15em;
  font-weight: 500;
  line-height: 1;
}
.masthead-v3 .mh-wordmark:hover {
  color: #E8E0D4;
  opacity: 0.88;
}
.mh-row.mh-row-primary {
  align-items: center;
  min-height: 92px;
}
@media (max-width: 768px) {
  .masthead-v3 .mh-wordmark {
    font-size: 26px !important;
    letter-spacing: 0.005em !important;
  }
  .mh-row.mh-row-primary {
    min-height: 72px;
  }
}
/* === END WORDMARK V2 === */

/* BEGIN MOBILE AWARENESS v1.4.0 - 2026-05-19 */
/* Hamburger menu vertically centered to primary row, with breathing
   room above wordmark. iOS Safari appearance reset retained. */

/* === MOBILE (<= 768px) === */
@media (max-width: 768px) {
  /* Primary row is the positioned ancestor for the hamburger.
     Explicit padding gives the wordmark vertical breathing room. */
  .masthead-v3 .mh-row-primary {
    position: relative !important;
    padding-top: 18px !important;
    padding-bottom: 16px !important;
  }

  /* Hamburger button: vertically centered to primary row */
  .masthead-v3 .mh-hamburger {
    display: inline-flex !important;
    position: absolute !important;
    top: 50% !important;
    right: 14px !important;
    transform: translateY(-50%) !important;
    z-index: 10;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    border: 1px solid rgba(184, 160, 122, 0.5) !important;
    color: #E8E0D4 !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 4px !important;
    cursor: pointer;
    padding: 0 !important;
    line-height: 1;
    /* iOS Safari overrides default button styling without this */
    -webkit-appearance: none !important;
    appearance: none !important;
    -webkit-tap-highlight-color: transparent;
    font-family: inherit;
  }
  .masthead-v3 .mh-hamburger:hover,
  .masthead-v3 .mh-hamburger:focus,
  .masthead-v3 .mh-hamburger:active {
    background: rgba(184, 160, 122, 0.12) !important;
    outline: none !important;
  }
  .masthead-v3 .mh-hamburger-icon {
    font-size: 18px;
    line-height: 1;
    color: inherit;
  }

  /* Hide substrate meta entirely on mobile */
  .masthead-v3 .mh-meta {
    display: none !important;
  }

  /* Collapsed state: both nav rows hidden */
  .masthead-v3 .mh-nav {
    display: none !important;
  }
  .masthead-v3 .mh-row-sub {
    display: none !important;
  }

  /* Open state: navs appear as full-width vertical lists below */
  body.nav-open .masthead-v3 .mh-row-primary {
    flex-wrap: wrap !important;
  }
  body.nav-open .masthead-v3 .mh-hamburger {
    /* Anchor hamburger to top when menu is open so the expanded nav
       drops cleanly below it instead of the button floating to middle */
    top: 18px !important;
    transform: none !important;
  }
  body.nav-open .masthead-v3 .mh-nav {
    display: flex !important;
    flex-direction: column !important;
    flex-basis: 100% !important;
    width: 100% !important;
    order: 100;
    align-items: stretch !important;
    gap: 0 !important;
    margin: 12px 0 0 0 !important;
    padding: 8px 14px !important;
    border-top: 1px solid rgba(184, 160, 122, 0.2);
  }
  body.nav-open .masthead-v3 .mh-row-sub {
    display: flex !important;
    width: 100% !important;
    padding: 0 14px 12px !important;
  }
  body.nav-open .masthead-v3 .mh-sub-nav {
    flex-direction: column !important;
    width: 100% !important;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 0 !important;
  }

  /* Link styling when menu is open */
  body.nav-open .masthead-v3 .mh-nav-link,
  body.nav-open .masthead-v3 .mh-sub-link {
    padding: 12px 4px !important;
    font-size: 14px !important;
    letter-spacing: 0.06em !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    border-bottom: 1px solid rgba(184, 160, 122, 0.1) !important;
    text-align: left;
    white-space: normal;
  }
  body.nav-open .masthead-v3 .mh-sub-link {
    font-size: 12px !important;
    letter-spacing: 0.10em !important;
    padding-left: 16px !important;
    color: rgba(232, 224, 212, 0.7) !important;
  }
  body.nav-open .masthead-v3 .mh-nav-link.active,
  body.nav-open .masthead-v3 .mh-sub-link.active {
    color: #B8A07A !important;
  }

  /* Body legibility on mobile */
  body {
    font-size: 16px;
    line-height: 1.55;
  }
}

@media (max-width: 600px) {
  .masthead-v3 .mh-row {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}

@media (max-width: 380px) {
  .masthead-v3 .mh-wordmark {
    font-size: 17px !important;
  }
}

/* === DESKTOP (>= 769px): hard-hide hamburger === */
@media (min-width: 769px) {
  .masthead-v3 .mh-hamburger {
    display: none !important;
  }
}
/* END MOBILE AWARENESS v1.4.0 */






/* === Masthead redesign 2026-05-20 iteration 12: nav truly centred via absolute positioning + bumped nav text 14px/500 */

/* Primary row: deep navy with breathing-room padding */
.masthead-v3 .mh-row-primary {
  background: #0A0F1A;
  border-bottom: 1px solid rgba(184, 160, 122, 0.18);
  padding: 22px 48px !important;
}

/* Sub row: lighter navy */
.masthead-v3 .mh-row-sub {
  background: #141B28;
}

/* Brand area: wordmark + tagline stacked tight */
.masthead-v3 .mh-row-primary .mh-brand {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 0 !important;
}


/* Brand sits left in flex flow; nav is absolutely centred (see below) */
.masthead-v3 .mh-row-primary .mh-brand {
  margin-right: 0 !important;
}

/* Wordmark: 40px Cormorant SemiBold white, !important forces it through canonical rules */
.masthead-v3 .mh-wordmark {
  display: inline-block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600 !important;
  font-size: 40px !important;
  color: #FFFFFF !important;
  text-decoration: none;
  line-height: 1.05 !important;
  letter-spacing: -0.005em;
}

.masthead-v3 .mh-wordmark-tm {
  color: #B8A07A !important;
  font-size: 0.4em !important;
  font-weight: 500;
  vertical-align: super;
  margin-left: 3px;
  letter-spacing: 0;
}

/* Hamburger inversion */
.masthead-v3 .mh-hamburger,
.masthead-v3 .mh-hamburger-icon {
  color: #F5E6D3 !important;
}

/* Primary nav links */
.masthead-v3 .mh-nav-link {
  color: #C8BFAE !important;
}
.masthead-v3 .mh-nav-link:hover,
.masthead-v3 .mh-nav-link.active {
  color: #B8A07A !important;
}

/* Sub-nav links */
.masthead-v3 .mh-sub-link {
  color: #C8BFAE !important;
}
.masthead-v3 .mh-sub-link:hover,
.masthead-v3 .mh-sub-link.active {
  color: #B8A07A !important;
}

/* Tagline: 14px IBM Plex Mono, harmonized with waitlist page */
.masthead-v3 .mh-tagline {
  display: block;
  font-family: 'IBM Plex Mono', ui-monospace, 'SF Mono', Consolas, monospace !important;
  font-weight: 400 !important;
  font-style: normal !important;
  font-size: 14px !important;
  letter-spacing: 0.02em !important;
  color: #C8BFAE !important;
  text-transform: uppercase !important;
  margin-top: 0 !important;
  line-height: 1.2;
  max-width: 420px;
}

/* Terminal button: ruby red-800 */
.masthead-v3 .mh-terminal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: #991B1B;
  color: #F5E6D3;
  font-family: 'DM Mono', 'SF Mono', Consolas, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid #991B1B;
  border-radius: 2px;
  transition: background 180ms ease, transform 180ms ease;
}
.masthead-v3 .mh-terminal:hover {
  background: #7F1D1D;
  transform: translateY(-1px);
}

@media (max-width: 720px) {
  .masthead-v3 .mh-wordmark { font-size: 28px !important; }
  .masthead-v3 .mh-tagline { display: none; }
  .masthead-v3 .mh-terminal { padding: 5px 10px; font-size: 10px; letter-spacing: 0.16em; }
}


/* === Iteration 12: nav truly centred + stronger primary nav text === */

/* Primary row becomes positioning context for absolute nav */
.masthead-v3 .mh-row-primary {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  position: relative !important;
}

/* Nav: absolutely centred horizontally and vertically, outside flex flow */
.masthead-v3 .mh-row-primary .mh-nav {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  display: flex !important;
  gap: 32px !important;
  align-items: center !important;
}

/* Primary nav links: stronger and bigger */
.masthead-v3 .mh-nav-link {
  font-family: 'DM Mono', 'SF Mono', Consolas, monospace !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: 0.10em !important;
  text-transform: uppercase !important;
  color: #C8BFAE !important;
  text-decoration: none !important;
  white-space: nowrap;
}

/* Hover and active states keep gold accent */
.masthead-v3 .mh-nav-link:hover,
.masthead-v3 .mh-nav-link.active {
  color: #B8A07A !important;
}

/* Mobile: revert to relative nav, hide and let hamburger drive */
@media (max-width: 980px) {
  .masthead-v3 .mh-row-primary .mh-nav {
    position: static !important;
    transform: none !important;
    display: none !important;
  }
}
/* === END Iteration 12 === */
/* === END Masthead redesign === */


/* === Footer redesign 2026-05-20 iteration 10b: bookend mirror of masthead === */

footer {
  background: #0A0F1A !important;
  border-top: 1px solid rgba(184, 160, 122, 0.18) !important;
}

footer .footer-inner {
  max-width: none !important;
  margin: 0 !important;
  padding: 32px 48px 36px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: baseline !important;
  flex-wrap: wrap;
  gap: 24px !important;
}

footer .footer-brand {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 4px !important;
}

footer .footer-wordmark {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-weight: 600 !important;
  font-size: 28px !important;
  color: #FFFFFF !important;
  line-height: 1 !important;
  letter-spacing: -0.005em !important;
  text-decoration: none !important;
  text-transform: none !important;
}

footer .footer-wordmark-tm {
  text-transform: none !important;
}

footer .footer-wordmark-tm {
  color: #B8A07A !important;
  font-size: 0.4em !important;
  font-weight: 500 !important;
  vertical-align: super !important;
  margin-left: 2px !important;
}

footer .footer-tagline {
  font-family: 'IBM Plex Mono', ui-monospace, 'SF Mono', Consolas, monospace !important;
  font-weight: 400 !important;
  font-size: 11px !important;
  letter-spacing: 0.02em !important;
  color: #C8BFAE !important;
}

footer .footer-contact {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 4px !important;
  text-align: right;
}

footer .footer-contact a {
  font-family: 'IBM Plex Mono', ui-monospace, 'SF Mono', Consolas, monospace !important;
  font-size: 13px !important;
  color: #C8BFAE !important;
  letter-spacing: 0.01em !important;
  text-decoration: none !important;
  border-bottom: 1px solid transparent !important;
  transition: color 180ms ease, border-bottom-color 180ms ease;
}
footer .footer-contact a:hover {
  color: #B8A07A !important;
  border-bottom-color: rgba(184, 160, 122, 0.5) !important;
}

footer .footer-copyright {
  font-family: 'IBM Plex Mono', ui-monospace, 'SF Mono', Consolas, monospace !important;
  font-size: 10px !important;
  color: #9A9590 !important;
  letter-spacing: 0.02em !important;
}

@media (max-width: 720px) {
  footer .footer-inner {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 24px 28px 28px !important;
  }
  footer .footer-contact {
    align-items: flex-start !important;
    text-align: left !important;
  }
}
/* === END Footer redesign === */
