/* ============================================================
   Prohibition Party — design system
   Palette is taken from the party seal: navy, red, cream.
   Change these six values to retheme the whole site.
   ============================================================ */
:root {
  --navy:       #0e2a5c;
  --navy-deep:  #071a3c;
  --red:        #c8102e;
  --red-dark:   #9c0a22;
  --cream:      #fbf9f5;
  --ink:        #16191f;

  --muted:      #5b6472;
  --line:       #e4e1d9;
  --white:      #ffffff;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;

  --wrap: 1180px;
  --gap: clamp(1.5rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* Anchored targets must clear the sticky masthead, or they land underneath it. */
[id] { scroll-margin-top: calc(var(--header-h, 5rem) + 1.5rem); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

h1, h2, h3, h4 {
  font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0 0 .4em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 5.5vw, 3.75rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.015em; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.15em; text-wrap: pretty; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--red); color: #fff; padding: .75rem 1.25rem; font-weight: 700;
}
.skip:focus { left: 0; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gap); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font-family: var(--sans); font-weight: 700;
  font-size: .95rem; letter-spacing: .02em;
  padding: .8rem 1.6rem; border-radius: 2px; text-decoration: none;
  border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s;
  cursor: pointer;
}
.btn--red   { background: var(--red); color: #fff; border-color: var(--red); }
.btn--red:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn--navy  { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn--navy:hover { background: var(--navy-deep); color: #fff; }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn--onDark { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--onDark:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* ---------- masthead ---------- */
.masthead {
  position: sticky; top: 0; z-index: 50;
  background: var(--white); border-bottom: 1px solid var(--line);
}
.masthead__inner {
  max-width: var(--wrap); margin-inline: auto; padding: .7rem var(--gap);
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.brand__seal { border-radius: 50%; }
.brand__name {
  display: block; font-family: var(--serif); font-weight: 700;
  font-size: 1.3rem; color: var(--navy); line-height: 1.1;
}
.brand__tag {
  display: block; font-size: .68rem; text-transform: uppercase;
  letter-spacing: .16em; color: var(--red); font-weight: 700; margin-top: .2rem;
}
.nav { display: flex; align-items: center; gap: 2rem; }
.nav__list { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.nav__list a {
  text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--ink);
  padding: .3rem 0; border-bottom: 3px solid transparent;
}
.nav__list a:hover { color: var(--red); border-bottom-color: var(--red); }
.nav__list a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--navy); }
.nav__cta { display: flex; gap: .6rem; }
.nav__cta .btn { padding: .6rem 1.15rem; font-size: .88rem; }

.navtoggle, .hamburger { display: none; }

@media (max-width: 960px) {
  .hamburger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px; cursor: pointer;
  }
  .hamburger span { display: block; height: 3px; background: var(--navy); border-radius: 2px; }
  .nav {
    display: none; flex-basis: 100%; flex-direction: column;
    align-items: stretch; gap: 0; padding: .5rem 0 1rem;
  }
  .navtoggle:checked ~ .nav { display: flex; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a { display: block; padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .nav__cta { margin-top: 1rem; }
  .nav__cta .btn { flex: 1; text-align: center; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; color: #fff; background: var(--navy-deep);
  padding: clamp(3rem, 7.5vw, 5.5rem) 0;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .8;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(7,26,60,.7) 0%, rgba(7,26,60,.5) 34%, rgba(7,26,60,.22) 68%, rgba(7,26,60,0) 100%);
}
.hero__inner { position: relative; z-index: 2; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gap); }
.hero__eyebrow {
  display: inline-block; font-size: .74rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: #fff;
  border-left: 4px solid var(--red); padding-left: .85rem; margin-bottom: 1.4rem;
  text-shadow: 0 1px 10px rgba(7,26,60,.95);
}
.hero h1 { color: #fff; max-width: 17ch; margin-bottom: .55em; text-shadow: 0 2px 18px rgba(7,26,60,.95), 0 1px 3px rgba(7,26,60,.8); }
.hero__lede { font-size: clamp(1.05rem, 1.9vw, 1.3rem); max-width: 56ch; color: #fff; text-shadow: 0 1px 12px rgba(7,26,60,.95), 0 1px 3px rgba(7,26,60,.8); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }

/* ---------- generic page header ---------- */
.pagehead { background: var(--navy); color: #fff; padding: clamp(2.25rem, 4.5vw, 3.25rem) 0; }
.pagehead h1 { color: #fff; margin-bottom: .3em; }
.pagehead__lede { max-width: 82ch; color: rgba(255,255,255,.9); font-size: 1.1rem; margin: 0; text-wrap: balance; }

/* ---------- sections ---------- */
.section { padding: clamp(2.25rem, 4.5vw, 3.5rem) 0; }
.section--cream { background: var(--cream); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h2 { color: #fff; }
.section__head { max-width: 62ch; margin-bottom: 1.9rem; }
.section__head p { color: var(--muted); font-size: 1.1rem; margin-bottom: 0; }
.section--navy .section__head p { color: rgba(255,255,255,.85); }

.rule { width: 64px; height: 4px; background: var(--red); border: 0; margin: 0 0 1.4rem; }

/* ---------- prose ---------- */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.25em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; font-family: var(--sans); font-size: 1.05rem;
  text-transform: uppercase; letter-spacing: .08em; color: var(--red); }
.prose ul, .prose ol { padding-left: 1.3rem; margin-bottom: 1.2em; }
.prose li { margin-bottom: .45em; }
.prose blockquote {
  margin: 1.8em 0; padding: .3em 0 .3em 1.5rem;
  border-left: 4px solid var(--red); font-family: var(--serif);
  font-size: 1.2rem; color: var(--navy);
}
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }

.card {
  background: var(--white); border: 1px solid var(--line);
  border-top: 4px solid var(--red); padding: 1.9rem;
  display: flex; flex-direction: column;
}
.card h3 { font-family: var(--serif); text-transform: none; letter-spacing: 0; color: var(--ink); margin-bottom: .5em; }
.card p { color: var(--muted); margin-bottom: 1.2em; }
.card__more { margin-top: auto; font-weight: 700; font-size: .95rem; text-decoration: none; }
.card__more::after { content: " \2192"; }

.stat { text-align: left; }
.stat__num { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1; color: var(--red); display: block; }
.section--navy .stat__num { color: #ff8494; }
.stat__label { font-size: .95rem; color: var(--muted); margin-top: .5rem; display: block; }
.section--navy .stat__label { color: rgba(255,255,255,.85); }

/* ---------- lists of documents / issues ---------- */
.doclist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.doclist li { border-bottom: 1px solid var(--line); }
.doclist a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem;
  padding: 1.05rem .25rem; text-decoration: none; flex-wrap: wrap;
}
.doclist a:hover { background: var(--cream); }
.doclist__title { font-weight: 600; color: var(--ink); }
.doclist a:hover .doclist__title { color: var(--red); }
.doclist__meta { font-size: .88rem; color: var(--muted); }

/* ---------- roster ---------- */
.roster { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); list-style: none; padding: 0; margin: 0; }
.roster li { border-left: 3px solid var(--navy); padding: .3rem 0 .3rem 1rem; }
.roster__name { display: block; font-weight: 700; }
.roster__role { display: block; font-size: .92rem; color: var(--muted); }

/* ---------- people ---------- */
.people {
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.people--single { grid-template-columns: repeat(auto-fit, minmax(210px, 240px)); }
.person { margin: 0; }
.person__photo {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top center;
  background: var(--cream); border-bottom: 4px solid var(--red);
}
.person__photo--none {
  display: flex; align-items: center; justify-content: center;
  background: var(--navy);
}
.person__photo--none img { width: 46%; height: auto; border-radius: 50%; opacity: .45; }
.person__body { display: block; padding-top: 1rem; }
.person__name { display: block; font-family: var(--serif); font-size: 1.2rem; font-weight: 700; line-height: 1.2; }
.person__role { display: block; font-weight: 600; font-size: .92rem; color: var(--red); margin-top: .25rem; }
.person__state { display: block; font-size: .88rem; color: var(--muted); margin-top: .15rem; }

.statelist { columns: 3 200px; column-gap: 2.5rem; list-style: none; padding: 0; margin: 0; }
.statelist li { break-inside: avoid; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.statelist strong { display: block; }
.statelist span { font-size: .9rem; color: var(--muted); }

/* ---------- document layout with sticky contents ---------- */
.doc { display: block; }

@media (min-width: 1000px) {
  .doc {
    display: grid;
    grid-template-columns: 232px minmax(0, 1fr);
    gap: 3.5rem;
    /* Columns must stretch to the row height, otherwise the contents column
       ends early and position:sticky has nothing left to stick within. */
    align-items: stretch;
  }
  .doc > .toc { height: 100%; }
  .doc .prose { max-width: 72ch; }
}

.toc__handle { display: none; }

.toc__inner {
  position: sticky;
  top: calc(var(--header-h, 5rem) + 1.25rem);
  max-height: calc(100vh - var(--header-h, 5rem) - 3rem);
  overflow-y: auto;
  padding-right: .5rem;
  border-left: 2px solid var(--line);
}
.toc__group {
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .14em; color: var(--muted);
  margin: 1.5rem 0 .4rem; padding-left: 1rem;
}
.toc__group:first-child { margin-top: 0; }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0; }
.toc a {
  display: block; padding: .3rem 0 .3rem 1rem; margin-left: -2px;
  border-left: 2px solid transparent;
  font-size: .88rem; line-height: 1.35; color: var(--muted);
  text-decoration: none;
}
.toc a:hover { color: var(--navy); border-left-color: var(--line); }
.toc a.is-current { color: var(--red); font-weight: 700; border-left-color: var(--red); }

/* Below the sidebar breakpoint the contents collapse behind a toggle. */
@media (max-width: 999px) {
  .toc__handle {
    display: block; cursor: pointer; user-select: none;
    border: 1px solid var(--line); border-top: 4px solid var(--red);
    background: var(--cream); padding: .9rem 1.1rem;
    font-weight: 700; font-size: .95rem; color: var(--navy);
    margin-bottom: 1.75rem;
  }
  .toc__handle::after { content: " \25be"; }
  .toctoggle:checked ~ .toc__handle::after { content: " \25b4"; }
  .toc { display: none; margin-bottom: 2rem; }
  .toctoggle:checked ~ .toc { display: block; }
  .toc__inner {
    position: static; max-height: none; overflow: visible;
    border-left: 0; padding: 0;
    columns: 2 200px; column-gap: 2rem;
  }
  .toc__group { break-after: avoid; padding-left: 0; }
  .toc ul { break-inside: avoid; margin-bottom: 1rem; }
  .toc a { padding-left: 0; border-left: 0; }
  .toc a.is-current { border-left: 0; }
}

/* ---------- links directory ---------- */
.jumpnav {
  display: flex; flex-wrap: wrap; gap: .5rem;
  padding-bottom: 2.5rem; margin-bottom: 2.5rem; border-bottom: 1px solid var(--line);
}
.jumpnav a {
  font-size: .85rem; font-weight: 600; text-decoration: none;
  padding: .4rem .8rem; border: 1px solid var(--line); border-radius: 2px; color: var(--navy);
}
.jumpnav a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.linkgroup { margin-bottom: 3rem; }
.linkgroup h2 { font-size: 1.5rem; padding-bottom: .5rem; border-bottom: 3px solid var(--red); display: inline-block; }
.linkgrid {
  list-style: none; margin: 1.2rem 0 0; padding: 0;
  display: grid; gap: .1rem 2rem; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}
.linkgrid li { padding: .5rem 0; border-bottom: 1px solid var(--line); }
.linkgrid a { text-decoration: none; font-weight: 600; font-size: .95rem; }

/* ---------- state contacts ---------- */
.contacts {
  list-style: none; margin: 0 0 1.5rem; padding: 0;
  display: grid; gap: .1rem 2rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.contacts li {
  display: grid; grid-template-columns: minmax(6.5rem, 42%) 1fr;
  gap: 1rem; align-items: baseline;
  padding: .7rem 0; border-bottom: 1px solid var(--line);
}
.contacts__state { font-weight: 700; }
.contacts__name { color: var(--muted); font-size: .95rem; }

/* ---------- social links (icon only) ---------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.social { list-style: none; margin: 0 0 1.15em; padding: 0; display: flex; gap: .6rem; }
.social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}
.social__icon { flex: none; }

/* bordered squares, used on the contact page */
.social--buttons a {
  border: 1px solid var(--line); border-radius: 2px;
  color: var(--navy); background: var(--white);
}
.social--buttons a:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

/* bare icons, used in the footer */
.social--inline a { color: rgba(255,255,255,.75); width: 34px; height: 34px; }
.social--inline a:hover { color: #fff; }

/* ---------- postal address ---------- */
.addr { font-style: normal; margin: 0 0 1.15em; }
.addr span { display: block; }
.addr span:first-child { font-weight: 700; }
.duespanel .addr, .foot .addr { margin-bottom: 0; }
.duespanel .addr span:first-child { font-weight: 700; color: #fff; }

/* ---------- dues panel (featured payment path) ---------- */
.duespanel {
  background: var(--navy); color: #fff;
  padding: clamp(1.75rem, 4vw, 2.5rem); margin: 0 0 2.5rem;
  border-top: 5px solid var(--red);
}
.duespanel h2 { color: #fff; margin-top: 0 !important; margin-bottom: .35em; }
.duespanel p { color: rgba(255,255,255,.9); }
.duespanel__price {
  display: block; font-family: var(--serif); line-height: 1;
  font-size: clamp(2.5rem, 6vw, 3.5rem); color: #fff; margin-bottom: .3rem;
}
.duespanel__price small { font-size: 1rem; font-family: var(--sans); color: rgba(255,255,255,.75); font-weight: 600; }
.duespanel .btn--red { font-size: 1.05rem; padding: .95rem 2rem; }
.duespanel__alt {
  margin: 1.6rem 0 0; padding-top: 1.4rem;
  border-top: 1px solid rgba(255,255,255,.2);
  font-size: .95rem; color: rgba(255,255,255,.8);
}
.duespanel__alt a { color: #fff; }
.duespanel__alt :last-child { margin-bottom: 0; }

.pathnote {
  margin: 0 0 1.6rem; color: var(--muted); font-size: .97rem;
}

/* ---------- callout ---------- */
.callout {
  background: var(--cream); border-left: 5px solid var(--red);
  padding: 1.4rem 1.6rem; margin: 1.5rem 0;
}
.callout :last-child { margin-bottom: 0; }
.callout h3 { margin-top: 0; font-family: var(--serif); text-transform: none; letter-spacing: 0; color: var(--navy); }

/* ---------- CTA band ---------- */
.cta {
  background: var(--red); color: #fff; padding: clamp(2.25rem, 4.5vw, 3.25rem) 0; text-align: center;
}
.cta h2 { color: #fff; margin-bottom: .4em; }
.cta p { max-width: 56ch; margin-inline: auto; color: rgba(255,255,255,.95); font-size: 1.1rem; }
.cta__actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-top: 1.8rem; }
.cta .btn--onDark:hover { color: var(--red); }

/* ---------- forms ---------- */
.form { max-width: 40rem; }
.form__row { margin-bottom: 1.2rem; }
.form__row label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .4rem; }
.form input, .form select, .form textarea {
  width: 100%; padding: .75rem .85rem; font: inherit; font-size: 1rem;
  border: 1px solid var(--line); border-radius: 2px; background: var(--white); color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--navy); outline: 2px solid var(--navy); outline-offset: 0; }
.form__two { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.form__note { font-size: .9rem; color: var(--muted); }

/* ---------- footer ---------- */
.foot { background: var(--navy-deep); color: rgba(255,255,255,.82); padding-top: clamp(2.25rem, 4.5vw, 3.25rem); font-size: .95rem; }
.foot__inner {
  max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gap);
  display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.foot__brand img { border-radius: 50%; margin-bottom: 1rem; }
.foot__estd { max-width: 26ch; color: rgba(255,255,255,.7); }
.foot__col h2 {
  font-family: var(--sans); font-size: .74rem; text-transform: uppercase;
  letter-spacing: .16em; color: #fff; margin-bottom: 1rem;
}
.foot__col ul { list-style: none; margin: 0; padding: 0; }
.foot__col li { margin-bottom: .6rem; }
.foot a { color: rgba(255,255,255,.82); text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot__social { margin-top: 1.2rem !important; display: flex; gap: 1rem; }
.foot__legal {
  margin-top: 2.25rem; border-top: 1px solid rgba(255,255,255,.16);
  padding: 1.25rem var(--gap) 2rem;
  max-width: var(--wrap); margin-inline: auto;
  font-size: .82rem; color: rgba(255,255,255,.6);
}
.foot__legal p { margin-bottom: .5em; }

@media print {
  .masthead, .foot, .cta, .hero__bg { display: none; }
}
