/* =========================================================================
   Transition Acceleration Framework — microsite
   Styling pulled from the TAF-glossy Figma deck:
     - Hanken Grotesk throughout
     - Deep navy-black #0a0a19 ink
     - White background with subtle gray tints
     - #0078ad accent blue for inline emphasis
     - Bold 12px / 1.92 letter-spacing uppercase eyebrows
   ========================================================================= */

:root {
  /* surfaces */
  --bg:        #ffffff;
  --bg-tint:   #f7f7f8;          /* subtle gray-tinted section accent */
  --bg-dark:   #0a0a19;          /* deep navy-black from deck cover/end pages */
  --bg-deep:   #0078ad;          /* RHG blue — footer */

  /* ink */
  --ink:       #0a0a19;
  --ink-soft:  #2a2a36;          /* near-ink, used for body */
  --ink-mute:  rgba(10, 10, 25, .62);
  --ink-light: rgba(10, 10, 25, .42);

  /* rules */
  --rule:        rgba(10, 10, 25, .12);
  --rule-strong: rgba(10, 10, 25, .30);
  --rule-solid:  #0a0a19;

  /* accent */
  --primary:      #0078ad;       /* deck inline highlight blue */
  --primary-soft: #4a9ec5;
  --primary-tint: rgba(0, 120, 173, .08);

  /* secondary accent — warm clay for contrast in charts */
  --accent:       #b8552c;
  --accent-tint:  rgba(184, 85, 44, .10);

  /* chart-only roles */
  --positive: #0078ad;
  --negative: #a23a3a;
  --baseline: #8e8e9c;

  /* typography */
  --sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --serif: var(--sans);          /* alias: deck has no serif */
  --chart-sans: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --chart-font: 12px;

  /* layout */
  --wrap-w: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 0;                   /* sharp corners across the site */

  --shadow-soft: 0 1px 2px rgba(10, 10, 25, .04), 0 4px 16px rgba(10, 10, 25, .04);

  /*adding contact banner specifications from climatedeck*/
  --spacing-container-padding: 120px;
  --spacing-page-margin: 80px;
  --font-family: 'Hanken Grotesk', sans-serif;
  --font-size-heading: 24px;
  --weight-bold: 700;
  --background-default: #ffffff;
  --spacing-md: 16px;
  --font-size-body: 16px;
  --weight-regular: 400;
  --text-primary: #0a0a19;
  --button-height: 36px;
  --button-padding: 10px 20px;
  --weight-medium: 500;
  --rhg-pastel-blue: #CCE4EF;
}

/* ----- base ---------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;                /* 23.2/16 = 1.45 — deck body line height */
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
a:hover { border-bottom-color: var(--primary); }

h1, h2, h3, h4, h5 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -.012em;
  font-weight: 700;
}
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 700; }
em { font-style: italic; }
sub { font-size: .7em; }

.ink-soft { color: var(--ink-mute); font-weight: 500; }

.wrap {
  max-width: var(--wrap-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ----- nav ----------------------------------------------------------- */

.site-nav {
  position: static;/*top: 0; z-index: 50;*/
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--rule-solid);
}

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 54px; /*switched the height to 54px, like the header height in rhg components*/
}

.site-nav .nav-inner {
  max-width: none;
  margin: 0;
  padding-left: 0; /*switched the padding left to 0 rather than 1rem*/
  padding-right: var(--gutter);
}

.brand {
  display: flex; align-items: center; gap: 1rem; /*switched the gap to 1rem from .55rem, this should be the same as the gap between the logo and the text in climatedeck*/
  font-size: 11px;
  font-weight: 500;
  /*letter-spacing: .12em;*/
  /*text-transform: uppercase;*/
  color: var(--ink); border: none;
}
.brand-mark { font-weight: 700; }
.brand-sep { color: var(--ink-light); }
.brand-product { color: var(--text-primary); font-size: 32px; font-weight: 700; }

@media (max-width: 768px) {
  .brand-product { font-size: 26px; }
}

@media (max-width: 700px) {
  .brand-product { font-size: 20px; }
}

