/* Save the Plough
   Palette taken from the place: Suffolk pink limewash, pub-sign green,
   OS map road yellow, plain white paper. */
:root {
  --paper: #ffffff;
  --ink: #222222;
  --ink-soft: #505050;
  --green: #1e5b47;
  --green-dark: #123b2e;
  --pink: #f3d4c8;
  --pink-light: #fbeee8;
  --mist: #eef3f1;
  --rose: #8a3b4c;
  --road: #f2c12e;
  --focus: #ffd23f;
  --line: #d8d2cc;
  --field: #e4ecd9;
  --field-dark: #c9d9b8;
  --error: #b3141f;
  --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 40rem;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.1875rem;
  line-height: 1.6;
  font-feature-settings: "kern" 1;
}
img, svg { max-width: 100%; height: auto; }
main { display: block; }
main:focus { outline: none; }

/* Type */
h1, h2, h3, .serif {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--green-dark);
}
h1 { font-size: clamp(2.2rem, 3.2vw + 1.2rem, 3.6rem); margin: 0 0 var(--space-3); }
h2 { font-size: clamp(1.6rem, 1.4vw + 1.1rem, 2.2rem); margin: var(--space-5) 0 var(--space-2); }
h3 { font-size: 1.35rem; margin: var(--space-4) 0 var(--space-1); }
h2:first-child, h3:first-child { margin-top: 0; }
p, ul, ol, dl { margin: 0 0 var(--space-2); }
ul, ol { padding-left: 1.4rem; }
li { margin-bottom: 0.4rem; }
.lead { font-size: 1.35rem; line-height: 1.5; }
.small { font-size: 1rem; }
.muted { color: var(--ink-soft); }
strong { font-weight: 700; }
blockquote { margin: 0; }
abbr { text-decoration: none; }

a { color: var(--green); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--green-dark); text-decoration-thickness: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible, .button:focus-visible {
  outline: 3px solid transparent;
  background: var(--focus);
  color: #0b0c0c;
  box-shadow: 0 -2px var(--focus), 0 4px #0b0c0c;
  text-decoration: none;
}

/* Layout */
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 40rem) { .wrap { padding: 0 1.5rem; } }
.prose { max-width: var(--measure); }
.section { padding: var(--space-5) 0; }
.section-tight { padding: var(--space-4) 0; }
.band { background: var(--paper); }
.band-pink { background: var(--paper); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--focus); color: #0b0c0c; padding: 0.75rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

.review-banner { background: #2b2b2b; color: #fff; font-size: 0.95rem; }
.review-banner p { max-width: 72rem; margin: 0 auto; padding: 0.5rem 1rem; }
@media (min-width: 40rem) { .review-banner p { padding: 0.5rem 1.5rem; } }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); padding-top: 0.9rem; padding-bottom: 0.9rem; flex-wrap: wrap; }
.wordmark { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--green-dark); }
.wordmark:hover { text-decoration: none; color: var(--green); }
.wordmark-mark { width: 4.6rem; height: auto; color: var(--green); flex: none; }
@media (min-width: 40rem) { .wordmark-mark { width: 5.6rem; } }
.wordmark-text { display: flex; flex-direction: column; gap: 0.15rem; }
.wordmark-name { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; line-height: 1.1; }
.wordmark-place { font-family: var(--sans); font-size: 0.9rem; line-height: 1.2; color: var(--ink-soft); }
.home .wordmark-place { color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,0.6); }
@media (max-width: 24rem) { .wordmark-name { font-size: 1.15rem; } .wordmark-place { font-size: 0.82rem; } }


