/*
    Base styles of every site. The theme sets the variables (ThemeStyle, ADR-0041, ADR-0091) and may add custom CSS
    after this file; the layout classes (site-*) are part of the page contract (ADR-0039). Corners use --site-radius
    (boxes, pictures) and --site-radius-small (buttons, fields, labels); vertical room is multiplied by --site-space.
*/
html {
    font-family: var(--site-font, system-ui, sans-serif);
    line-height: 1.5;
    color: var(--site-text, #1f2328);
    background: var(--site-background, #ffffff);
    /* Edge-to-edge blocks are 100vw wide, which includes the scrollbar: html and body both clip, so the body clips its own box. */
    overflow-x: clip;
    /* A word or address longer than the line (a long heading on a phone) breaks instead of being clipped. */
    overflow-wrap: break-word;
    /*
        Links to a place on the page (a bookings block's rooms and weeks, #anchors) stop below a sticky header instead
        of under it: blocks.js keeps --site-sticky-header at the header's height while it stays at the top.
    */
    scroll-padding-top: var(--site-sticky-header, 0px);
}

body {
    margin: 0;
    overflow-x: clip;
    /* A short page still has its footer at the bottom of the window (ADR-0139). */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

body > .site-page {
    flex: 1 0 auto;
}

body > .site-footer {
    flex-shrink: 0;
}

h1, h2, h3, h4 {
    font-family: var(--site-heading-font, var(--site-font, system-ui, sans-serif));
    font-weight: var(--site-heading-weight, 700);
    text-transform: var(--site-heading-transform, none);
    letter-spacing: var(--site-heading-spacing, normal);
    line-height: 1.25;
}

a {
    color: var(--site-primary, #0b5cad);
}

.site-inner {
    box-sizing: border-box;
    max-width: var(--site-width, 72rem);
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.site-masthead {
    background: var(--site-header-background, #ffffff);
    color: var(--site-header-text, #1f2328);
}

.site-masthead a {
    color: inherit;
}

/*
    The theme's layout choices are attributes of the body (ADR-0091): data-site-header (left, centred, below),
    -header-edge (none, line, shadow), -logo (small, medium, large), -footer (simple, centred, columns), -footer-logo
    and -sticky. A header on the opening banner (.over-banner) keeps its own look.
*/

/* A header that stays at the top while the page scrolls; below the editor's preview bar. */
body[data-site-sticky] .site-masthead:not(.over-banner) {
    position: sticky;
    top: 0;
    z-index: 9;
}

body[data-site-header-edge="line"] .site-masthead:not(.over-banner) {
    border-bottom: 1px solid color-mix(in srgb, var(--site-header-text, #1f2328) 15%, transparent);
}

body[data-site-header-edge="shadow"] .site-masthead:not(.over-banner) {
    position: relative;
    z-index: 3;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

body[data-site-header-edge="shadow"][data-site-sticky] .site-masthead:not(.over-banner) {
    position: sticky;
    z-index: 9;
}

body[data-site-logo="small"] {
    --site-logo-height: 2.5rem;
    --site-logo-width: 10rem;
    --site-brand-size: 1.1rem;
}

body[data-site-logo="large"] {
    --site-logo-height: 6rem;
    --site-logo-width: 22rem;
    --site-brand-size: 1.6rem;
}

.site-page {
    position: relative;
}

/* Over the page's opening banner (ADR-0083): transparent and light, on a shade so the menu stays readable. */
.site-masthead.over-banner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 5;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent);
    color: #ffffff;
}

.site-main.under-header {
    padding-top: 0;
}

.under-header > .site-row:first-child .site-slideshow:not(.low) .site-slide {
    min-height: 70vh;
}

.under-header > .site-row:first-child .site-slide figcaption {
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-top: 7rem;
}

.site-header {
    padding-bottom: 1rem;
}

.site-footer {
    margin-top: calc(2rem * var(--site-space, 1));
    padding: calc(1.5rem * var(--site-space, 1)) 0;
    background: var(--site-footer-background, #f3f4f6);
    color: var(--site-footer-text, #1f2328);
    font-size: 0.95rem;
}

/* Footer links read as a list, not as running text: underlined only when pointed at or focused (ADR-0138). */
.site-footer a {
    color: inherit;
    text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
    text-decoration: underline;
}

/* The footer's own rows sit tight: short lines of links and contact details, not paragraphs. */
.site-footer .site-row {
    margin-bottom: 0;
}

.site-footer-content .site-text p {
    margin: 0 0 0.45rem;
}

.site-main {
    /* Top and bottom only: the sides come from .site-inner. */
    padding-top: calc(1.5rem * var(--site-space, 1));
    padding-bottom: calc(3rem * var(--site-space, 1));
}

.site-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.5rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.site-brand {
    font-family: var(--site-heading-font, inherit);
    font-size: var(--site-brand-size, 1.25rem);
    font-weight: 600;
    color: inherit;
    text-decoration: none;
}

/*
    The site's name with its logo (ADR-0138): beside, below or above it, in the header and the footer. The name is
    rendered only when the theme asks for it (always in the theme preview, hidden there until the attribute is set).
*/
.site-brand-name {
    display: none;
}

body[data-site-logo-name] .site-brand-name {
    display: block;
}

body[data-site-logo-name] .site-brand,
body[data-site-logo-name][data-site-footer-logo] .site-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem 0.75rem;
}

body[data-site-logo-name="below"] .site-brand,
body[data-site-logo-name="below"] .site-footer-brand {
    flex-direction: column;
    align-items: flex-start;
}

body[data-site-logo-name="above"] .site-brand,
body[data-site-logo-name="above"] .site-footer-brand {
    flex-direction: column-reverse;
    align-items: flex-start;
}

body[data-site-header="centred"][data-site-logo-name] .site-brand,
body[data-site-footer="centred"][data-site-logo-name] .site-footer-brand {
    align-items: center;
}

.site-footer-brand .site-brand-name {
    font-family: var(--site-heading-font, inherit);
    font-size: 1.1rem;
    font-weight: 700;
}

.site-logo {
    display: block;
    max-height: var(--site-logo-height, 4rem);
    max-width: var(--site-logo-width, 16rem);
    width: auto;
}

/* Logo centred, menu below (the class is kept for custom CSS written before the attribute). */
body[data-site-header="centred"] .site-top,
.site-top.centred {
    flex-direction: column;
}

body[data-site-header="centred"] .site-menu ul,
.site-top.centred .site-menu ul {
    justify-content: center;
}

body[data-site-header="centred"] .site-menu,
.site-top.centred .site-menu {
    flex: none;
}

/* Logo on the left, the language links on the right and the menu on its own line below. */
body[data-site-header="below"] .site-menu {
    flex-basis: 100%;
    order: 3;
}

body[data-site-header="below"] .site-languages {
    margin-left: auto;
}

.site-menu {
    flex: 1 1 auto;
}

.site-menu ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Logo on the left, menu on the right: the menu fills the rest of the line, its items at the far end. */
body[data-site-header="left"] .site-menu ul {
    justify-content: flex-end;
}

.site-menu li {
    position: relative;
}

.site-menu a {
    display: block;
    padding: 0.25rem 0;
    color: inherit;
    text-decoration: none;
}

.site-menu a:hover,
.site-menu a[aria-current="page"] {
    text-decoration: underline;
}

/* A menu link drawn as the theme's button (ADR-0132): the button's own colours, also on the banner. */
.site-menu a.site-button {
    padding: 0.45rem 1rem;
    color: var(--site-button-text, var(--site-background));
}

.site-menu a.site-button:hover,
.site-menu a.site-button[aria-current="page"] {
    text-decoration: none;
}

/* Beside a button the links are centred on its middle; menus without one keep their look. */
.site-menu > ul:has(> .site-menu-cta) {
    align-items: center;
}

.site-menu li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: -0.75rem;
    z-index: 20;
    min-width: 12rem;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0.75rem;
    /* The header's colours: its links have the header's text colour, which may be light. */
    background: var(--site-header-background, var(--site-background, #ffffff));
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* The last page's sub-pages open towards the left, so they stay inside the window. */
.site-menu > ul > li:last-child > ul {
    left: auto;
    right: -0.75rem;
}

/* On the banner the header's text is white whatever its background, so the sub-pages lie on a dark shade. */
.site-masthead.over-banner .site-menu li ul {
    background: rgba(0, 0, 0, 0.88);
}

.site-menu li:hover > ul,
.site-menu li:focus-within > ul {
    display: flex;
}

/* The phone menu's button (blocks.js shows it): only on phones, three lines that turn into a cross when open. */
.site-menu-button {
    display: none;
}

.site-menu-icon,
.site-menu-icon::before,
.site-menu-icon::after {
    display: block;
    width: 1.25rem;
    height: 2px;
    background: currentColor;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.site-menu-icon {
    position: relative;
}

.site-menu-icon::before,
.site-menu-icon::after {
    content: "";
    position: absolute;
    left: 0;
}

.site-menu-icon::before {
    top: -6px;
}

.site-menu-icon::after {
    top: 6px;
}

.site-menu-button[aria-expanded="true"] .site-menu-icon {
    background-color: transparent;
}

.site-menu-button[aria-expanded="true"] .site-menu-icon::before {
    transform: translateY(6px) rotate(45deg);
}

.site-menu-button[aria-expanded="true"] .site-menu-icon::after {
    transform: translateY(-6px) rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
    .site-menu-icon,
    .site-menu-icon::before,
    .site-menu-icon::after {
        transition: none;
    }
}

.site-languages {
    display: flex;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.site-footer-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    font-size: 0.9rem;
}

/* The logo in the footer: rendered only when the theme asks for it (or in its preview), shown by the attribute. */
.site-footer-brand {
    display: none;
}

body[data-site-footer-logo] .site-footer-brand {
    display: inline-block;
    margin-bottom: 1rem;
}

.site-footer-logo {
    display: block;
    max-height: 3rem;
    max-width: 12rem;
    width: auto;
}

body[data-site-footer="centred"] .site-footer-inner {
    text-align: center;
}

body[data-site-footer="centred"] .site-footer-menu {
    justify-content: center;
}

body[data-site-footer="centred"] .site-footer-brand .site-footer-logo {
    margin: 0 auto;
}

/* The footer's content beside its menu as a column; the privacy links below both. One column on phones. */
body[data-site-footer="columns"] .site-footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand brand" "content menu" "legal legal";
    gap: 0 2.5rem;
    align-items: start;
}

body[data-site-footer="columns"] .site-footer-brand {
    grid-area: brand;
    justify-self: start;
}

body[data-site-footer="columns"] .site-footer-content {
    grid-area: content;
}

body[data-site-footer="columns"] .site-footer-menu {
    grid-area: menu;
    flex-direction: column;
    gap: 0.45rem;
}

body[data-site-footer="columns"] .site-footer-legal {
    grid-area: legal;
}

@media (max-width: 700px) {
    body[data-site-footer="columns"] .site-footer-inner {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "brand" "content" "menu" "legal";
    }
}

.site-row {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: calc(1.5rem * var(--site-space, 1)) 1.5rem;
    margin-bottom: calc(1.5rem * var(--site-space, 1));
}

/*
    Colour bands behind rows (ADR-0108). The band lies behind the row and reaches the window's edges, like edge-to-edge
    slideshows, and the row itself stays in the page's width. It turns the theme's colours around for everything inside,
    so blocks need no rules of their own. Variables on :root are already resolved here, so the buttons' are set too, and
    the page's colours are kept under their own names for what must return to them (cards).
*/
body {
    --site-page-text: var(--site-text);
    --site-page-background: var(--site-background);
    --site-page-primary: var(--site-primary);
    --site-page-accent: var(--site-accent);
    --site-page-surface: var(--site-surface);
    --site-page-button-background: var(--site-button-background);
    --site-page-button-text: var(--site-button-text);
    --site-page-button-shadow: var(--site-button-shadow);
}

.site-row.band {
    position: relative;
    isolation: isolate;
    padding-top: calc(1.5rem * var(--site-space, 1));
    padding-bottom: calc(1.5rem * var(--site-space, 1));
    color: var(--site-text);
}

.site-row.band::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: calc(50% - 50vw);
    right: calc(50% - 50vw);
    background: var(--site-background);
}

.site-main > .site-row.band:first-child {
    margin-top: calc(-1.5rem * var(--site-space, 1));
}

.site-main.under-header > .site-row.band:first-child {
    margin-top: 0;
}

/* Two bands in a row meet (ADR-0139): no strip of page background between them. */
.site-row.band:has(+ .site-row.band) {
    margin-bottom: 0;
}

/* A band at the end of a page meets the footer (ADR-0138): no page background between them. */
.site-main > .site-row.band:last-child {
    margin-bottom: calc(-3rem * var(--site-space, 1));
}

body:has(.site-main > .site-row.band:last-child) .site-footer {
    margin-top: 0;
}

/* A row's columns centred against each other (ADR-0138), e.g. a text beside a button. */
.site-row.align-centre {
    align-items: center;
}

.site-row.band-surface {
    --site-background: var(--site-page-surface);
    --site-surface: var(--site-page-background);
}

.site-row.band-primary,
.site-row.band-accent,
.site-row.band-contrast {
    --site-text: var(--site-page-background);
    --site-primary: var(--site-page-background);
    --site-accent: var(--site-page-background);
    --site-surface: color-mix(in srgb, var(--site-page-background) 14%, var(--site-background));
    --site-button-background: var(--site-page-background);
    --site-button-text: var(--site-background);
    --site-button-shadow: none;
}

.site-row.band-primary {
    --site-background: var(--site-page-primary);
}

.site-row.band-accent {
    --site-background: var(--site-page-accent);
}

.site-row.band-contrast {
    --site-background: var(--site-page-text);
}

/* The skip link (ADR-0133): out of sight until a keyboard reaches it, then at the top left above everything. */
.site-skip-link {
    position: absolute;
    left: 0.5rem;
    top: -10rem;
    z-index: 100;
    padding: 0.6rem 1rem;
    border-radius: var(--site-radius-small, 0.35rem);
    background: var(--site-page-background, #ffffff);
    color: var(--site-page-text, #1f2328);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    font-weight: 600;
}

.site-skip-link:focus {
    top: 0.5rem;
}

.site-main:focus {
    outline: none;
}

/* A block named in links (ADR-0132): arriving at #name leaves a little room above it. */
.site-anchor,
.site-card[id] {
    scroll-margin-top: 1.5rem;
}

/* Below a header that stays at the top: room for the header too (its height depends on the logo). */
body[data-site-sticky] .site-anchor,
body[data-site-sticky] .site-card[id] {
    scroll-margin-top: 8rem;
}

/* A block as a card with a heading (ADR-0108), in the page's own colours, also on a band, unless the card has a
   theme colour of its own (ADR-0121, rules below). */
.site-card {
    --site-text: var(--site-page-text);
    --site-background: var(--site-page-background);
    --site-primary: var(--site-page-primary);
    --site-accent: var(--site-page-accent);
    --site-surface: var(--site-page-surface);
    --site-button-background: var(--site-page-button-background);
    --site-button-text: var(--site-page-button-text);
    --site-button-shadow: var(--site-page-button-shadow);
    margin: 0 0 1rem;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--site-text) 18%, transparent);
    border-radius: var(--site-radius, 0.5rem);
    background: var(--site-background);
    color: var(--site-text);
}

/* A card in a theme colour (ADR-0121): the same pairs as a row's band, so ThemeContrast's checks cover it too. */
.site-card.card-surface {
    --site-background: var(--site-page-surface);
    --site-surface: var(--site-page-background);
}

.site-card.card-primary,
.site-card.card-accent,
.site-card.card-contrast {
    --site-text: var(--site-page-background);
    --site-primary: var(--site-page-background);
    --site-accent: var(--site-page-background);
    --site-surface: color-mix(in srgb, var(--site-page-background) 14%, var(--site-background));
    --site-button-background: var(--site-page-background);
    --site-button-text: var(--site-background);
    --site-button-shadow: none;
    border-color: transparent;
}

.site-card.card-primary {
    --site-background: var(--site-page-primary);
}

.site-card.card-accent {
    --site-background: var(--site-page-accent);
}

.site-card.card-contrast {
    --site-background: var(--site-page-text);
}

.site-card-heading {
    margin: 0;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid color-mix(in srgb, var(--site-text) 18%, transparent);
    background: var(--site-surface);
    font-size: 1.25rem;
}

.site-card-body {
    padding: calc(1rem * var(--site-space, 1)) 1rem;
}

.site-card-body > :first-child,
.site-card-body > .site-text > :first-child {
    margin-top: 0;
}

.site-card-body > :last-child,
.site-card-body > .site-text > :last-child {
    margin-bottom: 0;
}

/* An item's own page in a card (ADR-0115): a little more room than a block's card. */
.site-item-card > .site-card-body {
    padding: calc(1.5rem * var(--site-space, 1)) 1.5rem;
}

/* A block with nothing to show leaves no empty box. */
.site-card:has(> .site-card-body:empty) {
    display: none;
}

.site-col {
    grid-column: span var(--span, 12);
    min-width: 0;
}

/* Side-by-side columns start level (ADR-0139): no first block's top margin pushes one of them down. */
.site-col:not(:only-child) > :first-child,
.site-col:not(:only-child) > :first-child > :first-child {
    margin-top: 0;
}

/* One column of reading width, centred (ADR-0139). */
.site-row.narrow > .site-col {
    grid-column: 1 / -1;
    justify-self: center;
    width: 100%;
    max-width: var(--site-reading-width, 46rem);
}

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

/* Pictures in text (TextPictures): beside the text, which wraps round them, or on their own line; on phones always on
   their own line, small ones keeping their size. */
/* Tables in text (ADR-0110): only the theme's look. Too wide for a phone, they scroll sideways on their own. */
.site-text table {
    border-collapse: collapse;
    width: 100%;
    margin: 0 0 1rem;
}

.site-text th,
.site-text td {
    height: 2.2em;
    padding: 0.4rem 0.6rem;
    text-align: left;
    vertical-align: top;
    border: 1px solid color-mix(in srgb, var(--site-text) 20%, transparent);
}

.site-text th {
    background: color-mix(in srgb, var(--site-text) 6%, transparent);
    font-weight: 700;
}

.site-text th > :first-child,
.site-text td > :first-child {
    margin-top: 0;
}

.site-text th > :last-child,
.site-text td > :last-child {
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .site-text table {
        display: block;
        overflow-x: auto;
    }
}

.site-text::after {
    content: "";
    display: block;
    clear: both;
}

.site-text img.site-picture {
    border-radius: var(--site-radius-small, 0.35rem);
}

.site-text img.site-picture.pic-small {
    width: 33%;
}

.site-text img.site-picture.pic-medium {
    width: 50%;
}

.site-text img.site-picture.pic-full,
.site-text img.site-picture.pic-center {
    display: block;
    margin: calc(1rem * var(--site-space, 1)) auto;
}

.site-text img.site-picture.pic-full {
    width: 100%;
}

.site-text img.site-picture.pic-left:not(.pic-full) {
    float: left;
    margin: 0.25rem 1.5rem 1rem 0;
}

.site-text img.site-picture.pic-right:not(.pic-full) {
    float: right;
    margin: 0.25rem 0 1rem 1.5rem;
}

@media (max-width: 600px) {
    .site-text img.site-picture.pic-left:not(.pic-full),
    .site-text img.site-picture.pic-right:not(.pic-full) {
        float: none;
        display: block;
        margin: 1rem auto;
    }

    .site-text img.site-picture.pic-medium {
        width: 100%;
    }
}

/* A link shown as a button in text (ADR-0094): room above and below so it does not touch the lines around it. */
.site-text a.site-button {
    margin: 0.25rem 0;
}

.site-preview-bar {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 0.4rem 1rem;
    background: #fff3cd;
    color: #664d03;
    font-size: 0.85rem;
    text-align: center;
}

@media (max-width: 48rem) {
    .site-col {
        grid-column: span 12;
    }

    /* Stacked columns are spaced by the row's gap only, not also by the last block's margin (ADR-0139). */
    .site-col:not(:last-child) > :last-child,
    .site-col:not(:last-child) > :last-child > :last-child {
        margin-bottom: 0;
    }

    /* Buttons set to the right of a column start at the left once the columns stack under left-aligned text. */
    .site-col:not(:only-child) .site-buttons-block.right {
        justify-content: flex-start;
    }

    /* Phones: the menu below the name, sub-pages listed under their page. */
    .site-menu {
        flex-basis: 100%;
    }

    body[data-site-header="left"] .site-menu ul {
        justify-content: flex-start;
    }

    .site-menu li ul,
    .site-masthead.over-banner .site-menu li ul {
        display: flex;
        position: static;
        box-shadow: none;
        padding: 0 0 0 1rem;
        background: none;
    }

    /* With blocks.js the menu folds behind the button: name and button on one line, the menu below as a list. */
    .site-menu-button:not([hidden]) {
        display: inline-flex;
        order: 2;
        align-items: center;
        gap: 0.6rem;
        min-height: 2.75rem;
        margin-left: auto;
        padding: 0 0.85rem;
        border: 1px solid color-mix(in srgb, currentColor 35%, transparent);
        border-radius: var(--site-button-radius, 0.375rem);
        background: none;
        color: inherit;
        font: inherit;
        cursor: pointer;
    }

    body[data-site-header="centred"] .site-menu-button,
    .site-top.centred .site-menu-button,
    body[data-site-header="centred"] .site-masthead[data-menu] .site-languages,
    .site-masthead[data-menu] .site-top.centred .site-languages {
        margin-right: auto;
    }

    /* The language links, if any, sit just before the button at the far end. */
    .site-masthead[data-menu] .site-languages {
        order: 1;
        margin-left: auto;
    }

    body:not([data-site-header="centred"]) .site-masthead[data-menu] .site-top:not(.centred):has(.site-languages) .site-menu-button {
        margin-left: 0;
    }

    .site-masthead[data-menu] .site-menu {
        order: 3;
    }

    .site-masthead[data-menu="closed"] .site-menu {
        display: none;
    }

    .site-masthead[data-menu="open"] .site-menu {
        max-height: calc(100vh - 6rem);
        overflow-y: auto;
    }

    .site-masthead[data-menu] .site-menu ul {
        flex-direction: column;
        gap: 0;
    }

    .site-masthead[data-menu] .site-menu > ul > li + li {
        border-top: 1px solid color-mix(in srgb, currentColor 15%, transparent);
    }

    .site-masthead[data-menu] .site-menu a {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    /* In the folded menu a button keeps its own size and stands apart from the links. */
    .site-masthead[data-menu] .site-menu a.site-button {
        display: inline-block;
        padding: 0.55rem 1.1rem;
    }

    .site-masthead[data-menu] .site-menu .site-menu-cta {
        align-self: flex-start;
        padding: 0.75rem 0;
    }

    /* On the banner the open menu gets a solid shade, so it stays readable over the picture. */
    .site-masthead.over-banner[data-menu="open"] {
        background: rgba(0, 0, 0, 0.96);
    }
}

.site-image {
    margin: 0 0 1rem;
}

.site-image img {
    display: block;
    max-width: 100%;
    height: auto;
}

.site-image figcaption {
    margin-top: 0.4rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/*
 * Image block options (ADR-0093): size and placement in the column, shape, enlarge. Child selectors, so the large view's
 * own picture (a dialog inside the figure) keeps its look.
 */
.site-image.medium {
    max-width: 66%;
}

.site-image.small {
    max-width: 40%;
}

.site-image.medium > img,
.site-image.medium > a > img,
.site-image.small > img,
.site-image.small > a > img {
    width: 100%;
}

.site-image.center {
    margin-left: auto;
    margin-right: auto;
}

.site-image.center > figcaption {
    text-align: center;
}

.site-image.right {
    margin-left: auto;
}

.site-image.right > figcaption {
    text-align: right;
}

.site-image.rounded > img,
.site-image.rounded > a > img {
    border-radius: var(--site-radius, 0.5rem);
}

.site-image.circle > img,
.site-image.circle > a > img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
}

.site-image.zoom > a {
    display: block;
    cursor: zoom-in;
}

@media (max-width: 48rem) {
    .site-image.medium {
        max-width: 100%;
    }

    .site-image.small {
        max-width: 60%;
    }
}

.site-files ul {
    padding-left: 1.2rem;
}

.site-file-info {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* In the plain list the details follow the name on its line (the markup has no space between them). */
.site-files li > a + .site-file-info {
    margin-left: 0.35em;
}

/* Files & links as rows or tiles (ADR-0093): the whole item is the link, with a type badge in the theme's colours. */
.site-files ul.rows,
.site-files ul.tiles {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.site-file-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: inherit;
    text-decoration: none;
}

.site-file-badge {
    flex: 0 0 auto;
    min-width: 2.75rem;
    padding: 0.35rem 0.4rem;
    border-radius: var(--site-radius-small, 0.35rem);
    background: color-mix(in srgb, var(--site-primary) 14%, var(--site-background));
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-align: center;
}

.site-file-text {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow-wrap: anywhere;
}

.site-file-name {
    font-weight: 600;
    color: var(--site-primary);
}

.site-file-item:hover .site-file-name,
.site-file-item:focus-visible .site-file-name {
    text-decoration: underline;
}

.site-file-go {
    flex: 0 0 auto;
    opacity: 0.6;
}

.site-files ul.rows > li {
    border-bottom: 1px solid color-mix(in srgb, var(--site-text) 12%, transparent);
}

.site-files ul.rows .site-file-item {
    padding: 0.6rem 0.25rem;
}

.site-files ul.rows .site-file-item:hover {
    background: color-mix(in srgb, var(--site-text) 4%, transparent);
}

.site-files ul.tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
    gap: 0.75rem;
}

.site-files ul.tiles > li {
    border: 1px solid color-mix(in srgb, var(--site-text) 12%, transparent);
    border-radius: var(--site-radius, 0.5rem);
}

.site-files ul.tiles .site-file-item {
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    padding: 1rem;
    box-sizing: border-box;
}

.site-files ul.tiles .site-file-item:hover {
    border-color: var(--site-primary);
    background: color-mix(in srgb, var(--site-text) 4%, transparent);
}

.site-files ul.tiles .site-file-go {
    display: none;
}

/* Members (ADR-0043): sign-in box, member pages, signed-in bar. */
.site-lock {
    margin-left: 0.3em;
    vertical-align: -0.05em;
    opacity: 0.7;
}

.site-member-box {
    max-width: 28rem;
    margin: 2rem auto;
}

.site-member-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.site-member-form label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-weight: 600;
}

.site-member-form input {
    font: inherit;
    font-weight: normal;
    padding: 0.55rem 0.65rem;
    border: 1px solid color-mix(in srgb, var(--site-text) 30%, transparent);
    border-radius: var(--site-radius-small, 0.35rem);
    background: var(--site-background);
    color: var(--site-text);
}

.site-member-form button,
.site-member-signout button {
    font: inherit;
    padding: 0.55rem 1rem;
    border: 0;
    border-radius: var(--site-button-radius, var(--site-radius-small, 0.35rem));
    background: var(--site-button-background, var(--site-primary));
    color: var(--site-button-text, #fff);
    box-shadow: var(--site-button-shadow, none);
    cursor: pointer;
    align-self: flex-start;
}

.site-member-signout {
    display: inline;
}

.site-member-signout button {
    padding: 0.3rem 0.75rem;
    background: transparent;
    color: var(--site-primary);
    border: 1px solid currentColor;
}

.site-member-message {
    padding: 0.6rem 0.8rem;
    border-radius: var(--site-radius-small, 0.35rem);
    background: color-mix(in srgb, var(--site-primary) 12%, transparent);
}

.site-member-links {
    margin-top: 1rem;
}

.site-member-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: flex-end;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.site-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Cookie consent (ADR-0044): a bar at the bottom with equal buttons; embeds wait behind a placeholder. */
.site-consent {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 1000;
    background: var(--site-background);
    color: var(--site-text);
    border-top: 3px solid var(--site-primary);
    box-shadow: 0 -4px 16px rgb(0 0 0 / 15%);
    max-height: 80vh;
    overflow-y: auto;
}

.site-consent[hidden],
.site-consent [hidden] {
    display: none;
}

.site-consent-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.site-consent-text {
    flex: 1 1 28rem;
}

.site-consent-text h2 {
    font-size: 1.1rem;
    margin: 0 0 0.3rem;
}

.site-consent-text p {
    margin: 0;
}

.site-consent-panel {
    flex: 1 1 100%;
    display: grid;
    gap: 0.5rem;
}

.site-consent-panel label {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.site-consent-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.site-consent-buttons button,
.site-embed-placeholder button:not(.link),
/* The built-in privacy policy reads at reading width, centred like a narrow row (ADR-0139). */
.site-privacy {
    max-width: var(--site-reading-width, 46rem);
    margin-inline: auto;
}

.site-privacy button {
    font: inherit;
    min-width: 9rem;
    padding: 0.55rem 1rem;
    border: 2px solid var(--site-primary);
    border-radius: var(--site-button-radius, var(--site-radius-small, 0.35rem));
    background: var(--site-primary);
    color: var(--site-background, #fff);
    cursor: pointer;
}

button.link {
    font: inherit;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
}

/* The footer's last line (ADR-0134): the privacy and cookie links on the left, "Powered by NoirCMS" on the right. */
.site-footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.25rem 1.5rem;
    margin: 1rem 0 0;
    font-size: 0.9rem;
}

/* Set apart from the footer's content above it (ADR-0138). */
.site-footer-legal:not(:first-child) {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid color-mix(in srgb, currentColor 15%, transparent);
}

.site-footer-legal p {
    margin: 0;
}

/* Shown only when the theme has it on; the theme editor's preview switches it with the body attribute. */
.site-powered-by {
    display: none;
    opacity: 0.8;
}

body[data-site-powered-by] .site-powered-by {
    display: block;
}

body[data-site-footer="centred"] .site-footer-legal {
    flex-direction: column;
    align-items: center;
}

.site-embed {
    margin: 0 0 1rem;
}

.site-embed iframe,
.site-embed-placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}

.site-embed.map iframe,
.site-embed.map .site-embed-placeholder {
    aspect-ratio: 4 / 3;
}

/* Spotify's player has fixed heights: 352px for albums and playlists, 152px for one track or episode. */
.site-embed.spotify iframe,
.site-embed.spotify .site-embed-placeholder {
    aspect-ratio: auto;
    height: 352px;
    border-radius: 12px;
}

.site-embed.spotify.compact iframe,
.site-embed.spotify.compact .site-embed-placeholder {
    height: 152px;
}

.site-embed.spotify.compact .site-embed-placeholder {
    padding: 0.75rem;
}

/* A provider's own page (Conventus and Flexybox, ADR-0109, ADR-0111): a chosen height, and it scrolls inside the frame. */
.site-embed.page iframe,
.site-embed.page .site-embed-placeholder {
    aspect-ratio: auto;
}

.site-embed.page iframe {
    height: 650px;
}

.site-embed.page.low iframe {
    height: 400px;
}

.site-embed.page.high iframe {
    height: 1000px;
}

/* Until it is shown, a tall page is only a low box with the button, not a window of empty space. */
.site-embed.page .site-embed-placeholder,
.site-embed.page.low .site-embed-placeholder {
    height: 320px;
}

.site-embed-placeholder {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem;
    box-sizing: border-box;
    background: color-mix(in srgb, var(--site-text) 8%, var(--site-background));
    text-align: center;
}

.site-embed-placeholder p {
    margin: 0.3rem 0;
}

.site-table {
    overflow-x: auto;
}

.site-table table {
    border-collapse: collapse;
    width: 100%;
    font-size: 0.9rem;
}

.site-table th,
.site-table td {
    text-align: left;
    vertical-align: top;
    padding: 0.4rem 0.6rem;
    border-bottom: 1px solid color-mix(in srgb, var(--site-text) 20%, transparent);
}

/* Buttons in blocks (feature box, slides) and forms; filled, outlined or pill from the theme (ADR-0091). */
.site-button {
    display: inline-block;
    padding: 0.55rem 1.1rem;
    border-radius: var(--site-button-radius, var(--site-radius-small, 0.35rem));
    background: var(--site-button-background, var(--site-primary));
    color: var(--site-button-text, var(--site-background));
    box-shadow: var(--site-button-shadow, none);
    text-decoration: none;
    font-weight: 600;
}

.site-button:hover {
    filter: brightness(1.1);
}

/* A second button beside the first (slides): an outline in the text colour around it. */
.site-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.site-button.outline {
    background: transparent;
    color: inherit;
    box-shadow: inset 0 0 0 1px currentColor;
}

/* The buttons block (ADR-0093): the theme's buttons on their own, left, centred or right. */
.site-buttons-block {
    margin: 0 0 1rem;
}

.site-buttons-block.center {
    justify-content: center;
}

.site-buttons-block.right {
    justify-content: flex-end;
}

.site-link .site-file-info {
    display: block;
    margin-left: 0;
}

/* Feature box (ADR-0047). */
.site-feature {
    position: relative;
    overflow: hidden;
    margin: 0 0 1rem;
    padding: calc(2rem * var(--site-space, 1)) 1.5rem;
    border-radius: var(--site-radius, 0.5rem);
}

.site-feature h2 {
    margin-top: 0;
}

.site-feature p:last-child {
    margin-bottom: 0;
}

.site-feature.accent {
    background: var(--site-accent, var(--site-primary));
    color: var(--site-background);
}

.site-feature.accent .site-button {
    background: var(--site-background);
    color: var(--site-accent, var(--site-primary));
    box-shadow: none;
}

.site-feature.light {
    background: var(--site-surface, #ebf2f8);
}

.site-feature.picture {
    color: #ffffff;
    min-height: 14rem;
    display: flex;
    align-items: flex-end;
}

.site-feature-picture,
.site-feature-picture img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.site-feature.picture::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.15));
}

.site-feature-body {
    position: relative;
    z-index: 2;
}

/* Light and accent boxes with a picture beside the text (ADR-0084); side by side where there is room, else stacked. */
.site-feature.with-picture {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
}

.site-feature-side {
    flex: 1 1 12rem;
    max-width: 24rem;
}

.site-feature-side img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--site-radius-small, 0.35rem);
}

.site-feature.with-picture .site-feature-body {
    flex: 2 1 16rem;
}

/* Picture menu. */
.site-picture-menu {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
    gap: 1rem;
}

.site-picture-menu a,
.site-picture-menu li > div {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--site-radius, 0.5rem);
    color: #ffffff;
    text-decoration: none;
}

.site-picture-menu img,
.site-picture-menu-empty {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.site-picture-menu-empty {
    background: var(--site-primary);
}

.site-picture-menu a:hover img,
.site-picture-menu a:focus-visible img {
    transform: scale(1.05);
}

.site-picture-menu-text {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2rem 0.75rem 0.6rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    font-weight: 600;
}

/* Where a picture menu's texts sit, and the look with a framed picture and a button across its edge (ADR-0108). */
.site-picture-menu.text-center .site-picture-menu-text {
    text-align: center;
}

.site-picture-menu.text-right .site-picture-menu-text {
    text-align: right;
}

.site-picture-menu.text-middle .site-picture-menu-text {
    top: 50%;
    bottom: auto;
    padding: 0.4rem 0.75rem;
    background: rgba(0, 0, 0, 0.55);
    transform: translateY(-50%);
}

.site-picture-menu.buttons {
    gap: 2rem 1rem;
    margin-bottom: 2rem;
}

.site-picture-menu.buttons a,
.site-picture-menu.buttons li > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    aspect-ratio: auto;
    overflow: visible;
    padding: 0.5rem;
    border: 1px solid color-mix(in srgb, currentColor 40%, transparent);
    color: inherit;
}

.site-picture-menu-picture {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--site-radius-small, 0.35rem);
    color: #ffffff;
}

.site-picture-menu.buttons a .site-picture-menu-text {
    bottom: 1.5rem;
}

.site-picture-menu.buttons .site-picture-menu-text {
    padding: 0.3rem 0.6rem;
    background: rgba(0, 0, 0, 0.55);
    font-size: 1.15rem;
}

.site-picture-menu.buttons.text-middle a .site-picture-menu-text {
    bottom: auto;
}

/* Across the frame's bottom edge, half in and half out whatever its height; the picture stays inside the frame. */
.site-picture-menu-button {
    position: absolute;
    bottom: 0;
    left: 1rem;
    width: max-content;
    max-width: calc(100% - 2rem);
    box-sizing: border-box;
    transform: translateY(50%);
}

.site-picture-menu.buttons.text-center .site-picture-menu-button {
    left: 50%;
    transform: translate(-50%, 50%);
}

.site-picture-menu.buttons.text-right .site-picture-menu-button {
    left: auto;
    right: 1rem;
}

.site-picture-menu.buttons a:hover .site-button {
    filter: brightness(1.1);
}

/* Gallery and its large view. */
.site-gallery ul {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
    gap: 0.5rem;
}

.site-gallery a {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--site-radius-small, 0.35rem);
}

.site-gallery li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.site-gallery-caption {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.875rem;
    line-height: 1.35;
    color: color-mix(in srgb, var(--site-text) 75%, transparent);
}

/* Pictures per row in galleries and picture menus (ADR-0093); phones show at most two. */
.site-gallery ul.cols-2,
.site-picture-menu.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-gallery ul.cols-3,
.site-picture-menu.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.site-gallery ul.cols-4,
.site-picture-menu.cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.site-gallery ul.cols-5,
.site-picture-menu.cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.site-gallery ul.cols-6,
.site-picture-menu.cols-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

@media (max-width: 48rem) {
    .site-gallery ul[class*="cols-"],
    .site-picture-menu[class*="cols-"] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.site-lightbox {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.92);
    color: #ffffff;
}

.site-lightbox::backdrop {
    background: rgba(0, 0, 0, 0.92);
}

.site-lightbox figure {
    margin: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 4rem;
    box-sizing: border-box;
    pointer-events: none;
}

.site-lightbox img {
    max-width: 100%;
    max-height: calc(100% - 3rem);
    object-fit: contain;
}

.site-lightbox figcaption {
    margin-top: 0.75rem;
    text-align: center;
}

.site-lightbox button,
.site-slideshow-controls button {
    position: absolute;
    border: 0;
    border-radius: 50%;
    width: 2.75rem;
    height: 2.75rem;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

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

.site-lightbox-close {
    top: 1rem;
    right: 1rem;
}

.site-lightbox-previous,
.site-lightbox-next {
    top: 50%;
    transform: translateY(-50%);
}

.site-lightbox-previous {
    left: 1rem;
}

.site-lightbox-next {
    right: 1rem;
}

@media (max-width: 48rem) {
    .site-lightbox figure {
        padding: 3.5rem 0.5rem;
    }

    .site-lightbox-previous,
    .site-lightbox-next {
        top: auto;
        bottom: 1rem;
        transform: none;
    }
}

/* Slideshow: slides side by side, scrolled one at a time (also without the script). */
.site-slideshow {
    position: relative;
    margin: 0 0 1rem;
}

.site-slideshow.wide {
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

.site-slides {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    border-radius: var(--site-radius, 0.5rem);
}

.site-slideshow.wide .site-slides {
    border-radius: 0;
}

.site-slides::-webkit-scrollbar {
    display: none;
}

.site-slide {
    position: relative;
    flex: 0 0 100%;
    margin: 0;
    /* Edge-to-edge blocks are 100vw wide, which includes the scrollbar. */
    overflow-x: clip;
    scroll-snap-align: start;
    aspect-ratio: 16 / 7;
    overflow: hidden;
}

.site-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.site-slide figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 3rem 1.5rem 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: #ffffff;
}

.site-slideshow.wide .site-slide figcaption {
    padding-left: max(1.5rem, calc(50vw - var(--site-width, 72rem) / 2 + 1rem));
}

.site-slide figcaption h2 {
    margin: 0 0 0.25rem;
}

.site-slide-kicker {
    margin: 0 0 0.5rem;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.85;
}

.site-slide figcaption p {
    margin: 0 0 0.75rem;
    max-width: 40rem;
}

.site-slideshow-controls button {
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.35);
}

.site-slideshow-controls [data-previous] {
    left: 0.75rem;
}

.site-slideshow-controls [data-next] {
    right: 0.75rem;
}

.site-slideshow-controls [data-pause] {
    top: 0.75rem;
    right: 0.75rem;
    transform: none;
    width: 2.25rem;
    height: 2.25rem;
    font-size: 0.9rem;
}

.site-slideshow-controls[hidden] {
    display: none;
}

/* Low slides (SlideshowStyle.Low): a strip as high as a heading needs, for the top of the other pages. */
.site-slideshow.low .site-slide {
    aspect-ratio: auto;
    height: clamp(14rem, 28vw, 22rem);
}

/* Under a header on the banner the strip also makes room for the header. */
.under-header > .site-row:first-child .site-slideshow.low .site-slide {
    height: clamp(18rem, 32vw, 26rem);
}

@media (max-width: 48rem) {
    .site-slide {
        aspect-ratio: 4 / 3;
    }

    .site-slideshow.low .site-slide {
        aspect-ratio: auto;
        height: 12rem;
    }

    /* Phones: the buttons in a row in the top corner, off the slide's text (which fills the width). */
    .site-slideshow-controls button,
    .site-slideshow-controls [data-pause] {
        top: 0.75rem;
        transform: none;
        width: 2.5rem;
        height: 2.5rem;
    }

    .site-slideshow-controls [data-previous] {
        left: auto;
        right: 6.25rem;
    }

    .site-slideshow-controls [data-pause] {
        right: 3.5rem;
    }

    /* Below a header lying on the banner. */
    .under-header > .site-row:first-child .site-slideshow-controls button {
        top: 5.5rem;
    }

    .under-header > .site-row:first-child .site-slideshow.low .site-slide {
        height: 18rem;
    }
}

/* News (ADR-0047). */
.site-news {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.site-news > li {
    padding: 0.75rem 0;
    border-bottom: 1px solid color-mix(in srgb, var(--site-text) 12%, transparent);
}

.site-news h3 {
    margin: 0.1rem 0 0.25rem;
    font-size: 1.15rem;
}

.site-news h3 a {
    text-decoration: none;
}

.site-news h3 a:hover {
    text-decoration: underline;
}

.site-news p {
    margin: 0;
}

.site-news-meta {
    font-size: 0.875rem;
    color: color-mix(in srgb, var(--site-text) 75%, transparent);
}

.site-news.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    gap: 1rem;
}

.site-news.cards > li {
    padding: 0;
    border: 1px solid color-mix(in srgb, var(--site-text) 12%, transparent);
    border-radius: var(--site-radius, 0.5rem);
    overflow: hidden;
}

.site-news.cards img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.site-news.cards .site-news-body {
    padding: 0.75rem 1rem 1rem;
}

/* A news list with pictures (ADR-0093): a small picture beside each item's text. */
.site-news.pictures > li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.site-news.pictures img {
    flex: 0 0 7rem;
    width: 7rem;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--site-radius-small, 0.35rem);
}

.site-news.pictures .site-news-body {
    flex: 1 1 auto;
    min-width: 0;
}

/* Compact news (ADR-0093): date and title only, for a side column. */
.site-news.compact > li {
    padding: 0.5rem 0;
}

.site-news.compact h3 {
    margin: 0;
    font-size: 1rem;
}

.site-news-all {
    margin: 0.5rem 0 1rem;
}

/* Facebook posts (ADR-0104): the news list's looks; the picture is a link to the post, the text plain text. */
.site-facebook > li > a:first-child {
    display: block;
}

.site-news.pictures.site-facebook > li > a:first-child {
    flex: 0 0 7rem;
}

.site-facebook-text {
    overflow-wrap: anywhere;
}

.site-news .site-facebook-link {
    margin-top: 0.4rem;
    font-size: 0.875rem;
}

/* The optional heading of a list block (ADR-0093); the items below it have h3 titles. */
.site-list-heading {
    margin: 0 0 0.75rem;
}

.site-pager {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin: 1rem 0;
}

.site-article {
    max-width: 48rem;
}

.site-article h1 {
    margin-top: 0.25rem;
}

.site-article-lead {
    font-size: 1.15rem;
}

/* Calendar (ADR-0047). */
.site-events {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.site-events > li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid color-mix(in srgb, var(--site-text) 12%, transparent);
}

.site-event-date {
    flex: 0 0 3.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.35rem 0;
    border-radius: var(--site-radius-small, 0.35rem);
    background: color-mix(in srgb, var(--site-primary) 12%, var(--site-background));
    line-height: 1.1;
}

.site-event-day {
    font-size: 1.4rem;
    font-weight: 700;
}

.site-event-month {
    font-size: 0.8rem;
    text-transform: uppercase;
}

.site-events h3,
.site-events h4 {
    margin: 0 0 0.25rem;
    font-size: 1.1rem;
}

.site-events h3 a,
.site-events h4 a {
    text-decoration: none;
}

.site-events h3 a:hover,
.site-events h4 a:hover {
    text-decoration: underline;
}

.site-events-monthheading {
    margin: 1.25rem 0 0.25rem;
    color: var(--site-primary, #0b5cad);
}

.site-events-monthheading:first-child,
.site-list-heading + .site-events-monthheading {
    margin-top: 0;
}

.site-events p {
    margin: 0;
}

/* Event cards (ADR-0093): the picture across the card, the date badge beside the title below it. */
.site-events.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    gap: 1rem;
}

.site-events.cards > li {
    display: grid;
    grid-template-columns: 3.5rem minmax(0, 1fr);
    align-content: start;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid color-mix(in srgb, var(--site-text) 12%, transparent);
    border-radius: var(--site-radius, 0.5rem);
    overflow: hidden;
}

.site-events.cards img {
    grid-column: 1 / -1;
    display: block;
    width: calc(100% + 2rem);
    margin: -1rem -1rem 0.25rem;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.site-events.cards .site-event-summary {
    margin-top: 0.5rem;
}

/* Compact events (ADR-0093): a small date and the title, for a side column. */
.site-events.compact > li {
    gap: 0.75rem;
    align-items: center;
    padding: 0.5rem 0;
}

.site-events.compact .site-event-date {
    flex-basis: 2.75rem;
    padding: 0.2rem 0;
}

.site-events.compact .site-event-day {
    font-size: 1.1rem;
}

.site-events.compact .site-event-month {
    font-size: 0.7rem;
}

.site-events.compact h3 {
    margin: 0;
    font-size: 1rem;
}

.site-calendar-views {
    display: flex;
    gap: 1rem;
    margin: 0 0 1rem;
}

.site-calendar-views a {
    padding: 0.6rem 0;
}

.site-calendar-views a[aria-current="page"] {
    font-weight: 700;
    text-decoration: none;
}

.site-calendar-month {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-calendar-month h2 {
    margin: 0.5rem 0;
    min-width: 12rem;
    text-align: center;
}

.site-calendar-month a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    min-height: 2.75rem;
    font-size: 1.5rem;
    text-decoration: none;
}

.site-calendar-grid {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    margin-bottom: 1rem;
}

.site-calendar-grid th {
    font-size: 0.8rem;
    text-transform: uppercase;
    padding: 0.25rem;
}

.site-calendar-grid td {
    vertical-align: top;
    height: 5rem;
    padding: 0.25rem;
    border: 1px solid color-mix(in srgb, var(--site-text) 12%, transparent);
    font-size: 0.8rem;
}

.site-calendar-grid td.other {
    color: color-mix(in srgb, var(--site-text) 40%, transparent);
}

.site-calendar-grid td.today .site-calendar-day {
    background: var(--site-primary);
    color: var(--site-background);
    border-radius: 50%;
    padding: 0 0.35rem;
}

.site-calendar-day {
    display: inline-block;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.site-calendar-event {
    display: block;
    color: inherit;
    text-decoration: none;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding: 0.05rem 0.25rem;
    margin-bottom: 0.15rem;
    border-radius: var(--site-radius-small, 0.35rem);
    background: color-mix(in srgb, var(--site-primary) 15%, var(--site-background));
}

@media (max-width: 48rem) {
    /* Phones read the month's list under the grid instead. */
    .site-calendar-grid {
        display: none;
    }
}

.site-event-when {
    font-size: 1.05rem;
}

/* Simple lists and menu cards (ADR-0048). */
.site-list ul {
    padding-left: 1.2rem;
}

.site-list li {
    margin: 0.35rem 0;
}

.site-list-title {
    display: block;
}

.site-list.checks ul {
    list-style: none;
    padding-left: 0;
}

.site-list.checks li {
    position: relative;
    padding-left: 1.6rem;
}

.site-list.checks li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--site-primary, #0b5cad);
    font-weight: 700;
}

.site-list details {
    border-bottom: 1px solid color-mix(in srgb, var(--site-text, #1f2328) 15%, transparent);
    padding: 0.6rem 0;
}

.site-list summary {
    cursor: pointer;
    font-weight: 600;
    /* Big enough to tap. */
    padding: 0.5rem 0;
}

.site-list details p {
    margin: 0.5rem 0 0;
}

/* Cards, steps and tags (ADR-0129): only theme variables, so they follow a row's band or a card's colour. */
.site-list .site-list-grid {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
    gap: calc(1rem * var(--site-space, 1));
}

.site-list .site-list-grid > li {
    position: relative;
    margin: 0;
}

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

.site-list-grid.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.site-list-grid.cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.site-list-grid.cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.site-list-grid.cols-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

/* Text cards need their width: phones show one per row. */
@media (max-width: 48rem) {
    .site-list .site-list-grid[class*="cols-"] {
        grid-template-columns: minmax(0, 1fr);
    }
}

.site-list-grid h3,
.site-list-grid h4 {
    margin: 0 0 0.4rem;
    font-size: 1.15rem;
}

.site-list-grid .site-list-title {
    display: inline;
}

.site-list-grid p {
    margin: 0;
}

.site-list-grid p + p {
    margin-top: 0.5rem;
}

.site-list.cards .site-list-grid > li {
    padding: calc(1.25rem * var(--site-space, 1)) 1.25rem;
    border: 1px solid color-mix(in srgb, var(--site-text) 12%, transparent);
    border-radius: var(--site-radius, 0.5rem);
    background: var(--site-surface);
}

/* A card's title link covers the whole card. */
.site-list.cards a.site-list-title::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--site-radius, 0.5rem);
}

.site-list.cards .site-list-grid > li:has(a.site-list-title:hover) {
    border-color: var(--site-primary);
}

.site-list.steps .site-list-grid {
    counter-reset: site-step;
}

.site-list.steps .site-list-grid > li {
    counter-increment: site-step;
}

.site-list.steps .site-list-grid > li::before {
    content: counter(site-step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 0.75rem;
    border-radius: 50%;
    background: var(--site-primary);
    color: var(--site-background);
    font-weight: 700;
    font-size: 1.15rem;
}

.site-list.tags ul {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.site-list.tags li {
    margin: 0;
    padding: 0.3rem 0.85rem;
    border: 1px solid color-mix(in srgb, var(--site-text) 15%, transparent);
    border-radius: 999px;
    background: var(--site-surface);
    font-size: 0.9rem;
}

.site-list.tags a {
    color: inherit;
}

/* Pricing cards (ADR-0130): only theme variables, so they follow a row's band or a card's colour. */
.site-plans {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: calc(1rem * var(--site-space, 1));
}

.site-plan {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: calc(1.5rem * var(--site-space, 1)) 1.25rem;
    border: 1px solid color-mix(in srgb, var(--site-text) 15%, transparent);
    border-radius: var(--site-radius, 0.5rem);
    background: var(--site-background);
}

.site-plan.highlighted {
    border: 2px solid var(--site-primary);
    box-shadow: 0 0.5rem 1.5rem color-mix(in srgb, var(--site-text) 12%, transparent);
}

.site-plan-name {
    margin: 0;
    font-size: 1.35rem;
}

.site-plan-subtitle {
    margin: 0.15rem 0 0;
    font-size: 0.95rem;
    color: color-mix(in srgb, var(--site-text) 70%, transparent);
}

.site-plan-price {
    margin: 1rem 0 0;
    line-height: 1.15;
}

.site-plan-amount {
    font-family: var(--site-heading-font, inherit);
    font-size: 2.25rem;
    font-weight: var(--site-heading-weight, 700);
}

.site-plan-from,
.site-plan-unit,
.site-plan-detail {
    font-size: 0.95rem;
    color: color-mix(in srgb, var(--site-text) 75%, transparent);
}

.site-plan-detail {
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
}

.site-plan-included {
    list-style: none;
    margin: 1.25rem 0 0;
    padding: 0;
}

.site-plan-included li {
    position: relative;
    margin: 0.4rem 0;
    padding-left: 1.6rem;
}

.site-plan-included li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--site-primary);
    font-weight: 700;
}

/* The buttons line up at the bottom of the cards. */
.site-plan-action {
    margin: auto 0 0;
    padding-top: 1.25rem;
}

.site-plans.compact {
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}

.site-plans.compact .site-plan {
    padding: 1rem 1.25rem;
    background: var(--site-surface);
}

.site-plans.compact .site-plan-name {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--site-primary);
}

.site-plans.compact .site-plan-price {
    margin-top: 0.35rem;
}

.site-plans.compact .site-plan-amount {
    font-size: 1.6rem;
}

/* A section's heading on its own (ADR-0129). */
.site-heading {
    margin: 0 0 calc(1.25rem * var(--site-space, 1));
}

.site-heading.center {
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.site-heading > h1,
.site-heading > h2,
.site-heading > h3 {
    margin: 0;
}

.site-heading-kicker {
    margin: 0 0 0.4rem;
    color: var(--site-primary);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.site-heading-intro {
    margin: 0.6rem 0 0;
    font-size: 1.125rem;
    color: color-mix(in srgb, var(--site-text) 80%, transparent);
}

.site-menucard h3 {
    margin: 1.5rem 0 0.5rem;
    color: var(--site-primary, #0b5cad);
}

.site-dishes {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-dishes > li {
    padding: 0.5rem 0;
    border-bottom: 1px dotted color-mix(in srgb, var(--site-text, #1f2328) 25%, transparent);
}

.site-dish-head {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.site-dish-name {
    font-weight: 600;
}

.site-dish-price {
    margin-left: auto;
    font-weight: 600;
    white-space: nowrap;
}

.site-dish-mark {
    font-size: 0.7rem;
    font-weight: 700;
    text-decoration: none;
    padding: 0.05rem 0.3rem;
    border-radius: var(--site-radius-small, 0.35rem);
    background: color-mix(in srgb, var(--site-primary, #0b5cad) 12%, var(--site-background, #ffffff));
    color: var(--site-text, #1f2328);
}

.site-dish-text {
    margin: 0.2rem 0 0;
    font-size: 0.9rem;
    color: color-mix(in srgb, var(--site-text, #1f2328) 75%, transparent);
}

.site-dish-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    font-size: 0.8rem;
    margin-top: 0.75rem;
}

.site-menucard-note {
    font-size: 0.875rem;
    font-style: italic;
}

/* Contacts (ADR-0048). */
.site-contacts {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
    gap: 1.25rem;
}

.site-contacts > li > img,
.site-contact-initials {
    display: block;
    width: 100%;
    max-width: 14rem;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--site-radius, 0.5rem);
}

.site-contact-initials {
    display: grid;
    place-items: center;
    font-size: 2.5rem;
    font-weight: 600;
    background: color-mix(in srgb, var(--site-primary, #0b5cad) 12%, var(--site-background, #ffffff));
    color: var(--site-primary, #0b5cad);
}

.site-contact-body h3 {
    margin: 0.6rem 0 0.1rem;
}

.site-contact-body p {
    margin: 0.15rem 0;
    overflow-wrap: anywhere;
}

.site-contact-title {
    color: color-mix(in srgb, var(--site-text, #1f2328) 70%, transparent);
}

.site-contact-label {
    font-size: 0.8rem;
    color: color-mix(in srgb, var(--site-text, #1f2328) 60%, transparent);
}

.site-contacts.list {
    display: block;
}

.site-contacts.list > li {
    padding: 0.6rem 0;
    border-bottom: 1px solid color-mix(in srgb, var(--site-text, #1f2328) 12%, transparent);
}

.site-contacts.list h3 {
    margin-top: 0;
}

/* References (ADR-0048). */
.site-references {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    gap: 1.25rem;
}

.site-reference-picture {
    position: relative;
    aspect-ratio: 3 / 2;
    background: color-mix(in srgb, var(--site-text, #1f2328) 4%, var(--site-background, #ffffff));
    border-radius: var(--site-radius, 0.5rem);
    overflow: hidden;
}

/* The whole picture, whatever its shape: it is sized by the box, never the box by it. */
.site-reference-picture img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.site-reference-body h3,
.site-reference-body p {
    margin: 0.2rem 0;
}

/* A list: a small picture on the left and the text on the right, also on phones. */
.site-references.list {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
}

.site-references.list > li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem;
    border: 1px solid color-mix(in srgb, var(--site-text, #1f2328) 18%, transparent);
    border-radius: var(--site-radius, 0.5rem);
}

.site-references.list .site-reference-picture {
    flex: 0 0 5rem;
    aspect-ratio: 1;
    border-radius: var(--site-radius-small, 0.35rem);
}

.site-references.list .site-reference-body {
    flex: 1;
    min-width: 0;
}

.site-references.logos {
    grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
    align-items: center;
}

.site-references.logos li {
    display: grid;
    place-items: center;
    min-height: 4rem;
}

.site-references.logos img {
    max-width: 100%;
    max-height: 4rem;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.8;
}

.site-references.logos a:hover img {
    filter: none;
    opacity: 1;
}

.site-reference-logo img {
    max-height: 12rem;
    width: auto;
}

.site-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.site-filter a {
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--site-primary, #0b5cad) 40%, transparent);
    text-decoration: none;
}

.site-filter a[aria-current="page"] {
    background: var(--site-primary, #0b5cad);
    color: var(--site-background, #ffffff);
}

/* Teams and training times (ADR-0048). */
.site-team-group {
    margin-top: 2rem;
}

.site-training {
    list-style: none;
    padding: 0;
}

.site-training li {
    padding: 0.3rem 0;
}

.site-training-overview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
    gap: 0 1.5rem;
}

.site-training-overview h3 {
    margin: 1rem 0 0.4rem;
    color: var(--site-primary, #0b5cad);
}

.site-training-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.925rem;
}

.site-training-table td {
    padding: 0.3rem 0.5rem 0.3rem 0;
    border-bottom: 1px solid color-mix(in srgb, var(--site-text, #1f2328) 12%, transparent);
    vertical-align: top;
}

.site-training-time,
.site-training-day {
    white-space: nowrap;
}

.site-subteam {
    padding: 0.5rem 0;
    border-bottom: 1px solid color-mix(in srgb, var(--site-text, #1f2328) 12%, transparent);
}

.site-subteam h3 {
    margin: 0.3rem 0;
}

/* Polls (ADR-0048). */
.site-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.site-poll {
    padding: calc(1rem * var(--site-space, 1)) 1.25rem;
    border-radius: var(--site-radius, 0.5rem);
    background: var(--site-surface, #ebf2f8);
}

.site-poll h3 {
    margin-top: 0;
}

.site-poll fieldset {
    border: 0;
    padding: 0;
    margin: 0 0 1rem;
}

.site-poll label {
    display: block;
    padding: 0.55rem 0;
    cursor: pointer;
}

.site-poll-results {
    list-style: none;
    padding: 0;
}

.site-poll-results li {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.2rem 0.5rem;
    margin-bottom: 0.6rem;
}

.site-poll-bar {
    grid-column: 1 / -1;
    height: 0.5rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--site-text, #1f2328) 10%, transparent);
    overflow: hidden;
}

.site-poll-bar span {
    display: block;
    height: 100%;
    background: var(--site-primary, #0b5cad);
}

.site-poll-percent {
    font-weight: 600;
}

.site-poll-note,
.site-poll-total {
    font-size: 0.875rem;
    color: color-mix(in srgb, var(--site-text, #1f2328) 70%, transparent);
}

/* Daily dishes (ADR-0048). */
.site-dishday h3 {
    margin: 1rem 0 0.25rem;
}

.site-dishday-day.today h3 {
    color: var(--site-primary, #0b5cad);
}

.site-dishday-badge {
    margin-left: 0.5rem;
    padding: 0.05rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    vertical-align: middle;
    background: var(--site-primary, #0b5cad);
    color: var(--site-background, #ffffff);
}

.site-dish-picture {
    float: right;
    width: 6rem;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--site-radius-small, 0.35rem);
    margin: 0 0 0.5rem 0.75rem;
}

.site-dishes > li::after {
    content: "";
    display: block;
    clear: both;
}

/* Audio lists and videos (ADR-0049): the browser's own players. */
.site-audio,
.site-video,
.site-form,
.site-newsletter {
    margin: 1rem 0;
}

.site-audio audio,
.site-video video {
    display: block;
    width: 100%;
}

.site-video video {
    height: auto;
    border-radius: var(--site-radius-small, 0.35rem);
    background: #000;
}

.site-video figcaption {
    margin-top: 0.4rem;
    font-size: 0.9rem;
    color: color-mix(in srgb, var(--site-text, #1f2328) 70%, transparent);
}

.site-audio-tracks {
    margin: 0.75rem 0 0;
    padding-left: 1.5rem;
}

.site-audio-tracks li {
    padding: 0.2rem 0;
}

.site-audio-tracks a[aria-current] {
    font-weight: 700;
}

/* Albums and discographies (ADR-0084): the cover beside the details where there is room, else above them. */
.site-album {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 2rem;
    margin: 0 0 1.5rem;
}

.site-album-cover {
    flex: 1 1 14rem;
    max-width: 26rem;
}

.site-album-cover img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--site-radius-small, 0.35rem);
}

.site-album-no-cover {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    width: 100%;
    font-size: 3rem;
    border-radius: var(--site-radius-small, 0.35rem);
    background: color-mix(in srgb, var(--site-text) 10%, transparent);
}

.site-album-info {
    flex: 2 1 18rem;
    min-width: 0;
}

.site-album-info h1,
.site-album-info h2,
.site-album-info h3 {
    margin-top: 0;
    margin-bottom: 0.25rem;
}

.site-album-info h2 a,
.site-album-info h3 a {
    color: inherit;
    text-decoration: none;
}

.site-album-meta {
    margin: 0 0 0.75rem;
    opacity: 0.75;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.site-album-kicker {
    margin: 0 0 0.35rem;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.85;
}

/* An album card (ADR-0093): the cover across the column, the details below it. */
.site-album.card {
    flex-direction: column;
    gap: 1rem;
}

.site-album.card .site-album-cover,
.site-album.card .site-album-info {
    flex: none;
    max-width: none;
}

.site-album.card .site-buttons {
    margin: 0.75rem 0 0;
}

.site-album .site-buttons {
    margin: 1rem 0;
}

/*
 * Beside (ADR-0093): the description and buttons under the cover, the title above the tracks. In a narrow column the
 * two columns dissolve and the title comes first: title, cover, description, buttons, tracks.
 */
.site-album.beside {
    container-type: inline-size;
    row-gap: 0;
}

.site-album.beside .site-album-description {
    margin: 1rem 0 0;
}

.site-album.beside + .site-album.beside {
    padding-top: 1.5rem;
    border-top: 1px solid color-mix(in srgb, var(--site-text) 15%, transparent);
}

@container (max-width: 36rem) {
    .site-album.beside > div {
        display: contents;
    }

    .site-album.beside > div > * {
        flex: 1 1 100%;
    }

    .site-album.beside .site-album-kicker,
    .site-album.beside .site-album-info > h2,
    .site-album.beside .site-album-info > h3,
    .site-album.beside .site-album-meta {
        order: -1;
    }

    .site-album.beside > div > img,
    .site-album.beside .site-album-no-cover {
        max-width: 26rem;
        margin-bottom: 0.5rem;
    }
}

.site-album audio {
    width: 100%;
    margin: 0.5rem 0;
}

.site-album-tracks {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
}

.site-album-tracks li {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid color-mix(in srgb, var(--site-text) 15%, transparent);
}

.site-album-track-number {
    min-width: 1.5rem;
    text-align: right;
    opacity: 0.6;
    font-variant-numeric: tabular-nums;
}

.site-album-track-title {
    flex: 1 1 auto;
    min-width: 0;
}

.site-album-track-title a {
    color: inherit;
    text-decoration: none;
}

.site-album-track-title a:hover,
.site-album-track-title a[aria-current] {
    color: var(--site-primary);
}

.site-album-track-title a[aria-current] {
    font-weight: 700;
}

.site-album-play {
    font-size: 0.75em;
    margin-right: 0.25rem;
}

.site-album-track-artist {
    display: block;
    font-size: 0.85rem;
    opacity: 0.7;
}

.site-album-track-link {
    font-size: 0.8rem;
    white-space: nowrap;
    color: inherit;
    opacity: 0.8;
}

.site-albums {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
    gap: 1.25rem;
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.site-albums-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    color: inherit;
    text-decoration: none;
}

.site-albums-item img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--site-radius-small, 0.35rem);
    margin-bottom: 0.4rem;
}

.site-albums-title {
    font-weight: 700;
}

.site-albums-year {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* A discography as a list (ADR-0093): a small cover beside the title and year · label. */
.site-albums.list {
    display: block;
}

.site-albums.list > li {
    padding: 0.5rem 0;
    border-bottom: 1px solid color-mix(in srgb, var(--site-text) 12%, transparent);
}

.site-albums.list .site-albums-item {
    display: grid;
    grid-template-columns: 4rem minmax(0, 1fr);
    column-gap: 1rem;
    align-items: center;
    align-content: center;
}

.site-albums.list .site-albums-item img,
.site-albums.list .site-album-no-cover {
    grid-row: 1 / span 2;
    margin: 0;
    font-size: 1.5rem;
}

.site-albums.list .site-albums-title {
    align-self: end;
}

/* Without year or label the title takes both rows, centred beside the cover. */
.site-albums.list .site-albums-title:last-child {
    grid-row: 1 / span 2;
    align-self: center;
}

.site-albums.list .site-albums-year {
    align-self: start;
}

.site-albums.list .site-albums-item:hover .site-albums-title {
    text-decoration: underline;
}

/* Forms and newsletter sign-ups (ADR-0049). */
.site-form form,
.site-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    max-width: 40rem;
}

.site-form-field,
.site-form fieldset {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.site-form-field > label,
.site-form legend {
    font-weight: 600;
    padding: 0;
}

.site-form input:not([type="checkbox"]):not([type="radio"]),
.site-form select,
.site-form textarea,
.site-newsletter input {
    font: inherit;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0.55rem 0.65rem;
    border: 1px solid color-mix(in srgb, var(--site-text, #1f2328) 30%, transparent);
    border-radius: var(--site-radius-small, 0.35rem);
    background: var(--site-background, #ffffff);
    color: var(--site-text, #1f2328);
}

.site-form textarea {
    resize: vertical;
}

.site-form-choice {
    display: flex;
    gap: 0.5rem;
    align-items: baseline;
    font-weight: normal;
    cursor: pointer;
}

.site-form-heading {
    margin: 0.5rem 0 0;
}

.site-form-text,
.site-form-help {
    margin: 0;
}

.site-form-help,
.site-newsletter-note {
    font-size: 0.9rem;
    color: color-mix(in srgb, var(--site-text, #1f2328) 70%, transparent);
}

.site-form-required {
    color: #b42318;
}

/* As specific as the inputs' own border (.site-form input:not(…):not(…)). */
.site-form .site-form-field.invalid input:not([type="checkbox"]):not([type="radio"]),
.site-form .site-form-field.invalid select,
.site-form .site-form-field.invalid textarea {
    border-color: #b42318;
}

.site-form-error {
    margin: 0;
    color: #b42318;
    font-size: 0.9rem;
}

.site-form-message,
.site-form-thanks {
    padding: 0.6rem 0.8rem;
    border-radius: var(--site-radius-small, 0.35rem);
    background: color-mix(in srgb, var(--site-primary, #0b5cad) 12%, transparent);
}

.site-form-privacy {
    font-size: 0.9rem;
}

.site-form button,
.site-newsletter button {
    align-self: flex-start;
    border: 0;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.site-form button:disabled,
.site-newsletter button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* The field people never see: robots fill it in. */
.site-form-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.site-newsletter {
    padding: calc(1rem * var(--site-space, 1)) 1.25rem;
    border-radius: var(--site-radius, 0.5rem);
    background: var(--site-surface, #ebf2f8);
}

.site-newsletter h3 {
    margin-top: 0;
}

/* Webshop (ADR-0057): catalogue, product page, cart, checkout and receipt. */
.site-shop-categories { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.site-shop-categories a { padding: 0.3rem 0.8rem; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--site-text, #1f2328) 25%, transparent); text-decoration: none; color: inherit; }
.site-shop-categories a[aria-current] { background: var(--site-accent, #0b5cad); border-color: var(--site-accent, #0b5cad); color: var(--site-background, #fff); }
.site-shop-grid { list-style: none; margin: 1rem 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: 1.25rem; }
.site-shop-card a { color: inherit; text-decoration: none; }
.site-shop-card h3 { margin: 0.6rem 0 0.2rem; font-size: 1.05rem; }
.site-shop-picture { aspect-ratio: 1; background: color-mix(in srgb, var(--site-text, #1f2328) 6%, transparent); border-radius: var(--site-radius-small, 0.35rem); overflow: hidden; }
.site-shop-picture img { width: 100%; height: 100%; object-fit: cover; display: block; }
.site-shop-teaser { margin: 0; font-size: 0.9rem; color: color-mix(in srgb, var(--site-text, #1f2328) 70%, transparent); }
.site-shop-price { margin: 0.3rem 0 0; font-weight: 700; }
.site-shop-soldout { margin-left: 0.5rem; font-weight: 600; font-size: 0.85rem; color: #b42318; }
.site-shop-before { margin-left: 0.5rem; font-weight: 400; font-size: 0.85em; color: var(--site-text); opacity: 0.7; }
.site-shop-notice { padding: 0.75rem 1rem; border-radius: var(--site-radius-small, 0.35rem); background: color-mix(in srgb, var(--site-accent, #0b5cad) 10%, transparent); }
.site-shop-cart-link { margin-top: 1.5rem; }
/* A products block as a list (ADR-0093): a small picture beside the name and price, for a side column. */
.site-products.list { list-style: none; margin: 0 0 1rem; padding: 0; }
.site-products.list > li { border-bottom: 1px solid color-mix(in srgb, var(--site-text) 12%, transparent); }
.site-products-item { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); column-gap: 0.75rem; align-items: center; padding: 0.5rem 0; color: inherit; text-decoration: none; }
.site-products-item img, .site-products-no-picture { grid-row: 1 / span 2; width: 3.5rem; height: 3.5rem; object-fit: cover; border-radius: var(--site-radius-small, 0.35rem); background: color-mix(in srgb, var(--site-text) 6%, transparent); }
.site-products-name { font-weight: 600; align-self: end; }
.site-products-price { font-size: 0.9rem; align-self: start; }
.site-products-item:hover .site-products-name { text-decoration: underline; }
.site-product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.site-product h1 { margin-top: 0; }
.site-product-description { grid-column: 1 / -1; }
.site-product-thumbs { list-style: none; padding: 0; margin: 0.5rem 0 0; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.site-product-thumbs img { width: 4.5rem; height: 4.5rem; object-fit: cover; border-radius: var(--site-radius-small, 0.35rem); display: block; }
.site-product-price { font-size: 1.5rem; font-weight: 700; margin: 0.5rem 0; }
.site-product-vat, .site-product-code { font-size: 0.85rem; font-weight: normal; color: color-mix(in srgb, var(--site-text, #1f2328) 70%, transparent); }
.site-product-quantity input { max-width: 6rem; }
@media (max-width: 700px) { .site-product { grid-template-columns: 1fr; } }
.site-cart-lines { width: 100%; }
.site-cart-amount { text-align: right; white-space: nowrap; }
.site-cart-options { font-size: 0.85rem; color: color-mix(in srgb, var(--site-text, #1f2328) 70%, transparent); }
.site-cart-quantity { display: flex; gap: 0.4rem; align-items: center; }
.site-cart-quantity input { width: 4.5rem; font: inherit; padding: 0.3rem; }
.site-cart-remove { font-size: 1.3rem; line-height: 1; background: none; border: 0; cursor: pointer; color: inherit; }
.site-checkout { margin-top: 2rem; }
.site-checkout-discount-row { display: flex; gap: 0.5rem; align-items: stretch; flex-wrap: wrap; }
.site-checkout-discount-row input { flex: 1 1 10rem; max-width: 18rem; }
.site-checkout-total { font-weight: 600; }
.site-button-secondary,
.site-form .site-button-secondary { background: transparent; color: var(--site-primary); border: 1px solid var(--site-primary); cursor: pointer; font: inherit; font-weight: 600; }
.site-receipt-bank { white-space: pre-line; margin: 0; }
.site-product.no-pictures { grid-template-columns: minmax(0, 40rem); }

/* The page editor's preview (ADR-0087): blocks can be clicked to open them in the editor. The wrapper has no box. */
.noir-preview-block {
    display: contents;
}

.noir-preview .noir-preview-block > *:hover {
    outline: 2px dashed #1976d2;
    outline-offset: 2px;
    cursor: pointer;
}

.noir-preview .noir-preview-block.noir-preview-selected > * {
    outline: 2px solid #1976d2;
    outline-offset: 2px;
}

/* Bookings (ADR-0117): from the customer's booking sources, in the theme's colours, corners and spacing. */
.site-bookings h3.site-bookings-day {
    margin: calc(1rem * var(--site-space, 1)) 0 0.4rem;
    color: var(--site-primary, #0b5cad);
}

.site-bookings-dayblock.today h3.site-bookings-day {
    color: var(--site-accent, var(--site-primary, #0b5cad));
}

.site-bookings-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-bookings-list li {
    display: flex;
    gap: 1rem;
    padding: calc(0.45rem * var(--site-space, 1)) 0;
    border-bottom: 1px solid color-mix(in srgb, var(--site-text, #1f2328) 12%, transparent);
}

.site-bookings-time {
    flex: 0 0 7.5rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.site-bookings-what {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.site-bookings-details,
.site-bookings-notes,
.site-bookings-empty,
.site-bookings-next {
    font-size: 0.9rem;
    color: color-mix(in srgb, var(--site-text, #1f2328) 72%, transparent);
}

.site-bookings-empty {
    margin: 0.25rem 0;
}

.site-bookings-scroll {
    overflow-x: auto;
}

.site-bookings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.site-bookings-table th {
    text-align: left;
    font-weight: 600;
    padding: 0.35rem 0.75rem 0.35rem 0;
    border-bottom: 2px solid var(--site-primary, #0b5cad);
}

.site-bookings-table td {
    padding: calc(0.4rem * var(--site-space, 1)) 0.75rem calc(0.4rem * var(--site-space, 1)) 0;
    border-bottom: 1px solid color-mix(in srgb, var(--site-text, #1f2328) 12%, transparent);
    vertical-align: top;
}

.site-bookings-rooms {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    gap: 1rem;
}

.site-bookings-rooms li {
    padding: calc(1rem * var(--site-space, 1));
    border-radius: var(--site-radius, 0.5rem);
    background: var(--site-surface, #ebf2f8);
    border-left: 0.35rem solid var(--site-primary, #0b5cad);
}

.site-bookings-rooms li.busy {
    border-left-color: var(--site-accent, #0b5cad);
}

.site-bookings-rooms h3 {
    margin: 0 0 0.25rem;
}

.site-bookings-status {
    margin: 0;
    font-weight: 600;
}

.site-bookings-now,
.site-bookings-next {
    margin: 0.25rem 0 0;
}

.site-bookings-week {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
    gap: 0 1rem;
}

.site-bookings-week .site-bookings-list li {
    flex-direction: column;
    gap: 0.1rem;
}

.site-bookings-week .site-bookings-time {
    flex: none;
    font-size: 0.9rem;
}

/* The room chooser (buttons use .site-filter) and the week look's week arrows. */
.site-bookings-room-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

.site-bookings-room-form select {
    font: inherit;
    padding: 0.35rem 0.6rem;
    border-radius: var(--site-radius-small, 0.35rem);
    border: 1px solid color-mix(in srgb, var(--site-text, #1f2328) 30%, transparent);
    background: var(--site-background, #ffffff);
    color: var(--site-text, #1f2328);
    max-width: 100%;
}

.site-bookings-weeknav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0 0;
}

.site-bookings-weeknav strong {
    text-align: center;
}

.site-bookings-weeknav a[rel="next"] {
    justify-self: end;
}

.site-bookings-weeknav a {
    text-decoration: none;
    white-space: nowrap;
}

/* Restaurant menus (ADR-0119): the dish lines of the menu card, two columns or cards, in the theme's colours. */
.site-restaurant-menu h3 {
    margin: calc(1.5rem * var(--site-space, 1)) 0 0.5rem;
    color: var(--site-primary, #0b5cad);
}

.site-restaurant-menu.twocolumns .site-restaurant-menu-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: 0 2.5rem;
}

.site-restaurant-menu .site-dishes > li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.site-restaurant-menu .site-dishes .site-restaurant-menu-picture {
    flex: 0 0 4.5rem;
    width: 4.5rem;
    height: 4.5rem;
    object-fit: cover;
    border-radius: var(--site-radius-small, 0.35rem);
}

.site-restaurant-menu-body {
    flex: 1;
    min-width: 0;
}

.site-restaurant-menu-cards {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
    gap: 1rem;
}

.site-restaurant-menu-cards > li {
    border-radius: var(--site-radius, 0.5rem);
    background: var(--site-surface, #ebf2f8);
    overflow: hidden;
}

.site-restaurant-menu-cards .site-restaurant-menu-picture {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.site-restaurant-menu-cards .site-restaurant-menu-body {
    padding: calc(0.75rem * var(--site-space, 1));
}

.site-restaurant-menu li.sold-out .site-dish-name,
.site-restaurant-menu li.sold-out .site-dish-price {
    text-decoration: line-through;
    opacity: 0.6;
}

.site-restaurant-menu-soldout {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--site-accent, #0b5cad);
}

.site-restaurant-menu-label,
.site-restaurant-menu-sep {
    font-weight: 400;
}

.site-allergens {
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
    color: color-mix(in srgb, var(--site-text, #1f2328) 70%, transparent);
}

.site-allergens::before {
    content: "(";
}

.site-allergens::after {
    content: ")";
}

.site-allergen-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
    font-size: 0.8rem;
    margin: 1rem 0 0.25rem;
}

.site-restaurant-menu-note {
    font-size: 0.85rem;
    color: color-mix(in srgb, var(--site-text, #1f2328) 75%, transparent);
    margin: 0.25rem 0;
}
