/* ---------- Tokens ---------- */
:root {
  --navy: #233F4D;
  --cream: #FBEDDD;
  --paper: #FFF9F1;
  --white: #FFFFFF;
  --brick: #A8402F;
  --brick-dark: #8C3324;
  --ink: #29251F;
  --muted: #5E574B;
  --rule: rgba(41, 37, 31, 0.28);

  --max-width: 1140px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --meta-col: 13rem;

  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---------- Reset & base ---------- */
* { box-sizing: border-box; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

h1, h2, h3, p { margin: 0; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

:focus-visible {
  outline: 2px solid var(--brick);
  outline-offset: 3px;
}

.masthead :focus-visible,
.site-footer :focus-visible { outline-color: var(--cream); }

/* ---------- Hamburger toggle ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cream);
  border-radius: 1px;
  transition: transform 0.22s ease, opacity 0.22s ease;
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Shared bits ---------- */
.section-label {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-top: 0.75rem;
  border-top: 1px solid var(--ink);
}

.kicker {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brick);
}

.more {
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.more:hover { text-decoration: underline; }

.more--strong {
  display: inline-block;
  white-space: normal;
  margin-top: 1.25rem;
  font-size: 1.0625rem;
  color: var(--brick);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.more--strong:hover { color: var(--brick-dark); }

/* ---------- Masthead ---------- */
.masthead {
  background: var(--navy);
  color: var(--cream);
  padding: 1.5rem 0 0.7rem;
  border-bottom: 4px solid var(--brick);
}

.masthead__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
}

.wordmark {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 6.4vw, 3.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 1.75rem;
}

.nav a,
.site-footer nav a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
}

.nav a:hover,
.site-footer nav a:hover { text-decoration: underline; }

.dateline {
  margin-top: 0.9rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(251, 237, 221, 0.35);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #CBD0C7;
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 2rem 3.5rem;
  align-items: end;
  padding-top: 3.25rem;
  padding-bottom: 2.5rem;
}

.hero h1 {
  max-width: 13ch;
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5.6vw, 4.5rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.015em;
}

.hero__side {
  padding-left: 2rem;
  border-left: 1px solid var(--ink);
}

.lede {
  max-width: 40ch;
  margin-bottom: 1.5rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.4;
}

/* ---------- Signup ---------- */
/*
  Kit draws its own form inside .signup. These rules restyle it to match the site
  (Kit sets inline styles, so !important is needed). Delete this block to go back
  to whatever Kit's form editor is set to.
*/
.signup .formkit-form {
  max-width: 26rem;
  margin: 0 auto;
  font-family: var(--font-sans);
}

.signup .formkit-form [data-style="clean"] { padding: 0 !important; }

.signup .formkit-form .formkit-fields {
  flex-direction: column;
  flex-wrap: nowrap;
  margin: 0 !important;
}

.signup .formkit-form .formkit-field,
.signup .formkit-form .formkit-submit {
  flex: none !important;
  margin: 0 !important;
}

.signup .formkit-form .formkit-input {
  padding: 0.75rem 0.9rem !important;
  border: 1px solid var(--ink) !important;
  border-bottom: 0 !important;
  border-radius: 0 !important;
  background: var(--paper) !important;
  color: var(--ink) !important;
  font-family: var(--font-sans) !important;
  font-size: 1rem !important;
}

.signup .formkit-form .formkit-input::placeholder { color: var(--muted); opacity: 1; }

.signup .formkit-form .formkit-submit {
  border-radius: 0 !important;
  background-color: var(--brick) !important;
  color: var(--cream) !important;
  font-family: var(--font-sans) !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
}

.signup .formkit-form .formkit-submit > span { padding: 0.75rem 1.4rem; }

.signup .formkit-form .formkit-input:focus-visible,
.signup .formkit-form .formkit-submit:focus-visible {
  outline: 2px solid var(--brick) !important;
  outline-offset: 3px;
}

.signup__note {
  margin-top: 0.7rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Photo ---------- */
.photo { margin: 0 0 2.5rem; }

.photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  object-position: 50% 70%; /* which slice of the photo shows in the wide frame: 0% = top, 100% = bottom */
}

.photo figcaption {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- White band: This week through About ---------- */
.white-band { background: var(--white); }

/* ---------- This week ---------- */
.this-week { padding-top: 3.5rem; }

.contents {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

.contents li {
  padding: 1.25rem 0 1.5rem 2.5rem;
  border-bottom: 1px solid var(--rule);
}

.contents li:first-child {
  grid-row: span 3;
  padding: 1.25rem 2.5rem 1.5rem 0;
  border-right: 1px solid var(--rule);
}

.contents h3 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.2;
}

.contents li:first-child h3 {
  max-width: 14ch;
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

/* ---------- Latest issue ---------- */
.latest { padding-top: 3rem; }

.latest__inner {
  display: grid;
  grid-template-columns: var(--meta-col) minmax(0, 1fr);
  gap: 1rem 2rem;
  padding: 1.5rem 0 2.5rem;
  border-top: 4px solid var(--ink);
}

.latest__label {
  margin-bottom: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brick);
}

.latest__date {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.25;
}

.latest__plus {
  max-width: 46ch;
  margin-top: 0.9rem;
  color: var(--muted);
}

.latest__summary {
  max-width: 32ch;
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 3.2vw, 2.4rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.005em;
}

/* ---------- Archive ---------- */
.archive { padding-top: 0.5rem; }

.issues {
  margin: 0;
  padding: 0;
  list-style: none;
}

.issues__empty {
  margin: 0;
  padding: 1.25rem 20% 1.5rem calc(var(--meta-col) + 2rem);
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.35;
}

.issue {
  display: grid;
  grid-template-columns: var(--meta-col) minmax(0, 1fr) auto;
  gap: 0.5rem 2rem;
  align-items: baseline;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
}

.issue__date {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.issue__summary {
  max-width: 52ch;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.35;
}

/* ---------- Issue page ---------- */
.issue-hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 2rem 3.5rem;
  align-items: start;
  padding-top: 3.25rem;
  padding-bottom: 2.5rem;
  border-bottom: 4px solid var(--ink);
}

.issue-hero__right {
  padding-left: 2rem;
  border-left: 1px solid var(--ink);
}

.issue-hero__label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brick);
}

.issue-hero__date {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--muted);
}

.issue-hero__title {
  margin-top: 1rem;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.6vw, 2.5rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.issue-section {
  display: grid;
  grid-template-columns: var(--meta-col) minmax(0, 1fr);
  column-gap: 2rem;
  padding-top: 2.75rem;
}

.issue-section .section-label { grid-column: 1 / -1; margin-bottom: 1.25rem; }

.issue-section__content { grid-column: 2; max-width: 62ch; }

.issue-section__intro {
  margin-bottom: 1rem;
  color: var(--muted);
}

.issue-section__outro {
  margin-top: 1.25rem;
  font-family: var(--font-serif);
  font-size: 1.05rem;
}

.issue-prose p { line-height: 1.6; }
.issue-prose p + p { margin-top: 1rem; }

.brief-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.brief-list li {
  display: flex;
  gap: 0.9rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--rule);
}

.brief-list li:last-child { border-bottom: 0; }

.brief-list__emoji {
  flex: none;
  width: 1.5rem;
  font-size: 1.2rem;
  line-height: 1.55;
}

.brief-list p { line-height: 1.55; }

