/* The site's style. These are the original values; the page editor's "Site style"
   tab writes changed values to theme.css, which every page loads after this file. */
:root {
  --surface: rgba(255, 255, 255, 0.14);
  --text: #eff6ff;
  --muted: rgba(239, 246, 255, 0.8);
  --white: #ffffff;
  --shadow: rgba(15, 23, 42, 0.473);

  /* Buttons and highlights on the coloured panels. */
  --accent: #ffd166;
  --accent-strong: #ffb703;
  --accent-tint: rgba(255, 209, 102, 0.3);
  --on-accent: #1f2937;

  /* Coloured panels: the menu bar, page tops and banners, and the text on them. */
  --panel-color: rgba(168, 137, 96, 0.788);
  --on-panel-strong: #ffffff;
  --on-panel-text: #eff6ff;
  --on-panel-muted: rgba(239, 246, 255, 0.8);

  /* Brand colour: headings, labels and links in the white boxes, and its light tints. */
  --brand: #a36f00;
  --brand-soft: #f5f1ea;
  --brand-line: #eee7dc;
  --brand-line-light: #f1ece4;
  --brand-border: #d9cdb9;
  --brand-glow: rgba(163, 111, 0, 0.2);

  /* Text in the white boxes. */
  --ink: #1f2937;
  --ink-body: #526174;

  --footer-bg: #000000;
  --footer-accent: #c8aa78;
  --footer-accent-hover: #b59563;
  --page-bg: #d1d1d1;

  --font-body: Arial, Helvetica, sans-serif;
  --font-heading: var(--font-body);
  --round: 1;
  --text-scale: 100%;
}

html {
  font-size: var(--text-scale);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
}

/* Inside the coloured panels the light text colours follow the panel text setting. */
.topbar,
.page-hero,
.cta-band,
.info-band,
.stats-band,
.simple-header,
.pill-menu.on-panel {
  --white: var(--on-panel-strong);
  --text: var(--on-panel-text);
  --muted: var(--on-panel-muted);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  background: linear-gradient(135deg, var(--page-bg) 0%, #ffffff 50%, #ffffff 100%);
  color: var(--text);
}

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

.page-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 28px auto;
}

.topbar {
  --logo-width: clamp(180px, 22vw, 250px);
  --bar-padding: clamp(16px, 2.5vw, 24px);
  position: relative;
  width: min(1200px, calc(100%px));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px var(--bar-padding) 12px
    calc(var(--bar-padding) + var(--logo-width) + clamp(16px, 3vw, 40px));
  backdrop-filter: blur(12px);
  background: var(--panel-color);
  border: 1px solid rgba(82, 73, 124, 0.12);
  border-radius: calc(18px * var(--round));
  box-shadow: 0 10px 30px var(--shadow);
  z-index: 50;
  transition: background 0.25s ease;
}

.topbar.fixed {
  position: fixed;
  top: 10px;  
  left: 0;
  right: 0;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  background: var(--panel-color);
  border-radius: calc(18px * var(--round)) calc(18px * var(--round)) calc(18px * var(--round)) calc(18px * var(--round));
  animation: slide-down 0.85s ease-out;
}

@keyframes slide-down {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

.brand {
  position: absolute;
  top: 50%;
  left: var(--bar-padding);
  z-index: 55;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  transform: translateY(-50%);
}

.brand img {
  width: var(--logo-width);
  height: auto;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.32));
  mix-blend-mode: screen;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
  gap: clamp(12px, 2vw, 26px);
  text-align: right;
  white-space: nowrap;
}

.nav a,
.nav-dropdown summary,
.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav > a,
.nav-dropdown summary,
.menu-group a,
.dropdown-menu a {
  color: var(--muted);
}

.nav > a,
.nav-dropdown summary {
  font-size: clamp(0.82rem, 1.15vw, 0.95rem);
}

.nav a:hover,
.nav-dropdown summary:hover,
.menu-group a:hover,
.dropdown-menu a:hover,
.footer-nav a:hover {
  color: var(--white);
}

/* Dropdowns. The big menu (.mega-menu) is placed against the whole menu bar,
   not its own link, so it always stays inside the screen; the small ones
   (.small-dropdown with a .dropdown-menu) hang under their own link. */
.nav-dropdown {
  position: static;
}

.small-dropdown {
  position: relative;
}

