/* A Cavalcanti Christmas. The room is the Kaffeehaus de Châtillon's own
   salon as its website draws it: a crimson damask wall lit from above, ivory
   sheets with a gilt double border, dark panelling under a gilt rail, set in
   Libre Caslon with a copperplate script. Christmas is hung on that room
   rather than painted over it: a string of blinking C7 lights along the
   picture rail, the house shield in a holly wreath, holly on the rules, and
   snow. */

:root {
    --red: #8a1524;
    --red-deep: #650d18;
    --wall: #650d18;
    --wall-deep: #3d070e;
    --on-wall: #f7eedc;
    --wood: #1c100d;
    --paper: #fbf7ee;
    --paper-deep: #f4ecdc;
    --ink: #2a1a14;
    --ink-soft: #5d4b40;
    --gilt: #a98134;
    --gilt-pale: #dfc078;
    --gilt-faint: #f4e8c8;
    --leaf: #1f5a3c;
    --pine: #14402f;
    --pine-deep: #0f2f22;
    --gilt-moulding: linear-gradient(
        180deg,
        #6f5221,
        #f4e8c8 24%,
        #c0963f 50%,
        #8c692a 72%,
        #dfc078 90%,
        #523c17
    );
    --display: "Libre Caslon Display", "Libre Caslon Text", Georgia, serif;
    --text: "Libre Caslon Text", "Baskerville", Georgia, serif;
    --script: "Pinyon Script", "Snell Roundhand", "Apple Chancery", cursive;
    --frame: 44px; /* how far the corner scrolls reach in */
    --frame-inset: 5px; /* gap between the paper edge and the frame */
    --lights: 40px;
}

* {
    box-sizing: border-box;
}
html {
    -webkit-text-size-adjust: 100%;
}
body {
    margin: 0;
    position: relative;
    background:
        radial-gradient(
            ellipse 90% 60rem at 50% 0,
            rgba(255, 214, 170, 0.18),
            transparent 70%
        ),
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.28),
            transparent 18%,
            transparent 82%,
            rgba(0, 0, 0, 0.28)
        ),
        url("/static/damask.svg") center top / 120px 168px,
        var(--wall);
    color: var(--ink);
    font-family: var(--text);
    font-size: 17px;
    line-height: 1.75;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
@media (max-width: 380px) {
    body {
        font-size: 16px;
    }
}
a {
    color: var(--red);
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}
a:hover {
    color: var(--red-deep);
}
:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 3px;
}

/* The picture rail, and a string of C7 lights clipped along it. The unlit
   string is one tile; each of the ten bulbs in a run is lit by its own layer
   so they blink out of step, the way an old set on bimetal flashers does. */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--gilt-moulding);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.45);
    z-index: 2;
}
.lights {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: url("/static/lights.svg") 0 0 / 180px 48px repeat-x;
    pointer-events: none;
    z-index: 2;
}
.lights i {
    position: absolute;
    inset: 0;
    background-size: 360px 48px;
    background-repeat: repeat-x;
    mix-blend-mode: screen;
}
@media (prefers-reduced-motion: no-preference) {
    .lights i {
        animation: blink 3s linear infinite;
    }
}
@keyframes blink {
    0%,
    58% {
        opacity: 1;
    }
    62%,
    92% {
        opacity: 0;
    }
    97%,
    100% {
        opacity: 1;
    }
}
.lights i:nth-child(1) {
    background-image: url("/static/light-red.svg");
    background-position: -162px 0;
    animation-duration: 2.3s;
    animation-delay: -0.4s;
}
.lights i:nth-child(2) {
    background-image: url("/static/light-green.svg");
    background-position: -126px 0;
    animation-duration: 3.1s;
    animation-delay: -1.9s;
}
.lights i:nth-child(3) {
    background-image: url("/static/light-orange.svg");
    background-position: -90px 0;
    animation-duration: 2.7s;
    animation-delay: -0.9s;
}
.lights i:nth-child(4) {
    background-image: url("/static/light-blue.svg");
    background-position: -54px 0;
    animation-duration: 3.7s;
    animation-delay: -2.8s;
}
.lights i:nth-child(5) {
    background-image: url("/static/light-yellow.svg");
    background-position: -18px 0;
    animation-duration: 2.9s;
    animation-delay: -1.3s;
}
.lights i:nth-child(6) {
    background-image: url("/static/light-red.svg");
    background-position: 18px 0;
    animation-duration: 3.3s;
    animation-delay: -0.2s;
}
.lights i:nth-child(7) {
    background-image: url("/static/light-green.svg");
    background-position: 54px 0;
    animation-duration: 4.1s;
    animation-delay: -3.1s;
}
.lights i:nth-child(8) {
    background-image: url("/static/light-orange.svg");
    background-position: 90px 0;
    animation-duration: 2.5s;
    animation-delay: -1.6s;
}
.lights i:nth-child(9) {
    background-image: url("/static/light-blue.svg");
    background-position: 126px 0;
    animation-duration: 3.5s;
    animation-delay: -2.2s;
}
.lights i:nth-child(10) {
    background-image: url("/static/light-yellow.svg");
    background-position: 162px 0;
    animation-duration: 3.9s;
    animation-delay: -0.7s;
}

