/*
 * domainops theme "Swiss Registry" — sits on top of the unmodified pico 2.1.1.
 *
 * Design source: Google Stitch screen "Typographic Registry - Search & Sort
 * (Variant 3)". Swiss typography: Inter, black on near-white, oversized domain
 * names, 10px micro labels, no radii, no shadows.
 *
 * How it hooks into pico: pico reads almost everything from --pico-* custom
 * properties. Its light-scheme colours live under
 * ":root:not([data-theme=dark]), [data-theme=light]"; this file uses the same
 * selector, so equal specificity plus later load order wins. That selector also
 * outranks pico's responsive ":root { --pico-font-size }" media rules, which is
 * what pins the base size to 14px at every width.
 */

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    /* Latin subset of Inter 4.1 (variable), self-hosted: no request to Google. */
    src: url("../fonts/inter/InterVariable-latin.woff2") format("woff2");
}

@font-face {
    font-family: "Bebas Neue";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    /* Latin subset of Bebas Neue 2.000 (OFL), self-hosted like Inter. */
    src: url("../fonts/bebas-neue/BebasNeue-latin.woff2") format("woff2");
}

:root:not([data-theme=dark]),
[data-theme=light] {
    --do-bg: #f8f9fa;
    --do-ink: #000;
    --do-muted: #666;
    --do-alert: #ae2f34;
    /* Muted green for "aktuell": 5.8:1 on --do-bg, close to the red's 6.1:1. */
    --do-ok: #3d6b4f;
    /* Ochre for "noch nicht geprüft": 5:1 on --do-bg. Hue 42°, far enough from the
       red (358°) to tell apart; a reddish orange (25°) read as a second red. */
    --do-pending: #8f6400;
    --do-rule: #dcdcdc;
    --do-shell: 896px;
    --do-font-display: "Bebas Neue", "Inter", system-ui, sans-serif;

    --pico-font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --pico-font-family-sans-serif: var(--pico-font-family);
    /* 14px at the browser default. Every font size in this file is written in rem
       against this base, e.g. calc(32rem / 14) = 32px, so the whole scale follows a
       larger browser font setting. */
    --pico-font-size: 87.5%; /* 14px */
    --pico-line-height: 1.6;
    --pico-font-weight: 400;
    --pico-border-radius: 0;
    --pico-box-shadow: none;
    --pico-card-box-shadow: none;
    --pico-typography-spacing-vertical: 1.5rem;

    --pico-background-color: var(--do-bg);
    --pico-color: var(--do-ink);
    --pico-h1-color: var(--do-ink);
    --pico-h2-color: var(--do-ink);
    --pico-h3-color: var(--do-ink);
    --pico-muted-color: var(--do-muted);
    --pico-muted-border-color: var(--do-rule);
    --pico-table-border-color: var(--do-rule);

    --pico-primary: var(--do-ink);
    --pico-primary-background: var(--do-ink);
    --pico-primary-border: var(--do-ink);
    --pico-primary-underline: rgba(0, 0, 0, 0.35);
    --pico-primary-hover: var(--do-ink);
    --pico-primary-hover-background: #333;
    --pico-primary-hover-border: #333;
    --pico-primary-hover-underline: var(--do-ink);
    --pico-primary-focus: rgba(0, 0, 0, 0.2);
    --pico-primary-inverse: #fff;
    --pico-secondary: var(--do-muted);
    --pico-secondary-hover: var(--do-ink);

    --pico-form-element-background-color: transparent;
    --pico-form-element-active-background-color: transparent;
    --pico-form-element-border-color: var(--do-ink);
    --pico-form-element-active-border-color: var(--do-ink);
    --pico-form-element-focus-color: transparent;
    --pico-form-element-spacing-horizontal: 0;

    --pico-mark-background-color: transparent;
    --pico-mark-color: inherit;
}

/* Reserve the scrollbar's width at all times: otherwise opening a registry entry
   that makes the page scroll shows the scrollbar and the centred content jumps
   sideways by its width. */
html {
    scrollbar-gutter: stable;
}

body {
    /* Inter's variable font would pick a tighter optical size from 16px up; the
       Stitch design was drawn with Google's Inter, which renders the text cut.
       Pinning the default optical size keeps the tight tracking legible. */
    font-optical-sizing: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--do-ink);
    color: #fff;
}

:focus-visible {
    outline: 2px solid var(--do-ink);
    outline-offset: 2px;
    box-shadow: none;
}

/* ---- Page frame ---------------------------------------------------------- */