.brief-list strong { font-weight: 600; }

.issue-outro {
  padding: 3rem 0 3.5rem;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-style: italic;
  text-align: center;
  color: var(--muted);
}

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: var(--meta-col) minmax(0, 1fr);
  column-gap: 2rem;
  padding-top: 2.5rem;
  padding-bottom: 3.5rem;
}

.about .section-label { grid-column: 1 / -1; margin-bottom: 1rem; }

.about__text {
  grid-column: 2;
  max-width: 56ch;
}

.about__text p + p { margin-top: 1rem; }

/* ---------- Submit ---------- */
.submit {
  background: var(--cream);
  border-top: 1px solid var(--ink);
  padding: 3.25rem 0 3.75rem;
}

.submit__inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 2rem 3.5rem;
  align-items: center;
}

.submit h2 {
  max-width: 16ch;
  margin-bottom: 1rem;
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.8vw, 2.9rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.submit__copy p { max-width: 46ch; }
.submit__copy p + p { margin-top: 0.9rem; }

.button {
  display: block;
  width: 100%;
  padding: 1.35rem 2rem;
  border: 1px solid var(--brick);
  background: var(--brick);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.55;
  text-align: center;
  text-decoration: none;
}

.button:hover {
  background: var(--brick-dark);
  border-color: var(--brick-dark);
}

/* ---------- Day headers (events section) ---------- */
.day-header {
  margin: 1.75rem 0 0.1rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.subgroup-label {
  margin: 1.75rem 0 0.25rem;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ---------- Story promo (newsletter feature block) ---------- */
.story-promo {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.25rem 2rem;
  padding: 1.5rem;
  background: var(--white);
  border-top: 3px solid var(--brick);
  align-items: start;
}

.story-promo__img-wrap img {
  width: 200px;
  height: 154px;
  object-fit: cover;
  display: block;
}

.story-promo__kicker {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brick);
}

.story-promo__title {
  margin: 0 0 0.6rem;
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.story-promo__title a { color: var(--ink); text-decoration: none; }
.story-promo__title a:hover { color: var(--brick); }

.story-promo__dek { margin-bottom: 0.75rem; color: var(--muted); }

.story-promo__link { font-weight: 600; color: var(--brick); }

@media (max-width: 600px) {
  .story-promo { grid-template-columns: 1fr; }
  .story-promo__img-wrap img { width: 100%; height: auto; aspect-ratio: 13 / 10; }
}

/* ---------- Feature article ---------- */
.feature-title {
  margin-bottom: 1.25rem;
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #CBD0C7;
  padding: 2rem 0 2.25rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
}

.site-footer__name {
  margin-bottom: 0.25rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--cream);
}

.site-footer nav {
  display: flex;
  gap: 1.5rem;
}

/* ---------- Tablet ---------- */
@media (max-width: 900px) {
  :root { --meta-col: 11.5rem; }

  .hero,
  .submit__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; }

  .hero { align-items: start; }

  .hero__side { padding-left: 1.5rem; }

  .contents li { padding-left: 1.5rem; }
  .contents li:first-child { padding-right: 1.5rem; padding-left: 0; }

  .issue { grid-template-columns: var(--meta-col) minmax(0, 1fr); }
  .issue .more { grid-column: 2; }

  .issue-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .issue-hero__right { padding-left: 1.5rem; }
}

/* ---------- Narrow tablet & down: single column ---------- */
@media (max-width: 720px) {
  :root { --meta-col: 10rem; }

  .hero,
  .submit__inner { grid-template-columns: minmax(0, 1fr); }

  .hero__side {
    padding: 1.25rem 0 0;
    border-left: 0;
    border-top: 1px solid var(--ink);
  }

  .contents { grid-template-columns: minmax(0, 1fr); }

  .contents li,
  .contents li:first-child {
    grid-row: auto;
    padding: 1.25rem 0 1.5rem;
    border-right: 0;
  }

  .issue-section { grid-template-columns: minmax(0, 1fr); }
  .issue-section__content { grid-column: 1; }

  .issue-hero { grid-template-columns: 1fr; }
  .issue-hero__right {
    padding-left: 0;
    padding-top: 1.25rem;
    border-left: 0;
    border-top: 1px solid var(--ink);
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
  body { font-size: 1rem; }

  .issue-hero { padding-top: 2.25rem; padding-bottom: 2rem; }

  .masthead { padding-top: 1rem; }
  .masthead__row { align-items: center; }
  .nav-toggle { display: flex; }
  .nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    gap: 0;
    padding: 0.6rem 0 0.25rem;
    border-top: 1px solid rgba(251, 237, 221, 0.2);
    margin-top: 0.6rem;
  }
  .nav--open { display: flex; }
  .nav a {
    padding: 0.75rem 0;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    border-bottom: 1px solid rgba(251, 237, 221, 0.12);
  }
  .nav a:last-child { border-bottom: none; }
  .dateline { margin-top: 0.75rem; }

  .hero { padding-top: 2.25rem; padding-bottom: 2rem; }
  .lede { font-size: 1.15rem; }

  .photo img { aspect-ratio: 4 / 3; }

  .this-week { padding-top: 2.5rem; }
  .latest { padding-top: 2.25rem; }

  .latest__inner,
  .issue,
  .about { grid-template-columns: minmax(0, 1fr); }

  .latest__meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 0.9rem; }
  .latest__label { margin-bottom: 0; }

  .issue .more,
  .about__text { grid-column: auto; }

  .issues__empty { padding-left: 0; padding-right: 0; }

  .about { padding-bottom: 2.75rem; }
  .submit { padding: 2.5rem 0 3rem; }

  .site-footer nav { flex-wrap: wrap; gap: 0.75rem 1.25rem; }
}

/* ---------- Language toggle ---------- */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.lang-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.lang-btn.active {
  font-weight: 600;
  color: var(--ink);
}

.lang-btn:hover { color: var(--ink); }

.lang-toggle__divider {
  color: var(--rule);
  font-size: 0.8125rem;
  user-select: none;
}

/* ================================================================
   Events Calendar
   Scoped to .cal-page / .events-preview — does not affect main site.
   ================================================================ */

/* Events palette & typography tokens */
.cal-page, .cal-day-panel, .events-preview {
  --ev-ocean:      #1E3A46;
  --ev-coast:      #5B7F7E;
  --ev-sky:        #A7C1C6;
  --ev-sand:       #D9C9B8;
  --ev-cloud:      #F5F3EE;
  --ev-charcoal:   #252525;
  --ev-muted:      #6B6B6B;
  --ev-rule:       rgba(37,37,37,.1);
  --ev-rule-md:    rgba(37,37,37,.18);
  --ev-rule-dark:  rgba(37,37,37,.3);
  --ev-serif:      'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --ev-sans:       'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Give the events page a cloud-coloured background */
.page-events .white-band {
  background: var(--ev-cloud, #F5F3EE);
}

/* --- Page shell --- */

.cal-page {
  padding-top: 2.5rem;
  padding-bottom: 5rem;
}

.cal-page__header {
  max-width: 46ch;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--ev-ocean);
}

.cal-page__title {
  font-family: var(--ev-serif);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ev-charcoal);
  margin-bottom: 0.5rem;
}

.cal-page__desc {
  font-family: var(--ev-sans);
  font-size: 0.88rem;
  color: var(--ev-muted);
  line-height: 1.6;
}