/* Snow, in two depths, drifting past the window. Purely decorative, and
   still for anyone who has asked for less motion. */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    opacity: 0.75;
    background-image:
        radial-gradient(circle, #fff 0 1.6px, transparent 2.2px),
        radial-gradient(circle, #fff 0 1.2px, transparent 1.8px),
        radial-gradient(circle, rgba(255, 255, 255, 0.8) 0 2.4px, transparent 3.2px),
        radial-gradient(circle, rgba(255, 255, 255, 0.7) 0 1px, transparent 1.6px);
    background-size:
        170px 170px,
        230px 230px,
        310px 310px,
        130px 130px;
    background-position:
        20px 0,
        110px 60px,
        200px 30px,
        60px 100px;
}
@media (prefers-reduced-motion: no-preference) {
    body::after {
        animation: snowfall 28s linear infinite;
    }
}
@keyframes snowfall {
    to {
        background-position:
            60px 510px,
            70px 750px,
            260px 650px,
            40px 490px;
    }
}

.page {
    flex: 1;
    width: 100%;
    max-width: 740px;
    margin: 0 auto;
    padding: calc(var(--lights) + clamp(20px, 4vw, 44px))
        clamp(10px, 3vw, 24px) 24px;
}

/* The card ----------------------------------------------------------------
   Paper, a gilt double fillet with acanthus corners drawn by a border-image
   overlay, and a soft shadow so it sits on the salon wallpaper. */
.card {
    position: relative;
    background: var(--paper);
    border: 1px solid var(--gilt);
    box-shadow:
        0 0 0 1px var(--wall-deep),
        0 1px 0 rgba(255, 255, 255, 0.7) inset,
        0 28px 56px -22px rgba(0, 0, 0, 0.7),
        0 2px 6px -2px rgba(0, 0, 0, 0.35);
    margin: 0 0 clamp(28px, 5vw, 48px);
}
.card::before {
    content: "";
    position: absolute;
    inset: var(--frame-inset);
    border: var(--frame) solid transparent;
    border-image: url("/static/frame.svg") 40 / var(--frame) stretch;
    pointer-events: none;
    z-index: 1;
}
@media (max-width: 480px) {
    :root {
        --frame: 32px;
        --frame-inset: 4px;
    }
}

.card-head {
    background:
        radial-gradient(
            ellipse 70% 120% at 50% 0,
            rgba(255, 226, 170, 0.16),
            transparent 70%
        ),
        url("/static/damask-pine.svg") center top / 120px 168px,
        var(--pine);
    color: var(--on-wall);
    text-align: center;
    padding: clamp(32px, 6vw, 44px) 24px 22px;
    position: relative;
}
.card-head::after {
    /* a gilt moulding under the band */
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 5px;
    background: var(--gilt-moulding);
}
.card-head .crest {
    display: block;
    margin: 0 auto 10px;
    height: auto;
    filter: drop-shadow(0 0 16px rgba(255, 226, 170, 0.35))
        drop-shadow(0 3px 3px rgba(0, 0, 0, 0.5));
}
.venue-line {
    margin: 0;
    font-family: var(--display);
    font-size: 1.1rem;
    letter-spacing: 0.06em;
    font-variant: small-caps;
    color: var(--gilt-pale);
}

.card-body {
    padding: clamp(24px, 6vw, 40px) clamp(22px, 7vw, 60px)
        clamp(28px, 6vw, 44px);
}
.card > .card-body:last-child {
    padding-bottom: calc(var(--frame) + 16px);
}

.rule {
    border: 0;
    height: 22px;
    margin: 0 clamp(36px, 10vw, 70px);
    background:
        url("/static/fleuron.svg") center / 154px 22px no-repeat,
        linear-gradient(var(--gilt-pale), var(--gilt-pale)) center / 100% 1px
            no-repeat;
}
.rule::after {
    content: none;
}

/* The invitation text: centred, as stationery is --------------------- */
.invite-text {
    text-align: center;
}
.invite-text p {
    margin: 0;
}
.hosts {
    font-family: var(--display);
    font-size: clamp(1.45rem, 4.5vw, 1.7rem);
    line-height: 1.25;
    letter-spacing: 0.01em;
}
.request {
    font-family: var(--script);
    font-size: clamp(1.55rem, 5vw, 1.9rem);
    line-height: 1.3;
    color: var(--ink-soft);
    margin-top: 6px !important;
}
.invite-text h1 {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(2.05rem, 7vw, 2.9rem);
    line-height: 1.12;
    color: var(--red);
    margin: 12px auto 22px;
    max-width: 14em;
    text-wrap: balance;
}
.when {
    font-family: var(--display);
    font-size: clamp(1.2rem, 3.6vw, 1.35rem);
    line-height: 1.4;
}
.where {
    margin-top: 18px !important;
    color: var(--ink-soft);
}

/* Particulars: a definition list, not cards -------------------------- */
.particulars dl {
    margin: 0;
}
.particulars dl > div {
    display: grid;
    grid-template-columns: 7.5em 1fr;
    gap: 0 22px;
    padding: 11px 0;
    border-top: 1px dotted var(--gilt-pale);
}
.particulars dl > div:first-child {
    border-top: 0;
    padding-top: 0;
}
.particulars dt {
    font-family: var(--display);
    font-size: 1.15rem;
    color: var(--leaf);
}
.particulars dd {
    margin: 0;
}
@media (max-width: 480px) {
    .particulars dl > div {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Headings and forms --------------------------------------------------- */
h2,
.page-title {
    font-family: var(--display);
    font-weight: 400;
    font-size: 1.75rem;
    line-height: 1.2;
    margin: 0 0 8px;
}
.page-title {
    font-size: clamp(1.9rem, 6vw, 2.2rem);
    margin-bottom: 4px;
}
h2.script {
    font-family: var(--script);
    font-weight: 400;
    font-size: clamp(2.2rem, 7vw, 2.7rem);
    line-height: 1.15;
    color: var(--red);
    margin-bottom: 10px;
    text-align: center;
}
.lede {
    margin: 0 0 22px;
    color: var(--ink-soft);
}

.form {
    display: grid;
    gap: 20px;
}
.field {
    display: grid;
    gap: 6px;
    align-content: start;
}
.field > span,
.field legend {
    font-family: var(--display);
    font-size: 1.1rem;
}
.field small {
    font-family: var(--text);
    font-size: 0.82rem;
    color: var(--ink-soft);
    margin-left: 6px;
}
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    font: inherit;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--gilt);
    box-shadow: inset 0 1px 2px rgba(0, 12, 16, 0.08);
    border-radius: 0;
    padding: 11px 13px;
    width: 100%;
}
input:focus,
textarea:focus {
    border-color: var(--red);
    outline: 2px solid var(--red);
    outline-offset: 0;
}
textarea {
    resize: vertical;
}

fieldset.party {
    border: 0;
    padding: 0;
    margin: 0;
    min-width: 0;
}
fieldset.party legend {
    padding: 0;
    margin-bottom: 6px;
}
.choice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 13px;
    border: 1px solid var(--gilt);
    background: #fff;
    cursor: pointer;
}
.choice + .choice {
    margin-top: -1px;
}
.choice input {
    accent-color: var(--red);
    width: 18px;
    height: 18px;
    margin: 0;
    flex: none;
}
.choice span {
    flex: 1;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}