@media (max-width: 600px) {
  .brand-product { font-size: 14px; }
}

.brand-logo {
  display: block;
  width: 54px;
  height: 54px;
  flex-shrink: 0;
}

.nav-links {
  display: flex; gap: 32px; align-items: center; /*switched the gap to 32px, like the gap between US Emissions & Energy and Global Emissions & Energy in climatedeck*/
  font-size: 16px; /*switched the font size to 16px, like the font size in rhg components rhg button*/
  font-weight: 500;
  /*letter-spacing: .08em;*/
  /*text-transform: uppercase;*/
}
.nav-links a { color: var(--ink); border: none; } /*switched the color to --ink, like the color in rhg components rhg button*/
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  background: var(--primary);
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 500;
  height: 36px;
  border-radius: 0;
  transition: background .15s ease;
}
.nav-cta:hover { background: rgba(0, 120, 173, 0.88); color: #fff !important; }

.site-header-accent {
  height: 54px;
  background: #cce4ef;
}

.site-header-accent .nav-inner {
  max-width: none;
  margin: 0;
  padding-left: 16px;
  padding-right: var(--gutter);
  justify-content: flex-start;
}

@media (max-width: 720px) {
  .brand-sep { display: none; }
  .site-header-accent { display: none; }
}

/* ----- hero ---------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 9vw, 128px) 0 clamp(56px, 7vw, 104px);
  /*background: var(--rhg-pastel-blue)*/
  /*border-bottom: 1px solid var(--rule-solid);*/
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-image:
    linear-gradient(to right, rgba(0, 120, 173, 0.15) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 120, 173, 0.15) 1px, transparent 1px);
  background-size: 96px 96px;
  background-position: left top;
  z-index: 0;
  pointer-events: none; /* clicks pass through to content */
}

.hero > * {
  position: relative;
  z-index: 1;
}

.eyebrow, .section-eyebrow {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.76px;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 2rem;
  line-height: 16px;
}
.section-eyebrow {
  padding: 0;
  background: none;
  border-radius: 0;
}

.hero-title {
  font-family: var(--sans);
  font-size: clamp(2.4rem, 6.4vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -.022em;
  line-height: 1.08;
  max-width: 18ch;
  margin-bottom: 1.75rem;
}
.hero-title .ink-soft,
.section-title .ink-soft { color: var(--primary); font-weight: 700; }

.hero-lede {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.5;
  color: var(--ink-soft);
  font-weight: 500;
  max-width: 64ch;
  margin-bottom: 2.5rem;
}

.cta-row {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-bottom: 3.25rem;
}

.btn {
  /*display: inline-flex; flex-direction: column;
  text-align: left;
  padding: 18px 22px;
  border-radius: var(--radius);
  font-weight: 500;
  border: 1px solid transparent;
  min-width: 244px;
  position: relative;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;*/
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: var(--button-height);
  padding: var(--button-padding);
  font-family: var(--font-family);
  font-size: var(--font-size-body);
  font-weight: var(--weight-medium);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 0;
  white-space: nowrap;
  text-align: center;
  line-height: calc(var(--button-height) - 20px);
  box-sizing: border-box;
}
/*.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
  border-bottom-color: transparent;
}*/
.btn-label {
  font-size: 16px; font-weight: 700;
  display: flex; justify-content: space-between; align-items: center;
  letter-spacing: -.01em;
}
.btn-meta {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-top: 6px;
  opacity: .75;
}
.btn-arrow {
  font-size: 18px;
  position: absolute; right: 20px; top: 18px;
  transition: transform .15s ease;
}
.btn:hover .btn-arrow { transform: translateY(2px); }

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: #006291; color: #fff; }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule-strong);
}
.btn-secondary:hover { border-color: var(--ink); }

.hero-stats {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule-solid);
  max-width: 880px;
}
.hero-stats li { display: flex; flex-direction: column; gap: 6px; }
.hero-stats strong {
  font-family: var(--sans);
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.025em;
  line-height: 1;
}
.hero-stats span {
  font-size: 11px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 500;
  line-height: 1.3;
}
@media (max-width: 720px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}