.cal-page__desc a { color: var(--ev-ocean); }

/* --- Controls --- */

.cal-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: 2rem;
}

/* Town filters — pill style */
.cal-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.cal-filter__btn {
  -webkit-appearance: none;
  appearance: none;
  padding: 0.38em 0.85em;
  border: 1.5px solid var(--ev-rule-dark);
  border-radius: 100px;
  background: transparent;
  color: var(--ev-charcoal);
  font-family: var(--ev-sans);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .12s, background .12s, color .12s;
  line-height: 1.4;
}

.cal-filter__btn:hover {
  border-color: var(--ev-ocean);
  color: var(--ev-ocean);
  background: rgba(30,58,70,.05);
}

.cal-filter__btn--active {
  background: var(--ev-ocean);
  border-color: var(--ev-ocean);
  color: #fff;
}

.cal-filter__btn--active:hover {
  background: var(--ev-ocean);
  color: #fff;
}

/* List / Calendar segmented control */
.cal-toggle {
  display: flex;
  border: 1.5px solid var(--ev-rule-dark);
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

.cal-toggle__btn {
  -webkit-appearance: none;
  appearance: none;
  padding: 0.38em 1.1em;
  border: none;
  border-right: 1.5px solid var(--ev-rule-dark);
  background: transparent;
  color: var(--ev-charcoal);
  font-family: var(--ev-sans);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .12s, color .12s;
  line-height: 1.4;
}

.cal-toggle__btn:last-child { border-right: none; }

.cal-toggle__btn--active {
  background: var(--ev-ocean);
  color: #fff;
}

/* Town tags */
.cal-tag {
  display: inline-block;
  padding: 0.16em 0.55em;
  border-radius: 100px;
  font-family: var(--ev-sans);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  vertical-align: middle;
  white-space: nowrap;
  line-height: 1.5;
}

.cal-tag--yarmouth        { background: var(--ev-ocean, #1E3A46); }
.cal-tag--clare           { background: #9B3A2F; }
.cal-tag--digby           { background: var(--ev-coast, #5B7F7E); }
.cal-tag--weymouth        { background: #5E7A50; }
.cal-tag--worth-the-drive { background: #7A5C2E; }

/* Event is full: outlined so it reads differently from the town tags */
.cal-tag--full {
  background: transparent;
  color: #9B3A2F;
  box-shadow: inset 0 0 0 1.5px #9B3A2F;
}

/* ================================================================
   LIST VIEW — collapsible date groups
   ================================================================ */

.cal-date-list {
  border-top: 1.5px solid var(--ev-ocean);
}

.cal-date-group {
  border-bottom: 1px solid var(--ev-rule-md);
}

/* Disclosure button for each date */
.cal-date-btn {
  -webkit-appearance: none;
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 0;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  gap: 1rem;
  border-radius: 0;
}

.cal-date-btn:hover {
  background: rgba(30,58,70,.03);
}

.cal-date-btn__info {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  min-width: 0;
}

.cal-date-btn__weekday {
  font-family: var(--ev-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ev-charcoal);
  white-space: nowrap;
  line-height: 1;
}

.cal-date-btn__datenum {
  font-family: var(--ev-sans);
  font-size: 0.8rem;
  color: var(--ev-muted);
  white-space: nowrap;
}

.cal-date-btn__right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  margin-left: auto;
}

.cal-date-btn__count {
  font-family: var(--ev-sans);
  font-size: 0.75rem;
  color: var(--ev-muted);
  white-space: nowrap;
}

/* Animated chevron via border trick */
.cal-date-btn__chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
}

.cal-date-btn__chevron::before {
  content: '';
  display: block;
  width: 0.48rem;
  height: 0.48rem;
  border-right: 1.5px solid var(--ev-charcoal);
  border-bottom: 1.5px solid var(--ev-charcoal);
  transform: rotate(45deg) translate(-1px, -2px);
  transition: transform .18s ease;
}

.cal-date-btn[aria-expanded="true"] .cal-date-btn__chevron::before {
  transform: rotate(-135deg) translate(-1px, -2px);
}

/* Events within an expanded group */
.cal-date-events {
  padding-bottom: 1rem;
}

.cal-event {
  padding: 0.9rem 0 0.9rem 1.1rem;
  border-left: 2px solid var(--ev-sky);
  margin-bottom: 0.65rem;
}

.cal-event:last-child { margin-bottom: 0; }

.cal-event__title {
  font-family: var(--ev-serif);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ev-charcoal);
  margin-bottom: 0.35rem;
}

.cal-event__link {
  color: var(--ev-charcoal);
  text-decoration: none;
  border-bottom: 1px solid var(--ev-sky);
  transition: color .12s, border-color .12s;
}

.cal-event__link:hover {
  color: var(--ev-ocean);
  border-bottom-color: var(--ev-ocean);
}

.cal-event__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  margin-bottom: 0.3rem;
}

.cal-event__time,
.cal-event__admission {
  font-family: var(--ev-sans);
  font-size: 0.79rem;
  color: var(--ev-muted);
}

.cal-event__location {
  font-family: var(--ev-sans);
  font-size: 0.82rem;
  color: var(--ev-muted);
  margin-bottom: 0.3rem;
}

.cal-event__desc {
  font-family: var(--ev-sans);
  font-size: 0.87rem;
  color: #3d3d3d;
  line-height: 1.55;
  max-width: 58ch;
  margin-top: 0.25rem;
}

.cal-event__recurring {
  font-family: var(--ev-sans);
  font-size: 0.75rem;
  color: var(--ev-muted);
  font-style: italic;
  margin-top: 0.2rem;
}

.cal-empty,
.cal-loading {
  padding: 2.5rem 0;
  font-family: var(--ev-sans);
  font-size: 0.95rem;
  color: var(--ev-muted);
}

/* ================================================================
   CALENDAR GRID VIEW
   ================================================================ */

.cal-month-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.cal-month-prev,
.cal-month-next {
  -webkit-appearance: none;
  appearance: none;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--ev-rule-dark);
  border-radius: 3px;
  background: transparent;
  color: var(--ev-charcoal);
  font-family: var(--ev-sans);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: border-color .12s, background .12s;
}

.cal-month-prev:hover,
.cal-month-next:hover {
  border-color: var(--ev-ocean);
  background: rgba(30,58,70,.06);
}

.cal-month-title {
  font-family: var(--ev-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ev-charcoal);
}

/* Seven-column grid using borders for dividers */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-top: 1.5px solid var(--ev-ocean);
  border-left: 1px solid var(--ev-rule-md);
  margin-bottom: 1.5rem;
}

.cal-grid__header {
  border-right: 1px solid var(--ev-rule-md);
  border-bottom: 1px solid var(--ev-rule-md);
  padding: 0.5rem 0.35rem;
  background: var(--ev-cloud);
  font-family: var(--ev-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ev-muted);
}

.cal-grid__cell {
  position: relative;
  min-height: 3.5rem;
  padding: 0.3rem 0.4rem 1.5rem;
  border-right: 1px solid var(--ev-rule-md);
  border-bottom: 1px solid var(--ev-rule-md);
  background: #fff;
  text-align: right;
  cursor: default;
}

.cal-grid__cell--empty {
  background: var(--ev-cloud);
}

.cal-grid__cell--past {
  background: #fafafa;
}

.cal-grid__cell--past .cal-grid__day { color: #aaa; }

.cal-grid__cell--today .cal-grid__day {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background: var(--ev-ocean);
  color: #fff;
  font-weight: 700;
}

.cal-grid__cell--has-events { cursor: pointer; }

.cal-grid__cell--has-events:hover {
  background: rgba(167,193,198,.15);
}

.cal-grid__cell--selected {
  background: rgba(167,193,198,.22);
  box-shadow: inset 0 0 0 2px var(--ev-coast);
}

.cal-grid__day {
  display: inline-block;
  font-family: var(--ev-sans);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ev-charcoal);
  line-height: 1.55rem;
}

/* Event count badge inside each cell */
.cal-grid__event-count {
  position: absolute;
  bottom: 0.3rem;
  left: 0.3rem;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.2rem;
  border-radius: 100px;
  background: var(--ev-coast);
  color: #fff;
  font-family: var(--ev-sans);
  font-size: 0.62rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Day panel revealed on date click */
.cal-day-panel {
  padding: 1.25rem 0 0.5rem;
  border-top: 2px solid var(--ev-ocean);
}

.cal-day-panel__title {
  font-family: var(--ev-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ev-charcoal);
  margin-bottom: 1rem;
}

/* Submit CTA */
.cal-past-section {
  margin-top: 2rem;
  border-top: 1px solid var(--ev-rule-md);
  padding-top: 1rem;
}

.cal-past-toggle {
  -webkit-appearance: none;
  appearance: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: var(--ev-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ev-muted);
  letter-spacing: 0.04em;
}

.cal-past-toggle:hover { color: var(--ev-charcoal); }

.cal-past-toggle .cal-date-btn__chevron { width: 1rem; height: 1rem; }

.cal-past-toggle[aria-expanded="true"] .cal-date-btn__chevron::before {
  transform: rotate(-135deg) translate(-1px, -2px);
}

.cal-submit {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--ev-rule-md);
  font-family: var(--ev-sans);
  font-size: 0.85rem;
  color: var(--ev-muted);
}

.cal-submit a { color: var(--ev-ocean); }

/* ================================================================
   HOMEPAGE EVENTS PREVIEW
   ================================================================ */

.events-preview { padding-top: 2rem; padding-bottom: 0.5rem; }
.events-preview .section-label { margin-bottom: 1.25rem; }

.events-preview__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.events-preview__item {
  display: grid;
  grid-template-columns: var(--meta-col) minmax(0, 1fr);
  gap: 0.25rem 2rem;
  align-items: baseline;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
}

.events-preview__date {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.events-preview__title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.3;
}

.events-preview__title:hover { color: var(--brick); }

.events-preview__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.5rem;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.events-preview__footer { padding: 1rem 0 0.5rem; }

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 720px) {
  .cal-controls {
    flex-direction: column;
    align-items: flex-start;
  }

  .events-preview__item {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.15rem;
  }
}

@media (max-width: 600px) {
  .cal-page { padding-top: 1.5rem; padding-bottom: 3rem; }

  .cal-grid__cell {
    min-height: 2.5rem;
    padding: 0.2rem 0.25rem 1.25rem;
  }

  .cal-grid__day { font-size: 0.72rem; }

  .cal-grid__event-count {
    min-width: 0.9rem;
    height: 0.9rem;
    font-size: 0.56rem;
    bottom: 0.2rem;
    left: 0.2rem;
  }

  .cal-date-btn__weekday { font-size: 1rem; }
}

/* ================================================================
   People & Places — Stories
   Landing page scoped to .page-stories / .stories-page
   Homepage preview scoped to .stories-preview
   Article pages scoped to .story-article
   ================================================================ */

/* Palette & typography tokens */
.page-stories,
.stories-page,
.story-article {
  --st-ocean:   #1E3A46;
  --st-coast:   #5B7F7E;
  --st-sky:     #A7C1C6;
  --st-sand:    #D9C9B8;
  --st-cloud:   #F5F3EE;
  --st-charcoal:#252525;
  --st-muted:   #6B6B6B;
  --st-rule:    rgba(37,37,37,.1);
  --st-rule-md: rgba(37,37,37,.18);
  --st-serif:   'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --st-sans:    'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.page-stories .white-band { background: var(--st-cloud); }

/* --- Landing page shell --- */

.stories-page {
  padding-top: 2.5rem;
  padding-bottom: 5rem;
}

.stories-page__header {
  max-width: 46ch;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--st-ocean);
}

.stories-page__title {
  font-family: var(--st-serif);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--st-charcoal);
  margin-bottom: 0.5rem;
}

