/* Registry UI: the shared layer of the registry sites. Service tokens (--accent, --deep, --tint,
   --font-display) come from the layout; everything else is defined here. */

/* Fonts: Fontsource woff2, SIL OFL 1.1 (licences beside the files). */
@font-face {
    font-family: 'Instrument Sans';
    font-style: normal;
    font-display: swap;
    font-weight: 400 700;
    src: url(../fonts/instrument-sans-latin-ext-wght-normal.woff2) format('woff2-variations'), url(../fonts/instrument-sans-latin-ext-wght-normal.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Instrument Sans';
    font-style: normal;
    font-display: swap;
    font-weight: 400 700;
    src: url(../fonts/instrument-sans-latin-wght-normal.woff2) format('woff2-variations'), url(../fonts/instrument-sans-latin-wght-normal.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Bricolage Grotesque';
    font-style: normal;
    font-display: swap;
    font-weight: 200 800;
    src: url(../fonts/bricolage-grotesque-latin-ext-wght-normal.woff2) format('woff2-variations'), url(../fonts/bricolage-grotesque-latin-ext-wght-normal.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Bricolage Grotesque';
    font-style: normal;
    font-display: swap;
    font-weight: 200 800;
    src: url(../fonts/bricolage-grotesque-latin-wght-normal.woff2) format('woff2-variations'), url(../fonts/bricolage-grotesque-latin-wght-normal.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Instrument Serif';
    font-style: normal;
    font-display: swap;
    font-weight: 400;
    src: url(../fonts/instrument-serif-latin-ext-400-normal.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Instrument Serif';
    font-style: normal;
    font-display: swap;
    font-weight: 400;
    src: url(../fonts/instrument-serif-latin-400-normal.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Instrument Serif';
    font-style: italic;
    font-display: swap;
    font-weight: 400;
    src: url(../fonts/instrument-serif-latin-ext-400-italic.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Instrument Serif';
    font-style: italic;
    font-display: swap;
    font-weight: 400;
    src: url(../fonts/instrument-serif-latin-400-italic.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-display: swap;
    font-weight: 100 800;
    src: url(../fonts/jetbrains-mono-latin-ext-wght-normal.woff2) format('woff2-variations'), url(../fonts/jetbrains-mono-latin-ext-wght-normal.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-display: swap;
    font-weight: 100 800;
    src: url(../fonts/jetbrains-mono-latin-wght-normal.woff2) format('woff2-variations'), url(../fonts/jetbrains-mono-latin-wght-normal.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ------------------------------------------------------------------ tokens */

:root {
    --accent: #0F6B4F;
    --deep: #0A4A37;
    --tint: #E3F1EA;
    --font-display: 'Bricolage Grotesque', system-ui, sans-serif;

    --page: #F7F6F2;
    --card: #FFFFFF;
    --line: #E3E1DA;
    --line-soft: #EDEBE5;
    --muted-bg: #F1F0EC;
    --ink: #16181A;
    --text: #16181A;
    --text-2: #4A4F55;
    --caption: #5B6168;

    --open-bg: #E4F4EA;
    --open-fg: #12613A;
    --open-dot: #1F9D5A;
    --closing-bg: #FDF0DC;
    --closing-fg: #7A4300;
    --closing-dot: #E08A00;
    --closed-bg: #EEEEEC;
    --closed-fg: #4A4F55;
    --closed-dot: #9AA0A6;
    --h24-bg: #1D2433;
    --h24-fg: #FFFFFF;

    --info-bg: #EAF1F8;
    --info-fg: #1F4B73;
    --success-bg: var(--open-bg);
    --success-fg: var(--open-fg);
    --warning-bg: var(--closing-bg);
    --warning-fg: var(--closing-fg);
    --error-bg: #FBE9E7;
    --error-fg: #9B1C12;
    --error-line: #C4321F;

    --font-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

    --display-weight: 700;
    --display-tracking: -0.02em;
    --h1: clamp(2.5rem, 1.6rem + 3.4vw, 4rem);
    --h2: clamp(1.5rem, 1.3rem + 0.8vw, 1.75rem);
    --h3: 1.25rem;
    --h1-line: 1.02;

    --radius-lg: 22px;
    --radius-md: 14px;
    --radius-sm: 12px;
    --radius-xs: 8px;
    --card-border: 1px solid var(--line);
    --control-border: 1.5px solid var(--ink);

    --gutter: 16px;
    --gap: 16px;
    --section: 48px;
    --content: 1200px;

    --focus: var(--deep);
    --shadow-float: 0 10px 30px rgba(22, 24, 26, 0.08);

    /* Frame: header, top bar and footer; the grotesk frame sits on the deep colour. */
    --topbar-bg: color-mix(in srgb, var(--deep) 62%, #000);
    --topbar-fg: color-mix(in srgb, var(--tint) 88%, var(--deep));
    --header-bg: var(--deep);
    --header-fg: #FFFFFF;
    --header-line: color-mix(in srgb, var(--deep) 80%, #FFF);
    --header-control: color-mix(in srgb, var(--accent) 55%, #FFF 20%);
    --brand-tld: color-mix(in srgb, var(--tint) 70%, var(--accent));
    --footer-bg: color-mix(in srgb, var(--deep) 62%, #000);
    --footer-fg: color-mix(in srgb, var(--tint) 90%, var(--deep));
    --footer-text: color-mix(in srgb, var(--tint) 72%, var(--deep));
    --footer-muted: color-mix(in srgb, var(--tint) 55%, var(--deep));
    --footer-line: color-mix(in srgb, var(--deep) 75%, #FFF 10%);
    --footer-tld: var(--brand-tld);
}

[data-display="serif"] {
    --font-display: 'Instrument Serif', Georgia, 'Times New Roman', serif;
    --display-weight: 400;
    --display-tracking: -0.015em;
    --h1: clamp(3rem, 1.9rem + 4.4vw, 4.875rem);
    --h2: clamp(2.125rem, 1.7rem + 1.6vw, 2.75rem);
    --h3: 1.625rem;
    --h1-line: 0.98;

    --page: #F6F4EE;
    --line: #E2DFD6;
    --line-soft: #ECE9E1;
    --muted-bg: #EFEDE6;
    --ink: #15161C;
    --text: #15161C;
    --text-2: #4A4D57;
    --caption: #5B5E68;

    --radius-lg: 0;
    --radius-md: 0;
    --radius-sm: 0;
    --radius-xs: 0;
    --card-border: 1.5px solid var(--ink);

    --topbar-bg: color-mix(in srgb, var(--deep) 72%, #000);
    --topbar-fg: color-mix(in srgb, var(--tint) 85%, var(--deep));
    --header-bg: var(--page);
    --header-fg: var(--ink);
    --header-line: var(--ink);
    --header-control: var(--ink);
    --brand-tld: var(--accent);
    --footer-bg: var(--ink);
    --footer-fg: #D9D8E3;
    --footer-text: #B9B8C6;
    --footer-muted: #9998A8;
    --footer-line: #2E2F38;
    --footer-tld: color-mix(in srgb, var(--accent) 45%, #FFF);
}

[data-service="rejestraptek"] {
    --topbar-bg: #062F23;
    --topbar-fg: #CFE3D9;
    --header-line: #1C5C48;
    --header-control: #3F7A66;
    --brand-tld: #A9CDBD;
    --footer-bg: #0A2E23;
    --footer-fg: #D6E8DF;
    --footer-text: #B5CFC3;
    --footer-muted: #8FB0A2;
    --footer-line: #1F4A3C;
}

[data-service="suplementy"] {
    --topbar-bg: #1B1D5C;
    --topbar-fg: #D4D5F5;
    --footer-tld: #A9AAF0;
    --mark-alt: #B4471F;
}

@media (min-width: 768px) {
    :root {
        --gutter: 24px;
        --gap: 20px;
        --section: 64px;
    }
}

@media (min-width: 1280px) {
    :root {
        --gutter: 32px;
        --gap: 32px;
        --section: 72px;
    }
}

/* -------------------------------------------------------------------- base */

:where([data-ui="registry"] *),
:where([data-ui="registry"] *::before),
:where([data-ui="registry"] *::after) {
    box-sizing: border-box;
}

:where([data-ui="registry"]) {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: 16px;
}

:where([data-ui="registry"] body) {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--page);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
    overflow-x: hidden;
}

:where([data-ui="registry"] main) {
    flex: 1 0 auto;
    display: block;
}

:where([data-ui="registry"] main:focus) {
    outline: none;
}

:where([data-ui="registry"] img),
:where([data-ui="registry"] svg),
:where([data-ui="registry"] video) {
    max-width: 100%;
}

:where([data-ui="registry"] img) {
    height: auto;
}

:where([data-ui="registry"] a) {
    color: var(--deep);
    text-underline-offset: 3px;
}

:where([data-ui="registry"] a:hover) {
    color: var(--accent);
}

:where([data-ui="registry"] p),
:where([data-ui="registry"] ul),
:where([data-ui="registry"] ol),
:where([data-ui="registry"] dl),
:where([data-ui="registry"] figure),
:where([data-ui="registry"] blockquote) {
    margin: 0;
}

:where([data-ui="registry"] h1),
:where([data-ui="registry"] h2),
:where([data-ui="registry"] h3),
:where([data-ui="registry"] h4) {
    margin: 0;
    text-wrap: balance;
}

:where([data-ui="registry"] button),
:where([data-ui="registry"] input),
:where([data-ui="registry"] select),
:where([data-ui="registry"] textarea) {
    font: inherit;
    color: inherit;
}

:where([data-ui="registry"] :focus-visible) {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
}

.on-dark :focus-visible,
.topbar :focus-visible,
.main-footer :focus-visible {
    outline-color: #FFFFFF;
}

[data-display="grotesk"] .site-header :focus-visible {
    outline-color: #FFFFFF;
}

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

.skip-link {
    position: absolute;
    left: 16px;
    top: 0;
    z-index: 10000;
    padding: 12px 18px;
    background: var(--ink);
    color: #FFFFFF !important;
    font-weight: 600;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    transform: translateY(-120%);
}

.skip-link:focus {
    transform: translateY(0);
}

/* ------------------------------------------------------------------ layout */

.wrap {
    width: 100%;
    max-width: calc(var(--content) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section {
    padding-block: var(--section);
}

.section--tight {
    padding-block: calc(var(--section) / 2);
}

.stack {
    display: flex;
    flex-direction: column;
    gap: var(--stack-gap, 16px);
}

.cluster {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--cluster-gap, 8px);
}

/* 12 columns from 1280 px, two from 768 px, one below. */
.grid {
    display: grid;
    gap: var(--gap);
    grid-template-columns: minmax(0, 1fr);
}

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

    .grid > .span-full,
    .grid > .span-12,
    .grid > .span-8,
    .grid > .span-7 {
        grid-column: 1 / -1;
    }
}

@media (min-width: 1280px) {
    .grid {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }

    .grid > * {
        grid-column: span 6;
    }

    .grid > .span-2 { grid-column: span 2; }
    .grid > .span-3 { grid-column: span 3; }
    .grid > .span-4 { grid-column: span 4; }
    .grid > .span-5 { grid-column: span 5; }
    .grid > .span-6 { grid-column: span 6; }
    .grid > .span-7 { grid-column: span 7; }
    .grid > .span-8 { grid-column: span 8; }
    .grid > .span-9 { grid-column: span 9; }
    .grid > .span-12,
    .grid > .span-full { grid-column: 1 / -1; }
}

/* Equal tiles: one column, two from 768 px, the given count from 1280 px. */
.cols {
    display: grid;
    gap: var(--gap);
    grid-template-columns: minmax(0, 1fr);
}

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

@media (min-width: 1280px) {
    .cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cols--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* -------------------------------------------------------------- typography */

.h1,
.h2,
.h3,
.display {
    font-family: var(--font-display);
    font-weight: var(--display-weight);
    letter-spacing: var(--display-tracking);
    color: inherit;
}

.h1 {
    font-size: var(--h1);
    line-height: var(--h1-line);
}

.h2 {
    font-size: var(--h2);
    line-height: 1.1;
}

.h3 {
    font-size: var(--h3);
    line-height: 1.2;
}

[data-display="grotesk"] .h1 {
    font-weight: 800;
    letter-spacing: -0.04em;
}

[data-display="grotesk"] .h3 {
    letter-spacing: -0.01em;
}

.lead {
    font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
    line-height: 1.55;
    color: var(--text-2);
    text-wrap: pretty;
}

.prose {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-2);
    max-width: 72ch;
}

.prose > * + * {
    margin-top: 1em;
}

.prose h2,
.prose h3 {
    font-family: var(--font-display);
    font-weight: var(--display-weight);
    letter-spacing: var(--display-tracking);
    color: var(--text);
    margin-top: 1.6em;
}

.prose ul,
.prose ol {
    padding-left: 1.25em;
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--caption);
}

.caption,
.muted {
    font-size: 0.875rem;
    color: var(--caption);
}

.mono {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
}

/* ----------------------------------------------------------------- buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.btn svg {
    flex-shrink: 0;
}

.btn--primary {
    background: var(--accent);
    color: #FFFFFF;
}

.btn--primary:hover {
    background: var(--deep);
    color: #FFFFFF;
}

.btn--secondary {
    background: var(--card);
    color: var(--ink);
    border: var(--control-border);
}

[data-display="serif"] .btn--secondary {
    border-width: 1px;
}

.btn--secondary:hover {
    background: var(--ink);
    color: #FFFFFF;
}

.btn--tonal {
    background: var(--tint);
    color: var(--deep);
}

.btn--tonal:hover {
    background: color-mix(in srgb, var(--tint) 80%, var(--accent));
    color: var(--deep);
}

.btn--quiet {
    background: var(--card);
    color: var(--ink);
    border: 1px solid var(--line);
}

.btn--quiet:hover {
    border-color: var(--ink);
    color: var(--ink);
}

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

.btn--lg {
    min-height: 52px;
    padding: 0 26px;
    font-size: 1rem;
}

.btn[disabled],
.btn[aria-disabled="true"] {
    opacity: 0.55;
    cursor: not-allowed;
}

.link {
    display: inline;
    padding: 0;
    border: 0;
    background: none;
    color: var(--deep);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.link:hover {
    color: var(--accent);
}

/* ----------------------------------------------------- chips, pills, labels */

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--card);
    color: var(--ink);
    font-size: 0.875rem;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}

[data-display="serif"] .chip {
    border-color: var(--ink);
}

.chip:hover {
    border-color: var(--ink);
    color: var(--ink);
}

.chip[aria-pressed="true"],
.chip[aria-current],
.chip.is-active {
    background: var(--ink);
    border-color: var(--ink);
    color: #FFFFFF;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.status::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.status--open { background: var(--open-bg); color: var(--open-fg); }
.status--open::before { background: var(--open-dot); }
.status--closing { background: var(--closing-bg); color: var(--closing-fg); }
.status--closing::before { background: var(--closing-dot); }
.status--closed { background: var(--closed-bg); color: var(--closed-fg); }
.status--closed::before { background: var(--closed-dot); }
.status--24h { background: var(--h24-bg); color: var(--h24-fg); }
.status--24h::before { display: none; }
.status--neutral { background: var(--muted-bg); color: var(--text-2); }
.status--neutral::before { background: var(--closed-dot); }

/* hours.js toggles these on [data-hours-status] pills; keep in step with the .status--* modifiers above. */
.status.is-open { background: var(--open-bg); color: var(--open-fg); }
.status.is-open::before { background: var(--open-dot); }
.status.is-closing { background: var(--closing-bg); color: var(--closing-fg); }
.status.is-closing::before { background: var(--closing-dot); }
.status.is-closed { background: var(--closed-bg); color: var(--closed-fg); }
.status.is-closed::before { background: var(--closed-dot); }
.status.is-h24 { background: var(--h24-bg); color: var(--h24-fg); }
.status.is-h24::before { display: none; }
.status.is-unknown,
.status.is-holiday { background: var(--muted-bg); color: var(--text-2); }
.status.is-unknown::before,
.status.is-holiday::before { background: var(--closed-dot); }

.label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: var(--radius-xs);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.25;
}

.label--paid {
    background: var(--card);
    color: var(--text-2);
    border: 1px dashed #9AA0A6;
}

.label--owner {
    background: var(--tint);
    color: var(--deep);
}

.label--withdrawn,
.label--source {
    background: var(--muted-bg);
    color: var(--text-2);
}

.label--ad {
    padding: 3px 8px;
    border-radius: calc(var(--radius-xs) - 2px);
    background: var(--muted-bg);
    color: var(--text-2);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ------------------------------------------------------------ cards, heads */

.card {
    background: var(--card);
    border: var(--card-border);
    border-radius: var(--radius-lg);
    padding: 20px;
}

@media (min-width: 768px) {
    .card {
        padding: 28px 32px;
    }
}

.card--flat {
    border-color: var(--line);
    border-width: 1px;
}

.card--muted {
    background: var(--muted-bg);
    border: 0;
    border-radius: var(--radius-md);
}

.card--link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.card--link:hover {
    border-color: var(--ink);
    color: inherit;
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px 24px;
    margin-bottom: 24px;
}

.section-head__title {
    font-family: var(--font-display);
    font-weight: var(--display-weight);
    letter-spacing: var(--display-tracking);
    font-size: var(--h2);
    line-height: 1.1;
}

.section-head__more {
    font-weight: 600;
    font-size: 0.9375rem;
}

/* ------------------------------------------------------------- breadcrumbs */

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    list-style: none;
    padding: 0;
    font-size: 0.875rem;
    color: var(--caption);
}

.breadcrumbs li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.breadcrumbs li + li::before {
    content: '/';
    color: var(--caption);
}

[data-display="serif"] .breadcrumbs li + li::before {
    content: '\203A';
}

.breadcrumbs a {
    color: var(--text-2);
}

.breadcrumbs [aria-current] {
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 40ch;
}

.on-dark .breadcrumbs ol,
.on-dark .breadcrumbs li + li::before {
    color: var(--brand-tld);
}

.on-dark .breadcrumbs a {
    color: var(--footer-fg);
}

.on-dark .breadcrumbs [aria-current] {
    color: #FFFFFF;
}

/* -------------------------------------------------------------- pagination */

.pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
}

.pagination__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    list-style: none;
    padding: 0;
}

.pagination__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 44px;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--card);
    color: var(--ink);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    font-variant-numeric: tabular-nums;
}

[data-display="serif"] .pagination__link {
    border-color: var(--ink);
}

a.pagination__link:hover {
    border-color: var(--ink);
    color: var(--ink);
}

.pagination__link[aria-current="page"] {
    background: var(--ink);
    border-color: var(--ink);
    color: #FFFFFF;
}

[data-display="grotesk"] .pagination__link[aria-current="page"] {
    background: var(--accent);
    border-color: var(--accent);
}

.pagination__link[aria-disabled="true"] {
    color: var(--caption);
    background: transparent;
    border-color: var(--line);
    cursor: default;
}

.pagination__gap {
    min-width: 32px;
    border: 0;
    background: none;
}

.pagination__status {
    font-size: 0.875rem;
    color: var(--caption);
}

@media (max-width: 479px) {
    .pagination__num:not([aria-current]) {
        display: none;
    }

    .pagination__gap {
        display: none;
    }
}

/* ------------------------------------------------------------------- forms */

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field__label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
}

.field__hint {
    font-size: 0.8125rem;
    color: var(--caption);
}

.field__error {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--error-fg);
}

.input,
.select,
.textarea {
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid #B9B5AA;
    border-radius: var(--radius-sm);
    background: var(--card);
    color: var(--text);
    font-size: 1rem;
    line-height: 1.4;
}

[data-display="serif"] .input,
[data-display="serif"] .select,
[data-display="serif"] .textarea {
    border-color: var(--ink);
}

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

.input::placeholder,
.textarea::placeholder {
    color: var(--caption);
}

.input:focus-visible,
.select:focus-visible,
.textarea:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 0;
    border-color: var(--ink);
}

.field--error .input,
.field--error .select,
.field--error .textarea,
.input[aria-invalid="true"],
.select[aria-invalid="true"],
.textarea[aria-invalid="true"] {
    border-color: var(--error-line);
    border-width: 2px;
}

.check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9375rem;
    line-height: 1.45;
}

.check input {
    width: 20px;
    height: 20px;
    margin: 1px 0 0;
    flex-shrink: 0;
    accent-color: var(--accent);
}

/* The search bar of the boards: fields and one button in a bordered frame. */
.searchbar {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 6px;
    padding: 6px;
    background: var(--card);
    border: 1.5px solid var(--ink);
    border-radius: calc(var(--radius-md) + 2px);
    box-shadow: var(--shadow-float);
    color: var(--text);
}

.searchbar__field {
    flex: 1 1 220px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 14px;
}

.searchbar__field input {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    font-size: 1rem;
}

.searchbar__field:focus-within {
    outline: 3px solid var(--focus);
    outline-offset: 0;
    border-radius: var(--radius-sm);
}

.searchbar .btn {
    min-height: 52px;
    flex: 0 0 auto;
}

@media (max-width: 599px) {
    .searchbar .btn {
        flex: 1 1 100%;
    }
}

/* ----------------------------------------------------------------- notices */

.notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: var(--muted-bg);
    color: var(--text);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.notice > svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.notice__body {
    flex: 1 1 auto;
    min-width: 0;
}

.notice__title {
    display: block;
    font-weight: 700;
    margin-bottom: 2px;
}

.notice--info { background: var(--info-bg); color: var(--info-fg); }
.notice--success { background: var(--success-bg); color: var(--success-fg); }
.notice--warning { background: var(--warning-bg); color: var(--warning-fg); }
.notice--error { background: var(--error-bg); color: var(--error-fg); }

.notice a {
    color: inherit;
    font-weight: 600;
}

.notice__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: -10px -10px -10px 0;
    padding: 0;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: inherit;
    cursor: pointer;
    flex-shrink: 0;
}

.flash-area {
    padding-top: 16px;
}

.flash-area .notice + .notice {
    margin-top: 8px;
}

/* Source of the data: always visible on the card, the list and in the footer. */
.provenance {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 18px;
    border-radius: var(--radius-md);
    background: var(--muted-bg);
    font-size: 0.875rem;
    color: var(--text);
}

.provenance__note {
    font-size: 0.8125rem;
    line-height: 1.55;
    color: var(--text-2);
}

/* ------------------------------------------------------------- empty state */

.empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 48px 24px;
    text-align: center;
    background: var(--card);
    border: 1px dashed #B9B5AA;
    border-radius: var(--radius-lg);
}

.empty__title {
    font-family: var(--font-display);
    font-weight: var(--display-weight);
    letter-spacing: var(--display-tracking);
    font-size: var(--h3);
}

.empty__text {
    max-width: 52ch;
    color: var(--text-2);
}

/* ------------------------------------------------------ disclosure (FAQ) */

.disclosure {
    background: var(--card);
    border: var(--card-border);
    border-radius: var(--radius-md);
}

.disclosure + .disclosure {
    margin-top: 8px;
}

.disclosure > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 56px;
    padding: 14px 18px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.disclosure > summary::-webkit-details-marker {
    display: none;
}

.disclosure > summary::after {
    content: '';
    width: 10px;
    height: 10px;
    margin-right: 4px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translate(-2px, -2px);
    flex-shrink: 0;
}

.disclosure[open] > summary::after {
    transform: rotate(-135deg) translate(-2px, -2px);
}

.disclosure__body {
    padding: 0 18px 18px;
    color: var(--text-2);
    line-height: 1.6;
}

/* ---------------------------------------------------------- register table */

.register {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    column-gap: 40px;
}

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

.register__row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line-soft);
}

.register dt {
    font-size: 0.8125rem;
    color: var(--caption);
}

.register dd {
    margin: 0;
    font-size: 1rem;
    color: var(--text);
    overflow-wrap: anywhere;
}

.register dd.is-mono,
.register .mono {
    font-family: var(--font-mono);
    font-size: 0.9375rem;
}

.register dd.is-missing {
    color: var(--caption);
    font-style: italic;
}

/* ----------------------------------------------------------------- top bar */

.topbar {
    background: var(--topbar-bg);
    color: var(--topbar-fg);
    font-size: 0.75rem;
    line-height: 1.45;
}

.topbar__inner {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding-block: 9px;
}

.topbar__inner > svg {
    flex-shrink: 0;
    margin-top: 1px;
}

.topbar a {
    color: #FFFFFF;
    font-weight: 600;
    white-space: nowrap;
}

.topbar a:hover {
    color: #FFFFFF;
}

@media (min-width: 768px) {
    .topbar {
        font-size: 0.8125rem;
    }

    .topbar__inner {
        align-items: center;
        justify-content: center;
        min-height: 38px;
        padding-block: 8px;
        text-align: center;
    }
}

/* ------------------------------------------------------------------ header */

.site-header {
    position: relative;
    z-index: 50;
    background: var(--header-bg);
    color: var(--header-fg);
    border-bottom: 1px solid var(--header-line);
}

[data-display="serif"] .site-header {
    border-bottom-width: 1.5px;
}

.site-header__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0 16px;
    min-height: 64px;
}

[data-display="serif"] .site-header__bar {
    min-height: 60px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: inherit;
    text-decoration: none;
    flex-shrink: 0;
}

.brand:hover {
    color: inherit;
}

.brand__name {
    font-family: var(--font-display);
    font-weight: var(--display-weight);
    font-size: 1.1875rem;
    line-height: 1;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

[data-display="serif"] .brand__name {
    font-size: 1.625rem;
}

.brand__tld {
    color: var(--brand-tld);
    font-weight: 500;
}

[data-display="serif"] .brand__tld {
    font-style: italic;
    font-weight: 400;
}

.mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mark--tile {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #FFFFFF;
    color: var(--accent);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.125rem;
}

[data-display="serif"] .mark--tile {
    border-radius: 0;
    background: var(--accent);
    color: #FFFFFF;
}

.mark--tile svg {
    width: 17px;
    height: 17px;
    fill: var(--accent);
}

.mark--glyph svg {
    width: 24px;
    height: 24px;
}

.mark__a {
    fill: var(--accent);
}

.mark__b {
    fill: var(--mark-alt, var(--deep));
}

.site-header__actions {
    order: 2;
    display: flex;
    align-items: center;
    gap: 4px;
}

.header-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 44px;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--header-control);
    border-radius: var(--radius-sm);
    background: transparent;
    color: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.header-button:hover {
    color: inherit;
    background: color-mix(in srgb, currentColor 10%, transparent);
}

[data-display="serif"] .header-button {
    border-width: 1.5px;
    border-radius: 999px;
    font-weight: 500;
    padding: 0 18px 0 14px;
}

.header-button--icon {
    padding: 0;
    width: 44px;
}

[data-display="serif"] .header-button--icon {
    border: 0;
    padding: 0;
}

.header-button__label {
    display: none;
}

html:not(.js) .menu-button,
.menu-button .menu-button__close {
    display: none;
}

.menu-button[aria-expanded="true"] .menu-button__open {
    display: none;
}

.menu-button[aria-expanded="true"] .menu-button__close {
    display: block;
}

/* The menu is one landmark: a panel under the bar on phones, the inline nav from 1024 px. */
.site-menu {
    order: 3;
    flex: 1 0 100%;
    border-top: 1px solid var(--header-line);
    padding: 8px 0 20px;
}

.js .site-menu:not(.is-open) {
    display: none;
}

.site-nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.site-nav a {
    display: flex;
    align-items: center;
    min-height: 48px;
    color: inherit;
    font-size: 1.0625rem;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid var(--header-line);
}

[data-display="serif"] .site-nav a {
    border-bottom-color: var(--line);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}

.site-menu__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.site-menu__actions .header-button {
    width: 100%;
    min-height: 48px;
}

.site-header__actions .header-button--wide {
    display: none;
}

@media (min-width: 1024px) {
    .site-header__bar {
        min-height: 72px;
        gap: 32px;
    }

    [data-display="serif"] .site-header__bar {
        min-height: 76px;
    }

    .brand {
        gap: 10px;
    }

    .brand__name {
        font-size: 1.3125rem;
    }

    [data-display="serif"] .brand__name {
        font-size: 1.9375rem;
    }

    .mark--tile {
        width: 34px;
        height: 34px;
    }

    .mark--glyph svg {
        width: 30px;
        height: 30px;
    }

    .site-header__bar {
        display: grid;
        grid-template-columns: auto 1fr auto;
    }

    .site-menu,
    .js .site-menu:not(.is-open) {
        display: contents;
    }

    .site-nav ul {
        flex-direction: row;
        justify-content: center;
        gap: 30px;
    }

    [data-display="serif"] .site-nav ul {
        gap: 34px;
    }

    .site-nav a {
        min-height: 44px;
        font-size: 0.9375rem;
        border-bottom: 0;
    }

    .site-menu__actions {
        display: none;
    }

    .menu-button {
        display: none;
    }

    .site-header__actions {
        order: 0;
        gap: 10px;
    }

    .site-header__actions .header-button--wide {
        display: inline-flex;
    }

    .site-header__actions .header-button--phone {
        display: none;
    }
}

/* ------------------------------------------------------------- legal note */

.legal-note {
    margin-top: var(--section);
    background: var(--card);
    border: var(--card-border);
    border-radius: 20px;
}

[data-display="serif"] .legal-note {
    border-radius: 0;
}

.legal-note > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 56px;
    padding: 16px 18px;
    font-weight: 700;
    font-size: 0.9375rem;
    cursor: pointer;
    list-style: none;
}