.nav-dropdown summary {
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown summary::after {
  display: inline-block;
  margin-left: 7px;
  content: "";
  vertical-align: 3px;
  border: 4px solid transparent;
  border-top-color: currentColor;
  transform: translateY(2px);
  transition: transform 0.2s ease;
}

.nav-dropdown[open] summary {
  color: var(--white);
}

.nav-dropdown[open] summary::after {
  transform: translateY(-2px) rotate(180deg);
}

.mega-menu,
.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  z-index: 60;
  padding: 10px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: calc(18px * var(--round));
  background: #ffffff;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.28);
  color: var(--ink);
  text-align: left;
  white-space: normal;
}

.mega-menu {
  right: var(--bar-padding);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 12px;
  width: min(620px, calc(100% - 2 * var(--bar-padding)));
  max-height: min(72vh, 600px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.menu-group {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
}

.menu-group h2 {
  margin: 8px 12px 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--brand-line);
  color: var(--brand);
  font-size: 0.7rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.menu-group h2:not(:first-child) {
  margin-top: 16px;
}

.nav .menu-group a,
.nav .dropdown-menu a {
  padding: 8px 12px;
  border-radius: calc(10px * var(--round));
  color: #334155;
  font-size: 0.9rem;
  line-height: 1.35;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav .menu-group a:hover,
.nav .menu-group a:focus-visible,
.nav .dropdown-menu a:hover,
.nav .dropdown-menu a:focus-visible {
  background: var(--brand-soft);
  color: var(--brand);
}

.dropdown-menu {
  right: -12px;
  display: flex;
  width: max-content;
  min-width: 170px;
  max-width: min(300px, calc(100vw - 32px));
  flex-direction: column;
  gap: 2px;
}

.nav .dropdown-menu a[aria-current="true"] {
  color: var(--ink);
  font-weight: 700;
}

.nav .dropdown-menu a[aria-current="true"]::after {
  content: "✓";
  float: right;
  color: var(--brand);
}

.nav-dropdown[open] .mega-menu,
.nav-dropdown[open] .dropdown-menu {
  animation: menu-appear 0.16s ease-out;
}

@keyframes menu-appear {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home {
  --section-gap: 36px;
  padding-top: 24px;
}

/* One spacing rule for every section, so the gaps stay even when sections are
   reordered. Change --section-gap on .home for the whole page, or add a
   space-above-* class to one section. */
.home > * + * {
  margin-top: var(--section-gap);
}

.home > .space-above-none,
.side-content > .space-above-none,
[data-sections] > .space-above-none {
  margin-top: 0;
}

.home > .space-above-small,
.side-content > .space-above-small,
[data-sections] > .space-above-small {
  margin-top: calc(var(--section-gap) / 2);
}

.home > .space-above-large,
.side-content > .space-above-large,
[data-sections] > .space-above-large {
  margin-top: calc(var(--section-gap) * 2);
}

.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  border-radius: calc(28px * var(--round));
  box-shadow: 0 30px 70px var(--shadow);
  background: #0f172a;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.1s ease, visibility 1.1s ease;
}

.slide.active {
  opacity: 1;
  visibility: visible;
}

.slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  transition: transform 10s ease;
}

.slide.active .slide-bg {
  transform: scale(1.12);
}

.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 1;
}

.slide-content {
  position: absolute;
  z-index: 2;
  left: 70px;
  bottom: 80px;
  max-width: 620px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(2.6rem, 4vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 520px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.7;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: var(--on-accent);
  box-shadow: 0 12px 24px var(--shadow);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
}

.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-2px);
}

.slider-nav {
  position: absolute;
  right: 32px;
  bottom: 30px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
}

.dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.45);
  transition: all 0.2s ease;
}

.dot.active {
  width: 36px;
  border-radius: 999px;
  background: var(--white);
}

.dot:focus-visible,
.menu-toggle:focus-visible,
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.showcase-section,
.news-section {
  scroll-margin-top: 100px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
  color: var(--ink);
}

.section-heading:last-child {
  margin-bottom: 0;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.section-label,
.card-kicker,
.news-date {
  color: var(--ink-body);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.section-label {
  display: inline-block;
  margin-bottom: 9px;
  color: var(--brand);
}

.section-heading > p {
  max-width: 340px;
  margin: 0;
  color: var(--ink-body);
  line-height: 1.65;
}

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

.category-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: calc(20px * var(--round));
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px rgba(15, 23, 42, 0.17);
}

.category-card > img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: #d6dde3;
}