.shell {
    max-width: var(--do-shell);
    margin-inline: auto;
    padding: 96px 24px;
}

.shell--narrow {
    max-width: 480px;
}

/* ---- Type scale ------------------------------------------------------------ */

/* Page titles (<h1>) — the design's large step, shared with "Neue Domain" and the
   fleet summary. Domain names in the list are set much smaller (.registry__name). */
.display {
    font-size: calc(32rem / 14); /* 32px */
    line-height: 1;
    letter-spacing: -0.04em;
    font-weight: 700;
    /* Long domain names wrap instead of pushing the page sideways. */
    overflow-wrap: anywhere;
}

/* The detail page's title links to the site: keep the title's ink and show the
   link only on hover/focus, like the other text links. */
.display__link {
    color: inherit;
    text-decoration: none;
}

.display__link:hover,
.display__link:focus-visible {
    text-decoration: underline;
}

.headline {
    font-size: calc(24rem / 14); /* 24px */
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-weight: 400;
}

.micro,
.section-label,
label,
th {
    font-size: calc(10rem / 14); /* 10px */
    font-weight: 700;
    line-height: 1.6;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--do-muted);
}

h1, h2, h3 {
    margin-bottom: 1.5rem;
}

.section-label {
    margin: 64px 0 16px;
}

@media (max-width: 767px) {
    .shell {
        padding: 48px 24px;
    }
}

.icon {
    width: 1.25em;
    height: 1.25em;
    stroke-width: 1.5;
    flex: none;
    vertical-align: -0.25em;
}

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

/* Declared before the blocks below on purpose: their element classes restyle a link
   button (size, colour) with the same specificity and win by coming later. */
/* A form button that reads as a text link (logout, delete, re-scan). */
.link-button {
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    cursor: pointer;
}

.link-button:hover,
.link-button:focus {
    background: none;
    color: var(--do-ink);
}

/* Destructive variant (delete): turns the alert red under the pointer or keyboard
   focus, so a destructive click is recognisable before it happens. */
.link-button--danger:hover,
.link-button--danger:focus-visible {
    color: var(--do-alert);
}

/* ---- Page title with a close control ------------------------------------- */

/* A title with a control at its right edge (the new-domain form's close X). The row
   takes over the title's bottom margin so the icon centres on the title itself. */
.page-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 1.5rem;
}

.page-title__heading {
    margin-bottom: 0;
}

/* ---- Header & navigation ----------------------------------------------- */

.site-header {
    margin-bottom: 128px;
}

/* The wordmark matches the page titles (32px), so the header reads as one line of
   the same typographic scale. */
.site-header__wordmark {
    display: block;
    margin-bottom: 16px;
    font-size: calc(32rem / 14); /* 32px */
    line-height: 1;
    text-transform: uppercase;
    color: var(--do-ink);
    text-decoration: none;
}

.site-header__nav {
    display: flex;
    flex-wrap: wrap;
    /* pico sets nav { justify-content: space-between }; the meta line is left-aligned. */
    justify-content: flex-start;
    align-items: center;
    gap: 16px 32px;
}

.site-header__form {
    margin: 0;
}

.site-header__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: calc(10rem / 14); /* 10px */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--do-muted);
    text-decoration: none;
}

.site-header__link[aria-current="page"],
.site-header__link:hover {
    color: var(--do-ink);
}

/* ---- Footer ------------------------------------------------------------- */

.site-footer {
    margin-top: 192px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 48px;
}

.site-footer__fleet-status {
    margin: 8px 0 0;
    font-size: calc(32rem / 14); /* 32px */
    line-height: 1.1;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

/* ---- Buttons, links, forms --------------------------------------------- */

button,
[role="button"],
input[type="submit"] {
    width: auto;
    padding: 16px 24px;
    font-size: calc(10rem / 14); /* 10px */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.text-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 32px;
    margin-top: 24px;
}

.text-actions__form {
    margin: 0;
}

/* Links and link buttons (.text-actions__link) and the filled primary button
   (.text-actions__button) share the micro type. */
.text-actions__link,
.text-actions__button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: calc(10rem / 14); /* 10px */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
}

.text-actions__link {
    color: var(--do-ink);
    /* Long link text (a URL has no spaces) would otherwise push the page wider than a phone. */
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}

/* A plain submit button here is a primary action: it keeps pico's fill and white
   text (an ink colour would be black on black) but must not inherit pico's
   full-width sizing. The element name is needed: pico's button[type=submit] rule
   (0,1,1) out-ranks a single class. */