.legal-note > summary::-webkit-details-marker {
    display: none;
}

.legal-note__title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legal-note__chevron {
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

.legal-note[open] .legal-note__chevron {
    transform: rotate(180deg);
}

.legal-note__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 18px 18px;
}

.legal-note__intro {
    font-size: 0.8125rem;
    line-height: 1.6;
    color: #2E3237;
}

.legal-note__acts {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    column-gap: 32px;
    list-style: none;
    padding: 0;
}

.legal-note__act {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 0;
    border-top: 1px solid var(--line-soft);
}

.legal-note__act-title {
    font-weight: 700;
    font-size: 0.875rem;
}

.legal-note__act-text {
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--text-2);
}

.legal-note__act a {
    align-self: flex-start;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--deep);
}

@media (min-width: 768px) {
    .legal-note {
        border-radius: var(--radius-lg);
    }

    .legal-note > summary {
        padding: 20px 28px;
        font-size: 1.0625rem;
    }

    .legal-note__body {
        padding: 0 28px 24px;
    }

    .legal-note__intro {
        font-size: 0.9375rem;
    }

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

    .legal-note__act-title {
        font-size: 0.9375rem;
    }

    .legal-note__act-text {
        font-size: 0.875rem;
    }
}

/* ------------------------------------------------------------------ footer */

