/* ==========================================================================
   CNOC — home page “Price Board”
   Gas-station price sign → cost-stack breakdown → fair-rates message.
   Page-specific styles; shared components (masthead, footer, folio,
   kicker, container, double-rule) live in styles.css.
   ========================================================================== */

:root {
  --amber: #ffb703;
  --sign: "Archivo Black", "Archivo", sans-serif;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { padding: 3rem 0 2.4rem; }
.hero h1 {
  font-family: var(--display); font-weight: 640;
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-size: clamp(2.2rem, 5vw, 3.7rem); line-height: 1.04;
  letter-spacing: -0.018em; color: var(--navy); margin: 0.9rem 0 1rem;
  max-width: 21ch; text-wrap: balance;
}
.hero .deck {
  font-family: var(--display); font-style: italic; font-weight: 500;
  color: var(--red-deep); font-size: clamp(1.1rem, 1.9vw, 1.4rem);
  max-width: 50ch; margin: 0 0 0.4rem;
}
.hero .kicker { color: var(--red); }
.trust {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem;
  margin-top: 1.5rem;
  font-family: var(--wire); font-weight: 600; font-size: 0.72rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.trust .dot { color: var(--red); }
.trust a { color: var(--navy); text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.trust a:hover { color: var(--red-deep); }

/* --------------------------------------------------------------------------
   Territory selector
   -------------------------------------------------------------------------- */
.region-bar {
  margin: 0 0 0.9rem;
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 0.6rem 2rem; flex-wrap: wrap;
}
.region-bar .label {
  font-family: var(--wire); font-weight: 700; font-size: 0.68rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
.legend {
  display: inline-flex; gap: 1.3rem; align-items: baseline;
  font-family: var(--wire); font-weight: 600; font-size: 0.66rem;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
}
.legend .sw {
  display: inline-block; width: 10px; height: 10px; margin-right: 0.4rem;
}
.legend .sw.amber { background: #ffe89c; border-bottom: 2px solid var(--amber); }
.legend .sw.red { background: #e8a39a; border-bottom: 2px solid var(--red); }
/* Territory rail — top of the illuminated sign */
.region-tabs {
  display: flex;
  margin: -1.4rem -1.5rem 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,0.18);
  background: linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0) 70%);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.region-tabs::-webkit-scrollbar { display: none; }
.region-tab {
  appearance: none; cursor: pointer;
  flex: 1 1 0; min-width: 104px;
  background: transparent; border: none;
  border-right: 1px solid rgba(255,255,255,0.08);
  padding: 1rem 0.6rem 0.95rem;
  text-align: center; position: relative;
  transition: background 180ms ease;
}
.region-tab:last-child { border-right: none; }
.region-tab::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: var(--red);
  transform: scaleX(0); transform-origin: center;
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}
.region-tab .code {
  display: block;
  font-family: var(--sign); font-size: 1.02rem; letter-spacing: 0.05em;
  text-transform: uppercase; line-height: 1.15;
  color: rgba(255,255,255,0.5);
  transition: color 200ms ease, text-shadow 200ms ease;
}
.region-tab small {
  display: block; font-family: var(--wire); font-weight: 600;
  font-size: 0.58rem; letter-spacing: 0.09em; text-transform: uppercase;
  color: rgba(255,255,255,0.32); margin-top: 0.3rem;
  transition: color 200ms ease;
}
.region-tab:hover { background: rgba(255,255,255,0.05); }
.region-tab:hover .code { color: #fff; }
.region-tab:hover small { color: rgba(255,255,255,0.55); }
.region-tab[aria-pressed="true"] {
  background: linear-gradient(180deg, rgba(255,183,3,0.12), rgba(255,183,3,0) 75%);
}
.region-tab[aria-pressed="true"]::before { transform: scaleX(1); }
.region-tab[aria-pressed="true"] .code {
  color: var(--amber);
  text-shadow: 0 0 18px rgba(255,232,156,0.45);
}
.region-tab[aria-pressed="true"] small { color: rgba(255,255,255,0.6); }
.region-tab:focus-visible { outline: 2px solid var(--amber); outline-offset: -2px; }
@media (prefers-reduced-motion: reduce) { .region-tab::before { transition: none; } }

/* --------------------------------------------------------------------------
   The price board (gas-station sign)
   -------------------------------------------------------------------------- */
.signpost { padding: 1rem 0 3rem; }
.sign-wrap { display: grid; grid-template-columns: 1fr; gap: 2.6rem; align-items: start; }
@media (min-width: 920px) { .sign-aside { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0 3.5rem; } .sign-aside .kicker, .sign-aside h2 { grid-column: 1 / -1; } }

.sign {
  background: var(--navy-deep);
  border: 6px solid var(--navy);
  outline: 2px solid var(--rule);
  outline-offset: 4px;
  padding: 1.4rem 1.5rem 1.6rem;
  box-shadow: 0 22px 50px -18px rgba(7,26,51,0.55);
}
.sign .sign-head {
  font-family: var(--sign); color: #fff; text-align: center;
  font-size: 1.3rem; letter-spacing: 0.06em; text-transform: uppercase;
  border-bottom: 2px solid rgba(255,255,255,0.25);
  padding-bottom: 0.8rem; margin-bottom: 0.4rem;
}
.sign .sign-head small {
  display: block; font-family: var(--wire); font-weight: 600;
  font-size: 0.62rem; letter-spacing: 0.3em; color: var(--amber); margin-top: 0.35rem;
}
.board-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pboard { display: grid; min-width: 600px; }
.pboard .c {
  padding: 0.9rem 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.14);
  display: flex; flex-direction: column; justify-content: center;
}
.pboard .c.head {
  border-bottom: 2px solid rgba(255,255,255,0.25);
  justify-content: flex-end; padding-bottom: 0.7rem;
}
.pboard .prov {
  font-family: var(--wire); font-weight: 700; font-size: 0.7rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber); line-height: 1.3;
}
.pboard .prov small {
  display: block; font-weight: 600; font-size: 0.6rem; letter-spacing: 0.05em;
  color: rgba(255,255,255,0.5); margin-top: 0.25rem; text-transform: none;
}
.pboard .tier .g {
  font-family: var(--wire); font-weight: 700; font-size: 0.62rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--amber);
}
.pboard .tier .s { font-family: var(--sign); color: #fff; font-size: 1.15rem; letter-spacing: 0.02em; }
.pboard .p {
  font-family: var(--sign); color: #ffe89c; font-size: 1.85rem; line-height: 1;
  font-variant-numeric: tabular-nums; white-space: nowrap;
  text-shadow: 0 0 16px rgba(255,232,156,0.35);
}
.pboard .p sup { font-size: 0.45em; }
.pboard .p .was {
  display: block; text-shadow: none; white-space: normal;
  font-family: var(--wire); font-weight: 600; font-size: 0.6rem;
  letter-spacing: 0.04em; color: rgba(255,255,255,0.5); margin-top: 0.3rem;
}
.pboard .p.small { font-size: 1.05rem; line-height: 1.2; text-shadow: none; white-space: normal; }
.pboard .na { color: rgba(255,255,255,0.3); font-family: var(--sign); font-size: 1.3rem; }
.pboard .c.indcol { background: rgba(193,18,31,0.22); border-left: 1px solid rgba(255,255,255,0.18); }
.pboard .c.indcol .prov, .pboard .c.indcol .p { color: #ff9d93; text-shadow: none; }
.pboard .c.ghost .na { font-family: var(--wire); font-weight: 600; font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; }
@keyframes boardIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.pboard.anim { animation: boardIn 420ms cubic-bezier(0.22, 1, 0.36, 1); }
@media (prefers-reduced-motion: reduce) { .pboard.anim { animation: none; } }
.verdict {
  margin-top: 1.1rem;
  border-top: 2px solid rgba(255,255,255,0.25);
  padding: 1.05rem 0.5rem 0.4rem;
  text-align: center;
  font-family: var(--display); font-style: italic; font-weight: 600;
  font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.4;
  color: var(--amber);
}
.verdict strong { color: #fff; font-style: normal; }
.sign-foot {
  margin-top: 0.9rem; text-align: center;
  font-family: var(--wire); font-weight: 600; font-size: 0.66rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.45);
}

/* --------------------------------------------------------------------------
   Why the board looks like this
   -------------------------------------------------------------------------- */
.why {
  border-top: 1px solid var(--rule);
  background: var(--paper-deep);
  padding: 3rem 0 3.4rem;
}
.sign-aside .kicker { color: var(--red); display: block; margin-bottom: 0.7rem; }
.sign-aside h2 {
  font-family: var(--display); font-weight: 640; color: var(--navy);
  font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.15; margin: 0 0 1rem;
}
.sign-aside p { max-width: 52ch; margin: 0 0 1rem; }
.sign-aside .punch {
  font-family: var(--display); font-style: italic; font-weight: 560;
  font-size: 1.3rem; line-height: 1.4; color: var(--navy);
  border-left: 3px solid var(--red); padding-left: 1.1rem; margin: 1.6rem 0 0;
}
.sign-aside .punch strong { color: var(--red-deep); font-style: normal; }

/* --------------------------------------------------------------------------
   Cost stack
   -------------------------------------------------------------------------- */
.stack { border-top: 1px solid var(--rule); background: #fff; padding: 3.2rem 0 3.4rem; }
.stack .kicker { color: var(--red); }
.stack h2 {
  font-family: var(--display); font-weight: 640; color: var(--navy);
  font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0.8rem 0 0.6rem;
}
.stack .sub { max-width: 60ch; color: var(--muted); margin: 0 0 2rem; }

.tabs { display: flex; border-bottom: 2px solid var(--rule); margin-bottom: 2.2rem; }
.tab {
  appearance: none; background: none; border: none; cursor: pointer;
  font-family: var(--wire); font-weight: 700; font-size: 1rem;
  padding: 0.8rem 1.6rem; color: var(--muted);
  border-bottom: 3px solid transparent; margin-bottom: -2px;
}
.tab small { font-weight: 600; font-size: 0.7em; letter-spacing: 0.06em; }
.tab[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--navy); }
.tab:hover { color: var(--red-deep); }

.equation {
  display: flex; flex-wrap: wrap; align-items: stretch; gap: 0.4rem 0;
  margin-bottom: 0.8rem;
}
/* Which lines the regulator sets, and which are the provider's own */
.eq-legend {
  flex: 0 0 100%; margin: 0 0 1.3rem;
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem;
  font-family: var(--wire); font-weight: 600; font-size: 0.66rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.eq-legend .sw { width: 11px; height: 11px; display: inline-block; }
.eq-legend .sw.crtc { background: var(--red); }
.eq-legend .sw.own { background: var(--paper-deep); border: 1px solid var(--rule); margin-left: 1.6rem; }
.term.crtc .icon { background: #fdf1ef; border-color: var(--red); }
.term.crtc .t { color: var(--navy); font-weight: 700; }
/* Operations: one box, itemized inside it like a ledger */
.term.grouped { flex-basis: 150px; }
.term .parts {
  list-style: none; margin: 0.6rem 0 0; padding: 0.5rem 0.15rem 0;
  border-top: 1px dotted var(--rule); text-align: left;
}
.term .parts li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 0.4rem;
  font-family: var(--wire); font-size: 0.58rem; letter-spacing: 0.01em;
  line-height: 1.65; color: var(--muted);
}
.term .parts b { font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.term {
  flex: 1 1 110px; min-width: 104px; text-align: center; padding: 0.4rem 0.3rem;
}
.term .icon {
  width: 46px; height: 46px; margin: 0 auto 0.5rem; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; color: var(--navy);
}
.term .t {
  font-family: var(--wire); font-weight: 600; font-size: 0.72rem;
  letter-spacing: 0.04em; color: var(--muted); min-height: 2.2em; line-height: 1.25;
}
.term .v {
  font-family: var(--display); font-weight: 700; font-size: 1.45rem;
  color: var(--navy); font-variant-numeric: tabular-nums;
}
.term .n { font-family: var(--wire); font-size: 0.62rem; color: var(--muted); letter-spacing: 0.03em; }
.op {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 500; font-size: 1.5rem; color: var(--red);
  flex: 0 0 1.4rem;
}
.term.total .icon { background: var(--navy); color: #fff; border-color: var(--navy); }
.term.total .v { color: var(--red-deep); font-size: 1.7rem; }
.term.total .t { color: var(--navy); font-weight: 700; }
.eq-note {
  font-family: var(--wire); font-size: 0.74rem; color: var(--muted);
  border-top: 1px solid var(--rule); padding-top: 0.9rem; max-width: 70ch;
}

.interim-note {
  border: 2px dashed var(--red);
  background: var(--paper);
  padding: 1.6rem 1.8rem;
  max-width: 46rem;
  margin-bottom: 0.8rem;
}
.interim-note .big {
  font-family: var(--display); font-weight: 700; font-size: 1.6rem;
  color: var(--red-deep); margin-bottom: 0.4rem;
}
.interim-note p { margin: 0; font-size: 1.02rem; }

/* Comparison bars */
.bars { margin-top: 2.6rem; border-top: 3px solid var(--navy); padding-top: 1.6rem; }
.bars h3 {
  font-family: var(--display); font-weight: 640; font-size: 1.3rem;
  color: var(--navy); margin: 0 0 1.4rem;
}
.bar-row { display: grid; grid-template-columns: 1fr; gap: 0.3rem 1.4rem; margin-bottom: 1.3rem; }
@media (min-width: 760px) { .bar-row { grid-template-columns: 215px 1fr 130px; align-items: center; } }
.bar-row .who { font-family: var(--wire); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy); }
.bar-row .who small { display: block; font-weight: 500; color: var(--muted); text-transform: none; letter-spacing: 0.02em; }
.bar-track { background: var(--paper-deep); height: 34px; position: relative; }
.bar-fill { height: 100%; display: flex; align-items: center; transition: width 700ms cubic-bezier(0.22, 1, 0.36, 1); }
@media (prefers-reduced-motion: reduce) { .bar-fill { transition: none; } }
.bar-fill.retail { background: #f6e3ae; border-right: 3px solid var(--amber); }
.bar-fill.cost { background: #f3b6ad; border-right: 3px solid var(--red); }
.bar-row .amt {
  font-family: var(--display); font-weight: 700; font-size: 1.35rem;
  color: var(--navy); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.bar-row .amt small { font-family: var(--wire); font-weight: 600; font-size: 0.62rem; display: block; color: var(--muted); letter-spacing: 0.04em; }
.delta {
  margin-top: 1.8rem; background: var(--paper);
  border: 1px solid var(--rule); border-left: 5px solid var(--red);
  padding: 1.3rem 1.5rem; max-width: 46rem;
}
.delta .big {
  font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  color: var(--red-deep); line-height: 1.05; letter-spacing: -0.01em;
}
.delta p { margin: 0.5rem 0 0; font-size: 1.05rem; max-width: 56ch; }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta {
  background: var(--navy-deep); color: #e8e2d2; border-top: 4px solid var(--red);
  padding: 3.2rem 0 3.4rem;
}
.cta .kicker { color: var(--amber); }
.cta h2 {
  font-family: var(--display); font-weight: 640; color: #fff;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.1; margin: 0.8rem 0 1rem; max-width: 24ch;
}
.cta p { max-width: 58ch; margin: 0 0 0.6rem; }
.cta a { color: #fff; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.6rem 0 1.2rem; }
.btn-cta {
  display: inline-block;
  background: var(--red); color: #fff !important;
  font-family: var(--wire); font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.95rem 1.4rem; text-decoration: none !important;
  border: 2px solid var(--red);
  transition: background 140ms ease, border-color 140ms ease;
}
.btn-cta:hover { background: var(--red-deep); border-color: var(--red-deep); }
.btn-cta.ghost { background: transparent; border-color: rgba(255,255,255,0.5); }
.btn-cta.ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.cta-media { font-size: 0.92rem; color: #b9c1d2; }

/* --------------------------------------------------------------------------
   Sources & footnotes
   -------------------------------------------------------------------------- */
.notes { padding: 2.6rem 0 1rem; }
.notes h3 { font-family: var(--wire); font-weight: 700; font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); margin: 0 0 1rem; }
.notes .panel {
  background: #fff;
  border: 1px solid var(--rule);
  border-top: 4px solid var(--navy);
  padding: 1.8rem 2.1rem;
}
.notes ol { margin: 0; padding-left: 1.2rem; font-size: 0.88rem; color: var(--muted); }
.notes li { margin-bottom: 0.7rem; break-inside: avoid; }
.notes li:last-child { margin-bottom: 0; }
.notes a { color: var(--navy); }
@media (min-width: 860px) {
  .notes ol { columns: 2; column-gap: 3.5rem; }
}

@media (max-width: 759px) {
  .op { display: none; }
  .equation { gap: 0.6rem; }
  .term { flex-basis: 30%; }
}
