/* Shared styles for every page.
   The look follows the chapter poster: the rooster photo fills the page, and content sits on
   pale sage-green "glass" panels (see-through, with the photo blurred behind) with dark text.
   It's the same glass idea as the business directory (../clm-directory), in the poster's colors.
   All colors live in the variables below, so the look can be changed in one place.

   To change the background, replace public/img/clm-background*.webp (or point --background-image
   somewhere else). If text gets hard to read over a busy photo, raise --glass-opacity. */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;

  --background-image: url("../img/clm-background.webp");
  --background-image-wide: url("../img/clm-background-wide.webp");
  --background-image-tall: url("../img/clm-background-tall.webp");
  --background-position: center 38%;
  /* keeps the rooster in view */
  --background-position-wide: center 38%;
  /* keeps the rooster in view */
  --background-fallback: linear-gradient(160deg, #a9b89c 0%, #6f8a62 50%, #3f5a3c 100%);

  /* The glass: the poster's pale sage, see-through, with the photo blurred behind it. */
  --glass-opacity: 0.5;
  --background-opacity: .5;
  --glass: rgb(212 222 204 / var(--glass-opacity));
  --glass-strong: rgb(204 215 197 / 0.6);
  /* header, dialogs: always readable */
  --glass-blur: blur(14px) saturate(130%);
  --glass-edge: rgb(255 255 255 / 0.55);
  /* thin light rim */

  /* Text and lines on the glass: the poster's charcoal green. */
  --color-text: #2f3a2f;
  --color-muted: #55614f;
  --color-border: rgb(47 58 47 / 0.18);
  --color-surface-alt: rgb(255 255 255 / 0.45);
  --color-primary: #3d5a3a;
  /* forest green: links and the main button */
  --color-primary-hover: #2c4429;
  --color-primary-text: #ffffff;
  --color-accent: #b8862f;
  /* wheat gold, for focus rings */

  --color-field-bg: rgb(255 255 255 / 0.92);
  --color-field-text: #23261f;
  --color-field-border: rgb(47 58 47 / 0.28);

  --color-success-bg: #dff0e3;
  --color-success-text: #1d5e34;
  --color-warning-bg: #fbefd2;
  --color-warning-text: #6e4b0c;
  --color-danger-bg: #f9e0d8;
  --color-danger-text: #9b3a25;

  --radius: 22px;
  --radius-small: 12px;
  --shadow: 0 8px 28px rgb(20 30 15 / 0.28);
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---- Base ---------------------------------------------------------------- */

* {
  box-sizing: border-box;
}

/* `hidden` must always win, even over classes that set display. */
[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #6f8a62;
  color: var(--color-text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

/* The photo sits on its own fixed layer (background-attachment: fixed is unreliable on phones). */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--background-image) var(--background-position) / cover no-repeat, var(--background-fallback);
}

a {
  color: var(--color-primary);
  text-underline-offset: 2px;
  font-weight: 600;
}

a:hover {
  color: var(--color-primary-hover);
}

h1,
h2,
h3 {
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  margin: 0 0 0.5rem;
}

h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  margin: 0 0 0.75rem;
}

h3 {
  font-size: 1.15rem;
  margin: 0 0 0.25rem;
}

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

.container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 16px;
}

.container.narrow {
  max-width: 820px;
}

.muted {
  color: var(--color-muted);
}

.small {
  font-size: 0.875rem;
}

.skip-link {
  position: absolute;
  left: -10000px;
}

.skip-link:focus {
  left: 16px;
  top: 8px;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: #fff;
  border-radius: var(--radius-small);
}

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

/* ---- Glass panels -------------------------------------------------------- */
/* Everything that sits on the photo gets the same frosted sage finish. */

.glass,
.card,
.site-footer,
.status,
.glass-note,
.tab {
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--shadow);
}

.card {
  border-radius: var(--radius);
  padding: 1.5rem;
}

/* ---- Header & footer ----------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--glass-strong);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-edge);
  box-shadow: 0 4px 20px rgb(0 0 0 / 0.18);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  min-height: 68px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text);
  text-decoration: none;
}

.brand:hover {
  color: var(--color-text);
}

/* The woodcut logo is black on white, so it sits on a small white plate like on the poster. */
.brand-logo {
  height: 46px;
  width: auto;
  background: #fff;
  border-radius: 6px;
  padding: 2px;
  flex-shrink: 0;
}

.brand-name {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
}

.brand-sub {
  display: block;
  color: var(--color-muted);
  font-size: 0.8rem;
  font-weight: 500;
}

@media (max-width: 520px) {
  .brand-logo {
    height: 38px;
  }

  .brand-text {
    display: none;
  }
}

