:root {
  --color-bg: #f6f2e9;
  --color-surface: #fffdf8;
  --color-surface-alt: #eef2e8;
  --color-text: #223126;
  --color-muted: #5b695d;
  --color-brand: #35533a;
  --color-border: #d9dfd2;
  --color-accent: #d7c49a;
  --max-width: 1180px;
  --shadow-soft: 0 18px 36px rgba(34, 49, 38, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.container,
.site-header,
.site-footer {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.site-header-wrap,
.site-footer-wrap {
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(10px);
}

.site-header-wrap {
  position: relative;
  z-index: 100;
}

.site-header {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1rem 0;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0;
}

.site-brand__logo {
  width: 11rem;
  max-width: 100%;
  height: auto;
  flex: 0 0 auto;
}

.site-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.site-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-left: 0;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: var(--color-surface);
  cursor: pointer;
}

.site-nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  margin: 0.16rem 0;
  background: var(--color-brand);
  border-radius: 999px;
}

.account-menu {
  position: relative;
}

.account-menu__button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: var(--color-surface);
  color: var(--color-brand);
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.account-menu[data-account-status='authenticated'] .account-menu__button {
  border-color: var(--color-brand);
  background: var(--color-brand);
  color: var(--color-surface);
  box-shadow: 0 0 0 3px rgba(215, 196, 154, 0.35);
}

.account-menu[data-account-status='authenticated'] .account-menu__button::after {
  content: '';
  position: absolute;
  top: 0.42rem;
  right: 0.42rem;
  width: 0.55rem;
  height: 0.55rem;
  border: 2px solid var(--color-surface);
  border-radius: 999px;
  background: var(--color-accent);
}

.account-menu__icon {
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.account-menu__list {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 50;
  display: none;
  min-width: 11rem;
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.account-menu:hover .account-menu__list,
.account-menu:focus-within .account-menu__list,
.account-menu[data-account-menu-open='true'] .account-menu__list {
  display: grid;
  gap: 0.2rem;
}

.account-menu__list [hidden] {
  display: none !important;
}

.account-menu__list a,
.account-menu__list button {
  display: block;
  width: 100%;
  padding: 0.45rem 0.6rem;
  border: 0;
  border-radius: 0.35rem;
  background: transparent;
  color: var(--color-muted);
  font: inherit;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}

.account-menu__list a:hover,
.account-menu__list a:focus-visible,
.account-menu__list button:hover,
.account-menu__list button:focus-visible {
  background: var(--color-surface-alt);
  color: var(--color-brand);
}

.site-nav {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__item {
  position: relative;
}

.site-nav a,
.site-nav__label {
  display: inline-block;
  padding: 0.45rem 0;
  color: var(--color-muted);
  font-weight: 600;
}

.site-subnav {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 12rem;
  display: none;
  list-style: none;
  margin: 0;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
  z-index: 20;
}

.site-subnav li + li {
  margin-top: 0.35rem;
}

.site-subnav a {
  display: block;
  padding: 0.25rem 0;
  white-space: nowrap;
}

.site-nav__item--has-children:hover .site-subnav,
.site-nav__item--has-children:focus-within .site-subnav {
  display: block;
}

[data-text-block],
[data-photo-block] {
  position: relative;
}

[data-photo-block][hidden] {
  display: none !important;
}

[data-photo-block-grid][hidden] {
  display: none !important;
}

[data-text-block-state='loaded'] .text-block-loading-message {
  display: none !important;
}

[data-text-block-title],
[data-photo-block-title] {
  padding-right: 2.75rem;
}

.text-block-loading-message {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2rem;
  margin: 0;
  color: var(--color-muted);
  font-weight: 700;
}

.text-block-loading-message::before {
  content: '';
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-brand);
  border-radius: 999px;
  animation: text-block-loading-spin 800ms linear infinite;
}

[data-text-block-state='error'] .text-block-loading-message {
  color: #9f2f24;
}

[data-text-block-state='empty'] .text-block-loading-message::before,
[data-text-block-state='error'] .text-block-loading-message::before {
  animation: none;
  border-top-color: var(--color-border);
}

@keyframes text-block-loading-spin {
  to {
    transform: rotate(1turn);
  }
}

.text-block-edit-button {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  min-height: 2.25rem;
  border: 1px solid var(--color-brand);
  border-radius: 0.5rem;
  background: var(--color-surface);
  color: var(--color-brand);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.text-block-edit-button[hidden] {
  display: none !important;
}

.text-block-edit-button::before {
  content: "\270e";
  font-size: 1rem;
  line-height: 1;
}

.text-block-editor {
  width: min(calc(100% - 2rem), 44rem);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-soft);
}

.text-block-editor::backdrop {
  background: rgba(39, 46, 52, 0.45);
}

.text-block-editor__form {
  display: grid;
  gap: 1rem;
}

.text-block-editor__field {
  display: grid;
  gap: 0.4rem;
  color: var(--color-muted);
  font-weight: 700;
}

.text-block-editor__field input,
.text-block-editor__content {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
  font-weight: 400;
}

.text-block-editor__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.text-block-editor__command {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  min-height: 2.2rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: var(--color-surface-alt);
  color: var(--color-text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.text-block-editor__command:disabled,
.text-block-editor__content[contenteditable="false"] {
  opacity: 0.65;
  cursor: wait;
}

.text-block-editor__command svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.text-block-editor__content {
  min-height: 14rem;
  max-height: 45vh;
  overflow: auto;
}

.text-block-editor__content a[href] {
  color: var(--color-brand);
  text-decoration: underline !important;
  text-decoration-line: underline !important;
  text-decoration-style: solid;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.14em;
}

.text-block-editor__content img {
  display: block;
  max-width: min(100%, 24rem);
  height: auto;
  margin: 0.75rem 0;
  border-radius: 0.5rem;
}

.text-block-editor__content:focus {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}

.text-block-editor__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
}

.text-block-editor__message {
  margin: 0;
  color: var(--color-brand);
  font-weight: 700;
}

.photo-block-editor {
  width: min(calc(100% - 2rem), 76rem);
  max-height: min(92vh, 64rem);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-soft);
}

.photo-block-editor::backdrop {
  background: rgba(39, 46, 52, 0.45);
}

.photo-block-editor__form {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
}

.photo-block-editor__form h2 {
  margin: 0;
}

.photo-block-editor__controls {
  display: grid;
  gap: 0.75rem;
}

.photo-block-editor__search {
  display: grid;
  gap: 0.4rem;
}

.photo-block-editor__search-label {
  font-weight: 700;
}

.photo-block-editor__search input {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  font: inherit;
  color: var(--color-text);
  background: var(--color-surface);
}

.photo-block-editor__section {
  display: grid;
  gap: 0.9rem;
}

.photo-block-editor__section-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.75rem;
}

.photo-block-editor__section-header h3 {
  margin: 0;
  font-size: 1.05rem;
}

.photo-block-editor__count {
  color: var(--color-muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.photo-block-editor__section-summary {
  display: grid;
  justify-items: end;
  gap: 0.5rem;
}

.photo-block-editor__selected-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: 0.75rem;
}

.photo-block-editor__selected-item {
  display: grid;
  gap: 0.5rem;
  padding: 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: var(--color-surface-alt);
  box-shadow: var(--shadow-soft);
}

.photo-block-editor__selected-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  min-height: 0;
  max-height: none;
  overflow: hidden;
  border-radius: 0.45rem;
  background: rgba(34, 49, 38, 0.08);
}

.photo-block-editor__selected-preview img {
  width: 100%;
  height: 100% !important;
  max-height: none;
  object-fit: cover;
}

.photo-block-editor__selected-meta {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.5rem;
  flex-direction: column;
}

.photo-block-editor__selected-name {
  display: -webkit-box;
  overflow: hidden;
  overflow-wrap: anywhere;
  font-size: 0.8rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.photo-block-editor__selected-remove {
  flex: 0 0 auto;
  width: 100%;
  justify-content: center;
  padding-inline: 0.75rem;
}

.photo-block-editor__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr));
  gap: 0.5rem;
  max-height: min(42vh, 24rem);
  overflow: auto;
  padding: 0.25rem;
  align-items: start;
  align-content: start;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: rgba(255, 253, 248, 0.72);
}

