/* Fire årstider – Parcelforeningen Hareskovgaard
   The seasonal photo is the only decoration; everything else stays quiet. */

@font-face { font-family: "Spectral"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/spectral-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Spectral"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/spectral-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Spectral"; font-style: italic; font-weight: 500; font-display: swap;
  src: url("fonts/spectral-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("fonts/source-sans-3-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }

:root {
  --green: #22402F;      /* Hareskov green: top bar, footer */
  --green-deep: #183024;
  --page: #FBFBF8;       /* birch white */
  --stone: #E6E8E2;      /* quiet panels */
  --line: #D5D9D1;
  --lake: #3D6E80;       /* links */
  --lake-dark: #2C5464;
  --gold: #B8862B;       /* beech gold: accent line */
  --gold-text: #94681A;  /* beech gold for text (AA on white) */
  --ink: #1C2621;
  --muted: #4F5A55;
  --on-green: #FFFFFF;
  --on-green-soft: #CFDCD2;

  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  --step--1: 0.9375rem;
  --step-0: clamp(1.0625rem, 1rem + 0.25vw, 1.125rem);   /* 17 → 18 px body */
  --step-1: clamp(1.25rem, 1.15rem + 0.4vw, 1.375rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.9vw, 1.875rem);
  --step-3: clamp(1.875rem, 1.5rem + 1.8vw, 2.625rem);
  --step-hero: clamp(2.125rem, 1.2rem + 4.4vw, 5rem);

  --gutter: clamp(1rem, 0.6rem + 2vw, 2.5rem);
  --wrap: 75rem;
  --measure: 68ch;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  font-kerning: normal;
  font-variant-numeric: lining-nums;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; }

a { color: var(--lake); text-decoration-thickness: 0.07em; text-underline-offset: 0.18em; }
a:hover { color: var(--lake-dark); text-decoration-thickness: 0.12em; }

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

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--page); color: var(--ink); padding: 0.75rem 1rem; font-weight: 600;
}
.skip:focus { top: 1rem; }

/* ---------- Top bar ---------- */

.topbar { background: var(--green); color: var(--on-green); }
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 4rem;
}
.wordmark {
  font-family: var(--serif); font-weight: 600; font-size: 1.1875rem; line-height: 1.15;
  color: var(--on-green); text-decoration: none; letter-spacing: 0.005em;
  padding-block: 0.6rem;
}
.wordmark:hover { color: var(--on-green); text-decoration: underline; }