.choice em {
    font-style: normal;
    font-family: var(--display);
    color: var(--red);
}
.choice:has(input:checked) {
    border-color: var(--red);
    box-shadow: inset 0 0 0 1px var(--red);
    background: var(--paper);
    position: relative;
}
.field-stack {
    display: grid;
    gap: 20px;
    align-content: start;
}
.guest-field {
    display: none;
}
.form:has(input[name="party"][value="2"]:checked) .guest-field {
    display: grid;
}

/* A red seal with a gilt fillet inside its edge */
.button {
    font-family: var(--display);
    font-size: 1.2rem;
    background: var(--red);
    color: #fff;
    border: 1px solid var(--red-deep);
    box-shadow:
        inset 0 0 0 2px var(--red),
        inset 0 0 0 3px var(--gilt),
        0 4px 10px -6px rgba(61, 7, 14, 0.8);
    padding: 13px 26px;
    cursor: pointer;
    justify-self: start;
    border-radius: 0;
}
.button:hover {
    background: var(--red-deep);
    box-shadow:
        inset 0 0 0 2px var(--red-deep),
        inset 0 0 0 3px var(--gilt-pale);
}
/* A quieter button for secondary actions, such as emailing oneself the link */
.button.secondary {
    font-size: 1rem;
    background: transparent;
    color: var(--red-deep);
    box-shadow: none;
    padding: 9px 18px;
}
.button.secondary:hover {
    background: #fbeeee;
    box-shadow: none;
}
@media (max-width: 480px) {
    .form > .button {
        justify-self: stretch;
    }
}