.photo-block-editor__pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.photo-block-editor__pagination-button {
  min-width: 6.5rem;
  justify-content: center;
}

.photo-block-editor__pagination-summary {
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.photo-block-editor__option {
  position: relative;
  display: grid;
  gap: 0;
  border: 2px solid var(--color-border);
  border-radius: 0.5rem;
  background: var(--color-surface-alt);
  cursor: pointer;
  overflow: hidden;
  padding: 0.25rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.photo-block-editor__option input {
  position: absolute;
  top: 0.35rem;
  left: 0.35rem;
  z-index: 2;
  width: 1rem;
  height: 1rem;
  accent-color: #23684f;
}

.photo-block-editor__preview {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  min-height: 0;
  max-height: none;
  overflow: hidden;
  border-radius: 0.45rem;
  background: rgba(34, 49, 38, 0.08);
}

.photo-block-editor__option img {
  width: 100%;
  height: 100% !important;
  max-height: none;
  object-fit: cover;
}

.photo-block-editor__meta {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.photo-block-editor__option:has(input:checked) {
  border-color: #23684f;
  background: #eef7f1;
  box-shadow: 0 0 0 2px #fff, 0 0 0 6px #23684f, 0 10px 20px rgba(35, 104, 79, 0.18);
}

.photo-block-editor__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
}

.photo-block-editor__message {
  margin: 0;
  color: var(--color-brand);
  font-weight: 700;
}

.photo-block-editor__empty {
  margin: 0;
  padding: 1rem;
  border: 1px dashed var(--color-border);
  border-radius: 0.5rem;
  color: var(--color-muted);
  text-align: center;
  background: rgba(255, 253, 248, 0.72);
}

@media (max-width: 720px) {
  .work-hours-form__grid {
    grid-template-columns: 1fr;
  }

  .work-hours-admin__filters {
    grid-template-columns: 1fr;
  }

  .photo-block-editor__form {
    padding: 1rem;
  }

  .photo-block-editor__section-header {
    flex-direction: column;
  }

  .photo-block-editor__section-summary {
    justify-items: start;
  }

  .photo-block-editor__gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photo-block-editor__selected-meta {
    align-items: start;
    flex-direction: column;
  }
}

.photo-gallery-editor {
  width: min(calc(100% - 2rem), 58rem);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-soft);
}

.photo-gallery-editor::backdrop {
  background: rgba(39, 46, 52, 0.45);
}

.photo-gallery-editor__form {
  display: grid;
  gap: 1rem;
}

.photo-gallery-editor__form h2 {
  margin: 0;
}

.photo-gallery-editor__upload {
  justify-self: start;
}

.photo-gallery-editor__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
  gap: 0.75rem;
  max-height: min(58vh, 34rem);
  overflow: auto;
  padding: 0.2rem;
}

