/* Girl Scouts Kentuckiana — CTV + OLV Media Plan
   Clean council/nonprofit professional; distinct from FoS horror palette */

:root {
  --gs-green: #00ae42;
  --gs-green-dark: #008a34;
  --gs-green-soft: #e6f7ec;
  --navy: #0b2341;
  --navy-mid: #1a3a5c;
  --ink: #142033;
  --muted: #5a6a7a;
  --line: #d8e0e8;
  --card: #ffffff;
  --bg: #f4f7f5;
  --bg-warm: #f7faf8;
  --accent-navy: #1e4d7b;
  --warn: #b45309;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 35, 65, 0.04), 0 8px 24px rgba(11, 35, 65, 0.06);
  --measure: 42rem;
  --page: 52rem;
}

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

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

body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a {
  color: var(--gs-green-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:hover { color: var(--navy); }

.page {
  max-width: var(--page);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}

@media (min-width: 720px) {
  .page { padding: 2.5rem 2rem 5rem; }
}

/* Typography */
.eyebrow {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gs-green-dark);
  margin: 0 0 0.55rem;
}

h1, h2, h3 {
  font-family: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(1.85rem, 4.5vw, 2.65rem);
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.45rem, 3vw, 1.95rem);
  margin: 0 0 0.85rem;
}

h3 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

.lede {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: var(--measure);
  margin: 0 0 1.25rem;
}

.lede strong { color: var(--ink); font-weight: 600; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.mono {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.85em;
}

/* Sections */
section {
  margin: 0 0 3.25rem;
  padding-top: 0.25rem;
}

section + section {
  border-top: 1px solid var(--line);
  padding-top: 3rem;
}

/* Hero */
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  margin-bottom: 1.25rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: var(--gs-green-soft);
  color: var(--gs-green-dark);
  border: 1px solid rgba(0, 174, 66, 0.25);
}

.tag.navy {
  background: rgba(11, 35, 65, 0.06);
  color: var(--navy);
  border-color: rgba(11, 35, 65, 0.12);
}

.tag.warn {
  background: #fff7ed;
  color: var(--warn);
  border-color: rgba(180, 83, 9, 0.25);
}

.hero-one {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin: 0 0 1.25rem;
  max-width: 38rem;
}

.hero-one .amt {
  color: var(--gs-green-dark);
  white-space: nowrap;
}

.meta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem 1.5rem;
  margin-top: 1.5rem;
  padding: 1.15rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

@media (min-width: 600px) {
  .meta-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .meta-grid { grid-template-columns: repeat(3, 1fr); }
}

.meta-item .label {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.meta-item .value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
}

/* Panels / cards */
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-pad { padding: 1.25rem 1.35rem; }

.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 1.25rem 1.35rem 1rem;
  border-bottom: 1px solid var(--line);
}

.panel-head .big {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.35rem, 2.8vw, 1.7rem);
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}

.badge-locked {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: var(--gs-green);
  color: #fff;
}

/* Waterfall math strip */
.waterfall {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
  padding: 0.85rem 0.5rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg-warm);
}

.wf-step {
  flex: 1 1 7.5rem;
  padding: 0.65rem 0.75rem;
  text-align: center;
  min-width: 6.5rem;
}

.wf-op {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.15rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  align-self: center;
}

.wf-step .lbl {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.wf-step .num {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
}

.wf-step.highlight .num { color: var(--gs-green-dark); }
.wf-step.total .num { color: var(--accent-navy); }

@media (max-width: 700px) {
  .waterfall { flex-direction: column; padding: 0.5rem; }
  .wf-op { padding: 0.15rem 0; }
  .wf-step { text-align: left; display: flex; justify-content: space-between; align-items: baseline; }
}

/* KPI strip */
.kpi-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 560px) {
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 800px) {
  .kpi-row { grid-template-columns: repeat(4, 1fr); }
}

.kpi {
  padding: 1.1rem 1.2rem;
  border-top: 1px solid var(--line);
}