/* Buttons */
.button {
  display: inline-block; font: inherit; font-weight: 700; line-height: 1.2;
  color: #fff; background: var(--green); border: 2px solid transparent; border-radius: 4px;
  padding: 0.8rem 1.25rem; text-decoration: none; cursor: pointer;
  box-shadow: 0 3px 0 var(--green-dark); margin-bottom: 3px;
}
.button:hover { background: var(--green-dark); color: #fff; text-decoration: none; }
.button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--green-dark); }
.button-small { padding: 0.5rem 0.9rem; font-size: 1rem; }
.button-secondary { background: #fff; color: var(--green-dark); border-color: var(--green-dark); box-shadow: 0 3px 0 var(--green-dark); }
.button-secondary:hover { background: var(--mist); color: var(--green-dark); }
.button-row { display: flex; flex-wrap: wrap; gap: 1rem 1.25rem; align-items: center; margin-top: var(--space-3); }
.text-link { font-weight: 700; }

/* Hero (home): one dark green block, with the photo fading in from the right */
.hero { position: relative; background: var(--green-dark); color: #fff; overflow: hidden; }
.hero-media { position: relative; height: 17rem; }
.hero-media picture, .hero-media img { display: block; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 50% 45%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,59,46,0.88) 0%, rgba(18,59,46,0.5) 22%, rgba(18,59,46,0) 40%, rgba(18,59,46,0) 55%, var(--green-dark) 100%);
}
.hero-content { position: relative; z-index: 1; padding-top: var(--space-2); padding-bottom: var(--space-5); }
.hero-text { max-width: 38rem; }
@media (min-width: 56rem) {
  .hero-media { position: absolute; top: 0; right: 0; bottom: 0; width: 60%; height: auto; }
  .hero-media::after {
    background:
      linear-gradient(90deg, var(--green-dark) 0%, rgba(18,59,46,0.75) 22%, rgba(18,59,46,0.1) 60%, rgba(18,59,46,0) 100%),
      linear-gradient(180deg, rgba(18,59,46,0.65) 0%, rgba(18,59,46,0) 28%);
  }
  .hero-content { min-height: 42rem; display: flex; align-items: center; padding-top: 7.5rem; padding-bottom: var(--space-5); }
}
.promise-intro { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.35rem; line-height: 1.35; letter-spacing: 0; color: var(--pink); margin-bottom: var(--space-1); text-shadow: none; }
.ask-intro { margin-bottom: 0.5rem; }
.ask-list { list-style: none; padding: 0; margin: 0 0 var(--space-2); }
.ask-list li { position: relative; padding-left: 1.6rem; font-size: 1.3rem; font-weight: 700; line-height: 1.4; margin-bottom: 0.5rem; }
.ask-list li::before { content: ""; position: absolute; left: 0.1rem; top: 0.55rem; width: 0.7rem; height: 0.7rem; background: var(--road); border-radius: 2px; }
.promise { margin: 0 0 var(--space-3); font: inherit; color: inherit; }
.ask { margin: 0 0 var(--space-2); font-size: 1.3rem; font-weight: 700; line-height: 1.4; color: #fff; }
.hero .lead.ask-intro { color: var(--road); }
.status-action { margin: 0 0 var(--space-2); }
.promise-quote {
  display: block; font-family: var(--serif); font-weight: 700; color: #fff;
  font-size: clamp(2.8rem, 4.4vw + 1rem, 5rem); line-height: 1; letter-spacing: -0.02em;
  margin: 0; position: relative; text-shadow: 0 2px 18px rgba(0,0,0,0.25);
}
.promise-quote .q-open { position: absolute; left: -0.48em; top: 0; color: var(--pink); }
@media (max-width: 40rem) { .promise-quote .q-open { position: static; } }
.promise-quote .q-close { color: var(--pink); }
.hero .lead { color: #fff; }
.hero-note { color: rgba(255,255,255,0.88); margin: 0.6rem 0 0; font-size: 0.95rem; }
.hero-action { margin-top: var(--space-3); }
.button-cta { background: var(--road); color: #0b0c0c; box-shadow: 0 3px 0 #8a6d10; }
.button-cta:hover { background: #ffd54f; color: #0b0c0c; }
.button-cta:active { box-shadow: 0 1px 0 #8a6d10; }
.button-cta:focus-visible { background: #0b0c0c; color: #ffd23f; box-shadow: 0 0 0 3px #fff; }

/* Home page: the header sits on top of the hero */
.home .site-header { position: absolute; left: 0; right: 0; z-index: 3; background: transparent; border-bottom: 0; }
.home .wordmark, .home .wordmark:hover { color: #fff; }
.home .wordmark-mark { color: #fff; }
.home .header-cta { background: #fff; color: var(--green-dark); box-shadow: 0 3px 0 rgba(0,0,0,0.35); }
.home .header-cta:hover { background: var(--mist); color: var(--green-dark); }


/* Concern list (home) */
.concerns { list-style: none; padding: 0; margin: var(--space-3) 0 0; display: grid; gap: var(--space-3) var(--space-4); }
@media (min-width: 50rem) { .concerns { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.concerns li { margin: 0; padding-top: var(--space-2); border-top: 3px solid var(--green); }
.concerns h3 { margin: 0 0 0.5rem; font-size: 1.3rem; }
.concerns p { margin-bottom: 0.5rem; }

/* Figures */
figure { margin: var(--space-3) 0; }
figure img { display: block; width: 100%; border-radius: 4px; }
figcaption { font-size: 0.95rem; color: var(--ink-soft); margin-top: 0.5rem; line-height: 1.45; }

.source { font-size: 1rem; color: var(--ink-soft); margin-top: 0.25rem; }
.source a { color: var(--ink-soft); }
.source a:hover { color: var(--green-dark); }

/* Page header */
.page-head { padding: var(--space-4) 0 var(--space-3); border-bottom: 1px solid var(--line); background: var(--paper); }
.page-head h1 { margin-bottom: var(--space-2); }
.page-head .lead { max-width: 44rem; margin-bottom: 0; }
.page-body { padding: var(--space-4) 0 var(--space-5); }

/* CTA band */
.cta-band { background: var(--paper); border-top: 1px solid var(--line); padding: var(--space-5) 0; }
.cta-band h2 { margin-top: 0; }
.cta-band p { max-width: 38rem; }

/* Forms (patterns from the GOV.UK Design System, own styling) */
.form-group { margin-bottom: var(--space-4); }
.form-group-error { border-left: 5px solid var(--error); padding-left: 1rem; }
.label, legend { display: block; font-weight: 700; margin-bottom: 0.35rem; font-size: 1.2rem; }
legend { padding: 0; }
.label-page { font-family: var(--serif); font-size: clamp(1.8rem, 2vw + 1.2rem, 2.6rem); line-height: 1.15; color: var(--green-dark); margin-bottom: var(--space-2); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.hint { color: var(--ink-soft); margin-bottom: 0.6rem; font-size: 1.05rem; }
.error-message { color: var(--error); font-weight: 700; margin-bottom: 0.5rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  font: inherit; color: var(--ink); width: 100%; max-width: 32rem; padding: 0.55rem 0.65rem;
  border: 2px solid #3d3d3d; border-radius: 0; background: #fff;
}
textarea { max-width: 40rem; min-height: 9rem; line-height: 1.5; resize: vertical; }
textarea.tall { min-height: 14rem; }
.input-short { max-width: 10rem !important; }
.input-xshort { max-width: 5rem !important; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--focus); outline-offset: 0; box-shadow: inset 0 0 0 2px #0b0c0c; }
.input-error { border-color: var(--error) !important; }
.choices { display: grid; gap: 0.6rem; }
.choice-item { position: relative; display: flex; align-items: flex-start; gap: 0.75rem; }
.choice-item input { width: 1.6rem; height: 1.6rem; margin: 0.1rem 0 0; flex: none; accent-color: var(--green); }
.choice-item label { cursor: pointer; }
.choice-item .hint { margin: 0.1rem 0 0; }
.conditional { margin: 0.5rem 0 0 0.8rem; padding-left: 1.6rem; border-left: 4px solid var(--line); }
.error-summary { border: 5px solid var(--error); padding: var(--space-3); margin-bottom: var(--space-4); max-width: 46rem; }
.error-summary:focus { outline: 3px solid var(--focus); }
.error-summary h2 { margin: 0 0 0.75rem; font-size: 1.5rem; color: var(--ink); }
.error-summary ul { list-style: none; padding: 0; margin: 0; }
.error-summary a { color: var(--error); font-weight: 700; }
.back-link { display: inline-block; margin-bottom: var(--space-3); color: var(--ink); font-size: 1.05rem; }
.back-link::before { content: ""; display: inline-block; width: 0.45rem; height: 0.45rem; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-right: 0.45rem; vertical-align: 0.1rem; }
.step-count { color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 0.25rem; }
.summary-list { margin: 0 0 var(--space-4); max-width: 50rem; }
.summary-list > div { display: grid; gap: 0.25rem 1.5rem; border-bottom: 1px solid var(--line); padding: 0.8rem 0; }
@media (min-width: 45rem) { .summary-list > div { grid-template-columns: 14rem 1fr auto; } }
.summary-list dt { font-weight: 700; }
.summary-list dd { margin: 0; white-space: pre-line; }
.summary-list dd.actions { text-align: left; }
.panel { background: var(--green); color: #fff; padding: var(--space-4) var(--space-3); max-width: 46rem; margin-bottom: var(--space-4); }
.panel h1 { color: #fff; margin-bottom: 0.75rem; }
.panel p { font-size: 1.25rem; margin: 0; }
.draft-section { margin-bottom: var(--space-4); }
.draft-section .label { font-size: 1.15rem; }
.notice { border-left: 6px solid var(--road); background: #fff9e3; padding: 1rem 1.25rem; max-width: 46rem; margin: var(--space-3) 0; }
.notice p:last-child { margin-bottom: 0; }
.js-only { display: none; }
.js .js-only { display: block; }
.js .no-js-only { display: none; }
[hidden] { display: none !important; }

/* Two column content with side panel */
.with-aside { display: grid; gap: var(--space-4); }
@media (min-width: 62rem) { .with-aside { grid-template-columns: minmax(0, 40rem) minmax(0, 1fr); } }
.aside-box { border-top: 4px solid var(--green); padding-top: var(--space-2); }
.aside-box h2 { font-size: 1.35rem; margin-top: 0; }

table { border-collapse: collapse; width: 100%; max-width: 46rem; margin: var(--space-2) 0 var(--space-3); font-size: 1.05rem; }
th, td { text-align: left; padding: 0.6rem 0.75rem 0.6rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 700; }

/* Footer */
.site-footer { background: var(--green-dark); color: #fff; margin-top: 0; padding: var(--space-4) 0 var(--space-3); }
.site-footer a { color: #fff; }
.site-footer a:focus-visible { color: #0b0c0c; }
.footer-inner { display: grid; gap: var(--space-3); }
@media (min-width: 50rem) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) { .footer-inner { grid-template-columns: 1.1fr 1.2fr 0.8fr; gap: var(--space-4); } }
.footer-name { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.75rem; }
.footer-mark { width: 5rem; height: auto; color: #fff; flex: none; }
.footer-about p { max-width: 30rem; }
.footer-nav { display: block; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 0.5rem; }
.footer-updated { grid-column: 1 / -1; font-size: 0.95rem; opacity: 0.9; border-top: 1px solid rgba(255,255,255,0.25); padding-top: var(--space-2); margin: 0; }

@media print {
  .review-banner, .header-cta, .site-footer nav, .cta-band, .button-row { display: none; }
  a { color: inherit; }
}

.visually-hidden {
  position: absolute !important; width: 1px !important; height: 1px !important; margin: 0 !important; padding: 0 !important;
  overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; border: 0 !important; white-space: nowrap !important;
}
legend .label-page { margin-bottom: 0.5rem; }
#complaint-app p, #complaint-app .error-summary { max-width: 46rem; }
.prose-block .prose { max-width: var(--measure); }

/* Simple version additions */
.header-cta { margin-left: auto; }
.button-large { font-size: 1.3rem; padding: 0.95rem 1.6rem; }
.how-list { max-width: 40rem; padding-left: 1.6rem; }
.how-list li { margin-bottom: 0.3rem; }
.form-heading { margin-top: var(--space-4); }
.field-pair { display: grid; gap: 0 var(--space-3); max-width: 40rem; }
@media (min-width: 40rem) { .field-pair { grid-template-columns: 1fr 1fr; } }
.choices-inline { display: flex; gap: 0.75rem 2rem; flex-wrap: wrap; }
.draft-block { border-left: 4px solid var(--field-dark); padding: 0.25rem 0 0.25rem 1.1rem; margin: 0 0 var(--space-3); max-width: 46rem; }
.draft-block.form-group-error { border-left-color: var(--error); }
.draft-block h3 { font-family: var(--sans); font-size: 1.1rem; color: var(--ink); margin: 0 0 0.4rem; line-height: 1.35; }
.draft-label { display: block; font-weight: 700; font-size: 1.1rem; color: var(--ink); margin: 0 0 0.4rem; line-height: 1.35; }
.edit-cue { display: inline-block; font: inherit; font-size: 0.95rem; color: var(--green); background: none; border: 0; padding: 0.15rem 0; margin: 0 0 0.3rem; cursor: pointer; text-decoration: underline; text-underline-offset: 0.18em; }
.edit-cue:hover { color: var(--green-dark); text-decoration-thickness: 2px; }
.revert-button { font-size: 0.95rem; margin: 0 0 0.5rem; }
textarea.draft-input { width: 100%; max-width: 46rem; min-height: 6rem; margin-bottom: 0.5rem; background: #fff; border: 2px solid var(--green); border-radius: 4px; padding: 0.6rem 0.75rem; overflow-y: auto; resize: none; }
textarea.draft-input:hover { border-color: var(--green-dark); }
.own-words { margin-top: var(--space-4); max-width: 46rem; }
.tick-group { max-width: 46rem; }
.submit-note { max-width: 46rem; font-size: 0.95rem; color: var(--ink-soft); margin-top: var(--space-2); }
.link-button { font: inherit; font-size: 1.05rem; color: var(--green); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; }
.link-button:hover { color: var(--green-dark); text-decoration-thickness: 3px; }
.fixed-details { margin: 0 0 var(--space-4); max-width: 50rem; }
.fixed-details summary { cursor: pointer; color: var(--green); font-weight: 700; padding: 0.4rem 0; }
.fixed-details .summary-list { margin-top: 0.5rem; }
@media (min-width: 45rem) { .fixed-details .summary-list > div { grid-template-columns: 14rem 1fr; } }
.share-status { margin-top: var(--space-2); font-weight: 700; }
@media (max-width: 40rem) { .home .header-cta { display: none; } }
@media (max-width: 75rem) { .promise-quote .q-open { position: static; } }
@media (min-width: 56rem) and (max-width: 72rem) { .hero-media { width: 52%; } }

/* OpenStreetMap figure */
.osm-map { margin: var(--space-3) 0 var(--space-4); }
.osm-link { display: block; text-decoration: none; }
.osm-link svg { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; }
.osm-link:focus-visible svg { outline: 3px solid var(--focus); outline-offset: 2px; }
.osm-wide { max-width: 1100px; }
.osm-narrow { display: none !important; max-width: 34rem; }
@media (max-width: 50rem) { .osm-wide { display: none !important; } .osm-narrow { display: block !important; } }
.osm-marks text { paint-order: stroke; stroke: #fff; stroke-width: 5px; stroke-linejoin: round; }
.osm-name { font-family: var(--serif); font-weight: 700; font-size: 22px; fill: var(--green-dark); }
.osm-note { font-family: var(--sans); font-weight: 700; font-size: 19px; fill: var(--rose); }
.osm-dest { font-family: var(--sans); font-weight: 700; font-size: 18px; fill: #222; }
.osm-dist { font-family: var(--sans); font-size: 16px; fill: #222; }
.osm-pin { fill: var(--green); stroke: #fff; stroke-width: 3; }
.osm-bend { fill: none; stroke: var(--rose); stroke-width: 3; stroke-dasharray: 6 5; }
.osm-leader { fill: none; stroke: var(--rose); stroke-width: 2; }

/* What is happening: summary, then the dated facts */
.status-summary { font-size: 1.25rem; line-height: 1.55; margin-bottom: var(--space-2); }
.facts-details summary { cursor: pointer; color: var(--green); font-weight: 700; padding: 0.3rem 0; }
.facts-details summary:hover { color: var(--green-dark); text-decoration: underline; }
.facts { list-style: none; padding: 0; margin: var(--space-2) 0 0; }
.facts li { display: grid; gap: 0.1rem 1.25rem; padding: 0.7rem 0; border-top: 1px solid var(--line); margin: 0; }
@media (min-width: 40rem) { .facts li { grid-template-columns: 9.5rem 1fr; } }
.fact-date { font-family: var(--serif); font-style: italic; color: var(--rose); }
.fact-text .source { display: block; margin-top: 0.15rem; font-size: 0.95rem; }
.concerns + .osm-map { margin-top: var(--space-4); }

/* What is happening: text with the pub sign beside it */
.happening { display: grid; gap: var(--space-3) var(--space-5); align-items: start; }
@media (min-width: 56rem) { .happening { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.happening-figure { margin: 0; }
.happening-figure img { border-radius: 4px; }

/* Footer sign-up */
.footer-heading { font-family: var(--serif); font-size: 1.35rem; color: #fff; margin: 0 0 0.5rem; }
.footer-signup p { max-width: 28rem; }
.footer-label { display: block; font-weight: 700; margin-bottom: 0.35rem; }
.signup-row { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: flex-start; }
.signup-row input { flex: 1 1 14rem; max-width: 22rem; border-color: #fff; }
.signup-row .button { margin: 0; }
.signup-status { font-weight: 700; margin: 0.6rem 0 0; min-height: 0; }
.signup-status:empty { display: none; }
.footer-small { font-size: 0.95rem; margin-top: 0.6rem; }

/* Admin: evidence timeline (private pages) */
.admin-head { background: #eef2ee; }
.admin-badge { display: inline-block; font-size: 0.9rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; background: var(--rose); padding: 0.2rem 0.6rem; border-radius: 3px; margin-bottom: var(--space-2); }
.admin-links { font-size: 1.2rem; }
.notice.needed h2 { font-size: 1.3rem; margin: 0 0 0.5rem; }
.ev-how { margin: var(--space-3) 0; max-width: 46rem; }
.ev-how summary { cursor: pointer; font-weight: 700; color: var(--green); }
.ev-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: var(--space-3) 0 var(--space-4); }
.chip { font: inherit; font-size: 0.95rem; border: 2px solid var(--green); background: #fff; color: var(--green-dark); border-radius: 999px; padding: 0.3rem 0.85rem; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--green); color: #fff; }
.timeline-ev { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline-ev::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0.55rem; width: 3px; background: var(--field-dark); }
@media (min-width: 56rem) { .timeline-ev::before { left: 12.6rem; } }
.tl-month { margin: var(--space-4) 0 var(--space-2); padding-left: 2.25rem; position: relative; }
@media (min-width: 56rem) { .tl-month { padding-left: 14.5rem; } }
.tl-month h2 { font-size: 1.6rem; margin: 0; }
.ev-item { position: relative; display: grid; gap: 0.25rem var(--space-3); margin: 0 0 var(--space-3); padding-left: 2.25rem; }
@media (min-width: 56rem) { .ev-item { grid-template-columns: 11rem minmax(0, 46rem); padding-left: 0; gap: 0 3.5rem; } }
.ev-item::before { content: ""; position: absolute; left: 0.15rem; top: 0.45rem; width: 0.85rem; height: 0.85rem; border-radius: 50%; background: #fff; border: 3px solid var(--green); }
@media (min-width: 56rem) { .ev-item::before { left: 12.2rem; } }
.ev-statement::before { border-color: var(--rose); background: var(--rose); }
.ev-activity::before { background: var(--green); }
.ev-date { font-family: var(--serif); font-style: italic; color: var(--rose); margin: 0; line-height: 1.35; }
@media (min-width: 56rem) { .ev-date { text-align: right; padding-top: 0.15rem; } }
.ev-card { border: 1px solid var(--line); border-radius: 6px; padding: 0.9rem 1.1rem; background: #fff; }
.ev-statement .ev-card { border-left: 4px solid var(--rose); }
.ev-kind { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); margin: 0 0 0.2rem; }
.ev-card h3 { font-family: var(--sans); font-size: 1.15rem; color: var(--ink); margin: 0 0 0.4rem; line-height: 1.35; }
.ev-card p { margin-bottom: 0.5rem; font-size: 1.05rem; }
.ev-meta { font-size: 0.98rem !important; color: var(--ink-soft); }
.ev-flag { background: #fff9e3; border-left: 4px solid var(--road); padding: 0.4rem 0.7rem; font-size: 0.98rem !important; }
.ev-links { list-style: none; padding: 0; margin: 0.4rem 0 0; font-size: 0.98rem; }
.ev-links li { margin-bottom: 0.25rem; padding-left: 1.1rem; position: relative; overflow-wrap: anywhere; }
.ev-links li::before { content: "\2192"; position: absolute; left: 0; color: var(--green); }
.ev-imgs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.6rem; }
.ev-imgs img { width: auto; height: 7.5rem; border: 1px solid var(--line); border-radius: 3px; }
.ev-item[hidden], .tl-month[hidden] { display: none !important; }
.ev-doc { padding-top: var(--space-3); padding-bottom: var(--space-5); }
.ev-doc-title { font-size: clamp(1.6rem, 2vw + 1rem, 2.2rem); }
.ev-headers > div { grid-template-columns: 8rem 1fr !important; }
.ev-pre { white-space: pre-wrap; font-family: var(--sans); font-size: 1.02rem; line-height: 1.55; background: #f7f7f5; border: 1px solid var(--line); padding: 1rem; border-radius: 4px; max-width: 50rem; overflow-wrap: anywhere; }
.attention { border: 2px solid var(--road); background: #fffbea; border-radius: 6px; padding: 0.75rem 1.1rem; margin: 0 0 var(--space-3); max-width: 52rem; }
.attention summary { cursor: pointer; font-family: var(--serif); font-weight: 700; font-size: 1.4rem; color: var(--green-dark); }
.attention h2 { font-family: var(--sans); font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); margin: var(--space-3) 0 0.5rem; }
.attention ul { margin: 0; padding-left: 1.2rem; }
.attention li { margin-bottom: 0.6rem; font-size: 1.02rem; }
.att-note { color: var(--ink-soft); font-size: 0.97rem; }

/* Busy buttons: a spinner shows the form is working, not stuck. */
.button.is-busy { cursor: progress; opacity: 0.85; }
.button.is-busy::before {
  content: ""; display: inline-block; width: 1em; height: 1em; margin-right: 0.55em; vertical-align: -0.15em;
  border: 0.18em solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: button-spin 0.8s linear infinite;
}
@keyframes button-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .button.is-busy::before { animation-duration: 2.4s; } }

/* Avoid a single word on the last line of short paragraphs and list items. */
p, li { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }

@media (prefers-reduced-motion: reduce) { .button.is-busy::before { animation: none; } }
