/* Look of the previous site: red/grey/gold, Oswald headings, Open Sans text.
   Change the colours and fonts here; everything below uses these tokens. */

@font-face { font-family: 'Open Sans'; font-weight: 400; font-display: swap; src: url('fonts/open-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Open Sans'; font-weight: 700; font-display: swap; src: url('fonts/open-sans-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Oswald'; font-weight: 400; font-display: swap; src: url('fonts/oswald-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Oswald'; font-weight: 600; font-display: swap; src: url('fonts/oswald-latin-600-normal.woff2') format('woff2'); }

:root {
  --red: #ff0000;
  --grey: #666;
  --gold: #c3a45c;
  --light: #eee;
  --bg: #fff;
  --fg: #222;
  --muted: #666;
  --link: #0000ff;
  --ok-bg: #dcfce7;
  --err-bg: #fee2e2;
  --placeholder: linear-gradient(135deg, #eee, #ddd);
  --font-text: 'Open Sans', system-ui, sans-serif;
  --font-head: 'Oswald', 'Arial Narrow', sans-serif;
  --width: 1366px;
  color-scheme: light;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.5 var(--font-text); -webkit-font-smoothing: antialiased; }
/* Footer stays at the bottom on short pages */
body:not(.admin) { display: flex; flex-direction: column; min-height: 100vh; }
body:not(.admin) > main { flex: 1 0 auto; width: 100%; }
/* Desktop: the page content floats as a white sheet on a light grey background */
@media (min-width: 901px) {
  body:not(.admin) > main { width: calc(100% - 48px); max-width: var(--width); margin: 24px auto 40px; background: var(--bg); border: 1px solid #e0e0e0; border-radius: 4px; box-shadow: 0 1px 4px rgb(0 0 0 / 0.04); overflow: clip; }
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
h1 { font-weight: 400; color: var(--red); font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.2; margin: 1.5rem 0 1.5rem; }
h2 { font-family: var(--font-head); font-weight: 400; color: var(--grey); font-size: clamp(1.4rem, 2.5vw, 2rem); line-height: 1.25; margin: 0 0 1rem; }
h3 { font-family: var(--font-head); font-weight: 400; color: var(--red); font-size: 1.3em; margin: 0 0 0.6rem; }
h4 { font-family: var(--font-head); font-weight: 400; color: var(--grey); font-size: 1.3em; margin: 0 0 0.6rem; }
p { margin: 0 0 1.25rem; }
.wrap { max-width: var(--width); margin: 0 auto; padding: 0 16px; }
main > .wrap { padding-top: 1rem; padding-bottom: 3rem; }
@media (min-width: 1200px) { .wrap { padding: 0 3%; } }
.narrow-page { max-width: 900px; margin-left: 0; }
.muted, .meta { color: var(--muted); }
.meta { font-size: 0.9rem; margin: 0.25rem 0; }
.meta a { color: inherit; }
.pre { white-space: pre-line; }
.lead { font-size: 1.15rem; }

/* Old homepage styling */
@media (min-width: 1100px) {
  .float {
    margin: 1% 9%;
    background: #FFFFFF88;
    box-shadow: -3px -3px 11px 5px #AAA, 3px 3px 5px 5px #AAA;
    padding: 3px;
  }

  body {
    background-color: #e5e5e5;
    background-repeat: no-repeat;
    background-position: top center;
    background-attachment: fixed;
    background-size: cover;
  }

}

/* Header: crest + name, contact icons */
.staff-bar { background: #222; color: #fff; font-size: 0.85rem; padding: 0.25rem 0; }
.staff-bar a { color: inherit; text-decoration: underline; }
.site-header { background: #fff; }
.header-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 0.8rem; text-decoration: none !important; min-width: 0; }
.brand img { width: 50px; height: auto; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-title { color: var(--grey); font-size: 1.15rem; line-height: 1.2; }
.brand-sub { color: var(--fg); font-size: 1.2rem; line-height: 1.2; }
@media (min-width: 576px) {
  .brand img { width: 70px; }
  .brand-title { font-size: 1.4rem; }
  .brand-sub { font-size: 1.4rem; }
}
.header-contact { display: flex; align-items: center; gap: 0.6rem; list-style: none; margin: 0; padding: 0; }
.header-contact a { display: flex; align-items: center; gap: 0.5rem; color: var(--grey); text-decoration: none; }
.round-icon { display: grid; place-items: center; justify-content: center; align-items: center; width: 30px; height: 30px; flex-shrink: 0; color: var(--red); background: #fff; transition: background 0.3s, color 0.3s; }
.round-icon .icon { width: 20px; height: 20px; }
.header-contact a:hover .round-icon { background: var(--red); color: #fff; }
.contact-label { display: none; font-weight: 700; font-size: 0.8rem; line-height: 1.25; text-transform: uppercase; }
.contact-label span { font-weight: 400; font-size: 0.82rem; text-transform: none; }
@media (min-width: 1000px) { .contact-label { display: block; } .header-contact { gap: 1.2rem; } }
@media (max-width: 575px) { .header-contact .social { display: none; } } /* phones: only phone + email */

/* Main menu: red bar, stays at the top while scrolling */
.main-nav { background: var(--red); position: sticky; top: 0; z-index: 50; }
.main-nav .wrap { padding-left: 0; padding-right: 0; }
.menu summary { display: none; }
.nav-list, .dropdown-menu { list-style: none; margin: 0; padding: 0; }
.nav-list { display: flex; flex-wrap: wrap; }
.nav-list > li > a, .dropdown-toggle { display: flex; align-items: center; gap: 0.45rem; height: 50px; padding: 0 20px; color: #fff; font: inherit; font-size: 16px; background: none; border: 0; border-radius: 0; cursor: pointer; text-decoration: none; }
.nav-list > li > a:hover, .dropdown-toggle:hover, .dropdown.open > .dropdown-toggle,
.nav-list > li > a[aria-current], .dropdown-toggle[data-current] { background: var(--gold); text-decoration: none; }
.dropdown-toggle::after { content: ""; width: 0.4em; height: 0.4em; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-30%) rotate(45deg); }
/* Dropdowns: open on hover (CSS) or click/tap/keyboard (site.js toggles .open) */
.dropdown { position: relative; }
.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; z-index: 60; min-width: 100%; width: max-content; max-width: 280px; background: var(--grey); }
.dropdown:nth-last-child(-n+2) > .dropdown-menu { left: auto; right: 0; }
.dropdown.open > .dropdown-menu { display: block; }
@media (hover: hover) { .dropdown:hover > .dropdown-menu { display: block; } }
/* Dropdown whose name is also a link: name + arrow button side by side, highlighted together */
.dropdown.has-link { display: flex; }
.dropdown.has-link > .dropdown-link { padding-right: 6px; }
.dropdown.has-link > .dropdown-toggle { padding: 0 16px 0 6px; }
@media (min-width: 901px) {
  .dropdown.has-link:hover > :not(ul), .dropdown.has-link.open > :not(ul), .dropdown-link[data-current] { background: var(--gold); }
}
.dropdown-menu a { display: block; padding: 0 20px; line-height: 38px; color: #fff; font-size: 15px; text-decoration: none; }
.dropdown-menu a:hover, .dropdown-menu a[aria-current] { background: var(--red); text-decoration: none; }
@media (max-width: 900px) {
  .menu summary { display: flex; align-items: center; gap: 0.6rem; height: 50px; padding: 0 16px; color: #fff; cursor: pointer; list-style: none; font-size: 17px; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu summary::before { content: ""; width: 22px; height: 14px; border: solid #fff; border-width: 2px 0; background: linear-gradient(#fff, #fff) center / 100% 2px no-repeat; }
  .menu[open] .nav-list { display: block; max-height: calc(100vh - 50px); overflow-y: auto; background: #fff; border-bottom: 3px solid var(--red); }
  .menu:not([open]) .nav-list { display: none; }
  .nav-list > li > a, .dropdown-toggle { width: 100%; color: var(--grey); border-bottom: 1px solid var(--light); }
  .nav-list > li > a:hover, .dropdown-toggle:hover, .nav-list > li > a[aria-current], .dropdown-toggle[data-current], .dropdown.open > .dropdown-toggle { background: var(--red); color: #fff; }
  /* On small screens dropdowns are always expanded */
  .dropdown-toggle { pointer-events: none; }
  .dropdown-toggle::after { display: none; }
  .dropdown.has-link { display: block; }
  .dropdown.has-link > .dropdown-toggle { display: none; }
  .dropdown.has-link > .dropdown-link { padding-right: 20px; }
  .dropdown-link[data-current] { background: var(--red); color: #fff; }
  .dropdown-menu, .dropdown:nth-last-child(-n+2) > .dropdown-menu { display: block; position: static; min-width: 0; background: #fff; }
  .dropdown-menu a { color: var(--grey); padding-left: 36px; border-bottom: 1px solid var(--light); line-height: 44px; }
  .dropdown-menu a:hover, .dropdown-menu a[aria-current] { background: #f1f1f1; color: var(--grey); }
}

/* Hero: picture slider with text on top. The pictures sit in a horizontal
   scroll container, so they can also be swiped; site.js advances them. */
.hero { position: relative; display: flex; align-items: center; min-height: 350px; overflow: hidden; background: var(--grey); color: #fff; }
.hero.has-image { min-height: clamp(350px, 33vw, 455px); } /* about 3:1 like the old slider */
.hero-slides { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.hero-slides::-webkit-scrollbar { display: none; }
.hero-slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero.has-image::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to right, rgb(0 0 0 / 0.55), rgb(0 0 0 / 0) 70%); }
/* Swipes over the text reach the pictures; only the button stays clickable */
.hero-content { position: relative; z-index: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 2rem 16px 3rem; pointer-events: none; }
.hero-content a { pointer-events: auto; }
.hero-dots { position: absolute; z-index: 2; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 4px; }
.hero-dots button { width: 28px; height: 28px; padding: 0; background: none; border: 0; cursor: pointer; }
.hero-dots button::before { content: ""; display: block; width: 12px; height: 12px; margin: auto; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 3px rgb(0 0 0 / 0.5); transition: background 0.3s; }
.hero-dots button:hover { background: none; }
.hero-dots button:hover::before, .hero-dots button[aria-current]::before { background: #fff; }
.hero h1 { margin: 0 0 1rem; color: #fff; font-family: Arial, sans-serif; font-weight: 700; font-size: clamp(2rem, 6vw, 4.4rem); max-width: 16ch; }
.hero h1 span { background: linear-gradient(var(--red), var(--red)) left bottom / 100% 0.12em no-repeat; padding-bottom: 0.05em; }
.hero .lead { max-width: 55ch; margin: 0 0 1.5rem; text-shadow: 0 1px 3px rgb(0 0 0 / 0.5); }
.hero-button { display: inline-block; padding: 10px 30px; background: var(--gold); color: #fff; text-decoration: none !important; transition: background 0.4s; }
.hero-button:hover { background: var(--grey); }

/* Sections */
.section { margin: 3rem 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.section-head h2 { margin: 0; }
.intro { margin: 1.5rem 0 2rem; }

/* Post boxes (news & reports), as on the old home page */
.post-grid { display: grid; grid-template-columns: 1fr; gap: 2rem 2%; }
@media (min-width: 768px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .post-grid { grid-template-columns: repeat(4, 1fr); } }
/* Every card has the same layout whatever its content: the title always takes
   two lines, the picture (or placeholder) one size, the date line one line and
   the summary three lines; longer text is cut off with "…". */
.post-card { position: relative; border: 1px solid var(--light); padding: 12px 12px 56px; transition: box-shadow 0.3s; }
.post-card:hover { box-shadow: 0 0 11px rgb(0 0 0 / 0.5); }
.post-link { display: block; text-decoration: none !important; }
.post-card h2 { font-family: var(--font-head); color: var(--gold); font-size: 1.3em; line-height: 1.25; height: 2.5em; margin: 0 0 10px; }
.post-card .post-image { display: block; width: 100%; aspect-ratio: 14 / 9; object-fit: cover; }
.post-card .meta { margin: 0.6rem 0 0; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-summary { color: var(--grey); line-height: 1.4; height: 4.2em; margin: 0.4rem 0 0; }
.post-card h2, .post-summary { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.post-card h2 { -webkit-line-clamp: 2; line-clamp: 2; }
.post-summary { -webkit-line-clamp: 3; line-clamp: 3; }
.more-link { position: absolute; right: 0; bottom: 0; text-decoration: none !important; }
.more-link span { display: inline-block; background: var(--red); color: #fff; padding: 8px 12px 10px; transition: transform 0.4s ease-in-out; }
.more-link:hover span { transform: scale(0.9); }

/* Generic cards (vehicles) */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.card { display: flex; flex-direction: column; border: 1px solid var(--light); transition: box-shadow 0.3s; }
.card:hover { box-shadow: 0 0 11px rgb(0 0 0 / 0.5); }
.card-media img, .card-media .placeholder { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.placeholder { display: block; background: var(--placeholder); aspect-ratio: 16 / 10; }
.card-body { padding: 1rem; }
.card-body h3 { margin: 0.2rem 0 0.4rem; }
.card-body h3 a { color: var(--gold); font-family: var(--font-head); }
.card-body p { margin: 0.25rem 0; }

.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.tile { display: block; border: 1px solid var(--light); color: var(--fg); text-decoration: none !important; transition: box-shadow 0.3s; }
.tile:hover { box-shadow: 0 0 11px rgb(0 0 0 / 0.5); }
.tile img, .tile .placeholder { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tile-label { display: block; padding: 0.6rem 0.8rem; }
.tile-label strong { font-family: var(--font-head); font-weight: 400; color: var(--gold); font-size: 1.15rem; }

.compact-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--light); }
.compact-list li { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; align-items: baseline; padding: 0.75rem 1rem; border-bottom: 1px solid var(--light); }
.compact-list li:last-child { border-bottom: none; }

.photo-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
.photo-strip img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 0.2s; }
.photo-strip a:hover img { transform: scale(1.02); }
@media (max-width: 700px) { .photo-strip { grid-template-columns: repeat(2, 1fr); } }

.contact-teaser { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; border: 1px solid var(--light); border-left: 6px solid var(--red); padding: 1.5rem; }
.contact-teaser p { margin: 0.25rem 0; }

/* Lightbox (site.js): pictures side by side, one screen wide each */
html.lightbox-open { overflow: hidden; }
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(0 0 0 / 0.92); color: #fff; overflow: hidden; }
.lightbox::backdrop { background: transparent; }
.lightbox-track { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior: contain; scrollbar-width: none; }
.lightbox-track::-webkit-scrollbar { display: none; }
.lightbox-track figure { flex: 0 0 100%; display: grid; place-items: center; margin: 0; padding: 56px 16px; scroll-snap-align: center; }
.lightbox-track img { max-width: 100%; max-height: calc(100dvh - 112px); width: auto; height: auto; object-fit: contain; }
.lightbox button { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: rgb(0 0 0 / 0.45); color: #fff; font-size: 2rem; line-height: 1; }
.lightbox button:hover { background: var(--red); }
.lightbox button[hidden] { display: none; }
.lightbox-close { top: 8px; right: 8px; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: 8px; }
.lightbox-next { right: 8px; }
.lightbox-count { position: absolute; top: 18px; left: 16px; margin: 0; font-size: 0.95rem; }
.lightbox-full { position: absolute; bottom: 16px; right: 16px; color: #fff; font-size: 0.9rem; text-decoration: underline; }
@media (hover: none) { .lightbox .lightbox-prev, .lightbox .lightbox-next { display: none; } } /* touch: swipe instead */

/* Article / page text */
.cover { width: 100%; margin: 1rem 0 1.5rem; }
.prose { line-height: 1.6; }
.prose ul, .prose ol { margin: 0 0 1.5rem 1.25rem; padding: 0; }
.prose li { margin-top: 0.5rem; }
.prose img { margin: 1rem 0; }
.prose pre { overflow-x: auto; background: var(--light); padding: 1rem; }
.prose blockquote { border-left: 3px solid var(--red); margin-left: 0; padding-left: 1rem; color: var(--muted); }
.prose table { border-collapse: collapse; width: 100%; }
.prose th, .prose td { border: 1px solid var(--grey); padding: 10px 20px; text-align: left; }

.specs { border-collapse: collapse; width: 100%; max-width: 640px; margin: 1rem 0 1.5rem; }
.specs th, .specs td { text-align: left; padding: 10px 20px; border: 1px solid var(--grey); }
.specs th { width: 40%; font-weight: 700; }
.bericht-stats { margin-top: 0; }
.bericht-stats th { background: var(--light); }

/* Members */
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.member { display: inline; gap: 1rem; align-items: center; text-align: center; border: 1px solid var(--light); padding: 1rem; }
.member img, .avatar { width: 240px; height: 320px; object-fit: cover; flex-shrink: 0; margin: 0 auto; }
.avatar { display: grid; margin: 0 auto; place-items: center; background: var(--placeholder); font-weight: 700; color: var(--muted); }
.member h3 { margin-bottom: 0.2rem; }
.member p { margin: 0.3rem 0; font-size: 0.9rem; color: var(--grey); }
.member > div { min-width: 0; overflow-wrap: anywhere; }
/* Fixed column count (Settings → Page layout); fewer on smaller screens */
.member-grid.cols-1 { grid-template-columns: minmax(0, 1fr); }
.member-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.member-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.member-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.member-grid.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.member-grid.cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.small-member-grid.cols-1 { grid-template-columns: minmax(0, 1fr); }
.small-member-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.small-member-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.member-grid:is(.cols-4, .cols-5, .cols-6) .member { flex-direction: column; align-items: center; text-align: center; }
@media (max-width: 900px) {
  .member-grid:is(.cols-3, .cols-4, .cols-5, .cols-6) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .member-grid[class*="cols-"] { grid-template-columns: minmax(0, 1fr); }
  .member-grid[class*="cols-"] .member { flex-direction: row; align-items: flex-start; text-align: left; }
}

.small-member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.15rem; }
.small-member { display: inline; align-items: center; text-align: center; border: 1px solid var(--light); padding: 0.15rem; }


/* History */
.timeline { list-style: none; padding: 0; margin: 2rem 0; border-left: 2px solid var(--light); }
.timeline li { position: relative; padding: 0 0 2rem 1.5rem; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 0.45rem; width: 12px; height: 12px; border-radius: 50%; background: var(--red); }
.timeline-year { font-family: var(--font-head); font-size: 1.2rem; color: var(--gold); }
.timeline-body h2 { margin: 0.1rem 0 0.5rem; font-size: 1.4rem; }
.timeline-body img { margin: 0.5rem 0; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.75rem; }
.gallery-grid figure { margin: 0; }
.gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-grid figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 0.3rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 2rem; margin-bottom: 2rem; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Forms & buttons */
input, select, textarea, button, .button { font: inherit; padding: 0.55rem 0.75rem; border: 1px solid #ccc; border-radius: 0; background: #fff; color: inherit; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; }
textarea { width: 100%; }
button, .button { display: inline-block; background: var(--red); color: #fff; border-color: var(--red); cursor: pointer; text-decoration: none !important; transition: background 0.6s; }
button:hover, .button:hover { background: var(--grey); border-color: var(--grey); }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.stack label { display: flex; flex-direction: column; gap: 0.25rem; }
.filters { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.category-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.category-links a { padding: 5px 12px; background: #e7e7e7; color: var(--grey); text-decoration: none; }
.category-links a:hover, .category-links a[aria-current] { background: var(--red); color: #fff; }

/* Events */
.event-list { list-style: none; margin: 0 0 2.5rem; padding: 0; border: 1px solid var(--light); }
.event-list > li { display: flex; gap: 1.25rem; padding: 1rem; border-bottom: 1px solid var(--light); }
.event-list > li:last-child { border-bottom: none; }
.event-date { flex-shrink: 0; width: 70px; padding: 6px 0; text-align: center; background: var(--red); color: #fff; font-family: var(--font-head); line-height: 1.15; }
.event-date strong { display: block; font-size: 1.8rem; font-weight: 400; }
.event-list.past .event-date { background: var(--grey); }
.event-list h3 { margin-bottom: 0.2rem; }
.event-list .prose { margin-top: 0.5rem; }
.event-list .prose > :last-child { margin-bottom: 0; }
.filters input { flex: 1 1 220px; }
.pagination { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; align-items: center; margin: 3rem 0 1rem; }
.pagination a, .pagination span { min-width: 2.2em; padding: 5px 8px; text-align: center; background: #e7e7e7; color: var(--grey); text-decoration: none; }
.pagination a:hover { background: var(--red); color: #fff; }
.pagination .current { background: var(--red); color: #fff; font-weight: 700; }
.pagination .gap { min-width: 0; padding: 5px 2px; background: none; }

.flash { padding: 0.6rem 0.9rem; }
.flash-success { background: var(--ok-bg); }
.flash-error { background: var(--err-bg); }

/* Footer: grey/red diagonal band */
.site-footer { background: var(--grey); color: #fff; }
.site-footer a { color: #fff; }
.footer-inner { display: flex; flex-direction: column; gap: 1.5rem; padding-top: 2rem; padding-bottom: 2rem; }
.footer-info p { margin: 0.3rem 0; }
.footer-text { opacity: 0.85; font-size: 0.9rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.staff-login { opacity: 0.75; }
@media (min-width: 576px) {
  .site-footer { background: linear-gradient(110deg, var(--grey) 55%, var(--red) 55%); }
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: flex-end; }
  .footer-links { justify-content: flex-end; }
}
@media (min-width: 2000px) { .site-footer { background: linear-gradient(110deg, var(--grey) 60%, var(--red) 60%); } }