.trap {
    position: absolute;
    left: -9999px;
    top: -9999px;
}
.fine {
    font-size: 0.88rem;
    color: var(--ink-soft);
    margin: 0;
}
.keep {
    margin-top: 26px;
}

.error,
.flash,
.notice {
    margin: 0 0 20px;
    padding: 12px 16px;
    border: 1px solid var(--red);
    border-left-width: 4px;
    background: #fbeeee;
}
.flash,
.notice {
    border-color: var(--gilt);
    background: var(--gilt-faint);
}

/* Registration page ---------------------------------------------------- */
.status {
    font-family: var(--display);
    font-size: 1.25rem;
    color: var(--red);
    margin: 0 0 24px;
}
.status.paid {
    color: var(--leaf);
}
.details {
    margin: 0 0 26px;
}
.details > div {
    display: grid;
    grid-template-columns: 7.5em 1fr;
    gap: 0 22px;
    padding: 9px 0;
    border-top: 1px dotted var(--gilt-pale);
}
.details > div:last-child {
    border-bottom: 1px dotted var(--gilt-pale);
}
.details dt {
    font-family: var(--display);
    font-size: 1.1rem;
    color: var(--ink-soft);
}
.details dd {
    margin: 0;
}
@media (max-width: 480px) {
    .details > div {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* The games ---------------------------------------------------------------- */
.games {
    text-align: center;
}
.games .fine {
    margin-top: 16px;
    font-style: italic;
}
.games .lede {
    max-width: 30em;
    margin-left: auto;
    margin-right: auto;
}
.trials {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--gilt-pale);
    background: var(--paper-deep);
}
.trials li {
    padding: 18px 14px 20px;
}
.trials li + li {
    border-left: 1px solid var(--gilt-pale);
}
.trials .numeral {
    display: block;
    font-family: var(--display);
    font-size: 1rem;
    letter-spacing: 0.2em;
    color: var(--gilt);
}
.trials h3 {
    font-family: var(--display);
    font-weight: 400;
    font-size: 1.45rem;
    line-height: 1.2;
    color: var(--leaf);
    margin: 2px 0 6px;
}
.trials p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--ink-soft);
}
@media (max-width: 560px) {
    .trials {
        grid-template-columns: 1fr;
    }
    .trials li + li {
        border-left: 0;
        border-top: 1px solid var(--gilt-pale);
    }
}

/* Riddle ----------------------------------------------------------------- */
.riddle {
    padding: clamp(28px, 6vw, 36px) clamp(30px, 8vw, 56px);
    text-align: center;
    background: var(--paper-deep);
}
.riddle h2 {
    font-size: 1.35rem;
}
.verse {
    font-family: var(--text);
    font-style: italic;
    font-size: 1.2rem;
    line-height: 1.5;
    margin: 8px 0 14px;
}

/* Tables ------------------------------------------------------------------ */
.guests {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    line-height: 1.5;
}
.guests th,
.guests td {
    text-align: left;
    padding: 10px 10px;
    border-bottom: 1px solid var(--gilt-pale);
    vertical-align: top;
}
.guests th {
    font-family: var(--display);
    font-weight: 400;
    font-size: 1.05rem;
    color: var(--red);
    border-bottom-color: var(--gilt);
    white-space: nowrap;
}
.guests tr.paid td[data-label="Status"] {
    color: var(--leaf);
}