.stories-page__desc {
  font-family: var(--st-sans);
  font-size: 0.88rem;
  color: var(--st-muted);
  line-height: 1.6;
}

/* Loading / empty states */
.stories-loading {
  padding: 2.5rem 0;
  font-family: var(--st-sans);
  font-size: 0.95rem;
  color: var(--st-muted);
}

.stories-empty {
  padding: 2rem 0 3rem;
  font-family: var(--st-sans);
  font-size: 1rem;
  color: var(--st-muted);
  max-width: 44ch;
  line-height: 1.65;
}

.stories-empty p + p { margin-top: 0.75rem; }
.stories-empty a { color: var(--st-ocean); }

/* Shared labels */
.stories-kicker {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--st-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brick);
}

.stories-tag {
  display: inline-block;
  padding: 0.16em 0.55em;
  border-radius: 100px;
  background: var(--st-ocean);
  color: #fff;
  font-family: var(--st-sans);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
  white-space: nowrap;
  line-height: 1.5;
}

.stories-sponsored {
  display: inline-block;
  padding: 0.16em 0.55em;
  border-radius: 100px;
  border: 1px solid var(--st-muted);
  font-family: var(--st-sans);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--st-muted);
  vertical-align: middle;
  white-space: nowrap;
  line-height: 1.5;
}

.stories-img-credit {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--st-sans);
  font-size: 0.75rem;
  color: var(--st-muted);
}

/* --- Featured story --- */

.stories-featured { margin-bottom: 3rem; }

.stories-featured__img-wrap { margin-bottom: 1.5rem; }

.stories-featured__img-wrap img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  object-position: center;
  display: block;
}

.stories-featured__body { max-width: 56ch; }

.stories-featured__title {
  font-family: var(--st-serif);
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--st-charcoal);
  margin-bottom: 0.65rem;
}

.stories-featured__title a {
  color: inherit;
  text-decoration: none;
}

.stories-featured__title a:hover { color: var(--brick); }

.stories-featured__dek {
  font-family: var(--st-sans);
  font-size: 1.05rem;
  color: var(--st-muted);
  line-height: 1.55;
  margin-bottom: 0.9rem;
}

.stories-featured__byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.65rem;
  font-family: var(--st-sans);
  font-size: 0.82rem;
  color: var(--st-muted);
}

/* --- Story grid --- */

.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--st-rule-md);
}

.stories-card { display: flex; flex-direction: column; }

.stories-card__link { display: block; overflow: hidden; margin-bottom: 0.85rem; }

.stories-card__link img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  transition: transform .2s ease;
}

.stories-card:hover .stories-card__link img { transform: scale(1.02); }

.stories-card__body { flex: 1; display: flex; flex-direction: column; }

.stories-card__title {
  font-family: var(--st-serif);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--st-charcoal);
  margin-bottom: 0.4rem;
}

.stories-card__title a { color: inherit; text-decoration: none; }
.stories-card__title a:hover { color: var(--brick); }

