@layer site {
    .albums-grid {
        display: flex;
        flex-direction: column;
        gap: 4rem;
    }

    .promo-section {
        background-color: var(--color-primary-light);
        border-radius: 8px;
        padding-bottom: 4rem;
        position: relative;
        overflow: visible;
    }

    .album-card {
        background: var(--color-white);
        border-radius: 8px;
        padding: 2rem;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
        display: flex;
        flex-direction: column;
        gap: 2rem;
        color: var(--color-text);
    }

    .album-cover-wrapper {
        position: relative;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        container-type: inline-size;
    }

    .album-cover-wrapper > .image {
        margin: 0;
    }

    .album-cover-wrapper > .image img {
        display: block;
        width: 100%;
        height: auto;
        border-radius: 4px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    }

    .album-cover-zoom {
        position: absolute;
        inset: 0;
        z-index: 5;
        width: 100%;
        height: 100%;
        padding: 0;
        border: 0;
        border-radius: 4px;
        background: transparent;
        cursor: zoom-in;
    }

    .album-cover-wrapper:has(> .album-cover-zoom:hover) > .image img {
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    }

    @media (prefers-reduced-motion: no-preference) {
        html[data-motion='subtle'] .album-cover-wrapper > .image img {
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }

        html[data-motion='subtle'] .album-cover-wrapper:has(> .album-cover-zoom:hover) > .image img {
            transform: scale(1.02);
        }
    }

    /* Without a script the dialog cannot open, so the cover stays a plain picture. */
    @media (scripting: none) {
        .album-cover-zoom {
            display: none;
        }
    }

    .album-card .badge {
        background-color: var(--color-warning);
        color: var(--color-text);
        padding: 0.8cqi 2cqi;
        border-radius: 0.5cqi;
        font-size: 4cqi;
        font-weight: 700;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        white-space: nowrap;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        z-index: 10;
    }

    .badges-group {
        position: absolute;
        top: 3cqi;
        left: -12cqi;
        display: flex;
        flex-direction: column;
        gap: 4cqi;
        align-items: flex-start;
        z-index: 10;
        pointer-events: none;
    }

    .badges-group .badge:nth-child(odd) {
        transform: rotate(-6deg);
        margin-left: 2cqi;
    }

    .badges-group .badge:nth-child(even) {
        transform: rotate(5deg);
        margin-left: -1cqi;
    }

    .badges-group .badge:nth-child(3n) {
        transform: rotate(-3deg);
        margin-left: 1.5cqi;
    }

    .badges-group .badge:nth-child(3n+1) {
        transform: rotate(7deg);
    }

    .album-info {
        flex: 1;
    }

    .album-title {
        font-size: 2rem;
        color: var(--color-primary);
        margin: 0 0 0.2rem;
        line-height: 1.2;
    }

    .album-type {
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--color-text);
        margin: 0;
        text-transform: uppercase;
    }

    .album-year-inline {
        font-weight: 400;
        color: var(--color-text-muted);
        margin-left: 0.5rem;
    }

    .album-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 2rem;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .tracklist {
        list-style: none;
        column-count: 1;
        margin: 0 0 2rem;
        padding: 0;
    }

    .track-item {
        margin-bottom: 1.3rem;
        font-size: 0.95rem;
        break-inside: avoid;
        position: relative;
        display: flex;
        align-items: baseline;
        gap: 0.5rem;
    }

    .track-number {
        flex-shrink: 0;
        width: 25px;
        font-weight: 600;
        color: var(--color-text-faint);
        text-align: right;
    }

    .track-content {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }

    .track-header {
        line-height: 1.3;
    }

    .track-title {
        font-weight: 600;
        margin-right: 0.3rem;
    }

    .track-type {
        font-size: 0.85rem;
        color: var(--color-text-muted);
        font-style: italic;
    }

    .track-credits {
        font-size: 0.8rem;
        color: var(--color-text-muted);
        margin-top: 0.1rem;
        font-style: italic;
    }

    .track-time {
        font-size: 0.85rem;
        color: var(--color-text-muted);
        font-weight: 600;
        white-space: nowrap;
        align-self: flex-start;
        margin-top: 0.2rem;
    }

    @media (min-width: 480px) {
        .track-time {
            position: absolute;
            top: 0;
            right: 0;
            margin-top: 0;
            align-self: auto;
        }

        .track-content {
            padding-right: 3rem;
        }
    }

    @media (min-width: 1024px) {
        .album-card {
            flex-direction: row;
            align-items: flex-start;
            gap: 3rem;
        }

        .album-cover-wrapper {
            flex-shrink: 0;
            margin: 0;
            position: sticky;
            top: 2rem;
            align-self: flex-start;
            width: 280px;
        }
    }

    @media (max-width: 1024px) {
        .album-card .badge {
            font-size: 0.7rem;
            padding: 0.2rem 0.6rem;
        }
    }

    @media (min-width: 1280px) {
        .album-cover-wrapper {
            width: 300px;
        }

        .tracklist {
            column-count: 2;
            column-gap: 3rem;
        }
    }
}

