/* H2Prism design round 2, 2026-12-01.
   Linked last on every page by design_round2.py (/assets/r2/design-r2.css).
   Words, numbers, links and scripts are unchanged; content_parity.py locks that.
   Prefix "html body.r2:is(*, #r2)" carries ID weight so this sheet wins over the
   class-heavy family sheets and ties round 1, which it follows in source order.
   The home hero (.cody-hero) is HY-approved and is never targeted here. */

/* ===== 0. Tokens: one paper, one ink, one action blue ===== */
html body.r2 {
  --r2-paper: #f7f8f7;
  --r2-surface: #ffffff;
  --r2-ink: #172628;
  --r2-ink-2: #4a5a5c;
  --r2-ink-3: #5f6d6f;
  --r2-line: #e1e6e4;
  --r2-line-2: #cfd7d4;
  --r2-rule: #172628;
  --r2-blue: #154d99;
  --r2-blue-tint: #eef3f9;
  --r2-track: #e6ebea;
  --r2-font: "H2 Satoshi", "Cody Pretendard", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r2-mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  --r2-r: 4px;
  --r2-r-float: 8px;
}
/* family tokens that painted green, tinted or mono (never on the home) */
html body.r2:not(.r2-home) {
  --h2-paper: var(--r2-paper);
  --h2-ink: var(--r2-ink);
  --h2-ink-2: var(--r2-ink-2);
  --h2-line: var(--r2-line-2);
  --h2-link: var(--r2-blue);
  --h2-action: var(--r2-blue);
  --h2-font-mono: var(--r2-font);
  --accent: var(--r2-blue);
  --accent-ink: var(--r2-blue);
  --xp-green: var(--r2-blue);
  --xp-green-ink: var(--r2-blue);
  --green: var(--r2-blue);
  --mono: var(--r2-font);
  --font-mono: var(--r2-font);
  --font-num: var(--r2-font);
}
html body.r2:not(.r2-home) { background: var(--r2-paper); color: var(--r2-ink); }

/* ===== 1. Type roles =====
   page title 40/700 (30 phone) · record title 44/700 (32 phone) · section 24/700
   card/chart title 17/700 · body 16 · table 14 · meta 13 · label 12/600 */