.stories-card__dek {
  font-family: var(--st-sans);
  font-size: 0.85rem;
  color: var(--st-muted);
  line-height: 1.5;
  margin-bottom: 0.65rem;
  flex: 1;
}

.stories-card__byline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.5rem;
  font-family: var(--st-sans);
  font-size: 0.78rem;
  color: var(--st-muted);
  margin-top: auto;
}

/* --- Hub sections (stories/index.html) --- */

.stories-hub-section { margin-top: 3rem; }

.stories-hub-section + .stories-hub-section { margin-top: 3.5rem; }

.stories-hub-section__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--st-ocean);
  margin-bottom: 1.75rem;
}

.stories-hub-section__label {
  font-family: var(--st-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--st-charcoal);
}

.stories-hub-section__see-all {
  font-family: var(--st-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brick);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.stories-hub-section__see-all:hover { text-decoration: underline; }

.stories-hub-section .stories-grid {
  border-top: none;
  padding-top: 0;
}

/* Kicker used as an anchor link */
a.stories-kicker { text-decoration: none; }
a.stories-kicker:hover { text-decoration: underline; }

a.story-article__kicker { text-decoration: none; }
a.story-article__kicker:hover { text-decoration: underline; }

/* ================================================================
   HOMEPAGE PEOPLE & PLACES PREVIEW
   ================================================================ */

.stories-preview { padding-top: 2rem; padding-bottom: 0.5rem; }
.stories-preview .section-label { margin-bottom: 1.25rem; }

.stories-preview__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.stories-preview__item {
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--rule);
}

.stories-preview__kicker {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brick);
  margin-bottom: 0.2rem;
}

.stories-preview__title {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.3;
}

.stories-preview__title:hover { color: var(--brick); }

.stories-preview__dek {
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
  max-width: 56ch;
}

.stories-preview__footer { padding: 1rem 0 0.5rem; }

/* ================================================================
   ARTICLE PAGE
   ================================================================ */

.story-article {
  padding-top: 2.5rem;
  padding-bottom: 5rem;
}

.story-article__back {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-family: var(--st-sans);
  font-size: 0.82rem;
  color: var(--st-ocean);
  text-decoration: none;
}

.story-article__back:hover { text-decoration: underline; }

.story-article__header {
  max-width: 64ch;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--st-rule-md);
}

.story-article__kicker {
  display: block;
  margin-bottom: 0.6rem;
  font-family: var(--st-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brick);
}

.story-article__title {
  font-family: var(--st-serif);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--st-charcoal);
  margin-bottom: 0.75rem;
}

.story-article__dek {
  font-family: var(--st-sans);
  font-size: 1.1rem;
  color: var(--st-muted);
  line-height: 1.55;
  max-width: 52ch;
  margin-bottom: 1rem;
}

.story-article__byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.75rem;
  font-family: var(--st-sans);
  font-size: 0.85rem;
  color: var(--st-muted);
}

.story-article__hero {
  margin-bottom: 2rem;
}

.story-article__hero img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  display: block;
}

.story-article__body {
  max-width: 66ch;
}

.story-article__body p {
  font-family: var(--st-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--st-charcoal);
}

.story-article__body p + p { margin-top: 1.1rem; }

.story-article__body h2 {
  font-family: var(--st-serif);
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--st-charcoal);
  margin-top: 2.25rem;
  margin-bottom: 0.85rem;
}

.story-article__body h3 {
  font-family: var(--st-sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--st-charcoal);
  margin-top: 1.75rem;
  margin-bottom: 0.65rem;
}

.story-article__inline-img {
  margin: 2rem 0;
}

.story-article__inline-img img {
  width: 100%;
  height: auto;
  display: block;
}

.story-article__body ul {
  margin: 1.1rem 0 1.1rem 1.25rem;
  padding: 0;
}

.story-article__body ul li {
  font-family: var(--st-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--st-charcoal);
  margin-bottom: 0.4rem;
}

.story-article__body blockquote {
  margin: 2rem 0;
  padding: 0 0 0 1.5rem;
  border-left: 3px solid var(--st-sky);
  font-family: var(--st-serif);
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1.45;
  color: var(--st-ocean);
}

.story-article__body hr {
  border: none;
  border-top: 1px solid var(--st-rule-md);
  margin: 2rem 0;
}

.story-article__body h3 + ul { margin-top: 0.5rem; }

/* Tables in story body (pricing tables, reference data) */
.story-article__body table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--st-sans);
  font-size: 0.95rem;
  margin: 1.5rem 0;
  color: var(--st-charcoal);
}

.story-article__body th {
  text-align: left;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-bottom: 2px solid var(--st-ocean);
  color: var(--st-ocean);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story-article__body td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--st-rule);
  vertical-align: top;
  line-height: 1.55;
}

.story-article__body tr:last-child td { border-bottom: none; }

/* Subscribe nudge at top of story */
.story-article__subscribe {
  display: block;
  font-family: var(--st-sans);
  font-size: 0.8rem;
  color: var(--st-muted);
  text-decoration: none;
  margin-bottom: 2rem;
}
.story-article__subscribe:hover { color: var(--st-ocean); }

/* CTA block and nav links at bottom of story */
.story-article__cta {
  max-width: 66ch;
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--st-cloud);
  border-left: 3px solid var(--st-ocean);
}
.story-article__cta p {
  font-family: var(--st-sans);
  font-size: 1rem;
  color: var(--st-charcoal);
  margin-bottom: 0.6rem;
}
.story-article__cta a {
  font-family: var(--st-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--st-ocean);
  text-decoration: none;
}
.story-article__cta a:hover { text-decoration: underline; }

.story-article__nav-links {
  max-width: 66ch;
  margin: 1.5rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--st-rule);
  list-style: none;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0;
}
.story-article__nav-links li {
  display: flex;
  align-items: center;
}
.story-article__nav-links li + li::before {
  content: '\00B7';
  margin: 0 0.6rem;
  color: var(--st-muted);
}
.story-article__nav-links a {
  font-family: var(--st-sans);
  font-size: 0.9rem;
  color: var(--st-ocean);
  text-decoration: none;
}
.story-article__nav-links a:hover { text-decoration: underline; }

/* ================================================================
   RESPONSIVE — Stories
   ================================================================ */

@media (max-width: 720px) {
  .stories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  .stories-page { padding-top: 1.5rem; padding-bottom: 3rem; }
  .story-article { padding-top: 1.5rem; padding-bottom: 3rem; }

  .stories-grid { grid-template-columns: minmax(0, 1fr); }

  .stories-featured__img-wrap img { aspect-ratio: 4 / 3; }
  .story-article__hero img { aspect-ratio: 4 / 3; }
}

/* ================================================================
   Events page -- search, filters, updated cards, calendar grid
   Overrides and additions to the Events Calendar block above.
   ================================================================ */

/* Stack filter rows vertically inside controls */
.cal-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

/* Newsletter signup nudge */
.cal-signup-nudge {
  margin-bottom: 1.5rem;
  padding: 0.8rem 1rem;
  background: rgba(167,193,198,.15);
  border-left: 3px solid var(--ev-coast);
  border-radius: 0 4px 4px 0;
}

.cal-signup-nudge p {
  margin: 0;
  font-family: var(--ev-sans);
  font-size: 0.85rem;
  color: var(--ev-charcoal);
  line-height: 1.55;
}