@layer site {
    * {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }

    html {
        scroll-behavior: smooth;
        scroll-padding-top: 0;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    html::-webkit-scrollbar {
        display: none;
    }

    body {
        font-family: var(--font-main);
        font-size: 1rem;
        color: var(--color-text);
        line-height: 1.6;
        background-color: var(--color-bg);
        min-width: 320px;
    }

    /* The heading rule of the platform would reach every Nuxt heading; these are the browser's defaults Nuxt stood on,
       except that a word longer than the line breaks instead of widening a phone's page. */
    h1,
    h2,
    h3 {
        font-family: inherit;
        font-weight: bold;
        font-style: normal;
        letter-spacing: normal;
        text-transform: none;
        line-height: inherit;
        overflow-wrap: break-word;
        text-wrap: wrap;
    }

    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.5em;
    }

    h3 {
        font-size: 1.17em;
    }

    :lang(cs) :where(p, li, blockquote, dd) {
        hyphens: manual;
        text-wrap: wrap;
    }

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

    .section-container {
        padding: 4rem 2rem;
        max-width: var(--container-max-width);
        margin: 0 auto;
    }

    .section-title {
        font-family: var(--font-heading);
        font-size: 3.5rem;
        color: var(--color-primary);
        text-align: center;
        margin-bottom: 3rem;
        font-weight: 700;
        position: relative;
    }

    .section-title::after {
        content: '';
        display: block;
        width: 60px;
        height: 3px;
        background-color: var(--color-secondary);
        margin: 1rem auto 0;
    }

    .btn {
        display: inline-block;
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        font-weight: 600;
        text-align: center;
        text-decoration: none;
        border-radius: 4px;
        cursor: pointer;
        transition: all 0.2s ease;
        border: none;
        font-family: var(--font-ui);
        line-height: normal;
        margin: 1.5rem 0;
    }

    .btn:hover {
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    @media (prefers-reduced-motion: no-preference) {
        html[data-motion='subtle'] .btn:hover {
            transform: translateY(-2px);
        }
    }

    .btn-primary,
    .btn-submit {
        background-color: var(--color-secondary);
        color: var(--color-white);
    }

    .btn-primary:hover,
    .btn-submit:hover {
        background-color: var(--color-secondary-dark);
    }

    .btn-secondary {
        background-color: #f0f0f0;
        color: var(--color-text);
        border: 1px solid var(--color-border);
    }

    .btn-secondary:hover {
        background-color: #e0e0e0;
    }

    .btn-block {
        width: 100%;
        display: block;
    }

    .btn-blue {
        background-color: var(--color-primary);
        color: var(--color-white);
    }

    .btn-blue:hover {
        background-color: var(--color-primary-dark);
    }

    .form-group {
        margin-bottom: 1.2rem;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .input-wrapper {
        width: 100%;
    }

    @media (min-width: 640px) {
        .form-group {
            flex-direction: row;
            align-items: center;
            gap: 1rem;
        }

        .form-group > label {
            width: 30%;
            min-width: 120px;
            text-align: right;
            margin-bottom: 0;
        }

        .form-group .input-wrapper {
            flex: 1;
        }
    }

    label {
        font-weight: 600;
        color: var(--color-primary);
        font-size: 0.95rem;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    textarea,
    select {
        width: 100%;
        padding: 0.6rem 0.8rem;
        font-size: 1rem;
        font-family: var(--font-main);
        border: 1px solid var(--color-border);
        border-radius: 4px;
        transition: border-color 0.2s;
        height: 45px;
        background-color: var(--color-white);
    }

    textarea {
        min-height: 120px;
        resize: vertical;
    }

    input:focus,
    textarea:focus,
    select:focus {
        outline: none;
        border-color: var(--color-primary);
        box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 10%, transparent);
    }

    input:focus-visible,
    textarea:focus-visible,
    select:focus-visible {
        outline: 2px solid var(--color-primary);
        outline-offset: 1px;
    }

    .input-error {
        border-color: var(--color-error) !important;
    }

    .error-message {
        color: var(--color-error);
        font-size: 0.85rem;
        margin-top: 0.25rem;
    }

    .radio-group {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .radio-label {
        display: flex;
        align-items: flex-start;
        gap: 0.5rem;
        font-weight: 400;
        cursor: pointer;
        width: 100%;
    }

    .radio-label input[type="radio"] {
        width: auto;
        margin: 0;
        margin-top: 0.25rem;
        flex-shrink: 0;
    }

    .albums-grid {
        display: flex;
        flex-direction: column;
        gap: 4rem;
    }

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

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    /* Durations near zero instead of none, so elements still reach their final state and animationend still fires. */
    @media (prefers-reduced-motion: reduce) {
        html {
            scroll-behavior: auto;
        }

        *,
        *::before,
        *::after {
            animation-duration: 0.01ms !important;
            animation-delay: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
            transition-delay: 0s !important;
            scroll-behavior: auto !important;
        }

        /* A scroll-driven animation: a duration or delay in time would shift where along the scroll it flips. */
        .site-to-top-link {
            animation-duration: auto !important;
            animation-delay: 0s !important;
        }
    }

    @media (max-width: 1024px) {
        .section-container {
            padding: 2rem 1rem;
        }

        .section-title {
            font-size: 2rem;
            margin-bottom: 2rem;
        }

        .form-horizontal .form-group {
            flex-direction: column;
            align-items: stretch;
        }

        .form-horizontal label {
            width: 100%;
            text-align: left;
            margin-bottom: 0.25rem;
        }

        .error-message {
            margin-left: 0;
        }
    }

    /* The dialog fills the window like the old image modal: a click beside the image lands on it and closes it. */
    .image-modal {
        position: fixed;
        inset: 0;
        width: 100%;
        max-width: none;
        height: 100%;
        max-height: none;
        margin: 0;
        padding: 0;
        border: 0;
        background-color: rgba(0, 0, 0, 0.9);
        overflow: auto;
    }

    .image-modal[open] {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .image-modal::backdrop {
        background: transparent;
    }

    .image-modal-content {
        margin: auto;
        padding: 1rem;
    }

    /* A caption longer than the reserve of the sizes shrinks the picture, which object-fit keeps whole. */
    .image-modal-content .image {
        display: flex;
        flex-direction: column;
        align-items: center;
        max-height: calc(100vh - 2rem);
        max-height: calc(100dvh - 2rem);
        margin: 0;
    }

    .image-modal-content img {
        display: block;
        flex: 0 1 auto;
        width: auto;
        max-width: calc(100vw - 2rem);
        height: auto;
        min-height: 0;
        object-fit: contain;
        border-radius: 0;
    }

    .image-modal-content figcaption {
        flex: none;
        margin: 1rem auto;
        color: #cccccc;
        text-align: center;
    }

    .image-modal-close {
        position: fixed;
        top: 1rem;
        right: 1.5rem;
        width: 2rem;
        height: 2rem;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: rgb(0 0 0 / 60%);
        color: #f1f1f1;
        cursor: pointer;
        z-index: 1;
    }

    .image-modal-close svg {
        width: 1.25rem;
        height: 1.25rem;
    }

    @media (prefers-reduced-motion: no-preference) {
        html[data-motion='subtle'] .image-modal[open] {
            animation: fadeIn 0.3s;
        }
    }
}

/* layout.css sorts after this file, so a rule that ties with its .socials or with .contact-vcard a in contact.css has one more class. */
@layer site {
    body:has(.brand-layout) > .site-header,
    body:has(.brand-layout) > .site-footer {
        display: none;
    }

    main#content:has(> .brand-layout) {
        margin-left: 0;
        width: 100%;
        padding: 0;
    }

    .brand-layout {
        min-height: 100vh;
        background: var(--color-bg);
    }

    .social-label {
        font-family: var(--font-ui);
        font-weight: 600;
        font-size: clamp(0.6rem, calc(var(--social-size) * 0.4), 0.9rem);
        letter-spacing: 0.08em;
        line-height: 1.25;
        text-transform: uppercase;
        color: var(--color-text-muted);
        text-align: center;
    }

    .socials.socials--labelled {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: center;
        gap: clamp(0.5rem, 3vmin, 1.5rem);
    }

    .socials--labelled .social-label {
        display: none;
    }

    .socials.socials--large {
        --social-size: clamp(1.75rem, 8vw, 2.75rem);
    }

    .socials.socials--large.socials--row {
        gap: clamp(0.75rem, 4vw, 2.25rem);
    }

    /* 420px: the labelled grid (3.75 tiles tall, 135 px at the 2.25rem cap) still fits under the logo. */
    @media (min-height: 420px) {
        .socials.socials--large.socials--labelled {
            --social-columns: 3;
            --social-size: clamp(1.25rem, 6.6vw, 2.25rem);

            display: grid;
            grid-template-columns: repeat(var(--social-columns), minmax(0, 1fr));
            justify-items: center;
            align-items: start;
            gap: calc(var(--social-size) * 0.45) 0.25rem;
            width: 100%;
            max-width: 22rem;
            margin-inline: auto;
        }

        .socials--labelled a {
            width: 100%;
        }

        .socials--labelled .social-label {
            display: block;
        }
    }

    @media (min-height: 420px) and (min-width: 640px) {
        .socials.socials--large.socials--labelled {
            --social-columns: 6;
            --social-size: clamp(2rem, 4.5vmin, 3.5rem);

            max-width: 46rem;
        }
    }

    .vcard-page {
        min-height: 100vh;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        padding: 0;
        background: var(--color-bg);
    }

    .vcard {
        width: 100%;
        max-width: 460px;
        background: var(--color-bg);
        min-height: 100vh;
        box-shadow: 0 0 60px rgba(30, 46, 65, 0.12);
        display: flex;
        flex-direction: column;
    }

    .vcard-hero {
        background: linear-gradient(160deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
        padding: 2.75rem 1.75rem;
        text-align: center;
        position: relative;
    }

    .vcard-logo-link {
        display: block;
        width: 220px;
        max-width: 64%;
        margin: 0 auto;
        text-decoration: none;
        transition: transform 0.2s ease;
    }

    @media (prefers-reduced-motion: no-preference) {
        html[data-motion='subtle'] .vcard-logo-link:hover {
            transform: scale(1.03);
        }
    }

    .vcard-logo svg {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 800 / 290;
    }

    /* Nuxt masked the logo in white: every drawn fill and stroke of the subtitle logo takes the colour. */
    .vcard-logo svg [fill]:not([fill='none']) {
        fill: var(--color-white);
    }

    .vcard-logo svg [stroke]:not([stroke='none']) {
        stroke: var(--color-white);
    }

    .vcard-body {
        padding: 2.25rem 1.75rem 2rem;
        text-align: left;
    }

    .vcard-role {
        font-family: var(--font-ui);
        font-weight: 500;
        letter-spacing: 0.26em;
        text-transform: uppercase;
        color: var(--color-secondary);
        font-size: 0.78rem;
        margin: 0;
        padding-left: 0.26em;
    }

    .vcard-name {
        font-family: var(--font-heading);
        font-weight: 600;
        font-size: 2.5rem;
        color: var(--color-primary);
        line-height: 1.05;
        margin: 0.4rem 0 0;
    }

    .vcard-accent {
        display: block;
        width: 56px;
        height: 3px;
        background: var(--color-secondary);
        border-radius: 2px;
        margin: 1rem 0 1.75rem;
    }

    .vcard-rows {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .vcard-row {
        display: flex;
        align-items: center;
        gap: 1.1rem;
        padding: 0.65rem 0;
        color: var(--color-primary);
        font-family: var(--font-main);
        font-size: 1.05rem;
        transition: color 0.2s ease;
    }

    .vcard-row a {
        color: inherit;
        text-decoration: none;
    }

    .vcard-row:hover {
        color: var(--color-secondary);
    }

    .vcard-row-ic {
        width: 1.5rem;
        flex: 0 0 1.5rem;
        text-align: center;
        color: var(--color-primary);
        font-size: 1.15rem;
        transition: color 0.2s ease;
    }

    .vcard-row-ic svg {
        width: 1em;
        height: 1em;
        vertical-align: -0.125em;
    }

    .vcard-row:hover .vcard-row-ic {
        color: var(--color-secondary);
    }

    .vcard-row-value {
        font-weight: 400;
    }

    .vcard-body .contact-vcard {
        margin: 2rem 0 0;
        font-size: 1rem;
    }

    .contact-vcard a.vcard-save {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.625rem;
        margin: 0;
        padding: 1rem;
        font-size: 1rem;
        border-radius: 14px;
        box-shadow: 0 6px 18px rgba(42, 64, 89, 0.25);
        color: var(--color-white);
    }

    .contact-vcard a.vcard-save:hover {
        color: var(--color-white);
    }

    @media (prefers-reduced-motion: no-preference) {
        html[data-motion='subtle'] .contact-vcard a.vcard-save:hover {
            transform: scale(1.01);
        }
    }

    .vcard-save svg {
        width: 1.1rem;
        height: 1.1rem;
    }

    .vcard-social {
        margin: 2.25rem 0 0.5rem;
        text-align: center;
    }

    .vcard-social .socials.socials--large {
        --social-size: clamp(1.25rem, 6vw, 1.75rem);

        gap: clamp(0.5rem, 3vw, 1.25rem);
    }

    @media (min-width: 640px) {
        .vcard-page {
            padding: 3rem 1rem;
            align-items: center;
        }

        .vcard {
            min-height: auto;
            border-radius: 18px;
            overflow: hidden;
        }

        .vcard-hero {
            padding: 3rem 2rem;
        }
    }

    .qr-page {
        --qr-gap: clamp(1.5rem, 4vmin, 4rem);

        height: 100vh;
        height: 100dvh;
        display: flex;
        flex-direction: column;
        gap: var(--qr-gap);
        padding: var(--qr-gap) clamp(1rem, 3vmin, 3rem) clamp(1rem, 3vmin, 3rem);
        background: var(--color-bg);
        overflow: hidden;
    }

    .logo-area {
        flex: 1 1 auto;
        min-height: 0;
        display: grid;
        place-items: center;
        container-type: size;
    }

    /* 2.281 = the 800:290 canvas plus the 5.95% clear zone per side; 187px keeps the drawing at the 160 px brandbook
       minimum. max-height can't replace cqh: it clips height, not width. */
    .logo-link {
        width: 100%;
        width: max(187px, min(100%, 100cqh * 2.281));
        aspect-ratio: 2.281;
        display: block;
        text-decoration: none;
        transition: transform 0.2s ease;
    }

    @media (prefers-reduced-motion: no-preference) {
        html[data-motion='subtle'] .logo-link:hover {
            transform: scale(1.015);
        }
    }

    /* Own box: a padding in % resolves against the width of the parent, which on the link would be the whole area. */
    .logo-zone {
        display: block;
        height: 100%;
        padding: 5.95%;
    }

    .logo-zone svg {
        display: block;
        width: 100%;
        height: 100%;
    }

    .qr-socials {
        flex: 0 0 auto;
    }
}

@layer site {
    .brandbook {
        max-width: 880px;
        margin: 0 auto;
        padding: 4rem 2rem 6rem;
        font-family: var(--font-main);
        color: var(--color-text);
        line-height: 1.7;
    }

    .brandbook svg {
        display: block;
        width: 100%;
        height: auto;
    }

    .brandbook .label {
        font-family: var(--font-ui);
        font-size: 0.7rem;
        font-weight: 600;
        letter-spacing: 3px;
        text-transform: uppercase;
        color: var(--color-text-muted);
        margin-bottom: 1.25rem;
        padding-bottom: 0.625rem;
        border-bottom: 1px solid var(--color-border);
    }

    .brandbook > section {
        margin-bottom: 4.5rem;
        scroll-margin-top: 2rem;
    }

    .brandbook .section-intro {
        font-size: 0.95rem;
        color: var(--color-text-muted);
        margin-bottom: 2rem;
        max-width: 560px;
    }

    .brandbook code {
        font-family: monospace;
        font-size: 0.85em;
        background: var(--color-primary-light);
        padding: 0.1em 0.4em;
        border-radius: 3px;
        color: var(--color-text);
    }

    .brandbook .cover {
        margin-bottom: 4rem;
        padding: 4rem 0 3rem;
    }

    .brandbook .cover-title {
        font-family: var(--font-heading);
        font-size: clamp(3rem, 11vw, 5.5rem);
        font-weight: 300;
        line-height: 1;
        letter-spacing: -0.01em;
        color: var(--color-primary);
        margin: 0 0 2rem;
    }

    .brandbook .rule {
        width: 40px;
        height: 1px;
        background: var(--color-primary);
        margin: 1.25rem 0;
    }

    .brandbook .cover-desc {
        font-family: var(--font-main);
        font-size: 1rem;
        line-height: 1.85;
        color: var(--color-text);
        max-width: 520px;
    }

    .brandbook .cover-desc p {
        margin: 0;
    }

    .brandbook .meta {
        margin-top: 1.5rem;
        font-family: var(--font-ui);
        font-size: 0.65rem;
        letter-spacing: 2.5px;
        text-transform: uppercase;
        color: var(--color-text-muted);
    }

    .brandbook-outline ol {
        display: flex;
        flex-wrap: wrap;
        gap: 0.25rem 1.25rem;
        margin: -2rem 0 4rem;
        padding: 0;
        list-style: none;
    }

    .brandbook-outline a {
        font-family: var(--font-ui);
        font-size: 0.7rem;
        font-weight: 600;
        letter-spacing: 2px;
        text-transform: uppercase;
        color: var(--color-text-muted);
        text-decoration: none;
        border-bottom: 1px solid transparent;
    }

    .brandbook-outline a:hover,
    .brandbook-outline a[aria-current] {
        color: var(--color-primary);
        border-bottom-color: var(--color-primary);
    }

    /* Beside the 880 px column once the window leaves room for it; below, the outline is a row under the cover. */
    @media (min-width: 1280px) {
        .brandbook-outline {
            position: fixed;
            top: 8rem;
            left: calc(50% - 440px - 12rem);
            width: 10rem;
        }

        .brandbook-outline ol {
            flex-direction: column;
            margin: 0;
        }
    }

    .brandbook .logo-block {
        margin-bottom: 2rem;
    }

    .brandbook .logo-preview {
        max-width: 520px;
    }

    .brandbook .spec {
        margin: 0.875rem 0 0;
        display: grid;
        gap: 0.25rem 1.25rem;
        font-size: 0.85rem;
    }

    .brandbook .spec > div {
        display: grid;
        grid-template-columns: 8.5rem minmax(0, 1fr);
        gap: 0.75rem;
    }

    .brandbook .spec dt {
        font-family: var(--font-ui);
        font-size: 0.7rem;
        font-weight: 600;
        letter-spacing: 1px;
        text-transform: uppercase;
        color: var(--color-text-muted);
        align-self: baseline;
        padding-top: 0.2rem;
    }

    .brandbook .spec dd {
        margin: 0;
        color: var(--color-text);
    }

    .brandbook .font-note {
        margin-top: 1.25rem;
        font-size: 0.85rem;
        line-height: 1.65;
        color: var(--color-text-muted);
        max-width: 560px;
    }

    .brandbook .caption {
        font-family: var(--font-ui);
        font-size: 0.75rem;
        letter-spacing: 1px;
        color: var(--color-text-muted);
        margin-top: 0.75rem;
    }

    .brandbook .downloads {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 1.5rem;
        padding: 1rem 1.25rem;
        background: var(--color-primary-light);
        border-radius: 6px;
        position: relative;
    }

    .brandbook .downloads::before {
        content: attr(data-label);
        display: block;
        font-family: var(--font-ui);
        font-size: 0.65rem;
        font-weight: 700;
        letter-spacing: 2px;
        text-transform: uppercase;
        color: var(--color-primary);
        margin-bottom: 0.25rem;
    }

    .brandbook .downloads-row {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 0.4rem 0.875rem;
        font-family: monospace;
        font-size: 0.75rem;
    }

    .brandbook .downloads-label {
        flex: 0 0 2.5rem;
        font-family: var(--font-ui);
        font-size: 0.65rem;
        font-weight: 700;
        letter-spacing: 1.5px;
        color: var(--color-text-muted);
    }

    .brandbook .downloads a,
    .brandbook .favicon-name {
        color: var(--color-primary);
        text-decoration: none;
        border-bottom: 1px solid transparent;
        transition: border-color 0.15s ease;
    }

    .brandbook .downloads a:hover,
    .brandbook .favicon-name:hover {
        border-bottom-color: var(--color-primary);
    }

    .brandbook .color-logos {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        margin-top: 2rem;
    }

    .brandbook .color-logo-tile {
        border: 1px solid var(--color-border);
        border-radius: 6px;
        overflow: hidden;
    }

    .brandbook .color-logo-bg {
        padding: 2rem 1.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 140px;
    }

    .brandbook .color-logo-bg.dark {
        background: #111111;
    }

    .brandbook .color-logo-bg.light {
        background: var(--color-white);
    }

    .brandbook .color-logo-bg svg {
        max-width: 180px;
    }

    .brandbook .color-logo-label,
    .brandbook .merch-name {
        display: block;
        font-family: var(--font-ui);
        font-size: 0.75rem;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        color: var(--color-text-muted);
        padding: 0.75rem 1rem;
        border-top: 1px solid var(--color-border);
    }

    .brandbook .color-group {
        margin-bottom: 2rem;
    }

    .brandbook .group-title {
        font-family: var(--font-ui);
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 2.5px;
        text-transform: uppercase;
        color: var(--color-text);
        margin-bottom: 1rem;
    }

    .brandbook .color-swatches {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .brandbook .swatch {
        border: 1px solid var(--color-border);
        border-radius: 6px;
        overflow: hidden;
        background: var(--color-white);
    }

    .brandbook .swatch-block {
        height: 90px;
        border-bottom: 1px solid var(--color-border);
    }

    .brandbook .swatch-block--primary { background: var(--color-primary); }
    .brandbook .swatch-block--primary-dark { background: var(--color-primary-dark); }
    .brandbook .swatch-block--primary-light { background: var(--color-primary-light); }
    .brandbook .swatch-block--secondary { background: var(--color-secondary); }
    .brandbook .swatch-block--secondary-dark { background: var(--color-secondary-dark); }
    .brandbook .swatch-block--background { background: var(--color-bg); }
    .brandbook .swatch-block--white { background: var(--color-white); }
    .brandbook .swatch-block--border { background: var(--color-border); }
    .brandbook .swatch-block--text { background: var(--color-text); }
    .brandbook .swatch-block--text-muted { background: var(--color-text-muted); }

    .brandbook .swatch-info {
        padding: 0.75rem 1rem 0.875rem;
    }

    .brandbook .swatch-name {
        font-family: var(--font-main);
        font-size: 0.95rem;
        font-weight: 700;
        color: var(--color-text);
        margin-bottom: 0.2rem;
    }

    .brandbook .swatch-hex {
        font-family: monospace;
        font-size: 0.75rem;
        letter-spacing: 0.5px;
        color: var(--color-text-muted);
        text-transform: uppercase;
    }

    .brandbook .swatch-var {
        display: block;
        margin-top: 0.4rem;
        background: transparent;
        padding: 0;
        font-size: 0.7rem;
        color: var(--color-text-muted);
        opacity: 0.7;
    }

    .brandbook .favicon-list {
        display: flex;
        align-items: flex-end;
        gap: 1.75rem;
        flex-wrap: wrap;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .brandbook .favicon-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .brandbook .favicon-size {
        font-family: var(--font-ui);
        font-size: 0.7rem;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        color: var(--color-text-muted);
    }

    .brandbook .favicon-name {
        font-family: monospace;
        font-size: 0.7rem;
    }

    .brandbook .font-block {
        border: 1px solid var(--color-border);
        border-radius: 6px;
        padding: 1.75rem 2rem;
        margin-bottom: 1.5rem;
    }

    .brandbook .font-role {
        font-family: var(--font-ui);
        font-size: 0.7rem;
        font-weight: 700;
        letter-spacing: 2.5px;
        text-transform: uppercase;
        color: var(--color-secondary);
        margin-bottom: 0.75rem;
    }

    .brandbook .font-name {
        font-size: 3rem;
        line-height: 1.1;
        color: var(--color-text);
        margin-bottom: 0.5rem;
    }

    .brandbook .font-var {
        font-size: 0.75rem;
        color: var(--color-text-muted);
    }

    .brandbook .font-sample {
        margin: 1.5rem 0 1.25rem;
        font-size: 1.05rem;
        line-height: 1.7;
        color: var(--color-text);
    }

    .brandbook .weights {
        display: flex;
        gap: 1.5rem;
        flex-wrap: wrap;
        padding-top: 1rem;
        border-top: 1px solid var(--color-border);
        font-size: 0.95rem;
        color: var(--color-text);
    }

    .brandbook .font-block--heading :is(.font-name, .font-sample, .weights) { font-family: var(--font-heading); }
    .brandbook .font-block--main :is(.font-name, .font-sample, .weights) { font-family: var(--font-main); }
    .brandbook .font-block--ui :is(.font-name, .font-sample, .weights) { font-family: var(--font-ui); }
    .brandbook .font-block--heading .font-name { font-weight: 300; font-style: italic; }
    .brandbook .font-block--main .font-name { font-weight: 600; font-style: italic; }
    .brandbook .font-block--ui .font-name { font-weight: 300; letter-spacing: 4px; text-transform: uppercase; }
    .brandbook .font-block .font-sample { font-weight: 400; }
    .brandbook .font-block--ui .font-sample { font-weight: 500; letter-spacing: 3px; text-transform: uppercase; font-size: 0.9rem; }
    .brandbook .weight-300 { font-weight: 300; }
    .brandbook .weight-400 { font-weight: 400; }
    .brandbook .weight-500 { font-weight: 500; }
    .brandbook .weight-600 { font-weight: 600; }
    .brandbook .weight-700 { font-weight: 700; }
    .brandbook .weights .italic { font-style: italic; }
    .brandbook .weights .caps { letter-spacing: 2px; text-transform: uppercase; }

    .brandbook .button-row {
        display: flex;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .brandbook .qr-variants {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .brandbook .qr-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.625rem;
    }

    .brandbook .chip {
        font-family: var(--font-ui);
        font-size: 0.65rem;
        font-weight: 600;
        letter-spacing: 2px;
        text-transform: uppercase;
        color: var(--color-text-muted);
        text-align: center;
    }

    .brandbook .qr-frame {
        border-radius: 12px;
        padding: 10px;
        width: 100%;
        box-sizing: border-box;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    }

    .brandbook .qr-frame--light {
        background: var(--color-white);
        border: 1px solid var(--color-border);
    }

    .brandbook .qr-frame--dark {
        background: var(--color-primary);
    }

    .brandbook .qr-frame svg {
        border-radius: 4px;
    }

    .brandbook .rule-figure {
        border: 1px solid var(--color-border);
        border-radius: 6px;
        background: var(--color-white);
        padding: 1.25rem;
        margin-bottom: 2.5rem;
    }

    .brandbook .size-floor {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 1.5rem;
        align-items: center;
        margin-bottom: 2.5rem;
    }

    .brandbook .size-sample {
        border: 1px solid var(--color-border);
        border-radius: 6px;
        background: var(--color-white);
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .brandbook .size-samples {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .brandbook .size-sample-logo,
    .brandbook .size-sample-lockup {
        display: block;
        width: 160px;
    }

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

    .brandbook .size-table th,
    .brandbook .size-table td {
        text-align: left;
        padding: 0.625rem 0.75rem;
        border-bottom: 1px solid var(--color-border);
    }

    .brandbook .size-table th {
        font-family: var(--font-main);
        font-weight: 600;
    }

    .brandbook .size-table thead th {
        font-family: var(--font-ui);
        font-size: 0.68rem;
        font-weight: 600;
        letter-spacing: 1px;
        text-transform: uppercase;
        color: var(--color-text-muted);
    }

    .brandbook .size-group th {
        font-family: var(--font-ui);
        font-size: 0.68rem;
        font-weight: 700;
        letter-spacing: 1px;
        text-transform: uppercase;
        color: var(--color-primary);
        padding-top: 1.125rem;
        border-bottom-color: var(--color-primary-light);
    }

    .brandbook .size-table tbody:first-of-type .size-group th {
        padding-top: 0.625rem;
    }

    .brandbook .size-value {
        font-family: var(--font-ui);
        font-weight: 600;
        white-space: nowrap;
    }

    .brandbook .size-why {
        color: var(--color-text-muted);
        font-size: 0.8rem;
    }

    .brandbook .misuse-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }

    .brandbook .misuse-frame {
        position: relative;
        border: 1px solid var(--color-border);
        border-radius: 6px;
        background: var(--color-white);
        /* Fits the stretched tile at twice its proper height. */
        height: 120px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1rem;
        overflow: hidden;
    }

    .brandbook .misuse-frame svg {
        width: min(130px, 100%);
    }

    .brandbook .misuse-frame--stretch svg { transform: scaleY(2); }
    /* Skew adds tan(angle) × 130 px of height; past 21° it spills out of the 86 px usable frame. */
    .brandbook .misuse-frame--skew svg { transform: skewY(-20deg); }
    .brandbook .misuse-frame--recolor svg { filter: hue-rotate(115deg) saturate(2.4); }
    .brandbook .misuse-frame--contrast { background: #3d5674; }
    .brandbook .misuse-frame--shadow svg { filter: drop-shadow(3px 4px 2px rgba(0, 0, 0, 0.55)); }

    .brandbook .misuse-frame--busy {
        background: repeating-linear-gradient(45deg, #c9a227 0 12px, #a23b3b 12px 24px);
    }

    .brandbook .misuse-frame::after {
        content: '✕';
        position: absolute;
        top: 0.375rem;
        right: 0.375rem;
        width: 1.15rem;
        height: 1.15rem;
        border-radius: 50%;
        background: var(--color-white);
        display: flex;
        align-items: center;
        justify-content: center;
        font-family: var(--font-ui);
        font-size: 0.72rem;
        font-weight: 700;
        line-height: 1;
        color: var(--color-secondary);
    }

    .brandbook .misuse-label {
        font-family: var(--font-ui);
        font-size: 0.75rem;
        font-weight: 600;
        letter-spacing: 1px;
        text-transform: uppercase;
        color: var(--color-text);
        margin-top: 0.625rem;
    }

    .brandbook .misuse-note {
        font-size: 0.8rem;
        color: var(--color-text-muted);
        line-height: 1.5;
        margin-top: 0.125rem;
    }

    .brandbook .email-parts {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .brandbook .email-part {
        display: flex;
        flex-direction: column;
        gap: 0.625rem;
    }

    .brandbook .email-frame {
        border-radius: 8px;
        padding: 2rem 1.5rem;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1.25rem;
    }

    /* Mirrors the mail template: header bar in the dark primary, footer on white. */
    .brandbook .email-frame--dark { background: var(--color-primary-dark); }

    .brandbook .email-frame--light {
        background: var(--color-white);
        border: 1px solid var(--color-border);
    }

    .brandbook .email-logo {
        display: block;
        width: 100%;
        max-width: 220px;
    }

    .brandbook .email-logo--footer { max-width: 160px; }

    .brandbook .og-block {
        margin-top: 2.5rem;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.625rem;
    }

    .brandbook .og-block .caption { margin-top: 0; }

    .brandbook .merch-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .brandbook .merch-card {
        border: 1px solid var(--color-border);
        border-radius: 6px;
        overflow: hidden;
    }

    .brandbook .merch-name {
        border-top: 0;
    }

    .brandbook-modal {
        position: fixed;
        inset: 0;
        width: 100%;
        max-width: none;
        height: 100%;
        max-height: none;
        margin: 0;
        padding: 2rem 1rem;
        border: 0;
        background-color: rgba(0, 0, 0, 0.85);
    }

    .brandbook-modal[open] {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .brandbook-modal::backdrop {
        background: transparent;
    }

    .brandbook-modal-body {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.25rem;
        width: 90%;
        max-width: 720px;
    }

    .brandbook-modal-close {
        position: absolute;
        top: 1rem;
        right: 1.5rem;
        width: 2.5rem;
        height: 2.5rem;
        padding: 0.5rem;
        border: 0;
        background: transparent;
        color: #ffffff;
        cursor: pointer;
    }

    .brandbook-modal-close svg {
        width: 100%;
        height: 100%;
        fill: currentColor;
    }

    .brandbook-modal-preview {
        background: var(--color-white);
        border-radius: 8px;
        padding: 2rem 2.5rem;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        width: 100%;
        box-sizing: border-box;
    }

    .brandbook-modal-preview--dark {
        background: #111111;
    }

    .brandbook-modal-preview svg {
        display: block;
        width: 100%;
        height: auto;
        max-height: 60vh;
    }

    .brandbook-modal-name {
        margin: 0;
        font-family: monospace;
        font-size: 0.85rem;
        color: #dddddd;
    }

    .brandbook-modal-download {
        padding: 0.6rem 1.5rem;
        border-radius: 999px;
        background: var(--color-white);
        color: #111111;
        font-weight: 600;
        text-decoration: none;
    }

    .brandbook-modal-download:hover,
    .brandbook-modal-download:focus-visible {
        background: #dddddd;
    }

    @media (max-width: 1024px) {
        .brandbook { padding: 2.5rem 1.25rem 4rem; }

        .brandbook .color-swatches,
        .brandbook .color-logos,
        .brandbook .qr-variants,
        .brandbook .merch-grid,
        .brandbook .misuse-grid { grid-template-columns: repeat(2, 1fr); }

        .brandbook .email-parts,
        .brandbook .size-floor { grid-template-columns: 1fr; }
    }

    @media (max-width: 640px) {
        .brandbook .color-swatches,
        .brandbook .color-logos,
        .brandbook .qr-variants,
        .brandbook .merch-grid { grid-template-columns: 1fr; }

        .brandbook .qr-card,
        .brandbook .merch-card {
            max-width: 320px;
            width: 100%;
            margin-inline: auto;
        }

        .brandbook .font-name { font-size: 2.25rem; }
        .brandbook .font-block { padding: 1.25rem; }
    }

    .brandbook .favicon-item .image,
    .brandbook .email-social .image,
    .brandbook .og-frame .image {
        margin: 0;
    }

    .brandbook .favicon-item img {
        display: block;
        width: 64px;
        height: 64px;
        border: 1px solid var(--color-border);
        border-radius: 4px;
        background: var(--color-white);
        image-rendering: pixelated;
    }

    .brandbook .email-social {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem 0.875rem;
    }

    .brandbook .email-social img {
        display: block;
        width: 28px;
        height: 28px;
    }

    .brandbook .og-frame {
        width: 100%;
        max-width: 520px;
        border: 1px solid var(--color-border);
        border-radius: 8px;
        overflow: hidden;
        background: var(--color-white);
    }

    .brandbook .og-frame img {
        display: block;
        width: 100%;
        height: auto;
    }
}

@layer site {
    .block:has(> .contact-section),
    .entry-contact-row > .block-communication-inquiry_form {
        margin: 0;
    }

    .entry-contact-row > .block-cms-contacts .contact-section {
        padding-bottom: 0;
    }

    .people-contacts.card,
    .block-communication-inquiry_form {
        background: var(--color-white);
        padding: 2rem;
        border: 0;
        border-radius: 8px;
        box-shadow: 0 4px 6px rgb(0 0 0 / 5%);
        color: var(--color-text);
    }

    .people-contacts {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .people-list {
        display: flex;
        flex-direction: column;
        gap: 2.5rem;
    }

    .person-contact {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        color: var(--color-primary);
        font-size: 1rem;
        line-height: 1.6;
    }

    .person-role {
        font-family: var(--font-heading);
        font-size: 2rem;
        color: var(--color-primary);
        font-weight: 700;
        margin: 0 0 0.25rem;
    }

    .person-note {
        color: var(--color-text-muted);
    }

    .person-name,
    .shared-email-label {
        font-weight: 600;
        font-size: 1.1rem;
    }

    .person-link,
    .shared-email-link {
        display: inline-flex;
        align-items: center;
        gap: 0.6rem;
        width: fit-content;
    }

    .person-link a,
    .shared-email-link a,
    .contact-vcard a {
        color: inherit;
        text-decoration: none;
        transition: color 0.2s;
    }

    .person-link a:hover,
    .shared-email-link a:hover,
    .contact-vcard a:hover {
        color: var(--color-secondary);
    }

    .contact-vcard {
        font-size: 0.9rem;
    }

    .person-link svg,
    .shared-email-link svg {
        width: 1em;
        height: 1em;
        opacity: 0.75;
    }

    .shared-email {
        display: flex;
        flex-direction: column;
        gap: 0.4rem;
        padding-top: 2rem;
        border-top: 1px solid var(--color-border);
        color: var(--color-primary);
    }

    .block-communication-inquiry_form > .block-title {
        font-family: var(--font-heading);
        font-size: 2rem;
        line-height: 1.6;
        color: var(--color-primary);
        text-align: left;
        margin: 0 0 1.5rem;
        font-weight: 700;
    }

    .contact-form {
        width: 100%;
    }

    .contact-form .field {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        max-width: none;
        margin: 0 0 1.2rem;
    }

    .contact-form .field > label {
        display: block;
        width: auto;
        margin: 0;
        text-align: left;
    }

    .contact-form label {
        font-family: var(--font-main);
    }

    .contact-form label.required::after {
        content: ' *';
    }

    .contact-form input[type='datetime-local'] {
        width: 100%;
        height: 45px;
        padding: 0.6rem 0.8rem;
        font-size: 1rem;
        font-family: var(--font-main);
        border: 1px solid var(--color-border);
        border-radius: 4px;
        background-color: var(--color-white);
        color: var(--color-text);
    }

    .contact-form textarea {
        display: block;
        width: 100%;
    }

    .contact-form .field-errors {
        color: var(--color-error);
        font-size: 0.85rem;
        margin: 0.25rem 0 0;
    }

    .contact-form .field-invalid input,
    .contact-form .field-invalid textarea {
        border-color: var(--color-error);
    }

    /* The legend and the label of the kinds name the island's controls for a reader; Nuxt shows only the switch. */
    .contact-form [data-inquiry-kinds]:has(> div > input[type='radio']:nth-of-type(2):last-of-type) > label,
    .contact-form .inquiry-part > legend {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .contact-form [data-inquiry-kinds] {
        margin: 0.5rem 0 1.5rem;
    }

    /* Two kinds drawn as the switch of Nuxt: the label of the kind not chosen lies on top, so a click anywhere flips it. */
    .contact-form [data-inquiry-kinds]:has(> div > input[type='radio']:nth-of-type(2):last-of-type) > div {
        position: relative;
        display: grid;
        grid-template-columns: 44px 1fr;
        align-items: center;
        min-height: 24px;
    }

    .contact-form [data-inquiry-kinds]:has(> div > input[type='radio']:nth-of-type(2):last-of-type) > div > input[type='radio'] {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: 0;
        opacity: 0;
    }

    .contact-form [data-inquiry-kinds]:has(> div > input[type='radio']:nth-of-type(2):last-of-type) > div > input[type='radio'] + label {
        grid-row: 1;
        margin: 0;
        cursor: pointer;
        line-height: 1.3;
    }

    .contact-form [data-inquiry-kinds]:has(> div > input[type='radio']:nth-of-type(2):last-of-type) > div > input[value=''] + label {
        grid-column: 1;
        align-self: stretch;
        overflow: hidden;
        color: transparent;
        white-space: nowrap;
    }

    .contact-form [data-inquiry-kinds]:has(> div > input[type='radio']:nth-of-type(2):last-of-type) > div > input[value='']:not(:checked) + label {
        grid-column: 1 / -1;
        z-index: 2;
    }

    .contact-form [data-inquiry-kinds]:has(> div > input[type='radio']:nth-of-type(2):last-of-type) > div > input:not([value='']) + label {
        position: relative;
        z-index: 1;
        grid-column: 1 / -1;
        padding-left: calc(44px + 0.75rem);
    }

    .contact-form [data-inquiry-kinds]:has(> div > input[type='radio']:nth-of-type(2):last-of-type) > div > input:not([value='']) + label::before,
    .contact-form [data-inquiry-kinds]:has(> div > input[type='radio']:nth-of-type(2):last-of-type) > div > input:not([value='']) + label::after {
        content: '';
        position: absolute;
        top: 50%;
        transition: 0.4s;
    }

    .contact-form [data-inquiry-kinds]:has(> div > input[type='radio']:nth-of-type(2):last-of-type) > div > input:not([value='']) + label::before {
        left: 0;
        width: 44px;
        height: 24px;
        margin-top: -12px;
        border-radius: 24px;
        background-color: var(--color-border);
    }

    .contact-form [data-inquiry-kinds]:has(> div > input[type='radio']:nth-of-type(2):last-of-type) > div > input:not([value='']) + label::after {
        left: 3px;
        width: 18px;
        height: 18px;
        margin-top: -9px;
        border-radius: 50%;
        background-color: var(--color-white);
    }

    .contact-form [data-inquiry-kinds]:has(> div > input[type='radio']:nth-of-type(2):last-of-type) > div > input:not([value='']):checked + label::before {
        background-color: var(--color-primary);
    }

    .contact-form [data-inquiry-kinds]:has(> div > input[type='radio']:nth-of-type(2):last-of-type) > div > input:not([value='']):checked + label::after {
        transform: translateX(20px);
    }

    .contact-form [data-inquiry-kinds]:has(> div > input[type='radio']:nth-of-type(2):last-of-type) > div:has(> input:focus-visible) > input:not([value='']) + label::before {
        outline: 2px solid var(--color-primary);
        outline-offset: 2px;
    }

    .contact-form .inquiry-part {
        margin: 1.5rem -1.5rem 2.5rem;
        padding: 1.5rem;
        border: 1px solid var(--color-border);
        border-radius: 8px;
        background-color: var(--color-primary-light);
    }

    .contact-form .event-dates {
        column-gap: 1rem;
    }

    .contact-form .place-suggestions {
        top: calc(100% + 4px);
        z-index: 20;
        padding: 0.25rem 0;
        border: 1px solid var(--color-border);
        border-radius: 4px;
        background: var(--color-white);
        color: var(--color-text);
        box-shadow: 0 6px 16px rgb(0 0 0 / 12%);
    }

    .contact-form .place-suggestion {
        padding: 0.5rem 0.8rem;
    }

    .contact-form .place-suggestion[aria-selected='true'],
    .contact-form .place-suggestion:hover {
        background-color: var(--color-primary-light);
    }

    .contact-form .place-detail,
    .contact-form .place-attribution {
        margin: 0.25rem 0 0;
        font-size: 0.8rem;
        color: var(--color-text-muted);
    }

    .contact-form .block-actions {
        justify-content: flex-end;
        margin: 0;
    }

    .contact-form .block-actions .button {
        margin: 1rem 0 1.5rem;
        padding: 0.75rem 1.5rem;
        border: none;
        border-radius: 4px;
        background-color: var(--color-primary);
        color: var(--color-white);
        font-family: var(--font-ui);
        font-size: 1rem;
        font-weight: 600;
        line-height: normal;
        transition: all 0.2s ease;
    }

    .contact-form .block-actions .button:hover {
        box-shadow: 0 4px 6px rgb(0 0 0 / 10%);
    }

    @media (prefers-reduced-motion: no-preference) {
        html[data-motion='subtle'] .contact-form .block-actions .button:hover {
            transform: translateY(-2px);
        }
    }

    .contact-form .contact-privacy {
        margin: 0;
        font-size: 0.85rem;
        color: var(--color-text-muted);
    }

    .contact-form .contact-privacy a {
        color: inherit;
    }

    @media (max-width: 1024px) {
        .entry-contact-row > .block-communication-inquiry_form {
            margin: 2rem 1rem;
        }
    }

    /* The title leaves the flow to stand above both cards, which keep its height free: one line of 3.5rem at line-height 1.6, its 1rem + 3px rule and 3rem below. */
    /* .entry outranks the column rules of .entry-layout-plain, which the home page also carries. */
    @media (min-width: 1025px) {
        .entry.entry-contact-row {
            --contact-gutter: max(2rem, (100% - var(--container-max-width)) / 2 + 2rem);
            --contact-title-space: calc(3.5rem * 1.6 + 1rem + 3px + 3rem);
            position: relative;
            display: grid;
            grid-template-columns: [full-start] var(--contact-gutter) [content-start] minmax(260px, 1fr) 2rem minmax(0, 2fr) [content-end] var(--contact-gutter) [full-end];
            align-content: start;
        }

        .entry.entry-contact-row > * {
            grid-column: 1 / -1;
        }

        .entry.entry-contact-row > .block-cms-contacts {
            grid-column: 2;
            display: flex;
            flex-direction: column;
            container-type: normal;
        }

        .entry.entry-contact-row > .block-cms-contacts .contact-section {
            display: flex;
            flex: 1;
            flex-direction: column;
            max-width: none;
            margin: 0;
            padding: 4rem 0;
        }

        .entry.entry-contact-row > .block-cms-contacts .people-contacts {
            flex: 1;
        }

        .entry.entry-contact-row > .block-cms-contacts .section-title {
            position: absolute;
            line-height: 1.6;
            left: var(--contact-gutter);
            right: var(--contact-gutter);
        }

        .entry.entry-contact-row > .block-cms-contacts .section-title + .people-contacts {
            margin-top: var(--contact-title-space);
        }

        .entry.entry-contact-row > .block-communication-inquiry_form {
            grid-column: 4;
            margin: 4rem 0;
        }

        .entry.entry-contact-row:has(> .block-cms-contacts > .contact-section > .section-title) > .block-communication-inquiry_form {
            margin-top: calc(4rem + var(--contact-title-space));
        }
    }
}

@layer site {
    .block:has(> .hero-section),
    .block:has(> .events-section) {
        margin: 0;
    }

    .hero-section {
        position: relative;
        height: 100vh;
        min-height: 500px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        background: var(--color-primary-dark);
    }

    .hero-slides {
        position: absolute;
        inset: 0;
    }

    /* The carousel hides the inactive slides with [hidden]; they stay laid out so the opacity can fade. */
    .hero-slide,
    .hero-slide[hidden] {
        position: absolute;
        inset: 0;
        display: block;
        opacity: 0;
        visibility: hidden;
    }

    .hero-slide.is-active,
    .hero-slides:has(> .hero-slide[hidden]) > .hero-slide:not([hidden]) {
        opacity: 1;
        visibility: visible;
    }

    .hero-slides:has(> .hero-slide[hidden]) > .hero-slide.is-active[hidden] {
        opacity: 0;
        visibility: hidden;
    }

    .hero-slide .image,
    .hero-slide .image-picture,
    .hero-slide img {
        display: block;
        width: 100%;
        height: 100%;
        margin: 0;
        border-radius: 0;
        object-fit: cover;
    }

    .hero-slide figcaption {
        position: absolute;
        bottom: 0.5rem;
        right: 1rem;
        margin: 0;
        font-size: 0.75rem;
        color: var(--color-white);
        opacity: 0.6;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    }

    .hero-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom, transparent 70%, rgba(0, 0, 0, 0.8) 100%);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 4rem 2rem 6rem;
        color: var(--color-white);
        text-align: center;
        pointer-events: none;
    }

    .hero-overlay a,
    .hero-overlay button {
        pointer-events: auto;
    }

    .hero-content {
        width: 100%;
        max-width: var(--container-max-width);
        margin-top: auto;
    }

    /* The cover variant of cms.hero veils .hero-content beyond the hero, which the theme draws one way in every variant. */
    .hero-section .hero-content::before {
        content: none;
    }

    .slogan {
        font-size: clamp(0.5rem, 2.5vw, 1.4rem);
        font-weight: 300;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
        line-height: 1.4;
    }

    .slogan-highlight {
        font-weight: 900;
        font-size: clamp(0.6rem, 3vw, 1.6rem);
        display: block;
        margin-bottom: 0;
    }

    /* Nuxt breaks the line after the quote with a <br> only when both texts exist, which leaves one empty line of the slogan font. */
    .slogan-highlight + .slogan-line {
        display: block;
        margin-top: 1lh;
    }

    .hero-controls {
        position: absolute;
        bottom: 2rem;
        right: 1rem;
        display: flex;
        align-items: center;
        gap: 0.6rem;
    }

    .hero-dots {
        display: flex;
        gap: 0.4rem;
    }

    .hero-playback {
        width: 22px;
        height: 22px;
        padding: 0;
        border: none;
        border-radius: 50%;
        background: transparent;
        color: var(--color-white);
        opacity: 0.65;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
        transition: opacity 0.3s, background-color 0.3s;
    }

    /* The carousel sets aria-pressed only when it runs its timer: without the script or with less motion there is nothing to pause. */
    .hero-playback:not([aria-pressed]) {
        display: none;
    }

    .hero-playback:hover,
    .hero-playback:focus-visible {
        opacity: 1;
        background-color: rgba(255, 255, 255, 0.12);
    }

    .hero-playback svg {
        display: block;
        width: 13px;
        height: 13px;
    }

    .hero-playback-play,
    .hero-playback[aria-pressed='true'] .hero-playback-pause {
        display: none;
    }

    .hero-playback[aria-pressed='true'] .hero-playback-play {
        display: block;
    }

    .hero-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        border: none;
        padding: 0;
        background: rgba(255, 255, 255, 0.35);
        cursor: pointer;
        position: relative;
        transition: background-color 0.3s;
    }

    .hero-dot:hover {
        background: rgba(255, 255, 255, 0.6);
    }

    .hero-dot[aria-selected='true'] {
        background: var(--color-white);
    }

    .hero-dot-fill {
        display: none;
    }

    @property --p {
        syntax: '<percentage>';
        inherits: false;
        initial-value: 0%;
    }

    @keyframes dot-fill {
        from { --p: 0%; }
        to { --p: 100%; }
    }

    @keyframes scroll-arrow-bounce {
        0%, 100% { transform: translate(-50%, 0); }
        50% { transform: translate(-50%, 8px); }
    }

    .hero-scroll-arrow {
        position: absolute;
        bottom: 1.5rem;
        left: 50%;
        transform: translateX(-50%);
        width: 44px;
        height: 44px;
        padding: 0;
        border: none;
        background: transparent;
        color: var(--color-white);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
        transition: opacity 0.3s, background-color 0.3s;
        opacity: 0.85;
    }

    .hero-scroll-arrow:hover,
    .hero-scroll-arrow:focus-visible {
        opacity: 1;
        background-color: rgba(255, 255, 255, 0.12);
        outline: none;
    }

    .hero-scroll-arrow svg {
        width: 28px;
        height: 28px;
    }

    @media (prefers-reduced-motion: no-preference) {
        html[data-motion='subtle'] .hero-slide {
            transition: opacity 1s ease-in-out, visibility 0s linear 1s;
            will-change: opacity;
        }

        html[data-motion='subtle'] .hero-slide.is-active,
        html[data-motion='subtle'] .hero-slides:has(> .hero-slide[hidden]) > .hero-slide:not([hidden]) {
            transition: opacity 1s ease-in-out, visibility 0s;
        }

        /* The ring fills over the interval of the carousel while it runs its timer, and stops with it. */
        html[data-motion='subtle'] .hero-section:has(.hero-playback[aria-pressed]) .hero-dot[aria-selected='true'] {
            background: rgba(255, 255, 255, 0.4);
        }

        html[data-motion='subtle'] .hero-section:has(.hero-playback[aria-pressed]) .hero-dot[aria-selected='true'] .hero-dot-fill {
            --duration: 6000ms;

            display: block;
            position: absolute;
            inset: 0;
            border-radius: 50%;
            background: conic-gradient(var(--color-white) var(--p), transparent 0);
            animation: dot-fill var(--duration) linear forwards;
        }

        /* The carousel counts the whole interval again after a pause, so the ring starts over instead of resuming. */
        html[data-motion='subtle'] .hero-section:is(:focus-within, :has(.hero-playback[aria-pressed='true'])) .hero-dot[aria-selected='true'] .hero-dot-fill {
            display: none;
        }

        @media (hover: hover) {
            html[data-motion='subtle'] .hero-section:hover:has(.hero-playback[aria-pressed]) .hero-dot[aria-selected='true'] .hero-dot-fill {
                display: none;
            }
        }

        /* Two bounces stay under five seconds, so the arrow needs no control to stop it. */
        html[data-motion='subtle'] .hero-scroll-arrow {
            animation: scroll-arrow-bounce 2s ease-in-out 2;
        }
    }

    @media (max-width: 1024px) {
        .hero-section {
            display: block;
            height: auto;
            min-height: unset;
        }

        .hero-scroll-arrow {
            display: none;
        }

        .hero-controls {
            top: 0.75rem;
            left: 0.75rem;
            right: auto;
            bottom: auto;
        }

        .hero-slides {
            position: relative;
            width: 100%;
            aspect-ratio: 16 / 9;
        }

        .hero-overlay {
            padding: clamp(1rem, 5vw, 4rem);
        }

        .slogan {
            line-height: 1.2;
        }
    }

    .events-list {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .events-rest {
        margin-top: 1.5rem;
    }

    .events-rest[hidden] {
        display: none;
    }

    .events-more-container {
        text-align: center;
        margin-top: 1.5rem;
    }

    .event-year-divider {
        display: flex;
        align-items: center;
        gap: 1rem;
        color: var(--color-secondary);
        font-family: var(--font-heading);
        font-size: 1.6rem;
        font-weight: 700;
        margin: 0.5rem 0;
    }

    .event-year-divider::before,
    .event-year-divider::after {
        content: '';
        flex: 1;
        height: 2px;
        background: var(--color-secondary);
        opacity: 0.4;
    }

    .event-year-divider span {
        padding: 0 0.5rem;
    }

    .event-item {
        background: var(--color-white);
        padding: 0.75rem;
        border-left: 5px solid var(--color-primary);
        border-radius: 4px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
        display: flex;
        align-items: center;
    }

    .event-date {
        display: flex;
        flex-direction: column;
        align-items: center;
        min-width: 80px;
        color: var(--color-secondary);
        font-weight: bold;
        font-family: var(--font-heading);
    }

    .event-date .weekday {
        font-size: 1.05rem;
        font-weight: 500;
        color: var(--color-text-muted);
    }

    .event-date .day {
        font-size: 1.8rem;
        line-height: 1;
    }

    .event-date .month {
        font-size: 1rem;
        text-transform: uppercase;
    }

    .event-details {
        flex-grow: 1;
        min-width: 0;
        padding: 0 1.5rem;
    }

    .event-details .event-title {
        margin-bottom: 0.25rem;
        color: var(--color-primary);
    }

    .event-details .location {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.4rem;
        color: var(--color-text-muted);
        font-size: 0.9rem;
    }

    .event-details .location svg {
        width: 0.75em;
        height: 1em;
    }

    .event-details .location a {
        color: inherit;
        text-decoration: underline;
        text-underline-offset: 2px;
        transition: color 0.15s ease;
    }

    .event-details .location a:hover {
        color: var(--color-primary);
    }

    .event-actions {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .event-icon-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        padding: 0;
        border-radius: 50%;
        border: 2px solid var(--color-primary-light);
        background: transparent;
        color: var(--color-primary);
        font-size: 1rem;
        text-decoration: none;
        cursor: pointer;
        flex-shrink: 0;
        transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
    }

    .event-icon-btn svg {
        width: 1em;
        height: 1em;
    }

    .event-icon-btn:hover {
        background-color: var(--color-primary);
        border-color: var(--color-primary);
        color: var(--color-white);
        transform: translateY(-2px);
    }

    .event-time {
        display: flex;
        align-items: baseline;
        justify-content: flex-end;
        gap: 0.35rem;
        min-width: 92px;
        padding-left: 1.25rem;
        line-height: 1;
        color: var(--color-text);
    }

    .event-time-label {
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--color-text-muted);
    }

    .event-time-value {
        font-size: 1.4rem;
        font-weight: 700;
        font-family: var(--font-heading);
        color: var(--color-text);
    }

    @media (max-width: 480px) {
        .event-item {
            display: grid;
            grid-template-columns: 1fr 2fr auto;
            column-gap: 1rem;
            row-gap: 0.6rem;
        }

        .event-date {
            grid-column: 1;
            grid-row: 1;
        }

        .event-details {
            grid-column: 2;
            grid-row: 1 / 3;
            align-self: center;
            padding: 0;
        }

        .event-time {
            grid-column: 1;
            grid-row: 2;
            justify-content: center;
            min-width: 0;
            padding-left: 0;
            white-space: nowrap;
        }

        .event-actions {
            grid-column: 3;
            grid-row: 1 / 3;
            flex-direction: column;
            align-self: center;
        }

        .event-time-value {
            font-size: 1.2rem;
        }
    }
}

@layer site {
    body {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }

    .skip-link {
        z-index: 1003;
        padding: 0.5rem 1rem;
    }

    /* The core's view-transition-name makes the header a stacking context at z 0 in DOM order, below the positioned main, and the fixed sidebar inside it goes with it. */
    .site-header {
        position: static;
        z-index: 1001;
        border: 0;
        background: none;
        color: inherit;
    }

    main#content {
        position: relative;
        display: block;
        flex: 1 0 auto;
        margin-left: var(--width-sidebar);
        width: calc(100% - var(--width-sidebar));
        background-color: var(--color-bg);
        padding: 0 0 200px;
    }

    /* main is not a grid here, so the subgrid of the core has no lines to inherit: the plain layout carries the column template of the core's main. */
    .entry-layout-plain {
        grid-template-columns: [full-start] minmax(var(--space-unit), 1fr) [content-start] minmax(0, var(--site-content-width)) [content-end] minmax(var(--space-unit), 1fr) [full-end];
    }

    .entry-layout-plain > :is(.block-cms-hero, .block-calendar-upcoming_events, .block-discography-album_promo, .block-discography-album_list, .block-cms-contacts, .block-communication-inquiry_form) {
        grid-column: full;
    }

    .site-footer {
        display: block;
        padding: 0;
        border: 0;
        border-radius: 0;
        clip-path: none;
        background: none;
        color: inherit;
    }

    html:has(dialog[open]) {
        overflow: hidden;
    }

    .sidebar {
        width: var(--width-sidebar);
        background-color: var(--color-white);
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        border-right: 1px solid rgba(0, 0, 0, 0.05);
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 2rem 1rem;
        z-index: 1000;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
        overflow-y: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .sidebar::-webkit-scrollbar {
        display: none;
    }

    /* 6.1% = the brandbook clear zone (65.75 of 800 units) minus the ~11 units the SVG canvas already holds. */
    .logo-container {
        padding: 6.1%;
        margin-top: 1rem;
        margin-bottom: 2rem;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .logo-container .site-logo {
        display: block;
        width: 100%;
        text-decoration: none;
    }

    .logo-container .site-logo .image img {
        width: 100%;
        max-width: none;
        height: auto;
        aspect-ratio: 800 / 220;
        object-fit: contain;
        border-radius: 0;
    }

    .main-nav-dialog {
        display: block;
        position: static;
        width: 100%;
        max-width: none;
        height: auto;
        max-height: none;
        flex-grow: 1;
        margin: 0;
        padding: 0;
        border: 0;
        background: none;
        color: inherit;
        overflow: visible;
    }

    .main-nav {
        width: 100%;
    }

    .main-nav ul {
        list-style: none;
        text-align: center;
    }

    .main-nav li {
        margin-bottom: 1rem;
    }

    .main-nav a {
        display: inline;
        min-height: 0;
        text-decoration: none;
        color: var(--color-primary);
        font-family: var(--font-ui);
        font-size: 1.25rem;
        font-weight: 700;
        padding-bottom: 5px;
        position: relative;
        transition: color 0.3s;
    }

    .main-nav a:hover,
    .main-nav a[aria-current] {
        color: var(--color-secondary);
    }

    .sidebar-footer {
        width: 100%;
        text-align: center;
        font-size: 0.9rem;
        color: var(--color-text-muted);
        margin-top: auto;
    }

    .sidebar-socials {
        margin-bottom: 2rem;
    }

    .sidebar-socials.mobile-only,
    .logo-container.mobile-only,
    .mobile-menu-toggle {
        display: none;
    }

    .mobile-menu-toggle svg {
        width: 1em;
        height: 1em;
        vertical-align: -0.125em;
    }

    .mobile-footer {
        display: none;
        background-color: var(--color-primary);
        color: var(--color-white);
        padding: 3rem 1rem;
        text-align: center;
        border-top: none;
        margin-top: 0;
    }

    .copyright {
        font-size: 0.85rem;
        opacity: 0.7;
    }

    .socials {
        --social-size: 2rem;

        text-align: center;
    }

    .socials a {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        gap: calc(var(--social-size) * 0.15);
        flex: 0 0 auto;
        text-decoration: none;
    }

    .social-tile {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: var(--social-size);
        height: var(--social-size);
        border-radius: calc(var(--social-size) * 0.22);
        background-color: var(--color-primary);
        color: var(--color-bg);
        font-size: calc(var(--social-size) * 0.7);
        line-height: 1;
        transition: background-color 0.2s ease, transform 0.2s ease;
    }

    .social-tile svg {
        width: 1em;
        height: 1em;
    }

    .socials a:hover .social-tile {
        background-color: var(--color-secondary);
    }

    @media (prefers-reduced-motion: no-preference) {
        /* Scale, not translate: a transform moves the hit area, so a lift makes hover flicker at the edge. */
        html[data-motion='subtle'] .socials a:hover .social-tile {
            transform: scale(1.08);
        }
    }

    .socials a.social-facebook:hover .social-tile { background-color: #1877F2; }
    .socials a.social-instagram:hover .social-tile { background-color: #E1306C; }
    .socials a.social-youtube:hover .social-tile { background-color: #FF0000; }
    .socials a.social-spotify:hover .social-tile { background-color: #1DB954; }
    .socials a.social-apple_music:hover .social-tile { background-color: var(--color-white); color: #000000; box-shadow: inset 0 0 0 1px var(--color-text-faint); }

    .socials--row {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: center;
        gap: 0.6rem;
    }

    .socials--normal {
        --social-size: 2rem;
    }

    .site-to-top {
        position: fixed;
        inset: auto 20px 20px auto;
        z-index: 1000;
        display: block;
        pointer-events: none;
    }

    .site-to-top-link {
        position: static;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 50px;
        height: 50px;
        margin: 0;
        background: rgba(255, 255, 255, 0.9);
        border: 1px solid var(--color-border);
        border-radius: 50%;
        color: var(--color-primary);
        font-size: 1.2rem;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
        pointer-events: auto;
        transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    }

    .site-to-top-link svg {
        width: 0.75em;
        height: 1em;
    }

    .site-to-top-link:hover {
        background: var(--color-primary);
        color: var(--color-white);
        border-color: var(--color-primary);
    }

    /* Hidden at rest, so a page too short to scroll (an inactive timeline) keeps it hidden as Nuxt does. */
    @supports (animation-timeline: scroll()) {
        .site-to-top-link {
            visibility: hidden;
            animation: milocanka-to-top linear both;
            animation-timeline: scroll(root);
            animation-range: 299px 300px;
        }
    }

    @keyframes milocanka-to-top {
        to {
            visibility: visible;
        }
    }

    @media (min-width: 1025px) {
        .site-footer {
            display: none;
        }
    }

    @media (max-width: 1024px) {
        main#content {
            margin-left: 0;
            width: 100%;
            padding-bottom: 0;
        }

        .sidebar {
            width: 0;
            height: 0;
            padding: 0;
            margin: 0;
            border: none;
            overflow: visible;
            display: block;
        }

        .logo-container {
            display: none;
        }

        .logo-container.mobile-only {
            display: flex;
            max-width: 240px;
            padding: 6.1%;
            margin: 0 auto 2rem;
        }

        .logo-container .site-logo .image img {
            max-width: 240px;
        }

        .mobile-menu-toggle {
            display: block;
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 1002;
            background: rgba(255, 255, 255, 0.9);
            border: 1px solid var(--color-border);
            border-radius: 50%;
            width: 50px;
            height: 50px;
            font-size: 1.5rem;
            color: var(--color-primary);
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
            cursor: pointer;
        }

        .main-nav-dialog:not([open]) {
            display: none;
        }

        .main-nav-dialog[open] {
            position: fixed;
            inset: 0;
            width: 100%;
            height: 100vh;
            background: rgba(255, 255, 255, 0.98);
            overflow-y: auto;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }

        .main-nav-dialog::-webkit-scrollbar {
            display: none;
        }

        .main-nav-dialog::backdrop {
            background: transparent;
        }

        .main-nav-panel {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            min-height: 100%;
            padding: 6rem 2rem 2rem 2rem;
        }

        .main-nav ul {
            flex-direction: column;
            align-items: center;
            gap: 2rem;
            margin-bottom: 2rem;
        }

        .main-nav ul li a {
            font-size: 1.5rem;
        }

        .sidebar-socials:not(.mobile-only),
        .sidebar-footer {
            display: none;
        }

        .sidebar-socials.mobile-only {
            display: flex;
            justify-content: center;
            margin-top: 1rem;
            margin-bottom: 0;
            padding-top: 1rem;
        }

        .mobile-footer {
            display: block;
        }

        .mobile-footer * {
            color: var(--color-white) !important;
            opacity: 1;
        }
    }

    /* Without a script the opener does nothing, so the menu stands in the page above the content instead. */
    @media (max-width: 1024px) and (scripting: none) {
        .sidebar {
            position: static;
            width: 100%;
            height: auto;
            padding: 1rem;
        }

        .mobile-menu-toggle,
        .logo-container.mobile-only {
            display: none;
        }

        .logo-container {
            display: flex;
            max-width: 240px;
            margin: 0 auto 1rem;
        }

        .main-nav-dialog:not([open]) {
            display: block;
        }

        .main-nav-panel {
            min-height: 0;
            padding: 0;
        }
    }
}

@layer site {
    .promo-text,
    .page-lead {
        text-align: center;
        margin: -1.5rem auto 2rem;
    }

    .section-container.page-title {
        padding-bottom: 0;
    }

    .page-title .section-title {
        margin-bottom: 3rem;
    }

    .entry-titled:not(.entry-contact-row) > .block:first-child > .section-container {
        padding-top: 0;
    }

    .post-text .block,
    .gdpr-content .block {
        margin: 0;
    }

    .post-text .rich-text,
    .gdpr-content .rich-text {
        max-width: none;
    }

    .blog-container {
        max-width: 800px;
        margin: 0 auto;
    }

    .blog-post {
        margin-bottom: 4rem;
        padding-bottom: 3rem;
        border-bottom: 1px solid #eee;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .blog-post:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }

    .post-image-container {
        position: relative;
        width: 100%;
        height: 250px;
        overflow: hidden;
        border-radius: 8px;
    }

    .post-image-container .image,
    .post-image-container .site-logo {
        width: 100%;
        height: 100%;
    }

    .post-image-container img,
    .post-image-container .site-logo .image img {
        width: 100%;
        height: 100%;
        border-radius: 0;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

    .blog-post:hover .post-image-container img {
        transform: scale(1.03);
    }

    .placeholder-img {
        height: 100%;
    }

    .placeholder-img .site-logo-default {
        display: block;
        height: 100%;
    }

    .placeholder-img .site-logo-inverse {
        display: none;
    }

    .post-image-container .placeholder-img img {
        object-fit: contain;
        opacity: 0.5;
        padding: 2rem;
    }

    .post-image-container .placeholder-img .site-logo .image img {
        object-fit: contain;
    }

    .image-link {
        display: block;
        width: 100%;
        height: 100%;
    }

    .image-link-cover {
        position: absolute;
        inset: 0;
    }

    .post-title {
        color: var(--color-primary);
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    .post-title a {
        text-decoration: none;
        color: inherit;
        transition: color 0.2s;
    }

    .post-title a:hover {
        color: var(--color-secondary);
    }

    .post-meta {
        color: var(--color-text-muted);
        font-size: 0.9rem;
        margin-bottom: 1rem;
        font-style: italic;
    }

    .post-content {
        line-height: 1.8;
        margin-bottom: 1.5rem;
    }

    .read-more-btn,
    .news-page .pagination a {
        display: inline-block;
        color: var(--color-secondary);
        font-weight: 700;
        text-decoration: none;
        font-size: 1rem;
        transition: color 0.2s;
    }

    .read-more-btn:hover,
    .news-page .pagination a:hover {
        color: var(--color-primary);
        text-decoration: underline;
    }

    .read-more-btn svg {
        width: auto;
        height: 1em;
        vertical-align: -0.125em;
        fill: currentColor;
    }

    .news-page .pagination {
        max-width: 800px;
        margin: 3rem auto 0;
    }

    @media (max-width: 768px) {
        .post-image-container {
            height: auto;
            aspect-ratio: 16 / 9;
        }
    }

    @media (min-width: 768px) {
        .blog-post {
            flex-direction: row;
            align-items: flex-start;
        }

        .post-image-container {
            width: 300px;
            height: 200px;
            flex-shrink: 0;
        }
    }

    .post-detail-container {
        max-width: 800px;
        margin: 0 auto;
    }

    .back-link {
        display: inline-block;
        margin-bottom: 2rem;
        color: var(--color-primary);
        text-decoration: none;
        font-weight: 600;
    }

    .back-link:hover {
        text-decoration: underline;
    }

    .back-link svg {
        width: 1em;
        height: 1em;
        vertical-align: -0.125em;
        fill: currentColor;
    }

    .post-detail-container .post-title {
        font-size: 2.5rem;
    }

    .post-detail-container .breadcrumbs {
        font-size: 0.9rem;
        color: var(--color-text-muted);
        margin: 0 0 1rem;
    }

    .post-detail-container .breadcrumbs a {
        color: var(--color-text-muted);
        text-decoration: none;
        transition: color 0.2s;
    }

    .post-detail-container .breadcrumbs a:hover {
        color: var(--color-primary);
        text-decoration: underline;
    }

    .post-detail-container .breadcrumbs .separator {
        margin: 0 0.5rem;
        color: #ccc;
    }

    .post-detail-container .breadcrumbs .current {
        color: var(--color-primary);
        font-weight: 600;
    }

    .post-detail-container .post-meta {
        font-size: 1rem;
        margin-bottom: 2rem;
        border-bottom: 1px solid #eee;
        padding-bottom: 1rem;
    }

    .post-body {
        margin-bottom: 3rem;
    }

    .post-text {
        line-height: 1.8;
        color: var(--color-text);
    }

    .post-text p {
        margin-bottom: 0.5rem;
    }

    /* An image of the editor keeps its own size; a block image keeps the space of its width and height. */
    .post-text img:not(.image img) {
        width: auto;
    }

    .post-text img {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 1.5rem auto;
        border-radius: 4px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    }

    .post-text ul {
        list-style-type: disc;
        margin-left: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .post-text li {
        margin-bottom: 0.5rem;
    }

    .privacy-page {
        max-width: 800px;
        line-height: 1.8;
        color: var(--color-text);
    }

    .gdpr-content h3 {
        font-family: var(--font-heading);
        color: var(--color-primary);
        font-size: 1.75rem;
        margin: 3rem 0 1rem;
        font-weight: 600;
    }

    .gdpr-content p {
        margin-bottom: 1rem;
    }

    .gdpr-content ul,
    .gdpr-content ol {
        margin: 0 0 1.25rem 1.5rem;
        padding: 0;
    }

    .gdpr-content li {
        margin-bottom: 0.5rem;
    }

    .gdpr-content a {
        color: var(--color-secondary);
        text-decoration: none;
        border-bottom: 1px solid transparent;
        transition: border-color 0.2s, color 0.2s;
    }

    .gdpr-content a:hover {
        color: var(--color-primary);
        border-bottom-color: currentColor;
    }

    .gdpr-content blockquote {
        margin: 1.5rem 0;
        padding: 1rem 1.5rem;
        border-left: 4px solid var(--color-primary);
        background: var(--color-primary-light);
        border-radius: 4px;
        color: var(--color-text);
        font-style: italic;
    }

    .gdpr-content hr {
        border: none;
        border-top: 1px solid var(--color-border);
        margin: 2rem 0;
    }

    @media (max-width: 640px) {
        .gdpr-content h3 {
            font-size: 1.4rem;
        }
    }

    @media (max-width: 1024px) {
        .page-title .section-title {
            margin-bottom: 2rem;
        }
    }
}

/* --color-primary, -primary-dark, -primary-light, -secondary, -secondary-dark, -bg and the --font-* come from the brand of the profile. */
@layer site {
    :root {
        --color-text: #333333;
        --color-text-muted: #666666;
        --color-text-faint: #767676;
        --color-white: #ffffff;
        --color-border: #dddddd;
        --color-error: #e53e3e;
        --color-success: #4caf50;
        --color-warning: #ffcc00;

        --width-sidebar: 250px;
        --container-max-width: 1200px;
    }
}