.photo-gallery-editor__item {
  display: grid;
  gap: 0.55rem;
  padding: 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: var(--color-surface-alt);
}

.photo-gallery-editor__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0.35rem;
}

.photo-gallery-editor__remove {
  justify-content: center;
  border-color: #9f2f24;
  color: #9f2f24;
}

.photo-gallery-editor__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
}

.photo-gallery-editor__message {
  margin: 0;
  color: var(--color-brand);
  font-weight: 700;
}

.photo-library-admin__sections {
  display: grid;
  gap: 1.5rem;
}

.photo-library-editor__surface {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: var(--color-surface-alt);
}

.photo-library-editor__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.85rem;
  align-items: start;
}

.photo-library-editor__header h3,
.photo-library-editor__header p {
  margin: 0;
}

.photo-library-editor__upload {
  justify-self: start;
}

.photo-library-editor__grid {
  min-height: 6rem;
}

.photo-library-editor__item {
  display: grid;
  gap: 0.55rem;
}

.photo-library-editor__item img,
.photo-library-selection__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0.35rem;
}

.photo-library-editor__remove {
  justify-content: center;
}

.photo-library-editor__actions {
  display: flex;
  justify-content: flex-end;
}

.photo-library-selection {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 0.85rem;
}

.photo-library-selection__item {
  display: grid;
  gap: 0.55rem;
  padding: 0.65rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: var(--color-surface);
}

.text-block-link-dialog {
  width: min(calc(100% - 2rem), 28rem);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-soft);
}

.text-block-link-dialog::backdrop {
  background: rgba(39, 46, 52, 0.25);
}

.text-block-link-dialog__form {
  display: grid;
  gap: 1rem;
}

.text-block-link-dialog__form h3 {
  margin: 0;
}

.text-block-link-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
}

.text-block-link-dialog__remove {
  margin-right: auto;
}

.hero {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 1.5rem auto 2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  border-radius: 0.5rem;
}

.page-hero-image {
  margin: 1.5rem auto 2rem;
}

.page-hero-image__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.page-hero-image__grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: 100%;
  object-fit: cover;
}