.category-card-copy {
  display: flex;
  min-height: 152px;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px 22px;
}

.card-kicker {
  font-size: 0.66rem;
}

.category-card h3 {
  margin: 9px 0 16px;
  font-size: 1.38rem;
  line-height: 1.2;
}

.card-link,
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #20334e;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.category-card .card-link {
  margin-top: auto;
}

.card-link span,
.text-link span,
.social-link span {
  transition: transform 0.2s ease;
}

.category-card:hover .card-link span,
.text-link:hover span,
.social-link:hover span {
  transform: translateX(4px);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.news-card {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(160px, 0.88fr) minmax(0, 1.12fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: calc(20px * var(--round));
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
  color: var(--ink);
}

.news-image {
  min-height: 240px;
  overflow: hidden;
  background: #d6dde3;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.news-image:hover img {
  transform: scale(1.04);
}

.news-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px 20px;
}

.news-date {
  font-size: 0.67rem;
}

.news-copy h3 {
  margin: 11px 0 8px;
  font-size: 1.16rem;
  line-height: 1.35;
}

.news-copy h3 a {
  color: inherit;
  text-decoration: none;
}

.news-copy h3 a:hover {
  color: var(--brand);
}

.news-copy p {
  margin: 0 0 20px;
  color: var(--ink-body);
  font-size: 0.92rem;
  line-height: 1.6;
}

.news-copy .text-link {
  margin-top: auto;
}

.info-band {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: center;
  padding: 28px 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: calc(22px * var(--round));
  background: var(--panel-color);
  box-shadow: 0 18px 45px var(--shadow);
  scroll-margin-top: 100px;
}

.info-label {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
}

.info-copy h2 {
  margin: 0;
  font-size: clamp(1.8rem, 2vw, 2.6rem);
  line-height: 1.2;
}

.info-band p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.8;
}

.site-footer {
  position: relative;
  width: min(1200px, calc(100% - 32px));
  margin: 20px auto 0;
  padding: 0 16px 14px;
  border-radius: 0px;
  background: var(--footer-bg);
  color: #eeeeee;
}

.site-footer > .social-link {
  display: flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  background: var(--footer-accent);
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background 0.2s ease;
}

.site-footer > .social-link:hover,
.back-to-top:hover {
  background: var(--footer-accent-hover);
}

