/* ============================================================================
   Kevin Martin for Congress — SHARED CHROME
   Every page links this file. It holds the brand tokens, the base typography,
   the header and nav, the buttons and form, the sign-up modal, the issue-card
   grid, and the footer.

   Page-specific rules stay inline in their own page. If a rule is only used by
   the homepage hero, it does NOT belong here.

   Rules were moved verbatim out of index.html on 2026-08-12. Dead rules
   (.pain, .band, .you, .capture) were dropped in the move; .cap-sub was kept
   and rescoped because the modal still uses it.
   ============================================================================ */

:root{
  /* ================= BRAND (locked 2026-07-20) =================
     Navy  #003058  |  Gold  #cfb53c   — from the campaign logo         */
  --brand:        #003058;   /* brand navy — logo field, contrast panels */
  --brand-deep:   #002440;   /* darker navy — headings, dark section     */
  --gold:         #cfb53c;   /* brand gold — accents on dark             */
  --accent-ink:   #8a7420;   /* darkened gold for TEXT on light bg
                                (raw gold fails contrast on white)       */
  /* primary action button: gold field, navy type */
  --cta:          #cfb53c;
  --cta-hover:    #b99f2e;
  --cta-ink:      #002440;
  /* donate stays green: keeps the money ask visually separate
     from the gold primary CTA. Say the word and it goes gold.           */
  --donate:       #1f9d55;
  --donate-hover: #177a41;
  /* green check on the issue cards. Its own token, so restyling the donate
     button never silently restyles the checks.                            */
  --check:        #1f9d55;
  /* pattern-interrupt box — pale gold on navy */
  --ask-bg:       #f7f0d4;
  --ask-ink:      #002440;
  --ask-line:     #e3d18f;
  --ask-accent:   #cfb53c;
  --header-h:     5.4rem;
  --banner-h:     2.75rem;   /* announcement bar under the header */
  --ink:          #16202b;
  --muted:        #5b6672;
  --paper:        #ffffff;
  --paper-alt:    #f4f6f9;
  --line:         #e2e7ee;
  --focus:        #2b6cb0;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap: 64rem;         /* outer container / page gutter            */
  --measure: 100%;       /* STANDARD text measure = the same width the
                            "Is this you?" module grid spans, i.e. the
                            full .wrap content box. Text and grid share
                            one left and right edge down the page.      */
  --measure-lead: 34rem; /* display callouts (promise, ask, hero sub)   */
  --measure-read: 52rem; /* long-form reading measure — issue pages     */
}

/* Pages with no announcement banner zero out the banner offset so the
   fixed header and the body padding stay in agreement. */
body.no-banner{--banner-h:0rem}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;font-family:var(--font);color:var(--ink);background:var(--paper);
  line-height:1.55;font-size:clamp(1rem,0.95rem + 0.3vw,1.125rem);
  padding-top:calc(var(--header-h) + var(--banner-h))}