.photo-block-empty-message {
  display: grid;
  place-items: center;
  min-height: clamp(8rem, 18vw, 14rem);
  margin: 0;
  padding: 2rem;
  border: 1px dashed var(--color-border);
  border-radius: 0.5rem;
  background: rgba(255, 253, 248, 0.72);
  color: var(--color-muted);
  font-weight: 700;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.photo-block-empty-message[hidden] {
  display: none !important;
}

.content-panel .photo-block-empty-message {
  min-height: 12rem;
  box-shadow: none;
}

.hero__content {
  padding: 2rem;
  display: grid;
  gap: 1rem;
  background: linear-gradient(180deg, rgba(238, 242, 232, 0.75), rgba(255, 253, 248, 0.95));
}

.eyebrow {
  margin: 0;
  color: var(--color-brand);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

h2 {
  font-size: clamp(1.4rem, 2vw, 2rem);
}

.hero__intro,
.section-intro p,
.callout p,
.site-footer__text,
.card p,
.item-list a {
  color: var(--color-muted);
}

.hero__actions-label {
  margin: 0.25rem 0 0;
  font-weight: 700;
  color: var(--color-brand);
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.quick-links a,
.card,
.callout,
.item-list li,
.content-panel {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: 0.5rem;
}

.quick-links a {
  display: block;
  padding: 0.95rem 1rem;
  font-weight: 700;
  text-align: center;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 2.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-brand);
  border-radius: 0.5rem;
  background: var(--color-brand);
  color: var(--color-surface);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.button-link--quiet {
  border-color: var(--color-border);
  background: var(--color-surface-alt);
  color: var(--color-text);
}

.button-link--danger {
  border-color: #9f2f24;
  background: #9f2f24;
  color: var(--color-surface);
}

.section-intro,
.section-block {
  margin-bottom: 2rem;
}

.section-intro .container {
  padding: 2rem 0 0.5rem;
}

.news-page-agenda-section {
  margin-top: 1.5rem;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.agenda-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.agenda-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.agenda-heading__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
}

.agenda-add-button[hidden],
.agenda-show-past-button[hidden] {
  display: none !important;
}

.agenda-card {
  position: relative;
  display: grid;
  justify-items: flex-start;
  align-content: start;
  gap: 0.8rem;
  min-height: 15rem;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
  text-align: left;
}

.agenda-card__date {
  display: grid;
  justify-items: flex-start;
  gap: 0.35rem;
}

.agenda-card__month,
.agenda-card__day,
.agenda-card__text,
.agenda-card__title,
.agenda-card__body p,
.agenda-card__full-date {
  margin: 0;
}

.agenda-card__month {
  color: var(--color-brand);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
}

.agenda-card__day {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1;
}

.agenda-card__full-date {
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.agenda-card__title {
  font-size: 1.25rem;
}

.agenda-card__text {
  margin-top: 1rem;
  color: var(--color-muted);
}

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

.agenda-status {
  margin: 1.25rem 0 0;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: var(--color-surface);
  color: var(--color-muted);
  text-align: left;
}

.agenda-status[hidden] {
  display: none !important;
}

.agenda-more-button {
  margin: 1.25rem auto 0;
}

.agenda-more-button[hidden] {
  display: none !important;
}

.card {
  padding: 1.25rem;
  box-shadow: var(--shadow-soft);
}

.callout {
  padding: 1.5rem;
  background: linear-gradient(135deg, #f4ebd4, #fffdf8);
}

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

.item-list li {
  padding: 1rem 1.1rem;
}

.homepage-story {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 1.5rem;
  align-items: stretch;
}

.homepage-intro-section {
  margin-top: 1.5rem;
}

.content-panel {
  position: relative;
  padding: 1.25rem;
  box-shadow: var(--shadow-soft);
  height: 100%;
  text-align: left;
}

.top-offset-panel {
  margin-top: 1rem;
}

.content-panel h2 {
  margin-bottom: 1rem;
}

.news-section {
  margin-top: 1.5rem;
}

.news-heading,
.photo-gallery-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.news-add-button[hidden],
.photo-gallery-manage[hidden],
.photo-gallery-status[hidden],
[data-photo-gallery-grid][hidden] {
  display: none !important;
}

[data-photo-gallery-app] {
  position: relative;
}

[data-photo-gallery-state='loaded'] .photo-gallery-status::before,
[data-photo-gallery-state='error'] .photo-gallery-status::before,
[data-photo-gallery-state='unavailable'] .photo-gallery-status::before {
  animation: none;
  border-top-color: var(--color-border);
}

[data-photo-gallery-state='error'] .photo-gallery-status {
  color: #9f2f24;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.news-status {
  margin: 1.25rem 0 0;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: var(--color-surface);
  color: var(--color-muted);
  text-align: left;
}

.news-status[hidden] {
  display: none !important;
}

.news-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
  text-align: left;
}

.news-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.news-card__content {
  display: grid;
  gap: 0.65rem;
  padding: 1.1rem;
}

.news-card__date {
  color: var(--color-brand);
  font-size: 0.85rem;
  font-weight: 700;
}

.news-card__body p {
  margin: 0 0 1rem;
}

.news-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.25rem;
}

.news-pagination[hidden] {
  display: none !important;
}

.news-editor,
.news-gallery-dialog,
.news-delete-dialog,
.agenda-editor,
.agenda-delete-dialog,
.video-editor,
.video-delete-dialog {
  width: min(calc(100% - 2rem), 44rem);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-soft);
}

.news-editor::backdrop,
.news-gallery-dialog::backdrop,
.news-delete-dialog::backdrop,
.agenda-editor::backdrop,
.agenda-delete-dialog::backdrop,
.video-editor::backdrop,
.video-delete-dialog::backdrop {
  background: rgba(39, 46, 52, 0.45);
}

.news-editor__form,
.news-gallery-dialog__form,
.news-delete-dialog__form,
.agenda-editor__form,
.agenda-delete-dialog__form,
.video-editor__form,
.video-delete-dialog__form {
  display: grid;
  gap: 1rem;
}

.news-editor__fields,
.agenda-editor__fields,
.video-editor__fields {
  display: grid;
  gap: 0.85rem;
}

.news-image-picker {
  display: grid;
  gap: 0.75rem;
}

.news-image-picker__preview {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: var(--color-surface-alt);
}

.news-image-picker__preview[hidden] {
  display: none !important;
}

.news-image-picker__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.news-editor__delete,
.agenda-editor__delete,
.video-editor__delete {
  margin-right: auto;
  border-color: #9f2f24;
  color: #9f2f24;
}

.news-editor__delete[hidden],
.agenda-editor__delete[hidden],
.video-editor__delete[hidden] {
  display: none !important;
}

.news-delete-dialog,
.agenda-delete-dialog,
.video-delete-dialog {
  width: min(calc(100% - 2rem), 34rem);
}

.news-delete-dialog__message,
.agenda-delete-dialog__message,
.video-delete-dialog__message {
  margin: 0;
}

.news-delete-dialog__confirm,
.agenda-delete-dialog__confirm,
.video-delete-dialog__confirm {
  border-color: #9f2f24;
  background: #9f2f24;
}

.news-gallery-dialog__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  max-height: 55vh;
  overflow: auto;
}

.news-gallery-dialog__option {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 0.5rem;
  background: transparent;
  cursor: pointer;
}

.news-gallery-dialog__option[aria-pressed="true"] {
  border-color: var(--color-brand);
}

.news-gallery-dialog__option img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0.35rem;
}

