@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Work+Sans:wght@400;500;600;700&display=swap');

:root {
  --bgMain: #FFFFFF;
  --bgAlt: #F4F5F7;
  --cardBg: #FFFFFF;
  --brandBlue: #3B82F6;
  --brandBlueHover: #2563EB;
  --charcoal: #1A1A1A;
  --textPrimary: #1A1A1A;
  --textSecondary: #4B5563;
  --textMuted: #9CA3AF;
  --borderLight: #E5E7EB;
  --dangerRed: #dc2626;
  --headFont: 'Archivo Black', Impact, sans-serif;
  --bodyFont: 'Work Sans', system-ui, sans-serif;
  --cardRadius: 2px;
  --btnRadius: 8px;
  --maxW: 1120px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--bodyFont);
  font-size: 16px;
  line-height: 1.7;
  color: var(--textPrimary);
  background: var(--bgMain);
}

a { color: var(--brandBlue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--brandBlueHover); }
a:focus-visible { outline: 2px solid var(--brandBlue); outline-offset: 2px; }

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--headFont); font-weight: 400; line-height: 1.15; }

/* Skip */
.skipTo {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--brandBlue);
  color: #fff;
  padding: .4rem 1rem;
  border-radius: var(--btnRadius);
  font-weight: 600;
  z-index: 1000;
  transition: top .2s;
}
.skipTo:focus { top: .5rem; color: #fff; }

/* ========== HEADER — H06 asymmetric ========== */
.siteBar {
  background: var(--charcoal);
  padding: .7rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.siteBar .siteLogo { height: 26px; width: auto; filter: brightness(0) invert(1); }
.siteBar .navGroupA {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin-left: 2rem;
}
.siteBar .navGroupB {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin-left: auto;
}
.siteBar a {
  color: rgba(255,255,255,.65);
  font-size: .82rem;
  font-weight: 600;
  transition: color .2s;
}
.siteBar a:hover,
.siteBar a[aria-current="page"] { color: #fff; }

.siteBar .navToggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  margin-left: auto;
  padding: .3rem;
}
.siteBar .navToggle svg { width: 22px; height: 22px; }

@media (max-width: 760px) {
  .siteBar .navGroupA,
  .siteBar .navGroupB { display: none; }
  .siteBar .navToggle { display: block; }
}

/* Mobile slide-right */
.slidePanel {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: var(--charcoal);
  z-index: 970;
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  transition: right .3s;
}
.slidePanel.visible { right: 0; }
.slidePanel a {
  color: rgba(255,255,255,.8);
  font-size: 1.1rem;
  font-weight: 600;
}
.slidePanel a:hover { color: var(--brandBlue); }
.slidePanel .closeSlide {
  position: absolute;
  top: .8rem;
  right: 1rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
}
.slideBackdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 960;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.slideBackdrop.visible { opacity: 1; pointer-events: auto; }

/* ========== HERO — R03 centered institutional ========== */
.heroBlock {
  background: var(--charcoal);
  color: #fff;
  padding: 5rem 1.5rem 3.5rem;
  text-align: center;
}
.heroBlock .wrap { max-width: 700px; margin: 0 auto; }
.heroBlock h1 {
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  margin-bottom: .8rem;
}
.heroBlock h1 span { color: var(--brandBlue); }
.heroBlock .heroDesc {
  font-size: clamp(.9rem, 2.2vw, 1.05rem);
  color: rgba(255,255,255,.7);
  margin-bottom: 1.2rem;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}
.heroBlock .heroBadge {
  display: inline-block;
  border: 1px solid var(--brandBlue);
  color: var(--brandBlue);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .3rem .9rem;
  border-radius: var(--btnRadius);
}

/* ========== RANKING — C06 stacked panels ========== */
.rankingArea {
  max-width: var(--maxW);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.rankingArea .label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--brandBlue);
  margin-bottom: .3rem;
}
.rankingArea h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  margin-bottom: 1.5rem;
}