@media (min-width: 560px) {
  .kpi:nth-child(odd) { border-right: 1px solid var(--line); }
}
@media (min-width: 800px) {
  .kpi { border-right: 1px solid var(--line); border-top: none; }
  .kpi:last-child { border-right: none; }
  .kpi-row { border-top: 1px solid var(--line); }
}

.kpi .lbl {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.kpi .num {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
}

.kpi .sub {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.25rem;
  line-height: 1.4;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table.mix {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

table.mix th {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg-warm);
}

table.mix th.num,
table.mix td.num { text-align: right; }

table.mix td {
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

table.mix tr:last-child td { border-bottom: none; }

table.mix tr.total td {
  background: var(--gs-green-soft);
  font-weight: 600;
}

.ch-name {
  font-weight: 700;
  color: var(--navy);
  display: block;
  margin-bottom: 0.2rem;
}

.ch-role {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.45;
  max-width: 22rem;
}

.share-cell {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 7.5rem;
}

.bar {
  flex: 1;
  height: 8px;
  background: #e8eef3;
  border-radius: 999px;
  overflow: hidden;
  min-width: 3rem;
}

.bar > span {
  display: block;
  height: 100%;
  background: var(--gs-green);
  border-radius: 999px;
}

.pct {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  min-width: 2.5rem;
}

.amt {
  font-weight: 700;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.note {
  font-size: 0.88rem;
  color: var(--muted);
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid var(--line);
  line-height: 1.55;
}

.note strong { color: var(--ink); }

/* Callouts */
.callout {
  margin: 1.25rem 0 0;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
}

.callout.green {
  background: var(--gs-green-soft);
  border-color: rgba(0, 174, 66, 0.28);
}

.callout.navy {
  background: var(--navy);
  border-color: var(--navy);
  color: #e8eef5;
}

.callout.navy h2,
.callout.navy h3,
.callout.navy strong { color: #fff; }

.callout.navy .eyebrow { color: var(--gs-green); }

.callout.amber {
  background: #fffbeb;
  border-color: rgba(180, 83, 9, 0.3);
}

.callout .title {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.callout.navy .title { color: #fff; }

.bookends {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}

@media (min-width: 560px) {
  .bookends { grid-template-columns: 1fr 1fr; }
}

.bookend {
  padding: 0.9rem 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.bookend .k {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.bookend .v {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 0.15rem;
}

.bookend .s {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

/* Daypart strip */
.dayparts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin: 1.25rem 0;
}

@media (min-width: 640px) {
  .dayparts { grid-template-columns: repeat(3, 1fr); }
}

.dp {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
}

.dp.on { border-color: rgba(0, 174, 66, 0.35); background: linear-gradient(180deg, #fff 0%, var(--gs-green-soft) 160%); }

.dp .when {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gs-green-dark);
  margin-bottom: 0.35rem;
}

.dp .name {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.dp .desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

.throttle {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Flight windows */
.windows {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin: 1.25rem 0;
}

@media (min-width: 700px) {
  .windows { grid-template-columns: repeat(3, 1fr); }
}

.win {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.win::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gs-green);
  opacity: 0.85;
}

.win.b::before { opacity: 1; width: 5px; }
.win.c::before { opacity: 0.7; }

.win .top {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.win .row {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin-bottom: 0.55rem;
}

.win .pct-big {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gs-green-dark);
  line-height: 1;
}

.win .dollars {
  font-weight: 700;
  color: var(--navy);
  font-size: 1.05rem;
}

.win .blurb {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Flight visual bars (relative, not weekly dates) */
.flight-bars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  align-items: end;
  margin: 1.5rem 0 0.5rem;
  min-height: 9rem;
  padding: 0 0.25rem;
}

.fbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.fbar .pct-label {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--navy);
}

.fbar .shaft {
  width: 100%;
  max-width: 4.5rem;
  border-radius: 8px 8px 4px 4px;
  background: var(--gs-green);
  opacity: 0.9;
}

.fbar.a .shaft { height: 3.2rem; opacity: 0.65; }
.fbar.b .shaft { height: 8rem; opacity: 1; }
.fbar.c .shaft { height: 4.8rem; opacity: 0.8; }

.fbar .cap {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.35;
}

.fbar .cap strong {
  display: block;
  color: var(--navy);
  font-size: 0.88rem;
}

/* Grids */
.grid2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}

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

.ccard {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem;
  box-shadow: var(--shadow);
}

.ccard .eyebrow { margin-bottom: 0.75rem; }

.list-rule {
  list-style: none;
  margin: 0;
  padding: 0;
}

.list-rule li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  line-height: 1.5;
}

.list-rule li:first-child { padding-top: 0; }
.list-rule li:last-child { border-bottom: none; padding-bottom: 0; }

.list-rule li strong {
  color: var(--navy);
  display: inline;
}

.list-rule.arrows li {
  padding-left: 1.1rem;
  position: relative;
}

.list-rule.arrows li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--gs-green-dark);
  font-weight: 700;
}

/* Numbered strategy cards */
.num-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin: 1.25rem 0;
}

@media (min-width: 640px) {
  .num-cards { grid-template-columns: 1fr 1fr; }
}

.ncard {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow);
}

.ncard .n {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gs-green-dark);
  margin-bottom: 0.4rem;
}

.ncard h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.ncard p {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0;
}

/* Scope table */
table.scope {
  width: 100%;
  border-collapse: collapse;
}

table.scope th {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  padding: 0.75rem 1.15rem;
  border-bottom: 1px solid var(--line);
}

table.scope th.num { text-align: right; }

table.scope td {
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

table.scope td.num {
  text-align: right;
  font-weight: 700;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

table.scope tr.net td {
  background: var(--gs-green-soft);
  border-bottom: none;
}

table.scope .line-name {
  font-weight: 700;
  color: var(--navy);
  display: block;
}

table.scope .line-sub {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 400;
  margin-top: 0.15rem;
  display: block;
}

/* Path cards */
.path {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 1.25rem 0 2rem;
}

@media (min-width: 700px) {
  .path { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .path { grid-template-columns: repeat(5, 1fr); }
}

.pstep {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.05rem;
  box-shadow: var(--shadow);
}

.pstep .when {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.pstep .title {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.35rem;
  font-size: 0.98rem;
}

.pstep .body {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.45;
}

/* Needs checklist */
.needs {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.needs li {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}

.needs li:last-child { border-bottom: none; }

.needs .num {
  flex: 0 0 1.75rem;
  width: 1.75rem;
  height: 1.75rem;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
  margin-top: 0.1rem;
}

.needs .txt {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.5;
}

.needs .txt strong {
  color: var(--navy);
}

/* Deliver / dark block */
.deliver {
  margin: 2rem 0 0;
  padding: 1.75rem 1.5rem;
  background: var(--navy);
  color: #d5dee8;
  border-radius: var(--radius);
}

.deliver .eyebrow { color: var(--gs-green); }

.deliver h2 {
  color: #fff;
  margin-bottom: 0.85rem;
}

.deliver p { margin-bottom: 0.85rem; }
.deliver strong { color: #fff; }

.deliver .fine {
  font-size: 0.88rem;
  opacity: 0.85;
  margin: 0;
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
}

.site-footer .draft-warn {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  background: #fff7ed;
  border: 1px solid rgba(180, 83, 9, 0.3);
  border-radius: 10px;
  color: #9a3412;
  font-weight: 600;
  font-size: 0.88rem;
}

/* Print */
@media print {
  body { background: #fff; font-size: 11pt; color: #000; }
  .page { max-width: none; padding: 0; }
  section { break-inside: avoid; margin-bottom: 1.5rem; padding-top: 1rem; }
  .panel, .ccard, .win, .callout, .ncard, .pstep, .needs, .dp {
    box-shadow: none;
    break-inside: avoid;
  }
  .deliver { background: #0b2341 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .badge-locked, .bar > span, .fbar .shaft {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  a { text-decoration: none; color: inherit; }
  .site-footer .draft-warn {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* Estimate label */
.est {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--warn);
  font-weight: 600;
}

/* ------------------------------------------------------------------
   Interactive plan — calculator, sliders, live tables
   :root colors and type are unchanged above
   ------------------------------------------------------------------ */

.page.plan {
  max-width: 64rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.prepared {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.path-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
  margin: 0 0 1rem;
  font-weight: 600;
  color: var(--navy);
}

.path-line .arr {
  color: var(--gs-green-dark);
  font-weight: 700;
}

.path-line span.node {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.92rem;
}

/* Calculator shell */
.calc-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.calc-controls {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.15rem 1.2rem 1.25rem;
}

/* Controls sit under the hero so the full slider stack stays reachable on a phone and a laptop. */

.control-block + .control-block {
  margin-top: 1.15rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.control-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.55rem;
}

.budget-readout {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin-bottom: 0.35rem;
}

.budget-readout .amt-live {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2.1rem, 6vw, 3.1rem);
  font-weight: 700;
  color: var(--gs-green-dark);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.budget-readout .amt-note {
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 18rem;
}

.slider-wrap {
  padding: 0.35rem 0 0.15rem;
}

input[type="range"] {
  --fill: 50%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 44px;
  background: transparent;
  margin: 0;
  cursor: pointer;
  touch-action: none;
}

input[type="range"]:focus {
  outline: none;
}

input[type="range"]:focus-visible {
  outline: 2px solid var(--gs-green-dark);
  outline-offset: 3px;
  border-radius: 8px;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gs-green) var(--fill), #e8eef3 var(--fill));
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  margin-top: -10px;
  border-radius: 50%;
  background: var(--gs-green);
  border: 3px solid #fff;
  box-shadow: 0 1px 3px rgba(11, 35, 65, 0.28);
}

input[type="range"]::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: #e8eef3;
}

input[type="range"]::-moz-range-progress {
  height: 8px;
  border-radius: 999px;
  background: var(--gs-green);
}

input[type="range"]::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gs-green);
  border: 3px solid #fff;
  box-shadow: 0 1px 3px rgba(11, 35, 65, 0.28);
}

.marker-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.15rem;
}

.marker,
.chip {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  min-height: 44px;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--navy);
  cursor: pointer;
}

.marker.is-on,
.chip.is-on {
  background: var(--gs-green);
  border-color: var(--gs-green-dark);
  color: #fff;
  font-weight: 600;
}

.marker:focus-visible,
.chip:focus-visible,
.choice:focus-visible,
.check:focus-within {
  outline: 2px solid var(--gs-green-dark);
  outline-offset: 2px;
}

.marker small,
.chip small {
  display: block;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  opacity: 0.85;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chip[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.chip.is-custom[aria-pressed="true"] {
  background: var(--navy-mid);
  border-color: var(--navy-mid);
}

.share-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.share-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.15rem 0.75rem;
}

@media (min-width: 640px) {
  .share-row {
    grid-template-columns: 9.5rem 1fr auto;
    align-items: center;
  }
}

.share-row .sl-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
}

.share-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}
.share-head .control-label { margin: 0; }
.share-net {
  margin: 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.share-stack {
  display: flex;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  margin: 0 0 0.85rem;
  background: #e7ece8;
}
.share-stack .seg { display: block; height: 100%; min-width: 0; }
.share-stack .dcm { background: #0b2341; }
.share-stack .yt { background: #2f6b4f; }
.share-stack .prog { background: #6b8f71; }
.share-stack .lp { background: #c4a574; }
.share-stack .cont { background: #d7ddd8; }
.share-row .sl-read {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 0.65rem;
}
.share-row .sl-pct {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  min-width: 3rem;
  text-align: right;
}
.share-row .sl-dol {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  min-width: 4.6rem;
  text-align: right;
}

.split-ends {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.choice-row,
.check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.choice {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-size: 0.9rem;
  color: var(--navy);
  cursor: pointer;
}

.choice input,
.check input {
  accent-color: var(--gs-green-dark);
  width: 1rem;
  height: 1rem;
}

.choice:has(input:checked) {
  background: var(--gs-green-soft);
  border-color: rgba(0, 174, 66, 0.45);
  font-weight: 600;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: var(--ink);
  cursor: pointer;
  min-height: 44px;
}

select.footprint {
  width: 100%;
  min-height: 44px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--navy);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
}

select.footprint:focus-visible {
  outline: 2px solid var(--gs-green-dark);
  outline-offset: 2px;
}

.help {
  font-size: 0.84rem;
  color: var(--muted);
  margin: 0.45rem 0 0;
  line-height: 1.45;
}

.warn-line {
  margin-top: 0.75rem;
  padding: 0.75rem 0.85rem;
  background: #fff7ed;
  border: 1px solid rgba(180, 83, 9, 0.3);
  border-radius: 10px;
  color: #9a3412;
  font-size: 0.9rem;
  line-height: 1.45;
}

.warn-line[hidden] { display: none; }

.wide-flag {
  display: inline-flex;
  margin-top: 0.55rem;
}

.wide-flag[hidden],
.warn-line[hidden] {
  display: none;
}

.formula {
  margin-top: 1rem;
  padding: 1.1rem 1.2rem;
  background: var(--bg-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.formula ol {
  margin: 0.4rem 0 0;
  padding-left: 1.15rem;
}

.formula li {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
  color: var(--ink);
}

.formula li:last-child { margin-bottom: 0; }

.kpi-row.k6 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .kpi-row.k6 { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 980px) {
  .kpi-row.k6 { grid-template-columns: repeat(3, 1fr); }
}

.kpi-row.k6 .kpi {
  border-right: none;
  border-top: 1px solid var(--line);
}

@media (min-width: 640px) {
  .kpi-row.k6 .kpi:nth-child(odd) { border-right: 1px solid var(--line); }
}

@media (min-width: 980px) {
  .kpi-row.k6 .kpi { border-right: 1px solid var(--line); }
  .kpi-row.k6 .kpi:nth-child(3n) { border-right: none; }
  .kpi-row.k6 .kpi:nth-child(-n+3) { border-top: none; }
}

.cov-bar {
  margin-top: 0.45rem;
  height: 8px;
  background: #e8eef3;
  border-radius: 999px;
  overflow: hidden;
}

.cov-bar > span {
  display: block;
  height: 100%;
  background: var(--gs-green);
  border-radius: 999px;
  width: 0;
}

/* Channel cards (phone) */
.channel-cards { display: none; }

@media (max-width: 799px) {
  .table-wrap.mix-table { display: none; }
  .channel-cards { display: grid; gap: 0.75rem; padding: 0.85rem; }
}

.ch-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.95rem 1rem;
  background: var(--card);
}

.ch-card .top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
}

.ch-card .role {
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0.35rem 0 0.55rem;
}

.ch-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 0.75rem;
  font-size: 0.84rem;
}

.ch-meta .k {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.ch-meta .v {
  color: var(--navy);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.purpose-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-top: 1rem;
}

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

.purpose {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow);
}

.purpose .dollars {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0.15rem 0 0.45rem;
}

.purpose p {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0 0 0.55rem;
}

.purpose p:last-child { margin-bottom: 0; }

.purpose strong { color: var(--navy); }

.wont {
  margin: 1rem 0 0;
  padding: 1rem 1.15rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.wont ul {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
}

.wont li { margin: 0.3rem 0; }

.two {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-top: 1rem;
}

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

.noscript-fallback {
  margin-top: 1rem;
}

@media print {
  .calc-controls { position: static !important; box-shadow: none; }
  .page.plan { max-width: none; }
  input[type="range"], .marker, .chip, select.footprint, .check, .choice {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .channel-cards { display: none !important; }
  .table-wrap.mix-table { display: block !important; }
  .warn-line, .tag.warn, .badge-locked {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
