/* momspowerelections.org — MomsRising Together brand, sampled from the
   MomsRising Together logo + 2024 candidate flyer. */
:root {
  --navy: #00506f;        /* "TOGETHER" block in the logo */
  --navy-deep: #003a52;
  --red: #c80000;         /* MomsRising wordmark / site links */
  --blue: #0072ec;        /* flyer headline blue */
  --yellow: #f5c400;      /* flyer highlight */
  --ink: #1b2430;
  --muted: #4a5664;
  --tint: #eef5f9;
  --line: #d8e3ea;
  --radius: 14px;
  --wrap: 1180px;
  --font-head: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--red); text-underline-offset: 0.15em; }
a:hover { color: var(--navy); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; color: var(--navy); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem); margin: 0 0 0.5rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 10; background: #fff; padding: 8px 12px; }


/* Header — sticky; compacts once scrolled (js/site.js adds .is-scrolled) */
.site-header {
  position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.97);
  padding: 14px max(16px, calc((100% - var(--wrap)) / 2 + 16px));
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  transition: padding 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-scrolled { padding-top: 8px; padding-bottom: 8px; box-shadow: 0 2px 10px rgba(0, 40, 60, 0.12); }
.brand img { display: block; width: 220px; max-width: 100%; height: auto; transition: width 0.2s ease; }
.site-header.is-scrolled .brand img { width: 150px; }
[id] { scroll-margin-top: 96px; }
.site-header nav { display: flex; gap: 6px 18px; flex-wrap: wrap; align-items: center; }
.site-header nav a {
  font: 600 0.95rem/1 var(--font-head); color: var(--navy); text-decoration: none; padding: 8px 0;
}
.site-header nav a:hover { color: var(--red); }
.site-header nav .nav-cta { background: var(--red); color: #fff; padding: 10px 16px; border-radius: 999px; }
.site-header nav .nav-cta:hover { background: var(--navy); color: #fff; }
@media (max-width: 560px) {
  .site-header { padding: 12px 16px; }
  .brand img { width: 190px; }
  .site-header nav { width: 100%; justify-content: space-between; gap: 4px 10px; }
  .hide-sm { display: none; }
  /* Scrolled on a phone: one slim row — logo + Vote only. */
  .site-header.is-scrolled { flex-wrap: nowrap; }
  .site-header.is-scrolled .brand img { width: 120px; }
  .site-header.is-scrolled nav { width: auto; }
  .site-header.is-scrolled nav a:not(.nav-cta) { display: none; }
}

/* Hero */
.hero { background: linear-gradient(180deg, #fff 0%, var(--tint) 100%); padding: 20px 0 48px; }
.hero__grid { display: grid; gap: 32px; align-items: center; }
.hero__seal { display: none; }
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; }
  .hero__seal { display: block; transition: transform 0.2s ease; }
  .hero__seal img { display: block; width: 100%; height: auto; filter: drop-shadow(0 6px 14px rgba(0, 40, 60, 0.18)); }
  .hero__seal:hover { transform: rotate(-3deg) scale(1.02); }
}
.seal-mobile { display: block; width: 180px; height: auto; margin: 0 0 12px; }
@media (min-width: 960px) { .seal-mobile { display: none; } }
.hero h1 { font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.6rem); font-weight: 800; color: var(--blue); margin: 0.1em 0 0.3em; max-width: 16ch; }
.eyebrow { font: 700 0.8rem/1.2 var(--font-head); text-transform: uppercase; letter-spacing: 0.12em; color: var(--red); margin: 0; }
.eyebrow a { color: inherit; }
.hero__highlight {
  display: inline-block; background: var(--yellow); color: var(--navy-deep);
  font: 800 clamp(1.15rem, 1rem + 0.8vw, 1.5rem)/1.3 var(--font-head); padding: 4px 12px; margin: 0 0 18px;
}
.lead { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); max-width: 60ch; margin: 0 0 24px; }
.hero__vote {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px;
  border-left: 5px solid var(--red); background: #fff; padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: 0 1px 3px rgba(0, 40, 60, 0.08); max-width: 820px;
}
.hero__vote p { margin: 0; flex: 1 1 280px; }
.nowrap { white-space: nowrap; }
.button {
  display: inline-block; background: var(--red); color: #fff; text-decoration: none;
  font: 700 1rem/1 var(--font-head); padding: 14px 22px; border-radius: 999px; white-space: nowrap;
}
.button:hover { background: var(--navy); color: #fff; }

/* Jump cards under the hero */
.jump { background: var(--tint); padding: 0 0 36px; }
.jump__grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .jump__grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.jump__card {
  display: flex; align-items: center; gap: 14px; text-decoration: none;
  background: #fff; border-radius: var(--radius); padding: 16px 18px;
  box-shadow: 0 1px 3px rgba(0, 40, 60, 0.1); border-bottom: 4px solid var(--yellow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.jump__card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 40, 60, 0.15); }
.jump__num { font: 800 clamp(2rem, 1.6rem + 1.4vw, 2.6rem)/1 var(--font-head); color: var(--red); min-width: 2.2ch; }
.jump__label { font: 700 1rem/1.25 var(--font-head); color: var(--navy); }

/* Sections */
.band { padding: 48px 0; }
.band--tint { background: var(--tint); }
.section-intro { max-width: 68ch; color: var(--muted); margin: 0 0 28px; }

/* Candidate grid — flex so a short last row centers instead of hanging left. */
.grid { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; --gap: 12px; gap: var(--gap); }
.grid--lg .tile { --cols: 2; }
.grid--sm .tile { --cols: 2; }
.grid--md .tile { --cols: 3; }
@media (min-width: 640px) {
  .grid--md .tile { --cols: 4; }
  .grid { --gap: 16px; }
  .grid--lg .tile { --cols: 3; }
  .grid--sm .tile { --cols: 3; }
}
@media (min-width: 1000px) {
  .grid { --gap: 20px; }
  .grid--lg .tile { --cols: 4; }
  .grid--sm .tile { --cols: 5; }
  .grid--md .tile { --cols: 6; }
}
.tile {
  flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
  position: relative; aspect-ratio: 1 / 1; overflow: hidden;
  border-radius: var(--radius); background: var(--navy);
  box-shadow: 0 2px 6px rgba(0, 40, 60, 0.12);
}
.tile__link { position: absolute; inset: 0; display: block; color: inherit; text-decoration: none; }
.tile:has(.tile__link):hover { box-shadow: 0 0 0 3px var(--yellow), 0 4px 12px rgba(0, 40, 60, 0.2); }
.tile__link:focus-visible { outline: 3px solid var(--yellow); outline-offset: -3px; border-radius: inherit; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.tile:hover img { transform: scale(1.03); }
.tile__initials {
  position: absolute; inset: 0; display: grid; place-items: center;
  font: 800 3rem/1 var(--font-head); color: rgba(255, 255, 255, 0.85);
}
/* Text overlay: live HTML text on a bottom gradient (no baked-in image text). */
.tile__text {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40% 12px 12px;
  background: linear-gradient(180deg, rgba(0, 40, 58, 0) 0%, rgba(0, 40, 58, 0.55) 45%, rgba(0, 32, 48, 0.92) 100%);
  color: #fff; display: flex; flex-direction: column; gap: 2px;
}
.tile__name { font: 800 clamp(0.95rem, 0.8rem + 0.7vw, 1.3rem)/1.15 var(--font-head); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); }
.tile__race {
  font: 700 clamp(0.68rem, 0.62rem + 0.25vw, 0.8rem)/1.2 var(--font-head);
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--yellow);
}
.tile--placeholder { background: #e4eef4; box-shadow: inset 0 0 0 1px #cfdde6; }
.tile--placeholder .tile__initials { padding-bottom: 22%; color: #9fb7c6; font-size: clamp(1.6rem, 1.2rem + 2vw, 3rem); }
.tile--placeholder .tile__text { background: none; }
.tile--placeholder .tile__name { color: var(--navy); text-shadow: none; }
.tile--placeholder .tile__race { color: var(--red); }
.tile--placeholder .tile__note { color: var(--muted); }
.tile__note { font: 600 0.68rem/1.2 var(--font-body); color: rgba(255, 255, 255, 0.85); font-style: italic; }
.tile__seal {
  position: absolute; top: 10px; left: 10px;
  background: var(--yellow); color: var(--navy-deep);
  font: 800 0.66rem/1 var(--font-head); text-transform: uppercase; letter-spacing: 0.06em;
  padding: 6px 9px; border-radius: 999px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.grid--sm .tile__text { padding: 35% 10px 10px; }
.grid--md .tile { border-radius: 10px; }
.grid--md .tile__text { padding: 35% 8px 8px; }
.grid--md .tile__name { font-size: clamp(0.78rem, 0.68rem + 0.35vw, 0.98rem); }
.grid--md .tile__race { font-size: clamp(0.6rem, 0.56rem + 0.15vw, 0.68rem); letter-spacing: 0.05em; }
@media (max-width: 639px) {
  .grid--md { --gap: 8px; }
  .grid--md .tile__us, .grid--md .tile__note { display: none; }
  .grid--md .tile__name { font-size: 0.8rem; line-height: 1.12; }
  .grid--md .tile__text { padding: 30% 7px 7px; }
  .grid--md .tile--placeholder .tile__initials { padding-bottom: 46%; font-size: 1.35rem; }
}
.grid--sm .tile__name { font-size: clamp(0.9rem, 0.8rem + 0.4vw, 1.05rem); }

/* State & local Seal recipients — text only, grouped by state */
.state-list { columns: 1; column-gap: 40px; }
@media (min-width: 640px) { .state-list { columns: 2; } }
@media (min-width: 1000px) { .state-list { columns: 3; } }
.state-list__group { margin: 0 0 24px; }
.state-list h3 {
  font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--red);
  margin: 0 0 8px; padding-bottom: 6px; border-bottom: 2px solid var(--line);
  break-after: avoid;
}
.state-list__count { color: var(--muted); font-weight: 600; letter-spacing: 0; }
.state-list ul { list-style: none; margin: 0; padding: 0; }
.state-list li { padding: 5px 0; line-height: 1.35; break-inside: avoid; }
.state-list__name { font-weight: 600; color: var(--navy); display: block; }
a.state-list__name { text-decoration: none; }
a.state-list__name:hover { color: var(--red); text-decoration: underline; }
a.state-list__name::after { content: " ↗"; font-size: 0.8em; color: var(--muted); }
.state-list__office { font-size: 0.92rem; color: var(--muted); }

/* Press list */
.press-list { list-style: none; padding: 0; margin: 0 0 16px; }
.press-list li { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.press-list a { font-weight: 600; text-decoration: none; color: var(--navy); }
.press-list a:hover { color: var(--red); text-decoration: underline; }
.press-list time { font-size: 0.9rem; color: var(--muted); }
.measure { max-width: 780px; }
.press-archive { margin: 0; }
.more { font: 700 1rem/1 var(--font-head); text-decoration: none; }
.ps { font-style: italic; color: var(--muted); margin-top: 32px; }

/* Articles (press releases, archive pages) */
.prose { padding-top: 24px; padding-bottom: 56px; max-width: 780px; }
.prose h1 { font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.6rem); color: var(--navy); margin: 0.3em 0 0.8em; }
.prose img { border-radius: 8px; }
.prose figure { margin: 1.5em 0; }
.archive-note {
  background: var(--tint); border-left: 4px solid var(--yellow); padding: 10px 14px;
  font-size: 0.95rem; color: var(--muted); margin: 0 0 24px;
}
.prose .back { margin-top: 40px; font-weight: 600; }

/* Footer — FEC disclaimer */
.site-footer { background: var(--navy-deep); color: #fff; padding: 28px 16px 36px; }
.disclaimer {
  max-width: 760px; margin: 0 auto; text-align: center;
  border: 2px solid #fff; padding: 12px 16px; font-size: 0.95rem; line-height: 1.45;
}
