/*
 * Stylesheet for the server-rendered public page.
 *
 * Deliberately NOT the SPA's Tailwind bundle. Two reasons: Tailwind only emits
 * classes it finds while scanning frontend/src, so anything used solely in Blade
 * would be purged; and the SPA's scoped component styles carry generated
 * data-v-* attributes that Blade cannot reproduce. A small hand-written sheet is
 * both safer and far lighter for a page whose whole point is being fast and
 * readable without JavaScript.
 *
 * The class names match the ones the Vue components use, so the two renderers
 * stay recognisably the same page.
 */

/*
 * Cross-document view transitions: the browser cross-fades between two
 * server-rendered pages instead of flashing white, so navigation feels like a
 * SPA's without any of a SPA's machinery. One line, and browsers that do not
 * support it simply navigate as before.
 */
@view-transition { navigation: auto; }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

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

/*
 * The one horizontal gutter of the site: how far the breadcrumbs, the header bar,
 * the page content and the footer stay off the screen edge. Defined once because
 * these four are meant to line up in a single column — four copies of the same
 * three numbers is exactly how the footer ended up a gutter to the left of
 * everything else. Widened with the viewport, and the same scale the Vue
 * templates spell as px-4 sm:px-6 lg:px-8.
 *
 * Every one of those bands also carries .max-w-site, and the padding sits inside
 * that box (border-box), so the alignment holds above 1280px too — where the
 * bands stop growing and the gutter is measured from the centred box, not from
 * the viewport.
 */
:root { --gutter: 1rem; }
@media (min-width: 640px) { :root { --gutter: 1.5rem; } }
@media (min-width: 1024px) { :root { --gutter: 2rem; } }

/* 100vw counts the scrollbar, so .w-full-bleed further down is a scrollbar
   wider than the visible area and would hand every page with a full-width hero
   a horizontal scrollbar. `clip` swallows that overflow. Not `hidden`: that
   makes this a scroll container and the sticky header would stop sticking. */
