/* ==========================================================================
   Paycheck & Affordability Agenda — Kansas AFL-CIO
   Brand colors sampled from the agenda PDF (Draft 3).
   ========================================================================== */

@font-face {
  font-family: "Montserrat";
  src: url("/static/fonts/montserrat-latin-wght-normal.woff2?v=06b16db7") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Bebas Neue";
  src: url("/static/fonts/bebas-neue-latin-400-normal.woff2?v=a7c90c89") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  /* brand */
  --teal: #1b6b6d;
  --teal-deep: #124d4f;
  --gold: #d4a533;
  --ink: #1a2b2b;
  --muted: #5a6b6b;
  --rule: #d5e2e2;
  --mist: #eef4f4;
  --white: #ffffff;


  /* type */
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --cond: "Bebas Neue", "Oswald", "Arial Narrow", sans-serif;

  --wrap: 1120px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ol, ul { margin: 0; }
a { color: var(--teal); }
strong { font-weight: 700; color: var(--ink); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (min-width: 640px) { :root { --gutter: 32px; } }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: var(--ink); padding: 8px 12px; z-index: 10;
}
.skip:focus { left: 8px; top: 8px; }


/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px;
  padding: 0 1.4em;
  border: 2px solid transparent;
  border-radius: 2px;
  font: 400 1.375rem/1 var(--cond);
  letter-spacing: .06em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: #e2b544; }
.btn--block { width: 100%; }
.btn--outline { background: var(--white); color: var(--teal); border-color: var(--teal); }
.btn--outline:hover { background: var(--teal); color: var(--white); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--teal);
  color: var(--white);
  padding: 28px 0 44px;
}
.hero__wheat {
  position: absolute;
  right: -40px; top: -30px;
  height: 130%;
  width: auto;
  max-width: none;
  opacity: .1;
  pointer-events: none;
}
.hero__inner { position: relative; }
.hero__top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero__logo img { width: 168px; }
.badge {
  border: 1.5px solid var(--gold);
  color: var(--gold);
  font: 400 1rem/1 var(--cond);
  letter-spacing: .18em;
  padding: 8px 12px 6px;
}
.hero__title {
  font-family: var(--sans);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(2.35rem, 8.4vw, 4.6rem);
  line-height: .98;
  letter-spacing: -.02em;
}
@media (min-width: 760px) {
  .hero__title { font-size: clamp(2.35rem, 6.6vw, 4.6rem); }
  .hero__title .line { display: block; }
}
.amp { color: var(--gold); }
.hero__rule {
  width: 72px; height: 6px; border: 0; margin: 28px 0 24px;
  background: var(--gold);
}
.hero__lede {
  max-width: 40em;
  font-size: clamp(1.0625rem, 2.2vw, 1.3rem);
  line-height: 1.6;
  font-weight: 500;
}
.hero__cta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px;
  margin-top: 30px;
}
.hero__count { font-weight: 500; }
.hero__count strong { color: var(--white); font: 400 1.6rem/1 var(--cond); letter-spacing: .03em; }

@media (min-width: 900px) {
  .hero { padding: 40px 0 72px; }
  .hero__top { margin-bottom: 56px; }
  .hero__logo img { width: 220px; }
  .hero__wheat { right: 2%; top: -40px; height: 135%; }
}

/* ==========================================================================
   PILLARS
   ========================================================================== */
.pillars {
  display: grid;
  border-bottom: 1px solid var(--rule);
  background: var(--white);
}
.pillars p {
  font: 400 clamp(1.6rem, 3.4vw, 2.6rem)/1 var(--cond);
  letter-spacing: .03em;
  color: var(--teal);
  text-align: center;
  padding: 16px var(--gutter) 13px;
}
.pillars p + p { border-top: 3px solid var(--gold); }
@media (min-width: 760px) {
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .pillars p { padding: 26px 12px 22px; }
  .pillars p + p { border-top: 0; border-left: 4px solid var(--gold); }
}

/* ==========================================================================
   PLANKS
   ========================================================================== */