.site-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
}

.site-nav a:hover {
  background: rgb(255 255 255 / 0.5);
}

.site-nav a[aria-current="page"] {
  background: var(--color-primary);
  color: var(--color-primary-text);
}

.site-footer {
  margin: 3rem auto 1.5rem;
  width: calc(100% - 32px);
  max-width: 1300px;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  flex-wrap: wrap;
}

.site-footer p {
  margin: 0;
}

/* ---- Page layout --------------------------------------------------------- */

#frosted-main-background {
  background-color: rgb(90 100 90 / var(--background-opacity));
  min-height: 100vh;
}

.page {
  padding-top: 1.5rem;
  display: grid;
  gap: 1.25rem;
  align-content: start;
}

.page-title p {
  margin: 0.25rem 0 0;
}

/* A clear stretch so the rooster shows between panels, like on the poster. */
.photo-gap {
  height: clamp(140px, 32vh, 340px);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 16px;
  flex-wrap: wrap;
}

.section-head h2 {
  margin-bottom: 0.5rem;
}

/* ---- Home: hero, pillars, connect ---------------------------------------- */

.hero {
  text-align: center;
  padding: 2rem 1.5rem;
}

.hero .tagline {
  font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  margin: 0 auto 1.25rem;
  line-height: 1.4;
}

.hero-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Two by two, like the poster; one column on phones. */
.pillars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .pillars {
    grid-template-columns: 1fr 1fr;
  }
}

.pillar {
  font-size: 1.15rem;
  line-height: 1.45;
}

.pillar p {
  margin: 0;
}

.pillar .pillar-more {
  margin-top: 0.6rem;
  font-size: 0.925rem;
  color: var(--color-muted);
  line-height: 1.55;
}

.cross {
  font-weight: 400;
  margin-right: 0.2em;
}

.mission {
  margin: 0 0 1rem;
  padding: 0.25rem 0 0.25rem 1rem;
  border-left: 4px solid var(--color-primary);
  font-size: 1.15rem;
  font-style: italic;
}

.two-col {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
}

.two-col>* {
  margin: 0;
}

.button-column {
  display: flex;
  gap: 10px;
  flex-direction: column;
  margin-top: 1rem;
}

.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.connect-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.connect-link {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-small);
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  text-decoration: none;
}

.connect-link:hover {
  background: rgb(255 255 255 / 0.7);
  color: var(--color-text);
}

.connect-link strong {
  display: block;
}

.connect-link span span {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-muted);
}

.connect-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #fff;
  color: var(--color-primary);
}

.connect-icon svg {
  width: 24px;
  height: 24px;
}

.connect-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

/* ---- Buttons ------------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0.6rem 1.25rem;
  border: 1px solid var(--color-primary);
  border-radius: 999px;
  background: var(--color-primary);
  color: var(--color-primary-text);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.2);
  transition: background-color 0.15s ease;
}

.button:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: var(--color-primary-text);
}

.button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.button.secondary {
  background: rgb(255 255 255 / 0.55);
  border-color: rgb(47 58 47 / 0.3);
  color: var(--color-text);
  box-shadow: none;
}

.button.secondary:hover {
  background: rgb(255 255 255 / 0.85);
}

.button.danger {
  background: var(--color-danger-text);
  border-color: var(--color-danger-text);
  color: #fff;
}

.button.small {
  padding: 0.3rem 0.85rem;
  font-size: 0.875rem;
}

.link-button {
  background: none;
  border: none;
  padding: 0;
  color: var(--color-primary);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

/* ---- Event list (plain text, with posters) ------------------------------- */

.event-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.event-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem 1.25rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--color-border);
}

.event-item:first-child {
  border-top: none;
  padding-top: 0.25rem;
}

.event-item.has-poster {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .event-item.has-poster {
    grid-template-columns: 150px minmax(0, 1fr);
  }
}

.event-title {
  margin: 0;
  font-size: 1.2rem;
}

.event-when {
  margin: 0.15rem 0 0;
  font-weight: 600;
}

.event-where {
  margin: 0;
  color: var(--color-muted);
}

.event-description {
  margin: 0.5rem 0 0;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.event-recap {
  margin: 0.5rem 0 0;
  white-space: pre-line;
}

/* A thumbnail that opens the full picture (posters, photos). */
.thumb-button {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  border-radius: var(--radius-small);
  overflow: hidden;
}

.thumb-button img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.2s ease;
}

.thumb-button:hover img {
  transform: scale(1.03);
}

.event-poster {
  width: 150px;
  max-width: 100%;
}