button.text-actions__button {
    width: auto;
    padding: 12px 20px;
}

.text-actions__link:hover {
    text-decoration: underline;
}

/* Inputs: no box, a single black rule underneath. */
input:not([type="checkbox"], [type="radio"], [type="submit"], [type="button"]),
select,
textarea {
    border-width: 0 0 1px;
    border-radius: 0;
    padding-inline: 0;
    font-size: 1rem;
    color: var(--do-ink);
}

label input:not([type="checkbox"], [type="radio"]),
label select,
label textarea {
    margin-top: 6px;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
}

/* Focus on a field: the bottom rule thickens to 2px instead of a box around the
   whole field. The shadow sits below the 1px border, so nothing shifts. */
input:not([type="checkbox"], [type="radio"], [type="submit"], [type="button"]):focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 1px 0 0 var(--do-ink);
}

/* The checkbox keeps an outline (it has no bottom rule to thicken), at 1px to match
   the lighter field focus. */
input[type="checkbox"]:focus-visible {
    outline-width: 1px;
}

/* ---- Field help ----------------------------------------------------------------- */

/* A collapsed explanation under a form field: one micro-type line until opened. */
.help {
    margin: 0 0 var(--pico-spacing);
}

.help__summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: calc(10rem / 14); /* 10px */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    list-style: none;
}

/* Two classes: pico colours "details summary:not([role])" (0,1,2), which a single
   class would lose to. */
.help > .help__summary {
    color: var(--do-muted);
}

.help > .help__summary:hover,
.help[open] > .help__summary {
    color: var(--do-ink);
}

/* pico draws a chevron after <summary>; the question mark is the affordance here. */
.help__summary::after,
.help__summary::-webkit-details-marker {
    display: none;
}

.help__list {
    margin: 12px 0 0;
}

.help__term {
    margin: 12px 0 2px;
    font-weight: 700;
}

.help__text {
    margin: 0;
    color: var(--do-muted);
}

.help > .help__text {
    margin-top: 12px;
}

/* ---- Custom dropdown (public/js/select.js) ---------------------------------- */

/* Built by the script around a hidden native <select data-select>. The combobox
   looks like the other fields: text on a single black rule, a chevron at the end. */
.select {
    position: relative;
    margin-bottom: var(--pico-spacing);
}

.select__combobox {
    padding: var(--pico-form-element-spacing-vertical) 1.75rem var(--pico-form-element-spacing-vertical) 0;
    border-bottom: 1px solid var(--do-ink);
    font-size: 1rem;
    line-height: var(--pico-line-height);
    color: var(--do-ink);
    cursor: pointer;
    user-select: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgb(0, 0, 0)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right center / 1.25rem no-repeat;
}

.select__combobox[aria-expanded="true"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgb(0, 0, 0)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m18 15-6-6-6 6'/%3E%3C/svg%3E");
}

/* Same focus as the text fields: the rule thickens, no box. */
.select__combobox:focus-visible {
    outline: none;
    box-shadow: 0 1px 0 0 var(--do-ink);
}

.select__listbox {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 10;
    margin: 0;
    padding: 0;
    list-style: none;
    background: var(--do-bg);
    border: 1px solid var(--do-ink);
    border-top: 0;
}

.select__option {
    margin: 0;
    padding: 12px 16px;
    list-style: none;
    cursor: pointer;
}

.select__option[aria-selected="true"] {
    font-weight: 700;
}

/* The highlighted option (keyboard or pointer) is inverted, like text selection. */
.select__option--active {
    background: var(--do-ink);
    color: #fff;
}

/* A ticked checkbox: black tick on the page background, not pico's black fill with
   a white tick. The tick is pico's own polyline, stroked in ink. */
input[type="checkbox"]:checked,
input[type="checkbox"]:checked:active,
input[type="checkbox"]:checked:focus {
    --pico-background-color: transparent;
    --pico-border-color: var(--do-ink);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgb(0, 0, 0)' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
}

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
    border-color: var(--do-alert);
}

/* ---- Messages ----------------------------------------------------------- */

.alert {
    margin: 32px 0;
    padding-left: 24px;
    border-left: 2px solid var(--do-ink);
}

.alert--danger {
    border-left-color: var(--do-alert);
    color: var(--do-alert);
}

/* ---- Status words -------------------------------------------------------- */

