:root {
  --ink: #172235;
  --blue: #2c6ed3;
  --blue-dark: #2459a9;
  --muted: #667281;
  --line: #dce4ed;
  --paper: #fbfcfe;
  --white: #ffffff;
  --ice: #eef4fb;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 15%, rgba(235,243,251,.65), transparent 27%),
    linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
  font-family: Arial, Helvetica, sans-serif;
}

body::after {
  content: "";
  position: fixed;
  right: -150px;
  top: 150px;
  width: 620px;
  height: 980px;
  transform: rotate(19deg);
  background: linear-gradient(90deg, rgba(223,234,246,.02), rgba(218,230,244,.38), rgba(228,237,247,.10));
  pointer-events: none;
  z-index: -1;
}

a { color: inherit; text-decoration: none; }
.container { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }

.site-shell { min-height: 100vh; }

.site-header {
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
}
.header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand-mark { position: relative; width: 38px; height: 30px; display: block; }
.brand-wheel { position: absolute; width: 11px; height: 11px; border: 2px solid var(--blue); border-radius: 50%; bottom: 1px; left: 1px; }
.brand-wheel-right { left: 26px; }
.brand-bike, .brand-bike::before, .brand-bike::after { position: absolute; display: block; content: ""; background: var(--ink); }
.brand-bike { width: 2px; height: 15px; left: 15px; bottom: 5px; transform: rotate(18deg); }
.brand-bike::before { width: 17px; height: 2px; left: -3px; top: 7px; transform: rotate(19deg); }
.brand-bike::after { width: 10px; height: 2px; left: -2px; top: -2px; transform: rotate(-34deg); }
.brand-name { display: block; font-weight: 700; letter-spacing: .14em; font-size: 18px; line-height: 1; }
.brand-tagline { display: block; margin-top: 5px; font-size: 9px; color: var(--muted); letter-spacing: .16em; text-transform: uppercase; }

.main-nav { display: flex; align-items: stretch; gap: 18px; }
.nav-link {
  position: relative;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .05em;
  color: #687482;
  padding: 31px 3px 27px;
}
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: transparent; }
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--ink); }
.nav-link.active::after { background: var(--blue); }