.stackPanel {
  border: 1px solid var(--borderLight);
  border-radius: var(--cardRadius);
  margin-bottom: 1rem;
  overflow: hidden;
}
.stackPanel .panelHead {
  background: var(--bgAlt);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.stackPanel .panelPos {
  font-family: var(--headFont);
  font-size: 1.4rem;
  color: var(--brandBlue);
}
.stackPanel .panelLogo { height: 26px; width: auto; }
.stackPanel .panelScore {
  margin-left: auto;
  font-family: var(--headFont);
  font-size: 1.6rem;
  color: var(--charcoal);
}
.stackPanel .panelScoreOf { font-size: .72rem; color: var(--textMuted); font-family: var(--bodyFont); }

.stackPanel .panelBody { padding: 1.2rem 1.5rem; }
.stackPanel .panelBonus { font-weight: 700; font-size: 1.05rem; margin-bottom: .15rem; }
.stackPanel .panelTc { font-size: .72rem; color: var(--textMuted); margin-bottom: .5rem; }
.stackPanel .panelDesc { font-size: .88rem; color: var(--textSecondary); margin-bottom: .6rem; }
.stackPanel .panelTags { display: flex; flex-wrap: wrap; gap: .3rem; list-style: none; margin-bottom: .5rem; }
.stackPanel .panelTags li {
  background: rgba(59,130,246,.08);
  color: var(--brandBlue);
  font-size: .7rem;
  font-weight: 600;
  padding: .18rem .55rem;
  border-radius: var(--btnRadius);
}
.stackPanel .panelPay { font-size: .72rem; color: var(--textMuted); margin-bottom: .8rem; }
.stackPanel .panelCta {
  display: inline-block;
  background: var(--brandBlue);
  color: #fff;
  font-weight: 700;
  font-size: .82rem;
  padding: .5rem 1.5rem;
  border-radius: var(--btnRadius);
  transition: background .2s, transform .15s;
}
.panelCta:hover { background: var(--brandBlueHover); color: #fff; transform: translateY(-1px); }

@media (max-width: 760px) {
  .stackPanel .panelHead { flex-direction: column; text-align: center; }
  .stackPanel .panelScore { margin-left: 0; }
  .stackPanel .panelBody { text-align: center; }
  .stackPanel .panelTags { justify-content: center; }
}

/* ========== RG BANNER — G04 red band + CTA right ========== */
.rgBand {
  background: var(--dangerRed);
  padding: 2rem 1.5rem;
}
.rgBand .wrap {
  max-width: var(--maxW);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.rgBand .rgText { flex: 1; min-width: 260px; }
.rgBand h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); color: #fff; margin-bottom: .4rem; }
.rgBand p { color: rgba(255,255,255,.92); font-size: .9rem; }
.rgBand .rgLink {
  display: inline-block;
  border: 2px solid #fff;
  color: #fff;
  font-weight: 700;
  font-size: .82rem;
  padding: .5rem 1.4rem;
  border-radius: var(--btnRadius);
  white-space: nowrap;
  transition: background .2s;
}
.rgBand .rgLink:hover { background: rgba(255,255,255,.15); color: #fff; }

@media (max-width: 760px) {
  .rgBand .wrap { flex-direction: column; text-align: center; }
}

/* ========== METHODOLOGY — M05 two-column split ========== */
.methSplit {
  background: var(--bgAlt);
  padding: 3rem 1.5rem;
}
.methSplit .wrap {
  max-width: var(--maxW);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.methSplit .label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--brandBlue);
  margin-bottom: .3rem;
}
.methSplit h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); margin-bottom: .5rem; }
.methSplit .methIntro { font-size: .92rem; color: var(--textSecondary); }

.methSplit .methList { list-style: none; counter-reset: mc; }
.methSplit .methList li {
  counter-increment: mc;
  padding: .8rem 0;
  border-bottom: 1px solid var(--borderLight);
  display: flex;
  gap: .8rem;
  align-items: flex-start;
}
.methSplit .methList li::before {
  content: counter(mc, decimal-leading-zero);
  font-family: var(--headFont);
  font-size: .85rem;
  color: var(--brandBlue);
  flex-shrink: 0;
  min-width: 28px;
}
.methSplit .methList h3 { font-size: .92rem; margin-bottom: .15rem; }
.methSplit .methList p { font-size: .82rem; color: var(--textSecondary); }

@media (max-width: 760px) {
  .methSplit .wrap { grid-template-columns: 1fr; }
}