.main-footer {
    margin-top: 48px;
    background: var(--footer-bg);
    color: var(--footer-fg);
    padding-block: 32px 28px;
    font-size: 0.875rem;
}

.main-footer a {
    color: var(--footer-fg);
}

.main-footer a:hover {
    color: #FFFFFF;
}

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

.footer-about {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #FFFFFF;
}

.footer-brand .brand__name {
    font-size: 1.125rem;
    color: #FFFFFF;
}

[data-display="serif"] .footer-brand .brand__name {
    font-size: 2.125rem;
}

.footer-brand .brand__tld {
    color: var(--footer-tld);
}

[data-display="grotesk"] .footer-brand .brand__tld {
    color: #FFFFFF;
    font-weight: inherit;
}

.footer-brand .mark--tile {
    width: 28px;
    height: 28px;
    border-radius: 8px;
}

.footer-brand .mark--tile svg {
    width: 15px;
    height: 15px;
}

.footer-about__text {
    font-size: 0.8125rem;
    line-height: 1.6;
    color: var(--footer-text);
}

.footer-about .site-notice {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: var(--footer-muted);
}

.footer-about .site-notice p {
    margin: 0;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.footer-col__title {
    color: #FFFFFF;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 4px;
}

.footer-links {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    text-decoration: underline;
    text-decoration-color: transparent;
}

.footer-links a:hover {
    text-decoration-color: currentColor;
}

.footer-extra:empty {
    display: none;
}

.footer-rule {
    height: 1px;
    margin: 24px 0 16px;
    background: var(--footer-line);
    border: 0;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.75rem;
    color: var(--footer-muted);
}

.footer-sites ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 0;
    list-style: none;
    padding: 0;
}

