/* John Makenley Pierre • campaign visual treatment */
:root {
  --canvas: #f5f7fa;
  --edge: #d8e1eb;
  --lift: 0 2px 5px rgb(20 45 78 / 4%), 0 12px 28px -16px rgb(20 45 78 / 26%);
  --round: 1.15rem;
}
body { background: var(--canvas); }
nav { background: white; box-shadow: 0 2px 14px rgb(15 35 58 / 5%); position: relative; z-index: 1; }
.action, .links .don, .menu-toggle, button.action { border-radius: .8rem; }
.action, .links .don { box-shadow: 0 5px 12px -6px rgb(130 20 49 / 55%); }
a:focus-visible, summary:focus-visible, button:focus-visible { outline: 3px solid #216791; outline-offset: 4px; }
header.campaign-hero {
  width: min(96%, 1460px); margin: clamp(1rem,3vw,2.8rem) auto 0;
  background: linear-gradient(110deg, #fff 20%, #f1f6fb); border: 1px solid var(--edge);
  border-radius: 1.8rem; box-shadow: var(--lift); overflow: hidden;
}
.hero-grid { min-height: 480px; grid-template-columns: 1.25fr .9fr; gap: 4%; }
.hero-grid img { mix-blend-mode: multiply; max-height: 490px; }
.hero-grid h1 { font-size: clamp(3.35rem,6.1vw,5.65rem); }
.strip { width: min(90%,1180px); margin: -.35rem auto 0; position: relative; border-radius: 0 0 var(--round) var(--round); }
.strip .container { width: 94%; }
#about { padding-bottom: 1rem; }
#about .split { background: white; border: 1px solid var(--edge); border-radius: 1.5rem; overflow: hidden; gap: 4%; box-shadow: var(--lift); }
#about .split > div { padding: 1.5rem clamp(1.2rem,3vw,3rem) 1.5rem 0; }
#about img { align-self: stretch; height: 100%; object-fit: cover; }
/* Voter guide: keep the original photograph under a printed-dot texture. */
.pagehead.vote-banner {
  --photo-width: 74%;
  background-color: #10233c;
  background-image:
    linear-gradient(90deg, #10233c 12%, rgb(16 35 60 / 99%) 27%, rgb(16 35 60 / 86%) 48%, rgb(16 35 60 / 42%) 78%),
    radial-gradient(circle, rgb(14 31 54 / 48%) .65px, transparent 1px),
    url("../assets/img/campaign/voter-at-ballot-box.png");
  background-size: 100% 100%, 3px 3px, var(--photo-width) auto;
  background-position: center, center, right 48%;
  background-repeat: no-repeat, repeat, no-repeat;
  background-blend-mode: normal, normal, luminosity;
}
@media (max-width: 760px) {
  .pagehead.vote-banner {
    background-size: 100% 100%, 3px 3px, cover;
    background-position: center, center, 40% center;
    background-image:
      linear-gradient(90deg, rgb(16 35 60 / 94%), rgb(16 35 60 / 74%)),
      radial-gradient(circle, rgb(14 31 54 / 48%) .65px, transparent 1px),
      url("../assets/img/campaign/voter-at-ballot-box.png");
  }
}
.pagehead {
  width: min(94%,1280px); margin: 1.8rem auto 0; border: 0; border-radius: 1.6rem; color: white;
  background: linear-gradient(115deg,#102b4b,#244767); box-shadow: var(--lift);
}
.pagehead .kicker { color: #e7c7cc; }
body:has(.priority-panel) .pagehead {
  background: linear-gradient(90deg,rgb(13 32 58 / 97%) 12%,rgb(13 32 58 / 86%) 53%,rgb(13 32 58 / 46%)),
    url("../assets/img/campaign/halftone.png") center 30% / cover;
}
.cards article, .priority-panel, .photos figure, .tiles a, form {
  background: white; border: 1px solid var(--edge); border-radius: var(--round); box-shadow: var(--lift);
}
.cards article, form { padding: clamp(1.15rem,2.4vw,2rem); }
form .notice, fieldset, form input:not([type=checkbox]), form textarea { border-radius: .65rem; }
.tiles { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.1rem; }
.tiles a { display: flex; align-items: center; gap: .9rem; padding: .7rem; }
.priority-icon {
  box-sizing: border-box;
  flex: none;
  width: 3.5rem;
  height: 3.5rem;
  padding: .8rem;
  border-radius: .8rem;
  background: #edf2f7;
  color: var(--ink);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tiles a:is(:hover, :focus-visible) .priority-icon { color: var(--red); }
.photos figure { overflow: hidden; }
.photos img { aspect-ratio: 1.5; object-fit: cover; }
.photos figcaption { margin: 0; padding: .8rem 1rem; }
.polgrid { align-items: start; gap: 1rem; }
.priority-panel { padding: 0; scroll-margin-top: 1rem; }
.priority-panel summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.2rem; font: 600 1.25rem/1.3 Georgia,serif;
}
.priority-panel summary::-webkit-details-marker { display: none; }
.priority-panel summary::after { content: '+'; color: var(--red); font: 1.4rem/1 Arial,sans-serif; }
.priority-panel[open] { border-color: #99aec3; }
.priority-panel[open] summary::after { content: '−'; }
.priority-panel ul { border-top: 1px solid var(--edge); margin: 0 1.2rem; padding: 1rem 0 1rem 1.15rem; }
.priority-panel li::marker { color: var(--red); }
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  .tiles a, .action { transition: transform .18s ease,box-shadow .18s ease; }
  .tiles a:hover, .action:hover { transform: translateY(-2px); box-shadow: 0 8px 20px -7px rgb(22 46 84 / 28%); }
}
@media (max-width:800px) { .tiles { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width:720px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-grid img { max-height: 300px; }
  .strip .container { display: grid; gap: .35rem; }
  #about .split > div { padding: 0 1.25rem 1.25rem; }
  #about img { height: auto; }
}
@media (max-width:520px) {
  .tiles { grid-template-columns: 1fr; }
  .hero-grid h1 { font-size: clamp(2.7rem,11vw,3.6rem); }
  .second { margin-left: 0; }
}

.language-select {
  min-height: 44px;
  padding: .45rem .7rem;
  border: 1px solid var(--edge);
  border-radius: .8rem;
  background: white;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
@media (min-width:931px) and (max-width:1250px) {
  .enhanced .menu-toggle { display: block; padding: .5rem 1rem; background: white; color: var(--ink); border: 1px solid var(--edge); }
  .enhanced .links { display: none; }
  .enhanced .links.opened { display: flex; flex-basis: 100%; }
}

.policy-icon {
  width: 2.7rem;
  height: 2.7rem;
  flex: none;
  padding: .58rem;
  box-sizing: border-box;
  background: #edf2f7;
  border-radius: .75rem;
  color: var(--ink);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.policy-group { margin-block: 2.6rem; }
.policy-group h3, .policy-heading { font: normal clamp(1.6rem,3vw,2.3rem)/1.2 Georgia,serif; margin: 0 0 1rem; }
.policy-cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,17rem),1fr)); gap: 1rem; }
.policy-cards article { background: white; border: 1px solid var(--edge); border-radius: var(--round); padding: clamp(1rem,2vw,1.6rem); box-shadow: var(--lift); }
.policy-cards h4 { font: bold 1.25rem/1.3 Georgia,serif; margin: .65rem 0; }
.policy-cards p:last-child { margin: 0; }
.priority-panel summary { justify-content: flex-start; gap: .8rem; }
.priority-panel summary::after { margin-inline-start: auto; }

/* Keep long commitments readable when a reader opens one of the ten priorities. */
.polgrid .priority-panel[open] { grid-column: 1 / -1; }
.polgrid .priority-panel ul { max-width: 80ch; margin-inline: auto; padding-inline: 2rem 1rem; }
.polgrid .priority-panel li { line-height: 1.6; padding-block: .3rem; }

/* A print-like dot field fades out before it reaches the reading column. */
main {
  background-image: linear-gradient(90deg, transparent, var(--canvas) 18%, var(--canvas) 82%, transparent),
                    radial-gradient(circle, rgb(29 64 96 / 14%) .8px, transparent 1px);
  background-size: auto, 9px 9px;
  display: flow-root;
}
main > .section { padding-block: clamp(2.4rem, 4.5vw, 4.25rem); }
main > .section + .section { padding-top: clamp(1.25rem, 2vw, 2rem); }
.civic-opening, .vision-spread {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  border: 1px solid var(--edge);
  border-radius: var(--round);
  background: #fff;
  overflow: hidden;
  box-shadow: var(--lift);
}
.civic-opening > div, .vision-spread > div { min-width: 0; padding: clamp(1.25rem, 3vw, 2.6rem); }
.civic-question, .vision-title {
  background: linear-gradient(110deg, #102943 12%, rgb(20 50 76 / 94%) 65%, rgb(20 50 76 / 80%)),
              url("../assets/icons/footer-contours.svg") right bottom / 135% auto no-repeat, #183850;
  position: relative;
  color: white;
}
.civic-question::before, .vision-title::before {
  content: "";
  display: block;
  width: 2.8rem;
  height: .2rem;
  background: #f58a9c;
  margin-bottom: 1.25rem;
}
.civic-question h2, .vision-title h2 { color: white; margin-top: 0; text-wrap: balance; }
.vision-title .kicker { color: #ffc9d3; }
.civic-opening p, .vision-copy p { line-height: 1.65; }
.civic-opening p:first-child, .vision-copy p:first-child { margin-top: 0; }
.civic-opening p:last-child, .vision-spread :last-child { margin-bottom: 0; }
.vision-copy p:first-child { font-size: 1.12em; font-weight: 650; }
.civic-guide > .civic-principle {
  max-width: none; margin: 1rem 0 1.4rem; padding: .65rem 1rem;
  border-inline-start: 3px solid var(--red); font: italic 1.15rem/1.5 Georgia, serif;
}
.civic-guide .civic-body { max-width: 84ch; margin-inline: auto; }
.civic-terms { margin: 1rem 0; }
.civic-terms > div { padding-block: .65rem; border-top: 1px solid var(--edge); }
.civic-terms dt { color: #92233c; font-weight: 700; }
.civic-terms dd { margin: .12rem 0 0; }
.vote-checklist { display: grid; gap: 1.1rem; align-items: center; }
.vote-checklist h2 { margin: 0; }
.vote-checklist > .action { justify-self: start; }
.vote-checklist .steps {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,11rem),1fr));
  gap: .75rem; list-style: none; counter-reset: voting; padding: 0; margin: 0;
}
.vote-checklist .steps li {
  counter-increment: voting; margin: 0; padding: 1.1rem; background: white;
  border: 1px solid var(--edge); border-top: 3px solid #223f5c; border-radius: .75rem;
}
.vote-checklist .steps li::before {
  content: counter(voting, decimal-leading-zero);
  display: block; margin-bottom: .55rem; color: #9b2140; font: bold 1.2rem/1 Georgia,serif;
}
.vote-checklist .steps p { margin: .4rem 0 0; line-height: 1.5; }
@media (min-width: 56rem) {
  .vote-checklist { grid-template-columns: 1fr auto; }
  .vote-checklist > .action { grid-row: 1; grid-column: 2; }
  .vote-checklist .steps { grid-column: 1 / -1; }
  .photos.archive { grid-template-columns: repeat(12, minmax(0,1fr)); }
  .photos.archive figure { grid-column: span 4; }
  .photos.archive figure:nth-last-child(-n+2) { grid-column: span 6; }
  .section:has([data-message="volunteer"]) > .cards { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (max-width: 44rem) {
  .civic-opening, .vision-spread { grid-template-columns: 1fr; }
  .vote-checklist .steps { grid-template-columns: 1fr; }
  .vote-checklist .steps li { position: relative; padding: .85rem 1rem .85rem 3.2rem; }
  .vote-checklist .steps li::before { position: absolute; top: 1.1rem; left: 1rem; }
}