html { overflow-x: clip; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--brand-text, #111827);
  background-color: var(--brand-bg, #ffffff);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--brand-primary, #2563eb); }

/* ---------- breadcrumbs ---------- */
.breadcrumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem;
  padding: 0.75rem var(--gutter) 0; font-size: 0.8125rem;
  color: var(--brand-text, #4b5563);
}
.breadcrumbs a { color: inherit; text-decoration: none; opacity: 0.8; }
.breadcrumbs a:hover { text-decoration: underline; opacity: 1; }
.breadcrumbs__sep { opacity: 0.4; }
.breadcrumbs [aria-current="page"] { font-weight: 600; }

/* ---------- page shell ----------
   The canvas was the one band that reached the screen edge: max-w-site caps it at
   1280px but says nothing below that, and the gutter pair further down (-0.75rem
   on .row, +0.75rem on .responsive-column) is a gap *between* columns — at the
   outer edge the two cancel out. On a phone that left every card flush against
   the glass. */
.page-canvas { display: flex; justify-content: center; }
.page-canvas__inner {
  width: 100%;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.max-w-site { max-width: 1280px; margin-left: auto; margin-right: auto; }

/* Full-bleed escape, for a hero that should still touch the edge. A widget sits
   exactly one gutter from the canvas edge — the row's -0.75rem and the column's
   +0.75rem cancel — so pulling one gutter back lands it on the edge again, and
   the negative margins widen the auto-width block by that much.

   PageRenderService::widgetBleedClass() decides who gets this, and only grants it
   to a column that is full width at every breakpoint: in a narrow column the same
   margin would spill over the neighbouring column. */
.w-bleed { margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); }

/* Full-viewport escape, for a hero the editor marked as full width. Cancelling
   the gutter is not enough for that: max-w-site caps the canvas at 1280px, and
   only viewport units leave a max-width behind. The 50% resolves against the
   widget's own box, which is centred in the viewport — the row's -0.75rem and
   the column's +0.75rem cancel, and the canvas is centred — so the pair lands
   the widget on both screen edges.

   Below 1280px this is the same picture as .w-bleed: the canvas already fills
   the screen, so there is nothing left to escape. */
.w-full-bleed {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* ---------- container spacing (mirrors CONTAINER_SPACING_CLASSES) ---------- */
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }

/* ---------- column padding (mirrors COLUMN_PADDING_CLASSES) ---------- */
.py-0 { padding-top: 0; padding-bottom: 0; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }

/* ---------- grid ---------- */
.row { display: flex; flex-wrap: wrap; margin-left: -0.75rem; margin-right: -0.75rem; }

.responsive-column {
  --col-w-mobile: 100%;
  --col-w-tablet: 100%;
  --col-w-desktop: 100%;
  width: var(--col-w-mobile);
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
@media (min-width: 768px) { .responsive-column { width: var(--col-w-tablet); } }
@media (min-width: 1024px) { .responsive-column { width: var(--col-w-desktop); } }

/* Vertical rhythm between widgets in a column (mirrors COLUMN_GAP_CLASS). */
.space-y-4 > * + * { margin-top: 1rem; }

/* ---------- responsive visibility ---------- */
.responsive-hidden-mobile { display: none; }
@media (min-width: 768px) {
  .responsive-hidden-mobile { display: block; }
  .responsive-hidden-tablet { display: none; }
}
@media (min-width: 1024px) {
  .responsive-hidden-tablet { display: block; }
  .responsive-hidden-desktop { display: none; }
}

/* ---------- heading widget ---------- */
.w-heading { margin: 0; color: var(--brand-text, #111827); }
.w-heading--h1 { font-size: 1.5rem; font-weight: 700; }
.w-heading--h2 { font-size: 1.25rem; font-weight: 700; }
.w-heading--h3 { font-size: 1.125rem; font-weight: 600; }
.w-heading--h4 { font-size: 1rem; font-weight: 600; }
.w-heading--h5 { font-size: 0.875rem; font-weight: 600; }

/* ---------- wysiwyg widget ---------- */
.w-prose { font-size: 0.875rem; color: var(--brand-text, #374151); }
.w-prose :is(h1, h2, h3, h4, h5, h6) {
  color: var(--brand-text, #111827); font-weight: 700; line-height: 1.3;
  margin: 1.4em 0 0.6em;
}
.w-prose h1 { font-size: 1.75em; }
.w-prose h2 { font-size: 1.4em; }
.w-prose h3 { font-size: 1.2em; }
.w-prose > :first-child { margin-top: 0; }
.w-prose p, .w-prose ul, .w-prose ol, .w-prose blockquote { margin: 0 0 1em; }
.w-prose ul, .w-prose ol { padding-left: 1.5em; }
.w-prose li { margin: 0.25em 0; }
.w-prose a { color: var(--brand-primary, #2563eb); text-decoration: underline; }
.w-prose strong { color: var(--brand-text, #111827); font-weight: 700; }
.w-prose blockquote {
  border-left: 3px solid var(--brand-primary, #2563eb);
  padding-left: 1em; font-style: italic;
}
.w-prose img { border-radius: 0.375rem; }
.w-prose table { width: 100%; border-collapse: collapse; }
.w-prose :is(th, td) { border: 1px solid #e5e7eb; padding: 0.5rem 0.75rem; text-align: left; }

/* ---------- figure / caption (image + video) ---------- */
.w-figure { margin: 0; max-width: 100%; }
.w-figure img { border-radius: 0.375rem; }
.w-caption {
  font-size: 0.875rem; font-style: italic; opacity: 0.75;
  color: var(--brand-text, #4b5563);
}
.w-caption--above { margin-bottom: 0.25rem; }
.w-caption--below { margin-top: 0.25rem; }

.w-video__frame {
  position: relative; width: 100%; overflow: hidden;
  border-radius: 0.375rem; padding-top: 56.25%;
}
.w-video__frame iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}

/* ---------- button widget ---------- */
.w-btn-wrap--left { text-align: left; }
.w-btn-wrap--center { text-align: center; }
.w-btn-wrap--right { text-align: right; }

.w-btn {
  display: inline-block; border-radius: 0.375rem; font-weight: 500;
  text-decoration: none; transition: background-color .15s, color .15s, filter .15s;
}
.w-btn--sm { padding: 0.375rem 0.75rem; font-size: 0.875rem; }
.w-btn--md { padding: 0.625rem 1.25rem; font-size: 1rem; }
.w-btn--lg { padding: 0.875rem 2rem; font-size: 1.125rem; }

.w-btn--primary { background-color: var(--brand-primary, #2563eb); color: #ffffff; }
.w-btn--primary:hover { filter: brightness(0.9); }
.w-btn--secondary { background-color: rgb(229 231 235); color: rgb(17 24 39); }
.w-btn--secondary:hover { background-color: rgb(209 213 219); }
.w-btn--outline {
  background-color: transparent; color: var(--brand-primary, #2563eb);
  border: 2px solid var(--brand-primary, #2563eb);
}
.w-btn--outline:hover { background-color: var(--brand-primary, #2563eb); color: #ffffff; }

/* ---------- cards widget ---------- */
.w-cards__head {
  margin-bottom: 1rem; display: flex; align-items: flex-end;
  justify-content: space-between; gap: 1rem;
}
.w-cards__title { margin: 0; font-size: 1.5rem; font-weight: 700; color: #111827; }
.w-cards__cta {
  flex-shrink: 0; font-size: 0.875rem; font-weight: 600; color: #111827;
  text-decoration: none;
}
.w-cards__cta:hover { text-decoration: underline; }

/* Fills with as many cards as fit at the chosen minimum width, so a row in a
   narrow column simply holds fewer — no breakpoint guessing. */
.w-cards__grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(var(--card-w, 280px), 1fr));
}

.w-card {
  position: relative; display: flex; flex-direction: column; height: 100%;
  overflow: hidden; border: 1px solid #e5e7eb; background-color: #ffffff;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  transition: box-shadow .2s, border-color .2s;
}
.w-card:hover {
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  border-color: var(--card-hover-border, #e5e7eb);
}
.w-card--radius-none { border-radius: 0; }
.w-card--radius-sm { border-radius: 0.375rem; }
.w-card--radius-md { border-radius: 0.75rem; }
.w-card--radius-lg { border-radius: 1rem; }

.w-card__figure {
  position: relative; margin: 0; width: 100%; overflow: hidden;
  background-color: #f3f4f6;
}
.w-card__figure img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.w-card__figure--16-9 { aspect-ratio: 16 / 9; }
.w-card__figure--3-2 { aspect-ratio: 3 / 2; }
.w-card__figure--4-3 { aspect-ratio: 4 / 3; }
.w-card__figure--1-1 { aspect-ratio: 1 / 1; }

.w-card__credit {
  position: absolute; bottom: 0; right: 0; background-color: rgb(0 0 0 / 0.5);
  padding: 0.125rem 0.375rem; font-size: 11px; line-height: 1.2; color: #ffffff;
}
.w-card__credit a { position: relative; z-index: 10; color: #ffffff; }

.w-card__body {
  display: flex; flex: 1 1 auto; flex-direction: column; gap: 0.5rem; padding: 1.25rem;
}
.w-card__row { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; }
.w-card__title { margin: 0; font-size: 1.125rem; font-weight: 700; color: #111827; }
.w-card__title a { color: inherit; text-decoration: none; }
/* One link over the whole card surface — a second link inside would nest
   interactive elements, so a card with a button gives this up. */
.w-card__title a.is-stretched::after { content: ''; position: absolute; inset: 0; }
.w-card__meta { flex-shrink: 0; font-size: 0.875rem; color: #6b7280; }
.w-card__text { margin: 0; color: #4b5563; }
.w-card__text--clamp-2, .w-card__text--clamp-3, .w-card__text--clamp-4 {
  display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden;
}
.w-card__text--clamp-2 { -webkit-line-clamp: 2; }
.w-card__text--clamp-3 { -webkit-line-clamp: 3; }
.w-card__text--clamp-4 { -webkit-line-clamp: 4; }

.w-card__tags { margin-top: 0.25rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.w-card__tag {
  display: inline-flex; align-items: center; border-radius: 9999px;
  padding: 0.25rem 0.75rem; font-size: 0.875rem;
}
.w-card__foot { margin-top: auto; padding-top: 0.75rem; }
.w-card__button {
  position: relative; z-index: 10; display: inline-block; border-radius: 0.5rem;
  background-color: #111827; padding: 0.5rem 1rem; font-size: 0.875rem;
  font-weight: 600; color: #ffffff; text-decoration: none;
}
.w-card__button:hover { background-color: #374151; }
.w-card__label { font-size: 0.875rem; font-weight: 500; color: #111827; }

/* ---------- slider ----------
   Height, overlay and the per-slide backgrounds are set per widget in the page's
   nonced <style> block; layout and the cross-fade live here.

   Every slide is stacked in the same place and only the active one is visible, so
   the first slide is what a visitor without JavaScript keeps looking at. */
.w-slider { position: relative; overflow: hidden; height: 75vh; }
.w-slider__slide {
  position: absolute; inset: 0;
  opacity: 0; z-index: 0;
  transition: opacity 500ms ease-in-out;
}
.w-slider__slide.is-active { opacity: 1; z-index: 1; }
/* Without JavaScript nothing ever toggles is-active, so the first slide has to
   stand on its own — and it must not fade in from nothing either. */
.w-slider__slide:first-child { opacity: 1; z-index: 1; }
.w-slider__slide.is-active:first-child { z-index: 2; }
.w-slider__slide:first-child:not(.is-active) { opacity: 0; }

/* An <img> since the slider gained responsive variants; object-fit does what
   background-size:cover did. Still styled for the div it falls back to on a slide
   without an image. */
.w-slider__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  background-color: #1f2937; background-size: cover; background-position: center;
}
.w-slider__overlay { position: absolute; inset: 0; background-color: rgb(0 0 0 / 0.3); }
.w-slider__content { position: absolute; inset: 0; display: flex; }
.w-slider__inner { max-width: 48rem; color: #ffffff; }

/* Content placement, mirroring contentWrapperClass/contentInnerClass. */
.w-slider--center .w-slider__content { align-items: center; justify-content: center; }
.w-slider--center .w-slider__inner { text-align: center; padding: 0 3.5rem; }
@media (min-width: 768px) { .w-slider--center .w-slider__inner { padding: 0 2rem; } }

.w-slider--bottom-left .w-slider__content { align-items: flex-end; justify-content: flex-start; }
.w-slider--bottom-left .w-slider__inner {
  text-align: left; padding: 0 2rem 2.5rem;
}
@media (min-width: 768px) {
  .w-slider--bottom-left .w-slider__inner { padding: 0 3rem 3.5rem; }
}

.w-slider__title {
  margin: 0 0 0.75rem; font-size: clamp(1.75rem, 5vw, 3rem); font-weight: 700;
  text-shadow: 0 2px 8px rgb(0 0 0 / 0.35);
}
.w-slider__subtitle {
  margin: 0 0 1.5rem; font-size: 1.125rem; opacity: 0.9;
  text-shadow: 0 1px 4px rgb(0 0 0 / 0.35);
}
@media (min-width: 768px) { .w-slider__subtitle { font-size: 1.25rem; } }
.w-slider__cta {
  display: inline-block; background: #ffffff; color: #111827; font-weight: 600;
  padding: 0.75rem 1.5rem; border-radius: 0.5rem; text-decoration: none;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.2);
}
.w-slider__cta:hover { background: #f3f4f6; }

/* Arrows and dots. Present whenever there is more than one slide, so the slider
   is operable with autoplay off and under reduced motion. */
.w-slider__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 20;
  display: flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; padding: 0;
  border: 0; border-radius: 9999px; cursor: pointer;
  background-color: rgb(0 0 0 / 0.3); color: #ffffff;
  transition: background-color 150ms ease;
}
.w-slider__arrow:hover { background-color: rgb(0 0 0 / 0.5); }
.w-slider__arrow svg {
  width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.w-slider__arrow--prev { left: 0.75rem; }
.w-slider__arrow--next { right: 0.75rem; }

.w-slider__dots {
  position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%);
  z-index: 20; display: flex; align-items: center; gap: 0.5rem;
}
.w-slider__dot {
  width: 0.625rem; height: 0.625rem; padding: 0; cursor: pointer;
  border: 0; border-radius: 9999px;
  background-color: rgb(255 255 255 / 0.5);
  transition: background-color 150ms ease, width 150ms ease;
}
.w-slider__dot:hover { background-color: rgb(255 255 255 / 0.8); }
.w-slider__dot.is-active { background-color: #ffffff; width: 1.5rem; }

@media (prefers-reduced-motion: reduce) {
  .w-slider__slide, .w-slider__arrow, .w-slider__dot { transition: none; }
}

/* ---------- header ----------
   --header-bg, --header-fg and --header-h come from the page's <style> block. */
.site-header {
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  background-color: var(--header-bg, #ffffff);
  color: var(--header-fg, #111827);
}
.site-header--sticky { position: sticky; top: 0; z-index: 50; }
.site-header__bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 var(--gutter); gap: 1rem; height: var(--header-h, 4rem);
}

/* Template 1 keeps the logo and the links in one group on the left. Template 2
   has no group, so its nav becomes the middle flex child and centres itself. */
.site-header__group { display: flex; align-items: center; }
.site-header__group .site-nav { margin-left: 1.5rem; }
.site-header__actions { display: flex; align-items: center; gap: 0.75rem; }

.site-header__logo {
  display: flex; flex-shrink: 0; align-items: center; text-decoration: none;
  color: var(--header-fg, #111827);
}
/* Keeps 0.5rem of air above and below the logo, whatever the bar height is. */
.site-header__logo img { width: auto; max-height: calc(var(--header-h, 4rem) - 1.5rem); }
.site-header__logo span { font-size: 1.125rem; font-weight: 700; }

.site-nav { display: none; gap: 1.5rem; align-items: center; }
/* 640px, matching the SPA's sm: breakpoint — at 768px the links would still be
   hidden on a tablet where the SPA already shows them. */
@media (min-width: 640px) { .site-nav { display: flex; } }
.site-nav a {
  text-decoration: none; font-size: 0.875rem; font-weight: 500;
  color: var(--header-fg, #111827);
}
.site-nav a:hover { text-decoration: underline; }

/* Dropdown without JavaScript: hover for a mouse, focus-within for a keyboard.
   The children are in the document at all times, only hidden. */
.site-nav__group { position: relative; }
.site-nav__label {
  display: inline-flex; align-items: center; gap: 0.25rem; cursor: default;
  color: var(--header-fg, #111827); font-size: 0.875rem; font-weight: 500;
}
.site-nav__chevron {
  width: 0.875rem; height: 0.875rem; fill: none;
  stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 150ms ease;
}
.site-nav__children {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%); z-index: 60;
  display: grid; gap: 0.125rem; min-width: 12rem; padding: 0.5rem;
  background-color: var(--header-bg, #ffffff);
  border: 1px solid rgb(0 0 0 / 0.08);
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  opacity: 0; visibility: hidden;
  transition: opacity 120ms ease, visibility 120ms ease;
}
.site-nav__children a {
  padding: 0.375rem 0.5rem; border-radius: 0.375rem; white-space: nowrap;
}
.site-nav__children a:hover { background-color: rgb(0 0 0 / 0.05); text-decoration: none; }

.site-nav__group:hover .site-nav__children,
.site-nav__group:focus-within .site-nav__children { opacity: 1; visibility: visible; }
.site-nav__group:hover .site-nav__chevron,
.site-nav__group:focus-within .site-nav__chevron { transform: rotate(180deg); }

@media (prefers-reduced-motion: reduce) {
  .site-nav__children, .site-nav__chevron { transition: none; }
}

.site-header__cta--desktop { display: none; }
@media (min-width: 640px) { .site-header__cta--desktop { display: inline-block; } }
.site-menu__heading {
  font-size: 0.8125rem; font-weight: 700; opacity: 0.7;
  color: var(--header-fg, #111827);
}
.site-header__cta {
  display: inline-block; border-radius: 0.375rem; padding: 0.5rem 1rem;
  font-size: 0.875rem; font-weight: 600; text-decoration: none;
  background-color: var(--brand-primary, #2563eb); color: #ffffff;
}

/* Mobile menu without JavaScript: <details> is keyboard accessible and needs no
   hydration, so the header works in the first response like everything else. */
.site-menu { display: block; }
@media (min-width: 640px) { .site-menu { display: none; } }
.site-menu > summary {
  list-style: none; cursor: pointer; padding: 0.5rem;
  font-size: 0.875rem; font-weight: 600; color: var(--header-fg, #111827);
}
.site-menu > summary::-webkit-details-marker { display: none; }
.site-menu__panel { padding: 0.5rem 1rem 1rem; display: grid; gap: 0.5rem; }
.site-menu__panel a {
  text-decoration: none; font-size: 0.9375rem; color: var(--header-fg, #111827);
}
.site-menu__child { padding-left: 1rem; }

/* ---------- footer ----------
   The horizontal padding belongs on __inner, not here: __inner is the element
   carrying .max-w-site, and padding on the full-width band outside it shrinks the
   box the 1280px is measured against. That is what put the footer a full gutter
   to the left of the header and the content on a wide screen. Vertical padding
   stays here, so the coloured band keeps its height. */
.site-footer {
  padding: 2.5rem 0;
  background-color: var(--footer-bg, #1f2937);
  color: var(--footer-fg, #d1d5db);
}
.site-footer__inner {
  display: grid; gap: 2rem;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.site-footer__inner--centered { text-align: center; }
.site-footer__cols {
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.site-footer h3 { margin: 0 0 0.5rem; font-size: 0.875rem; font-weight: 700; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.375rem; }
.site-footer a { color: inherit; text-decoration: none; font-size: 0.875rem; opacity: 0.9; }
.site-footer a:hover { text-decoration: underline; opacity: 1; }
.site-footer__bottom {
  border-top: 1px solid currentColor; padding-top: 2rem; display: flex;
  flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
}
.site-footer__brand { display: flex; align-items: center; gap: 1rem; }
.site-footer__logo { max-height: 2rem; object-fit: contain; }
.site-footer__nav {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem;
}
.site-footer__social { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.site-footer__social--centered { justify-content: center; }
.site-footer__social a { display: inline-flex; align-items: center; }
.site-footer__icon { width: 1.25rem; height: 1.25rem; display: block; }
.site-footer__copyright { margin: 0; font-size: 0.8125rem; opacity: 0.75; }

/* ---------- 404 ---------- */
.notfound {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 0.75rem; padding: 5rem 1.5rem 6rem;
}
.notfound__code {
  margin: 0; font-size: clamp(3.5rem, 12vw, 6rem); font-weight: 800; line-height: 1;
  color: var(--brand-primary, #2563eb);
}
.notfound__title { margin: 0; font-size: 1.5rem; font-weight: 700; }
.notfound__text { margin: 0 0 0.75rem; max-width: 40ch; opacity: 0.75; }

/* ---------- utility ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0;
}

/* ---------- cookie consent ---------- */
/*
 * Positioned by a modifier rather than by inline styles: the CSP drops style
 * attributes, and the nine positions are a fixed list from the settings.
 */
.cookie-consent {
  position: fixed; inset: 0; z-index: 60;
  display: flex; padding: 1rem;
  pointer-events: none;
}
.cookie-consent[hidden] { display: none; }

.cookie-consent--top-left,    .cookie-consent--top-center,    .cookie-consent--top-right    { align-items: flex-start; }
.cookie-consent--middle-left, .cookie-consent--middle-center, .cookie-consent--middle-right { align-items: center; }
.cookie-consent--bottom-left, .cookie-consent--bottom-center, .cookie-consent--bottom-right { align-items: flex-end; }

.cookie-consent--top-left,    .cookie-consent--middle-left,   .cookie-consent--bottom-left   { justify-content: flex-start; }
.cookie-consent--top-center,  .cookie-consent--middle-center, .cookie-consent--bottom-center { justify-content: center; }
.cookie-consent--top-right,   .cookie-consent--middle-right,  .cookie-consent--bottom-right  { justify-content: flex-end; }

.cookie-consent__backdrop {
  position: fixed; inset: 0;
  background-color: rgba(17, 24, 39, 0.5);
  pointer-events: auto;
}

.cookie-consent__box {
  position: relative;
  pointer-events: auto;
  width: 100%; max-width: 30rem;
  padding: 1.25rem;
  background-color: #ffffff;
  color: #111827;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.cookie-consent__title { margin: 0 0 0.5rem; font-size: 1rem; font-weight: 700; }
.cookie-consent__text { margin: 0; font-size: 0.875rem; color: #4b5563; }

.cookie-consent__prefs {
  display: grid; gap: 0.75rem;
  margin-top: 1rem; padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}
.cookie-consent__prefs[hidden] { display: none; }

.cookie-consent__option {
  display: flex; gap: 0.625rem; align-items: flex-start;
  font-size: 0.875rem; cursor: pointer;
}
.cookie-consent__option input { margin-top: 0.25rem; flex: none; }
.cookie-consent__option input:disabled { cursor: default; }
.cookie-consent__option > span { display: grid; gap: 0.125rem; }
.cookie-consent__always { font-size: 0.75rem; color: #6b7280; }
.cookie-consent__hint { font-size: 0.8125rem; color: #6b7280; }

.cookie-consent__actions {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-top: 1rem;
}
.cookie-consent__btn {
  flex: 1 1 auto;
  padding: 0.5rem 0.875rem;
  font: inherit; font-size: 0.875rem; font-weight: 600;
  color: #111827; background-color: #ffffff;
  border: 1px solid #d1d5db; border-radius: 0.5rem;
  cursor: pointer;
}
.cookie-consent__btn[hidden] { display: none; }
.cookie-consent__btn:hover { background-color: #f9fafb; }
.cookie-consent__btn--primary {
  color: #ffffff;
  background-color: var(--brand-primary, #2563eb);
  border-color: var(--brand-primary, #2563eb);
}
.cookie-consent__btn--primary:hover { filter: brightness(0.94); }
.cookie-consent__btn--quiet {
  flex: 0 1 auto;
  color: #4b5563; border-color: transparent;
  text-decoration: underline;
}

/* Reopens the banner after a choice; revealed by the script only once one exists. */
.cookie-consent__reopen {
  position: fixed; left: 1rem; bottom: 1rem; z-index: 50;
  padding: 0.375rem 0.625rem;
  font: inherit; font-size: 0.75rem;
  color: #4b5563; background-color: #ffffff;
  border: 1px solid #e5e7eb; border-radius: 0.5rem;
  cursor: pointer; opacity: 0.75;
}
.cookie-consent__reopen[hidden] { display: none; }
.cookie-consent__reopen:hover { opacity: 1; }

.cookie-consent__btn:focus-visible,
.cookie-consent__reopen:focus-visible {
  outline: 2px solid var(--brand-primary, #2563eb);
  outline-offset: 2px;
}

@media (max-width: 420px) {
  .cookie-consent__btn { flex-basis: 100%; }
}