.members-panel {
  display: grid;
  place-items: center;
  width: min(calc(100% - 2rem), var(--max-width));
  min-height: 48vh;
  margin: 2rem auto;
}

.members-panel[hidden] {
  display: none !important;
}

.members-panel__surface {
  display: grid;
  gap: 1rem;
  width: min(100%, 34rem);
  padding: 2rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
  text-align: left;
}

.members-panel__surface[hidden] {
  display: none !important;
}

.members-form {
  display: grid;
  gap: 1rem;
}

.members-form__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.members-form__field {
  display: grid;
  gap: 0.35rem;
  color: var(--color-text);
  font-weight: 700;
}

.members-form__field input,
.members-form__field textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
  font-weight: 400;
}

.members-form__field textarea {
  min-height: 8rem;
  resize: vertical;
}

.members-form__field input:disabled,
.members-form__field textarea:disabled,
.button-link:disabled {
  opacity: 0.65;
  cursor: wait;
}

.members-form__message {
  margin: 0;
  color: #9f2f24;
  font-weight: 700;
}

.members-form__link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-brand);
  font: inherit;
  font-weight: 700;
  text-align: right;
  text-decoration: underline;
  cursor: pointer;
}

.members-form__link:disabled {
  opacity: 0.65;
  cursor: wait;
}