.status {
    font-size: calc(10rem / 14); /* 10px */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

.status--muted { color: var(--do-muted); }
.status--strong { color: var(--do-ink); }
.status--alert { color: var(--do-alert); }
.status--ok { color: var(--do-ok); }
.status--pending { color: var(--do-pending); }

/* Only the colour, in running type: the history's status column. */
.status--inline {
    font-size: inherit;
    font-weight: inherit;
    text-transform: none;
    letter-spacing: inherit;
}

/* The status as the headline of the detail page. */
.status--large {
    font-size: inherit;
    letter-spacing: -0.02em;
}

/* ---- Registry list -------------------------------------------------------- */

.registry {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    /* Tight rows: a domain name is one 16px line, and the list should show many. */
    gap: 16px;
}

.registry__item {
    list-style: none;
    margin: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 24px;
    align-items: start;
}

.registry__details {
    margin: 0;
    border: 0;
    padding: 0;
}

.registry__summary {
    display: block;
    list-style: none;
    cursor: pointer;
    color: var(--do-ink);
}

/* pico's own summary:focus-visible rule (outline in its faint focus colour, 1px
   wide in practice) out-ranks the global :focus-visible rule above, so the
   registry entry restates the 2px ink outline and keeps the name black. */
.registry__summary:focus-visible:not([role]) {
    outline: 2px solid var(--do-ink);
    outline-offset: 2px;
    color: var(--do-ink);
}

/* pico draws a chevron after <summary>; the oversized name is the affordance. */
.registry__summary::after,
.registry__summary::-webkit-details-marker {
    display: none;
}

/* Domain names as in the Stitch registry: 16px Inter, regular weight, tight
   tracking; the open entry turns heavy. */
.registry__name {
    font-size: calc(16rem / 14); /* 16px */
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: -0.05em;
    /* Long domain names wrap instead of pushing the page sideways. */
    overflow-wrap: anywhere;
}

.registry__team {
    display: block;
}

.registry__details[open] .registry__name {
    font-weight: 800;
}

.registry__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    /* As tall as the name's first line (16px x 1.6), so badges and icons sit centred
       on it instead of on the top edge. */
    min-height: calc(25.6rem / 14);
}

/* Without this the delete <form> is a block box whose button sits on a text
   baseline, a few pixels above the edit link beside it. */
.registry__form {
    display: flex;
    margin: 0;
}

.icon-link {
    display: inline-flex;
    align-items: center;
    color: var(--do-ink);
    /* 0.6 of black on #f8f9fa is about 5.6:1; the former 0.3 gave 2.1:1 and failed
       WCAG 1.4.11 (3:1 for UI components). Full ink on hover/focus. */
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

/* 18px: a touch larger than the 16px names, so the icons read as controls without
   outweighing the entry they belong to. */
.icon-link__icon {
    width: 18px;
    height: 18px;
}

/* Only the control under the pointer (or with keyboard focus) lights up, not both
   icons of the row. */
.icon-link:hover,
.icon-link:focus-visible {
    opacity: 1;
}

/* Beside a 32px title the 18px icon looks lost; 24px balances it. */
.page-title__icon {
    width: 24px;
    height: 24px;
}

/* Destructive variant (trash icons): red under the pointer or keyboard focus, like
   .link-button--danger. */
.icon-link--danger:hover,
.icon-link--danger:focus-visible {
    color: var(--do-alert);
}

/* Touch screens have no hover to reveal the icons, so show them at full strength. */
@media (hover: none) {
    .icon-link {
        opacity: 1;
    }
}

/* ---- Expanded details ------------------------------------------------------ */

.rail {
    margin: 16px 0 32px 4px;
    padding-left: 32px;
    border-left: 2px solid var(--do-ink);
}

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

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

.facts__term {
    margin-bottom: 8px;
    font-size: calc(10rem / 14); /* 10px */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--do-muted);
}

.facts__value {
    margin: 0;
    font-variant-numeric: tabular-nums;
}

/* ---- New entry -------------------------------------------------------------- */

.new-entry {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-top: 48px;
    font-size: calc(32rem / 14); /* 32px */
    letter-spacing: -0.04em;
    text-transform: uppercase;
    color: var(--do-muted);
    text-decoration: none;
}

.new-entry:hover,
.new-entry:focus-visible {
    color: var(--do-ink);
}

@media (max-width: 767px) {
    /* A row can carry two status badges plus two icons ("Sicherheitsupdate",
       "Agent verstummt"); beside the name they squeezed it to a letter per line.
       Below 768px the actions drop under the entry and may wrap instead. */
    .registry {
        /* Status and icons sit 12px under their name here; a wider gap between
           entries keeps them visibly grouped with that name. */
        gap: 32px;
    }

    .registry__item {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 12px;
    }

    .registry__actions {
        flex-wrap: wrap;
    }
}