.cal-signup-nudge a { color: var(--ev-ocean); }

/* Search input */
.cal-search {
  width: 100%;
  max-width: 34rem;
  margin-bottom: 0.75rem;
}

.cal-search__input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  padding: 0.55em 0.9em;
  border: 1.5px solid var(--ev-rule-dark);
  border-radius: 4px;
  background: #fff;
  color: var(--ev-charcoal);
  font-family: var(--ev-sans);
  font-size: 0.9rem;
  line-height: 1.4;
  outline: none;
  transition: border-color .12s, box-shadow .12s;
}

.cal-search__input:focus {
  border-color: var(--ev-ocean);
  box-shadow: 0 0 0 3px rgba(30,58,70,.1);
}

.cal-search__input::placeholder { color: var(--ev-muted); }

/* Filter rows: label + pill group */
.cal-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.65rem;
  width: 100%;
}

.cal-filter-label {
  font-family: var(--ev-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ev-muted);
  white-space: nowrap;
  min-width: 4.75rem;
}

.cal-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* Date picker (shown when "Choose a Date" selected) */
.cal-date-picker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  width: 100%;
  padding-left: calc(4.75rem + 0.65rem);
  margin-top: 0.25rem;
}

.cal-date-label {
  font-family: var(--ev-sans);
  font-size: 0.82rem;
  color: var(--ev-muted);
  white-space: nowrap;
}

.cal-date-input {
  -webkit-appearance: none;
  appearance: none;
  padding: 0.35em 0.7em;
  border: 1.5px solid var(--ev-rule-dark);
  border-radius: 4px;
  background: #fff;
  color: var(--ev-charcoal);
  font-family: var(--ev-sans);
  font-size: 0.82rem;
  outline: none;
  transition: border-color .12s;
}

.cal-date-input:focus { border-color: var(--ev-ocean); }

/* Bottom row: view toggle + clear button */
.cal-controls__bottom {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.35rem;
}

/* Clear all filters */
.cal-clear-btn {
  -webkit-appearance: none;
  appearance: none;
  padding: 0.38em 0.9em;
  border: 1.5px solid var(--ev-rule-dark);
  border-radius: 100px;
  background: transparent;
  color: var(--ev-muted);
  font-family: var(--ev-sans);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .12s, color .12s;
  line-height: 1.4;
}

.cal-clear-btn:hover {
  border-color: var(--ev-charcoal);
  color: var(--ev-charcoal);
}

/* ---- Event card: updated structure ---- */

/* Override: meta stacks when/where vertically */
.cal-event__meta {
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.4rem;
}

.cal-event__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.cal-event__head .cal-event__title { margin-bottom: 0; }

/* Category badge */
.cal-event__cat {
  display: inline-block;
  flex-shrink: 0;
  padding: 0.2em 0.55em;
  border-radius: 100px;
  font-family: var(--ev-sans);
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  margin-top: 0.2rem;
  line-height: 1.5;
}

