/* Chewton Mendip Village Hall – site styles
   Mobile-first. Colours and fonts are set as variables at the top. */

@font-face {
  font-family: "Lora";
  src: url("../fonts/lora-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("../fonts/lora-latin-wght-italic.woff2") format("woff2");
  font-weight: 400 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900; font-style: normal; font-display: swap;
}

:root {
  --green-900: #13301f;
  --green-800: #1b4129;
  --green-700: #24543a;
  --green-600: #2f6a4a;
  --green-100: #e3ede4;
  --cream-50: #fdfaf2;
  --cream-100: #f7f1e3;
  --cream-200: #efe5cf;
  --gold: #b9832b;
  --gold-dark: #8a5f18;
  --brick: #8c3b2a;
  --ink: #1f2a22;
  --muted: #55625a;
  --line: #d9cfb8;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(19,48,31,.06), 0 6px 20px rgba(19,48,31,.08);
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream-50);
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--green-800); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2rem, 5vw + 1rem, 3.25rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 2.5vw + 1rem, 2.25rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
a { color: var(--green-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brick); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--gold); color: #000; padding: .6rem 1rem; z-index: 100; border-radius: 0 0 6px 6px; font-weight: 700; }
.skip-link:focus { top: 0; }

/* Placeholder marker – anything not yet confirmed by the trustees */
.placeholder {
  background: #fff4cc; border: 1px dashed var(--gold-dark); color: #5c430f;
  padding: 0 .3em; border-radius: 4px; font-size: .95em;
}
.placeholder-block { background: #fff8de; border: 2px dashed var(--gold-dark); border-radius: var(--radius); padding: 1rem 1.25rem; color: #4d3a10; }
.prototype-banner { background: var(--green-900); color: var(--cream-100); font-size: .875rem; text-align: center; padding: .4rem 1rem; }
.prototype-banner strong { color: #f3d79b; }

/* Header */
.site-header { background: var(--cream-100); border-bottom: 1px solid var(--line); position: relative; z-index: 50; }
@media (min-width: 60rem) { .site-header { position: sticky; top: 0; } }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--green-800); }
.brand svg { flex: none; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.1rem; line-height: 1.1; }
.brand-name small { display: block; font-family: var(--sans); font-weight: 600; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); margin-top: .2rem; }
.nav-toggle { display: inline-flex; align-items: center; gap: .5rem; background: var(--green-800); color: #fff; border: 0; border-radius: 8px; padding: .55rem .9rem; font: inherit; font-weight: 600; cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; content: ""; }
.nav-toggle-bars::before { position: absolute; top: -6px; } .nav-toggle-bars::after { position: absolute; top: 6px; }
.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--cream-100); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
.site-nav.is-open { display: block; }
.no-js .site-nav { display: block; position: static; box-shadow: none; }
.no-js .nav-toggle { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: .5rem 1.25rem 1rem; }
.site-nav a { display: block; padding: .7rem .25rem; color: var(--green-900); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }
.site-nav li:last-child a { border-bottom: 0; }
.site-nav a[aria-current="page"] { color: var(--brick); }
.site-nav a:hover { color: var(--brick); }