/* D09 + L01 combined footer-prelude: 2-col legal band with helpline + disclosure */
.legalBand {
  max-width: var(--maxW);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.helpCard {
  background: var(--bgAlt);
  border-radius: var(--cardRadius);
  padding: 1.5rem;
  border: 1px solid var(--borderLight);
}
.helpCard h3 { font-size: 1rem; margin-bottom: .3rem; }
.helpCard .helpPhone {
  font-family: var(--headFont);
  font-size: 1.8rem;
  color: var(--brandBlue);
  margin-bottom: .3rem;
}
.helpCard .helpNote { font-size: .85rem; color: var(--textSecondary); margin-bottom: .5rem; }
.helpCard .helpRes { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: .3rem; }
.helpCard .helpRes a { font-size: .82rem; }
.helpCard .helpAge {
  font-size: .68rem;
  color: var(--textMuted);
  background: rgba(59,130,246,.06);
  display: inline-block;
  padding: .15rem .5rem;
  border-radius: var(--btnRadius);
}

.disclosureCol {
  padding: 1.5rem;
  font-size: .8rem;
  color: var(--textMuted);
  line-height: 1.65;
  border-left: 3px solid var(--brandBlue);
  align-self: center;
}

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

/* ========== FOOTER — F07 bordered panel ========== */
.footPanel {
  border: 1px solid var(--borderLight);
  border-radius: var(--cardRadius);
  margin: 0 1.5rem 1.5rem;
  max-width: var(--maxW);
  margin-left: auto;
  margin-right: auto;
  padding: 1.5rem;
}
.footPanel .footTop {
  display: flex;
  justify-content: space-between;
  align-items: start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--borderLight);
}
.footPanel .footBrand .footLogo { height: 22px; margin-bottom: .4rem; }
.footPanel .footBrand p { font-size: .72rem; color: var(--textMuted); max-width: 360px; }

.footPanel .footLinks {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footPanel .footLinks ul { list-style: none; }
.footPanel .footLinks h4 {
  font-family: var(--bodyFont);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--textMuted);
  margin-bottom: .3rem;
}
.footPanel .footLinks a { font-size: .78rem; color: var(--textSecondary); display: block; margin-bottom: .15rem; }
.footPanel .footLinks a:hover { color: var(--brandBlue); }

.footPanel .footBottom {
  font-size: .7rem;
  color: var(--textMuted);
  text-align: center;
  line-height: 1.6;
}
.footPanel .footBottom a { color: var(--textMuted); font-size: .7rem; }
.footPanel .footBottom strong { color: var(--textSecondary); }

@media (max-width: 760px) {
  .footPanel .footTop { flex-direction: column; }
}

/* ========== INTERNAL PAGES ========== */
.innerHero {
  background: var(--charcoal);
  color: #fff;
  padding: 5rem 1.5rem 2.5rem;
  text-align: center;
}
.innerHero h1 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); }

.innerBody {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}
.innerBody h2 { font-size: 1.3rem; margin: 1.8rem 0 .5rem; color: var(--brandBlue); }
.innerBody h3 { font-size: 1.05rem; margin: 1.3rem 0 .4rem; }
.innerBody p { margin-bottom: .9rem; }
.innerBody ul, .innerBody ol { margin: .4rem 0 1rem 1.4rem; }
.innerBody li { margin-bottom: .3rem; }

.infoBox {
  background: var(--bgAlt);
  border: 1px solid var(--borderLight);
  border-radius: var(--cardRadius);
  padding: 1.3rem;
  margin: 1.2rem 0;
}

.alertBox {
  background: #FEF2F2;
  border-left: 3px solid var(--dangerRed);
  padding: 1rem 1.2rem;
  margin: 1.2rem 0;
  border-radius: 0 var(--cardRadius) var(--cardRadius) 0;
  font-size: .9rem;
}

.hintBox {
  background: #EFF6FF;
  border-left: 3px solid var(--brandBlue);
  padding: 1rem 1.2rem;
  margin: 1.2rem 0;
  border-radius: 0 var(--cardRadius) var(--cardRadius) 0;
  font-size: .9rem;
}

.stampDate {
  text-align: center;
  font-size: .78rem;
  color: var(--textMuted);
  padding: 1rem 1.5rem;
}
