:root{
  --cardinal:#7a0026;
  --cardinal-700:#5a001c;
  --gold:#caa76a;
  --sand:#f7f3ee;
  --ink:#1c1c1c;
  --success:#2e7d32;
  --warning:#b26a00;
  --radius:18px;
  --shadow:0 10px 24px rgba(0,0,0,.08);
}

/* Base */
*{box-sizing:border-box}
html,body{margin:0;padding:0;font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,Apple Color Emoji,Segoe UI Emoji;color:var(--ink);background:var(--sand)}
img{max-width:100%;height:auto}

/* Links + Focus */
a{color:var(--cardinal);text-decoration:none}
a:hover{text-decoration:underline}
:focus-visible{outline:3px solid var(--gold);outline-offset:2px}

/* Accessibility helpers */
.skip-link{
  position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden
}
.skip-link:focus{position:fixed;left:16px;top:16px;width:auto;height:auto;background:#fff;padding:8px 12px;border-radius:10px;z-index:1000}

/* Layout */
.container{max-width:1100px;margin:0 auto;padding:20px}
.flex{display:flex;gap:12px;align-items:center;flex-wrap:wrap}

/* Nav */
.nav{position:sticky;top:0;background:#fff;box-shadow:var(--shadow);z-index:20;border-bottom:1px solid #eadfda}
.nav .inner{display:flex;align-items:center;gap:14px;justify-content:space-between;max-width:1100px;margin:0 auto;padding:10px 20px}
.brand{display:flex;align-items:center;gap:10px}
.brand .logo{font-size:28px}
.brand .title{font-weight:800;letter-spacing:.3px;color:var(--cardinal)}
.brand .tag{font-weight:700;font-size:12px;color:#6b5d45;background:#f9f5ef;border:1px solid #eadfda;padding:2px 8px;border-radius:999px}

.brand{
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}

.brand:hover{
  text-decoration: none;
  opacity: 0.92;
}

.brand:visited{
  color: inherit;
}

/* Mobile menu */
.hamburger{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:10px;border:1px solid #eadfda;background:#fff;cursor:pointer}
.hamburger:hover{background:#fffaf4}
.hamburger:focus-visible{outline:3px solid var(--gold)}

.navlinks{display:flex;gap:14px;flex-wrap:wrap}
.navlinks a{background:var(--sand);padding:8px 12px;border-radius:999px;border:1px solid #e9dfd6}
.navlinks a:hover{background:#fff}

/* Collapse on small screens */
@media (max-width: 820px){
  .nav .inner{flex-wrap:wrap}
  .navlinks{display:none;width:100%;padding:8px 0}
  .navlinks.open{display:flex}
}

/* Hero */
.hero{
  background:linear-gradient(180deg,#fff,#fff0 60%),radial-gradient(1200px 400px at 50% -50%,#ffe9d1 0%,#fff0 70%);
  padding:60px 0;border-bottom:1px solid #eadfda
}
.hero .wrap{display:grid;grid-template-columns:1.2fr .8fr;gap:24px;align-items:center}
.hero h1{font-size:clamp(28px,4vw,44px);line-height:1.1;margin:0 0 12px}
.badge{display:inline-flex;gap:8px;align-items:center;background:#fff;border:1px solid #eadfda;border-radius:999px;padding:6px 10px;font-weight:600;color:var(--cardinal)}
.cta{display:flex;gap:12px;flex-wrap:wrap;margin-top:14px}
.button{display:inline-flex;align-items:center;gap:8px;background:var(--cardinal);color:#fff;padding:10px 14px;border-radius:12px;border:2px solid var(--cardinal);font-weight:700;cursor:pointer}
.button.alt{background:#fff;color:var(--cardinal);border-color:var(--cardinal)}
.button:hover{filter:brightness(1.05)}
.badgeline{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}

/* Card grid */
.card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px;margin:26px 0}
.card{background:#fff;border:1px solid #eadfda;border-radius:var(--radius);box-shadow:var(--shadow);padding:16px}
.kicker{font-weight:800;color:var(--cardinal);letter-spacing:.3px}
.h2{font-size:22px;margin:6px 0 10px}
.small{font-size:14px;color:#555}

.section{margin:36px 0}
.section h2{font-size:26px;margin:0 0 10px}
.section .desc{color:#555;margin-bottom:6px}

/* Banners & tags */
.banner{background:#fff;border:2px dashed var(--gold);border-radius:16px;padding:12px 14px;margin:12px 0}
.tag{display:inline-flex;align-items:center;gap:6px;background:#f9f5ef;border:1px solid #eadfda;border-radius:999px;padding:4px 8px;font-weight:600;color:#6b5d45}

/* Forms */
input,textarea,select{width:100%;padding:10px;border-radius:10px;border:1px solid #e0d6cd;background:#fff}
label{font-weight:700;font-size:14px}
form .row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
form .row-3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px}
form .row-1{display:grid;grid-template-columns:1fr;gap:12px}
hr{border:none;border-top:1px solid #eadfda;margin:16px 0}

/* Scroll cards (Advice/Shoutouts) */
.scroll{max-height:320px;overflow:auto;scrollbar-gutter:stable both-edges}
.scroll::-webkit-scrollbar{width:10px}
.scroll::-webkit-scrollbar-thumb{background:#e0d6cd;border-radius:10px}
.empty{padding:18px;border:2px dashed #e0d6cd;border-radius:12px;background:#fff}

/* Poll */
.poll .flex{gap:10px;flex-wrap:wrap}
.option-btn{white-space:nowrap}
#poll-countdown{margin:2px 0 8px 0;opacity:.85} /* lives between question and buttons */

/* Results bars */
.barwrap{height:8px;background:#f2ebe3;border-radius:999px;overflow:hidden;margin:6px 0 12px;border:1px solid #eadfda}
.bar{height:100%;width:0;background:linear-gradient(90deg,var(--cardinal),var(--cardinal-700));transition:width .6s ease}
#count-a,#count-b{font-variant-numeric:tabular-nums}

/* Footer */
.footer{margin-top:40px;border-top:1px solid #eadfda;background:#fff}
.footer .inner{max-width:1100px;margin:0 auto;padding:24px;color:#555;font-size:14px}

/* Utilities */
.success{background:#e8f5e9;border:1px solid #c8e6c9}
.notice{background:#fff3cd;border:1px solid #ffeeba;padding:8px 12px;border-radius:10px}
.copy-btn{cursor:pointer}
.club-card .title{font-weight:800;font-size:20px;margin:2px 0}
.club-card .meta{color:#666;font-size:14px}

/* Meme */
.meme{margin-top:12px}
.meme img{
  display:block;
  width:100%;
  height:auto;
  max-height:340px;      /* keep it modest */
  object-fit:contain;    /* no cropping; just scale down */
  border:1px solid #eadfda;
  border-radius:12px;
}
.meme figcaption{text-align:center;color:#666;margin-top:8px}

/* Responsive hero stack */
@media (max-width: 900px){
  .hero .wrap{grid-template-columns:1fr}
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  *{animation-duration:0.001ms !important;animation-iteration-count:1 !important;transition-duration:0.001ms !important;scroll-behavior:auto !important}
}

/* --- Navbar visibility + placement (minimal, theme-safe) --- */

/* Hide hamburger on desktop */
@media (min-width: 821px){
  .nav .hamburger { display: none !important; }
}

/* On mobile, push hamburger to the right; links drop below when opened */
@media (max-width: 820px){
  .nav .hamburger { margin-left: auto; }
}

/* Footer: quiet and split layout */
.footer .inner{max-width:1100px;margin:0 auto;padding:24px;color:#666;font-size:14px}
.footer .inner p{margin:6px 0}
.footer a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.footer a:hover{text-decoration-thickness:2px}

.foot-top{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.foot-left{flex:1;min-width:260px;max-width:720px}
.foot-right{margin-left:auto;text-align:right;white-space:nowrap}
.foot-links-inline span{padding:0 8px;color:#999}

.subfooter{
  display:flex;justify-content:space-between;align-items:center;
  padding-top:10px;border-top:1px solid #eadfda;margin-top:8px;color:#777
}

/* Mobile stack */
@media (max-width:700px){
  .foot-top{flex-direction:column;gap:10px}
  .foot-right{text-align:left;white-space:normal}
  .foot-links-inline span{padding:0 6px}
  .subfooter{flex-direction:column;gap:6px;align-items:flex-start}
}

/* Bigger title + bigger logo, scoped to this card only */
.club--big .title{
  font-size: 1.5rem;        /* was ~1rem-ish */
  line-height: 1.15;
  letter-spacing: 0.2px;
}

.club--big .club-logo{
  width: 104px;             /* bump from 56–64px */
  height: 104px;
  object-fit: contain;
  border-radius: 14px;
  background: #fff;         /* gives the mark a clean tile */
  padding: 6px;             /* optional; remove if your PNG is tightly cropped */
  box-shadow: 0 0 0 1px rgba(0,0,0,.06) inset;
}

/* Scale up a touch on wider screens */
@media (min-width: 640px){
  .club--big .title{ font-size: 1.7rem; }
  .club--big .club-logo{ width: 120px; height: 120px; }
}

/* --- About page glow-up --- */
.hero.is-about .badge { opacity: .9 }
.hero.is-about .decor {
  display:block; height:8px; border-radius:999px;
  background: linear-gradient(90deg,var(--accent, #8ec5ff),transparent 60%),
              linear-gradient(90deg,transparent, var(--accent, #8ec5ff) 40%);
  filter:saturate(120%); margin-top:14px;
}

/* Cards: lift + subtle separators */
.card.emph { border:1px solid var(--border, #2b2b2b); box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.card .subtle { color: var(--muted, #9aa0a6) }

/* Icon rows without new markup */
.badgeline.tight .tag { padding:.35rem .55rem; font-size:.85rem }

/* 3-up feature row that collapses nicely */
.grid-3.features { gap: 14px }
.grid-3.features > div {
  border:1px dashed var(--border, #2b2b2b); border-radius:14px; padding:14px 16px;
}
.grid-3.features h3 { margin: 0 0 6px }
.grid-3.features p { margin:0; font-size:.95rem }

/* Timeline stripe (for “update cadence”) */
.timeline {
  position:relative; padding-left:18px; margin:8px 0;
}
.timeline::before {
  content:""; position:absolute; left:4px; top:4px; bottom:4px; width:2px;
  background: linear-gradient(var(--accent, #8ec5ff), transparent);
  border-radius:2px;
}
.timeline li { margin:10px 0 10px 0; list-style:none }
.timeline li::marker{ content:"" }
.timeline .dot{
  position:absolute; left:-2px; width:10px; height:10px; border-radius:50%;
  background: var(--accent, #8ec5ff); transform: translate(-50%,6px);
}

/* Callout block for disclaimer/privacy one-liners */
.callout {
  border-left:4px solid var(--accent, #8ec5ff);
  background: rgba(142,197,255,.08);
  padding:12px 14px; border-radius:10px; margin:8px 0;
}

/* Tiny “last updated” pill */
.stamp { display:inline-block; padding:.25rem .5rem; border-radius:999px;
  border:1px solid var(--border, #2b2b2b); font-size:.8rem; color:var(--muted, #9aa0a6) }

  /* Visually subtle, accessible verification badge */
.meta.verified {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .2rem .5rem;
  border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
  background: color-mix(in srgb, currentColor 6%, transparent);
  border-radius: 999px;
  font-weight: 600;
}

/* screen-reader-only helper if you don’t have one yet */
.sr-only {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden; clip: rect(1px,1px,1px,1px);
  white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* Alert box */
.alert{
  position: relative;
  box-sizing: border-box;
  width: 100%;
  padding: 14px 48px;          /* extra room so the close button doesn't overlap text */
  margin: 0 0 15px;
  background: #a00000;         /* red */
  color: #fff;
  text-align: center;          /* centers the message */
  font: 16px/1.4 system-ui, sans-serif;
  border-radius: 0px;
}

/* Close button: don't let it nuke centering */
.closebtn{
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  padding: 4px 8px;
  background: transparent;
  border: 0;
  color: #fff;
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: opacity .2s ease;
}

.closebtn:hover { opacity: .7; }

/* Respect users who dislike motion */
@media (prefers-reduced-motion: reduce){
  .closebtn { transition: none; }
}

/* Center the caption text */
.meme figcaption,
.meme-cap { text-align: center; }

/* Tiny, tasteful links under the credit line */
.meme-links { margin-top: 6px; }
.micro { font-size: 8px; opacity: 0.9; }
.subtle-link { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.subtle-link:hover { opacity: 1; text-decoration-thickness: 2px; }

/* Optional: keep long links from wrapping weirdly on mobile */
.meme-links a { white-space: nowrap; }

/* Mobile: force centering even if a parent is flexing weird */
@media (max-width: 640px) {
  .meme {
    max-width: 100%;
    margin: 0 12px 16px;
    display: grid;               /* grid + place-items centers contents */
    place-items: center;
  }

  .meme figcaption,
  .meme-cap {
    width: 100%;
    padding: 8px 6px 0;
    font-size: 14px;
    line-height: 1.35;
    text-align: center !important;  /* hard stop: stay centered */
  }

  /* Stack links and center each one */
  .meme-links {
    margin-top: 8px;
    display: grid;
    gap: 6px;
    justify-items: center;
  }
  .meme-links a {
    font-size: 13px;
    padding: 6px 8px;
    text-align: center;
  }
  /* Hide the dot divider when stacked */
  .meme-links span[aria-hidden="true"] { display: none; }
}

/* Micro-phones: make links full width, still centered */
@media (max-width: 360px) {
  .meme { margin: 0 8px 14px; }
  .meme-links a { width: 100%; }
}

.events { margin-block: 1.5rem 2rem; }
.event-list { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
@media (max-width: 800px){ .event-list { grid-template-columns: 1fr; } }

.event-card { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--border, #ddd); border-radius: 12px; background: var(--card, #1111); backdrop-filter: blur(6px); }
.event-date { text-align: center; line-height: 1; }
.event-date-m { font-size: 12px; text-transform: uppercase; opacity: 0.8; }
.event-date-d { font-size: 24px; font-weight: 700; }
.event-title { margin: 0 0 2px 0; font-size: 16px; }
.event-meta { font-size: 12px; opacity: 0.8; display: flex; gap: 6px; flex-wrap: wrap; }
.event-tags { margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-size: 11px; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--border,#ddd); background: var(--chip,#fff1); }

.event-actions { margin-top: 8px; display: flex; gap: 10px; flex-wrap: wrap; }
.btn-link { font-size: 12px; text-decoration: underline; }
.event-empty { padding: 12px; border: 1px dashed var(--border,#ccc); border-radius: 12px; font-size: 14px; opacity: 0.9; }

/* ===== Social Events: mobile-first polish ===== */

/* 1) Mobile-first layout */
.section.events {
  padding-inline: 12px;           /* breathing room on narrow screens */
}
.section.events .event-list {
  display: grid;
  grid-template-columns: 1fr;     /* single column by default */
  gap: 12px;
}

/* 2) Card internals */
.section.events .event-card {
  display: grid;
  grid-template-columns: 56px 1fr;  /* smaller date pill on phones */
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  box-sizing: border-box;
  overflow: hidden;               /* no horizontal scroll nastiness */
}

.section.events .event-date {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
}

.section.events .event-date{
  border:1px solid rgba(0,0,0,.08);
  background:linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.6));
  border-radius:10px;
}

.section.events .event-date-m {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  opacity: 0.85;
}
.section.events .event-date-d {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1;
}

/* Titles wrap nicely; no layout explosions */
.section.events .event-title {
  margin: 2px 0 4px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

/* Meta wraps and stays legible */
.section.events .event-meta {
  font-size: 0.92rem;
  line-height: 1.35;
  opacity: 0.9;
  word-wrap: break-word;
}

/* Actions are chunky enough to tap */
.section.events .event-actions {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.section.events .btn-link,
.section.events .chip {
  min-height: 34px;               /* finger-sized */
  padding: 4px 10px;
  line-height: 1.2;
  -webkit-tap-highlight-color: transparent;
}

/* 3) Slight bumps at wider viewports */
@media (min-width: 480px) {
  .section.events .event-card {
    grid-template-columns: 64px 1fr;
    padding: 14px;
  }
  .section.events .event-date { width: 64px; height: 64px; }
  .section.events .event-date-d { font-size: 1.25rem; }
}

@media (min-width: 640px) {
  .section.events .event-list {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
  }
}

@media (min-width: 1024px) {
  .section.events .event-list {
    grid-template-columns: repeat(3, minmax(260px, 1fr));
    gap: 14px;
  }
}

/* 4) Kill right-hugging and overflow inherited from rogue parents */
.section.events {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;   /* stay centered */
  text-align: initial;
  display: block;
}
.section.events, .section.events * { float: none; }

/* Weekday bubble: compact, readable, not stretchy */
.section.events .chip-day{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:26px;
  min-height:0;           /* override global chip min-height */
  padding:2px 10px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.16);
  background:#fff;        /* higher contrast on your sand background */
  font-size:.8rem;
  font-weight:700;
  letter-spacing:.02em;
  line-height:1;
  white-space:nowrap;
}
.section.events .event-actions .chip-day{ margin-left:2px; }

/* Demote the poll visually */
.card.minor { opacity: .9; }
.card.minor .h2 { font-size: 1rem; line-height: 1.4; }
.card.minor .kicker { font-size: .9rem; }
#poll-block summary { cursor: pointer; list-style: none; }
#poll-block[open] { opacity: 1; }
#poll-options .button { padding: .45rem .75rem; }

/* Optional: give the discussion meta chips a little breathing room */
.card .meta .tag { margin-right: .25rem; }

  /* Event actions row: tighter and aligned */
  .events .event-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
  }

  /* RSVP chip: calmer than the big primary button */
  .chip-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 600;
    line-height: 1;
    border: 1.5px solid currentColor;
    color: #6b0f1f;              /* deep red that plays nice on light cards */
    background: transparent;
    text-decoration: none;
    box-shadow: none;
    transition: background-color .15s ease, transform .05s ease;
  }
  .chip-cta:hover { background: rgba(107,15,31,0.08); }
  .chip-cta:active { transform: translateY(1px); }
  .chip-cta:focus-visible { outline: 2px solid #6b0f1f; outline-offset: 2px; }

  /* Advice page layout */
.page.advice-page {
  padding: 3rem 1.5rem 4rem;
}

.hero-advice .inner {
  max-width: 900px;
  margin: 0 auto;
}

.hero-advice .hero-head .kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  opacity: 0.8;
}

.hero-advice .hero-head h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 0.4rem;
}

.hero-advice .hero-head .sub {
  max-width: 36rem;
  line-height: 1.5;
  opacity: 0.9;
}

/* Meta section: prompt + filters + sort */
.advice-meta {
  margin-top: 1.75rem;
  margin-bottom: 1.5rem;
}

.advice-meta .prompt {
  font-size: 0.95rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.75rem;
  border: 1px dashed rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(6px);
  margin-bottom: 1rem;
}

.advice-meta .controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}

/* Filters / chips */
#advice-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

#advice-filters .filter {
  border: 1px solid rgba(0,0,0,0.16);
  background: rgba(255,255,255,0.8);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: background 120ms ease, border-color 120ms ease, transform 80ms ease;
}

#advice-filters .filter:hover {
  border-color: rgba(0,0,0,0.3);
  transform: translateY(-1px);
}

#advice-filters .filter.active {
  background: #f4e5ff;
  border-color: #c58cff;
}

/* Sort dropdown */
.sort-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
}

.sort-wrap select {
  font-size: 0.9rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.18);
  background: rgba(255,255,255,0.9);
}

/* ===========================
   About page helpers
   =========================== */

/* Checklist list used on the About page (and anywhere else you want it) */
.checklist{
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.checklist li{
  position: relative;
  padding-left: 22px;
  line-height: 1.45;
}
.checklist li::before{
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 900;
  color: var(--success);
}

/* On-page table of contents */
.toc{
  background:#fff;
  border:1px solid #eadfda;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:14px 16px;
  margin: 18px 0;
}
.toc .toc-links{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:8px;
}
.toc .toc-links a{
  display:inline-flex;
  align-items:center;
  gap:6px;
  background:var(--sand);
  padding:8px 12px;
  border-radius:999px;
  border:1px solid #e9dfd6;
  font-weight:700;
  color:var(--cardinal);
}
.toc .toc-links a:hover{ background:#fff; text-decoration:none; }

/* Quick-start steps */
.steps{
  margin: 10px 0 0;
  padding-left: 18px;
}
.steps li{ margin: 8px 0; }

/* Stale stamp styling */
.stamp.stale{
  border-color: color-mix(in srgb, var(--warning), #000 20%);
  background: color-mix(in srgb, var(--warning) 12%, #fff 88%);
  color: #4a2a00;
}

/* Announcements in the index.html*/
.announce-list{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:14px;
}
.announce-item{
  border:1px solid rgba(255,255,255,.10);
  border-radius:16px;
  padding:14px 14px;
  background:rgba(255,255,255,.03);
}
.subtle{ opacity:.8; }

.challenge-timer{
  display:flex;
  gap:.75rem;
  align-items:center;
  margin-top:.75rem;
}

.challenge-timer .timer-label{
  font-size:.82rem;
  opacity:.75;
  margin-bottom:.1rem;
}

.challenge-timer .timer-value{
  font-size:.95rem;
  font-weight:600;
}

.ring{ display:block; }
.ring-bg{
  fill:none;
  stroke: rgba(0,0,0,.12);
  stroke-width: 6;
}
.ring-fg{
  fill:none;
  stroke: var(--cardinal, #b30738);
  stroke-width: 6;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 28px 28px;
  stroke-dasharray: 150.8; /* 2πr where r=24 -> ~150.8 */
  stroke-dashoffset: 150.8;
}

/* ===========================
   poll/challenge styling block
   =========================== */
   .roundup-note{
    margin: 6px 0 12px;
    color:#6a625b;
  }
  
  .poll{
    display:grid;
    gap:10px;
  }
  
  #poll-options{
    display:grid;
    grid-template-columns:repeat(2, minmax(0,1fr));
    gap:10px;
  }
  
  .option-btn{
    width:100%;
    justify-content:center;
    text-align:center;
    white-space:normal;
    min-height:52px;
    line-height:1.25;
  }
  
  #poll-countdown{
    display:inline-flex;
    align-items:center;
    width:fit-content;
    padding:6px 10px;
    border-radius:999px;
    background:#f9f5ef;
    border:1px solid #eadfda;
    color:#6b5d45;
  }
  
  #poll-results{
    margin-top:2px;
  }
  
  .poll-result-row{
    display:flex;
    justify-content:space-between;
    gap:12px;
    align-items:baseline;
  }
  
  .challenge-timer{
    padding-top:4px;
  }
  
  .challenge-timer .timer-text{
    display:grid;
    gap:2px;
  }
  
  .challenge-timer .timer-value{
    font-variant-numeric:tabular-nums;
  }
  
  @media (max-width: 640px){
    #poll-options{
      grid-template-columns:1fr;
    }
  }

/* =========================================================
   2026 editorial redesign
   ========================================================= */

:root{
  --cardinal:#8d0b24;
  --cardinal-dark:#690719;
  --paper:#fbf8f3;
  --paper-deep:#f1eee6;
  --sage:#e8eadf;
  --sage-dark:#697451;
  --clay:#b5684e;
  --ink:#1f211f;
  --muted:#62645f;
  --line:#d8d1c5;
  --white:#fff;
  --radius:16px;
  --shadow:0 18px 44px rgba(43,31,24,.08);
  --serif:Georgia,"Times New Roman",serif;
  --sans:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

html{scroll-behavior:smooth}
body{
  font-family:var(--sans);
  color:var(--ink);
  background:var(--paper);
  line-height:1.55;
}

button,
input,
textarea,
select{font:inherit}

a{color:var(--cardinal)}
a:hover{text-decoration-thickness:2px;text-underline-offset:3px}

:focus-visible{
  outline:3px solid #d5a739;
  outline-offset:3px;
}

.container{max-width:1220px;padding-inline:32px}
.sr-only{
  position:absolute!important;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

/* Shared 2026 header */
.site-nav{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,.97);
  border-top:5px solid var(--cardinal);
  border-bottom:1px solid var(--line);
  box-shadow:none;
  backdrop-filter:blur(12px);
}

.site-nav .inner{
  max-width:1280px;
  min-height:82px;
  padding:12px 32px;
}

.site-nav .brand{
  gap:12px;
  color:var(--ink);
}

.brand-mark{
  width:42px;
  height:42px;
  object-fit:contain;
}

.brand-copy{
  display:grid;
  gap:0;
  line-height:1.05;
}

.site-nav .brand .title{
  font-family:var(--serif);
  font-size:clamp(1.55rem,2vw,2rem);
  font-weight:700;
  letter-spacing:-.025em;
  color:var(--cardinal);
}

.brand-subtitle{
  margin-top:4px;
  font-size:.82rem;
  color:var(--muted);
}

.site-nav .navlinks{
  align-items:center;
  gap:38px;
}

.site-nav .navlinks a{
  position:relative;
  padding:10px 0;
  color:var(--ink);
  background:transparent;
  border:0;
  border-radius:0;
  font-weight:620;
  text-decoration:none;
}

.site-nav .navlinks a::after{
  content:"";
  position:absolute;
  left:0;
  right:100%;
  bottom:1px;
  height:2px;
  background:var(--cardinal);
  transition:right .2s ease;
}

.site-nav .navlinks a:hover::after,
.site-nav .navlinks a[aria-current="page"]::after{right:0}

.site-nav .hamburger{
  display:none;
  width:44px;
  height:44px;
  padding:10px;
  border:1px solid var(--line);
  border-radius:50%;
  background:var(--white);
  gap:4px;
  flex-direction:column;
}

.site-nav .hamburger span[aria-hidden="true"]{
  display:block;
  width:18px;
  height:2px;
  background:var(--ink);
}

/* Homepage */
.home-page .container{max-width:1280px}

.trust-strip{
  border-bottom:1px solid var(--line);
  background:var(--paper);
  color:#434541;
  font-size:.91rem;
}

.trust-strip .container{
  display:flex;
  justify-content:center;
  gap:28px;
  padding-block:11px;
}

.trust-strip span+span::before{
  content:"";
  display:inline-block;
  width:4px;
  height:4px;
  margin:0 14px 3px 0;
  border-radius:50%;
  background:var(--cardinal);
}

.home-hero{
  display:grid;
  grid-template-columns:minmax(0,.9fr) minmax(520px,1.15fr);
  align-items:stretch;
  max-width:1440px;
  min-height:560px;
  margin:0 auto;
  border-bottom:1px solid var(--line);
  background:var(--white);
}

.home-hero-copy{
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:70px 54px 72px;
}

.home-hero h1,
.home-page h2,
.home-page h3{
  font-family:var(--serif);
  letter-spacing:-.035em;
}

.home-hero h1{
  max-width:700px;
  margin:0;
  font-size:clamp(3.3rem,5.3vw,5.8rem);
  line-height:.98;
  font-weight:700;
}

.home-hero-copy>p{
  max-width:590px;
  margin:28px 0 0;
  color:#40423f;
  font-size:clamp(1.08rem,1.4vw,1.32rem);
  line-height:1.7;
}

.home-hero-actions{
  display:flex;
  align-items:center;
  gap:30px;
  flex-wrap:wrap;
  margin-top:32px;
}

.button{
  min-height:48px;
  justify-content:center;
  padding:11px 20px;
  border:1px solid var(--cardinal);
  border-radius:8px;
  background:var(--cardinal);
  color:var(--white);
  box-shadow:none;
  font-weight:700;
  text-decoration:none;
  transition:background .18s ease,border-color .18s ease,transform .18s ease;
}

.button:hover{
  background:var(--cardinal-dark);
  border-color:var(--cardinal-dark);
  color:var(--white);
  text-decoration:none;
  transform:translateY(-1px);
}

.button.alt{
  color:var(--cardinal);
  background:transparent;
  border-color:var(--cardinal);
}

.button.alt:hover{
  color:var(--white);
  background:var(--cardinal);
}

.text-link{
  display:inline-flex;
  align-items:center;
  gap:9px;
  color:var(--cardinal);
  font-weight:680;
  text-decoration:none;
  border-bottom:1px solid currentColor;
  padding-bottom:3px;
}

.text-link svg{
  width:20px;
  height:20px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
  transition:transform .18s ease;
}

.text-link:hover{text-decoration:none}
.text-link:hover svg{transform:translateX(4px)}

.home-hero-media{
  position:relative;
  min-width:0;
  margin:0;
  overflow:hidden;
  border-top-left-radius:56px;
  background:#c7d3da;
}

.home-hero-media img{
  width:100%;
  height:100%;
  min-height:560px;
  object-fit:cover;
  object-position:center;
}

.home-hero-media figcaption{
  position:absolute;
  right:28px;
  bottom:24px;
  padding:9px 14px;
  border:1px solid rgba(0,0,0,.1);
  border-radius:10px;
  background:rgba(255,255,255,.92);
  color:#3f423f;
  font-size:.86rem;
  backdrop-filter:blur(8px);
}

.path-section{padding-block:76px 84px}

.section-heading h2,
.upcoming-intro h2,
.privacy-copy h2{
  margin:0;
  font-size:clamp(2.5rem,4vw,4.15rem);
  line-height:1.04;
  font-weight:700;
}

.section-heading>p{
  margin:12px 0 0;
  color:var(--muted);
  font-size:1.08rem;
}

.section-heading::after{
  content:"";
  display:block;
  width:80px;
  height:2px;
  margin-top:22px;
  background:var(--cardinal);
}

.path-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  margin-top:40px;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}

.path-link{
  position:relative;
  min-height:315px;
  padding:34px 38px 30px 0;
  color:var(--ink);
  text-decoration:none;
}

.path-link+.path-link{
  border-left:1px solid var(--line);
  padding-left:38px;
}

.path-link svg{
  width:50px;
  height:50px;
  fill:none;
  stroke:var(--cardinal);
  stroke-width:1.55;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.path-link h3{
  margin:24px 0 10px;
  color:var(--cardinal);
  font-size:clamp(1.55rem,2vw,2rem);
  line-height:1.12;
}

.path-link p{
  max-width:250px;
  margin:0;
  color:#4e504c;
  line-height:1.6;
}

.path-arrow{
  position:absolute;
  left:0;
  bottom:26px;
  color:var(--cardinal);
  font-size:2rem;
  transition:transform .18s ease;
}

.path-link+.path-link .path-arrow{left:38px}
.path-link:hover{text-decoration:none;background:rgba(141,11,36,.025)}
.path-link:hover .path-arrow{transform:translateX(7px)}

.upcoming-section{
  padding-block:68px 72px;
  background:var(--sage);
  border-block:1px solid #d8dacd;
}

.upcoming-layout{
  display:grid;
  grid-template-columns:minmax(250px,.58fr) minmax(0,1.42fr);
  gap:74px;
  align-items:start;
}

.upcoming-intro h2{font-size:clamp(2.65rem,4vw,4rem)}

.upcoming-intro>p{
  max-width:310px;
  margin:18px 0 25px;
  color:#50544b;
  font-size:1.06rem;
}

.upcoming-list{
  position:relative;
  display:grid;
}

.upcoming-list::before{
  content:"";
  position:absolute;
  top:24px;
  bottom:24px;
  left:7px;
  width:1px;
  background:#acac9d;
}

.upcoming-item{
  position:relative;
  display:grid;
  grid-template-columns:112px minmax(0,1fr) 110px;
  gap:26px;
  align-items:center;
  min-height:82px;
  padding-left:40px;
  border-bottom:1px solid #cdd0c2;
}

.upcoming-item:last-child{border-bottom:0}

.upcoming-item::before{
  content:"";
  position:absolute;
  left:0;
  width:15px;
  height:15px;
  border:4px solid var(--sage);
  border-radius:50%;
  background:var(--cardinal);
  box-shadow:0 0 0 1px var(--cardinal);
}

.upcoming-date{
  color:var(--cardinal);
  font-family:var(--serif);
  font-size:1.22rem;
  font-weight:700;
  letter-spacing:.02em;
  text-transform:uppercase;
}

.upcoming-title{
  font-family:var(--serif);
  font-size:1.28rem;
  font-weight:700;
}

.upcoming-type{
  color:var(--sage-dark);
  font-size:.9rem;
  text-align:right;
}

.upcoming-loading,
.upcoming-empty{
  padding:24px 0 24px 40px;
  color:var(--muted);
}

.source-note{
  margin:18px 0 0 40px;
  color:#555951;
  font-size:.86rem;
}

.source-note a{color:inherit}

.lighter-section{padding-block:80px 88px}

.lighter-grid{
  display:grid;
  grid-template-columns:1.15fr .65fr .95fr;
  margin-top:38px;
  border:1px solid var(--line);
  background:var(--white);
}

.lighter-grid>article{
  min-width:0;
  padding:30px;
}

.lighter-grid>article+article{border-left:1px solid var(--line)}

.feature-label{
  display:flex;
  align-items:center;
  gap:14px;
  color:var(--cardinal);
  font-size:.78rem;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.feature-label::after{
  content:"";
  width:42px;
  height:1px;
  background:var(--cardinal);
}

.lighter-grid h3{
  margin:14px 0 20px;
  font-size:clamp(1.65rem,2.4vw,2.55rem);
  line-height:1.08;
}

.poll{display:grid;gap:0}

.poll-options,
#poll-options{
  display:grid;
  grid-template-columns:1fr;
  gap:8px;
}

.poll-options .option-btn,
#poll-options .option-btn{
  position:relative;
  min-height:48px;
  justify-content:flex-start;
  padding:10px 14px 10px 42px;
  border:1px solid var(--line);
  border-radius:7px;
  background:var(--paper);
  color:var(--ink);
  text-align:left;
  font-weight:560;
}

.poll-options .option-btn::before,
#poll-options .option-btn::before{
  content:"";
  position:absolute;
  left:14px;
  width:16px;
  height:16px;
  border:1.5px solid #676966;
  border-radius:50%;
}

.poll-options .option-btn:hover,
#poll-options .option-btn:hover{
  border-color:var(--cardinal);
  background:#fffafa;
  color:var(--cardinal);
  transform:none;
}

#poll-countdown{
  margin:-10px 0 16px;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  color:var(--muted);
  font-size:.8rem;
}

.poll-results{
  margin-top:12px;
  padding:16px;
  border:1px solid var(--line);
  background:var(--paper);
}

.feature-note{
  margin:16px 0 0;
  color:var(--muted);
  font-size:.84rem;
}

.reset-panel{
  display:flex;
  flex-direction:column;
  background:#f8f7f0;
}

.reset-panel>p{
  margin:0;
  color:#454844;
  line-height:1.65;
}

.reset-line{
  width:100%;
  height:1px;
  margin:24px 0 18px;
  background:linear-gradient(90deg,transparent,var(--clay),transparent);
}

.reset-panel .challenge-timer{
  margin-top:auto;
  padding-top:18px;
}

.meme-panel h3{font-size:clamp(1.5rem,2.1vw,2.18rem)}
.meme-panel .meme{margin:0}

.meme-panel .meme img{
  width:100%;
  max-height:300px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#eee;
  object-fit:contain;
}

.meme-panel .meme figcaption{font-size:.78rem}

.meme-actions{
  display:flex;
  gap:22px;
  flex-wrap:wrap;
  margin-top:14px;
}

.meme-actions a{
  color:var(--cardinal);
  font-weight:650;
  text-underline-offset:4px;
}

.corral-support-section{
  padding:0 0 80px;
  background:var(--paper);
}

.corral-support-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:32px;
  padding:30px 32px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--white);
}

.corral-support-card h2{
  margin:0 0 7px;
  color:var(--ink);
  font-size:clamp(1.65rem,2.4vw,2.25rem);
}

.corral-support-card p{
  max-width:690px;
  margin:0;
  color:var(--muted);
}

.corral-support-button{flex:0 0 auto}

.about-card.corral-support-card{
  border-color:#dec7cb;
  background:#fffafa;
}

.privacy-band{
  padding-block:50px;
  color:#fff7ee;
  background:var(--cardinal-dark);
  border-bottom:2px solid #d7a29c;
}

.privacy-layout{
  display:grid;
  grid-template-columns:minmax(300px,.85fr) minmax(0,1.15fr);
  gap:70px;
  align-items:center;
}

.privacy-copy h2{
  color:var(--white);
  font-size:clamp(2rem,3.2vw,3.1rem);
}

.privacy-copy p{
  max-width:610px;
  margin:18px 0;
  color:#f6e7df;
  line-height:1.7;
}

.privacy-copy a{
  color:var(--white);
  font-weight:700;
  text-underline-offset:4px;
}

.data-flow{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:28px;
  margin:0;
  padding:0;
  list-style:none;
  counter-reset:flow;
}

.data-flow li{
  position:relative;
  min-width:0;
  padding-top:52px;
}

.data-flow li::before{
  counter-increment:flow;
  content:counter(flow);
  position:absolute;
  top:0;
  left:0;
  display:grid;
  place-items:center;
  width:36px;
  height:36px;
  border:1px solid rgba(255,255,255,.72);
  border-radius:50%;
  font-family:var(--serif);
  font-weight:700;
}

.data-flow li:not(:last-child)::after{
  content:"→";
  position:absolute;
  top:6px;
  right:-18px;
  color:#eab7ad;
}

.data-flow strong,
.data-flow span{display:block}
.data-flow strong{font-size:.88rem}
.data-flow span{
  margin-top:4px;
  color:#e9cfc7;
  font-size:.75rem;
  line-height:1.45;
}

.site-footer{
  margin:0;
  border:0;
  background:var(--paper);
}

.site-footer .inner{
  max-width:1280px;
  padding:26px 32px 22px;
  color:#343632;
}

.site-footer .foot-top{
  align-items:center;
  padding-bottom:20px;
}

.site-footer .foot-top>p{
  max-width:470px;
  margin:0;
  font-size:.9rem;
}

.footer-links{
  display:flex;
  justify-content:flex-end;
  gap:28px;
  flex-wrap:wrap;
}

.site-footer a{color:var(--cardinal)}

.site-footer .subfooter{
  padding-top:16px;
  color:var(--muted);
  font-size:.8rem;
}

.noscript-note{
  margin-block:24px;
  padding:16px;
  border:1px solid var(--line);
  background:var(--white);
}

@media (max-width:1050px){
  .site-nav .navlinks{gap:24px}
  .home-hero{grid-template-columns:1fr 1fr}
  .home-hero-copy{padding-left:32px}
  .home-hero h1{font-size:clamp(3.2rem,6vw,4.9rem)}
  .path-grid{grid-template-columns:repeat(2,1fr)}
  .path-link:nth-child(3){border-left:0;border-top:1px solid var(--line);padding-left:0}
  .path-link:nth-child(4){border-top:1px solid var(--line)}
  .path-link:nth-child(3) .path-arrow{left:0}
  .lighter-grid{grid-template-columns:1fr 1fr}
  .meme-panel{grid-column:1/-1;border-left:0!important;border-top:1px solid var(--line)}
  .meme-panel .meme{max-width:620px}
  .privacy-layout{grid-template-columns:1fr}
}

@media (max-width:820px){
  .container{padding-inline:20px}
  .site-nav .inner{min-height:70px;padding:10px 20px;flex-wrap:wrap}
  .site-nav .hamburger{display:flex;margin-left:auto}
  .site-nav .navlinks{
    display:none;
    width:100%;
    gap:0;
    padding:10px 0 4px;
  }
  .site-nav .navlinks.open{display:grid}
  .site-nav .navlinks a{
    padding:12px 2px;
    border-top:1px solid var(--line);
  }
  .site-nav .navlinks a::after{display:none}
  .trust-strip .container{
    justify-content:flex-start;
    gap:10px;
    overflow-x:auto;
    white-space:nowrap;
  }
  .trust-strip span+span::before{margin-right:10px}
  .home-hero{
    grid-template-columns:1fr;
    min-height:auto;
  }
  .home-hero-copy{padding:64px 20px 54px}
  .home-hero-copy>p{font-size:1.08rem}
  .home-hero-media{
    min-height:430px;
    border-top-left-radius:34px;
    margin-left:20px;
  }
  .home-hero-media img{min-height:430px}
  .path-section{padding-block:60px}
  .upcoming-layout{grid-template-columns:1fr;gap:35px}
  .upcoming-intro>p{max-width:520px}
  .upcoming-item{grid-template-columns:88px minmax(0,1fr);gap:18px}
  .upcoming-type{grid-column:2;text-align:left;margin-top:-18px;padding-bottom:12px}
  .lighter-section{padding-block:60px}
  .data-flow{grid-template-columns:repeat(2,1fr)}
  .data-flow li:nth-child(2)::after{display:none}
  .site-footer .foot-top{flex-direction:column;align-items:flex-start}
  .footer-links{justify-content:flex-start;gap:16px 24px}
}

@media (max-width:600px){
  .site-nav .brand .title{font-size:1.55rem}
  .brand-subtitle{font-size:.75rem}
  .brand-mark{width:36px;height:36px}
  .trust-strip{font-size:.78rem}
  .home-hero h1{font-size:clamp(3rem,14vw,4.25rem)}
  .home-hero-actions{align-items:flex-start;flex-direction:column;gap:20px}
  .home-hero-media{min-height:330px}
  .home-hero-media img{min-height:330px}
  .home-hero-media figcaption{right:14px;bottom:14px}
  .section-heading h2,
  .upcoming-intro h2{font-size:2.65rem}
  .path-grid{grid-template-columns:1fr}
  .path-link,
  .path-link+.path-link,
  .path-link:nth-child(3){
    min-height:245px;
    padding:28px 10px 26px 0;
    border-left:0;
    border-top:1px solid var(--line);
  }
  .path-link:first-child{border-top:0}
  .path-link+.path-link .path-arrow,
  .path-link:nth-child(3) .path-arrow{left:0}
  .upcoming-section{padding-block:52px}
  .upcoming-list::before{left:5px}
  .upcoming-item{
    grid-template-columns:1fr;
    gap:3px;
    min-height:112px;
    padding:18px 0 18px 30px;
  }
  .upcoming-item::before{left:-2px;width:13px;height:13px}
  .upcoming-type{grid-column:auto;margin:0;padding:0}
  .source-note{margin-left:30px}
  .lighter-grid{grid-template-columns:1fr}
  .lighter-grid>article+article{border-left:0;border-top:1px solid var(--line)}
  .meme-panel{grid-column:auto}
  .lighter-grid>article{padding:24px 20px}
  .corral-support-section{padding-bottom:52px}
  .corral-support-card{
    align-items:flex-start;
    flex-direction:column;
    padding:24px 22px;
  }
  .corral-support-button{width:100%}
  .data-flow{grid-template-columns:1fr}
  .data-flow li:not(:last-child)::after{
    content:"↓";
    top:auto;
    right:auto;
    left:12px;
    bottom:-23px;
  }
  .data-flow li{padding-left:52px;padding-top:0}
  .data-flow li::before{left:0}
  .privacy-band{padding-block:44px}
  .privacy-layout{gap:42px}
  .site-footer .inner{padding-inline:20px}
  .site-footer .subfooter{align-items:flex-start;gap:8px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .site-nav .navlinks a::after,
  .text-link svg,
  .path-arrow,
  .button{transition:none}
}

/* Resources directory */
.resources-page-v2{background:var(--paper)}

.resource-hero{
  padding:78px 0 66px;
  border-bottom:1px solid var(--line);
  background:var(--white);
}

.resource-hero .container{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(380px,.8fr);
  gap:80px;
  align-items:end;
}

.resource-hero h1,
.resource-directory h2,
.resource-contribute h2,
.urgent-band h2{
  font-family:var(--serif);
  letter-spacing:-.035em;
}

.resource-hero h1{
  max-width:760px;
  margin:0;
  font-size:clamp(3.3rem,5vw,5.5rem);
  line-height:.98;
}

.resource-hero-copy p{
  max-width:700px;
  margin:24px 0 0;
  color:#484a46;
  font-size:1.12rem;
  line-height:1.7;
}

.resource-search-wrap label{
  display:block;
  margin-bottom:10px;
  color:#3c3e3a;
  font-size:.86rem;
  font-weight:760;
}

.resource-search-box{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  min-height:60px;
  padding:0 14px 0 18px;
  border:1px solid #9f988c;
  border-radius:10px;
  background:var(--paper);
  transition:border-color .18s ease,box-shadow .18s ease;
}

.resource-search-box:focus-within{
  border-color:var(--cardinal);
  box-shadow:0 0 0 3px rgba(141,11,36,.11);
}

.resource-search-box svg{
  width:24px;
  height:24px;
  fill:none;
  stroke:var(--cardinal);
  stroke-width:1.7;
  stroke-linecap:round;
}

.resource-search-box input{
  min-width:0;
  padding:14px 0;
  border:0;
  outline:0;
  background:transparent;
  font-size:1rem;
}

.resource-search-box button{
  padding:7px 8px;
  border:0;
  background:transparent;
  color:var(--cardinal);
  font-size:.82rem;
  font-weight:700;
  cursor:pointer;
}

.urgent-band{
  padding:28px 0;
  color:#f9eee9;
  background:var(--cardinal-dark);
}

.urgent-layout{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:40px;
}

.urgent-band h2{
  margin:0 0 5px;
  color:var(--white);
  font-size:1.65rem;
}

.urgent-band p{
  max-width:850px;
  margin:0;
  color:#f1dcd5;
  font-size:.92rem;
}

.urgent-band a:not(.button){color:var(--white);font-weight:700}
.urgent-band .button.alt{
  flex:0 0 auto;
  color:var(--white);
  border-color:#edc9c1;
}
.urgent-band .button.alt:hover{background:var(--white);color:var(--cardinal)}

.resource-directory{padding-block:70px 90px}

.directory-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:36px;
  padding-bottom:30px;
  border-bottom:1px solid var(--line);
}

.resource-directory h2{
  margin:0;
  font-size:clamp(2.5rem,4vw,4rem);
  line-height:1;
}

#resource-count{
  margin:12px 0 0;
  color:var(--muted);
  font-size:.9rem;
}

.resource-filters{
  display:flex;
  justify-content:flex-end;
  gap:7px;
  flex-wrap:wrap;
}

.resource-filters button{
  min-height:38px;
  padding:7px 13px;
  border:1px solid var(--line);
  border-radius:999px;
  background:transparent;
  color:#4f514d;
  font-size:.82rem;
  font-weight:680;
  cursor:pointer;
}

.resource-filters button:hover{border-color:var(--cardinal);color:var(--cardinal)}
.resource-filters button[aria-pressed="true"]{
  border-color:var(--cardinal);
  background:var(--cardinal);
  color:var(--white);
}

.resource-list{display:grid}

.resource-row{
  display:grid;
  grid-template-columns:130px minmax(0,1fr) 52px;
  gap:28px;
  align-items:start;
  padding:31px 0;
  border-bottom:1px solid var(--line);
}

.resource-category{
  padding-top:5px;
  color:var(--cardinal);
  font-size:.75rem;
  font-weight:800;
  letter-spacing:.09em;
  text-transform:uppercase;
}

.resource-body h3{
  margin:0;
  font-family:var(--serif);
  font-size:clamp(1.45rem,2.1vw,2rem);
  letter-spacing:-.02em;
  line-height:1.15;
}

.resource-body h3 a{
  color:var(--ink);
  text-decoration:none;
}

.resource-body h3 a:hover{color:var(--cardinal)}

.resource-body p{
  max-width:770px;
  margin:10px 0 12px;
  color:#555752;
  line-height:1.65;
}

.resource-source{
  color:var(--sage-dark);
  font-size:.78rem;
  font-weight:720;
}

.resource-open{
  display:grid;
  place-items:center;
  width:46px;
  height:46px;
  border:1px solid var(--line);
  border-radius:50%;
  color:var(--cardinal);
  transition:background .18s ease,color .18s ease,transform .18s ease;
}

.resource-open svg{
  width:21px;
  height:21px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.resource-open:hover{
  background:var(--cardinal);
  color:var(--white);
  text-decoration:none;
  transform:translate(2px,-2px);
}

.resource-empty{
  max-width:620px;
  margin:55px auto 0;
  padding:42px;
  border:1px solid var(--line);
  background:var(--white);
  text-align:center;
}

.resource-empty h3{
  margin:0;
  font-family:var(--serif);
  font-size:2rem;
}

.resource-empty p{color:var(--muted)}
.resource-load-error{padding:34px 0;color:var(--muted)}

.resource-contribute{
  padding-block:58px;
  border-top:1px solid #d8dacd;
  background:var(--sage);
}

.resource-contribute .container{
  display:grid;
  grid-template-columns:1fr 1fr auto;
  gap:42px;
  align-items:center;
}

.resource-contribute h2{
  margin:0;
  font-size:clamp(2rem,3vw,3rem);
  line-height:1.08;
}

.resource-contribute p{
  margin:0;
  color:#50544b;
}

@media (max-width:980px){
  .resource-hero .container{grid-template-columns:1fr;gap:40px}
  .directory-head{align-items:flex-start;flex-direction:column}
  .resource-filters{justify-content:flex-start}
  .resource-contribute .container{grid-template-columns:1fr;gap:20px}
}

@media (max-width:700px){
  .resource-hero{padding-block:58px 50px}
  .resource-hero h1{font-size:clamp(3rem,13vw,4.3rem)}
  .urgent-layout{align-items:flex-start;flex-direction:column;gap:18px}
  .resource-directory{padding-block:54px 70px}
  .resource-row{
    grid-template-columns:1fr 44px;
    gap:13px;
    padding:25px 0;
  }
  .resource-category{grid-column:1/-1;padding:0}
  .resource-body{grid-column:1}
  .resource-open{grid-column:2;grid-row:2}
}

/* Privacy notes */
.privacy-page{background:var(--paper)}

.privacy-hero{
  padding:82px 0 68px;
  color:#fff8f2;
  background:var(--cardinal-dark);
}

.privacy-hero h1,
.privacy-content h2{
  font-family:var(--serif);
  letter-spacing:-.035em;
}

.privacy-hero h1{
  max-width:850px;
  margin:0;
  color:var(--white);
  font-size:clamp(3.35rem,5.5vw,5.8rem);
  line-height:.98;
}

.privacy-hero p{
  max-width:780px;
  margin:25px 0 0;
  color:#f0dcd5;
  font-size:1.12rem;
  line-height:1.72;
}

.privacy-stamp{
  margin-top:24px;
  color:#deb8ae;
  font-size:.82rem;
}

.privacy-summary{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  padding-block:36px;
  border-bottom:1px solid var(--line);
}

.privacy-summary>div{
  display:grid;
  gap:5px;
  padding:5px 34px;
}

.privacy-summary>div+div{border-left:1px solid var(--line)}
.privacy-summary>div:first-child{padding-left:0}
.privacy-summary strong{
  color:var(--cardinal);
  font-family:var(--serif);
  font-size:1.25rem;
}
.privacy-summary span{color:var(--muted);font-size:.88rem}

.privacy-content{
  max-width:1050px;
  padding-block:45px 90px;
}

.privacy-content article{
  display:grid;
  grid-template-columns:280px minmax(0,1fr);
  gap:60px;
  padding:40px 0;
  border-bottom:1px solid var(--line);
}

.privacy-content article:last-child{border-bottom:0}

.privacy-content h2{
  margin:0;
  color:var(--cardinal);
  font-size:2rem;
  line-height:1.12;
}

.privacy-content article>p,
.privacy-content article>ul,
.privacy-content article>.privacy-table,
.privacy-content article>.privacy-clear{
  grid-column:2;
}

.privacy-content article>p{
  margin:0;
  color:#484a46;
  line-height:1.72;
}

.privacy-content article>p+p{margin-top:-38px}

.privacy-content ul{
  margin:-35px 0 0;
  padding-left:20px;
  color:#484a46;
  line-height:1.7;
}

.privacy-content li+li{margin-top:8px}

.privacy-table{
  border-top:1px solid var(--line);
}

.privacy-table-row{
  display:grid;
  grid-template-columns:140px 145px minmax(0,1fr);
  gap:20px;
  padding:18px 0;
  border-bottom:1px solid var(--line);
  color:#4b4d49;
  font-size:.88rem;
  line-height:1.55;
}

.privacy-table-row strong{color:var(--ink)}

.privacy-table-head{
  padding-block:11px;
  color:var(--muted);
  font-size:.72rem;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.privacy-clear{
  display:flex;
  align-items:center;
  gap:18px;
  margin-top:-30px;
}

#local-data-status{
  color:var(--muted);
  font-size:.86rem;
}

@media (max-width:820px){
  .privacy-summary{grid-template-columns:1fr}
  .privacy-summary>div,
  .privacy-summary>div:first-child{padding:18px 0}
  .privacy-summary>div+div{border-left:0;border-top:1px solid var(--line)}
  .privacy-content article{grid-template-columns:1fr;gap:22px}
  .privacy-content article>p,
  .privacy-content article>ul,
  .privacy-content article>.privacy-table,
  .privacy-content article>.privacy-clear{grid-column:1}
  .privacy-content article>p+p,
  .privacy-content ul,
  .privacy-clear{margin-top:0}
}

@media (max-width:620px){
  .privacy-hero{padding-block:62px 52px}
  .privacy-hero h1{font-size:clamp(3rem,14vw,4.3rem)}
  .privacy-table-row{grid-template-columns:1fr;gap:4px;padding-block:20px}
  .privacy-table-head{display:none}
  .privacy-table-row span:nth-child(2){color:var(--cardinal);font-weight:700}
  .privacy-clear{align-items:flex-start;flex-direction:column}
}

/* Cohesive header and surface polish for legacy content pages */
.nav:not(.site-nav){
  position:sticky;
  top:0;
  z-index:40;
  border-top:4px solid var(--cardinal);
  border-bottom:1px solid var(--line);
  background:rgba(255,255,255,.97);
  box-shadow:none;
  backdrop-filter:blur(12px);
}

.nav:not(.site-nav) .inner{
  max-width:1180px;
  min-height:70px;
  padding:10px 24px;
}

.nav:not(.site-nav) .brand .logo{
  width:34px;
  height:34px;
  overflow:hidden;
  background:url("../img/favicon.svg") center/contain no-repeat;
  font-size:0;
}

.nav:not(.site-nav) .brand .title{
  font-family:var(--serif);
  font-size:1.35rem;
  letter-spacing:-.02em;
}

.nav:not(.site-nav) .brand .tag{
  border:0;
  background:transparent;
  color:var(--muted);
  font-size:.72rem;
}

.nav:not(.site-nav) .navlinks{gap:18px}

.nav:not(.site-nav) .navlinks a{
  padding:8px 2px;
  border:0;
  border-radius:0;
  background:transparent;
  color:#343632;
  font-size:.88rem;
  font-weight:650;
  text-decoration:none;
}

.nav:not(.site-nav) .navlinks a:hover,
.nav:not(.site-nav) .navlinks a[aria-current="page"]{
  color:var(--cardinal);
  box-shadow:inset 0 -2px var(--cardinal);
}

.nav:not(.site-nav) .hamburger{
  border:1px solid var(--line);
  background:var(--white);
  color:var(--ink);
}

.page-center>h1{
  margin:0 0 10px;
  font-family:var(--serif);
  font-size:clamp(2.5rem,4vw,4rem);
  letter-spacing:-.035em;
  line-height:1.04;
  text-align:center;
}

body .dates-term .date-row{
  background:var(--white)!important;
  border-color:var(--line)!important;
}

body .dates-term .date-row:hover{background:#fffaf8!important}

body .dates-term .date-badge{
  background:var(--paper)!important;
  border-color:var(--line)!important;
}

body .dates-term .dates-empty{
  background:var(--paper)!important;
  border-color:var(--line)!important;
}

body #type-chips .tag[aria-pressed="true"]{
  outline:2px solid var(--cardinal)!important;
  outline-offset:2px;
}

@media (max-width:820px){
  .nav:not(.site-nav) .inner{flex-wrap:wrap;padding-inline:18px}
  .nav:not(.site-nav) .hamburger{margin-left:auto}
  .nav:not(.site-nav) .navlinks{
    display:none;
    width:100%;
    gap:0;
    padding-top:8px;
  }
  .nav:not(.site-nav) .navlinks.open{display:grid}
  .nav:not(.site-nav) .navlinks a{
    padding:11px 2px;
    border-top:1px solid var(--line);
  }
  .nav:not(.site-nav) .navlinks a:hover,
  .nav:not(.site-nav) .navlinks a[aria-current="page"]{box-shadow:none}
}

/* 404 */
.not-found-page{
  min-height:100vh;
  border-top:6px solid var(--cardinal);
  background:
    linear-gradient(90deg,var(--paper) 0 58%,var(--sage) 58% 100%);
}

.not-found{
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-height:calc(100vh - 6px);
  max-width:1040px;
  margin:0 auto;
  padding:50px 32px;
}

.not-found .brand{width:max-content;color:var(--ink)}
.not-found .brand .title{
  font-family:var(--serif);
  font-size:1.8rem;
  color:var(--cardinal);
}

.not-found-code{
  margin-top:auto;
  color:var(--cardinal);
  font-family:var(--serif);
  font-size:1rem;
  font-weight:800;
  letter-spacing:.18em;
}

.not-found h1{
  max-width:700px;
  margin:16px 0;
  font-family:var(--serif);
  font-size:clamp(3.4rem,7vw,7rem);
  letter-spacing:-.045em;
  line-height:.92;
}

.not-found>p{
  max-width:540px;
  color:var(--muted);
  font-size:1.1rem;
}

.not-found-actions{
  display:flex;
  align-items:center;
  gap:26px;
  flex-wrap:wrap;
  margin:25px 0 auto;
}

@media (max-width:620px){
  .not-found-page{background:var(--paper)}
  .not-found{padding-inline:20px}
  .not-found-actions{align-items:flex-start;flex-direction:column}
}