.klussen-page {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.klussen-page__heading {
  align-items: center;
  margin-bottom: 0;
}

.klussen-page__intro {
  max-width: 44rem;
  margin: 0;
  color: var(--color-muted);
}

.work-hours-page {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.work-hours-page__heading h1,
.work-hours-history__header h2 {
  margin: 0;
}

.work-hours-page__intro {
  max-width: 44rem;
  margin: 0;
  color: var(--color-muted);
}

.work-hours-form {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: var(--color-surface-alt);
}

.work-hours-form__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.work-hours-history {
  display: grid;
  gap: 1rem;
}

.work-hours-admin__toolbar {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.work-hours-admin__search {
  max-width: 28rem;
}

.work-hours-admin__filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: end;
}

.work-hours-admin__filter-actions {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  min-height: 100%;
}

.work-hours-admin-table__description {
  min-width: 18rem;
  white-space: pre-wrap;
}

.work-hours-admin-table__actions {
  white-space: nowrap;
}

.work-hours-history__list {
  display: grid;
  gap: 0.9rem;
}

.work-hours-history__empty {
  margin: 0;
  padding: 1rem 1.1rem;
  border: 1px dashed var(--color-border);
  border-radius: 0.5rem;
  background: rgba(255, 253, 248, 0.72);
  color: var(--color-muted);
  font-weight: 700;
}

.work-hours-entry {
  display: grid;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.work-hours-entry__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: start;
}

.work-hours-entry__meta {
  display: grid;
  gap: 0.2rem;
}

.work-hours-entry__name,
.work-hours-entry__hours {
  margin: 0;
  font-weight: 700;
}

.work-hours-entry__date {
  margin: 0;
  color: var(--color-muted);
}

.work-hours-entry__description {
  margin: 0;
  white-space: pre-wrap;
}

.klussen-list {
  display: grid;
  gap: 1rem;
}

.klussen-list__empty {
  margin: 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: var(--color-surface);
  color: var(--color-muted);
}

.klus-card {
  display: grid;
  gap: 0.9rem;
  padding: 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
  text-align: left;
}

.klus-card__header {
  display: grid;
  gap: 0.35rem;
}

.klus-card__date,
.klus-card__description,
.klus-card__needed,
.klus-card__assignments p {
  margin: 0;
}

.klus-card__date,
.klus-card__needed {
  color: var(--color-brand);
  font-weight: 700;
}

.klus-card__description,
.klus-card__assignments {
  color: var(--color-muted);
}

.klus-card__assignments {
  display: grid;
  gap: 0.45rem;
  padding: 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: var(--color-surface-alt);
}

.klus-card__assignments h3 {
  margin: 0;
  color: var(--color-text);
  font-size: 1rem;
}

.klus-card__assignments ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.klus-card__assignments li {
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: var(--color-surface);
  color: var(--color-text);
  font-weight: 700;
}

.klus-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.klus-dialog {
  width: min(calc(100% - 2rem), 40rem);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-soft);
}

.klus-dialog::backdrop {
  background: rgba(39, 46, 52, 0.45);
}

.klus-dialog__form {
  display: grid;
  gap: 1rem;
}

.klus-dialog__field {
  display: grid;
  gap: 0.4rem;
  color: var(--color-text);
  font-weight: 700;
}

.klus-dialog__field input,
.klus-dialog__field textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
  font-weight: 400;
}

.klus-dialog__field textarea {
  min-height: 8rem;
  resize: vertical;
}

.klus-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
}

.klus-dialog__message {
  margin: 0;
  color: #9f2f24;
  font-weight: 700;
}

.registration-feedback {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: var(--color-surface-alt);
}

.registration-feedback[hidden] {
  display: none !important;
}

.user-management {
  width: min(calc(100% - 2rem), var(--max-width));
  min-height: 48vh;
  margin: 2rem auto;
}

.user-management__surface {
  display: grid;
  gap: 1rem;
  width: min(100%, 34rem);
  margin: 0 auto;
  padding: 2rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
  text-align: left;
}

.user-management__surface--wide {
  width: 100%;
}

.user-management__surface[hidden] {
  display: none !important;
}

.user-management__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.user-management__summary {
  margin: 0.3rem 0 0;
  color: var(--color-muted);
  font-weight: 700;
  text-align: right;
}

.user-management__table-wrap {
  overflow-x: auto;
}

.user-management-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 48rem;
}

.user-management-table th,
.user-management-table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.user-management-table th {
  color: var(--color-brand);
  font-size: 0.85rem;
}

.user-management-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--color-border);
  border-radius: 0.35rem;
  background: var(--color-surface-alt);
  color: var(--color-text);
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

.user-management-pill--pending {
  border-color: var(--color-accent);
  background: #fbf4df;
}

.user-management__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.user-management__action {
  padding: 0.45rem 0.65rem;
}

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

.statistics-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  margin-bottom: 1.5rem;
}

.statistics-card {
  border: 1px solid rgba(35, 104, 79, 0.18);
  border-radius: 0.5rem;
  background: #f7fbf8;
  padding: 1rem 1.1rem;
}

.statistics-card__label {
  margin: 0 0 0.35rem;
  color: var(--color-muted);
}

.statistics-card__value {
  display: block;
  font-size: 1.75rem;
  line-height: 1.1;
}

.statistics-sections {
  display: grid;
  gap: 1.25rem;
}

.statistics-section {
  border: 1px solid rgba(35, 104, 79, 0.16);
  border-radius: 0.5rem;
  background: var(--color-surface);
  padding: 1rem;
}

.statistics-section__header {
  margin-bottom: 0.85rem;
}