.event-poster .thumb-button {
  box-shadow: 0 2px 10px rgb(0 0 0 / 0.25);
}

/* An event someone arrived at from a photo's "From: event" link. */
.event-item:target {
  background: rgb(255 255 255 / 0.45);
  border-radius: var(--radius-small);
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  box-shadow: inset 4px 0 0 var(--color-primary);
}

.event-item {
  scroll-margin-top: 90px;
}

/* Photo thumbnails on a past event or in a newsletter. */
.photo-strip {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 8px;
  margin: 0.75rem 0 0.25rem;
  padding: 0;
  max-width: 560px;
}

.photo-strip .thumb-button {
  aspect-ratio: 1;
  border: 1px solid var(--glass-edge);
}

.photo-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The Photos page: a masonry-style grid with captions and event tags. */
.photo-grid-public {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 3 260px;
  column-gap: 12px;
}

.photo-card {
  break-inside: avoid;
  margin: 0 0 12px;
  padding: 6px;
  border-radius: var(--radius-small);
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
}

.photo-meta {
  margin: 0.4rem 0.25rem 0.15rem;
  font-size: 0.875rem;
  display: grid;
  gap: 2px;
}

.photo-tag {
  font-size: 0.8rem;
}

.photo-tag::before {
  content: "† ";
  font-weight: 400;
}

/* The embedded Google Calendar. */
.calendar-frame {
  width: 100%;
  height: 620px;
  border: 0;
  border-radius: var(--radius-small);
  background: #fff;
  display: block;
}

@media (max-width: 640px) {
  .calendar-frame {
    height: 480px;
  }
}

/* ---- Newsletters --------------------------------------------------------- */

.newsletter-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.prose p {
  margin: 0 0 1rem;
  white-space: pre-line;
  overflow-wrap: anywhere;
  max-width: 70ch;
}

.newsletter-card.has-cover {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .newsletter-card.has-cover {
    grid-template-columns: 160px minmax(0, 1fr);
  }
}

.newsletter-cover-thumb {
  width: 100%;
  height: auto;
  border-radius: var(--radius-small);
  display: block;
}

.newsletter-cover {
  margin: 0 0 1.25rem;
}

.newsletter-cover img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-small);
  display: block;
}

.newsletter-cover figcaption {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-top: 0.35rem;
}

.flush {
  margin: 0;
}

/* ---- Instagram ----------------------------------------------------------- */

.instagram-heading {
  margin: 1.5rem 0 0.75rem;
}

.instagram-profile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0 0 0.75rem;
}

.instagram-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: inherit;
  text-decoration: none;
}

.instagram-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 1px 6px rgb(0 0 0 / 0.2);
}

.instagram-names {
  display: grid;
  line-height: 1.3;
}

.instagram-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.instagram-tile {
  position: relative;
  display: block;
  border-radius: var(--radius-small);
  overflow: hidden;
  aspect-ratio: 1;
}

.instagram-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}

.instagram-tile:hover img {
  transform: scale(1.04);
}

.instagram-video {
  position: absolute;
  top: 8px;
  right: 10px;
  color: #fff;
  text-shadow: 0 1px 4px rgb(0 0 0 / 0.6);
}

.instagram-follow {
  margin: 0.75rem 0 0;
}

/* ---- Event pages ----------------------------------------------------------- */

.event-page-kicker {
  margin: 0 0 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-muted);
}

.event-page-title {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
}