.menu-toggle {
  display: inline-flex; align-items: center; gap: 0.6rem;
  min-height: 2.75rem; padding: 0.4rem 0.9rem;
  color: var(--on-green); text-decoration: none; font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.45); border-radius: 2px;
}
.menu-toggle:hover { color: var(--on-green); border-color: #fff; }
.menu-toggle__icon, .menu-toggle__icon::before, .menu-toggle__icon::after {
  display: block; width: 1.1rem; height: 2px; background: currentColor; content: "";
}
.menu-toggle__icon { position: relative; }
.menu-toggle__icon::before { position: absolute; top: -6px; }
.menu-toggle__icon::after { position: absolute; top: 6px; }

/* Phone and tablet menu: a full-screen panel */
.nav {
  display: none;
  position: fixed; inset: 0; z-index: 50;
  background: var(--green); color: var(--on-green);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 0 var(--gutter) 3rem;
}
.nav:target, .menu-open .nav { display: block; }
.menu-open { overflow: hidden; }

.nav__head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 4rem; border-bottom: 1px solid rgba(255, 255, 255, 0.2); margin-bottom: 0.5rem;
}
.nav__title { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 1.1875rem; }
.nav__close {
  display: inline-flex; white-space: nowrap; align-items: center; min-height: 2.75rem; padding: 0.4rem 0.9rem;
  color: var(--on-green); font-weight: 600; text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.45); border-radius: 2px;
}
.nav__close:hover { color: var(--on-green); border-color: #fff; }

.nav ul { list-style: none; margin: 0; padding: 0; }
.nav .menulevel1 > li { border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.nav .menulevel1 > li > a, .nav .menulevel1 > li > span {
  display: block; padding: 0.85rem 0; min-height: 2.75rem;
  font-family: var(--serif); font-weight: 500; font-size: 1.5rem; line-height: 1.2;
  color: var(--on-green); text-decoration: none;
}
.nav .menulevel2 { padding: 0 0 0.75rem 1rem; }
.nav .menulevel2 a, .nav .menulevel2 span {
  display: block; padding: 0.55rem 0; min-height: 2.75rem;
  font-size: 1.125rem; color: var(--on-green-soft); text-decoration: none;
}
.nav a:hover { color: #fff; text-decoration: underline; }
.nav .sdoc > span, .nav .sdocs > span { color: #fff; }
.nav .sdoc > span::after, .nav .sdocs > span::after {
  content: ""; display: inline-block; width: 0.45em; height: 0.45em; margin-left: 0.5em;
  border-radius: 50%; background: var(--gold); vertical-align: 0.15em;
}
.nav .sub-toggle { display: none; }
.nav__search { margin-top: 2rem; }
.nav__search #searchbox { display: flex; gap: 0.5rem; }

/* ---------- Search box (both places) ---------- */
#searchbox, .footer__search form { display: flex; gap: 0.5rem; margin: 0; }
#searchbox input.text, .footer__search input.text {
  flex: 1 1 auto; min-width: 0; min-height: 2.75rem; padding: 0.5rem 0.75rem;
  font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1px solid #9BA69F; border-radius: 2px;
}
#searchbox input.submit, .footer__search input.submit {
  min-height: 2.75rem; padding: 0.5rem 1.1rem; font: inherit; font-size: 1rem; font-weight: 600;
  color: var(--green); background: #fff; border: 1px solid #fff; border-radius: 2px; cursor: pointer;
}

/* ---------- Desktop menu with dropdowns ---------- */
@media (min-width: 74rem) {
  .menu-toggle, .nav__head, .nav__search { display: none; }
  .nav {
    display: block; position: static; inset: auto; overflow: visible;
    background: none; padding: 0;
  }
  .menu-open { overflow: visible; }
  .nav .menulevel1 { display: flex; align-items: stretch; gap: 0.25rem; }
  .nav .menulevel1 > li { position: relative; border: 0; display: flex; align-items: center; }
  .nav .menulevel1 > li > a, .nav .menulevel1 > li > span {
    font-family: var(--sans); font-weight: 600; font-size: 1.0625rem;
    padding: 1.25rem 0.75rem; min-height: 4rem; display: flex; align-items: center;
    color: var(--on-green); border-bottom: 3px solid transparent;
  }
  .nav .menulevel1 > li > a:hover { text-decoration: none; border-bottom-color: var(--on-green-soft); }
  .nav .menulevel1 > .sdoc > span, .nav .menulevel1 > .sdocs > span,
  .nav .menulevel1 > .sdocs > a { border-bottom-color: var(--gold); }
  .nav .sdoc > span::after, .nav .sdocs > span::after { display: none; }

  .nav .sub-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2rem; height: 2.75rem; margin-left: -0.6rem; margin-right: 0.15rem;
    background: none; border: 0; color: var(--on-green); cursor: pointer; border-radius: 2px;
  }
  .nav .sub-toggle::before {
    content: ""; width: 0.45rem; height: 0.45rem;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
  }
  .nav .is-open > .sub-toggle::before { transform: translateY(2px) rotate(225deg); }

  .nav .menulevel2 {
    position: absolute; top: 100%; left: 0; z-index: 40;
    min-width: 15rem; padding: 0.5rem 0;
    background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold);
    box-shadow: 0 14px 28px -14px rgba(24, 48, 36, 0.45);
    visibility: hidden; opacity: 0; transform: translateY(4px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.15s;
  }
  .nav .menulevel1 > li:hover > .menulevel2,
  .nav .menulevel1 > li:focus-within > .menulevel2,
  .nav .menulevel1 > li.is-open > .menulevel2 {
    visibility: visible; opacity: 1; transform: none; transition-delay: 0s;
  }
  .nav .menulevel2 a, .nav .menulevel2 span {
    padding: 0.6rem 1.1rem; min-height: 2.75rem; color: var(--ink); font-size: 1rem;
  }
  .nav .menulevel2 a:hover { background: var(--stone); color: var(--ink); text-decoration: none; }
  .nav .menulevel2 .sdoc > span { font-weight: 600; color: var(--green); }
}

/* ---------- Seasonal photo ---------- */
.hero { position: relative; overflow: hidden; background: var(--green-deep); color: #fff; }
.hero picture, .hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.hero__img { object-fit: cover; object-position: var(--focus, 50% 50%); }
@media (max-width: 699px) {
  .hero--home .hero__img { object-position: var(--tallfocus, 50% 50%); }
}

.hero--home {
  height: clamp(22.5rem, 60vh, 40rem);
  display: flex; align-items: flex-end;
}
.season-vinter .hero--home::after {
  background: linear-gradient(to top, rgba(16, 30, 22, 0.86) 0%, rgba(16, 30, 22, 0.62) 45%, rgba(16, 30, 22, 0.12) 85%);
}
.hero--home::after {
  /* a restrained scrim behind the name, strongest where the text sits */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(16, 30, 22, 0.78) 0%, rgba(16, 30, 22, 0.45) 38%, rgba(16, 30, 22, 0) 70%);
}
.hero__text { position: relative; z-index: 1; padding-bottom: clamp(4.5rem, 3rem + 5vw, 7rem); }
.hero__name {
  margin: 0; max-width: 17ch; overflow-wrap: normal; hyphens: manual;
  font-family: var(--serif); font-weight: 500; font-size: var(--step-hero);
  line-height: 1.02; letter-spacing: -0.012em;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.35);
}
.hero__lede {
  margin: 0.9rem 0 0; max-width: 34ch;
  font-size: var(--step-1); line-height: 1.4; color: #F1F4EF;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.hero--band { height: clamp(9rem, 6rem + 9vw, 13rem); }

/* ---------- Main layout ---------- */
.layout { display: grid; gap: 2.5rem; padding-bottom: 4rem; }
.layout--home {
  grid-template-areas: "event" "content" "news";
  padding-top: 0;
}
.layout--home .next-event { grid-area: event; }
.layout--home .content { grid-area: content; }
.layout--home .news { grid-area: news; }
.content { min-width: 0; }

@media (min-width: 56rem) {
  .layout--home {
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 23rem);
    grid-template-areas: "content event" "news event";
    grid-template-rows: auto 1fr;
    row-gap: 3rem;
    column-gap: clamp(2.5rem, 2rem + 3vw, 5rem);
    align-items: start;
  }
  .layout--home .content { padding-top: 3rem; }
}