/* ---- Detail page history ------------------------------------------------------ */

/* The seven-column history is wider than a phone; it scrolls inside this box so the
   page itself never scrolls sideways. Positioned so the absolutely placed visually-hidden
   header text stays inside the box instead of widening the page. */
.history {
    position: relative;
    overflow-x: auto;
}

.history__table {
    font-variant-numeric: tabular-nums;
}

.history__table th {
    border-bottom: 1px solid var(--do-ink);
    background: none;
}

.history__table td {
    border-bottom: 1px solid var(--do-rule);
    background: none;
}

.history__form {
    margin: 0;
}

/* Header text for screen readers only (the delete column has no visible title). */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---- Inbox ------------------------------------------------------------------------ */

.inbox {
    list-style: none;
    margin: 32px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.inbox__item {
    list-style: none;
    margin: 0;
    /* Text left, check and trash right — the same layout as a registry row. */
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 24px;
    align-items: start;
}

.inbox__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.inbox__form {
    display: flex;
    margin: 0;
}

/* The state of a read row: green like "aktuell", not a control. */
.inbox__read {
    display: inline-flex;
    color: var(--do-ok);
}

/* Same size as the icon buttons beside it (.icon-link__icon). */
.inbox__icon {
    width: 18px;
    height: 18px;
}

.inbox__title {
    margin: 0;
}

.inbox__meta {
    margin: 8px 0 0;
}

.inbox__item--read .inbox__title {
    color: var(--do-muted);
}

/* ---- Domain list tools (search, filters, sorting) ----------------------------- */

/* One fine line above the list, as in the Stitch design; wraps on a phone. */
.list-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    margin: 0 0 48px;
}

/* The micro label sits inline before its control (the global label style puts
   inputs below their label). */
.list-tools__field {
    margin: 0;
}

/* A label and its control never wrap apart. */
.list-tools__group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

/* The search takes a line of its own; filters and sorting follow below it. */
.list-tools__group--search {
    flex-basis: 100%;
}

/* Two classes plus the element: pico styles search fields with
   input:not(…)[type=search] (0,2,1) — icon, rounded corners, tall padding. */
.list-tools input.list-tools__search {
    width: min(24rem, 100%);
    height: auto;
    margin: 0;
    padding: 2px 0;
    border-radius: 0;
    background-image: none;
    font-size: calc(13rem / 14); /* 13px */
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
}

/* With JavaScript the changes apply at once (public/js/list-tools.js). */
.list-tools--live .list-tools__apply {
    display: none;
}

.list-tools__count {
    margin-left: auto;
}

/* ---- Compact dropdown (data-select="compact") ---------------------------------- */

.select--compact {
    display: inline-block;
    margin: 0;
}

.select--compact .select__combobox {
    padding: 2px 1.25rem 2px 0;
    font-size: calc(10rem / 14); /* 10px */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background-size: 0.9rem;
    white-space: nowrap;
}

.select--compact .select__listbox {
    right: auto;
    min-width: 12rem;
    border-top: 1px solid var(--do-ink);
}

/* ---- Admin tabs (Benutzer · Teams) ------------------------------------------ */

.admin-tabs {
    margin: 0 0 48px;
    /* pico sets nav { justify-content: space-between }; the tabs sit side by side. */
    justify-content: flex-start;
}

/* The other list is muted; the current one in ink. Declared after .text-actions__link. */
.admin-tabs__link {
    color: var(--do-muted);
}

.admin-tabs__link[aria-current="page"] {
    color: var(--do-ink);
}

/* ---- Display face for titles ------------------------------------------------- */

/*
 * Titles are set in Bebas Neue: the wordmark, every page title (<h1>), the fleet
 * summary and "Neue Domain". Kept as the last section on purpose, so it wins over
 * the earlier per-component rules (.display, .site-footer__fleet-status, .new-entry)
 * that set Inter's tight tracking.
 *
 * Bebas has capitals only and a single weight: weight 400 prevents a synthesised
 * bold, and the negative tracking tuned for Inter is reset because Bebas is
 * already condensed. The domain names in the list (.registry__name) stay in Inter:
 * lower-case hostnames are easier to scan than all-caps ones.
 */
.site-header__wordmark,
h1,
h1.display,
.site-footer__fleet-status,
.new-entry {
    font-family: var(--do-font-display);
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 0.95;
}