/* ----- section base -------------------------------------------------- */

.section {
  padding: clamp(64px, 10vw, 128px) 0;
  /*border-bottom: 1px solid var(--rule-solid);*/
}
.section-tint { background: var(--bg-tint); }
.section-dark {
  background: var(--bg-deep);
  color: #eaf3f8;
  border-bottom: 0;
}

.section-title {
  font-family: var(--sans);
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -.018em;
  line-height: 1.08;
  margin-bottom: 1.5rem;
  max-width: 24ch;
}
.section-title-light { color: #f4f4f9; }
.eyebrow-light { color: #c1c4d2 !important; }

.section-lede {
  font-size: clamp(1.05rem, 1.3vw, 1.18rem);
  line-height: 1.5;
  color: var(--ink-soft);
  font-weight: 500;
  max-width: 62ch;
  margin-bottom: 3rem;
}
.section-lede a {
  text-decoration: underline;
  text-underline-offset: 2px;
  border-bottom: none;
}
.section-lede a:hover { border-bottom-color: transparent; }
.section-dark .section-lede { color: #c1c4d2; }

.section-closer {
  margin-top: 3rem;
  padding: 1.75rem 0 0;
  border-top: 1px solid var(--rule-strong);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -.012em;
  line-height: 1.32;
  max-width: 40ch;
}
.section-closer em { font-style: normal; color: var(--ink-mute); }
.section-closer strong { font-weight: 700; color: var(--primary); }

/* ----- then-now-next ------------------------------------------------- */

.then-now-next {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1.4fr;
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}
.tnn-card {
  background: var(--bg);
  border: 1px solid var(--rule);
  padding: 1.75rem;
  border-radius: var(--radius);
}
.section-tint .tnn-card { background: var(--bg); }
.tnn-card h3 {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 1.25rem;
  font-weight: 700;
}
.tnn-active { border-color: var(--ink); border-width: 1px; }
.tnn-active h3 { color: var(--ink); }

.tnn-card p,
.tnn-list li,
.tnn-tags li,
.tnn-foot {
  font-size: 16px;
  line-height: 1.45;
}

.tnn-list { list-style: none; padding: 0; margin: 0; }
.tnn-list li {
  padding: .75rem 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-soft);
}
.tnn-list li:last-child { border-bottom: 0; }
.tnn-list strong { color: var(--ink); font-weight: 700; }

.tnn-tags {
  list-style: none; padding: 0; margin: 1rem 0;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.tnn-tags li {
  padding: 8px 14px;
  background: rgba(10, 10, 25, .06);
  border: 1px solid rgba(10, 10, 25, .25);
  color: var(--ink);
  border-radius: var(--radius);
  font-weight: 500;
}
.tnn-foot { color: var(--ink); margin-top: 1rem; }

@media (max-width: 880px) {
  .then-now-next { grid-template-columns: 1fr; }
}

/* ----- charts (shared) ----------------------------------------------- */

.chart-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 1rem;
  align-items: stretch;
}
.chart-grid .chart {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.chart-grid .chart-canvas {
  flex: 1;
  display: flex;
  align-items: flex-end;
}
@media (max-width: 880px) { .chart-grid { grid-template-columns: 1fr; } }

.chart {
  margin: 0;
  background: var(--bg);
  /*border: 1px solid var(--rule);*/
  border-radius: var(--radius);
  padding: 1.75rem;
  font-family: var(--chart-sans);
}
.section-tint .chart { background: var(--bg); }

.chart-wide { margin-top: 2.5rem; }

.chart figcaption {
  margin-bottom: 1.5rem;
}
.chart figcaption h4 {
  font-family: var(--chart-sans);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: .15rem;
  letter-spacing: -.012em;
  line-height: 1.15;
}
.chart figcaption p {
  font-family: var(--chart-sans);
  font-size: 16px;
  color: var(--ink-soft);
  font-weight: 400;
  max-width: 80ch;
  line-height: 1.25;
}

.chart-source {
  margin-top: 1rem;
  padding-top: .85rem;
  /*border-top: 1px solid var(--rule);*/ 
  font-family: var(--chart-sans);
  font-size: 13px;
  color: var(--ink); /*switched to --ink rather than --ink-mute*/
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.4;
}

.chart-canvas {
  width: 100%;
  position: relative;
}
.chart-canvas svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

/* Intro charts sit in a 2-column grid at ~half page width — bump type to match full-width charts */
.chart-grid text.axis,
.chart-grid .bar-label,
.chart-grid .series-label {
  font-size: 16px;
}

.chart-controls {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 1.25rem;
}
.toggle {
  font: inherit;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 8px 14px;
  background: rgba(10, 10, 25, .04);
  color: var(--ink-soft);
  border: 1px solid rgba(10, 10, 25, .25);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .15s ease;
}
.toggle:hover { color: var(--ink); border-color: var(--ink); }
.toggle.is-on {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* SVG chart elements */
.axis line, .axis path { stroke: var(--rule-strong); stroke-width: 1; }
text.axis { font: 400 var(--chart-font) var(--chart-sans); fill: var(--ink-soft); }
.gridline { stroke: var(--rule); stroke-width: 1; stroke-dasharray: 2 3; }
.bar { transition: opacity .15s ease; cursor: default; }
.bar:hover { opacity: .82; }
.bar-label { font: 500 var(--chart-font) var(--chart-sans); fill: var(--ink); }
.series-label { font: 700 var(--chart-font) var(--chart-sans); fill: var(--ink); }
.chart-note { font: 400 var(--chart-font) var(--chart-sans); fill: var(--ink-mute); }
.sector-label { font: 500 var(--chart-font) var(--chart-sans); fill: var(--ink-mute); letter-spacing: .14em; text-transform: uppercase; }
.zero-line { stroke:#c9cbcb; stroke-width: 1; } /*switched to #c9cbcb rather than var(--ink)*/

/* ----- gap section — bar visualization ------------------------------- */

.gap-table {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2.5rem;
  align-items: center;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 2.25rem 0;
  margin: 1.5rem 0 2rem;
}

.gap-table-left { padding-left: 0; }
.gap-dollar-big {
  font-family: var(--sans);
  font-size: 4.2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -.04em;
  margin-bottom: .6rem;
}

.gap-dollar-cap,
.gap-tech-head p,
.gap-row-text {
  font-size: 16px;
  line-height: 1.45;
}

.gap-dollar-cap {
  font-weight: 500;
  color: var(--ink);
  max-width: 14ch;
  margin: 0;
}

.gap-tech { padding: .5rem 0; }
.gap-tech + .gap-tech {
  border-top: 1px solid var(--rule);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
}

.gap-tech-head {
  padding-bottom: .5rem;
  margin-bottom: .25rem;
  border-bottom: 1px solid var(--rule);
}
.gap-tech-head h4 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -.015em;
  margin-bottom: .2rem;
}
.gap-tech-head p {
  color: var(--ink-soft);
  font-weight: 500;
  margin: 0;
}

.gap-row {
  display: grid;
  grid-template-columns: 180px 220px 1fr;
  gap: 1.25rem;
  align-items: center;
  padding: .85rem 0;
  border-bottom: 1px solid var(--rule);
}
.gap-row:last-child { border-bottom: 0; }

.gap-row-label {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 700;
}
.gap-row-bar {
  display: flex;
  align-items: center;
  height: 5px;
}
.bar {
  display: block;
  height: 5px;
  border-radius: 0;
}
.bar-counted { width: 140px; background: var(--ink); }
.bar-low      { width: 50px;  background: rgba(10, 10, 25, .20); }
.bar-high     { width: 170px; background: var(--primary); }

.gap-row-text {
  color: var(--ink);
  font-weight: 500;
}
.text-primary { color: var(--primary); }
.gap-row-text strong.text-primary { font-weight: 700; }

.gap-foot {
  font-size: clamp(1.125rem, 1.5vw, 1.35rem);
  line-height: 1.32;
  font-weight: 700;
  color: var(--ink);
  margin: 2rem 0 0;
  max-width: 64ch;
  letter-spacing: -.005em;
}

@media (max-width: 880px) {
  .gap-table { grid-template-columns: 1fr; gap: 2rem; }
  .gap-row { grid-template-columns: 140px 1fr; }
  .gap-row-bar { grid-column: 1 / -1; }
}

/* ----- how TAF is different (section 03) ----------------------------- */

.how-different {
  margin-top: 3.5rem;
  margin-bottom: 3.5rem;
}
.how-different-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1.5rem;
  letter-spacing: -.005em;
}
.how-different-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.hd-col h5 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -.018em;
  margin: 0 0 1.5rem;
  padding-top: .9rem;
  border-top: 2px solid var(--ink);
  line-height: 1.15;
}
.hd-col-taf h5 {
  color: var(--primary);
  border-top-color: var(--primary);
}
.hd-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hd-col li,
.three-q-intro,
.three-q p {
  font-size: 16px;
  line-height: 1.45;
}

.hd-col li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: .5rem 0;
  font-weight: 500;
  color: var(--ink);
}
.hd-col li::before {
  content: "";
  display: block;
  width: 10px; height: 10px;
  background: var(--primary);
  flex-shrink: 0;
}
.hd-col-existing li::before {
  background: var(--ink);
}

@media (max-width: 720px) {
  .how-different-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

.three-q-intro {
  color: var(--ink-soft);
  font-weight: 500;
  max-width: 62ch;
  margin: 0 0 2.5rem;
}

/* ----- three-q ------------------------------------------------------- */

.three-q {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
.three-q li {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex; flex-direction: column;
}
.section-tint .three-q li { background: var(--bg); }
.q-num {
  font-family: var(--sans);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 1.5rem;
  letter-spacing: -.025em;
}
.three-q h3 {
  font-family: var(--sans);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: .9rem;
  letter-spacing: -.012em;
  line-height: 1.2;
}
.three-q p {
  color: var(--ink-soft);
  font-weight: 500;
  margin: 0;
}
.three-q p strong { color: var(--ink); font-weight: 700; }

@media (max-width: 880px) {
  .three-q { grid-template-columns: 1fr; }
}

/* ----- metrics ------------------------------------------------------- */

.metric-block { margin-top: 4rem; }
.metric-block:first-of-type { margin-top: 1rem; }

.metric-header {
  display: grid; grid-template-columns: auto 1fr; gap: 1.5rem;
  align-items: start;
  margin-bottom: 2rem;
  padding-bottom: 1.75rem;
}
.metric-tag {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.4rem;
  padding: 0 .5rem;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  letter-spacing: .02em;
  /* square side = original height (18px pad + 1.4rem text + 18px pad) */
  min-width: 54px;
  min-height: 54px;
  aspect-ratio: 1;
  text-align: center;
  line-height: 1;
}
.metric-header h3 {
  font-family: var(--sans);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: .5rem;
  letter-spacing: -.018em;
  line-height: 1.1;
}
.metric-header p {
  font-size: 16px;
  color: var(--ink-soft);
  font-weight: 500;
  line-height: 1.45;
  max-width: 72ch;
}

/* ----- radar block --------------------------------------------------- */

.radar-block {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: stretch;
}
.radar-legend {
  /*background: var(--bg);*/
  background: transparent;
  /*border: 1px solid var(--rule);*/
  border:none;
  border-radius: var(--radius);
  padding: 1.75rem;
  font-size: 13px;
}
/*.section-tint .radar-legend,
.radar-legend { background: var(--bg-tint); }*/
.legend-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  margin-bottom: 1.5rem;
}
.legend-row strong {
  display: block;
  margin-bottom: .35rem;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.legend-row p {
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 500;
  margin: 0;
  line-height: 1.45;
}
.dot {
  width: 14px; height: 14px; border-radius: 50%;
  margin-top: 4px;
}
.dot-a { background: var(--baseline); }
.dot-b { background: var(--primary); }
.radar-legend hr {
  border: 0; border-top: 1px solid var(--rule);
  margin: 1.25rem 0;
}
.legend-note {
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 500;
  line-height: 1.45;
}
.legend-note strong { color: var(--ink); font-weight: 700; }

.radar-right {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.radar-attributes {
  margin-top: 15rem; /*pushes the attributes section down so it looks less awkward */
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.75rem;
  font-family: var(--sans);
}
.section-tint .radar-attributes { background: var(--bg); }

.radar-attributes h5 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 1rem;
  letter-spacing: -.005em;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--rule);
}

.radar-attributes dl {
  margin: 0;
  display: grid;
  gap: .85rem;
}
.radar-attributes dt {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .15rem;
}
.radar-attributes dd {
  font-size: 15px;
  color: var(--ink-soft);
  font-weight: 500;
  line-height: 1.4;
  margin: 0 0 .35rem;
}
.radar-attributes dd:last-of-type { margin-bottom: 0; }

@media (max-width: 980px) {
  .radar-block { grid-template-columns: 1fr; }
}

/* radar SVG paths */
.radar-grid { fill: none; stroke: var(--rule-strong); stroke-width: 1; }
.radar-axis { stroke: var(--rule); stroke-width: 1; }
.radar-axis-label { font: 500 var(--chart-font) var(--chart-sans); fill: var(--ink-soft); }
.radar-shape { transition: opacity .25s ease; }
.radar-shape-a { fill: var(--baseline); fill-opacity: .15; stroke: var(--baseline); stroke-width: 2; }
.radar-shape-b { fill: var(--primary); fill-opacity: .15; stroke: var(--primary); stroke-width: 2; }
.radar-point { stroke: var(--bg); stroke-width: 1.5; }

/* ----- audiences ----------------------------------------------------- */

.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.audience-card {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.section-tint .audience-card { background: var(--bg); }
.audience-card h3 {
  font-family: var(--sans);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: .4rem;
  letter-spacing: -.012em;
  line-height: 1.15;
}

.aud-sub,
.audience-card li,
.method-card p {
  font-size: 16px;
  line-height: 1.45;
}

.aud-sub {
  color: var(--ink-mute);
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.audience-card ul { list-style: none; padding: 0; margin: 0; }
.audience-card li {
  padding: .7rem 0 .7rem 18px;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-weight: 500;
  background-image: linear-gradient(var(--ink), var(--ink));
  background-size: 8px 2px;
  background-repeat: no-repeat;
  background-position: 0 calc(.7rem + 0.6em - 1px);
}
.audience-card li:first-child { border-top: 0; }

@media (max-width: 720px) {
  .audience-grid { grid-template-columns: 1fr; }
}

/* ----- method -------------------------------------------------------- */

.method-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}
.method-card {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
}
.method-card h4 {
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .55rem;
  letter-spacing: -.01em;
}
.method-card p {
  color: var(--ink-soft);
  font-weight: 500;
}

@media (max-width: 720px) {
  .method-grid { grid-template-columns: 1fr; }
}

.method-cta {
  background: transparent;
  /*background: rgba(10, 10, 25, .04);*/
  /*border: 1px solid var(--rule);*/
  border:none;
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.method-cta p {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -.015em;
  line-height: 1.2;
}

/* ----- contact ------------------------------------------------------- */

.contact-section {
  background-color: var(--primary);
  padding: 40px 0;
  width: 100%;
  box-sizing: border-box;
}

.contact-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--spacing-container-padding);
  display: flex;
  gap: var(--spacing-page-margin);
  align-items: flex-start;
  box-sizing: border-box;
}

.contact-title {
  flex: 0 0 320px;
  max-width: 320px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.contact-title h2 {
  font-family: var(--font-family);
  font-size: var(--font-size-heading);
  font-weight: var(--weight-bold);
  color: var(--background-default);
  line-height: normal;
  margin: 0;
}

.contact-content {
  flex: 1;
  min-width: 0;
  padding-top: var(--spacing-md);
  border-top: 0.5px solid var(--background-default);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  align-items: flex-start;
}

.contact-description {
  font-family: var(--font-family);
  font-size: var(--font-size-body);
  font-weight: var(--weight-regular);
  line-height: 1.45;
  color: var(--background-default);
  margin: 0;
  width: 100%;
}

@media (max-width: 1200px) {
  .contact-container {
    padding-left: clamp(24px, 5vw, 48px);
    padding-right: clamp(24px, 5vw, 48px);
    gap: 2.5rem;
  }
}

@media (max-width: 960px) {
  .contact-container {
    flex-direction: column;
    gap: 1.5rem;
  }

  .contact-title {
    flex: none;
    max-width: none;
  }

  .contact-content {
    padding-top: 0;
    border-top: none;
  }
}

/* ----- page nav (sticky TOC) ----------------------------------------- */

.contact-section + .page-nav {
  margin-top: 20px;
  border-top: none;
}

.page-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-top: 4px solid var(--primary);
  padding: 16px 0;
}

.page-nav-inner {
  max-width: var(--wrap-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.page-nav-label {
  font-family: var(--font-family);
  font-size: var(--font-size-body);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  white-space: nowrap;
}

.page-nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 64px;
}

.page-nav-links a {
  font-family: var(--font-family);
  font-size: var(--font-size-body);
  font-weight: var(--weight-regular);
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  border: none;
}

.page-nav-links a:hover,
.page-nav-links a.is-active {
  color: var(--primary);
}

@media (max-width: 720px) {
  .page-nav-inner {
    gap: 24px;
  }

  .page-nav-links {
    gap: 32px;
  }
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: var(--button-height);
  padding: var(--button-padding);
  font-family: var(--font-family);
  font-size: var(--font-size-body);
  font-weight: var(--weight-medium);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 0;
  white-space: nowrap;
  text-align: center;
  line-height: calc(var(--button-height) - 20px);
  box-sizing: border-box;
}

.button-dark {
  background-color: var(--text-primary);
  color: var(--background-default);
}

.button-dark:hover {
  background-color: #1a1a2e;
}

.button-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-left: 8px;
  filter: brightness(0) invert(1);
}

/* ----- footer -------------------------------------------------------- */

.site-foot {
  /*padding: 2rem 0;*/
  background: var(--rhg-pastel-blue); /*switched the color to pastel blue, like in climatedeck*/
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.foot-inner {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; 
  /*gap: 1rem;*/
  max-width: none;
  margin: 0;
  padding: 16px 24px;
  font-size: 16px;
  color: #0A0A19; /*switched the color to black, like in climatedeck*/
  font-weight: 400;
  line-height: 1.2; /*added line height of 1.2*/
}
.foot-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px; /*added gap of 16px*/
}
.foot-inner p { margin: 0; line-height: 1.2; } /*added line height of 1.2*/
.site-foot a { /*matches rhg-flask-components .footer-link*/
  color: #0A0A19; /*--rhg-deep-black*/
  line-height: 1.2;
  text-decoration: underline;
  text-underline-position: from-font;
}
.site-foot a:hover { color: #0A0A19; }

.footer-logo-link,
.footer-logo-link:hover {
  border-bottom-color: transparent;
  text-decoration: none;
}

.footer-logo {
  display: block;
  height: 40px;   /* adjust to taste */
  width: 112px;
}

@media (max-width: 768px) {
  .foot-inner {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .foot-left {
    flex-direction: column;
    align-items: center;
  }
}

/* ----- tooltip ------------------------------------------------------- */

.tooltip {
  position: fixed;
  top: 0; left: 0;
  background: var(--ink);
  color: #f4f4f9;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, calc(-100% - 10px));
  transition: opacity .12s ease;
  white-space: nowrap;
  z-index: 100;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .18);
}
.tooltip strong { color: #fff; font-weight: 700; }
.tooltip.is-visible { opacity: 1; }
.tooltip::after {
  content: "";
  position: absolute;
  bottom: -5px; left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--ink);
  border-bottom: 0;
}