.footer-sites li + li::before {
    content: '\00B7';
    padding: 0 8px;
}

.footer-sites a {
    color: var(--footer-muted);
}

/* The badge component carries inline centring meant for the older footers. */
.main-footer .ai-usage-scale {
    color: var(--footer-muted);
    text-align: left !important;
}

.main-footer .ai-usage-scale a {
    justify-content: flex-start !important;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        font-size: 0.8125rem;
    }
}

@media (min-width: 1280px) {
    .main-footer {
        margin-top: 72px;
        padding-block: 56px 40px;
    }

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

    .footer-about {
        grid-column: span 4;
    }

    .footer-col {
        grid-column: span 2;
    }

    .footer-grid--3 .footer-col {
        grid-column: span 2;
    }

    .footer-grid--3 .footer-col:last-child {
        grid-column: span 4;
    }

    .footer-about__text {
        font-size: 0.875rem;
    }

    .footer-rule {
        margin: 32px 0 20px;
    }
}

/* ------------------------------------------------------ motion and print */

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

@media print {
    [data-ui="registry"] body {
        background: #FFFFFF;
        color: #000000;
        font-size: 11pt;
    }

    .topbar,
    .site-header__actions,
    .site-menu,
    .menu-button,
    .flash-area,
    .legal-note,
    .footer-grid .footer-col,
    .footer-extra,
    .footer-sites,
    .a11y-root,
    .skip-link,
    .no-print,
    [data-print],
    [data-share],
    [data-copy] {
        display: none !important;
    }

    .site-header,
    .main-footer {
        background: none;
        color: #000000;
        border: 0;
    }

    .main-footer {
        margin-top: 24px;
        padding: 12px 0 0;
        border-top: 1px solid #000000;
    }

    .main-footer a,
    .footer-about__text,
    .footer-about .site-notice,
    .footer-bottom {
        color: #000000;
    }

    .card,
    .disclosure {
        break-inside: avoid;
        border-color: #999999;
    }

    .prose a[href^="http"]::after {
        content: ' (' attr(href) ')';
        font-size: 0.85em;
    }
}