.planks { list-style: none; padding-top: 16px; padding-bottom: 8px; }
.plank {
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 12px;
  padding: 36px 0;
  border-top: 1.5px solid var(--rule);
}
.plank:first-child { border-top: 0; }
.plank__num {
  font: 400 3.4rem/.85 var(--cond);
  color: var(--gold);
}
.plank__body h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  line-height: 1.2;
  font-weight: 800;
  color: var(--teal);
  margin-bottom: 12px;
  letter-spacing: -.01em;
}
.plank__body p { max-width: 62ch; }
.plank__body p + p { margin-top: 12px; }
.plank__body .plank__intro { max-width: none; }

.stat {
  grid-column: 2;
  margin-top: 20px;
  background: var(--mist);
  border-top: 6px solid var(--teal);
  padding: 18px 20px 20px;
}
.stat__num {
  font: 400 clamp(3rem, 6vw, 4.25rem)/.9 var(--cond);
  color: var(--teal);
  letter-spacing: .01em;
}
.stat__label { margin-top: 10px; font-size: .9375rem; line-height: 1.4; font-weight: 600; }

@media (min-width: 900px) {
  .plank { grid-template-columns: 96px 1fr 300px; column-gap: 32px; padding: 48px 0; }
  .plank__num { font-size: 5rem; }
  .stat { grid-column: 3; margin-top: 0; align-self: start; }
  .plank--wide .plank__body { grid-column: 2 / span 2; }
}

/* plank 4 and 7 cards */
.cards { display: grid; gap: 14px; margin-top: 8px; }
.card {
  border: 1.5px solid var(--rule);
  border-top: 6px solid var(--teal);
  padding: 18px 20px 20px;
}
.card h3 { font-size: 1.125rem; line-height: 1.25; font-weight: 800; color: var(--teal); margin-bottom: 8px; }
.card p { font-size: 1rem; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) { .cards--two { grid-template-columns: repeat(2, 1fr); } }
.plank__body > p + .cards { margin-top: 16px; }