/* The music button: a small brass tab in the corner. It says "Music" until
   pressed, then names the piece. Hidden until music.js shows it, and absent
   from the hosts' pages. */
.music {
    position: fixed;
    right: 14px;
    bottom: 14px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px 8px 11px;
    font-family: var(--display);
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    line-height: 1;
    color: var(--gilt-pale);
    background: rgba(28, 16, 13, 0.88);
    border: 1px solid var(--gilt);
    border-radius: 999px;
    box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.7);
    cursor: pointer;
    opacity: 0.85;
}
.music[hidden],
body:has(.admin) .music {
    display: none;
}
.music:hover,
.music:focus-visible,
.music[aria-pressed="true"] {
    opacity: 1;
    color: var(--on-wall);
}
.music:focus-visible {
    outline-color: var(--gilt-pale);
}
.music .pause,
.music[aria-pressed="true"] .note {
    display: none;
}
.music[aria-pressed="true"] .pause {
    display: block;
}
@media (prefers-reduced-motion: no-preference) {
    .music {
        transition:
            opacity 0.15s ease,
            color 0.15s ease;
    }
}

/* Colophon --------------------------------------------------------------- */
/* Below the wall: dark panelling under a gilt dado rail. */
.colophon {
    text-align: center;
    padding: 0 16px 44px;
    color: #d9cbb3;
    font-size: 0.88rem;
    background: var(--wood);
    position: relative;
    z-index: 4; /* in front of the snow */
}
.colophon::before {
    content: "";
    display: block;
    height: 6px;
    margin: 0 -16px 30px;
    background: var(--gilt-moulding);
}
.colophon p {
    margin: 0 0 8px;
}
.colophon .motto {
    font-family: var(--display);
    font-variant: small-caps;
    letter-spacing: 0.14em;
    color: var(--gilt-pale);
    font-size: 1.05rem;
}
.colophon a {
    color: var(--on-wall);
    text-decoration-color: var(--gilt);
}

@media (prefers-reduced-motion: no-preference) {
    .button {
        transition: background-color 0.15s ease;
    }
}
@media print {
    body {
        background: #fff;
    }
    body::before,
    body::after,
    .lights,
    .music {
        display: none;
    }
    .card {
        box-shadow: none;
    }
    .rsvp,
    .riddle,
    .colophon {
        display: none;
    }
}

/* Public guest list -------------------------------------------------------- */
.names {
    list-style: none;
    padding: 0;
    margin: 18px 0 20px;
    columns: 2;
    column-gap: 32px;
    font-family: var(--display);
    font-size: 1.2rem;
    line-height: 1.7;
}
.names li {
    break-inside: avoid;
}
@media (max-width: 480px) {
    .names {
        columns: 1;
    }
}

/* Admin ----------------------------------------------------------------------
   The admin page takes the whole window. Desktops get the full grid; below
   that each reservation becomes a labelled block, two columns wide on an
   iPad and one on a phone. */
.page:has(.admin) {
    max-width: none;
}
.admin .card-body {
    padding-left: clamp(18px, 4vw, 44px);
    padding-right: clamp(18px, 4vw, 44px);
}
.admin .guests {
    font-size: 0.9rem;
}
.admin .guests td {
    padding: 12px 10px;
}
.admin .guests td {
    overflow-wrap: anywhere;
}
.admin .guests td[data-label="Amount"] {
    overflow-wrap: normal;
}
.admin .guests .email {
    display: block;
    color: var(--ink-soft);
    font-size: 0.85rem;
}
.admin .guests .moved-note {
    display: block;
    font-style: italic;
}
.admin .guests tr.moved td:not(.acts) {
    opacity: 0.55;
}
.admin .guests tr.busy {
    opacity: 0.5;
    pointer-events: none;
}
@media (min-width: 1181px) {
    .admin .guests td[data-label="Guests"] {
        min-width: 17em;
    }
    .admin .guests td[data-label="Note"] {
        min-width: 12em;
    }
    .admin .guests td[data-label="Status"] span {
        display: block;
        white-space: nowrap;
    }
    .admin .guests td[data-label="Spam"] {
        min-width: 9.5em;
    }
    .admin .guests td.acts {
        width: 300px;
    }
}
@media (min-width: 1500px) {
    .admin .guests td.acts {
        width: 420px;
    }
}
@media (min-width: 1800px) {
    /* room for every action on one line */
    .admin .guests td.acts {
        width: 1%;
    }
    .admin .guests .actions {
        flex-wrap: nowrap;
    }
}
.admin .guests td[data-label="Reserved"],
.admin .guests td[data-label="Sent"] {
    white-space: nowrap;
}
.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -8px;
    padding: 0 8px;
}
.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.actions form {
    display: contents;
}
button.link {
    font: inherit;
    color: var(--red);
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}
button.link.danger {
    color: #6b584b;
}
.actions button.link {
    font-size: 0.85rem;
    line-height: 1.2;
    padding: 6px 10px;
    border: 1px solid var(--gilt-pale);
    background: var(--paper);
    color: var(--red);
    text-decoration: none;
    white-space: nowrap;
}
.actions button.link:hover {
    border-color: var(--red);
}
.actions button.link.danger {
    color: #6b584b;
}
.actions button.link.danger:hover {
    border-color: #6b584b;
}

