@import url("/assets/fonts/fonts.css");

:root {
  --ink: #071a2d;
  --navy: #0a2947;
  --blue: #17628d;
  --cyan: #5ed9ff;
  --orange: #ee6a3c;
  --paper: #fffdf8;
  --sand: #f3eadb;
  --line: #d8e2e8;
  --muted: #526475;
  --actual: #17628d;
  --forecast: #9a5b00;
  --assumption: #7a3f86;
  --interpretation: #226642;
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", Arial, sans-serif;
  line-height: 1.62;
  margin: 0;
}
a { color: #0d5f8d; }
a:hover, a:focus-visible { color: #073d5b; }
.skip-link {
  background: white;
  left: 16px;
  padding: 10px 14px;
  position: fixed;
  top: -80px;
  z-index: 1000;
}
.skip-link:focus { top: 16px; }
.site-header {
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,.16);
  color: white;
}
.site-header-inner {
  align-items: center;
  display: grid;
  gap: 28px;
  grid-template-columns: auto 1fr auto;
  margin: 0 auto;
  max-width: 1260px;
  padding: 18px 28px;
}
.brand {
  align-items: center;
  color: white;
  display: flex;
  gap: 11px;
  text-decoration: none;
}
.brand-mark {
  align-items: center;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 5px;
  color: var(--cyan);
  display: flex;
  font-size: .63rem;
  font-weight: 850;
  height: 38px;
  justify-content: center;
  letter-spacing: .08em;
  width: 38px;
}
.brand strong {
  font-size: .72rem;
  letter-spacing: .07em;
  line-height: 1.3;
  text-transform: uppercase;
}
.brand small {
  color: #9ab3c6;
  display: block;
  font-size: .54rem;
}
.site-nav {
  display: flex;
  gap: 21px;
  justify-content: center;
}
.site-nav a {
  color: #d6e6f3;
  font-size: .75rem;
  font-weight: 700;
  text-decoration: none;
}
.header-cta {
  background: var(--orange);
  border-radius: 7px;
  color: white;
  font-size: .72rem;
  font-weight: 800;
  padding: 10px 13px;
  text-decoration: none;
}
.breadcrumbs {
  color: var(--muted);
  font-size: .75rem;
  margin: 0 auto;
  max-width: 1120px;
  padding: 24px 28px 0;
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.breadcrumbs li + li::before { content: "/"; margin-right: 7px; }
.content-main { overflow: hidden; }
.page-hero {
  background:
    radial-gradient(circle at 84% 16%, rgba(50,151,210,.24), transparent 30%),
    linear-gradient(145deg, #061522, #0b3150);
  color: white;
  margin-top: 20px;
}
.page-hero-inner {
  margin: 0 auto;
  max-width: 1120px;
  padding: 76px 28px 74px;
}
.eyebrow {
  color: var(--cyan);
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .15em;
  margin: 0 0 16px;
  text-transform: uppercase;
}
.page-hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 6vw, 5.9rem);
  font-weight: 500;
  letter-spacing: -.05em;
  line-height: .97;
  margin: 0;
  max-width: 1040px;
}
.direct-answer {
  color: #d8e6f0;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.62;
  margin: 28px 0 0;
  max-width: 930px;
}
.labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.label {
  border: 1px solid currentColor;
  border-radius: 999px;
  display: inline-flex;
  font-size: .63rem;
  font-weight: 850;
  letter-spacing: .08em;
  padding: 6px 9px;
  text-transform: uppercase;
}
.label-actual { color: #89d5ff; }
.label-forecast { color: #ffd291; }
.label-assumption { color: #e4b3ef; }
.label-interpretation { color: #9be3bc; }
.reviewed { color: var(--muted); font-size: .7rem; margin: 22px 0 0; }
.page-hero .reviewed { color: #9fb5c5; }
.content-wrap {
  margin: 0 auto;
  max-width: 1120px;
  padding: 66px 28px 90px;
}
.summary {
  background: var(--sand);
  border-left: 5px solid var(--orange);
  display: grid;
  gap: 28px;
  grid-template-columns: .7fr 1.3fr;
  padding: 34px;
}
.summary h2,
.section h2,
.visual h2,
.next-action h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1.04;
  margin: 0;
}
.summary ul { margin: 0; padding-left: 20px; }
.summary li + li { margin-top: 10px; }
.metric-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  margin: 38px 0;
}
.metric {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
}
.metric strong {
  color: var(--blue);
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.25rem;
  font-weight: 500;
  line-height: 1;
}
.metric span { color: var(--muted); display: block; font-size: .78rem; margin-top: 9px; }
.visual, .section {
  border-top: 1px solid var(--line);
  margin-top: 54px;
  padding-top: 48px;
}
.visual > p, .section > p { max-width: 850px; }
.section h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 500;
  margin: 34px 0 8px;
}
.section-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.note {
  background: #eef5f8;
  border-left: 4px solid var(--blue);
  color: #28465a;
  margin: 24px 0;
  padding: 18px 20px;
}
.warning {
  background: #fff4df;
  border-left-color: #bd6a00;
}
.data-table-wrap { margin-top: 24px; overflow-x: auto; }
table {
  border-collapse: collapse;
  font-size: .84rem;
  width: 100%;
}
caption {
  color: var(--muted);
  font-size: .73rem;
  padding: 0 0 10px;
  text-align: left;
}
th, td {
  border-bottom: 1px solid var(--line);
  padding: 12px 11px;
  text-align: right;
  vertical-align: top;
}
th:first-child, td:first-child { text-align: left; }
thead th { background: #edf4f7; color: #29495d; font-size: .7rem; letter-spacing: .04em; }
tbody tr:hover { background: #faf6ee; }
.bar-chart { margin-top: 28px; }
.bar-row {
  align-items: center;
  display: grid;
  gap: 13px;
  grid-template-columns: minmax(140px, .9fr) minmax(180px, 3fr) 80px;
  margin: 12px 0;
}
.bar-label { font-size: .78rem; font-weight: 750; }
.bar-track { background: #e6edf1; border-radius: 999px; height: 22px; overflow: hidden; }
.bar-fill { background: var(--blue); height: 100%; }
.bar-fill.forecast { background: #b66a05; }
.bar-value { font-variant-numeric: tabular-nums; font-weight: 800; text-align: right; }
.download-grid, .source-list {
  display: grid;
  gap: 13px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
}
.download-grid a, .source-list a {
  border: 1px solid var(--line);
  border-radius: 9px;
  display: block;
  height: 100%;
  padding: 18px;
  text-decoration: none;
}
.download-grid strong, .source-list strong { display: block; }
.download-grid span, .source-list span { color: var(--muted); display: block; font-size: .72rem; margin-top: 4px; }
.next-action {
  background: var(--ink);
  color: white;
  margin-top: 62px;
  padding: 38px;
}
.next-action p { color: #c5d5e0; max-width: 760px; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.button {
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 7px;
  color: white;
  display: inline-flex;
  font-size: .76rem;
  font-weight: 800;
  padding: 11px 15px;
  text-decoration: none;
}
.button-primary { background: var(--orange); border-color: var(--orange); }
.site-footer { background: #04111d; color: #aebfca; }
.footer-inner {
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr 1fr;
  margin: 0 auto;
  max-width: 1120px;
  padding: 46px 28px;
}
.footer-inner strong { color: white; display: block; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; justify-content: end; }
.footer-links a { color: #cfe0ea; font-size: .74rem; }
.disclaimer { font-size: .7rem; line-height: 1.6; margin: 10px 0 0; max-width: 620px; }
code { background: #edf2f5; border-radius: 4px; font-size: .85em; padding: 2px 4px; }

@media (max-width: 840px) {
  .site-header-inner { grid-template-columns: 1fr auto; padding: 15px 18px; }
  .site-nav { display: none; }
  .summary, .section-grid, .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: start; }
  .bar-row { grid-template-columns: 110px 1fr 64px; }
}
@media (max-width: 520px) {
  .brand strong { display: none; }
  .page-hero-inner { padding: 58px 20px; }
  .content-wrap { padding: 52px 20px 72px; }
  .summary { padding: 25px; }
  .bar-row { align-items: start; grid-template-columns: 1fr 62px; }
  .bar-track { grid-column: 1 / -1; grid-row: 2; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .site-header, .next-action, .site-footer { display: none; }
  .page-hero { background: white; color: var(--ink); }
  .direct-answer, .reviewed { color: var(--ink); }
  .page-hero-inner, .content-wrap { max-width: none; padding-left: 0; padding-right: 0; }
}

/* Editorial credibility modules — 2026-08-03 */
.independence-strip {
  background: #a5322c;
  color: #fff;
  font: 600 .78rem/1.35 "IBM Plex Sans", "Segoe UI", sans-serif;
  letter-spacing: .025em;
  padding: 9px 24px;
  text-align: center;
}

.contractor-calculator { padding: clamp(24px, 4vw, 48px); }
.calculator-form { display: grid; gap: 28px; }
.calculator-context,
.calculator-numbers { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.calculator-context label,
.calculator-numbers label { color: var(--ink, #0a2740); display: grid; font-weight: 700; gap: 7px; }
.calculator-context input,
.calculator-numbers input {
  background: #fff;
  border: 1px solid #8a9cab;
  border-radius: 3px;
  color: #0a2740;
  font: inherit;
  min-height: 44px;
  padding: 9px 11px;
}
.calculator-context input:focus-visible,
.calculator-numbers input:focus-visible { outline: 3px solid #bf4b42; outline-offset: 2px; }
.contractor-calculator button { justify-self: start; }
.calculator-results { display: grid; gap: 1px; grid-template-columns: repeat(3, 1fr); margin-top: 32px; background: #b9c3cb; }
.calculator-results article { background: #0a2740; color: #fff; min-height: 190px; padding: 24px; }
.calculator-results span { display: block; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
.calculator-results strong { display: block; font: 600 clamp(1.6rem, 3vw, 2.8rem)/1.05 "Source Serif 4", Georgia, serif; margin: 30px 0 12px; }
.calculator-results small { color: #c9d4dc; line-height: 1.5; }
.calculator-results > p { background: #e8e0d2; color: #0a2740; grid-column: 1 / -1; margin: 0; padding: 18px 22px; }

.evidence-needed-visual td:nth-child(2) { color: #a5322c; font: 700 .72rem/1.35 "IBM Plex Mono", Consolas, monospace; letter-spacing: .05em; text-transform: uppercase; }
.image-credit-card picture,
.image-credit-card img { display: block; width: 100%; }
.image-credit-card img { height: auto; }
.image-credit-card dl { display: grid; grid-template-columns: minmax(130px, .25fr) 1fr; margin: 28px 0 0; }
.image-credit-card dt,
.image-credit-card dd { border-top: 1px solid #c4ccd2; margin: 0; padding: 14px 0; }
.image-credit-card dt { font-weight: 700; padding-right: 20px; }

@media (max-width: 720px) {
  .independence-strip { padding-inline: 16px; text-align: left; }
  .calculator-context,
  .calculator-numbers,
  .calculator-results { grid-template-columns: 1fr; }
  .calculator-results > p { grid-column: 1; }
  .image-credit-card dl { grid-template-columns: 1fr; }
  .image-credit-card dd { border-top: 0; padding-top: 0; }
}