.intro-band {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.77);
}
.intro-band::after {
  content: "";
  position: absolute;
  right: -8%;
  top: -20%;
  width: 48%;
  height: 150%;
  transform: skewX(-21deg);
  background: linear-gradient(90deg, rgba(224,235,247,.04), rgba(220,231,244,.46));
  pointer-events: none;
}
.intro-inner { min-height: 270px; display: grid; grid-template-columns: 1fr 290px; gap: 70px; align-items: center; padding: 44px 0; position: relative; z-index: 1; }
.eyebrow { margin: 0 0 10px; color: var(--blue-dark); font-size: 10px; letter-spacing: .22em; font-weight: 800; }
h1, h2, h3 { margin: 0; }
h1 { font-size: clamp(32px, 4.3vw, 50px); letter-spacing: -.035em; line-height: 1.02; }
.intro-copy p:not(.eyebrow) { max-width: 770px; margin: 16px 0 0; color: var(--muted); font-size: 15px; line-height: 1.75; }
.coverage-card { border-left: 1px solid var(--line); padding-left: 27px; }
.coverage-label { font-size: 10px; font-weight: 800; letter-spacing: .18em; color: var(--muted); }
.coverage-years { margin-top: 8px; font-size: 31px; font-weight: 700; letter-spacing: -.03em; }
.coverage-note { margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.coverage-rule { width: 42px; height: 2px; background: var(--blue); margin: 17px 0 12px; }

.page-section { display: none; padding: 48px 0 72px; }
.page-section.is-visible { display: block; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 22px; }
.section-heading h2 { font-size: 31px; letter-spacing: -.025em; }
.section-heading p { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.section-status { font-size: 9px; font-weight: 800; color: var(--muted); letter-spacing: .16em; white-space: nowrap; }

.visuals-shell, .pre-race-layout { display: grid; grid-template-columns: 230px 1fr; gap: 18px; align-items: stretch; }
.visual-guide { border-top: 2px solid var(--blue); padding: 17px 8px 0 0; }
.results-filter-guide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 0 0 18px;
  padding: 16px 20px;
  border-top: 2px solid var(--blue);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.68);
}
.results-filter-copy { min-width: 220px; max-width: 520px; }
.results-filter-copy h3 { margin-top: 5px; font-size: 19px; letter-spacing: -.02em; }
.results-filter-copy p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.guide-list-inline { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; margin-top: 0; }
.guide-list-inline span { padding: 7px 10px; border: 1px solid var(--line); background: rgba(255,255,255,.9); color: #4f5d6c; font-size: 10px; white-space: nowrap; }
.guide-label { color: var(--blue-dark); font-size: 9px; font-weight: 800; letter-spacing: .18em; }
.visual-guide h3 { margin-top: 7px; font-size: 21px; letter-spacing: -.02em; }
.visual-guide p { color: var(--muted); font-size: 12px; line-height: 1.7; margin: 9px 0 0; }
.guide-list { display: grid; gap: 6px; margin-top: 18px; }
.guide-list span { border-bottom: 1px solid var(--line); padding-bottom: 7px; color: #4f5d6c; font-size: 11px; }
.metric-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 17px; }
.metric-chips span { border: 1px solid var(--line); padding: 6px 8px; font-size: 10px; color: #4d5d6e; background: rgba(255,255,255,.7); }

.pbi-embed {
  position: relative;
  width: 100%;
  min-height: 720px;
  background: #fff;
  border: 1px solid #dbe4ee;
  box-shadow: 0 12px 30px rgba(30, 63, 96, .06);
  overflow: hidden;
}
.pbi-embed iframe {
  display: block;
  width: 100%;
  height: 720px;
  border: 0;
}
.pbi-placeholder {
  min-height: 575px;
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,.88);
  border: 1px solid var(--line);
  padding: 26px;
  box-shadow: 0 8px 24px rgba(33,64,96,.04);
}
.pbi-placeholder::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--blue); }
.placeholder-badge { display: inline-block; border: 1px solid #cbd9e8; background: #f3f7fc; color: var(--blue-dark); padding: 6px 8px; font-size: 8px; font-weight: 800; letter-spacing: .16em; }
.pbi-placeholder h3 { margin-top: 15px; font-size: 22px; }
.pbi-placeholder > p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.placeholder-grid { margin-top: 34px; display: grid; grid-template-columns: 1.35fr 1fr; gap: 14px; }
.mini-visual { min-height: 180px; border: 1px solid #e3e9f0; background-color: rgba(249,252,255,.84); position: relative; overflow: hidden; }
.bars-mini { display: flex; gap: 14px; align-items: flex-end; padding: 28px 22px 20px; }
.bars-mini span { flex: 1; max-width: 34px; margin: auto 0 0; background: linear-gradient(to top, #1e4e9d, #4f86de); border-radius: 2px 2px 0 0; }
.bars-mini.small { grid-column: 1 / -1; min-height: 120px; }
.line-mini { background-image: linear-gradient(#eff3f7 1px, transparent 1px), linear-gradient(90deg, #eff3f7 1px, transparent 1px); background-size: 25% 25%; }
.line-mini::after { content: ""; position: absolute; left: 7%; right: 6%; bottom: 16%; height: 2px; background: var(--blue); transform: rotate(-20deg); transform-origin: left center; opacity: .7; }
.line-mini i { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(44,110,211,.08); z-index: 2; }

.matrix-placeholder { min-height: 520px; }
.fake-table { margin-top: 30px; border: 1px solid var(--line); overflow: hidden; }
.fake-row { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 1px; background: var(--line); }
.fake-row span { min-width: 0; background: white; padding: 12px 11px; font-size: 11px; }
.fake-row.fake-head span { background: #f2f6fa; color: #526172; font-size: 9px; text-transform: uppercase; letter-spacing: .07em; font-weight: 800; }

.site-footer { padding: 0 0 30px; background: transparent; }
.footer-rule { height: 2px; background: var(--blue); }
.footer-inner { padding-top: 16px; display: flex; justify-content: space-between; gap: 30px; align-items: flex-start; }
.footer-left, .footer-right { color: #5e6c7d; font-size: 10px; line-height: 1.75; }
.footer-brand { font-size: 11px; color: var(--blue-dark); font-weight: 700; letter-spacing: .18em; text-align: right; }
.footer-links { margin-top: 3px; display: flex; align-items: center; justify-content: flex-end; gap: 7px; font-size: 9px; color: #657386; }
.footer-links a:hover { color: var(--blue-dark); text-decoration: underline; }
.flag { display: inline-block; vertical-align: -2px; width: 12px; height: 8px; margin-left: 5px; background: linear-gradient(90deg, #169b62 0 33.33%, #ffffff 33.33% 66.66%, #ff883e 66.66% 100%); border: 1px solid #d5dce4; }

@media (max-width: 860px) {
  .container { width: min(100% - 30px, 1180px); }
  .header-inner { min-height: 76px; align-items: flex-start; padding: 14px 0 0; flex-direction: column; gap: 10px; }
  .main-nav { width: 100%; gap: 16px; }
  .nav-link { flex: 1; padding: 8px 0 11px; font-size: 12px; }
  .intro-inner { grid-template-columns: 1fr; gap: 27px; padding: 36px 0 34px; }
  .coverage-card { border-left: 0; border-top: 1px solid var(--line); padding: 20px 0 0; }
  .visuals-shell, .pre-race-layout { grid-template-columns: 1fr; }
  .visual-guide { padding-right: 0; }
  .results-filter-guide { align-items: flex-start; flex-direction: column; gap: 14px; }
  .results-filter-copy { min-width: 0; max-width: none; }
  .guide-list-inline { justify-content: flex-start; }
  .pbi-placeholder { min-height: 500px; }
  .pbi-embed { min-height: 600px; }
  .pbi-embed iframe { height: 600px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .footer-inner { flex-direction: column; }
  .footer-right { width: 100%; }
  .footer-brand, .footer-links { justify-content: flex-start; text-align: left; }
}

@media (max-width: 560px) {
  .brand-name { font-size: 15px; }
  .brand-tagline { font-size: 8px; }
  h1 { font-size: 36px; }
  .section-heading h2 { font-size: 27px; }
  .placeholder-grid { grid-template-columns: 1fr; }
  .bars-mini.small { grid-column: auto; }
  .fake-table { overflow-x: auto; }
  .fake-row { min-width: 690px; }
}


/* Feedback form */
.feedback-section {
  padding: 58px 0 68px;
  border-top: 1px solid var(--line);
  background: rgba(245, 249, 253, .78);
}
.feedback-heading { max-width: 760px; margin-bottom: 28px; }
.feedback-heading h2 { font-size: clamp(27px, 3.1vw, 36px); letter-spacing: -.03em; }
.feedback-heading > p:last-child { margin: 10px 0 0; max-width: 640px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.feedback-layout { display: grid; grid-template-columns: minmax(230px, .78fr) minmax(0, 1.22fr); gap: 44px; align-items: start; }
.feedback-intro { padding: 25px 25px 23px 0; border-top: 2px solid var(--blue); }
.feedback-mark { position: relative; width: 38px; height: 30px; margin-bottom: 17px; }
.feedback-mark-line { position: absolute; top: 14px; left: 2px; width: 32px; height: 2px; background: var(--blue); transform: rotate(-22deg); }
.feedback-mark-dot { position: absolute; top: 4px; right: 1px; width: 9px; height: 9px; border: 2px solid var(--blue); border-radius: 50%; background: #f5f9fd; box-shadow: -18px 14px 0 -2px #f5f9fd, -18px 14px 0 0 var(--blue); }
.feedback-intro h3 { font-size: 22px; letter-spacing: -.02em; }
.feedback-intro > p { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.feedback-points { display: grid; gap: 13px; margin-top: 24px; }
.feedback-points > div { display: flex; align-items: center; gap: 11px; color: #4f5d6c; font-size: 11px; line-height: 1.5; }
.feedback-point-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 30px; width: 30px; height: 30px; border: 1px solid #cbd9e8; color: var(--blue-dark); background: rgba(255,255,255,.72); font-size: 9px; font-weight: 800; letter-spacing: .04em; }
.feedback-form { padding: 26px; background: rgba(255,255,255,.93); border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(30, 63, 96, .045); }
.feedback-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.feedback-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 17px; }
.feedback-field label { font-size: 11px; color: #36465a; font-weight: 700; }
.feedback-field label span { color: #8390a0; font-size: 10px; font-weight: 400; }
.feedback-field input, .feedback-field select, .feedback-field textarea { width: 100%; min-width: 0; border: 1px solid #d8e1eb; border-radius: 0; background: #fcfdff; color: var(--ink); padding: 12px 13px; font: inherit; font-size: 12px; outline: none; transition: border-color .15s ease, box-shadow .15s ease; }
.feedback-field input, .feedback-field select { min-height: 43px; }
.feedback-field textarea { min-height: 135px; resize: vertical; line-height: 1.65; }
.feedback-field input:focus, .feedback-field select:focus, .feedback-field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(44,110,211,.10); }
.feedback-field input::placeholder, .feedback-field textarea::placeholder { color: #9aa5b3; }
.feedback-privacy-note { margin: -2px 0 17px; color: #7b8796; font-size: 10px; line-height: 1.65; }
.feedback-submit { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 43px; padding: 0 18px; border: 0; background: var(--blue); color: #fff; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; transition: background .15s ease, transform .15s ease; }
.feedback-submit:hover { background: var(--blue-dark); transform: translateY(-1px); }
.feedback-submit:focus-visible { outline: 3px solid rgba(44,110,211,.26); outline-offset: 3px; }
.feedback-notice { margin: 0 0 14px; padding: 11px 12px; border-left: 2px solid var(--blue); background: #f0f5fb; color: #43556a; font-size: 11px; line-height: 1.65; }
.feedback-notice:not([hidden]) { display: block; }
.feedback-notice.is-success { border-left-color: #27835b; background: #edf8f1; color: #20583e; }
.feedback-notice.is-error { border-left-color: #b94747; background: #fff2f2; color: #7c2d2d; }
.feedback-submit:disabled { opacity: .7; cursor: wait; transform: none; }
.feedback-honeypot { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }


@media (max-width: 860px) {
  .feedback-layout { grid-template-columns: 1fr; gap: 22px; }
  .feedback-intro { padding: 22px 0 0; }
  .feedback-points { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .feedback-section { padding: 42px 0 48px; }
  .feedback-field-row { grid-template-columns: 1fr; gap: 0; }
  .feedback-form { padding: 19px 16px; }
  .feedback-points { grid-template-columns: 1fr; }
  .feedback-heading h2 { font-size: 28px; }
}


/* Footer attribution, independence notice and contact details */
.footer-left a { text-decoration: underline; text-decoration-color: #bdcddd; text-underline-offset: 2px; }
.footer-left a:hover { color: var(--blue-dark); text-decoration-color: currentColor; }
.footer-disclaimer { max-width: 640px; margin: 7px 0 4px; color: #657386; font-size: 10px; line-height: 1.65; }
.footer-contact { margin-top: 2px; }
.footer-contact a { font-weight: 700; }
@media (max-width: 860px) {
  .footer-disclaimer { max-width: none; }
}


/* Mobile experience: tighter layout, comfortable touch targets and a clear route to the report. */
.mobile-report-help { display: none; }

@media (max-width: 680px) {
  html { scroll-behavior: auto; }
  .container { width: calc(100% - 28px); }

  .header-inner {
    min-height: 0;
    padding: 12px 0 0;
    gap: 8px;
  }
  .brand { gap: 10px; }
  .brand-mark { width: 33px; transform: scale(.92); transform-origin: left center; margin-right: -2px; }
  .brand-name { font-size: clamp(13px, 3.8vw, 16px); letter-spacing: .11em; }
  .brand-tagline { margin-top: 5px; font-size: 8px; letter-spacing: .12em; }
  .main-nav { gap: 8px; margin-top: 2px; }
  .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 4px 10px;
    font-size: 11px;
    letter-spacing: .015em;
    line-height: 1.3;
    text-align: center;
  }

  .intro-inner { padding: 30px 0 26px; gap: 22px; }
  .intro-copy .eyebrow { margin-bottom: 9px; }
  h1 { font-size: clamp(30px, 8vw, 37px); line-height: 1.08; }
  .intro-copy p:not(.eyebrow) { margin-top: 12px; font-size: 14px; line-height: 1.7; }
  .coverage-card {
    padding: 16px 15px 15px;
    border: 1px solid var(--line);
    border-top: 2px solid var(--blue);
    background: rgba(255,255,255,.82);
  }
  .coverage-years { font-size: 27px; }
  .coverage-note { font-size: 12px; line-height: 1.6; }
  .coverage-rule { margin: 13px 0 10px; }

  .page-section { padding: 32px 0 44px; }
  .section-heading { gap: 8px; margin-bottom: 16px; }
  .section-heading h2 { font-size: clamp(25px, 6.8vw, 30px); line-height: 1.12; }
  .section-heading p { font-size: 13px; line-height: 1.65; }
  .section-status { font-size: 9px; }
  .results-filter-guide { padding: 14px 13px; gap: 12px; margin-bottom: 12px; }
  .results-filter-copy h3 { font-size: 18px; }
  .results-filter-copy p { font-size: 12px; line-height: 1.6; }
  .guide-list-inline { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; width: 100%; }
  .guide-list-inline span { display: flex; align-items: center; min-height: 36px; padding: 7px 8px; white-space: normal; font-size: 11px; line-height: 1.25; }

  .mobile-report-help {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 12px;
    padding: 12px 13px;
    border: 1px solid #dbe6f2;
    background: #f1f6fc;
  }
  .mobile-report-help p { margin: 0; color: #536275; font-size: 12px; line-height: 1.55; flex: 1; }
  .mobile-report-help p strong { color: var(--ink); }
  .mobile-report-help a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 10px;
    background: var(--blue);
    color: white;
    font-size: 11px;
    line-height: 1.25;
    font-weight: 700;
    text-align: center;
  }
  .mobile-report-help a:hover { background: var(--blue-dark); }
  /* Portrait Power BI canvas is 500 x 2000, so let the iframe follow its 1:4 aspect ratio.
     This keeps the long report in the page's normal scroll instead of a short nested viewport. */
  .pbi-embed { height: auto; min-height: 0; aspect-ratio: 1 / 4; }
  .pbi-embed iframe { height: 100%; min-height: 0; }

  .pre-race-layout { gap: 16px; }
  .visual-guide { padding: 15px 0 0; }
  .visual-guide h3 { font-size: 20px; }
  .visual-guide p { font-size: 13px; line-height: 1.65; }
  .metric-chips span { font-size: 11px; }
  .pbi-placeholder { min-height: 0; padding: 20px 15px; }
  .pbi-placeholder h3 { font-size: 20px; line-height: 1.25; }
  .pbi-placeholder > p { line-height: 1.6; }

  .feedback-section { padding: 38px 0 42px; }
  .feedback-heading { margin-bottom: 22px; }
  .feedback-heading h2 { font-size: clamp(25px, 6.8vw, 30px); line-height: 1.15; }
  .feedback-heading > p:last-child { font-size: 13px; line-height: 1.65; }
  .feedback-layout { gap: 18px; }
  .feedback-intro { padding: 18px 0 0; }
  .feedback-intro h3 { font-size: 20px; }
  .feedback-intro > p { font-size: 13px; line-height: 1.65; }
  .feedback-points { gap: 10px; margin-top: 18px; }
  .feedback-points > div { font-size: 12px; }
  .feedback-form { padding: 17px 14px; }
  .feedback-field { gap: 7px; margin-bottom: 15px; }
  .feedback-field label { font-size: 12px; }
  .feedback-field label span { font-size: 11px; }
  .feedback-field input,
  .feedback-field select,
  .feedback-field textarea {
    font-size: 16px;
    padding: 12px;
    border-radius: 2px;
  }
  .feedback-field input,
  .feedback-field select { min-height: 48px; }
  .feedback-field textarea { min-height: 145px; }
  .feedback-privacy-note { font-size: 11px; line-height: 1.6; }
  .feedback-submit { width: 100%; min-height: 48px; font-size: 13px; }

  .site-footer { padding-bottom: 22px; }
  .footer-inner { gap: 17px; padding-top: 14px; }
  .footer-left, .footer-right { font-size: 11px; line-height: 1.7; min-width: 0; width: 100%; }
  .footer-left { overflow-wrap: anywhere; }
  .footer-disclaimer { font-size: 11px; line-height: 1.6; }
  .footer-brand { font-size: 11px; }
  .footer-links { flex-wrap: wrap; justify-content: flex-start; gap: 4px 7px; font-size: 10px; line-height: 1.8; }
  .footer-contact a { overflow-wrap: anywhere; }
}

@media (max-width: 390px) {
  .brand-name { font-size: 13px; letter-spacing: .09em; }
  .brand-tagline { font-size: 7px; letter-spacing: .10em; }
  .nav-link { font-size: 10px; }
  .mobile-report-help { flex-direction: column; }
  .mobile-report-help a { width: 100%; }
  .fake-row { min-width: 620px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* Simplified multi-section layout: report first, details under How to Use. */
.results-page {
  padding: 10px 0 0;
}
.report-container {
  /* Let the desktop report use the available browser width rather than capping it at 1600px. */
  width: calc(100% - 28px);
  max-width: none;
  margin: 0 auto;
}
.results-page .pbi-embed {
  width: 100%;
  /* Match the desktop Power BI canvas ratio (1920 x 1080 = 16:9). */
  height: auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: 16 / 9;
  border: 1px solid #dbe4ee;
  box-shadow: 0 8px 24px rgba(30, 63, 96, .045);
}
.results-page .pbi-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
}
.results-page .feedback-section {
  margin-top: 18px;
  padding: 23px 0 42px;
}
.feedback-compact {
  max-width: 1160px;
}
.feedback-line {
  margin: 0 0 18px;
  color: #42546a;
  text-align: left;
  font-size: 14px;
  line-height: 1.65;
}
.feedback-about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, .88fr);
  gap: 24px;
  align-items: stretch;
}
.feedback-form-compact {
  max-width: none;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 22px 24px;
}
.feedback-form-compact .feedback-field-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.about-project {
  min-width: 0;
  align-self: stretch;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.94);
  box-shadow: 0 12px 30px rgba(30, 63, 96, .045);
}
.about-project-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1473 / 807;
  object-fit: cover;
  object-position: center;
  background: #eaf1f8;
}
.about-project-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px 23px 24px;
}
.about-project-eyebrow {
  margin: 0 0 9px;
  color: var(--blue-dark);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .15em;
}
.about-project h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(20px, 2vw, 25px);
  letter-spacing: -.025em;
  line-height: 1.2;
}
.about-project-content > p:not(.about-project-eyebrow) {
  margin: 0 0 12px;
  color: #586779;
  font-size: 12px;
  line-height: 1.75;
}
.support-project-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  margin-top: 5px;
  padding: 0 15px;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  transition: background .15s ease, transform .15s ease;
}
.support-project-link:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}
.support-project-link:focus-visible {
  outline: 3px solid rgba(44,110,211,.26);
  outline-offset: 3px;
}
.pre-race-page {
  min-height: 70vh;
  padding: 10px 0 60px;
}
.pre-race-placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 680px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.86);
  color: #6b7888;
  text-align: center;
}
.pre-race-placeholder .placeholder-rule {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--blue);
}
.pre-race-placeholder p {
  margin: 0;
  padding: 20px;
  font-size: 14px;
  letter-spacing: .01em;
}
.how-to-use-page {
  padding: 44px 0 70px;
}
.how-to-use-container {
  max-width: 1040px;
}
.how-to-header {
  padding-bottom: 25px;
  margin-bottom: 25px;
  border-bottom: 1px solid var(--line);
}
.how-to-header h1 {
  font-size: clamp(31px, 4vw, 44px);
}
.how-to-header > p:last-child {
  max-width: 720px;
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.how-to-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.how-to-card {
  min-width: 0;
  padding: 23px 24px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.83);
}
.how-to-card h2 {
  font-size: 22px;
  letter-spacing: -.025em;
  margin: 0 0 12px;
}
.how-to-card h3 {
  margin: 22px 0 9px;
  font-size: 14px;
}
.how-to-card > p:not(.eyebrow) {
  margin: 0 0 12px;
  color: #586779;
  font-size: 13px;
  line-height: 1.75;
}
.how-to-card .eyebrow {
  margin-bottom: 9px;
}
.filter-definitions {
  margin: 0;
}
.filter-definitions > div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #e8edf3;
}
.filter-definitions dt {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}
.filter-definitions dd {
  margin: 0;
  color: #586779;
  font-size: 12px;
  line-height: 1.6;
}
.how-to-note {
  padding-top: 8px;
  font-size: 11px !important;
}
.how-to-list {
  display: grid;
  gap: 13px;
  margin: 0;
  padding-left: 19px;
  color: #586779;
  font-size: 13px;
  line-height: 1.7;
}
.how-to-list strong {
  color: var(--ink);
}
.source-list {
  display: grid;
  gap: 10px;
  padding-top: 8px;
}
.source-list > div {
  display: grid;
  gap: 3px;
  padding-top: 10px;
  border-top: 1px solid #e8edf3;
  font-size: 12px;
}
.source-list strong {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.source-list a {
  color: var(--blue-dark);
  text-decoration: underline;
  text-decoration-color: #bdcddd;
  text-underline-offset: 2px;
}

@media (max-width: 860px) {
  .how-to-grid {
    grid-template-columns: 1fr;
  }
  .how-to-card {
    padding: 20px;
  }
  .results-page .pbi-embed {
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 16 / 9;
  }
  .feedback-about-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
  .about-project {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    align-items: stretch;
  }
  .about-project-photo {
    height: 100%;
    min-height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
  }
  .about-project-content {
    padding: 22px;
  }
}
@media (max-width: 680px) {
  .header-inner {
    min-height: 0;
    padding-bottom: 0;
  }
  .main-nav {
    gap: 5px;
  }
  .nav-link {
    min-width: 0;
    flex: 1 1 0;
  }
  .results-page {
    padding-top: 6px;
  }
  .report-container {
    width: calc(100% - 12px);
  }
  .results-page .pbi-embed {
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 1 / 4;
  }
  .results-page .pbi-embed iframe {
    height: 100%;
    min-height: 0;
  }
  .results-page .feedback-section {
    margin-top: 12px;
    padding: 20px 0 32px;
  }
  .feedback-line {
    margin-bottom: 14px;
    text-align: left;
    font-size: 13px;
  }
  .feedback-form-compact {
    padding: 17px 14px;
  }
  .feedback-form-compact .feedback-field-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .feedback-about-layout {
    gap: 18px;
  }
  .about-project {
    display: flex;
    flex-direction: column;
  }
  .about-project-photo {
    height: auto;
    min-height: 0;
    aspect-ratio: 1473 / 807;
  }
  .about-project-content {
    padding: 19px 17px 20px;
  }
  .about-project h2 {
    font-size: 22px;
  }
  .about-project-content > p:not(.about-project-eyebrow) {
    font-size: 13px;
    line-height: 1.7;
  }
  .support-project-link {
    width: 100%;
    min-height: 46px;
    font-size: 13px;
  }
  .pre-race-page {
    min-height: 55vh;
    padding: 6px 0 42px;
  }
  .pre-race-placeholder {
    min-height: 500px;
  }
  .how-to-use-page {
    padding: 31px 0 45px;
  }
  .how-to-header {
    padding-bottom: 20px;
    margin-bottom: 18px;
  }
  .how-to-header h1 {
    font-size: clamp(28px, 7.2vw, 36px);
    line-height: 1.12;
  }
  .how-to-header > p:last-child {
    font-size: 13px;
  }
  .how-to-card {
    padding: 18px 16px;
  }
  .how-to-card h2 {
    font-size: 20px;
  }
  .filter-definitions > div {
    grid-template-columns: 95px minmax(0, 1fr);
    gap: 9px;
  }
}

/*
  Power BI report sizing
  - Desktop Pre-Race matches the Results report's 16:9 dimensions.
  - Mobile Pre-Race is 20% shorter than the Results portrait report.
  - Extend each iframe by 56px inside its clipped frame to hide Power BI's
    bottom page navigator (for example, 1/2 and 2/2) without changing the
    visible report frame dimensions.
*/
#pre-race .pbi-embed {
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: 16 / 9;
  border: 1px solid #dbe4ee;
  box-shadow: 0 8px 24px rgba(30, 63, 96, .045);
  overflow: hidden;
}

.results-page .pbi-embed iframe,
#pre-race .pbi-embed iframe {
  display: block;
  width: 100% !important;
  height: calc(100% + 56px) !important;
  min-height: 0;
  border: 0;
}

@media (max-width: 680px) {
  #pre-race .pbi-embed {
    /* Results is 1:4; 5:16 makes Pre-Race exactly 20% shorter. */
    aspect-ratio: 5 / 16;
  }
}