/* anchor targets clear the fixed header + banner */
[id]{scroll-margin-top:calc(var(--header-h) + var(--banner-h) + .75rem)}
h1,h2,h3{line-height:1.15;margin:0 0 .5em;color:var(--brand-deep);letter-spacing:-.01em}
h1{font-size:clamp(2rem,1.4rem + 3vw,3.4rem);font-weight:800}
h2{font-size:clamp(1.5rem,1.2rem + 1.5vw,2.15rem);font-weight:700}
p{margin:0 0 1rem}
a{color:var(--brand)}
.wrap{max-width:var(--wrap);margin-inline:auto;padding-inline:clamp(1.1rem,4vw,2.5rem)}
.section{padding-block:clamp(2.75rem,6vw,5rem)}
.alt{background:var(--paper-alt)}
.skip{position:absolute;left:-999px}
.skip:focus{left:1rem;top:1rem;background:#fff;padding:.6rem 1rem;z-index:20;border-radius:.4rem}
:focus-visible{outline:3px solid var(--focus);outline-offset:2px}

/* ---------- STANDARDIZED CONTENT MEASURE ----------
   Every text block inside a section wrap gets the same width by default,
   so copy never runs edge-to-edge in one section and half-width in the next.
   Grids (.modules, .cards) are divs and are intentionally unaffected.     */
.section .wrap > h2,
.section .wrap > p,
.section .wrap > ul,
.section .wrap > ol,
.section .wrap > blockquote{max-width:var(--measure)}
.narrow{max-width:var(--measure)}

.eyebrow{text-transform:uppercase;letter-spacing:.08em;font-weight:700;font-size:.8rem;
  color:var(--accent-ink);margin:0 0 1rem}
.sub{font-size:clamp(1.05rem,1rem + .5vw,1.3rem);color:var(--muted);
  max-width:var(--measure-lead);margin-bottom:1.75rem}

/* ---------- ANNOUNCEMENT BANNER (fixed, under the header) ---------- */
.promo-bar{position:fixed;top:var(--header-h);left:0;right:0;z-index:48;
  height:var(--banner-h);display:flex;align-items:center;justify-content:center;
  background:#c8102e;color:#fff;text-align:center;
  font-weight:800;text-transform:uppercase;letter-spacing:.06em;
  font-size:clamp(.78rem,.7rem + .35vw,.95rem);
  text-decoration:none;padding:0 1rem;line-height:1.15;
  transition:background .15s ease}
.promo-bar:hover{background:#a50d26;color:#fff}
.promo-bar .arrow{margin-left:.5rem}

/* ---------- FIXED HEADER ---------- */
.site-header{position:fixed;top:0;left:0;right:0;z-index:50;height:var(--header-h);
  background:rgba(255,255,255,.96);backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line)}
.header-inner{display:flex;align-items:center;justify-content:space-between;
  gap:1rem;height:var(--header-h)}
.brand{display:flex;align-items:center;gap:.6rem;text-decoration:none;flex:0 0 auto}
.logo-img{height:4.2rem;width:auto;display:block}
@media (max-width:520px){:root{--header-h:4.7rem}.logo-img{height:3.6rem}}
.logo{height:2.3rem;width:2.3rem;border-radius:.4rem;background:var(--brand);
  color:var(--gold);display:grid;place-items:center;font-weight:800;font-size:.95rem}
.logo-word{font-weight:800;color:var(--brand-deep);font-size:1rem;white-space:nowrap}
.logo-word span{color:var(--muted);font-weight:600}
@media (max-width:420px){.logo-word{display:none}}

.nav{display:flex;align-items:center;gap:.35rem}
.nav a{text-decoration:none;color:var(--ink);font-weight:600;font-size:.92rem;
  padding:.5rem .7rem;border-radius:.4rem;white-space:nowrap;transition:background .15s}
.nav a:hover{background:var(--paper-alt)}
.nav a.donate{background:var(--donate);color:#fff;padding:.6rem 1.1rem;margin-left:.5rem}
.nav a.donate:hover{background:var(--donate-hover)}
/* the page you are on does not link to itself */
.nav a[aria-current="page"]{color:var(--accent-ink);background:var(--paper-alt)}

/* hamburger */
.nav-toggle{display:none;flex-direction:column;justify-content:center;gap:5px;
  width:2.75rem;height:2.5rem;border:1px solid var(--line);border-radius:.4rem;
  background:#fff;cursor:pointer;padding:0 .6rem}
.nav-toggle .bar{display:block;height:2px;width:100%;background:var(--brand-deep);
  border-radius:2px;transition:transform .2s,opacity .2s}
.site-header.open .nav-toggle .bar:nth-child(1){transform:translateY(7px) rotate(45deg)}
.site-header.open .nav-toggle .bar:nth-child(2){opacity:0}
.site-header.open .nav-toggle .bar:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

@media (max-width:860px){
  .nav-toggle{display:flex}
  .nav{position:fixed;top:calc(var(--header-h) + var(--banner-h));left:0;right:0;
    flex-direction:column;align-items:stretch;gap:0;
    background:#fff;border-bottom:1px solid var(--line);
    box-shadow:0 14px 30px rgba(16,36,56,.12);
    padding:.5rem clamp(1.1rem,4vw,2.5rem) 1rem;
    max-height:0;overflow:hidden;opacity:0;visibility:hidden;
    transition:max-height .25s ease,opacity .2s ease}
  .site-header.open .nav{max-height:24rem;opacity:1;visibility:visible}
  .nav a{padding:.9rem .25rem;border-bottom:1px solid var(--line);font-size:1rem}
  .nav a:last-child{border-bottom:0}
  .nav a.donate{margin:.85rem 0 0;text-align:center;padding:.95rem 1.1rem;
    border-radius:.5rem;font-size:1.05rem}
}

/* ---------- BUTTONS + FORM ---------- */
.field{display:block;margin-bottom:.7rem}
.field input,.field textarea{width:100%;padding:.85rem .95rem;font-size:1rem;
  border:1px solid #c7cfd9;border-radius:.5rem;font-family:inherit}
.field textarea{min-height:4.5rem;resize:vertical}
.field .lbl{display:block;font-size:.88rem;font-weight:600;
  color:var(--ink);margin-bottom:.3rem}
.cap-sub{font-size:.92rem;color:var(--muted);margin-bottom:.9rem}
.hp{position:absolute;left:-9999px}
/* used as both <button> and <a>, so kill the anchor underline and centre the label */
.btn{display:inline-block;width:100%;border:0;cursor:pointer;background:var(--cta);color:var(--cta-ink);
  font-weight:700;font-size:1.05rem;padding:.95rem 1.2rem;border-radius:.5rem;font-family:inherit;
  text-decoration:none;text-align:center;
  transition:background .15s ease}
.btn:hover,.btn:focus-visible{background:var(--cta-hover);color:var(--cta-ink)}
.btn-lg{width:auto;padding:1.05rem 2rem;font-size:1.1rem}
.btn[aria-busy="true"]{opacity:.65;cursor:progress}
.friction{font-size:.82rem;color:var(--muted);margin:.7rem 0 0;text-align:center}
.form-error{font-size:.9rem;color:#a50d26;margin:.8rem 0 0;text-align:center}
.form-error[hidden]{display:none}
.form-success{text-align:center;padding:1rem .5rem}
.form-success[hidden]{display:none}
.form-success h2{color:var(--brand-deep);margin-bottom:.5rem}
.form-success p{color:var(--muted);margin:0}
.hero-cta{max-width:34rem}
.hero-cta .friction{text-align:left}

/* ---------- CLOSING CTA SECTION (every page ends here) ---------- */
.final{text-align:center}
.final .sub{margin-inline:auto}
.final .hero-cta{margin-inline:auto}
.final .hero-cta .friction{text-align:center}

/* ---------- SIGN-UP MODAL ----------
   Markup is injected by site.js so the form and the webhook URL exist in
   exactly one place across the whole site. */
.modal[hidden]{display:none}
.modal{position:fixed;inset:0;z-index:100;display:grid;place-items:center;
  padding:1.1rem}
.modal-backdrop{position:absolute;inset:0;background:rgba(9,20,32,.62);
  backdrop-filter:blur(3px)}
.modal-card{position:relative;z-index:1;background:#fff;border-radius:.9rem;
  width:min(34rem,100%);max-height:90vh;overflow-y:auto;
  padding:clamp(1.4rem,4vw,2rem);box-shadow:0 24px 60px rgba(9,20,32,.35);
  animation:modal-in .18s ease-out}
@keyframes modal-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.modal-card h2{font-size:1.35rem;margin-bottom:.3rem}
.modal-close{position:absolute;top:.6rem;right:.6rem;width:2.2rem;height:2.2rem;
  border:0;background:transparent;border-radius:.4rem;cursor:pointer;
  font-size:1.6rem;line-height:1;color:var(--muted)}
.modal-close:hover{background:var(--paper-alt);color:var(--ink)}
.modal .field label{display:block;font-size:.88rem;font-weight:600;
  color:var(--ink);margin-bottom:.3rem}
body.modal-open{overflow:hidden}
@media (prefers-reduced-motion:reduce){.modal-card{animation:none}}

/* ---------- KEVIN'S OWN WORDS ---------- */
.quote{border-left:4px solid var(--cta);padding:.2rem 0 .2rem 1.15rem;margin:1.5rem 0;
  font-size:clamp(1.15rem,1rem + .7vw,1.5rem);font-weight:600;color:var(--brand-deep);line-height:1.35}
.quote cite{display:block;font-size:.85rem;font-weight:500;color:var(--muted);
  font-style:normal;margin-top:.6rem}

/* ---------- FULL-BLEED DARK SECTION ---------- */
.section-dark{background:var(--brand-deep);color:#fff}
.section-dark h2{color:#fff}
.section-dark p{color:#c8d5e2}
/* quotes on the dark section: navy default is invisible, use light gold */
.section-dark .quote{color:#e6d488}
.section-dark .quote cite{color:#c9d3de}

/* ============================================================================
   ISSUE CARDS
   Used by the homepage #issues grid and by the /issues/ hub. The whole card
   is the link, so the hit target is the card and not just the headline.
   ============================================================================ */
/* Two columns, not three. Ten issues in a 3-up grid leaves an orphan on the
   last row; 2-up divides evenly and gives the position line room to breathe. */
.cards{display:grid;grid-template-columns:repeat(2,1fr);gap:1.1rem;margin-top:1.5rem}
.card{background:#fff;border:1px solid var(--line);border-radius:.7rem;padding:1.25rem;
  display:flex;flex-direction:column;text-decoration:none;color:inherit;
  transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}
.card h3{font-size:1.08rem;margin-bottom:.35rem;color:var(--brand-deep)}
.card p{margin:0;color:var(--muted);font-size:.97rem}
a.card:hover,a.card:focus-visible{transform:translateY(-3px);
  border-color:var(--cta);box-shadow:0 12px 28px rgba(16,36,56,.13)}
a.card:hover h3,a.card:focus-visible h3{color:var(--accent-ink)}
/* the arrow is decorative; it moves on hover to signal "this goes somewhere" */
.card .go{margin-top:auto;padding-top:.9rem;font-weight:700;font-size:.9rem;
  color:var(--accent-ink)}
.card .go .arrow{display:inline-block;transition:transform .15s ease}
a.card:hover .go .arrow{transform:translateX(4px)}
@media (max-width:620px){.cards{grid-template-columns:1fr}}

/* the button under the homepage grid, through to the issues page */
.grid-cta{margin-top:2.25rem;text-align:center}

/* ============================================================================
   ISSUE PAGES
   ============================================================================ */
/* breadcrumb: the persistent way back to the hub and to the homepage */
.breadcrumb{background:var(--paper-alt);border-bottom:1px solid var(--line);
  font-size:.88rem}
.breadcrumb ol{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;
  list-style:none;margin:0;padding-block:.85rem}
.breadcrumb a{color:var(--brand);text-decoration:none;font-weight:600}
.breadcrumb a:hover{text-decoration:underline}
.breadcrumb li+li::before{content:"/";margin-right:.5rem;color:var(--muted)}
.breadcrumb [aria-current="page"]{color:var(--muted);font-weight:600}

/* long-form body: a real reading measure, not the full 64rem grid width */
.prose{max-width:var(--measure-read)}
.prose h2{font-size:clamp(1.3rem,1.1rem + 1vw,1.75rem);margin:2.75rem 0 .6em;
  padding-top:1.5rem;border-top:2px solid var(--line)}
.prose h2:first-of-type{margin-top:1.5rem}
.prose p{margin:0 0 1.15rem}
.prose ul{padding-left:1.25rem;margin:0 0 1.15rem}
.prose li{margin:0 0 .55rem}
.prose strong{color:var(--brand-deep)}
.prose .quote{margin:1.75rem 0}

/* Each plank under "What needs to change" gets a green check. Applied only to
   paragraphs that open with a bold lead, so the prose elaborating on a plank
   is not counted as a separate position. */
.prose .change{position:relative;padding-left:2.5rem;margin-bottom:1.35rem}
.prose .change::before{content:"\2713";position:absolute;left:0;top:.1em;
  width:1.65rem;height:1.65rem;border-radius:50%;
  background:var(--check);color:#fff;
  display:grid;place-items:center;font-size:.92rem;font-weight:800;line-height:1}
/* prose that follows a plank lines up under it rather than under the check */
.prose .change + p:not(.change),
.prose .change + .quote{margin-left:2.5rem}
@media (max-width:620px){
  .prose .change + p:not(.change),
  .prose .change + .quote{margin-left:0}
}

/* the standing-position line under the issue h1 */
.issue-lede{font-size:clamp(1.1rem,1rem + .55vw,1.35rem);font-weight:600;
  color:var(--brand-deep);line-height:1.4;max-width:var(--measure-read);
  border-left:4px solid var(--cta);padding-left:1.15rem;margin:0 0 2rem}

/* prev / next at the foot of an issue page */
.pager{display:grid;grid-template-columns:1fr 1fr;gap:1rem;
  max-width:var(--measure-read);margin-top:3rem;padding-top:1.75rem;
  border-top:2px solid var(--line)}
.pager a{display:block;text-decoration:none;color:inherit;
  border:1px solid var(--line);border-radius:.6rem;padding:.95rem 1.1rem;
  transition:border-color .15s ease,background .15s ease}
.pager a:hover{border-color:var(--cta);background:var(--paper-alt)}
.pager .dir{display:block;font-size:.78rem;text-transform:uppercase;
  letter-spacing:.07em;font-weight:700;color:var(--muted);margin-bottom:.25rem}
.pager .ttl{display:block;font-weight:700;color:var(--brand-deep);line-height:1.3}
.pager .prev{text-align:left}
.pager .next{text-align:right}
@media (max-width:620px){.pager{grid-template-columns:1fr}.pager .next{text-align:left}}

/* ---------- FOOTER ---------- */
footer{background:#0b1a28;color:#9fb0c0;font-size:.85rem}
footer .wrap{padding-block:2.5rem;text-align:center}
footer a{color:#cfe0f0}
/* FEC/GA disclaimer — legally required, keep it legible, never hide it */
.disclaimer{display:inline-block;border:1px solid #ffffff;padding:5px;
  font-weight:700;letter-spacing:.04em;color:#ffffff;
  font-size:clamp(1rem,0.95rem + 0.3vw,1.125rem);line-height:1.4;margin:0 0 1rem}
.foot-address{color:#c7d4e0;letter-spacing:.04em;font-weight:600;
  line-height:1.5;margin:0 0 1.25rem}
.foot-links{display:flex;flex-wrap:wrap;justify-content:center;gap:.4rem 1.4rem;
  margin:0;padding:0;list-style:none}
.foot-links a{color:#cfe0f0;text-decoration:none;border-bottom:1px solid transparent}
.foot-links a:hover{border-bottom-color:#cfe0f0}

@media (prefers-reduced-motion:reduce){*{transition:none!important}}