/* Next event: a card that overlaps the photo's lower edge */
.next-event {
  position: relative; z-index: 3;
  margin-top: -3rem;
  background: #fff; padding: 1.4rem 1.5rem 1.25rem;
  border: 1px solid var(--line); border-top: 4px solid var(--gold);
  box-shadow: 0 18px 36px -22px rgba(24, 48, 36, 0.55);
}
@media (min-width: 56rem) { .next-event { margin-top: -6.5rem; } }
.next-event__label { margin: 0 0 0.6rem; font-family: var(--sans); font-size: var(--step--1); font-weight: 600; color: var(--muted); letter-spacing: 0.01em; }
.next-event__date {
  margin: 0; font-family: var(--serif); font-weight: 600; font-size: var(--step-2);
  line-height: 1.15; color: var(--gold-text);
}
.next-event__title { margin: 0.45rem 0 0; font-weight: 600; font-size: var(--step-1); line-height: 1.3; }
.next-event__when, .next-event__place { margin: 0.25rem 0 0; color: var(--muted); }
.next-event__empty { margin: 0; color: var(--muted); }
/* The event's description from the calendar, e.g. "Invitation (PDF)". */
.next-event__extra { margin: 0.35rem 0 0; }
.next-event__extra p { margin: 0; }
.next-event__extra a { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 600; color: var(--lake-dark); }
.next-event__more { margin: 1rem 0 0; padding-top: 0.85rem; border-top: 1px solid var(--stone); font-weight: 600; }