.form.two-col {
    grid-template-columns: 1fr 1fr;
    max-width: 860px;
}
.form.two-col .span {
    grid-column: 1 / -1;
}
@media (max-width: 640px) {
    .form.two-col {
        grid-template-columns: 1fr;
    }
}
h2.sub {
    margin-top: 32px;
    font-size: 1.35rem;
}
code {
    font-size: 0.9em;
    background: var(--gilt-faint);
    padding: 1px 5px;
}

.signout {
    margin: -14px 0 22px;
}
.views {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
    align-items: baseline;
    margin: 0 0 14px;
    border-bottom: 1px solid var(--gilt);
    font-family: var(--display);
    font-size: 1.1rem;
}
.views a {
    padding: 4px 2px 8px;
    margin-bottom: -1px;
    text-decoration: none;
    color: var(--ink-soft);
    border-bottom: 3px solid transparent;
}
.views a:hover {
    color: var(--red);
}
.views a[aria-current="page"] {
    color: var(--red);
    border-bottom-color: var(--red);
}
.views a.export {
    margin-left: auto;
    font-family: var(--text);
    font-size: 0.85rem;
    color: var(--red);
    text-decoration: underline;
}
.views-note {
    margin: 0 0 14px;
}
.admin .guests td[data-label="Spam"] {
    color: var(--ink-soft);
    font-size: 0.85rem;
}
.label-rest[hidden] {
    display: none;
}
.label-rest {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    align-items: baseline;
    margin: 16px 0 0;
}

@media (max-width: 1180px) {
    .admin .guests,
    .admin .guests tbody,
    .admin .guests tr,
    .admin .guests td {
        display: block;
    }
    .admin .guests thead {
        display: none;
    }
    .admin .guests tr {
        border: 1px solid var(--gilt-pale);
        background: #fff;
        padding: 6px 14px 12px;
        margin-bottom: 12px;
    }
    .admin .guests td {
        display: grid;
        grid-template-columns: 6.5em 1fr;
        gap: 0 12px;
        padding: 7px 0;
        border-bottom: 1px dotted var(--gilt-pale);
    }
    .admin .guests td:empty {
        display: none;
    }
    .admin .guests td[data-label="Spam"] {
        font-size: inherit;
    }
    .admin .guests td::before {
        content: attr(data-label);
        font-family: var(--display);
        color: var(--ink-soft);
    }
    .admin .guests td > * {
        grid-column: 2;
    }
    .admin .guests td[colspan] {
        grid-template-columns: 1fr;
    }
    .admin .guests td[colspan]::before {
        content: none;
    }
    .admin .guests td.acts {
        display: block;
        border-bottom: 0;
        padding-top: 12px;
    }
    .admin .guests td.acts::before {
        content: none;
    }
    .admin .guests td.acts button.link {
        padding: 9px 12px;
        font-size: 0.9rem;
    }
}
@media (min-width: 600px) and (max-width: 1180px) {
    .admin .guests tr {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 28px;
        padding: 6px 18px 14px;
    }
    .admin .guests td.acts,
    .admin .guests td[data-label="Note"],
    .admin .guests td[colspan] {
        grid-column: 1 / -1;
    }
    .admin .guests td {
        grid-template-columns: 5.5em 1fr;
    }
}