.footer-inner {
  width: min(1280px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 32px 4px 0;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-column {
  gap: 4px;
}

.footer-column h2 {
  margin: 4px 0 16px;
  color: #ffffff;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-column a {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: #eeeeee;
  font-size: 0.94rem;
  line-height: 1.4;
  text-decoration: none;
}

.footer-column a:hover {
  color: var(--footer-accent);
}

.footer-column a span {
  color: var(--footer-accent);
}

.footer-column address {
  margin: 0 0 14px;
  color: #eeeeee;
  font-size: 0.94rem;
  font-style: normal;
  line-height: 1.3;
}

.footer-contact a {
  margin-top: 12px;
}

.footer-bottom {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 22px;
  margin-top: 8px;
}

.footer-brand {
  display: block;
  width: fit-content;
  border-radius: 2px;
}

.footer-brand img {
  width: 180px;
  mix-blend-mode: screen;
}

.footer-copyright {
  position: relative;
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-top: 1px solid #858585;
  color: var(--footer-accent);
  font-size: 0.94rem;
}

.back-to-top {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: var(--footer-accent);
  color: #ffffff;
  font-size: 1.3rem;
  line-height: 1;
  text-decoration: none;
  transition: background 0.2s ease;
}

.menu-toggle {
  display: none;
}

@media (max-width: 768px) {
  .page-shell {
    width: min(1200px, calc(100% - 24px));
    margin: 16px auto;
  }

  .site-footer {
    width: min(1200px, calc(100% - 24px));
  }

  .topbar {
    --logo-width: min(250px, calc(100vw - 130px));
    --bar-padding: 16px;
    width: 100%;
    padding: 10px 16px;
  }

  .topbar.fixed {
    width: min(1200px, calc(100% - 24px));
  }

  .nav {
    white-space: normal;
  }

  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    margin-left: auto;
    gap: 5px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: calc(10px * var(--round));
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 0 auto;
    border-radius: 2px;
    background: var(--white);
  }

  /* On phones the menu is a white panel under the bar with one full-width row
     per item; the dropdowns open inside it as indented lists. */
  .nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    /* From the top: with flex-end a long menu would overflow upwards, where it
       cannot be scrolled to. */
    justify-content: flex-start;
    gap: 0;
    padding: 8px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: calc(18px * var(--round));
    background: #ffffff;
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.28);
    text-align: left;
    max-height: calc(100vh - 120px);
    max-height: calc(100dvh - 120px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .topbar.nav-open .nav {
    display: flex;
    animation: menu-appear 0.16s ease-out;
  }

  /* The rows keep their height, so a long menu scrolls instead of being squeezed. */
  .nav > * {
    flex-shrink: 0;
  }

  .nav > a,
  .nav-dropdown summary {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    border-radius: calc(12px * var(--round));
    color: var(--ink);
    font-size: 1rem;
    font-weight: 600;
  }

  .nav > a + a,
  .nav > a + details,
  .nav > details + a,
  .nav > details + details {
    border-top: 1px solid var(--brand-line-light);
  }

  .nav > a:hover,
  .nav-dropdown summary:hover,
  .nav-dropdown[open] summary {
    background: var(--brand-soft);
    color: var(--brand);
  }

  .nav-dropdown summary::after {
    margin-left: 12px;
  }

  .small-dropdown {
    position: static;
  }

  .mega-menu,
  .dropdown-menu {
    position: static;
    width: auto;
    min-width: 0;
    max-width: none;
    max-height: none;
    margin: 4px 0 8px 14px;
    padding: 0 0 0 10px;
    border: 0;
    border-left: 2px solid var(--brand-line);
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
  }

  .mega-menu {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .menu-group h2 {
    margin: 12px 12px 4px;
    padding-bottom: 0;
    border-bottom: 0;
  }

  .nav .menu-group a,
  .nav .dropdown-menu a {
    min-height: 44px;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
  }

  .nav .dropdown-menu a[aria-current="true"]::after {
    margin-left: auto;
  }

  .home {
    padding-top: 16px;
  }

  .hero {
    min-height: 560px;
    border-radius: calc(22px * var(--round));
  }

  .slide-content {
    right: 28px;
    bottom: 72px;
    left: 28px;
    max-width: none;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2.35rem, 9vw, 3.8rem);
  }

  .hero p {
    font-size: 1rem;
  }

  .slider-nav {
    right: 20px;
    bottom: 18px;
  }

  .info-band {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px 20px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .category-card > img {
    height: 180px;
  }

  .category-card-copy {
    min-height: 144px;
    padding: 16px;
  }

  .category-card h3 {
    font-size: 1.15rem;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .news-card {
    grid-template-columns: minmax(130px, 0.8fr) minmax(0, 1.2fr);
  }

  .news-image {
    min-height: 210px;
  }

  .news-copy {
    padding: 18px 16px;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
    padding: 28px 4px 0;
  }

  .footer-bottom {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .category-grid {
    grid-template-columns: 1fr;
  }

  .category-card > img {
    height: 210px;
  }

  .news-card {
    grid-template-columns: 1fr;
  }

  .news-image {
    min-height: 190px;
    max-height: 220px;
  }

  .news-copy {
    min-height: 190px;
  }

  .footer-inner {
    gap: 24px 16px;
  }

  .footer-column h2 {
    font-size: 0.85rem;
  }

  .footer-column a,
  .footer-column address {
    font-size: 0.84rem;
  }

  .footer-copyright {
    justify-content: flex-start;
    padding-right: 46px;
    font-size: 0.8rem;
  }

  .back-to-top {
    width: 36px;
    height: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Sections added from the page editor's templates ---------- */

.text-block,
.quote-card,
.feature-split,
.feature-item,
.step,
.faq-item,
.contact-card {
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: calc(20px * var(--round));
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
  color: var(--ink);
}

.text-block h2,
.feature-copy h2,
.contact-card h2,
.cta-band h2 {
  margin: 0 0 14px;
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.text-block p,
.text-block ul,
.feature-copy p,
.contact-card p {
  margin: 0 0 14px;
  color: var(--ink-body);
  line-height: 1.7;
}

.feature-copy .cta-row,
.contact-card .cta-row {
  margin-top: 10px;
}

/* Text article */

.text-block {
  padding: clamp(24px, 4vw, 48px);
}

.text-block > * {
  max-width: 760px;
}

.text-block ul {
  padding-left: 20px;
}

.text-block > :last-child {
  margin-bottom: 0;
}

/* Customer quote */

.quote-card {
  margin: 0;
  padding: clamp(28px, 5vw, 56px);
  text-align: center;
}

.quote-card blockquote {
  max-width: 760px;
  margin: 0 auto;
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  line-height: 1.5;
}

.quote-card blockquote::before {
  content: "\201C";
  display: block;
  height: 0.6em;
  color: var(--brand);
  font-family: Georgia, serif;
  font-size: 4rem;
  line-height: 1;
}

.quote-card figcaption {
  margin-top: 20px;
  color: var(--ink-body);
}

/* Facts in numbers */

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: calc(22px * var(--round));
  background: var(--panel-color);
  box-shadow: 0 18px 45px var(--shadow);
  text-align: center;
}

.stat strong {
  display: block;
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Picture and text */

.feature-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
}

.feature-split > img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  background: #d6dde3;
}

.feature-split.is-reversed > img {
  order: 2;
}

.feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(24px, 4vw, 48px);
}

/* Big picture banner */

.image-banner {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 440px;
  overflow: hidden;
  border-radius: calc(28px * var(--round));
  background: #0f172a;
  box-shadow: 0 30px 70px var(--shadow);
}

.image-banner > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.78) 0%, rgba(15, 23, 42, 0) 65%);
}

.image-banner-copy {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: clamp(24px, 5vw, 56px);
  color: var(--white);
}

.image-banner-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.image-banner-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Picture gallery */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 180px;
  gap: 14px;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(16px * var(--round));
  background: #d6dde3;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.gallery-grid img:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

/* Services with icons */

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

.feature-item,
.step {
  padding: 26px 24px;
}

.feature-icon {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: calc(16px * var(--round));
  background: var(--accent-tint);
  color: var(--brand);
}

.feature-icon svg {
  width: 26px;
  height: 26px;
}

.feature-item h3,
.step h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  line-height: 1.3;
}