/* ---------- Content typography ---------- */
.page-text { max-width: var(--measure); }
.page-text > :first-child { margin-top: 0; }
.page-text h1, .page-text h2, .page-text h3, .page-text h4 {
  font-family: var(--serif); font-weight: 600; color: var(--ink); line-height: 1.2;
}
.page-text > h1:first-child, .page-text > h2:first-child, .page-text > h3:first-child {
  font-size: var(--step-3); margin: 0 0 1rem; letter-spacing: -0.005em;
}
.page-text h1 { font-size: var(--step-3); margin: 2.5rem 0 1rem; }
.page-text h2 { font-size: var(--step-2); margin: 2.25rem 0 0.75rem; }
.page-text h3 { font-size: var(--step-1); margin: 2rem 0 0.5rem; }
.page-text h4 { font-size: var(--step-1); margin: 1.75rem 0 0.5rem; }
.page-text h5, .page-text h6 { font-family: var(--sans); font-size: var(--step-0); font-weight: 600; margin: 1.5rem 0 0.25rem; }
.page-text p, .page-text ul, .page-text ol { margin: 0 0 1em; }
.page-text ul, .page-text ol { padding-left: 1.3em; }
.page-text li { margin: 0.3em 0; }
.page-text li::marker { color: var(--gold); }
.page-text img { display: block; margin: 1rem 0; border: 1px solid var(--line); }
.page-text table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: var(--step--1); }
.page-text th, .page-text td { padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.page-text blockquote { margin: 1.5rem 0; padding-left: 1rem; border-left: 3px solid var(--gold); font-family: var(--serif); font-style: italic; }
/* Old inline colours in the text are evened out so links and text read the same everywhere. */
.page-text span[style*="color"], .news span[style*="color"] { color: inherit !important; }
.page-text a.tel { white-space: nowrap; color: inherit; text-decoration-color: var(--line); }
.page-text a.tel:hover { color: var(--lake-dark); text-decoration-color: currentColor; }
/* "(PDF)" after PDF links. The script in template.htm sets .pdf-mark only when the link text doesn't already say PDF. */
.page-text a.pdf-mark::after { content: " (PDF)"; font-size: 0.8em; color: var(--muted); }

/* Event list on "Det sker i foreningen" */
.page-text p.period_of_events { color: var(--muted); font-size: var(--step--1); text-align: left; }
.page-text .event_monthyear, .page-text figcaption.event_monthyear {
  text-align: left;
  font-family: var(--serif); font-weight: 600; font-size: var(--step-1);
  margin: 2rem 0 0.5rem; padding-bottom: 0.35rem; border-bottom: 1px solid var(--line);
}
.page-text ol.calendar_eventlist { list-style: none; margin: 0; padding: 0; }
.page-text li.event_data_row, .page-text li.birthday_data_row {
  display: grid; grid-template-columns: 1fr; gap: 0.1rem 1.5rem;
  margin: 0; padding: 0.9rem 0; border: 0; border-bottom: 1px solid var(--stone); text-align: left;
}
.page-text li.event_data_row:last-child { border-bottom: 0; }
.page-text p.event_summary, .page-text p.event_location, .page-text p.event_data { text-align: left; }
.calendar_eventlist li::marker { content: none; }
.calendar_eventlist .event_data { margin: 0; }
.calendar_eventlist .event_date, .calendar_eventlist .event_time { white-space: nowrap; }
.calendar_eventlist .event_data:first-child { color: var(--gold-text); font-weight: 600; font-variant-numeric: tabular-nums; }
.calendar_eventlist .event_summary { font-weight: 600; font-size: var(--step-1); line-height: 1.3; }
.calendar_eventlist .event_location { color: var(--muted); }
.calendar_eventlist .event_link p { margin: 0.25rem 0 0; }
@media (min-width: 40rem) {
  .page-text li.event_data_row { grid-template-columns: 13.5rem 1fr; }
  .calendar_eventlist .event_data:first-child { grid-row: 1 / span 3; }
}

/* Search results and sitemap */
.page-text .sitemaplevel1, .page-text .sitemaplevel2 { list-style: none; padding-left: 0; }
.page-text .sitemaplevel2 { padding-left: 1.25rem; }

/* ---------- Inner pages ---------- */
.layout--page { padding-top: 0; }
.layout--page .content {
  position: relative; z-index: 3;
  width: 100%; max-width: 48rem; margin: -3.5rem auto 0;
  background: #fff; border: 1px solid var(--line);
  padding: 1.25rem clamp(1.1rem, 0.6rem + 2.5vw, 2.75rem) 2rem;
}
/* News on inner pages: under the page card, in the same width. */
.layout--page .news { width: 100%; max-width: 48rem; margin-inline: auto; }
@media (max-width: 30rem) {
  .layout--page { padding-inline: 0; }
  .layout--page .content { margin-top: -2rem; border-inline: 0; }
  .layout--page .news { padding-inline: var(--gutter); }
}
.crumbs { font-size: var(--step--1); color: var(--muted); margin-bottom: 1.25rem; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--lake-dark); }

.subpages:empty { display: none; }
.subpages h3, .subpages h4 {
  font-family: var(--sans); font-size: var(--step--1); font-weight: 600; color: var(--muted);
  margin: 2.5rem 0 0.5rem; padding-top: 1.25rem; border-top: 1px solid var(--stone);
}
.subpages ul.submenu { list-style: none; margin: 0; padding: 0; }
.subpages ul.submenu li { margin: 0; }
.subpages ul.submenu a {
  display: flex; align-items: center; min-height: 2.75rem; padding: 0.4rem 0;
  font-family: var(--serif); font-weight: 600; font-size: var(--step-1); text-decoration: none;
  border-bottom: 1px solid var(--stone);
}
.subpages ul.submenu a:hover { text-decoration: underline; }

.pager {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--stone); font-size: var(--step--1);
}
.pager a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.pager__next { margin-left: auto; }

