/* northcarolinavoterregistration.com — hand-authored. Palette and type are this site's own; the skeleton
   is shared across the seven-state network on purpose (siblings, not clones). */
:root{
  --paper:#eef1f4; --ink:#1d2840; --muted:#5e6a80; --accent:#a91e2c;
  --accent-ink:#ffffff; --wash:#e2e7ee; --line:#d3d9e2;
  --display:'Avenir Next', 'Segoe UI', system-ui, sans-serif; --body:Georgia, 'Times New Roman', serif; --max:64rem;
}
*{box-sizing:border-box;margin:0}
[hidden]{display:none!important}
html{scroll-behavior:smooth}
body{background:var(--paper);color:var(--ink);font:17px/1.65 var(--body);-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:var(--accent)}
h1,h2,h3,.brand{font-family:var(--display);line-height:1.12}
h1{font-size:clamp(2.1rem,5vw,3.4rem);margin:0 0 1rem}
h2{font-size:clamp(1.5rem,3vw,2.1rem);margin:0 0 1rem}
h3{font-size:1.1rem;margin:0 0 .5rem}

.masthead{position:relative;display:flex;align-items:center;gap:1.5rem;max-width:var(--max);margin:0 auto;padding:1.1rem 1.25rem;border-bottom:1px solid var(--line)}
.brand{font-weight:700;font-size:1.05rem;letter-spacing:.01em;white-space:nowrap}
.brand span{color:var(--muted);font-weight:400}
.site-nav{display:flex;gap:1.1rem;flex-wrap:wrap;font-size:.92rem;margin-right:auto}
.site-nav a{color:var(--ink);text-decoration:none;border-bottom:2px solid transparent}
.site-nav a:hover{border-bottom-color:var(--accent)}

/* The hamburger: a native <details> disclosure, so it needs no script to work.
   Hidden on desktop; on mobile it replaces the inline nav and the header CTA. */
.menu{display:none;margin-left:auto}
.menu summary{list-style:none;cursor:pointer;display:flex;flex-direction:column;gap:5px;padding:.6rem .25rem}
.menu summary::-webkit-details-marker{display:none}
.menu summary span{display:block;width:22px;height:2px;background:var(--ink);border-radius:2px}
.menu[open] summary span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.menu[open] summary span:nth-child(2){opacity:0}
.menu[open] summary span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
.menu nav{position:absolute;left:0;right:0;top:100%;z-index:10;background:var(--paper);
  border-bottom:1px solid var(--line);box-shadow:0 12px 24px rgb(0 0 0 / .08)}
.menu nav a{display:block;padding:.95rem 1.25rem;color:var(--ink);text-decoration:none;
  border-top:1px solid var(--line);font-size:1rem}
.menu nav a:active{background:var(--wash)}
.menu .menu-cta{color:var(--accent);font-weight:700}

main{max-width:var(--max);margin:0 auto;padding:0 1.25rem 4rem}
section{margin:3.5rem 0}
.hero{margin-top:3rem}
.lede{font-size:1.18rem;max-width:44rem;color:var(--muted)}
.hero-actions{display:flex;gap:.9rem;flex-wrap:wrap;margin-top:1.6rem}

.btn{display:inline-block;background:var(--accent);color:var(--accent-ink);font-weight:650;
  padding:.85rem 1.4rem;border-radius:8px;text-decoration:none}
.btn:hover{filter:brightness(1.08)}
.btn-small{padding:.5rem .9rem;font-size:.9rem}
.btn-ghost{display:inline-block;border:2px solid var(--line);color:var(--ink);font-weight:600;
  padding:.8rem 1.3rem;border-radius:8px;text-decoration:none}
.btn-ghost:hover{border-color:var(--accent)}

/* Full-width strip under the nav — announcement, not a hero component. */
.next-election{display:block;background:var(--wash);border-bottom:1px solid var(--line);
  color:var(--ink);text-decoration:none;font-size:.95rem;text-align:center;padding:.55rem 1.25rem}
.next-election strong{color:var(--accent);font-family:var(--display)}
.next-election:hover strong{text-decoration:underline}