.cal-event__cat--markets    { background: #7A5C2E; }
.cal-event__cat--music      { background: var(--ev-coast, #5B7F7E); }
.cal-event__cat--family     { background: #5E7A50; }
.cal-event__cat--arts       { background: #6B4E71; }
.cal-event__cat--food       { background: #A05C3A; }
.cal-event__cat--workshops  { background: #3A6B64; }
.cal-event__cat--community  { background: var(--ev-ocean, #1E3A46); }
.cal-event__cat--other      { background: var(--ev-muted, #6B6B6B); }

/* When row: date + time */
.cal-event__when {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.6rem;
}

.cal-event__date {
  font-family: var(--ev-sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ev-charcoal);
  white-space: nowrap;
}

/* Where row: town tag + place */
.cal-event__where {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.5rem;
}

.cal-event__place {
  font-family: var(--ev-sans);
  font-size: 0.82rem;
  color: var(--ev-muted);
}

/* Details link button */
.cal-event__footer {
  margin-top: 0.65rem;
}

.cal-event__details {
  display: inline-block;
  padding: 0.34em 1em;
  border: 1.5px solid var(--ev-ocean);
  border-radius: 3px;
  background: transparent;
  color: var(--ev-ocean);
  font-family: var(--ev-sans);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.4;
  transition: background .12s, color .12s;
}

.cal-event__details:hover {
  background: var(--ev-ocean);
  color: #fff;
}

/* Inline "Clear filters" button inside no-match message */
.cal-empty__clear {
  -webkit-appearance: none;
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--ev-sans);
  font-size: inherit;
  color: var(--ev-ocean);
  cursor: pointer;
  text-decoration: underline;
}

/* ---- List view: date groups ---- */

.cal-list { margin-top: 0.5rem; }

.cal-group { margin-bottom: 2rem; }

.cal-group__date {
  font-family: var(--ev-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ev-muted);
  padding-bottom: 0.55rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--ev-rule-md);
}

.cal-group__events {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cal-group__events .cal-event { margin-bottom: 0; }

/* ---- Calendar grid: new structure ---- */

.cal-grid-wrap { margin-bottom: 1.5rem; }

.cal-grid-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.cal-grid-nav__heading {
  font-family: var(--ev-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ev-charcoal);
  flex: 1;
  text-align: center;
}

.cal-grid-nav__btn {
  -webkit-appearance: none;
  appearance: none;
  width: 2.2rem;
  height: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--ev-rule-dark);
  border-radius: 3px;
  background: transparent;
  color: var(--ev-charcoal);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: border-color .12s, background .12s;
}

.cal-grid-nav__btn:hover {
  border-color: var(--ev-ocean);
  background: rgba(30,58,70,.06);
}

/* Override cal-grid for new flex-column + nested grid layout */
.cal-grid {
  display: flex;
  flex-direction: column;
  border-top: 2px solid var(--ev-ocean);
  margin-bottom: 0;
}

.cal-grid__headers {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-bottom: 1px solid var(--ev-rule-md);
}

.cal-grid__headers [role="columnheader"] {
  padding: 0.45rem 0.3rem;
  font-family: var(--ev-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ev-muted);
  border-right: 1px solid var(--ev-rule);
}

.cal-grid__headers [role="columnheader"]:last-child { border-right: none; }

.cal-grid__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.cal-grid__day {
  position: relative;
  min-height: 3.5rem;
  padding: 0.3rem;
  border-right: 1px solid var(--ev-rule);
  border-bottom: 1px solid var(--ev-rule);
  background: #fff;
}

.cal-grid__day:nth-child(7n) { border-right: none; }

.cal-grid__day--empty   { background: var(--ev-cloud); }
.cal-grid__day--today   { background: rgba(167,193,198,.08); }
.cal-grid__day--selected {
  background: rgba(167,193,198,.22);
  box-shadow: inset 0 0 0 2px var(--ev-coast);
}

/* Circle highlight for today's day number */
.cal-grid__day--today .cal-grid__day-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background: var(--ev-ocean);
  color: #fff;
  font-weight: 700;
}

.cal-grid__day-btn {
  -webkit-appearance: none;
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  min-height: 3rem;
  padding: 0.15rem;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 2px;
  transition: background .1s;
}

.cal-grid__day-btn:hover { background: rgba(30,58,70,.06); }

.cal-grid__day-num {
  font-family: var(--ev-sans);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ev-charcoal);
  line-height: 1.55rem;
  display: inline-block;
}

.cal-grid__dot-row {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.cal-grid__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cal-grid__dot--markets    { background: #7A5C2E; }
.cal-grid__dot--music      { background: var(--ev-coast, #5B7F7E); }
.cal-grid__dot--family     { background: #5E7A50; }
.cal-grid__dot--arts       { background: #6B4E71; }
.cal-grid__dot--food       { background: #A05C3A; }
.cal-grid__dot--workshops  { background: #3A6B64; }
.cal-grid__dot--community  { background: var(--ev-ocean, #1E3A46); }
.cal-grid__dot--other      { background: var(--ev-muted, #6B6B6B); }

/* Day panel heading */
.cal-day-panel {
  padding: 1.25rem 0 0.5rem;
  border-top: 2px solid var(--ev-ocean);
}

.cal-day-panel__heading {
  font-family: var(--ev-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ev-charcoal);
  margin-bottom: 1rem;
}

/* Footer CTAs */
.cal-footer-ctas {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ev-rule-md);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cal-footer-ctas .cal-submit {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.cal-signup-bottom p {
  margin: 0;
  font-family: var(--ev-sans);
  font-size: 0.85rem;
  color: var(--ev-muted);
  line-height: 1.55;
}

.cal-signup-bottom a { color: var(--ev-ocean); }

/* ================================================================
   Responsive -- events additions
   ================================================================ */

@media (max-width: 720px) {
  .cal-filter-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  .cal-filter-label { min-width: unset; }

  .cal-date-picker { padding-left: 0; }

  .cal-footer-ctas { gap: 1.25rem; }
}

@media (max-width: 600px) {
  .cal-grid__day {
    min-height: 2.5rem;
    padding: 0.2rem;
  }

  .cal-grid__day-btn { min-height: 2.2rem; }

  .cal-grid__day-num { font-size: 0.72rem; }

  .cal-grid__dot { width: 4px; height: 4px; }

  .cal-event__head { flex-direction: column; gap: 0.3rem; }

  .cal-event__cat { align-self: flex-start; }
}

/* ================================================================
   Events UI redesign
   All rules below override or extend the two blocks above.
   Scoped to .cal-page; no other pages affected.
   ================================================================ */

/* ---- Page header ---- */

.cal-page {
  padding-top: 1.75rem;
  padding-bottom: 4rem;
}

.cal-page__header {
  max-width: 52ch;
  margin-bottom: 1.25rem;
  padding-bottom: 0;
  border-bottom: none;
}

.cal-page__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.25rem;
}

.cal-page__sub {
  font-family: var(--ev-sans);
  font-size: 0.9rem;
  color: var(--ev-muted);
  line-height: 1.5;
  margin-bottom: 0.4rem;
}

.cal-page__nudge {
  font-family: var(--ev-sans);
  font-size: 0.8rem;
  color: var(--ev-muted);
  line-height: 1.5;
}

.cal-page__nudge a {
  color: var(--ev-ocean);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---- Search ---- */

.cal-search {
  width: 100%;
  max-width: 36rem;
  margin-bottom: 0.9rem;
}

.cal-search__wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.cal-search__icon {
  position: absolute;
  left: 0.75rem;
  width: 1rem;
  height: 1rem;
  color: var(--ev-muted);
  pointer-events: none;
  flex-shrink: 0;
}

.cal-search__input {
  padding: 0.6em 0.85em 0.6em 2.35em;
  border-radius: 6px;
  border: 1.5px solid rgba(37,37,37,.2);
  font-size: 1rem; /* 16px -- prevents iOS zoom on focus */
  background: #fff;
  box-shadow: none;
}

.cal-search__input:focus {
  border-color: var(--ev-ocean);
  box-shadow: 0 0 0 3px rgba(30,58,70,.08);
  outline: none;
}

/* ---- Controls ---- */

.cal-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
}

/* Quick date buttons */
.cal-quick-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.cal-quick-btn {
  -webkit-appearance: none;
  appearance: none;
  padding: 0.38em 0.9em;
  border: 1.5px solid rgba(37,37,37,.22);
  border-radius: 100px;
  background: transparent;
  color: var(--ev-charcoal);
  font-family: var(--ev-sans);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  line-height: 1.4;
  transition: border-color .12s, background .12s, color .12s;
}

.cal-quick-btn:hover {
  border-color: var(--ev-ocean);
  color: var(--ev-ocean);
}

.cal-quick-btn--active,
.cal-quick-btn[aria-pressed="true"] {
  background: var(--ev-ocean);
  border-color: var(--ev-ocean);
  color: #fff;
}

.cal-quick-btn--active:hover,
.cal-quick-btn[aria-pressed="true"]:hover {
  background: var(--ev-ocean);
  color: #fff;
}

.cal-quick-btn:focus-visible {
  outline: 2px solid var(--ev-ocean);
  outline-offset: 2px;
}

/* Filter bar: selects + more + clear */
.cal-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.cal-selects {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cal-select {
  -webkit-appearance: none;
  appearance: none;
  padding: 0.4em 2em 0.4em 0.75em;
  border: 1.5px solid rgba(37,37,37,.22);
  border-radius: 6px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B6B6B' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65em center;
  color: var(--ev-charcoal);
  font-family: var(--ev-sans);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  line-height: 1.4;
  min-width: 9rem;
  transition: border-color .12s;
}

.cal-select:focus {
  outline: none;
  border-color: var(--ev-ocean);
  box-shadow: 0 0 0 3px rgba(30,58,70,.08);
}

/* More filters expander */
.cal-more-wrap {
  position: relative;
}

.cal-more-btn {
  -webkit-appearance: none;
  appearance: none;
  list-style: none;
  padding: 0.4em 0.9em;
  border: 1.5px solid rgba(37,37,37,.22);
  border-radius: 6px;
  background: transparent;
  color: var(--ev-muted);
  font-family: var(--ev-sans);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  line-height: 1.4;
  transition: border-color .12s, color .12s;
  user-select: none;
}

/* Remove default marker in all browsers */
.cal-more-btn::-webkit-details-marker { display: none; }

.cal-more-btn:hover,
.cal-more-wrap[open] .cal-more-btn {
  border-color: var(--ev-ocean);
  color: var(--ev-charcoal);
}

.cal-more-btn--active {
  border-color: var(--ev-ocean);
  color: var(--ev-ocean);
  font-weight: 600;
}

.cal-more-btn:focus-visible {
  outline: 2px solid var(--ev-ocean);
  outline-offset: 2px;
}

.cal-more-panel {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  z-index: 10;
  background: #fff;
  border: 1.5px solid rgba(37,37,37,.18);
  border-radius: 8px;
  padding: 0.75rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
  min-width: 16rem;
}

.cal-more-panel__dates {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.6rem;
}

.cal-more-panel__dates:last-child { margin-bottom: 0; }

#cal-date-picker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(37,37,37,.1);
}

.cal-date-input {
  font-size: 0.82rem;
  padding: 0.35em 0.65em;
  border: 1.5px solid rgba(37,37,37,.22);
  border-radius: 4px;
  background: #fff;
  color: var(--ev-charcoal);
  font-family: var(--ev-sans);
  cursor: pointer;
}

.cal-date-input:focus {
  outline: none;
  border-color: var(--ev-ocean);
}

/* Clear link */
.cal-clear-link {
  font-family: var(--ev-sans);
  font-size: 0.8rem;
  color: var(--ev-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  padding: 0.4em 0.25em;
  white-space: nowrap;
}

.cal-clear-link:hover { color: var(--ev-charcoal); }

/* ---- Results bar ---- */

.cal-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--ev-ocean);
}

.cal-results-heading {
  font-family: var(--ev-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ev-muted);
  margin: 0;
}

/* ---- Event cards: date block + body ---- */

.cal-event {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(37,37,37,.07);
  border-left: none;
  margin-bottom: 0;
}

.cal-event:last-child { border-bottom: none; }

.cal-event__date-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 0.1rem;
  text-align: center;
  flex-shrink: 0;
  font-style: normal;
}

.cal-event__date-mon {
  font-family: var(--ev-sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ev-muted);
  line-height: 1.3;
}

.cal-event__date-day {
  font-family: var(--ev-serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--ev-charcoal);
  line-height: 1;
}

.cal-event__body {
  min-width: 0;
}

/* Override old serif title with a readable sans weight */
.cal-event__title {
  font-family: var(--ev-sans);
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--ev-charcoal);
  margin-bottom: 0.2rem;
  line-height: 1.35;
}

/* Multi-day range */
.cal-event__range {
  font-family: var(--ev-sans);
  font-size: 0.78rem;
  color: var(--ev-muted);
  margin-bottom: 0.2rem;
}

/* Meta line: time + town tag + place */
.cal-event__meta {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0.4rem;
  margin-bottom: 0.15rem;
}

.cal-event__time {
  font-family: var(--ev-sans);
  font-size: 0.8rem;
  color: var(--ev-muted);
}

.cal-event__place {
  font-family: var(--ev-sans);
  font-size: 0.8rem;
  color: var(--ev-muted);
}

/* Subdued category label (replaces bold badge) */
.cal-event__cat-label {
  font-family: var(--ev-sans);
  font-size: 0.75rem;
  color: var(--ev-muted);
  font-style: italic;
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.cal-event__desc {
  font-size: 0.85rem;
  line-height: 1.55;
  color: #444;
  max-width: 52ch;
  margin-top: 0.25rem;
  margin-bottom: 0.45rem;
}

/* Details link -- 44px tap target via min-height */
.cal-event__details {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 1em;
  border: 1.5px solid var(--ev-ocean);
  border-radius: 4px;
  background: transparent;
  color: var(--ev-ocean);
  font-family: var(--ev-sans);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .12s, color .12s;
  margin-top: 0.1rem;
}

.cal-event__details:hover {
  background: var(--ev-ocean);
  color: #fff;
}

.cal-event__details:focus-visible {
  outline: 2px solid var(--ev-ocean);
  outline-offset: 2px;
}

/* ---- Date groups (collapsible, open by default) ---- */

.cal-group { margin-bottom: 1rem; }

.cal-group__date {
  list-style: none;
  position: relative;
  padding: 0.45rem 1rem 0.45rem 0;
  border-bottom: 1px solid rgba(37,37,37,.08);
  margin-bottom: 0;
  font-family: var(--ev-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ev-muted);
  cursor: pointer;
  user-select: none;
}

.cal-group__date::-webkit-details-marker { display: none; }
.cal-group__date::marker { display: none; }

.cal-group__date::after {
  content: '';
  position: absolute;
  right: 0.1rem;
  top: 50%;
  width: 0.4rem;
  height: 0.4rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-50%) rotate(-135deg);
  transition: transform .15s;
}

.cal-group:not([open]) .cal-group__date::after {
  transform: translateY(-50%) rotate(45deg);
}

.cal-group__date:focus-visible {
  outline: 2px solid var(--ev-ocean);
  outline-offset: 2px;
  border-radius: 2px;
}

.cal-group__events {
  display: flex;
  flex-direction: column;
}

@media (prefers-reduced-motion: reduce) {
  .cal-group__date::after { transition: none; }
}

/* ---- Empty state ---- */

.cal-empty {
  padding: 1.5rem 0 1rem;
  font-family: var(--ev-sans);
  font-size: 0.95rem;
  color: var(--ev-muted);
}

.cal-empty p { margin-bottom: 0.4rem; }
.cal-empty p:last-of-type { margin-bottom: 0.85rem; }

.cal-empty__show-all {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 1.2em;
  background: var(--ev-ocean);
  border: none;
  border-radius: 4px;
  color: #fff;
  font-family: var(--ev-sans);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .12s;
}

.cal-empty__show-all:hover { opacity: 0.88; }

.cal-empty__show-all:focus-visible {
  outline: 2px solid var(--ev-ocean);
  outline-offset: 3px;
}

/* ---- Past events ---- */

.cal-past-section {
  margin-top: 2rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(37,37,37,.1);
}

.cal-past-toggle {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: var(--ev-sans);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ev-muted);
}

.cal-past-toggle::after {
  content: '';
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .15s;
}

.cal-past-toggle[aria-expanded="true"]::after {
  transform: rotate(-135deg);
}

.cal-past-toggle:hover { color: var(--ev-charcoal); }

.cal-past-toggle:focus-visible {
  outline: 2px solid var(--ev-ocean);
  outline-offset: 2px;
  border-radius: 2px;
}

.cal-past-events {
  padding-top: 0.5rem;
}

.cal-past-more {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  margin-top: 1rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid rgba(37,37,37,.2);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-family: var(--ev-sans);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ev-charcoal);
}

.cal-past-more:hover { border-color: var(--ev-charcoal); }

.cal-past-more:disabled { opacity: .6; cursor: default; }

.cal-past-more:focus-visible {
  outline: 2px solid var(--ev-ocean);
  outline-offset: 2px;
}

/* ---- Footer ---- */

.cal-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(37,37,37,.1);
}

.cal-footer__invite {
  font-family: var(--ev-sans);
  font-size: 0.9rem;
  color: var(--ev-charcoal);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.cal-footer__invite a { color: var(--ev-ocean); }

.cal-footer__submit {
  font-family: var(--ev-sans);
  font-size: 0.85rem;
  color: var(--ev-muted);
}

.cal-footer__submit a { color: var(--ev-ocean); }

/* ================================================================
   Responsive -- events UI redesign
   ================================================================ */

@media (max-width: 720px) {
  .cal-selects { flex-direction: column; width: 100%; }

  .cal-select { min-width: unset; width: 100%; }

  .cal-filter-bar { flex-direction: column; align-items: flex-start; gap: 0.4rem; }

  .cal-more-panel {
    position: static;
    box-shadow: none;
    border: none;
    padding: 0.5rem 0 0;
    min-width: unset;
    width: 100%;
    background: transparent;
  }

  .cal-more-panel__dates { margin-bottom: 0.5rem; }

  #cal-date-picker { padding-top: 0.4rem; }
}

@media (max-width: 600px) {
  .cal-page { padding-top: 1.25rem; }

  .cal-event {
    grid-template-columns: 2.5rem 1fr;
    gap: 0 0.75rem;
  }

  .cal-event__date-day { font-size: 1.45rem; }

  .cal-grid__day { min-height: 2.5rem; padding: 0.2rem; }
  .cal-grid__day-btn { min-height: 2.2rem; }
  .cal-grid__day-num { font-size: 0.72rem; }
  .cal-grid__dot { width: 4px; height: 4px; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .cal-quick-btn,
  .cal-cal-select,
  .cal-event__details,
  .cal-empty__show-all,
  .cal-past-toggle::after {
    transition: none;
  }
}