.feature-item p,
.step p {
  margin: 0;
  color: var(--ink-body);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Work steps */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  counter-increment: step;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 14px;
  color: var(--brand);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

/* Questions and answers */

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border-radius: calc(16px * var(--round));
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  color: var(--brand);
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--ink-body);
  line-height: 1.7;
}

/* Call to action */

.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(28px, 4vw, 44px);
  border-radius: calc(22px * var(--round));
  background: var(--panel-color);
  box-shadow: 0 18px 45px var(--shadow);
}

.cta-band h2 {
  margin-bottom: 8px;
  color: var(--white);
}

.cta-band p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.cta-band .cta-row {
  margin-top: 0;
}

/* Contact details */

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  padding: clamp(24px, 4vw, 44px);
}

.contact-details {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-details li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px;
  border-radius: calc(14px * var(--round));
  background: var(--brand-soft);
}

.contact-details span {
  color: var(--ink-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.contact-details a,
.contact-details strong {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.contact-details a:hover {
  color: var(--brand);
}

@media (max-width: 768px) {
  .stats-band,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-split,
  .contact-card,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-split > img {
    min-height: 240px;
  }

  .feature-split.is-reversed > img {
    order: 0;
  }

  .image-banner {
    min-height: 360px;
  }

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

  .gallery-grid img:first-child {
    grid-row: span 1;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ---------- Sub-pages (category and contact pages) ---------- */

/* The current page in the menu. */
.nav a[aria-current="page"] {
  color: var(--white);
  font-weight: 700;
}

.nav .mega-menu a[aria-current="page"],
.nav .dropdown-menu a[aria-current="page"] {
  background: var(--brand-soft);
  color: var(--brand);
}

/* Title band at the top of each sub-page. */
.page-hero {
  padding: clamp(24px, 4vw, 44px) clamp(22px, 4vw, 48px);
  border-radius: calc(22px * var(--round));
  background: var(--panel-color);
  box-shadow: 0 18px 45px var(--shadow);
  color: var(--white);
}

.page-hero h1 {
  max-width: 820px;
  margin: 0 0 14px;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.page-hero p {
  max-width: 760px;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.page-hero p:last-child {
  margin-bottom: 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.85rem;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--white);
  text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
  color: var(--white);
}

/* Picture grid for galleries copied from the shop. */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.photo-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: calc(16px * var(--round));
  background: #d6dde3;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

/* Longer texts inside sections. */
.text-block h3,
.feature-copy h3 {
  margin: 22px 0 8px;
  font-size: 1.2rem;
  line-height: 1.3;
}

.text-block h2 + h3,
.feature-copy h2 + h3 {
  margin-top: 0;
}

.feature-copy ul,
.text-block ol {
  margin: 0 0 14px;
  padding-left: 20px;
  color: var(--ink-body);
  line-height: 1.7;
}

.feature-copy > :last-child {
  margin-bottom: 0;
}

.text-block img {
  max-width: 100%;
  height: auto;
  margin: 10px 0 16px;
  border-radius: calc(16px * var(--round));
}

.text-block a,
.feature-copy p a {
  color: var(--brand);
  font-weight: 700;
}

.category-card-copy p {
  margin: 0 0 16px;
  color: var(--ink-body);
  font-size: 0.92rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .breadcrumb {
    margin-bottom: 16px;
  }
}

.text-block > :first-child,
.feature-copy > :first-child {
  margin-top: 0;
}

/* ---------- Side menu on category pages ---------- */

/* Menu on the left, page content on the right. */
.side-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

/* The menu can also sit on the right (after the content), or be left out. */
.side-layout:has(> .side-content:first-child) {
  grid-template-columns: minmax(0, 1fr) 260px;
}

.side-layout:not(:has(> aside, > nav)) {
  grid-template-columns: minmax(0, 1fr);
}

.side-content {
  min-width: 0;
}

.side-content > * + *,
[data-sections] > * + * {
  margin-top: var(--section-gap);
}

/* Stays in view below the sticky menu bar while the page scrolls. */
.side-menu {
  position: sticky;
  top: 112px;
  max-height: calc(100vh - 132px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: calc(20px * var(--round));
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
  color: var(--ink);
}

.side-menu-title {
  display: block;
  padding: 20px 22px 12px;
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  list-style: none;
  cursor: default;
}

.side-menu summary::-webkit-details-marker {
  display: none;
}

.side-menu-list,
.side-menu-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-menu-list {
  padding: 0 10px 12px;
}

.side-menu-list li {
  position: relative;
}

.side-menu-list > li + li {
  border-top: 1px solid var(--brand-line-light);
}

.side-menu-list a {
  display: block;
  padding: 10px 40px 10px 12px;
  border-radius: calc(10px * var(--round));
  color: #334155;
  font-size: 0.92rem;
  line-height: 1.35;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.side-menu-list a:hover,
.side-menu-list a:focus-visible {
  background: var(--brand-soft);
  color: var(--brand);
}

.side-menu-list a[aria-current="page"] {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
  box-shadow: inset 3px 0 0 var(--brand);
}

/* The + button that opens a sub-list. */
.side-menu-list details > summary {
  position: absolute;
  top: 4px;
  right: 4px;
  display: flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--brand);
  cursor: pointer;
  list-style: none;
}

.side-menu-list details > summary:hover {
  background: var(--brand-soft);
}

.side-menu-list details > summary::before {
  content: "+";
  font-size: 1.3rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.side-menu-list details[open] > summary::before {
  transform: rotate(45deg);
}

.side-menu-list details ul {
  margin: 2px 0 8px 14px;
  padding-left: 10px;
  border-left: 2px solid var(--brand-line);
}

.side-menu-list details a {
  padding: 7px 10px;
  color: var(--ink-body);
  font-size: 0.86rem;
}

/* On narrower screens the menu sits above the content and folds away. */
@media (max-width: 980px) {
  .side-layout,
  .side-layout:has(> .side-content:first-child) {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .side-menu {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .side-menu-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    cursor: pointer;
  }

  .side-menu-title::after {
    content: "";
    border: 5px solid transparent;
    border-top-color: currentColor;
    transform: translateY(3px);
    transition: transform 0.2s ease;
  }

  .side-menu-box[open] .side-menu-title::after {
    transform: translateY(-2px) rotate(180deg);
  }
}

/* A picture shown whole, at full width and without cropping. */
.wide-picture {
  margin-inline: 0;
  margin-bottom: 0;
}

.wide-picture img {
  width: 100%;
  height: auto;
  border-radius: calc(20px * var(--round));
  background: #d6dde3;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}

/* Inside a text section the picture uses the section's full width (the text lines
   stay narrower for reading) and sits flat in the white card. */
.text-block > .wide-picture {
  max-width: none;
  margin-top: 28px;
}

.text-block .wide-picture img {
  margin: 0;
  box-shadow: none;
}

/* ---------- Pictures ----------
   Pictures are never stretched or squeezed. Where pictures sit side by side in a
   row (cards, galleries, news) they share one shape so the row is even, and are
   trimmed at the edges to fit it. A single picture next to text keeps its own
   shape. The large background pictures behind text (home slideshow, big picture
   banner) fill their area. */

.feature-split {
  align-items: center;
}

.feature-split > img {
  height: auto;
  min-height: 0;
}

.category-card > img,
.photo-grid img {
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* News cards: picture on top, text below; both pictures the same shape. */
.news-card {
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
}

.news-image {
  min-height: 0;
  max-height: none;
}

/* Category pages show square product photos in their cards. */
.side-content .category-card > img {
  aspect-ratio: 1 / 1;
}

/* Wide like the fair banner; taller photos keep their lower part (the people)
   rather than the sky. */
.news-image img {
  height: auto;
  aspect-ratio: 12 / 5;
  object-fit: cover;
  object-position: 50% 70%;
}

/* ---------- Seat series pages ---------- */

/* A row of models: picture, name and a short text side by side. */
.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}

.model-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: calc(20px * var(--round));
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
  color: var(--ink);
}

.model-card > img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #ffffff;
}

.model-card-copy {
  padding: 16px 18px 20px;
}

.model-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.3;
}

.model-card p {
  margin: 0;
  color: var(--ink-body);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Pictures with a caption underneath, such as the dimension drawings. */
.photo-grid.captioned figure {
  margin: 0;
}

.photo-grid.captioned img {
  aspect-ratio: 1 / 1;
}

.photo-grid figcaption {
  margin-top: 8px;
  color: var(--ink-body);
  font-size: 0.88rem;
  text-align: center;
}

/* Small pictures in a row inside a text. */
.inline-pictures {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 200px));
  gap: 12px;
  margin: 14px 0 18px;
}

.text-block .inline-pictures img {
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: calc(12px * var(--round));
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
}

/* A row of captioned pictures stays on one line when it fits. */
.photo-grid.captioned {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

/* Product pictures sit a little smaller on white, with space around them. */
.side-content .category-card > img,
.model-card > img {
  padding: 18px 18px 6px;
  object-fit: contain;
  background: #ffffff;
}

/* ---------- Product pages ---------- */

/* Pictures on the left, description and specifications on the right. */
.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(20px, 3vw, 36px);
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: calc(22px * var(--round));
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
  color: var(--ink);
}

.product-main img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: calc(16px * var(--round));
  background: #ffffff;
}

/* Small pictures underneath; the chosen one is shown large. */
.product-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.product-thumbs button {
  padding: 4px;
  border: 1px solid var(--brand-line);
  border-radius: calc(10px * var(--round));
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.product-thumbs button:hover,
.product-thumbs button[aria-pressed="true"] {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand-glow);
}

.product-thumbs img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.product-info h2 {
  margin: 0 0 16px;
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.product-info h3 {
  margin: 22px 0 8px;
  font-size: 1.05rem;
}

.product-info p,
.product-info ul {
  margin: 0 0 10px;
  color: var(--ink-body);
  line-height: 1.7;
}

.product-info ul {
  padding-left: 20px;
}

.product-info .cta-row {
  margin-top: 26px;
}

/* The call button sits on white here, so it needs a dark text. */
.product-info .secondary-btn {
  border-color: var(--brand-border);
  background: #ffffff;
  color: var(--ink);
}

@media (max-width: 860px) {
  .product-detail {
    grid-template-columns: 1fr;
  }
}

/* ---------- Picture viewer ---------- */

.photo-grid img {
  cursor: zoom-in;
}

.photo-grid img:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 88px;
  background: rgba(10, 14, 22, 0.92);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-figure {
  display: flex;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  flex-direction: column;
  align-items: center;
}

.lightbox-figure img {
  max-width: 100%;
  max-height: calc(100vh - 160px);
  border-radius: calc(12px * var(--round));
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.lightbox-caption {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  text-align: center;
}

.lightbox-button {
  position: absolute;
  display: flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lightbox-button:hover,
.lightbox-button:focus-visible {
  background: rgba(255, 255, 255, 0.28);
}

.lightbox-prev {
  top: 50%;
  left: 18px;
  transform: translateY(-50%);
}

.lightbox-next {
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
}

.lightbox-close {
  top: 16px;
  right: 18px;
  width: 46px;
  height: 46px;
  font-size: 1.3rem;
}

/* On phones the arrows sit under the picture. */
@media (max-width: 600px) {
  .lightbox {
    padding: 64px 12px 100px;
  }

  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: 24px;
    transform: none;
  }

  .lightbox-prev {
    left: calc(50% - 66px);
  }

  .lightbox-next {
    right: calc(50% - 66px);
  }
}

/* Pictures placed inside a text with the page editor. */
.text-block {
  display: flow-root;
}

.text-picture {
  width: 100%;
  height: auto;
  margin: 6px 0 18px;
  border-radius: calc(14px * var(--round));
}

.text-picture.align-left,
.text-picture.align-right {
  width: min(42%, 340px);
  margin-top: 4px;
  margin-bottom: 12px;
}

.text-picture.align-left {
  float: left;
  margin-right: 22px;
}

.text-picture.align-right {
  float: right;
  margin-left: 22px;
}

@media (max-width: 600px) {
  .text-picture.align-left,
  .text-picture.align-right {
    float: none;
    width: 100%;
    margin: 6px 0 18px;
  }
}

/* ---------- Headers, menus and footers from the page editor's templates ---------- */

/* A simple header: logo or name and a menu that wraps onto more lines on small screens. */
.simple-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 24px;
  padding: 16px 24px;
  border-radius: calc(18px * var(--round));
  background: var(--panel-color);
  color: var(--white);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

.simple-header.is-centred {
  flex-direction: column;
  text-align: center;
}

.simple-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}

.simple-brand img {
  width: auto;
  max-height: 48px;
}

.simple-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 18px;
}

.simple-header.is-centred .simple-nav {
  justify-content: center;
}

.simple-nav a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.simple-nav a:hover,
.simple-nav a[aria-current="page"] {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.simple-nav .primary-btn {
  padding: 8px 16px;
  border-radius: calc(999px * var(--round));
  text-decoration: none;
}

/* A row of buttons: tabs between pages, or jumps to sections further down the page. */
.pill-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-menu a {
  padding: 8px 16px;
  border: 1px solid var(--brand-border);
  border-radius: calc(999px * var(--round));
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.pill-menu a:hover,
.pill-menu a[aria-current="page"] {
  border-color: var(--brand);
  background: var(--brand);
  color: #ffffff;
}

.pill-menu.on-panel {
  padding: 14px;
  border-radius: calc(18px * var(--round));
  background: var(--panel-color);
}

.pill-menu.on-panel a {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
}

.pill-menu.on-panel a:hover,
.pill-menu.on-panel a[aria-current="page"] {
  background: var(--accent);
  color: var(--on-accent);
}

/* A simple footer: one line, or columns. */
.simple-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  width: min(1200px, calc(100% - 32px));
  margin: 28px auto 0;
  padding: 20px 24px;
  background: var(--footer-bg);
  color: #eeeeee;
  font-size: 0.9rem;
}

.simple-footer p {
  margin: 0;
}

.simple-footer a {
  color: var(--footer-accent);
}

.simple-footer a:hover {
  color: var(--footer-accent-hover);
}

.simple-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.simple-footer.is-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  align-items: start;
  padding: 32px 24px;
}

.simple-footer.is-columns h2 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 1rem;
}

.simple-footer.is-columns ul {
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 1.9;
}

.simple-footer .footer-note {
  grid-column: 1 / -1;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: #9ca3af;
}

/* ---------- Contact form ---------- */

.contact-card:has(.contact-form) {
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 14px;
  margin-top: 6px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.form-field {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
}

.form-field small {
  color: var(--ink-body);
  font-weight: 400;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--brand-border);
  border-radius: calc(12px * var(--round));
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-field input[type="file"] {
  padding: 9px 12px;
  background: var(--brand-soft);
  cursor: pointer;
}

.form-field input:focus-visible,
.form-field textarea:focus-visible,
.contact-form button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.contact-form button:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* Only robots fill in this field. */
.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-card .form-note {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
}

.contact-card .form-note a {
  color: var(--brand);
}

.contact-card .form-status {
  margin: 0;
  font-weight: 700;
}

.contact-card .form-status:empty {
  display: none;
}

.form-status.is-ok {
  color: #1e7a3c;
}

.form-status.is-error {
  color: #b42318;
}