html body.r2:not(.r2-home):is(*, #r2) main :is(h1.h2-page-heading, .v1-prose > h1, .dash h1, .reading-shell h1, .col-header h1, .glossary-design h1, .calculator-index h1),
html body.r2.v1-list:is(*, #r2) main h1,
html body.r2:is(.r2-reading-index, .r2-tool, .r2-page):is(*, #r2) main h1 {
  font: 700 clamp(30px, 1.2vw + 22px, 40px)/1.12 var(--r2-font);
  letter-spacing: -0.022em;
  color: var(--r2-ink);
}
html body.r2.v1-detail:is(*, #r2) .brief-mast h1 {
  font: 700 clamp(32px, 1.6vw + 22px, 44px)/1.1 var(--r2-font);
  letter-spacing: -0.024em;
  color: var(--r2-ink);
}
html body.r2:not(.r2-home):is(*, #r2) main :is(.v1-section > h2, .v1-prose > h2, .h2-section-heading, .brief-content > section > h2, .glossary-design > h2, .calculator-index > h2, .doverview > h2, .insight-group > h2, .r2-related > h2) {
  font: 700 clamp(20px, .5vw + 17px, 24px)/1.25 var(--r2-font);
  letter-spacing: -0.012em;
  color: var(--r2-ink);
}
html body.r2:is(*, #r2) main :is(.dchart h2, .dchart summary, .h2-data-figure figcaption strong, .col-card h3) {
  font-family: var(--r2-font);
  letter-spacing: -0.008em;
}
html body.r2:not(.r2-home):is(*, #r2) main :is(p, li, dd) { font-family: var(--r2-font); }

/* Numbers read as numbers: proportional sans with tabular figures, never slashed zero */
html body.r2:is(*, #r2) :is(.h2-capacity-meter, .h2-numeric, .v1-result-number, .v1-stats strong, .h2-peer-ranks strong, .dkpis strong, .v1-facts-strip dd, td) {
  font-family: var(--r2-font);
  font-variant-numeric: tabular-nums;
}

/* ===== 2. Links by role =====
   in-text links: underlined blue. list/record links: ink, no underline, underline on hover. */
html body.r2:is(*, #r2) main :is(.v1-prose, .brief-content > p, .reading-body, article .prose, .guide-body) a:not([class]) {
  color: var(--r2-blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}
html body.r2:is(*, #r2) main :is(.h2-table, .v1-table-wrap table, .h2-entity-table) tbody :is(th, td) a,
html body.r2:is(*, #r2) main :is(.v1-links, .h2-list-links, .calculator-index ul, .search-browse) a {
  color: var(--r2-ink);
  text-decoration: none;
  font-weight: 500;
}
html body.r2:is(*, #r2) main :is(.h2-table, .v1-table-wrap table, .h2-entity-table) tbody :is(th, td) a:is(:hover, :focus-visible),
html body.r2:is(*, #r2) main :is(.v1-links, .h2-list-links, .calculator-index ul, .search-browse) a:is(:hover, :focus-visible) {
  color: var(--r2-blue);
  text-decoration: underline;
  text-underline-offset: .18em;
}

/* ===== 3. One table =====
   no row fills, no tinted name column, no header band; 1px rules; 40px rows */
html body.r2:is(*, #r2) main :is(.h2-table, .v1-table-wrap > table, .h2-entity-table, .dtable-wrap > table) {
  border-collapse: collapse;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
html body.r2:is(*, #r2) main :is(.h2-table, .v1-table-wrap > table, .h2-entity-table, .dtable-wrap > table) :is(thead, tbody, tr, th, td) {
  background: transparent;
  background-image: none;
}
html body.r2:is(*, #r2) main :is(.h2-table, .v1-table-wrap > table, .h2-entity-table, .dtable-wrap > table) thead th {
  padding-block: 10px 8px;
  border: 0;
  border-bottom: 1px solid var(--r2-rule);
  color: var(--r2-ink-2);
  font: 600 13px/1.3 var(--r2-font);
  letter-spacing: 0;
  text-transform: none;
  vertical-align: bottom;
  white-space: normal; /* header is 13px (baseline 11px): let it wrap so the table stays as wide as before */
}
html body.r2:is(*, #r2) main :is(.h2-table, .v1-table-wrap > table, .h2-entity-table, .dtable-wrap > table) thead th button {
  min-height: 44px;
  color: inherit;
  font: inherit;
}
html body.r2:is(*, #r2) main :is(.h2-table, .v1-table-wrap > table, .h2-entity-table, .dtable-wrap > table) tbody :is(th, td) {
  height: 40px;
  padding-block: 8px;
  border: 0;
  border-bottom: 1px solid var(--r2-line);
  color: var(--r2-ink);
  font-weight: 400;
  line-height: 1.35;
  vertical-align: middle;
}
html body.r2:is(*, #r2) main :is(.h2-table, .v1-table-wrap > table, .h2-entity-table, .dtable-wrap > table) tbody tr:hover > * { background: var(--r2-blue-tint); }
html body.r2:is(*, #r2) main :is(.h2-table, .h2-entity-table) tbody th a { font-weight: 500; }
html body.r2:is(*, #r2) main :is(.h2-numeric, td.num, th.num) { text-align: right; }

/* capacity: number with a short track to its left, never an underline */
html body.r2:is(*, #r2) main .h2-capacity-meter {
  display: inline-flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-inline-size: 0;
  font-weight: 500;
  white-space: nowrap;
}
html body.r2:is(*, #r2) main .h2-capacity-meter i {
  position: relative;
  display: block;
  flex: none;
  inline-size: 56px;
  block-size: 6px;
  margin: 0;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--r2-blue) 0 var(--h2-capacity-share, 0%), var(--r2-track) var(--h2-capacity-share, 0%) 100%);
}
html body.r2:is(*, #r2) main .h2-capacity-meter i::before,
html body.r2:is(*, #r2) main .h2-capacity-meter i::after { content: none; }

/* stage: ink words led by the existing shape, a hairline track for the step */
html body.r2:is(*, #r2) main .h2-stage-progress { display: inline-grid; gap: 4px; color: var(--r2-ink); }
html body.r2:is(*, #r2) main .h2-stage-progress > span { color: var(--r2-ink); white-space: nowrap; }
/* the small comparison table on record pages sits in a narrow column: let stage words wrap as before */
html body.r2:is(*, #r2) main .h2-table--comparison .h2-stage-progress > span { white-space: normal; }
html body.r2:is(*, #r2) main .h2-stage-progress i {
  display: block;
  inline-size: 72px;
  block-size: 2px;
  margin: 0;
  background: linear-gradient(90deg, var(--r2-ink-2) 0 var(--h2-stage-share, 0%), var(--r2-track) var(--h2-stage-share, 0%) 100%);
}
html body.r2:is(*, #r2) main .h2-table-note,
html body.r2:is(*, #r2) main .h2-table + p { color: var(--r2-ink-3); font-size: 13px; }

/* ===== 4. Surfaces: three radii, 1px lines, no clipped corners ===== */
html body.r2:not(.r2-home):is(*, #r2) main :is(.v1-card, .dcard, .dchart, .h2-data-figure, .brief-jump a, .v1-sources, .h2-entity-card, .v1-relations article, .col-card, .h2-panel) {
  clip-path: none;
  box-shadow: none;
}
html body.r2:not(.r2-home):is(*, #r2) main :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea, button) { border-radius: var(--r2-r); }

/* ===== 5. Header: newsletter is a quiet outline, not the page's main action ===== */
html body.r2:not(.r2-home):is(*, #r2) .v1-header .v1-subscribe {
  border: 1px solid var(--r2-line-2);
  background: transparent;
  color: var(--r2-ink);
  font-weight: 500;
  box-shadow: none;
}
html body.r2:not(.r2-home):is(*, #r2) .v1-header .v1-subscribe:hover { border-color: var(--r2-ink); }

/* ===== 6. Record pages (project, company, country, policy) =====
   one masthead, one left line, one quiet table of contents */
html body.r2.v1-detail:is(*, #r2) main .brief-mast {
  background: transparent;
  background-image: none;
  border: 0;
  border-bottom: 1px solid var(--r2-rule);
  box-shadow: none;
}
html body.r2.v1-detail:is(*, #r2) main .brief-mast::before,
html body.r2.v1-detail:is(*, #r2) main .brief-mast::after { content: none; }
html body.r2.v1-detail:is(*, #r2) main .v1-facts-strip > div { border-top: 1px solid var(--r2-line); }
html body.r2.v1-detail:is(*, #r2) main .v1-facts-strip dt {
  color: var(--r2-ink-2);
  font: 600 13px/1.3 var(--r2-font);
  letter-spacing: .01em;
}
html body.r2.v1-detail:is(*, #r2) main .v1-facts-strip dd {
  color: var(--r2-ink);
  font: 700 20px/1.3 var(--r2-font);
  letter-spacing: -0.01em;
}
html body.r2.v1-detail:is(*, #r2) main .v1-facts-strip dd .v1-muted { display: block; margin-top: 2px; color: var(--r2-ink-3); font: 400 13px/1.35 var(--r2-font); }
/* baseline shows this note at 16px between 761 and 1099px; do not go under it */
@media (min-width: 761px) and (max-width: 1099px) {
  html body.r2.v1-detail:is(*, #r2) main .v1-facts-strip dd .v1-muted { font-size: 16px; }
}
html body.r2.v1-detail:is(*, #r2) main .v1-facts-strip dd a { color: var(--r2-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }

/* sections share the content column's left line */
html body.r2.v1-detail:is(*, #r2) main .brief-content > :is(section, .h2-figure-pair, p, div) {
  padding-inline: 0;
  margin-inline: 0;
}
html body.r2.v1-detail:is(*, #r2) main .brief-content > section {
  margin-top: 0;
  padding-block: 36px 8px;
  border: 0;
  border-top: 1px solid var(--r2-line-2);
  background: transparent;
  box-shadow: none;
}
html body.r2.v1-detail:is(*, #r2) main .brief-content > section > h2 { margin: 0 0 16px; }
html body.r2.v1-detail:is(*, #r2) main .brief-content > p:first-child { color: var(--r2-ink-2); font-size: 16px; }

/* the location outline is context, not the record: a compact row, not 350px */
html body.r2.v1-detail:is(*, #r2) main .brief-content > .cody-location {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 280px);
  grid-template-rows: auto 1fr;
  column-gap: 24px;
  align-items: start;
  padding-block: 28px 20px;
}
html body.r2.v1-detail:is(*, #r2) main .brief-content > .cody-location > h2 { grid-column: 1; margin-bottom: 6px; }
html body.r2.v1-detail:is(*, #r2) main .brief-content > .cody-location > p { grid-column: 1; margin: 0; color: var(--r2-ink-2); font-size: 16px; }
html body.r2.v1-detail:is(*, #r2) main .brief-content > .cody-location > svg {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 100%;
  height: auto;
  max-height: 140px;
  border: 1px solid var(--r2-line);
  border-radius: var(--r2-r);
  background: var(--r2-surface);
}
@media (max-width: 560px) {
  html body.r2.v1-detail:is(*, #r2) main .brief-content > .cody-location { grid-template-columns: minmax(0, 1fr) 128px; column-gap: 16px; }
}

/* table of contents: a plain list, not a stack of boxes */
html body.r2.v1-detail:is(*, #r2) main .brief-jump {
  display: grid;
  gap: 0;
  padding: 0 0 0 16px;
  border: 0;
  border-left: 1px solid var(--r2-line-2);
  background: transparent;
}
html body.r2.v1-detail:is(*, #r2) main .brief-jump strong {
  margin-bottom: 6px;
  color: var(--r2-ink-2);
  font: 600 13px/1.3 var(--r2-font);
}
html body.r2.v1-detail:is(*, #r2) main .brief-jump a {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--r2-ink);
  font: 500 14px/1.3 var(--r2-font);
  text-decoration: none;
}
html body.r2.v1-detail:is(*, #r2) main .brief-jump a:hover { color: var(--r2-blue); text-decoration: underline; text-underline-offset: .2em; }
@media (max-width: 760px) {
  /* phones: one scrolling row instead of 150px of chips */
  html body.r2.v1-detail:is(*, #r2) main .brief-jump {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    padding: 0 0 8px;
    border-left: 0;
    scrollbar-width: none;
  }
  html body.r2.v1-detail:is(*, #r2) main .brief-jump strong { display: none; }
  html body.r2.v1-detail:is(*, #r2) main .brief-jump a {
    flex: none;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--r2-line-2);
    border-radius: var(--r2-r);
    background: var(--r2-surface);
    white-space: nowrap;
  }
}

/* companies and roles: repeated records, 1px outline, role as a plain label */
html body.r2:is(*, #r2) main .brief-content .v1-relations tbody { gap: 12px; }
html body.r2:is(*, #r2) main .brief-content .v1-relations tr {
  clip-path: none;
  padding: 14px 16px;
  border: 1px solid var(--r2-line);
  border-radius: var(--r2-r);
  background: var(--r2-surface);
}
html body.r2:is(*, #r2) main .brief-content .v1-relations tr:hover > * { background: transparent; }
html body.r2:is(*, #r2) main .brief-content .v1-relations td {
  height: auto;
  padding: 0;
  border: 0;
  font-size: 13.5px;
  line-height: 1.45;
}
html body.r2:is(*, #r2) main .brief-content .v1-relations td + td { margin-top: 8px; }
html body.r2:is(*, #r2) main .brief-content .v1-relations td::before { color: var(--r2-ink-3); font: 600 11.5px/1.3 var(--r2-font); margin-bottom: 2px; }
html body.r2:is(*, #r2) main .brief-content .v1-relations td[data-label='Role in project'] {
  display: block;
  margin: 2px 0 0;
  padding: 0;
  background: transparent;
  color: var(--r2-ink);
  font-weight: 600;
}
html body.r2:is(*, #r2) main .brief-content .v1-relations td:first-child a {
  min-height: 44px;
  color: var(--r2-ink);
  font: 700 16px/1.3 var(--r2-font);
  text-decoration: none;
}
html body.r2:is(*, #r2) main .brief-content .v1-relations td:first-child a:hover { color: var(--r2-blue); text-decoration: underline; }

/* source rows: same height, same type everywhere */
html body.r2:is(*, #r2) main .v1-sources > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0;
  font: 400 13px/1.35 var(--r2-font);
  color: var(--r2-ink-2);
}
html body.r2:is(*, #r2) main .v1-sources > summary .h2-source-action { color: var(--r2-blue); font-weight: 600; }

/* related insights moved into the column by design_round2.py */
html body.r2:is(*, #r2) main .r2-related { padding-block: 36px 8px; border-top: 1px solid var(--r2-line-2); }
html body.r2:is(*, #r2) main .r2-related ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--r2-line); }
html body.r2:is(*, #r2) main .r2-related li { margin: 0; padding: 0; border-bottom: 1px solid var(--r2-line); }
html body.r2:is(*, #r2) main .r2-related li a {
  display: flex;
  align-items: center;
  min-height: 48px;
  color: var(--r2-ink);
  font: 600 16px/1.35 var(--r2-font);
  text-decoration: none;
}
html body.r2:is(*, #r2) main .r2-related li a:hover { color: var(--r2-blue); text-decoration: underline; text-underline-offset: .2em; }

/* record pages share the header's left line (was 20px inside it, mast 42px further) */
@media (min-width: 761px) {
  html body.r2.v1-detail:is(*, #r2) main > article { margin-inline: 0; }
  html body.r2.v1-detail:is(*, #r2) main .brief-mast { padding: 28px 0 28px; }
}
html body.r2.v1-detail:is(*, #r2) main .h2-figure-pair > figure { border-top: 1px solid var(--r2-line-2); }
html body.r2.v1-detail:is(*, #r2) main .h2-figure-pair figcaption strong { font: 700 17px/1.3 var(--r2-font); }

/* ===== 7. Directory pages: summary line, then rows ===== */
html body.r2:is(*, #r2) main .h2-project-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 20px;
  margin: 14px 0 6px;
  color: var(--r2-ink-2);
  font-size: 14px;
}
html body.r2:is(*, #r2) main .h2-project-summary p { margin: 0; }
html body.r2:is(*, #r2) main .h2-project-summary strong { color: var(--r2-ink); font-weight: 700; font-variant-numeric: tabular-nums; }

/* list-type links: compact rows with a trailing arrow, no 73px rows */
html body.r2:is(*, #r2) main nav.v1-section > ul.v1-links:not(.brief-project-list),
html body.r2:is(*, #r2) main .v1-section > ul.v1-links:not(.brief-project-list) {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  column-gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--r2-line-2);
}
html body.r2:is(*, #r2) main :is(nav.v1-section, .v1-section) > ul.v1-links:not(.brief-project-list) > li { margin: 0; padding: 0; border: 0; border-bottom: 1px solid var(--r2-line); }
html body.r2:is(*, #r2) main :is(nav.v1-section, .v1-section) > ul.v1-links:not(.brief-project-list) > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 6px 0;
  color: var(--r2-ink);
  font: 600 14.5px/1.35 var(--r2-font);
  text-decoration: none;
}
html body.r2:is(*, #r2) main nav.v1-section > ul.v1-links > li > a::after { content: "→"; color: var(--r2-ink-3); font-weight: 400; }

/* ===== 8. Home below the hero =====
   order (design_round2.py): hero, counts, real projects, technology groups,
   tools, insights, data, how figures are checked. The hero is untouched. */
html body.r2.r2-home:is(*, #r2) main > .brief-home-section > h2,
html body.r2.r2-home:is(*, #r2) main > .v1-home-grid h2,
html body.r2.r2-home:is(*, #r2) main > #subscribe > h2 {
  margin: 0 0 8px;
  color: var(--r2-ink);
  font: 700 clamp(22px, .8vw + 17px, 28px)/1.2 var(--r2-font);
  letter-spacing: -0.016em;
}
html body.r2.r2-home:is(*, #r2) main > .brief-home-section > h2 + p { margin: 0 0 20px; color: var(--r2-ink-2); font-size: 16px; }

/* counts: one ruled strip, no boxes */
html body.r2.r2-home:is(*, #r2) main > .v1-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-block: 28px 0;
  border: 0;
  border-block: 1px solid var(--r2-line-2);
  background: transparent;
}
html body.r2.r2-home:is(*, #r2) main > .v1-stats > a {
  display: grid;
  align-content: center;
  gap: 2px;
  min-height: 84px;
  padding: 14px 20px;
  border: 0;
  border-left: 1px solid var(--r2-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--r2-ink);
  text-decoration: none;
}
html body.r2.r2-home:is(*, #r2) main > .v1-stats > a:first-child { border-left: 0; padding-left: 0; }
html body.r2.r2-home:is(*, #r2) main > .v1-stats > a:hover { background: var(--r2-surface); }
html body.r2.r2-home:is(*, #r2) main > .v1-stats strong { font: 700 30px/1.1 var(--r2-font); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
html body.r2.r2-home:is(*, #r2) main > .v1-stats span { color: var(--r2-ink-2); font: 500 13px/1.3 var(--r2-font); }
@media (max-width: 760px) {
  html body.r2.r2-home:is(*, #r2) main > .v1-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html body.r2.r2-home:is(*, #r2) main > .v1-stats > a { min-height: 72px; padding: 12px 14px; border-left: 0; border-top: 1px solid var(--r2-line); }
  html body.r2.r2-home:is(*, #r2) main > .v1-stats > a:nth-child(-n+2) { border-top: 0; }
  html body.r2.r2-home:is(*, #r2) main > .v1-stats > a:nth-child(2n) { border-left: 1px solid var(--r2-line); }
  html body.r2.r2-home:is(*, #r2) main > .v1-stats > a:nth-child(2n+1) { padding-left: 0; }
}

/* real projects, now right under the counts: the row grammar of /projects */
html body.r2.r2-home:is(*, #r2) main > .v1-home-grid { display: block; margin-top: 44px; }
html body.r2.r2-home:is(*, #r2) main > .v1-home-grid > .v1-section { margin: 0; padding: 0; border: 0; background: transparent; }
html body.r2.r2-home:is(*, #r2) .brief-project-list { margin: 8px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--r2-rule); }
html body.r2.r2-home:is(*, #r2) .brief-project-list > li { margin: 0; padding: 0; border: 0; border-bottom: 1px solid var(--r2-line); }
html body.r2.r2-home:is(*, #r2) .brief-project-list > li > a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 24px;
  min-height: 48px;
  padding: 8px 0;
  color: var(--r2-ink);
  text-decoration: none;
  text-align: left;
}
html body.r2.r2-home:is(*, #r2) .brief-project-list > li > a:hover { background: var(--r2-blue-tint); }
html body.r2.r2-home:is(*, #r2) .brief-project-list > li > a > strong { font: 600 14.5px/1.35 var(--r2-font); text-align: left; }
html body.r2.r2-home:is(*, #r2) .brief-project-list > li > a > span {
  display: grid;
  grid-template-columns: 120px 150px 150px 16px;
  align-items: center;
  gap: 16px;
  color: var(--r2-ink-2);
  font-size: 13px;
}
html body.r2.r2-home:is(*, #r2) .brief-project-list small { font-size: 13px; color: var(--r2-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html body.r2.r2-home:is(*, #r2) .brief-project-list small[data-stage] { color: var(--r2-ink); }
html body.r2.r2-home:is(*, #r2) .brief-project-list .brief-measure { display: flex; flex-direction: row; align-items: center; justify-content: flex-end; gap: 10px; }
html body.r2.r2-home:is(*, #r2) .brief-project-list .brief-measure b { order: 2; color: var(--r2-ink); font: 500 14px/1 var(--r2-font); font-variant-numeric: tabular-nums; white-space: nowrap; }
html body.r2.r2-home:is(*, #r2) .brief-project-list .brief-track { order: 1; display: block; flex: none; width: 56px; height: 6px; background: var(--r2-track); }
html body.r2.r2-home:is(*, #r2) .brief-project-list .brief-track > span { display: block; height: 100%; background: var(--r2-blue); }
html body.r2.r2-home:is(*, #r2) .brief-project-list .brief-row-arrow { color: var(--r2-ink-3); font-size: 14px; }
html body.r2.r2-home:is(*, #r2) main > .v1-home-grid .v1-section > p { margin: 8px 0 0; }
html body.r2.r2-home:is(*, #r2) main > .v1-home-grid .v1-section > p a { display: inline-flex; align-items: center; min-height: 44px; color: var(--r2-blue); font-weight: 600; }
@media (max-width: 760px) {
  html body.r2.r2-home:is(*, #r2) .brief-project-list > li > a { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  html body.r2.r2-home:is(*, #r2) .brief-project-list > li > a > span { grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto; gap: 10px; }
  html body.r2.r2-home:is(*, #r2) .brief-project-list .brief-row-arrow { display: none; }
}

/* technology groups and infrastructure: one card system, white, 1px */
html body.r2.r2-home:is(*, #r2) main > .brief-home-section { margin-top: 56px; padding-top: 0; border: 0; }
html body.r2.r2-home:is(*, #r2) .brief-equipment { gap: 12px; }
html body.r2.r2-home:is(*, #r2) .brief-equipment > a,
html body.r2.r2-home:is(*, #r2) .cody-infrastructure figure {
  border: 1px solid var(--r2-line);
  border-radius: var(--r2-r);
  background: var(--r2-surface);
  box-shadow: none;
  clip-path: none;
}
html body.r2.r2-home:is(*, #r2) .brief-equipment > a { color: var(--r2-ink); text-decoration: none; }
html body.r2.r2-home:is(*, #r2) .brief-equipment > a:hover { border-color: var(--r2-ink-2); }
html body.r2.r2-home:is(*, #r2) .brief-equipment > a > strong { font: 700 30px/1.1 var(--r2-font); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
html body.r2.r2-home:is(*, #r2) .brief-equipment > a > span { font: 500 16px/1.35 var(--r2-font); }
html body.r2.r2-home:is(*, #r2) .cody-infrastructure { margin: 40px 0 0; padding: 0; border: 0; }
html body.r2.r2-home:is(*, #r2) .cody-infrastructure > h3 { margin: 0 0 4px; font: 700 18px/1.3 var(--r2-font); }
html body.r2.r2-home:is(*, #r2) .cody-infrastructure > p { margin: 0 0 14px; color: var(--r2-ink-2); font-size: 16px; }
html body.r2.r2-home:is(*, #r2) .cody-infrastructure > div { gap: 12px; }
html body.r2.r2-home:is(*, #r2) .cody-equipment-route a { display: inline-flex; align-items: center; min-height: 44px; color: var(--r2-blue); font-weight: 600; }

/* tools: three compact rows (thumbnail and text), not three tall posters */
html body.r2.r2-home:is(*, #r2) main > .v1-entries {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 40px 0 0;
  padding: 0;
}
html body.r2.r2-home:is(*, #r2) main > .v1-entries > section {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  column-gap: 16px;
  align-content: start;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--r2-line);
  border-radius: var(--r2-r);
  background: var(--r2-surface);
  box-shadow: none;
}
html body.r2.r2-home:is(*, #r2) main > .v1-entries .cody-concept { grid-column: 1; grid-row: 1 / span 3; margin: 0; }
html body.r2.r2-home:is(*, #r2) main > .v1-entries .cody-concept img { display: block; width: 112px; height: 84px; object-fit: cover; border-radius: 2px; }
html body.r2.r2-home:is(*, #r2) main > .v1-entries .cody-concept figcaption { margin-top: 6px; color: var(--r2-ink-3); }
html body.r2.r2-home:is(*, #r2) main > .v1-entries > section > h2 { grid-column: 2; margin: 0 0 4px; color: var(--r2-ink); font: 700 16px/1.3 var(--r2-font); letter-spacing: -0.005em; }
html body.r2.r2-home:is(*, #r2) main > .v1-entries > section > p { grid-column: 2; margin: 0 0 6px; color: var(--r2-ink-2); font: 400 14px/1.45 var(--r2-font); }
html body.r2.r2-home:is(*, #r2) main > .v1-entries > section > a { grid-column: 2; align-self: end; justify-self: start; display: inline-flex; align-items: center; min-height: 44px; color: var(--r2-blue); font: 600 14px/1.2 var(--r2-font); }
@media (max-width: 960px) {
  html body.r2.r2-home:is(*, #r2) main > .v1-entries { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
  html body.r2.r2-home:is(*, #r2) main > .v1-entries > section { grid-template-columns: 88px minmax(0, 1fr); }
  html body.r2.r2-home:is(*, #r2) main > .v1-entries .cody-concept img { width: 88px; height: 66px; }
}

/* latest insights: three equal columns under one rule, no tinted slabs */
html body.r2.r2-home:is(*, #r2) .brief-stories {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto;
  gap: 0 32px;
  border-top: 1px solid var(--r2-rule);
}
html body.r2.r2-home:is(*, #r2) .brief-stories > article {
  grid-row: auto;
  grid-column: auto;
  min-height: 0;
  margin: 0;
  padding: 18px 0 8px;
  border: 0;
  background: transparent;
  box-shadow: none;
}
html body.r2.r2-home:is(*, #r2) .brief-stories .brief-story-meta { margin: 0 0 8px; color: var(--r2-ink-2); font: 600 12px/1.3 var(--r2-font); }
html body.r2.r2-home:is(*, #r2) .brief-stories h3,
html body.r2.r2-home:is(*, #r2) .brief-stories .brief-story-feature h3 { margin: 0 0 8px; color: var(--r2-ink); font: 700 19px/1.3 var(--r2-font); letter-spacing: -0.01em; }
html body.r2.r2-home:is(*, #r2) .brief-stories p:not(.brief-story-meta) { margin: 0 0 10px; color: var(--r2-ink-2); font: 400 16px/1.55 var(--r2-font); }
html body.r2.r2-home:is(*, #r2) .brief-stories h3 a { display: flex; align-items: center; min-height: 44px; color: var(--r2-ink); font: inherit; text-decoration: none; }
html body.r2.r2-home:is(*, #r2) .brief-stories h3 a:hover { color: var(--r2-blue); text-decoration: underline; }
html body.r2.r2-home:is(*, #r2) .brief-stories > article > a { display: inline-flex; align-items: center; min-height: 44px; color: var(--r2-blue); font: 600 16px/1.2 var(--r2-font); }
html body.r2.r2-home:is(*, #r2) main > .brief-home-section > a { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; color: var(--r2-blue); font-weight: 600; }
@media (max-width: 760px) {
  html body.r2.r2-home:is(*, #r2) .brief-stories { grid-template-columns: minmax(0, 1fr); }
  html body.r2.r2-home:is(*, #r2) .brief-stories > article + article { border-top: 1px solid var(--r2-line); }
}

/* data drawer: a plain disclosure row */
html body.r2.r2-home:is(*, #r2) main > .cody-home-data { width: auto; max-width: none; margin: 40px 0 0; padding: 0; border: 0; border-block: 1px solid var(--r2-line-2); background: transparent; }
html body.r2.r2-home:is(*, #r2) main > .cody-home-data > summary { display: flex; align-items: center; gap: 8px; min-height: 52px; margin: 0; padding: 0; color: var(--r2-ink); font: 600 16px/1.3 var(--r2-font); cursor: pointer; }

/* how the figures are checked, then the newsletter: two blocks, not one run-on box */
html body.r2.r2-home:is(*, #r2) main > #subscribe {
  margin-top: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
html body.r2.r2-home:is(*, #r2) main > #subscribe > h2 { font-size: 20px; }
html body.r2.r2-home:is(*, #r2) main > #subscribe > p { color: var(--r2-ink-2); font-size: 16px; }
html body.r2.r2-home:is(*, #r2) main > #subscribe > .newsletter {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--r2-line);
  border-radius: var(--r2-r);
  background: var(--r2-surface);
}
html body.r2.r2-home:is(*, #r2) main > #subscribe > .newsletter h2 { margin: 0 0 6px; font: 700 20px/1.25 var(--r2-font); }

/* ===== 9. Insights index: topic lists, not a wall of equal cards ===== */
html body.r2.r2-reading-index:is(*, #r2) .insight-navigation ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
html body.r2.r2-reading-index:is(*, #r2) .insight-navigation a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--r2-line-2);
  border-radius: var(--r2-r);
  background: var(--r2-surface);
  color: var(--r2-ink);
  font: 600 14.5px/1 var(--r2-font);
  text-decoration: none;
}
html body.r2.r2-reading-index:is(*, #r2) .insight-navigation a:hover { border-color: var(--r2-ink); }
html body.r2.r2-reading-index:is(*, #r2) .insight-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 40px;
  row-gap: 0;
  margin: 40px 0 0;
  padding: 0;
}
html body.r2.r2-reading-index:is(*, #r2) .insight-group > h2 {
  grid-column: 1 / -1;
  margin: 0 0 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--r2-rule);
}
html body.r2.r2-reading-index:is(*, #r2) .insight-group > .col-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "tag meta" "title title" "sum sum";
  column-gap: 10px;
  align-content: start;
  margin: 0;
  padding: 16px 0 18px;
  border: 0;
  border-bottom: 1px solid var(--r2-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  clip-path: none;
}
html body.r2.r2-reading-index:is(*, #r2) .insight-group > .col-card .col-tags { grid-area: tag; display: flex; gap: 6px; margin: 0; }
html body.r2.r2-reading-index:is(*, #r2) .insight-group > .col-card .col-tags span {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--r2-ink-2);
  font: 600 12px/1.4 var(--r2-font);
  letter-spacing: .01em;
  text-transform: none;
}
html body.r2.r2-reading-index:is(*, #r2) .insight-group > .col-card .meta { grid-area: meta; margin: 0; color: var(--r2-ink-3); font: 400 12px/1.4 var(--r2-font); }
html body.r2.r2-reading-index:is(*, #r2) .insight-group > .col-card .meta::before { content: "·"; margin-right: 8px; color: var(--r2-ink-3); }
html body.r2.r2-reading-index:is(*, #r2) .insight-group > .col-card h3 {
  grid-area: title;
  margin: 6px 0 6px;
  color: var(--r2-ink);
  font: 700 18px/1.32 var(--r2-font);
  letter-spacing: -0.008em;
}
html body.r2.r2-reading-index:is(*, #r2) .insight-group > .col-card h3 a { display: flex; align-items: center; min-height: 44px; color: inherit; text-decoration: none; }
html body.r2.r2-reading-index:is(*, #r2) .insight-group > .col-card h3 a:hover { color: var(--r2-blue); text-decoration: underline; text-underline-offset: .18em; }
html body.r2.r2-reading-index:is(*, #r2) .insight-group > .col-card p {
  grid-area: sum;
  max-width: none;
  margin: 0;
  color: var(--r2-ink-2);
  font: 400 14.5px/1.55 var(--r2-font);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* the first article of the first topic stays the lead, as one wide row */
html body.r2.r2-reading-index:is(*, #r2) .insight-group:first-child > .col-card:first-of-type { grid-column: 1 / -1; padding-block: 20px 22px; }
html body.r2.r2-reading-index:is(*, #r2) .insight-group:first-child > .col-card:first-of-type h3 { font-size: clamp(22px, 1vw + 16px, 28px); line-height: 1.22; }
html body.r2.r2-reading-index:is(*, #r2) .insight-group:first-child > .col-card:first-of-type p { -webkit-line-clamp: 3; max-width: 78ch; font-size: 15px; }
@media (max-width: 760px) {
  html body.r2.r2-reading-index:is(*, #r2) .insight-group { grid-template-columns: minmax(0, 1fr); }
  html body.r2.r2-reading-index:is(*, #r2) .insight-group > .col-card { padding-block: 14px 16px; }
}

/* ===== 10. Reading and tool pages: one accent (cobalt), no green tints ===== */
html body.r2:is(.r2-reading, .r2-reading-index, .r2-tool, .r2-page):is(*, #r2) {
  --h2-surface-sunk: #f3f5f5;
  --fw-title: 700;
  --surface-rail: #f3f5f5;
  --surface-2: #f3f5f5;
  --accent-soft: var(--r2-blue-tint);
  --brand: var(--r2-blue);
  --brand-ink: var(--r2-blue);
  --link: var(--r2-blue);
  --accent-wb: var(--r2-blue);
  --xp-blue-ink: var(--r2-blue);
}
html body.r2:is(.r2-reading, .r2-reading-index):is(*, #r2) main :is(h1, h2, h3) { font-family: var(--r2-font); color: var(--r2-ink); }
html body.r2.r2-reading:is(*, #r2) main h2 { font: 700 clamp(20px, .5vw + 17px, 24px)/1.28 var(--r2-font); letter-spacing: -0.012em; }
html body.r2.r2-reading:is(*, #r2) main h3 { font: 700 17px/1.35 var(--r2-font); }
html body.r2.r2-reading:is(*, #r2) main table :is(th, td) { padding: 8px 12px; border: 0; border-bottom: 1px solid var(--r2-line); background: transparent; }
html body.r2.r2-reading:is(*, #r2) main table thead th { border-bottom: 1px solid var(--r2-rule); color: var(--r2-ink-2); font: 600 13px/1.3 var(--r2-font); }
html body.r2.r2-reading:is(*, #r2) main :is(.table-wrap, .xp-table, .guide-table) { border: 0; border-radius: 0; box-shadow: none; }

/* ===== 11. Dashboard: a short head, then the work area ===== */
html body.r2.r2-dashboard:is(*, #r2) .r2-dash-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "title tools" "lede tools" "links links";
  align-items: end;
  column-gap: 24px;
  margin: 0 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--r2-line-2);
}
html body.r2.r2-dashboard:not(.r2-home):is(*, #r2) main .r2-dash-head > h1 { grid-area: title; margin: 0 0 6px; font-size: clamp(28px, .5vw + 25px, 32px); }
html body.r2.r2-dashboard:is(*, #r2) .r2-dash-head > .dash-lede { grid-area: lede; margin: 0; max-width: 72ch; color: var(--r2-ink-2); font: 400 15px/1.5 var(--r2-font); }
html body.r2.r2-dashboard:is(*, #r2) .r2-dash-head > .dash-links { grid-area: links; display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 10px 0 0; }
html body.r2.r2-dashboard:is(*, #r2) .r2-dash-head > .dash-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--r2-ink); font: 600 14.5px/1.2 var(--r2-font); text-decoration: none; }
html body.r2.r2-dashboard:is(*, #r2) .r2-dash-head > .dash-links a:hover { color: var(--r2-blue); text-decoration: underline; text-underline-offset: .2em; }
html body.r2.r2-dashboard:is(*, #r2) .r2-dash-head > .dash-links a[aria-current] { color: var(--r2-blue); }
html body.r2.r2-dashboard:is(*, #r2) .r2-dash-head > .dash-tools { grid-area: tools; display: flex; align-items: center; gap: 10px; margin: 0; }
html body.r2.r2-dashboard:is(*, #r2) .r2-dash-head .dlink[data-action="copy"] {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--r2-line-2);
  border-radius: var(--r2-r);
  background: var(--r2-surface);
  color: var(--r2-ink);
  font: 500 13.5px/1 var(--r2-font);
  text-decoration: none;
}
html body.r2.r2-dashboard:is(*, #r2) .cody-dashboard-home a { color: var(--r2-ink-2); }
@media (max-width: 760px) {
  html body.r2.r2-dashboard:is(*, #r2) .r2-dash-head { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "lede" "links" "tools"; }
  html body.r2.r2-dashboard:is(*, #r2) .r2-dash-head > .dash-tools { margin-top: 8px; }
}

/* panels: white with a 1px line instead of tinted slabs */
html body.r2.r2-dashboard:is(*, #r2) .dmetrics { border: 0; background: transparent; }
html body.r2.r2-dashboard:is(*, #r2) .cody-dashboard-home { margin-inline: 0; padding-inline: 0; }
html body.r2.r2-dashboard:is(*, #r2) :is(.dcontrols, .dmethod) {
  border: 1px solid var(--r2-line);
  border-radius: var(--r2-r);
  background: var(--r2-surface);
  box-shadow: none;
}
html body.r2.r2-dashboard:is(*, #r2) :is(.dcontrols, .dmetrics, .dmethod) > summary { min-height: 48px; color: var(--r2-ink); font: 600 16px/1.3 var(--r2-font); }
html body.r2.r2-dashboard:is(*, #r2) .dcontrol-label,
html body.r2.r2-dashboard:is(*, #r2) .dfields label { color: var(--r2-ink-2); font: 600 13px/1.3 var(--r2-font); }
html body.r2.r2-dashboard:is(*, #r2) .v1-result-sentence { margin: 20px 0 8px; color: var(--r2-ink-2); font: 400 16px/1.4 var(--r2-font); }
html body.r2.r2-dashboard:is(*, #r2) .v1-result-sentence .v1-result-number { color: var(--r2-ink); font: 700 30px/1 var(--r2-font); letter-spacing: -0.02em; }

/* stage flow: legend sits right under the bar it explains */
html body.r2.r2-dashboard:is(*, #r2) .doverview { margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--r2-line-2); }
html body.r2.r2-dashboard:is(*, #r2) .dflow { border-radius: 2px; overflow: hidden; }
html body.r2.r2-dashboard:is(*, #r2) .dflow-legend { margin-top: 8px; gap: 4px 18px; font-size: 13px; }
html body.r2.r2-dashboard:is(*, #r2) :is(.dflow-other, .dcov) { color: var(--r2-ink-2); font-size: 13px; }

/* KPI tiles: numbers first, consistent 1px tiles */
html body.r2.r2-dashboard:is(*, #r2) .dkpis > * { border: 1px solid var(--r2-line); border-radius: var(--r2-r); background: var(--r2-surface); box-shadow: none; }
html body.r2.r2-dashboard:is(*, #r2) .dkpis strong { font: 700 28px/1.1 var(--r2-font); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* chart cards: 17/700 titles, tighter bars, equal heights in a row */
html body.r2.r2-dashboard:is(*, #r2) .dgrid { align-items: stretch; gap: 16px; }
html body.r2.r2-dashboard:is(*, #r2) .dchart,
html body.r2.r2-dashboard:is(*, #r2) .dchart > .dcard {
  border: 0;
  border-radius: var(--r2-r);
  background: var(--r2-surface);
  box-shadow: none;
}
html body.r2.r2-dashboard:is(*, #r2) .dchart { border: 1px solid var(--r2-line); }
html body.r2.r2-dashboard:is(*, #r2) .dcard-head { margin-bottom: 10px; }
html body.r2.r2-dashboard:is(*, #r2) main .dcard-head h2 { margin: 0 0 4px; font: 700 17px/1.3 var(--r2-font); letter-spacing: -0.008em; }
html body.r2.r2-dashboard:is(*, #r2) .dcard-head .dsub { color: var(--r2-ink-2); font: 400 13px/1.45 var(--r2-font); }
html body.r2.r2-dashboard:is(*, #r2) .dbar { color: var(--r2-ink); font-size: 13px; }
html body.r2.r2-dashboard:is(*, #r2) .dbar-label { color: var(--r2-ink); font-size: 13px; }
html body.r2.r2-dashboard:is(*, #r2) .dbar-track { background: var(--r2-track); }
html body.r2.r2-dashboard:is(*, #r2) .dbar-value { color: var(--r2-ink); font: 600 13px/1.2 var(--r2-font); font-variant-numeric: tabular-nums; }
html body.r2.r2-dashboard:is(*, #r2) .dshare { color: var(--r2-ink-2); font-weight: 400; }
@media (min-width: 761px) {


}
html body.r2.r2-dashboard:is(*, #r2) .drank-value { font: 600 17px/1.2 var(--r2-font); font-variant-numeric: tabular-nums; }
html body.r2.r2-dashboard:is(*, #r2) .drank-name { color: var(--r2-ink); font-size: 13.5px; }
html body.r2.r2-dashboard:is(*, #r2) .drank-position { color: var(--r2-ink-3); font-size: 13px; }

/* project table card follows the one-table rules; head line in ink */
html body.r2.r2-dashboard:is(*, #r2) #d-table.dcard { border: 1px solid var(--r2-line); border-radius: var(--r2-r); background: var(--r2-surface); box-shadow: none; }
html body.r2.r2-dashboard:is(*, #r2) main > .dash > p .dlink,
html body.r2.r2-dashboard:is(*, #r2) .dash > nav.dash-links:last-of-type a { color: var(--r2-ink); }

/* ===== 12. Directory summaries (companies, countries, policies): one compact strip ===== */
html body.r2:is(*, #r2) main .h2-entity--list .h2-entity-metrics {
  margin: 20px 0 0;
  padding: 0;
  border: 0;
  border-block: 1px solid var(--r2-line-2);
}
html body.r2:is(*, #r2) main .h2-entity--list .h2-entity-metrics .h2-metric { padding-block: 12px; border: 0; }
html body.r2:is(*, #r2) main .h2-entity--list .h2-entity-metrics .h2-metric + .h2-metric { border-left: 1px solid var(--r2-line); padding-left: 20px; }
html body.r2:is(*, #r2) main .h2-entity-metrics dt { color: var(--r2-ink-2); font: 600 13px/1.3 var(--r2-font); }
html body.r2:is(*, #r2) main .h2-entity-metrics dd { margin: 4px 0 0; color: var(--r2-ink); font: 700 28px/1.1 var(--r2-font); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
html body.r2:is(*, #r2) main .h2-entity-metrics dd :is(small, span) { color: var(--r2-ink-2); font: 400 13px/1.3 var(--r2-font); letter-spacing: 0; }
html body.r2:is(*, #r2) main .h2-entity--list .h2-entity-bars { margin-top: 28px; padding-top: 0; border-top: 0; }
html body.r2:is(*, #r2) main .h2-entity-bars figcaption strong { font: 700 17px/1.3 var(--r2-font); }
html body.r2:is(*, #r2) main .h2-entity-bars ol li { min-height: 30px; border-color: var(--r2-line); font-size: 13px; }
html body.r2:is(*, #r2) main :is(.v1-filter, .h2-entity--list .v1-filter) { border-color: var(--r2-line-2); }
@media (max-width: 760px) {
  html body.r2:is(*, #r2) main .h2-entity--list .h2-entity-metrics .h2-metric + .h2-metric { border-left: 0; padding-left: 0; border-top: 1px solid var(--r2-line); }
}

/* ===== 13. Price calculator: neutral result panel, inputs travel with the results ===== */
html body.r2.r2-tool:is(*, #r2) .calc-results.result-panel {
  border: 0;
  border-left: 1px solid var(--r2-line);
  background: #fafbfa;
}
html body.r2.r2-tool:is(*, #r2) .plant-definition.calc-plant { background: var(--r2-surface); border-top: 1px solid var(--r2-line); }
html body.r2.r2-tool:is(*, #r2) .work-grid { border-color: var(--r2-line-2); border-radius: var(--r2-r); }
html body.r2.r2-tool:is(*, #r2) main :is(summary, .cody-more-inputs > summary) { color: var(--r2-ink); }
html body.r2.r2-tool:is(*, #r2) main details > summary::marker { color: var(--r2-ink-2); }
@media (min-width: 1100px) and (min-height: 760px) {
  html body.r2.r2-tool:is(*, #r2) .work-grid > .cody-calc-inputs {
    position: sticky;
    top: 76px;
    align-self: start;
    max-height: calc(100vh - 92px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
}

/* ===== 14. Phones: tables keep the name readable ===== */
@media (max-width: 760px) {
  html body.r2:is(*, #r2) main .h2-capacity-meter i { display: none; }
  html body.r2:is(*, #r2) main .h2-stage-progress > span { white-space: normal; line-height: 1.3; }
  html body.r2:is(*, #r2) main .h2-stage-progress i { inline-size: 48px; }
  html body.r2:is(*, #r2) main :is(.h2-table, .h2-entity-table) tbody :is(th, td) { height: auto; padding-block: 10px; }
  html body.r2:is(*, #r2) main .h2-project-directory .h2-table tbody th { inline-size: 54%; }
  html body.r2:is(*, #r2) main .h2-project-directory .h2-table tbody th a { line-height: 1.3; }
  html body.r2:is(*, #r2) main form.v1-filter { background: var(--r2-surface); border: 1px solid var(--r2-line); border-radius: var(--r2-r); }
  html body.r2:is(*, #r2) main .h2-mobile-context { display: block; margin-top: 2px; color: var(--r2-ink-3); font-size: 13px; }
}

/* ===== 15. Search and result lists: rows with a type line, not a link pile ===== */
html body.r2:is(*, #r2) main form.v1-filter { background: var(--r2-surface); border-color: var(--r2-line); }
html body.r2:is(*, #r2) main ul.v1-results { margin: 8px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--r2-rule); }
html body.r2:is(*, #r2) main ul.v1-results > li {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--r2-line);
}
html body.r2:is(*, #r2) main ul.v1-results > li > a { color: var(--r2-ink); font: 600 15px/1.35 var(--r2-font); text-decoration: none; }
html body.r2:is(*, #r2) main ul.v1-results > li > a:hover { color: var(--r2-blue); text-decoration: underline; text-underline-offset: .18em; }
html body.r2:is(*, #r2) main ul.v1-results > li > span { color: var(--r2-ink-2); font: 400 14px/1.4 var(--r2-font); }

/* ===== 16. QA round 2 fixes (Sol) ===== */
/* Copy link keeps a 44px target in the compact dashboard head */
html body.r2.r2-dashboard:is(*, #r2) .r2-dash-head .dlink[data-action="copy"] { min-height: 44px; }
/* price calculator: <main> was its own scroll box, so the sticky input column never
   attached to the page scroll. Clip instead of scroll: no scroll container, same clipping. */
@media (min-width: 1100px) and (min-height: 760px) {
  html body.r2.r2-tool:is(*, #r2) main:has(.work-grid) { overflow: clip; overflow-clip-margin: 0; }
}
/* phones: the hairline under the stage read as an underline; the shape and words carry the stage */
@media (max-width: 760px) {
  html body.r2:is(*, #r2) main .h2-stage-progress i { display: none; }
}
/* calculator inner surfaces: the last green-tinted fills become neutral or the action tint */
html body.r2.r2-tool:is(*, #r2) main :is(.notice, .finance-advanced-readonly, .readonly-extension, .result-banner) { background: #f3f5f5; }
html body.r2.r2-tool:is(*, #r2) main table thead th { background: #f3f5f5; }
html body.r2.r2-tool:is(*, #r2) main :is(.case-option, .stage-button.is-active, .basis-content) { background: var(--r2-blue-tint); }
html body.r2.r2-tool:is(*, #r2) main :is(details.solve-inline, div.metric) { background: #f3f5f5; }

/* ===== 17. QA round 2 fixes (Grok) ===== */
/* sort buttons in table heads: 44px targets */
html body.r2:is(*, #r2) main :is(.h2-table, .v1-table-wrap > table, .h2-entity-table, .dtable-wrap > table) thead th:has(> button) { padding-block: 0; }
html body.r2:is(*, #r2) main :is(.h2-table, .v1-table-wrap > table, .h2-entity-table, .dtable-wrap > table) thead th button { min-height: 44px; font-size: 14px; } /* baseline sort-button size */
/* record names: the link fills the row height, so the target is the row, not the words */
html body.r2:is(*, #r2) main :is(.h2-table, .h2-entity-table) tbody th a {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin-block: -8px;
}
/* calculator tables follow the one-table head */
html body.r2.r2-tool:is(*, #r2) main table thead th {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--r2-rule);
  color: var(--r2-ink-2);
  font: 600 13px/1.3 var(--r2-font);
}
html body.r2.r2-tool:is(*, #r2) main table tbody :is(th, td) { border-bottom: 1px solid var(--r2-line); }
html body.r2.r2-tool:is(*, #r2) main h2 { font-family: var(--r2-font); font-weight: 700; letter-spacing: -0.01em; }
/* reading pages: 720px column, title in the shared 700 weight */
html body.r2.r2-reading:is(*, #r2) main article { max-width: 720px; }
html body.r2.r2-reading:is(*, #r2) main article h1 {
  font: 700 clamp(30px, 1.2vw + 22px, 40px)/1.12 var(--r2-font);
  letter-spacing: -0.022em;
}
/* phone table of contents chips: 44px */
@media (max-width: 760px) {
  html body.r2.v1-detail:is(*, #r2) main .brief-jump a { min-height: 44px; }
}
/* the sensitivity table was already wider than its column; keep it inside the result panel */
html body.r2.r2-tool:is(*, #r2) main .calc-results .calc-chart__table { width: 100%; max-width: 100%; table-layout: fixed; }
html body.r2.r2-tool:is(*, #r2) main .calc-results .calc-chart__table :is(th, td) { padding-inline: 6px; overflow-wrap: anywhere; }

/* sort arrows keep their operating size */
html body.r2:is(*, #r2) main thead th button > span[aria-hidden] { font-size: 14px; }

/* ===== 18. Review fixes =====
   reading pages: tables may be wider than the 720px text column. The table block
   shrink-wraps its table and is centred on the column, up to 1040px or the
   viewport less a 16px gutter each side, whichever is smaller. From 600px up, so
   every width where the text column is narrower than the screen gets it. */
@media (min-width: 600px) {
  html body.r2.r2-reading:is(*, #r2) main article :is(.guide-table-block, .table-wrap, .xp-table) {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    min-width: 100%;
    max-width: min(1040px, calc(100vw - 32px));
  }
}

/* 330: active stage buttons keep the light r2 tint; use ink text to meet 4.5:1. */
html body.r2.r2-tool:is(*, #r2) main .stage-button.is-active{color:var(--r2-ink)}