/* ---------- News (home) ---------- */
.news__label { margin: 0 0 0.75rem; font-family: var(--sans); font-size: var(--step--1); font-weight: 600; color: var(--muted); }
/* Each news page (News01–03) is a white box like the "Næste begivenhed" card, with a green top edge. */
.news__item {
  margin: 0 0 1rem; padding: 1.15rem 1.35rem 1.2rem;
  background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--green);
  box-shadow: 0 14px 30px -24px rgba(24, 48, 36, 0.55);
}
.news__item:last-child { margin-bottom: 0; }
/* News headings in strong red: the boxes carry important news (Michael, 2026-11-05). 6.5:1 on white. */
.news__item h1, .news__item h2, .news__item h3, .news__item h4 {
  color: #B3261E;
  margin: 0 0 0.4rem; font-family: var(--serif); font-weight: 600; font-size: var(--step-1); line-height: 1.25;
}
.news__item p { margin: 0 0 0.5rem; }
.news__item p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--green); color: var(--on-green-soft); font-size: var(--step--1); line-height: 1.55; }
.footer a { color: #fff; }
.footer__grid { display: grid; gap: 2rem; padding-top: 2.75rem; padding-bottom: 2.5rem; }
@media (min-width: 48rem) {
  .footer__grid { grid-template-columns: 1.1fr 1fr; }
  .footer__search { max-width: 24rem; }
}
.footer p { margin: 0 0 0.5rem; }
.footer__name { font-family: var(--serif); font-weight: 600; font-size: var(--step-1); color: #fff; }
.footer__links { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.footer__links a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.footer__links li:empty { display: none; }

/* Bottom line: last update + one quiet "Billeder og licenser" disclosure with the photo and font credits. */
.footer__bottom {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0 1.5rem; padding-bottom: 0.75rem; font-size: 0.8125rem;
}
.footer__bottom::before {
  content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.footer .footer__updated { margin: 0; padding: 0.75rem 0; opacity: 0.85; }
.credits > summary {
  display: inline-flex; align-items: center; gap: 0.35em; min-height: 2.75rem; cursor: pointer;
  list-style: none; color: var(--on-green-soft);
  text-decoration: underline; text-decoration-color: rgba(207, 220, 210, 0.5); text-underline-offset: 0.2em;
}
.credits > summary::-webkit-details-marker { display: none; }
.credits > summary::after { content: "\25B4"; font-size: 0.9em; text-decoration: none; }   /* small up-arrow */
.credits[open] > summary::after { content: "\25BE"; }
.credits > summary:hover { color: #fff; text-decoration-color: currentColor; }
.credits__panel {
  position: absolute; z-index: 5; bottom: calc(100% - 0.5rem); left: var(--gutter); right: var(--gutter);
  padding: 0.85rem 1rem; background: #fff; color: var(--ink); border-radius: 4px;
  border-top: 3px solid var(--gold); box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
  font-size: 0.875rem; line-height: 1.5;
}
.footer .credits__panel p { margin: 0 0 0.4rem; }
.footer .credits__panel p:last-child { margin-bottom: 0; }
.footer .credits__panel a { color: var(--lake-dark); }
@media (min-width: 40rem) {
  .credits__panel { left: auto; width: 30rem; }
}

/* ---------- Reduced motion and print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- "TEST SIDE" watermark (only on a test copy; see template.htm) ---------- */
.testbar {
  margin: 0; padding: 0.5rem var(--gutter); text-align: center;
  background: #B00020; color: #fff; font-size: var(--step--1); line-height: 1.4;
}
.testbar a { color: #fff; font-weight: 600; }
.testmark {
  position: fixed; inset: 0; z-index: 1000; pointer-events: none;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.testmark span {
  transform: rotate(-28deg); white-space: nowrap;
  font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif; font-weight: 900;
  font-size: clamp(4.5rem, 19vw, 16rem); line-height: 1; letter-spacing: 0.04em;
  color: rgba(214, 0, 28, 0.30); -webkit-text-stroke: 3px rgba(176, 0, 32, 0.55);
}
@media (max-aspect-ratio: 3/4) {   /* phones upright: steeper and bigger, corner to corner */
  .testmark span { transform: rotate(-62deg); font-size: min(23vw, 13.5vh); -webkit-text-stroke-width: 2px; }
}

/* CMSimple's own print view (?&print, only reached without JavaScript): give the bare text a margin and a measure. */
body.print { max-width: 48rem; margin: 0 auto; padding: 1.5rem var(--gutter) 3rem; }

@media print {
  .topbar, .hero, .next-event, .news, .footer__tools, .pager, .subpages, .skip, .credits { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .layout--page .content { margin: 0; border: 0; padding: 0; max-width: none; }
  .footer, .footer__name, .footer p { background: none; color: #000; }
  .footer a, a { color: #000; }
  .page-text a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; }
}