.event-page-body {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

@media (min-width: 720px) {
  .event-page-body.has-poster {
    grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
    align-items: start;
  }
}

.event-page-poster {
  margin: 0;
}

.event-page-poster .thumb-button {
  box-shadow: 0 4px 16px rgb(0 0 0 / 0.25);
}

.calendar-description {
  margin-top: 0.5rem;
  font-size: 0.925rem;
}

.calendar-description summary {
  cursor: pointer;
  color: var(--color-muted);
}

.calendar-description p {
  white-space: pre-line;
}

/* "Show more" on the newsletters list. site.js adds .is-collapsed and the button. */
.collapsible.is-collapsed {
  max-height: 9.5em;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 60%, transparent);
  mask-image: linear-gradient(#000 60%, transparent);
}

.show-more {
  margin-top: 0.25rem;
}

/* ---- Lightbox (full-size posters and photos) ------------------------------ */

.lightbox {
  padding: 0;
  border: none;
  background: transparent;
  max-width: 96vw;
  max-height: 96vh;
}

.lightbox::backdrop {
  background: rgb(10 15 8 / 0.82);
}

.lightbox img {
  display: block;
  max-width: 96vw;
  max-height: 88vh;
  border-radius: var(--radius-small);
}

.lightbox figure {
  margin: 0;
}

.lightbox figcaption {
  color: #fff;
  text-align: center;
  margin-top: 0.5rem;
}

.lightbox-event {
  color: #fff;
  margin-left: 0.5rem;
}

.lightbox-event:hover {
  color: #e8f0e0;
}

.lightbox-close {
  position: fixed;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: none;
  background: rgb(255 255 255 / 0.9);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

/* ---- Forms (admin) -------------------------------------------------------- */

.field {
  margin-bottom: 1rem;
  flex: 1 1 200px;
}

.field-row {
  display: flex;
  gap: 0 16px;
  flex-wrap: wrap;
}

label,
.field-label {
  display: block;
  font-weight: 600;
  margin: 0 0 0.3rem;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.6rem 0.8rem;
  font: inherit;
  color: var(--color-field-text);
  background: var(--color-field-bg);
  border: 1px solid var(--color-field-border);
  border-radius: var(--radius-small);
}

input:focus,
textarea:focus,
select:focus {
  outline: 3px solid var(--color-accent);
  outline-offset: 1px;
  background: #fff;
}

input[type="checkbox"] {
  width: auto;
  accent-color: var(--color-primary);
}

[aria-invalid="true"] {
  border-color: var(--color-danger-text);
  box-shadow: 0 0 0 2px #ffb4a1;
}

.checkbox-field {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.checkbox-field input {
  margin-top: 0.35rem;
}

.checkbox-field label {
  font-weight: 500;
}

.hint {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.field-error {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-danger-text);
}

.field-error:empty {
  display: none;
}

/* ---- Badges & status messages -------------------------------------------- */

.badge {
  display: inline-block;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  vertical-align: middle;
}

.badge.success {
  background: var(--color-success-bg);
  color: var(--color-success-text);
}

.badge.warning {
  background: var(--color-warning-bg);
  color: var(--color-warning-text);
}

.badge.danger {
  background: var(--color-danger-bg);
  color: var(--color-danger-text);
}

.badge.neutral {
  background: var(--color-surface-alt);
  color: var(--color-muted);
  border: 1px solid var(--color-border);
}

.status {
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-small);
}

.status[data-kind="error"] {
  background: var(--color-danger-bg);
  color: var(--color-danger-text);
  border-color: transparent;
}

.status[data-kind="success"] {
  background: var(--color-success-bg);
  color: var(--color-success-text);
  border-color: transparent;
}

.glass-note {
  padding: 0.6rem 1rem;
  border-radius: var(--radius-small);
  color: var(--color-muted);
  margin: 0;
}

.empty-note {
  margin: 0;
  color: var(--color-muted);
}

/* ---- Dialogs ------------------------------------------------------------- */

.dialog {
  width: min(600px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow-y: auto;
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: var(--glass-strong);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  color: var(--color-text);
  box-shadow: 0 20px 60px rgb(0 0 0 / 0.4);
}

.dialog.wide {
  width: min(780px, calc(100vw - 24px));
}

.dialog::backdrop {
  background: rgb(10 20 12 / 0.4);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.dialog h2 {
  margin-top: 0;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.dialog-actions .spacer {
  flex: 1;
}

/* ---- Signal group welcome and rules ----------------------------------------- */

.signal-rules {
  max-width: 640px;
}

.signal-rules h2:focus {
  outline: none;
}

.signal-rules h3 {
  margin: 1.1rem 0 0.35rem;
  font-size: 1.05rem;
}

.signal-rules ul,
.signal-rules ol {
  margin: 0 0 0.5rem;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.35rem;
}

/* ---- Printing / "Save as PDF" ------------------------------------------------ */
/* A clean black-on-white page: no photo, header, footer or buttons. */
@media print {
  body {
    background: #fff;
    color: #000;
  }

  body::before,
  .site-header,
  .site-footer,
  .skip-link,
  .button,
  .button-row,
  .no-print,
  .lightbox {
    display: none !important;
  }

  .glass,
  .card {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    padding: 0;
  }

  .page {
    padding: 0;
  }

  a {
    color: #000;
  }

  .newsletter-cover,
  .photo-strip li {
    break-inside: avoid;
  }

  .prose p {
    orphans: 3;
    widows: 3;
  }

  .collapsible.is-collapsed {
    max-height: none;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

@media screen and (min-width: 2200px) {
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: var(--background-image-wide) var(--background-position-wide) / cover no-repeat, var(--background-fallback);
  }

}

@media screen and (min-width: 1200px) and (max-width: 2200px) {
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: var(--background-image-tall) var(--background-position-wide) / cover no-repeat, var(--background-fallback);
  }

}