.statistics-section__header h3 {
  margin: 0;
}

.user-details-dialog {
  width: min(calc(100% - 2rem), 42rem);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-soft);
}

.user-details-dialog::backdrop {
  background: rgba(39, 46, 52, 0.45);
}

.user-details-dialog__form {
  display: grid;
  gap: 1rem;
}

.user-details-dialog__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.user-details-dialog__header h2 {
  margin: 0;
}

.user-details-dialog__content {
  max-height: min(62vh, 32rem);
  overflow: auto;
}

.user-details-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
  margin-top: 1rem;
}

.user-details-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.user-details-list__row {
  display: grid;
  grid-template-columns: minmax(9rem, 0.42fr) 1fr;
  gap: 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--color-border);
}

.user-details-list__row dt {
  color: var(--color-brand);
  font-weight: 700;
}

.user-details-list__row dd {
  margin: 0;
  color: var(--color-text);
  overflow-wrap: anywhere;
}

.user-profile-form {
  display: grid;
  gap: 1rem;
}

.user-profile-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.user-profile-form__hint {
  margin: -0.45rem 0 0;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.feature-figure {
  margin: 0;
  overflow: hidden;
}

.feature-figure img {
  width: 100%;
  border-radius: 0.5rem;
}

.rich-copy p {
  margin: 0 0 1rem;
  color: var(--color-muted);
}

.legacy-rich-content {
  margin-top: 1rem;
  overflow: hidden;
  text-align: left;
}

.legacy-rich-content:not([data-text-block-source='saved']) h1,
.legacy-rich-content:not([data-text-block-source='saved']) h2,
.legacy-rich-content:not([data-text-block-source='saved']) h3,
.legacy-rich-content:not([data-text-block-source='saved']) h4,
.legacy-rich-content:not([data-text-block-source='saved']) h5,
.legacy-rich-content:not([data-text-block-source='saved']) h6,
.legacy-rich-content:not([data-text-block-source='saved']) p,
.legacy-rich-content:not([data-text-block-source='saved']) li,
.legacy-rich-content:not([data-text-block-source='saved']) div,
.legacy-rich-content:not([data-text-block-source='saved']) span,
.legacy-rich-content:not([data-text-block-source='saved']) font,
.legacy-rich-content:not([data-text-block-source='saved']) [style*='text-align:center'],
.legacy-rich-content:not([data-text-block-source='saved']) [style*='text-align: center'] {
  text-align: left !important;
}

.legacy-rich-content h2 {
  margin-bottom: 1rem;
}

.legacy-rich-content .paragraph {
  margin: 0 0 1rem;
  color: var(--color-muted);
}

.legacy-rich-content .formlist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.legacy-rich-content .wsite-form-field {
  margin-bottom: 1rem;
}

.legacy-rich-content .wsite-name-field,
.legacy-rich-content .legacy-inline-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.legacy-rich-content .wsite-name-field .wsite-form-label,
.legacy-rich-content .wsite-name-field > div[style*='clear:both'],
.legacy-rich-content .wsite-name-field .wsite-form-instructions {
  grid-column: 1 / -1;
}

.legacy-rich-content .wsite-name-field > .wsite-form-label {
  display: none;
}

.legacy-rich-content .wsite-name-field .wsite-form-input-container {
  display: flex;
  flex-direction: column;
}

.legacy-rich-content .wsite-name-field .wsite-form-sublabel {
  order: -1;
  margin-bottom: 0.35rem;
  color: var(--color-text);
  font-weight: 700;
}

.legacy-rich-content .wsite-form-label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 700;
  color: var(--color-text);
}

.legacy-rich-content .wsite-form-input-container {
  width: 100%;
}

.legacy-rich-content .wsite-form-input,
.legacy-rich-content .wsite-input,
.legacy-rich-content textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  font: inherit;
  color: var(--color-text);
  background: var(--color-surface);
}

.legacy-rich-content textarea {
  min-height: 8rem;
}

.registration-address-preview {
  margin: -0.35rem 0 1rem;
  color: var(--color-brand);
  font-weight: 700;
}

.registration-address-preview[hidden] {
  display: none !important;
}

.registration-address-preview[data-state='loading'] {
  color: var(--color-muted);
}

.registration-address-preview[data-state='error'] {
  color: #9f2f24;
}

.legacy-rich-content .wsite-form-radio-container {
  display: grid;
  gap: 0.5rem;
}

.legacy-rich-content .form-radio-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legacy-rich-content .wsite-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: var(--color-surface-alt);
  color: var(--color-text);
  font-weight: 700;
  text-decoration: none;
}

.legacy-rich-content .legacy-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
  margin-bottom: 0;
}