@media (min-width: 60rem) {
  .nav-toggle { display: none; }
  .site-nav, .no-js .site-nav { display: block; position: static; box-shadow: none; border: 0; background: transparent; }
  .site-nav ul { display: flex; gap: .15rem; padding: 0; align-items: center; }
  .site-nav a { border: 0; padding: .5rem .7rem; border-radius: 6px; font-size: .98rem; }
  .site-nav a[aria-current="page"] { background: var(--green-100); color: var(--green-800); }
  .site-nav .nav-cta a { background: var(--green-800); color: #fff; margin-left: .4rem; }
  .site-nav .nav-cta a:hover, .site-nav .nav-cta a[aria-current="page"] { background: var(--brick); color: #fff; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1.3rem; border-radius: 8px; font: inherit; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; line-height: 1.2; min-height: 44px; }
.btn-primary { background: var(--green-800); color: #fff; }
.btn-primary:hover { background: var(--green-900); color: #fff; }
.btn-gold { background: var(--gold); color: #1b1404; }
.btn-gold:hover { background: #a7741f; color: #1b1404; }
.btn-outline { border-color: currentColor; color: var(--green-800); background: transparent; }
.btn-outline:hover { background: var(--green-800); color: #fff; border-color: var(--green-800); }
.btn-light { border-color: var(--cream-100); color: var(--cream-50); background: transparent; }
.btn-light:hover { background: var(--cream-50); color: var(--green-900); }
.btn-whatsapp { background: #1f7a4a; color: #fff; }
.btn-whatsapp:hover { background: #17603a; color: #fff; }
.btn-sumup { background: #1b1b1b; color: #fff; }
.btn-sumup:hover { background: #000; color: #fff; }
.btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }

/* Hero */
.hero { position: relative; color: #fff; background: var(--green-900); overflow: hidden; }
.hero picture, .hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(19,48,31,.35) 0%, rgba(19,48,31,.55) 45%, rgba(19,48,31,.92) 100%); }
.hero-inner { position: relative; z-index: 1; padding-top: 9rem; padding-bottom: 3rem; }
.hero h1 { color: #fff; max-width: 18ch; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.hero p.lead { font-size: 1.2rem; max-width: 40rem; color: var(--cream-100); }
.eyebrow { display: inline-block; font-weight: 700; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: .6rem; }
.hero .eyebrow { color: #f3d79b; }
@media (min-width: 48rem) { .hero-inner { padding-top: 13rem; padding-bottom: 4.5rem; } }

.page-hero { background: var(--green-800); color: var(--cream-100); padding: 3rem 0 2.5rem; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: auto -10% -60% auto; width: 28rem; height: 28rem; border-radius: 50%; background: radial-gradient(circle, rgba(185,131,43,.25), transparent 70%); }
.page-hero h1 { color: #fff; }
.page-hero p { max-width: 44rem; font-size: 1.15rem; margin: 0; }
.page-hero .eyebrow { color: #f3d79b; }

/* Sections */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--cream-100); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-green { background: var(--green-800); color: var(--cream-100); }
.section-green h2, .section-green h3 { color: #fff; }
.section-green a:not(.btn) { color: #f3d79b; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.5rem; }
.section-head h2 { margin: 0; }
.prose { max-width: 44rem; }
.prose ul { padding-left: 1.2rem; } .prose li { margin-bottom: .35rem; }

.grid { display: grid; gap: 1.25rem; }
@media (min-width: 40rem) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60rem) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-2-wide { grid-template-columns: 1.15fr 1fr; gap: 3rem; align-items: center; } }
@media (min-width: 40rem) and (max-width: 59.99rem) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .35rem; }
.card-icon { width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--green-100); color: var(--green-700); display: grid; place-items: center; margin-bottom: .8rem; }
.photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--cream-200); }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
figure { margin: 0; }
figcaption { font-size: .9rem; color: var(--muted); padding: .6rem .2rem 0; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 2rem 0 0; padding: 0; list-style: none; }
@media (min-width: 48rem) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; text-align: center; }
.stats strong { display: block; font-family: var(--serif); font-size: 1.9rem; color: var(--brick); line-height: 1.1; }
.stats span { font-size: .92rem; color: var(--muted); }

/* Events */
.events-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.event { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; box-shadow: var(--shadow); }
.event-date { background: var(--green-800); color: #fff; border-radius: 8px; text-align: center; padding: .5rem .25rem; align-self: start; font-weight: 700; line-height: 1.1; }
.event-date .d { display: block; font-family: var(--serif); font-size: 1.7rem; }
.event-date .m { display: block; text-transform: uppercase; font-size: .78rem; letter-spacing: .1em; color: #f3d79b; }
.event h3 { margin: 0 0 .25rem; font-size: 1.2rem; }
.event-meta { color: var(--muted); font-size: .95rem; margin-bottom: .4rem; }
.event p { margin: 0 0 .4rem; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .15rem .5rem; border-radius: 999px; background: var(--green-100); color: var(--green-800); margin-right: .35rem; vertical-align: middle; }
.tag-example { background: #fff4cc; color: #5c430f; border: 1px dashed var(--gold-dark); }
.events-grid { grid-template-columns: 1fr; }
@media (min-width: 48rem) { .events-grid.teaser { grid-template-columns: repeat(3, 1fr); } .events-grid.teaser .event { grid-template-columns: 1fr; } .events-grid.teaser .event-date { justify-self: start; min-width: 4.5rem; } }
.notice { background: var(--cream-100); border-left: 4px solid var(--gold); padding: .9rem 1.1rem; border-radius: 0 8px 8px 0; margin-bottom: 1.25rem; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.filters button { font: inherit; font-weight: 600; border: 1px solid var(--line); background: #fff; color: var(--green-800); border-radius: 999px; padding: .4rem .9rem; cursor: pointer; min-height: 40px; }
.filters button[aria-pressed="true"] { background: var(--green-800); color: #fff; border-color: var(--green-800); }

/* Progress */
.progress-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.progress-figures { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem; margin-bottom: .75rem; }
.progress-figures .raised { font-family: var(--serif); font-size: 2.2rem; color: var(--brick); font-weight: 700; line-height: 1; }
.progress-track { height: 1.4rem; background: var(--cream-200); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--green-700), var(--green-600)); border-radius: 999px; width: 0; transition: width 1.2s ease-out; position: relative; }
.progress-fill::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(255,255,255,.12) 0 10px, transparent 10px 20px); }
.progress-note { font-size: .92rem; color: var(--muted); margin: .75rem 0 0; }

.works { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
@media (min-width: 48rem) { .works { grid-template-columns: repeat(2, 1fr); } }
.works li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem 1rem 3.2rem; position: relative; }
.works li::before { content: ""; position: absolute; left: 1.1rem; top: 1.2rem; width: 1.2rem; height: 1.2rem; border-radius: 50%; border: 2px solid var(--green-600); }
.works li.done::before { background: var(--green-600) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2'/%3E%3C/svg%3E") center/80% no-repeat; }
.works li.progress::before { background: linear-gradient(90deg, var(--gold) 50%, transparent 50%); border-color: var(--gold); }
.works strong { display: block; color: var(--green-800); }
.works span { font-size: .95rem; color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
caption { text-align: left; font-weight: 700; padding: 0 0 .5rem; color: var(--muted); }
th, td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
thead th { background: var(--green-800); color: #fff; font-weight: 700; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
td.rate { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--brick); white-space: nowrap; }

/* Forms */
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.field { margin-bottom: 1.1rem; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: .3rem; color: var(--green-900); }
.field .hint { display: block; font-size: .9rem; color: var(--muted); font-weight: 400; margin-top: -.15rem; margin-bottom: .35rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="time"], select, textarea {
  width: 100%; font: inherit; padding: .7rem .8rem; border: 1px solid #b9ad92; border-radius: 8px; background: var(--cream-50); color: var(--ink); min-height: 44px;
}
textarea { min-height: 7rem; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--green-700); background: #fff; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--brick); background: #fdf1ee; }
.error-msg { color: var(--brick); font-size: .92rem; font-weight: 600; margin-top: .3rem; }
fieldset { border: 0; padding: 0; margin: 0 0 1.1rem; }
.radio-cards { display: grid; gap: .6rem; }
@media (min-width: 40rem) { .radio-cards { grid-template-columns: repeat(3, 1fr); } }
.radio-card { position: relative; }
.radio-card input { position: absolute; opacity: 0; inset: 0; }
.radio-card label { display: block; height: 100%; border: 2px solid var(--line); border-radius: 8px; padding: .75rem .9rem; cursor: pointer; font-weight: 600; background: var(--cream-50); margin: 0; }
.radio-card label span { display: block; font-weight: 400; font-size: .9rem; color: var(--muted); }
.radio-card label b { color: var(--brick); }
.radio-card input:checked + label { border-color: var(--green-700); background: var(--green-100); }
.radio-card input:focus-visible + label { outline: 3px solid var(--gold); outline-offset: 2px; }
.row-2 { display: grid; gap: 0 1rem; }
@media (min-width: 30rem) { .row-2 { grid-template-columns: 1fr 1fr; } }
.cost-box { background: var(--green-800); color: var(--cream-100); border-radius: var(--radius); padding: 1.1rem 1.25rem; margin: .5rem 0 1.25rem; }
.cost-box .amount { font-family: var(--serif); font-size: 2.2rem; font-weight: 700; color: #fff; line-height: 1.1; }
.cost-box .breakdown { font-size: .95rem; }
.form-status { margin-top: 1rem; }
.summary { background: var(--cream-100); border: 2px solid var(--green-700); border-radius: var(--radius); padding: 1.5rem; }
.summary dl { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: 0 0 1rem; }
.summary dt { font-weight: 700; color: var(--green-900); }
.summary dd { margin: 0; overflow-wrap: anywhere; }
.summary .total { font-family: var(--serif); font-size: 1.5rem; color: var(--brick); font-weight: 700; }


/* CTA band */
.cta-band { display: grid; gap: 1.25rem; }
@media (min-width: 48rem) { .cta-band { grid-template-columns: 1fr 1fr; } }
.cta-card { border-radius: var(--radius); padding: 1.75rem; }
.cta-card.light { background: var(--cream-100); color: var(--ink); }
.cta-card.light h3 { color: var(--green-800); }
.cta-card.dark { background: var(--green-900); border: 1px solid rgba(255,255,255,.15); }

/* Footer */
.site-footer { background: var(--green-900); color: var(--cream-200); padding: 3rem 0 1.5rem; font-size: .97rem; }
.site-footer a { color: #f3d79b; }
.site-footer h2 { font-size: 1.1rem; color: #fff; margin-bottom: .6rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .35rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 2rem; padding-top: 1.25rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; font-size: .9rem; }
.charity-line { font-weight: 600; color: #fff; }
.site-footer .placeholder { color: #5c430f; }

@media print { .site-header, .site-footer, .prototype-banner, .btn-row { display: none; } }

/* Tables keep dark text even inside green sections */
table { color: var(--ink); }
/* Keep focused/linked targets clear of the sticky header */
[id], h2[tabindex] { scroll-margin-top: 6rem; }

/* ---------- Donate button in header ---------- */
.site-nav .nav-donate a { color: #1b1404; }
@media (min-width: 60rem) {
  .site-nav .nav-donate a { background: var(--gold); color: #1b1404; margin-left: .3rem; }
  .site-nav .nav-donate a:hover, .site-nav .nav-donate a[aria-current="page"] { background: #d9ab57; color: #1b1404; }
}
@media (min-width: 60rem) { .site-nav a { white-space: nowrap; } }
@media (min-width: 60rem) and (max-width: 90rem) {
  .site-nav ul { gap: 0; }
  .site-nav a { padding: .45rem .45rem; font-size: .9rem; }
  .site-nav .nav-cta a, .site-nav .nav-donate a { margin-left: .2rem; }
  .brand svg { width: 38px; height: 38px; }
  .brand-name { font-size: .98rem; }
}
@media (min-width: 60rem) and (max-width: 72rem) {
  .brand-name small { display: none; }
  .site-nav a { padding: .4rem .32rem; font-size: .84rem; }
}

/* ---------- Availability calendar ---------- */
.calendar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem; }
.cal-layout { display: grid; gap: 1.25rem; }
@media (min-width: 56rem) { .cal-layout { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; } }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .75rem; }
.cal-head h3 { margin: 0; font-size: 1.35rem; }
.cal-head .btn { min-height: 40px; padding: .4rem .8rem; }
.cal-head .btn[disabled] { opacity: .4; cursor: not-allowed; }
.cal-grid { table-layout: fixed; border: 0; }
.cal-grid th { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: .3rem 0; text-align: center; background: none; border: 0; }
.cal-grid td { padding: 3px; border: 0; }
.cal-day { width: 100%; aspect-ratio: 1 / 1; min-height: 40px; border-radius: 8px; border: 2px solid transparent; font: inherit; font-weight: 700; cursor: pointer; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--ink); }
.cal-day:hover:not([disabled]) { border-color: var(--green-700); }
.cal-day.is-selected { border-color: var(--ink); box-shadow: 0 0 0 2px #fff inset; }
.cal-day.is-today .cal-num { text-decoration: underline; text-underline-offset: 3px; }
.cal-mark { width: 14px; height: 4px; border-radius: 2px; }
.is-free { background: #e6f2e7; }
.is-partly { background: #fde9b8; } .is-partly .cal-mark { background: #8a5f18; }
.is-full { background: #8c3b2a; color: #fff; } .is-full .cal-mark { background: #fff; width: 18px; }
.is-provisional { background: repeating-linear-gradient(45deg, #e7e1f5, #e7e1f5 6px, #d6ccee 6px, #d6ccee 12px); } .is-provisional .cal-mark { background: #4b3a86; height: 4px; width: 4px; border-radius: 50%; box-shadow: 6px 0 0 #4b3a86, -6px 0 0 #4b3a86; }
.is-past { background: transparent; color: #8a8f86; font-weight: 400; cursor: default; }
.cal-legend { display: flex; flex-wrap: wrap; gap: .5rem 1rem; list-style: none; padding: 0; margin: 1rem 0 0; font-size: .92rem; }
.cal-legend li { display: flex; align-items: center; gap: .4rem; }
.cal-legend .sw { width: 1.3rem; height: 1.3rem; border-radius: 4px; border: 1px solid var(--line); display: inline-block; }
.cal-panel { background: var(--cream-100); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.cal-panel h3 { font-size: 1.2rem; }
.cal-slots { list-style: none; padding: 0; margin: 0 0 .75rem; }
.cal-slots li { background: #fff; border-left: 4px solid var(--brick); padding: .5rem .75rem; margin-bottom: .4rem; border-radius: 0 6px 6px 0; }
.cal-slots li.slot-provisional { border-left-color: #4b3a86; }
.cal-small { font-size: .9rem; color: var(--muted); }
.tag-provisional { background: #e7e1f5; color: #3b2d6b; }
.clash-warning { background: #f9e1dc; border-left: 4px solid var(--brick); padding: .8rem 1rem; border-radius: 0 8px 8px 0; margin: 0 0 1.1rem; }

/* ---------- Donate page ---------- */
.amounts { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: .5rem 0 1rem; }
.amounts li { background: var(--green-100); color: var(--green-800); font-weight: 700; border-radius: 999px; padding: .35rem .9rem; }
.donate-box { border-top: 5px solid var(--gold); }
.bank-details { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; } .bank-details dt { font-weight: 700; } .bank-details dd { margin: 0; }

/* Mailing list forms */
.check { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .5rem; }
.check input[type="checkbox"] { width: 1.3rem; height: 1.3rem; margin: .15rem 0 0; flex: none; accent-color: var(--green-700); }
.check label { font-weight: 400 !important; margin: 0 !important; color: var(--ink) !important; }
.field.check.consent { margin-bottom: .3rem; }
.field.check.consent label { font-weight: 600 !important; }
.optional { font-weight: 400; color: var(--muted); }
.form-small { font-size: .92rem; color: var(--muted); }
.notice-ok { border-left-color: var(--green-600); background: var(--green-100); }
.notice-error { border-left-color: var(--brick); background: #f9e1dc; }
.signup-mini { text-align: left; }
.signup-mini .form-status { margin-top: .8rem; }
