/* Fonts are served from /fonts/ (self-hosted, SIL Open Font License, see
   /fonts/LICENSE.txt). Latin and Latin Extended subsets only. */
@font-face {
  font-family: 'Hedvig Letters Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/hedvig-letters-serif-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Hedvig Letters Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/hedvig-letters-serif-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/raleway-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/raleway-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/raleway-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/raleway-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Spectral';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/spectral-400-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Spectral';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/spectral-400-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/fonts/spectral-300-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/fonts/spectral-300-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/spectral-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/spectral-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/spectral-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/spectral-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #3e4f4b;
  --green: #1b5439;
  --green-deep: #2d4a40;
  --sage: #98b4a9;
  --sage-soft: #eef3f0;
  --line: #d5e0db;
  --white: #fff;
  --serif-display: 'Hedvig Letters Serif', Georgia, serif;
  --serif: 'Spectral', Georgia, serif;
  --sans: 'Raleway', 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --max: 72rem;
  --radius: 1rem;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem; /* 18px base, was ~11–13pt with descriptions at ~8pt */
  line-height: 1.65;
}
@media (min-width: 64rem) { body { font-size: 1.1875rem; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif-display); font-weight: 400; line-height: 1.25; margin: 0 0 0.75em; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--white); padding: 0.5rem 1rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.bar {
  max-width: var(--max); margin: 0 auto; padding: 0.6rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--ink); }
.brand img { width: 42px; height: auto; }
.brand span { font-family: var(--serif-display); text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.95rem; }
#site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.5rem; }
#site-nav a {
  display: block; padding: 0.55rem 1.1rem; border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--sans); font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
}
#site-nav a:hover { border-color: var(--green); color: var(--green); }
.menu-toggle { display: none; }

@media (max-width: 52rem) {
  .menu-toggle {
    display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
    background: none; border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
  }
  .burger, .burger::before, .burger::after {
    display: block; width: 1.1rem; height: 2px; background: var(--ink); position: relative; transition: transform 0.2s;
  }
  .burger::before, .burger::after { content: ''; position: absolute; left: 0; }
  .burger::before { top: -6px; }
  .burger::after { top: 6px; }
  .menu-toggle[aria-expanded='true'] .burger { background: transparent; }
  .menu-toggle[aria-expanded='true'] .burger::before { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded='true'] .burger::after { transform: translateY(-6px) rotate(-45deg); }
  #site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); }
  #site-nav.open { display: block; }
  #site-nav ul { flex-direction: column; padding: 1rem var(--gutter) 1.25rem; }
  #site-nav a { text-align: center; padding: 0.85rem 1rem; font-size: 0.875rem; }
  .brand span { font-size: 0.85rem; letter-spacing: 0.16em; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3rem; padding: 0.75rem 1.6rem; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--sans); font-weight: 700; font-size: 0.875rem; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-deep); }
.btn-ghost { background: transparent; color: var(--green); border-color: var(--sage); }
.btn-ghost:hover { border-color: var(--green); }
.btn[disabled] { opacity: 0.6; cursor: wait; }

/* ---------- hero ---------- */
.hero {
  max-width: var(--max); margin: 0 auto; padding: clamp(3rem, 9vw, 7rem) var(--gutter);
  display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: clamp(2rem, 6vw, 5rem);
}
.hero-text { text-align: center; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); text-transform: uppercase; letter-spacing: 0.22em; margin-bottom: 0.6em; }
.tagline { text-transform: uppercase; letter-spacing: 0.1em; font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 400; line-height: 1.8; margin: 0 auto 2.25rem; max-width: 34rem; }
.hero-logo { width: min(100%, 22rem); justify-self: center; }
@media (max-width: 52rem) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 2.5rem; }
  .hero-logo { order: -1; width: 11rem; }
}