.legacy-rich-content .wsite-form-fields-required-label,
.legacy-rich-content .wsite-form-sublabel,
.legacy-rich-content .wsite-form-instructions {
  color: var(--color-muted);
}

.legacy-rich-content img {
  max-width: 100%;
  height: auto;
}

[data-text-block-body] a {
  color: var(--color-brand);
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.legacy-rich-content .wsite-multicol-table,
.legacy-rich-content .wsite-multicol-table-wrap {
  width: 100%;
}

.legacy-rich-content .imgPusher {
  display: none;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.gallery-grid__item {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0.5rem;
}

.media-gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.video-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.video-consent-panel {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: var(--color-surface-alt);
}

.video-consent-panel__message {
  margin: 0;
}

.video-consent-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.video-gallery__item {
  position: relative;
}

.video-gallery__placeholder {
  display: grid;
  align-content: center;
  gap: 1rem;
  min-height: 100%;
  aspect-ratio: 16 / 9;
  padding: 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: var(--color-surface-alt);
}

.video-gallery__placeholder-message {
  margin: 0;
}

.video-gallery__placeholder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.video-gallery__item iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 0.5rem;
}

.gallery-lightbox {
  width: min(92vw, 980px);
  padding: 0;
  border: 0;
  background: transparent;
}

.gallery-lightbox::backdrop {
  background: rgba(34, 49, 38, 0.72);
}

.gallery-lightbox__inner {
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.gallery-lightbox__close {
  display: inline-flex;
  margin-left: auto;
  margin-bottom: 0.75rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: var(--color-surface-alt);
  color: var(--color-text);
  cursor: pointer;
}

.gallery-lightbox__image {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 0.5rem;
}

.gallery-lightbox__controls {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.gallery-lightbox__button {
  padding: 0.6rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: var(--color-surface-alt);
  color: var(--color-text);
  font: inherit;
  cursor: pointer;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0 2rem;
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-align: left;
}

.site-footer__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
}

.site-footer__icon svg {
  width: 100%;
  height: 100%;
}

.site-footer__links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.site-footer__icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
}

.site-footer__icon-link--facebook {
  color: #1877f2;
}

.site-footer__policy-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--color-text);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.cookie-policy-dialog {
  width: min(92vw, 760px);
  max-width: 100%;
  max-height: min(88vh, 56rem);
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
}

.cookie-policy-dialog::backdrop {
  background: rgba(34, 49, 38, 0.72);
}

.cookie-policy-dialog__surface {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
  max-height: min(88vh, 56rem);
  overflow: hidden;
}

.cookie-policy-dialog__close {
  position: sticky;
  top: 0;
  align-self: flex-start;
  z-index: 1;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: var(--color-surface-alt);
  color: var(--color-text);
  font: inherit;
  cursor: pointer;
  padding: 0.55rem 0.85rem;
  margin-bottom: 1rem;
}

.cookie-policy-dialog__content {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.cookie-policy-dialog__content h2 {
  margin: 0 0 1rem;
}

.cookie-policy-dialog__body {
  display: grid;
  gap: 0.85rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 0.35rem;
}

.cookie-policy-dialog__body p {
  margin: 0;
}

@media (max-width: 900px) {
  .site-header,
  .homepage-story,
  .card-grid,
  .agenda-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .site-header__actions {
    grid-column: 2;
    grid-row: 1;
  }

  .quick-links {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .media-gallery-grid,
  .news-grid,
  .video-gallery {
    grid-template-columns: 1fr;
  }

  .site-nav-toggle {
    display: inline-flex;
    flex-direction: column;
  }

  #site-navigation {
    display: none;
    grid-column: 1 / -1;
    grid-row: 2;
    padding-top: 0.75rem;
  }

  .site-header[data-menu-open='true'] #site-navigation {
    display: block;
  }

  .site-nav,
  .site-footer__links {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .cookie-policy-dialog__close {
    position: sticky;
    top: 0;
  }

  .cookie-policy-dialog__content {
    padding-right: 0;
  }

  .site-nav {
    flex-direction: column;
    gap: 0.5rem;
  }

  .site-subnav {
    position: static;
    display: block;
    min-width: 0;
    padding: 0.35rem 0 0 0.75rem;
    border: 0;
    box-shadow: none;
    background: transparent;
  }

  .site-brand {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer {
    display: grid;
  }

  .legacy-rich-content .wsite-name-field,
  .legacy-rich-content .legacy-inline-fields {
    grid-template-columns: 1fr;
  }

  .user-details-list__row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .user-profile-form__grid {
    grid-template-columns: 1fr;
  }
}