.numbers {
  margin-top: 16px;
  background: var(--teal);
  color: var(--white);
  padding: 20px 22px 16px;
}
.numbers__kicker {
  font: 400 1.125rem/1 var(--cond);
  letter-spacing: .2em;
  color: var(--gold);
  margin-bottom: 12px;
}
.numbers__row { display: grid; gap: 14px; }
.numbers__row p { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: .9375rem; line-height: 1.35; }
.numbers__big { font: 400 3.25rem/.9 var(--cond); flex: none; min-width: 2.6ch; }
.numbers__src { margin-top: 14px; font-size: .75rem; opacity: .8; }
@media (min-width: 760px) {
  .numbers__row { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

/* enforcement callout */
.callout {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  background: var(--mist);
  border-left: 8px solid var(--gold);
  padding: 24px 20px;
  margin: 8px 0 48px;
}
.callout__icon { width: 40px; height: 40px; color: var(--gold); }
.callout h2 { color: var(--teal); font-size: clamp(1.3rem, 2.4vw, 1.65rem); font-weight: 800; line-height: 1.2; margin-bottom: 8px; }
@media (min-width: 900px) {
  .callout { grid-template-columns: 56px 1fr; gap: 24px; padding: 30px 36px; }
  .callout__icon { width: 52px; height: 52px; }
}

/* where we stand */
.stand { margin-bottom: 72px; }
.stand__title {
  display: flex; align-items: center; gap: 20px;
  font: 400 clamp(2.4rem, 5vw, 3.25rem)/1 var(--cond);
  color: var(--teal);
  margin-bottom: 18px;
}
.stand__title::after { content: ""; flex: 1; height: 3px; background: var(--gold); }
.stand__grid { display: grid; gap: 18px; }
.stand__box { padding: 24px 24px 26px; }
.stand__box h3 { font: 400 clamp(1.7rem, 3vw, 2.1rem)/1 var(--cond); letter-spacing: .02em; margin-bottom: 14px; }
.stand__box ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.stand__box li { position: relative; padding-left: 30px; font-weight: 500; line-height: 1.4; }
.stand__box li::before { position: absolute; left: 0; top: -1px; font-weight: 800; font-size: 1.15rem; }
.stand__box--yes { background: var(--teal); color: var(--white); }
.stand__box--yes h3, .stand__box--yes li::before { color: var(--gold); }
.stand__box--yes li::before { content: "✓"; }
.stand__box--no { border: 3px solid var(--teal); }
.stand__box--no h3 { color: var(--teal); }
.stand__box--no li::before { content: "✕"; color: var(--teal); }
@media (min-width: 760px) { .stand__grid { grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   WE, THE UNDERSIGNED
   Newspaper-ad structure (framed declaration, clip-out coupon, dense columns
   of names) drawn in the agenda's own teal, gold, Montserrat and Bebas.
   ========================================================================== */
.sign-band {
  background: var(--teal);
  padding: 40px var(--gutter) 56px;
}
.ad {
  position: relative;
  max-width: 1040px;
  margin-inline: auto;
  background: var(--white);
  padding: 34px 22px 24px;
}
.ad::before { /* inner double rule: the framed-ad look */
  content: ""; position: absolute; inset: 8px;
  border: 4px double var(--teal);
  pointer-events: none;
}
@media (min-width: 760px) {
  .sign-band { padding: 64px var(--gutter) 80px; }
  .ad { padding: 60px 64px 36px; }
  .ad::before { inset: 12px; }
}

.ad__kicker {
  display: flex; align-items: center; gap: 14px;
  font: 400 1.125rem/1 var(--cond);
  letter-spacing: .24em;
  color: var(--teal);
}
.ad__kicker::before, .ad__kicker::after { content: ""; flex: 1; height: 2px; background: var(--gold); }

.ad__title {
  margin-top: 18px;
  text-align: center;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(2.2rem, 7.4vw, 4.6rem);
  line-height: .98;
  letter-spacing: -.02em;
  color: var(--teal);
}
.ad__title .amp { color: var(--gold); }
.ad__rule { width: 72px; height: 6px; border: 0; margin: 22px auto 18px; background: var(--gold); }
.ad__dek {
  max-width: 32em;
  margin-inline: auto;
  text-align: center;
  font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
  font-weight: 500;
  line-height: 1.5;
}
.ad__tally {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  max-width: 520px;
  margin: 28px auto 34px;
  padding: 16px 22px 14px;
  background: var(--mist);
  border-top: 6px solid var(--teal);
}
.ad__tally-num { font: 400 clamp(3.4rem, 9vw, 4.75rem)/.9 var(--cond); color: var(--teal); letter-spacing: .01em; }
.ad__tally-label { font-size: .9375rem; font-weight: 600; line-height: 1.35; }

/* ---------- Coupon ---------- */
.coupon {
  position: relative;
  max-width: 600px;
  margin: 0 auto 48px;
  border: 2.5px dashed var(--teal);
  background: var(--mist);
  padding: 28px 18px 20px;
}
@media (min-width: 640px) { .coupon { padding: 32px 32px 24px; } }
.coupon__scissors {
  position: absolute; top: -16px; left: 22px;
  width: 30px; height: 30px; padding: 3px;
  background: var(--white);
  fill: none; stroke: var(--teal); stroke-width: 1.8; stroke-linecap: round;
}
.coupon__title {
  font-size: clamp(1.5rem, 3.6vw, 1.85rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--teal);
  margin-bottom: 18px;
}

.field { display: grid; gap: 4px; margin-bottom: 14px; min-width: 0; }
.field label { font-size: .875rem; font-weight: 700; }
.opt { font-weight: 500; color: var(--muted); }
.field input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1.5px solid var(--muted);
  border-radius: 2px;
  background: var(--white);
  color: var(--ink);
  font: 500 1rem/1.2 var(--sans); /* 16px+ keeps iOS from zooming */
}
.field input:focus { outline: 3px solid var(--gold); outline-offset: 0; border-color: var(--teal); }
.field input[aria-invalid="true"] { border-color: #b3261e; box-shadow: inset 0 0 0 1px #b3261e; }
.field-row { display: grid; gap: 0 12px; }
@media (min-width: 520px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .field-row--zip { grid-template-columns: 8.5em 1fr; }
}

.check {
  display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start;
  margin: 4px 0 14px;
  font-size: .875rem; line-height: 1.45;
  cursor: pointer;
}
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--teal); }
.appear { margin: 0 0 16px; font-size: .9375rem; }
.cf-turnstile { margin: 0 0 14px; }
.appear b { color: var(--teal); font-weight: 800; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-error {
  margin: 0 0 12px;
  padding: 10px 12px;
  background: #fbe9e7;
  border-left: 4px solid #b3261e;
  color: #7a1712;
  font-size: .9375rem; font-weight: 600;
}

.privacy { margin-top: 14px; font-size: .8125rem; line-height: 1.5; color: var(--muted); }
.privacy summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.privacy p { margin-top: 8px; }
.privacy a { color: inherit; }

/* ---------- Thank you ---------- */
.thanks { position: relative; text-align: center; padding: 10px 0 6px; }
.thanks:focus { outline: none; }
.thanks__stamp {
  position: absolute; top: -8px; right: -6px;
  transform: rotate(9deg);
  border: 3px solid var(--gold); color: #9a7516;
  padding: 5px 10px 3px;
  font: 400 1.5rem/1 var(--cond); letter-spacing: .14em;
}
.thanks__title { font-size: clamp(1.6rem, 4vw, 2.1rem); font-weight: 800; line-height: 1.15; color: var(--teal); }
.thanks__line { margin-top: 10px; font-size: 1.0625rem; font-weight: 500; }
.thanks__line b { color: var(--teal); font-weight: 800; }
.thanks__ask { margin: 14px auto 18px; max-width: 28em; font-size: .9375rem; color: var(--muted); }
.share { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.share__btn {
  min-height: 44px;
  display: inline-flex; align-items: center;
  padding: 0 16px;
  border: 2px solid var(--teal);
  background: var(--white);
  color: var(--teal);
  font: 700 .9375rem/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
}
.share__btn:hover { background: var(--teal); color: var(--white); }

/* ---------- The roll of names ---------- */
.roll__head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--gold);
  margin-bottom: 18px;
}
.roll__title { font: 400 clamp(2.2rem, 4.6vw, 3rem)/1 var(--cond); color: var(--teal); letter-spacing: .01em; }
.roll__search { display: grid; gap: 4px; width: 100%; max-width: 280px; }
.roll__search label { font-size: .8125rem; font-weight: 700; }
.roll__search input {
  min-height: 42px; padding: 8px 12px;
  border: 1.5px solid var(--muted); border-radius: 2px; background: var(--white);
  font: 500 1rem/1.2 var(--sans); color: var(--ink);
}
.roll__search input:focus { outline: 3px solid var(--gold); outline-offset: 0; border-color: var(--teal); }

/* One <ol> per page of 250 names. Off-screen pages skip layout & paint.
   <li>Jake L.<span class="town">, Lawrence</span></li> = 2 elements per name. */
.names {
  list-style: none;
  padding: 0;
  columns: 2;
  column-gap: 14px;
  column-rule: 1px solid var(--rule);
  font-size: .8125rem;
  line-height: 1.4;
  content-visibility: auto;
  contain-intrinsic-size: auto 2800px;
}
.names + .names { margin-top: 1.4em; }
.names li {
  break-inside: avoid;
  font-weight: 700;
  padding: 1px 0 1px .9em;
  text-indent: -.9em; /* hanging indent when a long name wraps */
}
.names .town { font-weight: 400; color: var(--muted); }
.names .is-new { background: #f6e3ae; box-shadow: 0 0 0 3px #f6e3ae; }
@media (min-width: 640px) {
  .names { columns: 3; column-gap: 22px; font-size: .875rem; line-height: 1.45; contain-intrinsic-size: auto 1700px; }
}
@media (min-width: 900px) { .names { columns: 4; contain-intrinsic-size: auto 1250px; } }

.roll__results .names { content-visibility: visible; }
.roll__empty { font-size: 1rem; font-weight: 600; color: var(--muted); padding: 8px 0; }
.roll__status { font-size: .9375rem; color: var(--muted); margin: 6px 0 12px; }
.roll__more { text-align: center; margin-top: 26px; }
.link-btn {
  background: none; border: 0; padding: 8px 0; cursor: pointer;
  font: 700 .9375rem/1 var(--sans); color: var(--teal); text-decoration: underline;
}

.ad__foot {
  margin-top: 30px; padding-top: 12px;
  border-top: 1px solid var(--rule);
  text-align: center;
  font-size: .75rem; line-height: 1.5;
  letter-spacing: .02em;
  color: var(--muted);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.foot { border-top: 4px solid var(--teal); padding: 22px 0 28px; font-size: .875rem; color: var(--muted); }
.foot__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.foot img { width: 140px; }
.foot strong { color: var(--teal); }
.foot a { color: inherit; }
.foot__credit { flex-basis: 100%; font-size: .75rem; }