/* ---------- sections ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(3.5rem, 8vw, 6rem) var(--gutter); }
.section-tint { max-width: none; background: var(--sage-soft); }
.section-tint > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section-title {
  text-align: center; text-transform: uppercase; letter-spacing: 0.24em;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin-bottom: 1.5em;
}
.section-title.small { font-size: 1.5rem; margin-bottom: 1em; }
.prose p { margin: 0 0 1em; }
.prose-center { max-width: 42rem; margin: 0 auto 2.5rem; text-align: center; }
.ivy { width: min(100%, 44rem); margin: 2.5rem auto 0; }
.empty, .subscribe { text-align: center; }
.subscribe { margin-top: 2.5rem; font-size: 1rem; }

/* ---------- events ---------- */
.event-list { display: grid; gap: 2rem; }
.event-card {
  display: grid; grid-template-columns: minmax(0, 18rem) 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start;
  padding: clamp(1.25rem, 3vw, 2.25rem); border: 1px solid var(--line); border-radius: var(--radius); max-width: 60rem; margin: 0 auto; width: 100%;
}
.event-card.no-image, .events-layout .event-card.no-image { grid-template-columns: 1fr; }
.event-figure { position: relative; width: 100%; max-width: 18rem; margin: 0 auto; }
.event-image { border-radius: 50%; aspect-ratio: 1; object-fit: cover; width: 100%; }
/* "AI" mark for generated illustrations: in the corner the circle leaves free */
.ai-mark { position: absolute; right: 0; bottom: 0; font-family: var(--sans); font-weight: 600; font-size: 0.6875rem; letter-spacing: 0.08em; line-height: 1; color: #8a9793; cursor: help; }
.ai-mark::after {
  content: attr(data-tip); position: absolute; right: 0; bottom: calc(100% + 0.4rem); width: max-content; max-width: 14rem;
  padding: 0.4rem 0.6rem; border-radius: 0.4rem; background: #dcebe3; color: var(--green); border: 1px solid var(--sage); box-shadow: 0 2px 6px rgba(30, 40, 38, 0.12);
  font-family: var(--serif); font-weight: 400; font-size: 0.875rem; letter-spacing: 0; line-height: 1.4; opacity: 0; pointer-events: none; transition: opacity 0.15s;
}
.ai-mark:hover::after, .ai-mark:focus::after { opacity: 1; }
.event-date { font-family: var(--sans); font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--green); margin: 0 0 0.5rem; }
.event-card h3, .event-detail h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--green); margin-bottom: 0.6em; }
.event-meta { margin: 0 0 1.25rem; display: grid; gap: 0.4rem; }
.event-meta div { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; }
.event-meta dt { font-family: var(--sans); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; padding-top: 0.3rem; color: var(--ink); }
.event-meta dd { margin: 0; font-weight: 500; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.rsvp-count { margin: 1.25rem 0 0; padding: 0.9rem 1.1rem; background: var(--sage-soft); border-radius: calc(var(--radius) / 2); }
.past-rsvps { max-width: 38rem; margin: 0 auto 1.5rem; }
.past-rsvps .rsvp-count { margin: 0; }
.form-card .rsvp-count, .rsvp-dialog:not(.details-dialog) .rsvp-count { margin: 0 0 1.5rem; }
.rsvp-count p { margin: 0; }
.rsvp-count-total { color: var(--green); font-weight: 500; }
.rsvp-count-total strong { font-family: var(--serif-display); font-size: 1.5rem; font-weight: 500; margin-right: 0.15em; }
.rsvp-count .rsvp-count-label { font-family: var(--sans); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 0.5rem; }
.rsvp-count .rsvp-count-note { margin-top: 0.6rem; font-size: 0.8125rem; color: #5f6f6b; }
.rsvp-count ul { list-style: none; margin: 0.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
/* School tiles: the emblem in grey tones, or the name where we have no emblem */
.rsvp-count li { display: grid; place-items: center; height: 2.75rem; min-width: 3.5rem; padding: 0.4rem 0.7rem; border: 1px solid var(--line); border-radius: 0.6rem; font-family: var(--serif-display); font-size: 0.95rem; line-height: 1.2; }
/* The school's name above its emblem on hover, focus or tap */
.rsvp-count li[data-tip] { position: relative; }
.rsvp-count li[data-tip]::after {
  content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 0.4rem); transform: translateX(-50%); width: max-content; max-width: 12rem; z-index: 1;
  padding: 0.3rem 0.6rem; border-radius: 0.4rem; background: #dcebe3; color: var(--green); border: 1px solid var(--sage); box-shadow: 0 2px 6px rgba(30, 40, 38, 0.12);
  font-family: var(--serif); font-size: 0.875rem; line-height: 1.4; opacity: 0; pointer-events: none; transition: opacity 0.15s;
}
.rsvp-count li[data-tip]:hover::after, .rsvp-count li[data-tip]:focus::after { opacity: 1; }
.rsvp-count li img { height: 1.9rem; width: auto; max-width: 6.5rem; object-fit: contain; filter: grayscale(1); opacity: 0.85; }
@media (max-width: 40rem) {
  .event-card { grid-template-columns: 1fr; text-align: left; }
  .event-figure { max-width: 12rem; }
  .actions .btn { flex: 1 1 100%; }
}

.page { max-width: 60rem; }
.back { margin: 0 0 2rem; font-size: 1rem; }
.event-detail { display: grid; grid-template-columns: minmax(0, 16rem) 1fr; gap: 3rem; align-items: start; margin-bottom: 3rem; }
@media (max-width: 40rem) { .event-detail { grid-template-columns: 1fr; gap: 1.5rem; } .event-detail .event-figure { max-width: 12rem; } }

/* ---------- forms ---------- */
.form-card {
  max-width: 38rem; margin: 0 auto; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 4vw, 2.5rem);
}
.site-form { display: grid; gap: 1.25rem; }
.field { display: grid; gap: 0.35rem; }
.field > span { font-family: var(--sans); font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; }
.field-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.field-head label { font-family: var(--sans); font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; }
.pill { padding: 0.2rem 0.75rem; border: 1px solid #98b4a9; border-radius: 999px; background: none; font-family: var(--sans); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.06em; color: var(--green); cursor: pointer; }
.pill:hover { background: #eef3f1; }
.pill[hidden] { display: none; }
.field input, .field textarea {
  font: inherit; font-size: 1.0625rem; color: var(--ink); width: 100%;
  padding: 0.75rem 0.9rem; border: 1px solid #b9c9c2; border-radius: 0.6rem; background: var(--white);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(27, 84, 57, 0.15); }
.check { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; font-size: 1rem; line-height: 1.5; align-items: start; }
.check input { width: 1.25rem; height: 1.25rem; margin-top: 0.15rem; accent-color: var(--green); }
.field small { font-size: 0.9rem; color: #5f6f6b; }
.check-group { display: grid; gap: 0.4rem; }
.check-note { font-size: 0.9rem; line-height: 1.5; color: #5f6f6b; margin-left: 2rem; }
.field input[type=file] { padding: 0.6rem; background: var(--white); }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; gap: 0.75rem; }
fieldset.field legend { padding: 0; margin-bottom: 0.5rem; font-family: var(--sans); font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; }
fieldset.field [data-when] { display: grid; gap: 1rem; margin-left: 2rem; }
/* blocks under the button choices (event details) are not indented like blocks under radios */
fieldset.field .segments ~ [data-when] { margin-left: 0; }
.form-note { margin: 1.5rem 0 0; font-size: 1rem; }
.hp { position: absolute; left: -9999px; }
.site-form .btn { justify-self: start; }
.form-status { margin: 0; font-size: 1rem; min-height: 1.5em; }
.form-status.ok { color: var(--green); font-weight: 500; }
.form-status.err { color: #a12c2c; }
@media (max-width: 40rem) { .site-form .btn { justify-self: stretch; } }

/* RSVP sent: hide the form (and the dialog header) and show only the confirmation */
.is-done > :not(.form-done):not(.dialog-close) { display: none; }
.form-done { display: grid; align-content: center; justify-items: center; gap: 1rem; text-align: center; min-height: 18rem; padding: 1rem 2.5rem; color: var(--green); }
.form-done[hidden] { display: none; }
.form-done p { margin: 0; font-size: 1.1875rem; line-height: 1.6; }
.form-done .form-done-lead { font-family: var(--serif-display); font-size: 1.6rem; font-weight: 500; }
.form-done .form-done-note { font-size: 0.9rem; color: #5f6f6b; }
.form-done:focus { outline: none; }
.form-done .btn { margin-top: 0.75rem; }

/* ---------- RSVP dialog ---------- */
.rsvp-dialog {
  width: min(36rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem);
  padding: clamp(1.25rem, 4vw, 2.25rem); border: none; border-radius: var(--radius);
  color: var(--ink); background: var(--white); box-shadow: 0 24px 60px rgba(20, 35, 30, 0.25);
  overflow: auto;
}
.rsvp-dialog::backdrop { background: rgba(30, 40, 38, 0.5); backdrop-filter: blur(2px); }
.dialog-close {
  position: absolute; top: 0.75rem; right: 0.75rem; width: 2.5rem; height: 2.5rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white); font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--ink);
}
.dialog-head { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: center; margin: 0 2.5rem 1.75rem 0; }
.dialog-head img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.dialog-head h2 { font-size: 1.6rem; color: var(--green); margin: 0 0 0.3rem; }
.eyebrow { font-family: var(--sans); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; margin: 0 0 0.25rem; color: var(--ink); }
.dialog-when { margin: 0; font-size: 1rem; line-height: 1.5; }
.details-dialog { width: min(40rem, calc(100vw - 2rem)); }
.details-dialog .prose p:last-child { margin-bottom: 0; }
.details-dialog .actions { margin-top: 1.75rem; }
@media (max-width: 30rem) { .dialog-head { grid-template-columns: 1fr; } .dialog-head img { width: 72px; height: 72px; } }

/* ---------- legal pages ---------- */
.legal { max-width: 42rem; margin: 0 auto; }
.legal h2 { font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.14em; margin: 2.25rem 0 0.5rem; color: var(--green); }
.legal h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.12em; margin: 1.5rem 0 0.4rem; }
.legal [lang=en] { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--sage); }
.legal p { margin: 0 0 1em; }
.legal .notice { background: var(--sage-soft); border-left: 4px solid var(--sage); padding: 0.9rem 1.1rem; font-size: 1rem; }
.legal .meta { font-size: 1rem; font-style: italic; }

/* ---------- footer ---------- */
.site-footer { text-align: center; padding: 3rem var(--gutter) 2.5rem; border-top: 1px solid var(--line); font-size: 1rem; }
.footer-ivy { width: min(100%, 22rem); margin: 0 auto 1.5rem; opacity: 0.9; }
.footer-name { font-family: var(--serif-display); text-transform: uppercase; letter-spacing: 0.24em; font-size: 1.1rem; margin: 0 0 0.5rem; }
.site-footer p { margin: 0 0 0.5rem; }
.footer-links { list-style: none; padding: 0; margin: 1.25rem 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.75rem; }
.copyright { color: #5f6f6b; font-size: 0.9375rem; }

/* ---------- multi-page additions ---------- */
#site-nav a[aria-current='page'] { background: var(--green); border-color: var(--green); color: var(--white); }
.page-head { margin-bottom: 1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.more { text-align: center; margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
div.past { max-width: 42rem; margin: 4rem auto 0; }
.past-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.past-list li { border-bottom: 1px solid var(--line); }
.past-list a { display: flex; gap: 1.25rem; padding: 0.85rem 0.25rem; text-decoration: none; color: var(--ink); }
.past-list a:hover { color: var(--green); }
.past-list span { font-family: var(--sans); font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; min-width: 7.5rem; padding-top: 0.2rem; }

/* ---------- events page + month calendar ---------- */
.section-wide { max-width: 80rem; }
.events-layout { display: grid; grid-template-columns: minmax(0, 1fr) 22rem; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.events-layout .event-card { grid-template-columns: minmax(0, 13rem) 1fr; }
@media (max-width: 64rem) {
  .events-layout { grid-template-columns: 1fr; }
  .events-layout .calendar { max-width: 26rem; width: 100%; margin: 0 auto; }
}
@media (max-width: 40rem) { .events-layout .event-card { grid-template-columns: 1fr; } }

.calendar { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; position: sticky; top: 5.5rem; }
@media (max-width: 64rem) { .calendar { position: static; } }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.cal-title { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.14em; margin: 0; }
.cal-nav { width: 2.5rem; height: 2.5rem; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.cal-nav:hover { border-color: var(--green); color: var(--green); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.25rem; text-align: center; }
.cal-dow { font-family: var(--sans); font-weight: 700; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.3rem 0; color: #5f6f6b; }
.cal-day { display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; font-size: 1rem; color: var(--ink); text-decoration: none; }
.cal-day.today { box-shadow: inset 0 0 0 1px var(--sage); }
.cal-day.has-event { background: var(--green); color: var(--white); font-weight: 500; }
.cal-day.has-event:hover { background: var(--green-deep); }
.cal-day.has-event.past { background: var(--sage-soft); color: var(--ink); }
.cal-events { list-style: none; margin: 1rem 0 0; padding: 1rem 0 0; border-top: 1px solid var(--line); display: grid; gap: 0.6rem; font-size: 1rem; }
.cal-events a { display: grid; text-decoration: none; color: var(--ink); line-height: 1.4; }
.cal-events a:hover { color: var(--green); }
.cal-events span { font-family: var(--sans); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); }
.cal-events .past a { opacity: 0.7; }
.cal-events .none { color: #5f6f6b; font-style: italic; }
.cal-subscribe { margin: 1rem 0 0; font-size: 0.95rem; text-align: center; }
.footer-sub { margin-top: 0.75rem; }
.subscribe-links { font-size: 0.95rem; }
.subscribe-links a { white-space: nowrap; }
@media (max-width: 30rem) { .section-title { letter-spacing: 0.14em; } }

[hidden] { display: none !important; }

/* Submission preview (/submit/new/ after the form is sent) */
.form-card[data-preview] { max-width: 56rem; }
/* same compact card as on the events page: small picture, wide text column */
.preview-card .event-card { box-shadow: none; grid-template-columns: minmax(0, 13rem) 1fr; }
.preview-card .event-card.no-image { grid-template-columns: 1fr; }
@media (max-width: 40rem) { .preview-card .event-card { grid-template-columns: 1fr; } }
.preview-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 0.5rem; }
.preview-card .btn { pointer-events: none; }
.picture-step { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid #d5e0dc; }
.picture-attempts { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 1rem 0 0.5rem; }
.picture-attempts button { padding: 0; border: 3px solid transparent; border-radius: 50%; background: none; cursor: pointer; line-height: 0; }
.picture-attempts button[aria-pressed="true"] { border-color: var(--green); }
.picture-attempts img { width: 5.5rem; height: 5.5rem; border-radius: 50%; }
.picture-dialog { width: min(92vw, 30rem); padding: 1.25rem; border: 0; border-radius: 1rem; text-align: center; background: #fff; }
.picture-dialog::backdrop { background: rgba(13, 42, 33, 0.65); }
.picture-dialog img { display: block; width: min(100%, 60vh); margin: 0 auto; aspect-ratio: 1; border-radius: 50%; }
.picture-dialog .preview-actions { justify-content: center; }
.link-button { padding: 0; border: 0; background: none; font: inherit; color: var(--green); text-decoration: underline; cursor: pointer; }
.examples { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.examples img { width: 4.5rem; height: 4.5rem; border-radius: 50%; }
.examples small { flex: 1 1 10rem; font-size: 0.9rem; color: #5f6f6b; }
.cropper { display: grid; gap: 0.6rem; justify-items: start; }
.cropper canvas { width: 100%; max-width: 300px; aspect-ratio: 1; touch-action: none; cursor: grab; border: 1px solid #c6d0cc; border-radius: 0.5rem; }
.cropper canvas:active { cursor: grabbing; }
.cropper .zoom { display: grid; gap: 0.25rem; width: 100%; max-width: 300px; }
.cropper small { font-size: 0.9rem; color: #5f6f6b; }
.file-clear { justify-self: start; padding: 0; border: 0; background: none; font: inherit; font-size: 0.9rem; color: var(--green); text-decoration: underline; cursor: pointer; }
.segments { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.segment { position: relative; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.7rem 1.1rem; border: 1px solid #c6d0cc; border-radius: 0.6rem; background: var(--white); cursor: pointer; font-family: var(--sans); font-weight: 500; }
.segment input { position: absolute; opacity: 0; pointer-events: none; }
.segment:has(input:checked) { background: var(--green); border-color: var(--green); color: #fff; }
.segment:has(input:focus-visible) { outline: 3px solid rgba(27, 84, 57, 0.35); outline-offset: 2px; }
.segment[hidden] { display: none; }
.paste-button { display: inline-flex; align-items: center; gap: 0.5rem; justify-self: start; }
.paste-box { display: grid; gap: 0.75rem; justify-items: start; padding: 1rem 1.2rem; border: 1px dashed #98b4a9; border-radius: 0.6rem; background: var(--white); }
.paste-box p { margin: 0; }
.paste-preview { max-width: 100%; max-height: 14rem; border: 1px solid #c6d0cc; border-radius: 0.4rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.figure-placeholder { aspect-ratio: 1; border: 2px dashed #98b4a9; border-radius: 50%; }
.figure-note { display: block; margin-top: 0.6rem; font-size: 0.85rem; color: #5f6f6b; }
.form-card.is-sent { background: #e8f0ec; border-color: #c6dbd0; text-align: center; padding: clamp(2rem, 6vw, 3.5rem); }
.form-card.is-sent .submit-thanks { margin: 0; font-size: clamp(1.35rem, 3.2vw, 1.75rem); line-height: 1.5; color: var(--green); }
.staging-bar { padding: 0.4rem 1rem; background: #e6c37c; color: #0d2a21; font-size: 0.9rem; text-align: center; }

.about-photo { margin: 1.5rem auto; max-width: 36rem; }
.about-photo img { display: block; width: 100%; height: auto; border-radius: 0.5rem; }
.about-photo figcaption { margin-top: 0.6rem; font-size: 0.9rem; color: #5f6f6b; }

/* "Fully booked" banner on events with full: true */
.full-banner { margin: 1.25rem 0 0; padding: 0.8rem 1.1rem; background: #fbf0e3; border-left: 4px solid #b0602a; border-radius: calc(var(--radius) / 2); color: #6a3a16; font-size: 0.95rem; }
.full-banner strong { display: block; font-family: var(--sans); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: #8a4a1c; }
.details-dialog .full-banner { margin: 0 0 1rem; }
.event-detail .full-banner { margin: 1rem 0; }

/* /submit/new/: "Update an event I posted" */
.manage-list { display: grid; gap: 1rem; margin: 1.25rem 0; }
.manage-event { display: grid; gap: 0.5rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: calc(var(--radius) / 2); }
.manage-event legend { display: grid; padding: 0 0.3rem; }
.manage-event .manage-date { font-size: 0.875rem; color: #5f6f6b; font-weight: 400; }