.section-kicker{font-size:.8rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);margin-bottom:.4rem}
.cards{display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(15rem,1fr));margin:1.5rem 0}
.card{background:var(--wash);border:1px solid var(--line);border-radius:10px;padding:1.25rem}
.card a{display:block;margin-top:.6rem;font-weight:600;text-decoration:none}
.card a:hover{text-decoration:underline}
.card-accent{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent) inset}
.note{max-width:46rem;color:var(--muted);font-size:.95rem}

.statehouse{margin:3rem 0 0}
.statehouse img{width:100%;border-radius:10px}
.statehouse figcaption{font-size:.8rem;color:var(--muted);margin-top:.5rem}

.election{display:flex;align-items:baseline;gap:1rem;flex-wrap:wrap;padding:1rem 0;border-bottom:1px solid var(--line)}
.election-date{font-family:var(--display);font-size:1.7rem;font-weight:700}
.election-type{color:var(--muted)}
.uocava{margin-top:1rem;font-size:.92rem}
.uocava summary{cursor:pointer;font-weight:600}
.uocava ul{margin:.6rem 0 0 1.2rem;color:var(--muted)}
.credit,.fallback{font-size:.92rem;color:var(--muted);max-width:46rem}
#lt-bills{margin:1.25rem 0}
.bill{padding:1.1rem 0;border-bottom:1px solid var(--line)}
.bill-meta{font-size:.82rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--accent)}
/* Statutory titles can run to whole paragraphs (Pennsylvania's do); four lines is
   plenty — the LegiTrack link under each bill carries the full text. */
.bill-title{font-size:1.05rem;margin:.3rem 0;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.bill-action{font-size:.9rem;color:var(--muted)}
.bill a{font-weight:600;font-size:.95rem;text-decoration:none}
.bill a:hover{text-decoration:underline}
.updated{font-size:.8rem;color:var(--muted);margin-top:.6rem}

.resources{list-style:none;padding:0;display:grid;gap:.4rem .8rem;grid-template-columns:repeat(auto-fit,minmax(16rem,1fr));margin:1.25rem 0}
.resources a{display:block;padding:.65rem .9rem;background:var(--wash);border:1px solid var(--line);
  border-radius:8px;color:var(--ink);text-decoration:none;font-weight:550}
.resources a:hover{border-color:var(--accent);color:var(--accent)}

.about{background:var(--wash);border:1px solid var(--line);border-radius:10px;padding:1.75rem;max-width:52rem}
.about p+p{margin-top:.8rem}

footer{border-top:1px solid var(--line);margin-top:2rem}
.footer-links{display:flex;gap:1.4rem;flex-wrap:wrap;max-width:var(--max);margin:0 auto;padding:1.5rem 1.25rem 0;font-size:.92rem}
.disclosure{max-width:var(--max);margin:0 auto;padding:1rem 1.25rem 2rem;font-size:.82rem;color:var(--muted)}
.disclosure a{color:var(--muted)}

/* layout variants — the figure is a hero child, so each variant states exactly
   what shares space with what. Layout a: copy, then photo full-width below.
   Layout b: copy left, photo right. Layout c: photo banner above the copy. */
.layout-b .hero{display:grid;grid-template-columns:1.15fr .85fr;gap:2.5rem;align-items:center}
.layout-b .statehouse{margin:0}
@media (max-width:52rem){.layout-b .hero{display:block}.layout-b .statehouse{margin:2rem 0 0}}
.layout-c .hero{display:flex;flex-direction:column}
.layout-c .statehouse{order:-1;margin:0 0 2.25rem}
.layout-c .statehouse img{max-height:340px;object-fit:cover}

/* Mobile masthead: burger replaces the inline nav and header CTA. 60rem, not
   phone-width — between 768 and ~960px the full row no longer fits, and a wrapped
   two-row masthead is exactly what the drawer replaces. LAST in the skeleton so
   these display overrides outrank .btn/.site-nav base rules at equal specificity. */
@media (max-width:60rem){
  .masthead .site-nav,.masthead .masthead-cta{display:none}
  .masthead .menu{display:block}
  /* northcarolinavoterregistration.com is 30 characters of nowrap wordmark —
     scale with the viewport instead of overflowing it. */
  .masthead .brand{font-size:clamp(.78rem,3vw,1.05rem)}
}

/* northcarolinavoterregistration.com voice */
h2{text-transform:uppercase;letter-spacing:.08em;font-size:1.05rem} h1{font-weight:700}
