/*
 * Cupido Club - shared stylesheet for every member-facing screen.
 *
 * To re-skin Club, edit the :root tokens below - nothing else in this
 * file uses a literal colour, font, or size. Palette/fonts here are a
 * first pass at legacy's actual identity (colours pulled from
 * src_legacy's site.css, fonts from its _Layout.cshtml's Google Fonts
 * link) - a visual-comparison spike (Petter, 2026-09-18), not a final
 * locked design.
 */

:root {
    color-scheme: light dark;

    /* palette - legacy's actual brand colours, incl. hover shades and
       validation colours pulled from site.css's .btn-primary/
       .btn-secondary/.invalid-feedback/.match-feedback (2026-09-19
       tightening pass, after the first spike's "not fully correct"
       feedback) */
    --c-purple: #5b439a;
    --c-purple-hover: #422c8a;
    --c-purple-dark: #251f54;
    --c-coral: #f0515a;
    --c-coral-dark: #be1e32;
    --c-coral-hover: #a71226;
    --c-bg: #f4f4f4;
    --c-surface: #ffffff;
    --c-ink: #2f2f2f;
    --c-ink-soft: #6b6b6b;
    --c-line: #e0e0e0;
    --c-on-accent: #ffffff;
    --c-error: #b21c35;
    --c-success: #14b953;

    /* type */
    --f-heading: 'PT Serif', Georgia, serif;
    --f-body: 'Nunito Sans', system-ui, sans-serif;

    /* spacing/shape */
    --radius: .4rem;
    --btn-radius: .25rem;
    --gap: 1rem;
    --x-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 5l14 14M19 5L5 19' fill='none' stroke='black' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }

body {
    margin: 0; min-height: 100vh; display: flex; flex-direction: column;
    font: 16px/1.5 var(--f-body);
    color: var(--c-ink);
    background: var(--c-bg);
}

h1, h2, h3 { font-family: var(--f-heading); font-weight: 700; color: var(--c-purple-dark); line-height: 1.2; }
h1 { font-size: 1.75rem; margin: 0 0 .75rem; }
h2 { font-size: 1.375rem; margin: 1.5rem 0 .75rem; }
/* Legacy centres the section headings; text inside a content page (.content in legacy) stays left. */
.club-main h2, .section-title { text-align: center; }
.info-page h2, .rich-text h2 { text-align: left; }
@media (min-width: 768px) {
    h1 { font-size: 2.375rem; }
    h2 { font-size: 1.5rem; }
}
@media (min-width: 1200px) {
    h1 { font-size: 3.25rem; }
    h2 { font-size: 2rem; }
}

a { color: var(--c-purple); text-decoration: none; transition: color .15s; }
a:hover, a:focus { color: var(--c-coral); }

:focus-visible { outline: 2px solid var(--c-purple); outline-offset: 2px; }

.skip-link {
    position: absolute; left: -999px; top: 0;
    background: var(--c-purple-dark); color: #fff; padding: .5rem 1rem; z-index: 10;
}
.skip-link:focus { left: 0; }

/* Header (runbook 27 item N): legacy's white header with the logo. Two separate menus
   (Club menu from the avatar, account menu). Where they sit is one place: the three
   --menu-* variables below. Set --menu-club-left/right and --menu-account-left/right (one "auto", one 0) to
   open a panel towards the other side, and the two --menu-*-order values to swap them. */
.club-header {
    --menu-club-order: 1;
    --menu-account-order: 2;
    --menu-club-left: auto;    --menu-club-right: 0;
    --menu-account-left: auto; --menu-account-right: 0;
    display: flex; align-items: center; gap: var(--gap);
    background: var(--c-surface); color: var(--c-ink);
    box-shadow: 0 0 10px rgba(0, 0, 0, .1);
    padding: .5rem 1.25rem;
}
.club-header .brand { display: inline-flex; align-items: center; }
.club-header .brand img { display: block; height: 2rem; width: auto; }
.club-menus { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.menu { position: relative; }
.menu-club { order: var(--menu-club-order); }
.menu-account { order: var(--menu-account-order); }
.menu > summary {
    display: flex; align-items: center; gap: .5rem; cursor: pointer; list-style: none;
    padding: .25rem .5rem; border-radius: var(--btn-radius); font-weight: 600; color: var(--c-purple-dark);
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary::after {
    content: ""; width: .5rem; height: .5rem; margin-left: .15rem;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-20%) rotate(45deg);
}
.menu[open] > summary::after { transform: translateY(20%) rotate(-135deg); }
.menu > summary:hover { color: var(--c-coral); }
.menu-panel {
    position: absolute; z-index: 20; top: calc(100% + .25rem); min-width: 14rem;
    background: var(--c-purple-dark); color: #fff; border: none; border-radius: 0;
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .15); padding: .75rem 0;
}
.menu-club .menu-panel { left: var(--menu-club-left); right: var(--menu-club-right); }
.menu-account .menu-panel { left: var(--menu-account-left); right: var(--menu-account-right); }
.menu-panel ul { list-style: none; margin: 0; padding: 0; }
.menu-panel a { display: block; padding: .3rem 1rem; color: #fff; font-weight: 700; font-size: .875rem; white-space: nowrap; }
.menu-panel a:hover, .menu-panel a:focus-visible { color: var(--c-coral); }
.menu-panel hr { border: none; border-top: 1px solid rgba(255, 255, 255, .25); margin: .75rem 1rem; }
.club-header .menu-panel .link-button { color: #fff; font-size: .875rem; font-weight: 700; }
.club-header .menu-panel .link-button:hover { color: var(--c-coral); }
.menu-panel .lang-picker select { background: var(--c-surface); }
.menu-panel form { margin: 0; padding: .25rem 1rem; }
.menu-panel .lang-picker { padding: .25rem 1rem; }
.avatar-xs { width: 2.5rem; height: 2.5rem; border-radius: 50%; }
.club-header button.link-button {
    background: none; border: none; color: var(--c-purple); font: inherit; font-weight: 600;
    cursor: pointer; padding: 0;
}
.lang-picker select {
    font: inherit; font-size: .875rem; background: var(--c-surface); color: var(--c-ink);
    border: 1px solid var(--c-line); border-radius: var(--btn-radius); padding: .25rem .35rem;
}
.club-banner { max-width: 60rem; margin: 1rem auto 0; padding: 0 1.25rem; }

/* Footer (fixed Footer section of appsettings.json) */
.club-footer {
    margin-top: auto; padding: 1.5rem .9375rem 2.25rem; background: var(--c-purple-dark); color: #fff;
}
.footer-nav { display: flex; flex-wrap: wrap; }
.footer-nav > div { padding: 1rem 0; }
@media (min-width: 576px) {
    .club-footer { padding: 2rem 1.25rem 2.75rem; }
    .footer-nav > div:not(.footer-side) { width: 14rem; }
}
.club-footer h2 { font: 700 1.125rem/1.2 var(--f-body); color: #f9b7b8; margin: 0 0 1rem; }
.club-footer ul { list-style: none; margin: 0; padding: 0; font-weight: 700; line-height: 1.4; }
.club-footer li { padding: .25rem 0; }
.club-footer a { color: #fff; }
.club-footer a:hover, .club-footer a:focus-visible { color: #fff; opacity: .6; }
.club-footer :focus-visible { outline-color: #fff; }
.footer-side { flex: 1 1 100%; text-align: center; }
@media (min-width: 576px) { .footer-side { flex-basis: 15rem; } }
.footer-side p { margin: 0; }
.footer-social { display: flex; justify-content: center; gap: .625rem; font-size: 1.5rem; }
.footer-social img { display: block; }
.footer-logo-fagpressen { display: block; width: 50%; max-width: 15.0625rem; height: auto; margin: .5rem auto; }
@media (min-width: 768px) {
    .footer-side { text-align: right; }
    .footer-social { justify-content: flex-end; }
    .footer-logo-fagpressen { width: 100%; margin: .5rem 0 .5rem auto; }
}
.footer-copyright { margin: 1.5rem 0 0; text-align: center; }
/* accessible name with no visual footprint (CLAUDE.md rule 7) */
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.club-main {
    width: 100%; max-width: 60rem; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; flex: 1 0 auto;
}

.card {
    background: var(--c-surface); border: 1px solid var(--c-line);
    border-radius: var(--radius); padding: 1.25rem 1.5rem; margin-bottom: var(--gap);
}

.btn {
    display: inline-block; padding: .5rem .875rem; border-radius: var(--btn-radius);
    border: none; font: 700 1rem var(--f-body); cursor: pointer; text-decoration: none;
    transition: background .1s;
}
.btn-primary { background: var(--c-coral-dark); color: var(--c-on-accent); }
.btn-primary:hover, .btn-primary:focus { background: var(--c-coral-hover); }
.btn-secondary { background: var(--c-purple); color: var(--c-on-accent); }
.btn-secondary:hover, .btn-secondary:focus { background: var(--c-purple-hover); }
.btn-outline { background: var(--c-surface); color: var(--c-purple); border: 1px solid var(--c-purple); }
.btn-outline:hover, .btn-outline:focus { background: var(--c-bg); }
.btn:disabled, .btn.disabled { pointer-events: none; opacity: .8; }
.btn-sm { padding: .25rem .75rem; font-size: .875rem; }
.form-actions .btn { width: auto; }

/* Two fields side by side (legacy's row/col-sm-6 pairing, e.g. Edit
   Club Profile's Country+City, Birthday+Status, Gender+Couple type) -
   generic, any screen with naturally-paired fields reuses this rather
   than a bespoke per-page layout. Stacks back to one column below the
   existing header breakpoint. */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.field-row > .field { margin: 0 0 1rem; }
@media (max-width: 40rem) {
    .field-row { grid-template-columns: 1fr; }
}

.field { margin: 0 0 1rem; }
/* Legacy renders a field label as an <h3 class="form-header"> (PT
   Serif) - tried matching that font on every label 2026-09-19, but it
   read as too heavy/serif-dominant across a whole form of small labels
   (Petter, 2026-09-20: "too much Times") - reverted to the body font.
   PT Serif stays reserved for actual headings (h1/h2/h3 above), which
   is where legacy's own visual weight actually reads as serif. A real
   <label> (not legacy's <h3>) stays correct for accessibility either
   way (rule 7: headings in order - a heading per field would break
   that). */
.field label { display: block; font: 600 1rem/1.3 var(--f-body); margin-bottom: .25rem; }
.field .hint { display: block; color: var(--c-ink-soft); font-size: .875rem; margin-top: .25rem; }
/* fieldset (the multi-select groups below) resets browser chrome to
   match a plain .field div - only <legend> keeps its own rule. */
fieldset.field { border: none; margin: 0 0 1rem; padding: 0; min-width: 0; }
fieldset.field legend { font: 600 1rem/1.3 var(--f-body); margin-bottom: .25rem; padding: 0; }

/* Required-field marker (Country/Birthday/Gender) - legacy's own
   <span class="text-red">*</span>. */
.required-mark { color: var(--c-error); }

/* Plain "i" info badge (Petter, 2026-09-20: legacy's speech-bubble
   tooltip icon was "too much" - a solid circle reads more neutral) -
   a CSS-only tooltip (rule 3: no JS needed), shown on hover AND
   keyboard focus so it isn't mouse-only. */
.info-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 1.1rem; height: 1.1rem; border-radius: 50%;
    background: var(--c-purple); color: #fff; font: 700 .7rem/1 var(--f-body);
    cursor: help; position: relative; vertical-align: middle;
}
.info-badge:hover::after, .info-badge:focus-visible::after {
    content: attr(data-tip);
    position: absolute; left: 50%; bottom: 140%; transform: translateX(-50%);
    background: var(--c-ink); color: #fff; font: 400 .8rem/1.3 var(--f-body);
    padding: .4rem .6rem; border-radius: var(--btn-radius);
    width: max-content; max-width: 16rem; z-index: 5;
    white-space: normal; overflow-wrap: anywhere; text-align: left; font-weight: 400;
}
/* A badge at the right edge of its box (Save search, in the search head): the tip opens leftwards so it stays inside the column
   instead of running over the menu beside it (Petter, 2026-10-22). On a phone the badge sits at the left, so the
   centred tip of every badge is kept there. */
@media (min-width: 40rem) {
    .filters-save .info-badge:hover::after, .filters-save .info-badge:focus-visible::after {
        left: auto; right: 0; transform: none;
    }
}

.field input[type="text"], .field input[type="email"], .field input[type="password"],
.field input[type="date"], .field input[type="number"], .field select, .field textarea {
    width: 100%; padding: .5rem .75rem; font: inherit; color: var(--c-ink);
    border: 2px solid var(--c-purple); border-radius: var(--btn-radius);
    background: var(--c-surface);
}
/* A field is already width: 100% of its container - letting a textarea
   also resize horizontally just breaks that layout (Petter, 2026-09-20:
   "should not be adjustable in width only height"). */
.field textarea { resize: vertical; }
/* Legacy's dropdown chevron sits in a solid purple block docked to the
   select's right edge (site.css's .form-select:before/:after - a
   pseudo-element trick behind a wrapper div). Reproduced directly on
   the <select> with two layered backgrounds instead of extra wrapper
   markup per field: an inline SVG chevron on top of a hard-edged
   gradient standing in for the solid block. Legacy's own icon font
   glyph isn't available here, so the chevron is a plain drawn arrow -
   same visual effect, no missing-asset risk. */
.field select {
    appearance: none; -webkit-appearance: none; -moz-appearance: none;
    background-color: var(--c-surface);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
        linear-gradient(to left, var(--c-purple) 2.75rem, transparent 2.75rem);
    background-repeat: no-repeat, no-repeat;
    background-position: right .95rem center, right center;
    background-size: .7rem, auto 100%;
    padding-right: 3.25rem;
}
.field select:hover {
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
        linear-gradient(to left, var(--c-purple-hover) 2.75rem, transparent 2.75rem);
}
/* A field a member cannot currently use (Couple type, unless Gender is
   set to Couple) needs to actually look inert, not just a slightly
   greyed-out active-looking control (Petter, 2026-09-20: "could look a
   little more disabled"). */
.field select:disabled {
    background-color: var(--c-bg); color: var(--c-ink-soft); border-color: var(--c-line);
    cursor: not-allowed;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
        linear-gradient(to left, var(--c-ink-soft) 2.75rem, transparent 2.75rem);
}
/* Same purple-block treatment on the date input's calendar icon
   (legacy's .form-input--datepicker:before/:after, same pseudo-element-
   on-a-wrapper trick as .form-select). Chromium/WebKit only - the
   ::-webkit-calendar-picker-indicator hook has no standard or Firefox
   equivalent, so Firefox shows this background under its own native
   icon instead of replacing it. A visible progressive-enhancement gap,
   not a functional one - the date input itself works the same either
   way. */
.field input[type="date"] {
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E"),
        linear-gradient(to left, var(--c-purple) 2.75rem, transparent 2.75rem);
    background-repeat: no-repeat, no-repeat;
    background-position: right .9rem center, right center;
    background-size: 1.1rem, auto 100%;
    padding-right: 3.25rem;
}
.field input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute; right: 0; top: 0; bottom: 0; width: 2.75rem; margin: 0; padding: 0;
    opacity: 0; cursor: pointer;
}
.field input[type="date"] { position: relative; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: 2px solid var(--c-purple); outline-offset: 1px; border-color: var(--c-purple);
}
.field.has-error input, .field.has-error select, .field.has-error textarea {
    border-color: var(--c-error);
}
.field .invalid-feedback { display: block; color: var(--c-error); font-size: .875rem; margin-top: .25rem; }
.checkbox-field { display: flex; align-items: flex-start; gap: .5rem; margin: 0 0 1rem; }
.checkbox-field input { margin-top: .3rem; }

/* Closed-by-default multi-select (a <details>/<summary> disclosure -
   see Edit.cshtml's MultiSelectGroup): tighter checkbox spacing than
   legacy's version, and nothing to grab-scroll until deliberately
   opened. */
.multiselect {
    border: 2px solid var(--c-purple); border-radius: var(--btn-radius);
    background: var(--c-surface);
}
/* Same solid-purple-block chevron as a plain <select> (Petter,
   2026-09-20: "a number of dropdowns does not get the colored drop
   button" - the multi-selects were the ones missing it, for visual
   consistency with every single-select on the page). */
.multiselect > summary {
    padding: .5rem 3.25rem .5rem .75rem; cursor: pointer; list-style: none;
    color: var(--c-ink); position: relative;
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
    border-radius: var(--btn-radius);
}
.multiselect > summary::-webkit-details-marker { display: none; }
.multiselect > summary::before {
    content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 2.75rem;
    background: var(--c-purple); border-radius: 0 var(--btn-radius) var(--btn-radius) 0;
}
.multiselect > summary:hover::before { background: var(--c-purple-hover); }
.multiselect > summary::after {
    content: ""; position: absolute; top: 50%; right: 1.2rem; width: .55rem; height: .55rem;
    border-right: 2px solid #fff; border-bottom: 2px solid #fff;
    transform: translateY(-70%) rotate(45deg); transition: transform .1s;
}
.multiselect[open] > summary::after { transform: translateY(-30%) rotate(-135deg); }
.multiselect-options {
    max-height: 12rem; overflow-y: auto;
    border-top: 1px solid var(--c-line); padding: .3rem .5rem;
}
/* Bigger checkbox, same row height, lighter (not bold) label text -
   Petter, 2026-09-20: "check boxes can be a little bit bigger... not
   more linespace" and "fonts should not be so bold." */
.multiselect-options .checkbox-option {
    display: flex; align-items: center; gap: .5rem;
    padding: .15rem 0; font: 400 .95rem/1.3 var(--f-body); cursor: pointer;
}
.multiselect-options .checkbox-option input {
    margin: 0; width: 1.15em; height: 1.15em; flex: none;
}

/* Look-for age range and the height/weight single values (Edit Club
   Profile) - hidden by the enhancement script when their checkbox is
   off; stays visible with no JS (rule 3). */
.age-range-inputs { display: flex; gap: 1rem; margin-top: .5rem; }
.age-range-inputs.is-hidden, .single-slider-input.is-hidden { display: none; }
.age-range-inputs > div { flex: 1; }
.age-range-inputs label { font-weight: 600; font-size: .875rem; margin-bottom: .2rem; }
.single-slider-input { display: flex; align-items: center; gap: .6rem; margin-top: .5rem; }

/* A plain number input becomes this once the enhancement script flips
   its type to "range" (Petter, 2026-09-20, re-asked for a real slider
   after the first plain-number-input pass - kept the number input as
   the no-JS base, rule 3). Reused as-is for both the two-independent-
   sliders age range and the single-value height/weight. */
input[type="range"].slider-value {
    flex: 1; width: 100%; appearance: none; -webkit-appearance: none;
    height: .35rem; border-radius: .2rem; background: var(--c-line);
    border: none; padding: 0; margin: .3rem 0;
}
input[type="range"].slider-value::-webkit-slider-thumb {
    appearance: none; -webkit-appearance: none;
    width: 1.1rem; height: 1.1rem; border-radius: 50%;
    background: var(--c-purple); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--c-purple);
    cursor: pointer;
}
input[type="range"].slider-value::-moz-range-thumb {
    width: 1.1rem; height: 1.1rem; border-radius: 50%;
    background: var(--c-purple); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--c-purple);
    cursor: pointer;
}
.slider-readout {
    display: inline-block; min-width: 2.5rem; text-align: right;
    font-weight: 600; color: var(--c-purple-dark);
}
.slider-unit { color: var(--c-ink-soft); }

table.plain { width: 100%; border-collapse: collapse; }
table.plain th, table.plain td {
    text-align: left; padding: .5rem .75rem; border-bottom: 1px solid var(--c-line);
    white-space: nowrap;
}
table.plain td.wrap { white-space: normal; }
/* On a phone a table must not make the page wider than the window: its cells wrap, long names break. */
@media (max-width: 47.99rem) {
    table.plain th, table.plain td { white-space: normal; overflow-wrap: anywhere; padding: .5rem .35rem; }
    table.plain th { white-space: nowrap; overflow-wrap: normal; }
}
/* Expired subscription row (Account 2d) - the Status column's text is
   the actual signal (rule 7); this is a secondary, non-essential cue. */
table.plain tr.is-expired td { color: var(--c-ink-soft); }

.muted { color: var(--c-ink-soft); }

/* Save-confirmation banner (Account 2a/2e) and the Cancel+Save row
   legacy's own screens always pair (.buttons in site.css). */
.flash-success { color: var(--c-success); font-weight: 600; }
.flash-error { color: var(--c-error); font-weight: 600; }
.form-actions { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; }

.field-list dt { font-weight: 600; color: var(--c-purple-dark); margin-top: .75rem; }
.field-list dd { margin: 0 0 .25rem; }

/* Match suggestions (3a) - a plain wrapped card grid standing in for
   legacy's slick.js 3-up carousel (no carousel JS dependency here; see
   Pages/Matching/Suggestions.cshtml.cs's remarks). Reused as-is by any
   later screen that lists other profiles in a grid (My Matches,
   Relationships). */
.match-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: var(--gap);
}
.match-card h2 { font-size: 1.1rem; margin: 0 0 .25rem; }
.match-card__actions { display: flex; gap: .5rem; margin-top: 1rem; }
.match-card__actions form { margin: 0; flex: 1; }
.match-card__actions { justify-content: center; }
.match-card__actions form { flex: none; }
.match-btn { display: inline-flex; align-items: center; justify-content: center; width: 3.5rem; height: 2.75rem; padding: 0; background: var(--c-surface); color: var(--c-purple); border: 1px solid var(--c-purple); border-radius: var(--btn-radius); cursor: pointer; }
.match-btn .ico { width: 2rem; height: 2rem; }
.match-btn:hover, .match-btn:focus-visible { background: var(--c-purple); color: var(--c-on-accent); }
.match-btn.is-active { background: var(--c-purple); color: var(--c-on-accent); }
.match-card__match { display: flex; align-items: center; justify-content: center; gap: .35rem; margin: .5rem 0 0; color: var(--c-purple); font-weight: 600; }
.match-card__match .ico { width: 1.4rem; height: 1.4rem; }
.match-reload { margin: 1rem 0 0; }

/* My Matches (3b) paging - server-rendered links, no JS. */
.pager { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; }

/* The one pager (Pages/Shared/_Pager.cshtml; legacy pagination--main): round arrows, numbers, the current page as a big circle. */
.pagination { margin: 1rem 0 1.5rem; }
.pagination-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .25rem; font-size: .875rem; font-weight: 700; line-height: 1.5; }
.page-num { display: block; min-width: 2.5rem; height: 2.5rem; padding: .5rem; text-align: center; color: var(--c-purple); border-radius: 1.25rem; }
.page-num:hover, .page-num:focus-visible { color: var(--c-purple-dark); }
.pagination .is-active .page-num { background: var(--c-purple); color: var(--c-on-accent); }
.page-more { display: block; padding: .5rem; color: #9e86dd; cursor: default; }
.page-arrow { display: flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--c-purple); color: var(--c-on-accent); }
.page-arrow svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
a.page-arrow:hover, a.page-arrow:focus-visible { background: var(--c-purple-hover); color: var(--c-on-accent); }
.page-arrow.is-disabled { opacity: .65; }
@media (min-width: 576px) { .pagination-list { font-size: 1.125rem; } }

/* Desktop: the band is only a wrapper, so the Club menu stays in the header row (club menu, then account menu). */
.club-band { display: contents; }
.club-band .menu-club { order: var(--menu-club-order); margin-left: auto; }
.club-menus { margin-left: 0; order: 2; }
.club-band .band-icons, .header-user, .menu-word, .menu-bars { display: none; }
.icon { width: 1.5rem; height: 1.5rem; display: block; }

/* Phone (legacy layout, Header.cshtml + ClubAside.cshtml): header with logo, name and user icon, and the "Meny"
   toggle; under it a dark band (#32327f) with the notification icons and the avatar that opens the Club menu. */
@media (max-width: 47.99rem) {
    .club-header { flex-wrap: wrap; gap: 0 .5rem; padding: .5rem .75rem 0; position: relative; }
    .club-header .brand img { height: 2.25rem; }
    .club-menus { margin-left: auto; gap: 1rem; align-items: flex-start; order: 1; }
    .header-user {
        display: flex; flex-direction: column; align-items: center; color: var(--c-purple-dark); font-size: .875rem; font-weight: 600; line-height: 1.2;
    }
    .header-user-name { max-width: 6.5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .header-user .icon { width: 2rem; height: 2rem; }
    .menu-account > summary { flex-direction: column; gap: .15rem; padding: 0; font-size: .875rem; line-height: 1.2; }
    .menu-account > summary::after { display: none; }
    .menu-account .menu-name { display: none; }
    .menu-word { display: block; }
    .menu-bars { display: flex; flex-direction: column; gap: .3rem; width: 2.25rem; padding: .4rem 0; }
    .menu-bars i { display: block; height: 3px; background: var(--c-purple-dark); border-radius: 2px; }

    .club-band {
        order: 2; display: flex; flex: 0 0 auto; width: calc(100% + 1.5rem); margin: .5rem -.75rem 0; padding: 0 .5rem;
        background: #32327f; color: #fff; align-items: center;
    }
    .club-band .band-icons { display: flex; list-style: none; margin: 0; padding: 0; }
    .club-band .band-icons a { display: block; padding: .6rem .6rem; color: #fff; }
    .club-band .band-icons a:hover, .club-band .band-icons a:focus-visible { color: var(--c-coral); }
    .club-band .band-icons li { position: relative; }
    .club-band .band-icons .icon, .club-band .band-icons .ico { width: 2rem; height: 2rem; display: block; }
    .club-band .count-badge { top: -.35rem; right: -.55rem; }
    .club-band .menu-club { order: 0; margin-left: auto; }
    .club-band .menu-club > summary { color: #fff; padding: .35rem .25rem; }
    .club-band .menu-club > summary > span {
        position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
    }
    .club-band .avatar-xs { width: 2.75rem; height: 2.75rem; }

    /* The menu panels open under the header across the whole screen width, not from their small button. */
    .club-header .menu { position: static; }
    .club-header .menu .menu-panel {
        left: 0; right: 0; top: 100%; min-width: 0; max-height: calc(100vh - 6rem); overflow-y: auto;
        box-shadow: 0 .5rem .75rem rgba(0, 0, 0, .2);
    }
    .club-main { padding: 1rem .75rem 2rem; }
}

/* Rich text editor (wwwroot/rte.js, Pages/Shared/_RichTextEditor.cshtml).
   Without the script only the textarea shows and gets the .field textarea
   look; the script adds the toolbar and the editable area. */
.rte-toolbar {
    display: flex; flex-wrap: wrap; gap: .25rem; padding: .35rem;
    border: 1px solid var(--c-line); border-bottom: none;
    border-radius: var(--radius) var(--radius) 0 0; background: var(--c-bg);
}
.rte-btn {
    min-width: 2.25rem; height: 2.25rem; padding: 0 .5rem; cursor: pointer;
    font: 600 1rem/1 var(--f-body); color: var(--c-ink);
    background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--btn-radius);
}
.rte-btn:hover { background: var(--c-bg); border-color: var(--c-purple); }
.rte-btn:focus-visible, .rte-emoji-item:focus-visible, .rte-editor:focus {
    outline: 2px solid var(--c-purple); outline-offset: 1px;
}
.rte-italic { font-style: italic; }
.rte-underline { text-decoration: underline; }
.rte-editor {
    min-height: 9rem; padding: .6rem .75rem; overflow-wrap: anywhere;
    background: var(--c-surface); color: var(--c-ink);
    border: 1px solid var(--c-line); border-radius: 0 0 var(--radius) var(--radius);
}
.rte-editor p { margin: 0 0 .75rem; }
.rte-editor ul, .rte-editor ol { margin: 0 0 .75rem; padding-left: 1.5rem; }
.rte-emoji { position: relative; }
.rte-emoji-panel {
    position: absolute; z-index: 5; top: 2.5rem; left: 0; width: 17rem;
    display: grid; grid-template-columns: repeat(8, 1fr); gap: .15rem; padding: .4rem;
    background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius);
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .15);
}
.rte-emoji-panel[hidden] { display: none; }
.rte-emoji-item { font-size: 1.25rem; line-height: 1; padding: .25rem; cursor: pointer; background: none; border: none; border-radius: var(--btn-radius); }
.rte-emoji-item:hover { background: var(--c-bg); }
/* Stored rich text on a profile page: paragraphs and lists keep normal spacing. */
.rich-text p { margin: 0 0 .75rem; }
.rich-text ul, .rich-text ol { margin: 0 0 .75rem; padding-left: 1.5rem; }
.rich-text { overflow-wrap: anywhere; }

/* Avatars (Profiles/ClubAvatars.cs, wwwroot/avatars): shown when a profile has no picture; profile pictures are 256x256. */
.avatar { display: inline-block; border-radius: var(--radius); background: var(--c-bg); vertical-align: middle; }
.avatar-lg { width: 8rem; height: 8rem; }
.avatar-md { width: 4.5rem; height: 4.5rem; }
/* Avatar choice on the profile edit page: radio buttons shown as pictures. */
.avatar-choice { border: 0; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem; }
.avatar-option { display: flex; flex-direction: column; align-items: center; gap: .35rem; cursor: pointer; font-size: .875rem; }
.avatar-option input { margin: 0; }
.avatar-option:has(input:checked) .avatar { outline: 3px solid var(--c-purple); outline-offset: 2px; }
.avatar-option:has(input:focus-visible) .avatar { outline: 3px solid var(--c-coral); outline-offset: 2px; }
.avatar-sm { width: 3rem; height: 3rem; margin-right: .5rem; }
.profile-head { display: flex; align-items: center; gap: 1rem; margin-bottom: .75rem; }
.profile-head h1 { margin: 0; }

/* Signed-in home (runbook 27 item P): event cards, filter bar, profile cards, banner slot */
.event-cards { list-style: none; margin: 0 0 var(--gap); padding: 0; display: grid; gap: .5rem; }
.event-card {
    display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; color: var(--c-ink); font-weight: 700;
    background: var(--c-surface); box-shadow: 0 0 10px rgba(0, 0, 0, .06);
}
.event-card:hover, .event-card:focus-visible { color: var(--c-coral); }
.event-icon { line-height: 0; margin-left: .5rem; }
.event-icon .ico, .overview-icon .ico { width: 2rem; height: 2rem; color: var(--c-purple); }
.event-text { display: flex; flex-direction: column; flex: 1; }
.event-go { color: var(--c-purple); font-size: 1.25rem; }
.filter-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 0 1rem; align-items: end; }
.filter-bar .field { margin-bottom: .75rem; }
.filter-bar .field label { font-size: .875rem; color: var(--c-purple-dark); }
.filter-bar .field :is(select, input) { padding-top: .25rem; padding-bottom: .25rem; font-size: .9rem; }
.filter-bar .form-actions { margin: 0 0 .75rem; gap: .75rem; }
/* Legacy has no search button (the list reloads on change) and a "New search" link with a red cross. */
.filter-reset { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--c-purple-dark); white-space: nowrap; }
.filter-reset:hover, .filter-reset:focus-visible { color: var(--c-coral); }
.reset-x { display: inline-flex; align-items: center; justify-content: center; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--c-coral-dark); color: #fff; line-height: 1; }
.profile-cards { list-style: none; margin: 0 0 var(--gap); padding: 0; display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); }
/* The profile list widget: a fixed number of cards per line on a wide screen (pc-cols-N), fewer on narrower ones. */
.profile-cards.pc-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.profile-cards.pc-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.profile-cards.pc-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.profile-cards.pc-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.profile-cards.pc-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.profile-cards.pc-cols-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.profile-cards.pc-cols-8 { grid-template-columns: repeat(8, minmax(0, 1fr)); }
@media (max-width: 52rem) { .profile-cards[class*="pc-cols-"] { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 34rem) { .profile-cards[class*="pc-cols-"] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.profile-list-more { margin-left: auto; font-size: .9em; }
.profile-card {
    display: flex; flex-direction: column; gap: 0; color: var(--c-ink); font-size: .9em; line-height: 1.2;
}
.profile-card:hover, .profile-card:focus-visible { color: var(--c-coral); }
.profile-card-frame { position: relative; display: block; margin-bottom: .5rem; line-height: 0; }
.profile-card-pic { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: 0; }
.profile-card-frame::after { content: ""; position: absolute; inset: 0; background: #000; opacity: 0; transition: opacity .15s; pointer-events: none; }
.profile-card:hover .profile-card-frame::after, .profile-card:focus-visible .profile-card-frame::after { opacity: .15; }
/* Status bar along the picture's bottom edge (legacy imageinfo__status): online dot and VIP label left, gender or couple symbol right. */
.profile-card-status {
    position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 2rem; padding: 0 .375rem; display: flex; align-items: center; justify-content: space-between;
    color: #fff; text-shadow: 1px 1px 0 rgba(0, 0, 0, .6), 0 0 4px rgba(0, 0, 0, .4); font: 700 .8125rem/1 var(--f-body);
}
.profile-card-flags { display: flex; align-items: center; gap: .4rem; }
.profile-card-vip { letter-spacing: .02em; }
.profile-card-frame .pf-online { animation: online-pulse 2s infinite; }
@keyframes online-pulse { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .profile-card-frame .pf-online { animation: none; } }
.gender-icon { height: 1.5rem; width: auto; margin-left: auto; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(1px 1px 0 rgba(0, 0, 0, .6)); }
.profile-card-name { font-weight: 700; overflow-wrap: anywhere; }
.profile-card-info { font-weight: 300; color: var(--c-ink); overflow-wrap: anywhere; }
.home-banner { margin: 0 0 var(--gap); padding: .75rem 1rem; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); text-align: center; }

/* Info pages (/info/{slug}): help, rules and about texts from `common` (runbook 27 item A). */
.info-page { max-width: 48rem; overflow-wrap: anywhere; }
.info-page h2 { margin-top: 2rem; }
.info-text :is(p, ul, ol) { margin: 0 0 .75rem; }
/* Accordion (legacy accordion.scss): a light grey panel; each item a serif heading with a purple underline and a
   chevron on the right, the opened text in a white box with a soft shadow. A <details>/<summary>, so no JavaScript. */
.info-accordion { background: #fafafa; margin: 0 0 1.5rem; padding: 1rem 1rem 1.5rem; box-shadow: 0 0 10px rgba(0, 0, 0, .1); }
.info-accordion details { margin: 0; }
.info-accordion summary {
    position: relative; display: block; cursor: pointer; list-style: none; padding: .75rem 2.25rem .75rem 0;
    border-bottom: .125rem solid var(--c-purple); font: 700 .875rem/1.3 var(--f-heading); color: var(--c-purple-dark);
}
.info-accordion summary::-webkit-details-marker { display: none; }
.info-accordion summary::after {
    content: ""; position: absolute; right: 0; top: 50%; width: 1.5rem; height: 1.5rem; border-radius: 50%; background-color: var(--c-purple);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M2.500 2l3.500 3.500L9.500 2' fill='none' stroke='white' stroke-width='1.800' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: center; background-size: 60%; transform: translateY(-50%);
}
.info-accordion details[open] > summary::after { transform: translateY(-50%) rotate(180deg); }
.info-accordion summary:hover, .info-accordion summary:focus-visible { color: var(--c-coral); }
.info-accordion details > .info-text { background: var(--c-surface); padding: 1rem; box-shadow: 0 0 10px rgba(0, 0, 0, .1); margin: 0 0 .5rem; }
.info-accordion details > .info-text > :last-child { margin-bottom: 0; }
@media (min-width: 48rem) {
    .info-accordion { padding: 1rem 2rem 2rem; }
    .info-accordion summary { font-size: 1rem; padding: 1rem 2.25rem 1rem 0; }
}
@media (min-width: 62rem) {
    .info-accordion summary { font-size: 1.125rem; padding: 1.125rem 2.25rem 1.125rem 0; }
}
.info-media { margin: 1rem 0; }
.info-media :is(img, video) { max-width: 100%; height: auto; }
.info-media figcaption { color: var(--c-ink-soft); font-size: .9rem; }

/* Wide screens (legacy xl, 1200 px): the Club menu is a dark column beside the content instead of a header dropdown. */
.club-aside { display: none; }
@media (min-width: 75rem) {
    .club-layout.has-aside {
        display: grid; grid-template-columns: minmax(0, 1fr) 15rem; gap: 2rem; align-items: start;
        max-width: 78rem; width: 100%; margin: 0 auto; padding: 0 1.25rem; flex: 1 0 auto;
    }
    .club-layout.has-aside .club-main { max-width: none; margin: 0; padding-left: 0; padding-right: 0; }
    .club-band { display: none; }
    .club-aside { display: block; margin-top: 1.5rem; padding: 1rem 1.25rem 1.5rem; background: var(--c-purple-dark); color: #fff; }
    .club-aside ul { list-style: none; margin: 0; padding: 0; }
    .club-aside a { display: block; padding: .3rem 0; color: #fff; font-weight: 700; font-size: 1.0625rem; }
    .club-aside a:hover, .club-aside a:focus-visible { color: var(--c-coral); }
    .club-aside .aside-head { display: flex; align-items: center; gap: .75rem; padding: 0 0 .75rem; }
    .club-aside hr { border: none; border-top: 1px solid rgba(255, 255, 255, .25); margin: 1rem 0; }
}
@media (max-width: 74.99rem) { .club-layout.has-aside { display: block; } }

/* Profile search (legacy ProfileSearch: a white head box, a row of dropdown headings, then the profile cards) */
.search-head { background: var(--c-surface); padding: 1rem 1.25rem 1.25rem; margin-bottom: var(--gap); box-shadow: 0 0 10px rgba(0, 0, 0, .06); }
.back-link { font-weight: 700; color: var(--c-coral); }
/* A real chevron (legacy: the arrow-left icon, bold, a little larger than the text). */
.back-link { display: inline-flex; align-items: center; gap: .4em; font-size: 1rem; }
.back-link::before {
    content: ""; width: 1.1em; height: 1.1em; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15 4l-8 8 8 8' fill='none' stroke='black' stroke-width='3.500' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15 4l-8 8 8 8' fill='none' stroke='black' stroke-width='3.500' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.search-title { font-size: 1.5rem; margin: .5rem 0 1rem; }
.filter-row { display: flex; flex-wrap: wrap; gap: 0 1.5rem; border-bottom: 2px solid var(--c-purple); margin-bottom: 1rem; }
.filter-dd { position: relative; }
.filter-dd > summary {
    display: flex; align-items: center; gap: .5rem; cursor: pointer; list-style: none; padding: .5rem 0;
    font: 700 1.125rem/1.3 var(--f-body); color: var(--c-purple-dark);
}
.filter-dd > summary::-webkit-details-marker { display: none; }
.filter-dd > summary::after {
    content: ""; flex: none; width: 1.5rem; height: 1.5rem; border-radius: 50%; background-color: var(--c-purple);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M2.500 2l3.500 3.500L9.500 2' fill='none' stroke='white' stroke-width='1.800' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: center; background-size: 60%;
}
.filter-dd[open] > summary::after { transform: rotate(180deg); }
.filter-dd-panel {
    position: absolute; z-index: 6; top: 100%; left: 0; min-width: 13rem; max-height: 18rem; overflow-y: auto;
    padding: .5rem 1rem; background: var(--c-surface); box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .2);
}
.filter-dd-panel select, .filter-dd-panel input:not([type=checkbox]) { width: 100%; }
/* Legacy dropdown options (tag--filter): plain bold lines, no checkbox; the chosen one is red with a cross. The real
   checkbox stays in the page (works without JavaScript, keyboard, screen readers) and is only hidden. */
.filter-dd-panel .checkbox-field { position: relative; display: block; margin: 0; padding: 0; }
.filter-dd-panel .checkbox-field input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.filter-dd-panel .checkbox-field label { display: block; margin: 0; padding: .25rem 0; cursor: pointer; font-weight: 700; font-size: 1rem; line-height: 1.3; color: var(--c-ink); }
.filter-dd-panel .checkbox-field label::after {
    content: ""; display: inline-block; width: .8em; height: .8em; margin-left: .35rem; vertical-align: -.05em; opacity: 0; background: var(--c-coral-dark);
    -webkit-mask: var(--x-mark) center / contain no-repeat; mask: var(--x-mark) center / contain no-repeat;
}
.filter-dd-panel .checkbox-field label:hover { color: #000; }
.filter-dd-panel .checkbox-field label:hover::after { opacity: .5; }
.filter-dd-panel .checkbox-field input:checked + label { color: var(--c-coral); }
.filter-dd-panel .checkbox-field input:checked + label::after { opacity: 1; background: var(--c-coral); }
.filter-dd-panel .checkbox-field input:focus-visible + label { outline: 2px solid var(--c-purple); outline-offset: 2px; }
/* From-to filter (legacy .form-slider): white track with a purple range, white round handles with a red ring, a label above. */
.range-filter { min-width: 15rem; padding-bottom: .25rem; }
.range-filter.is-enhanced .age-range-inputs { display: none; }
.range-readout { font-weight: 700; color: var(--c-ink); margin: .25rem 0 .5rem; }
.range-track { position: relative; height: 1.5rem; margin: 0 .625rem; }
.range-track::before {
    content: ""; position: absolute; left: 0; right: 0; top: 50%; height: .625rem; margin-top: -.3125rem;
    border: 1px solid #d5d5d5; border-radius: .3125rem; background: var(--c-surface);
}
.range-fill { position: absolute; top: 50%; height: .625rem; margin-top: -.3125rem; background: var(--c-purple); border-radius: .3125rem; }
.range-track input[type="range"] {
    position: absolute; top: 0; left: -.625rem; width: calc(100% + 1.25rem); height: 100%; margin: 0; padding: 0;
    background: none; border: 0; pointer-events: none; appearance: none; -webkit-appearance: none;
}
.range-track input[type="range"]::-webkit-slider-runnable-track { background: none; border: 0; height: 1.5rem; }
.range-track input[type="range"]::-moz-range-track { background: none; border: 0; }
.range-track input[type="range"]::-webkit-slider-thumb {
    appearance: none; -webkit-appearance: none; pointer-events: auto; cursor: pointer; box-sizing: border-box;
    width: 1.5rem; height: 1.5rem; margin-top: 0; border-radius: 50%; background: var(--c-surface); border: .45rem solid var(--c-coral);
}
.range-track input[type="range"]::-moz-range-thumb {
    pointer-events: auto; cursor: pointer; box-sizing: border-box;
    width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--c-surface); border: .45rem solid var(--c-coral);
}
.range-track input[type="range"]:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--c-purple); outline-offset: 2px; }
.range-track input[type="range"]:focus-visible::-moz-range-thumb { outline: 2px solid var(--c-purple); outline-offset: 2px; }
.refine { margin-bottom: 1rem; }
.refine > summary { cursor: pointer; font-weight: 700; color: var(--c-purple-dark); }
.refine-body { padding-top: .75rem; }
.option-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 0 1rem; }
.search-actions { margin-top: 0; flex-wrap: wrap; gap: .75rem; }
.sort-select { font: inherit; font-size: .9rem; padding: .25rem .5rem; border: 1px solid var(--c-line); border-radius: var(--btn-radius); background: var(--c-surface); }
.results-title { text-align: left; font-size: 1.25rem; margin-top: 0; }
@media (max-width: 47.99rem) {
    /* Phone: the dropdown headings stack as full-width lines with the purple rule (legacy mobile) and open inline. */
    .filter-row { display: block; border-bottom: none; }
    .filter-dd { border-bottom: 2px solid var(--c-purple); }
    .filter-dd > summary { justify-content: space-between; }
    .filter-dd-panel { position: static; box-shadow: none; padding: 0 0 .5rem; max-height: 14rem; }
}

/* Profile search: username box, tabs (CSS only), chosen-filter chips, save tip (legacy ProfileSearchForm) */
.search-title-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin-bottom: .75rem; }
.search-title-row .search-title { margin: 0; }
.username-box { display: flex; flex: 1 1 100%; }
.username-box input[type="search"] {
    flex: 1 1 auto; min-width: 0; height: 2.5rem; padding: 0 .75rem; font: inherit; color: var(--c-ink); background: var(--c-surface);
    border: 1px solid var(--c-purple); border-right: 0; border-radius: var(--btn-radius) 0 0 var(--btn-radius);
}
.username-go {
    flex: none; width: 2.75rem; height: 2.5rem; padding: 0; display: flex; align-items: center; justify-content: center; cursor: pointer;
    background: var(--c-purple); color: var(--c-on-accent); border: 0; border-radius: 0 var(--btn-radius) var(--btn-radius) 0;
}
.username-go:hover, .username-go:focus-visible { background: var(--c-purple-hover); }
.username-go svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; }
@media (min-width: 48rem) { .username-box { flex: 0 1 26rem; margin-left: auto; } }
.ps-tab-radio { position: absolute; opacity: 0; pointer-events: none; }
.ps-tab-list { list-style: none; margin: 0 0 .5rem; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; border-bottom: 1px solid var(--c-line); }
.ps-tab-list li { padding: 0; }
.ps-tab-list label, .ps-tab-list a { display: block; padding: .5rem 0; cursor: pointer; font-weight: 700; font-size: .9375rem; color: var(--c-ink-soft); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.ps-tab-list label:hover, .ps-tab-list a:hover { color: var(--c-coral); }
.ps-panel { display: none; }
#ps-t1:checked ~ .ps-p1, #ps-t2:checked ~ .ps-p2, #ps-t3:checked ~ .ps-p3, #ps-t4:checked ~ .ps-p4 { display: flex; }
#ps-t1:checked ~ .ps-tab-list li:nth-child(1) label, #ps-t2:checked ~ .ps-tab-list li:nth-child(2) label,
#ps-t3:checked ~ .ps-tab-list li:nth-child(3) label, #ps-t4:checked ~ .ps-tab-list li:nth-child(4) label { color: var(--c-purple-dark); border-bottom-color: var(--c-purple); }
.ps-tab-radio:focus-visible ~ .ps-tab-list { outline: 2px solid var(--c-purple); outline-offset: 2px; }
/* The chosen-filter line (legacy .filters / .selected-filters-section): "Filters:", group name and its values as grey chips with a red cross,
   Reset in the same row, "Save search" with the info tip on the right, a purple rule under it. */
.selected-filters { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; margin-bottom: .75rem; padding-bottom: .75rem; border-bottom: 2px solid var(--c-purple); }
.filters-line { flex: 1 1 20rem; line-height: 1.8; }
.filters-title { font-weight: 700; margin-right: .5em; color: var(--c-purple-dark); }
.filters-group { margin-right: .5em; }
.filters-group-name { font-size: .9em; margin-right: .25em; white-space: nowrap; }
.filter-item {
    display: inline-block; margin: .2em .5em .2em 0; padding: 0 .5rem; background: #dfdfdf; border-radius: 2px; font-size: .875rem; font-weight: 700; color: var(--c-purple-dark);
}
.filter-item::after {
    content: ""; display: inline-block; width: .7em; height: .7em; margin-left: .375rem; background: var(--c-coral-dark);
    -webkit-mask: var(--x-mark) center / contain no-repeat; mask: var(--x-mark) center / contain no-repeat;
}
.filter-item:hover, .filter-item:focus-visible { background: #d5d5d5; color: var(--c-purple-dark); }
.filter-item.clear-filters { background: none; margin-right: .5em; }
.filter-item.clear-filters::after { display: none; }
.no-filters-msg { font-size: .9em; }
.filters-save { display: flex; align-items: center; gap: .5rem; white-space: nowrap; }
.filters-save .link-button { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; color: var(--c-purple); }
.filters-save .link-button:hover, .filters-save .link-button:focus-visible { color: var(--c-coral); }
.results-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin-bottom: .75rem; }
.results-head .results-title { margin: 0; display: flex; align-items: center; gap: .5rem; }
.results-title .ico-filled { flex: none; width: 1.75rem; height: 1.75rem; color: var(--c-purple-dark); }

@media (max-width: 47.99rem) {
    #ps-t1:checked ~ .ps-p1, #ps-t2:checked ~ .ps-p2, #ps-t3:checked ~ .ps-p3, #ps-t4:checked ~ .ps-p4 { display: block; }
}

/* Forum pages (legacy forum.scss): a crimson art band under the header with the white title, a white intro box, cards. */
.forum-band {
    background: #a8182b center / cover no-repeat url("/img/forum/forum-main-mobile.svg"); overflow: hidden; color: #fff;
}
.forum-band--sub { background-image: url("/img/forum/forum-sub-2-mobile.svg"); }
.band-inner { max-width: 78rem; margin: 0 auto; padding: .75rem 1.25rem 1.5rem; }
.forum-band h1 { color: #fff; margin: 0 0 .5rem; text-shadow: 1px 1px 4px rgba(0, 0, 0, .2); }
.forum-band .band-lead { margin: 0; font-size: 1rem; line-height: 1.2; text-shadow: 1px 1px 4px rgba(0, 0, 0, .2); }
.intro-box { background: var(--c-surface); color: var(--c-ink); text-align: center; padding: 1.5rem 1rem 1rem; box-shadow: 0 0 10px rgba(0, 0, 0, .1); position: relative; }
.intro-box h2 { margin: 0 0 .75rem; font-size: 1.25rem; text-align: center; }
.intro-box a { font-weight: 700; }
.intro-text { max-height: 8.5rem; overflow: hidden; position: relative; }
.intro-text::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4rem;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
}
.intro-toggle:checked ~ .intro-text { max-height: none; }
.intro-toggle:checked ~ .intro-text::after { display: none; }
.intro-more-btn { display: inline-flex; align-items: center; gap: .5rem; margin-top: .5rem; cursor: pointer; font-weight: 700; color: var(--c-purple-dark); }
.intro-more-btn .icon { width: 2.25rem; height: 1.5rem; color: var(--c-purple); }
.intro-more-btn .less, .intro-toggle:checked ~ .intro-more-btn .more { display: none; }
.intro-toggle:checked ~ .intro-more-btn .less { display: inline; }
.intro-toggle:focus-visible ~ .intro-more-btn { outline: 2px solid var(--c-purple); outline-offset: 2px; }
@media (min-width: 48rem) {
    .forum-band { background-image: url("/img/forum/forum-main-tablet.svg"); }
    .forum-band--sub { background-image: url("/img/forum/forum-sub-2-tablet.svg"); }
    .forum-band .band-lead { font-size: 1.125rem; }
}
@media (min-width: 62rem) {
    .forum-band { background-image: url("/img/forum/forum-main.svg"); }
    .forum-band--sub { background-image: url("/img/forum/forum-sub-2.svg"); }
    .band-inner { padding-bottom: 2rem; }
    .forum-band .band-lead { font-size: 1.3125rem; }
    /* From desktop width legacy shows the whole intro text and no "Vis hele" button. */
    .intro-text { max-height: none; }
    .intro-text::after, .intro-more-btn { display: none; }
}
/* Legacy breadcrumb--sub: the links in the text colour and bold, a "\00bb" between, the current page in purple. */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .375rem; font-size: .875rem; font-weight: 700; margin: 1rem 0; }
.breadcrumb a { color: var(--c-ink); }
.breadcrumb a:hover, .breadcrumb a:focus-visible { color: var(--c-coral); }
.breadcrumb span[aria-hidden] { font-weight: 400; font-size: 1.125em; line-height: 1; }
.breadcrumb > span:last-child:not([aria-hidden]) { color: var(--c-purple); }
.new-forum > summary { cursor: pointer; font-weight: 700; color: var(--c-purple-dark); }
.new-forum form { margin-top: .75rem; }
.pin-mark { margin-left: .35rem; font: 700 .75rem var(--f-body); color: var(--c-coral-dark); vertical-align: middle; }

/* Thread view (legacy forum.scss forum__topic): white box, grey header with the date, body, author footer. */
.topic { background: var(--c-surface); box-shadow: 0 0 10px rgba(0, 0, 0, .06); margin: 0 0 1rem; scroll-margin-top: 1rem; }
.topic-header { background: #f1f1f4; border-bottom: 1px solid #dedee6; padding: 1rem; display: flow-root; }
.topic .topic-title { margin: 0 0 .25rem; font-size: 1.25rem; text-align: left; overflow-wrap: anywhere; }
.topic .topic-title.is-closed { color: var(--c-ink-soft); }
.topic-date { font-size: .8125rem; opacity: .8; }
.topic-index { font-weight: 700; color: var(--c-ink); margin-right: .5rem; }
.topic-body { padding: 1rem; overflow: hidden; overflow-wrap: anywhere; }
.topic-body > :last-child { margin-bottom: 0; }
.topic-deleted { color: var(--c-error); margin: 0; }
.topic-footer { display: flex; align-items: center; gap: .75rem; padding: 1rem; border-top: 1px solid #dedee6; }
.topic-owner { font-size: .9375rem; line-height: 1.3; }
.topic-owner a { font-weight: 700; color: var(--c-ink); }
.avatar-sm { width: 3rem; height: 3rem; border-radius: 50%; }
.topic-responses { margin: 1.5rem 0 .75rem; text-align: left; }
.topic-manage { float: right; position: relative; margin-left: .5rem; }
.topic-manage > summary { cursor: pointer; font-weight: 700; font-size: .875rem; color: var(--c-purple-dark); list-style: none; }
.topic-manage > summary::-webkit-details-marker { display: none; }
.topic-manage-list {
    position: absolute; right: 0; z-index: 20; top: 100%; min-width: 9rem; background: var(--c-surface);
    box-shadow: 0 2px 12px rgba(0, 0, 0, .2); padding: .25rem 0; display: grid;
}
.topic-manage-list a, .topic-manage-list button {
    display: block; width: 100%; text-align: left; background: none; border: 0; padding: .5rem 1rem;
    font: inherit; font-weight: 700; color: var(--c-ink); cursor: pointer;
}
.topic-manage-list a:hover, .topic-manage-list button:hover { color: var(--c-coral); }
.topic-manage-list form { margin: 0; }
.new-post-block { margin: 1.5rem 0; }
.new-post-block h3 { text-align: left; margin: 0 0 .5rem; }

/* Profile page (legacy profile.scss): a cover with the picture and a dark summary box, a purple action bar, then white sections. */
.pf { background: var(--c-surface); box-shadow: 0 0 10px rgba(0, 0, 0, .06); margin: 0 0 1.5rem; }
.pf-cover {
    position: relative; height: 12.5rem; color: #fff;
    background: linear-gradient(135deg, #251f54 0%, #5b439a 60%, #a8182b 140%) center / cover no-repeat;
}
.pf-summary { position: absolute; bottom: 0; left: 0; right: 0; display: flex; font-size: .875rem; line-height: 1.3; }
.pf-pic { width: 7rem; height: 7rem; object-fit: cover; flex: none; background: var(--c-bg); border-radius: 0; }
.pf-summary ul { list-style: none; margin: 0; padding: 1rem; background: rgba(0, 0, 0, .4); flex: 1; min-width: 0; overflow-wrap: anywhere; }
.pf-summary li { padding: 0; }
.pf-summary h1, .pf-summary .pf-sub { font: 700 .875rem/1.3 var(--f-body); color: #fff; margin: 0; text-align: left; }
.pf-summary .pf-sub { font-weight: 400; }
.pf-edit {
    position: absolute; top: .75rem; right: .75rem; background: rgba(0, 0, 0, .4); color: #fff; padding: .35rem .75rem;
    font-weight: 700; font-size: .875rem;
}
.pf-edit:hover { background: rgba(0, 0, 0, .6); color: #fff; }
.pf-tools { display: flex; flex-wrap: wrap; position: relative; background: var(--c-purple); }
.pf-tools > form, .pf-tools > details { flex: 1 1 7.5rem; margin: 0; }
.pf-tools > form > button, .pf-menu > summary {
    display: block; width: 100%; background: none; border: 0; color: #fff; padding: .75rem .5rem; font: 700 .875rem var(--f-body); cursor: pointer; text-align: center;
}
.pf-tools > form > button:hover, .pf-tools > form > button:focus-visible, .pf-menu > summary:hover, .pf-menu[open] > summary { background: rgba(0, 0, 0, .2); }
.pf-tools > form > button.is-active { color: #ffa632; }
/* Menus of the action bar (legacy dropdowns): a white panel under the heading; on a phone it opens inline. */
.pf-menu { position: static; }
.pf-menu > summary { list-style: none; }
.pf-menu > summary::-webkit-details-marker { display: none; }
.pf-menu > summary::after { content: ""; display: inline-block; width: .45em; height: .45em; margin: 0 0 .2em .5em; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.pf-menu[open] > summary::after { transform: rotate(-135deg); margin-bottom: 0; }
.pf-menu-panel { background: var(--c-surface); color: var(--c-ink); padding: .25rem 1rem .5rem; box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .25); }
.pf-menu-panel { position: absolute; z-index: 7; top: 100%; left: 0; right: 0; }
@media (min-width: 48rem) { .pf-menu { position: relative; } .pf-menu-panel { right: auto; min-width: 18rem; } }
.pf-menu-panel > a, .pf-menu-panel form > button, .pf-sub > summary {
    display: block; width: 100%; padding: .45rem 0; background: none; border: 0; text-align: left; cursor: pointer; font: 700 .9375rem var(--f-body); color: var(--c-ink);
}
.pf-menu-panel > a:hover, .pf-menu-panel form > button:hover, .pf-sub > summary:hover { color: var(--c-coral); }
.pf-sub > summary { list-style: none; }
.pf-sub > summary::-webkit-details-marker { display: none; }
.pf-sub-body { padding: .25rem 0 .5rem; }
.pf-sub-body label { display: block; font-weight: 700; font-size: .875rem; }
.pf-sub-body textarea { width: 100%; padding: .4rem .6rem; font: inherit; border: 2px solid var(--c-purple); border-radius: var(--btn-radius); resize: vertical; }
.pf-sub-body p { margin: .5rem 0; font-size: .9rem; }
.pf-sub-pair { display: flex; flex-wrap: wrap; gap: 0 1rem; }
.pf-flash { margin: .75rem 1rem 0; }
.pf-quick-status { position: absolute; left: .75rem; top: .75rem; display: flex; gap: .5rem; list-style: none; margin: 0; padding: 0; color: #fff; }
.pf-quick-status .icon, .pf-quick-status .ico { width: 1.4rem; height: 1.4rem; filter: drop-shadow(1px 1px 0 rgba(0, 0, 0, .6)); }
.pf-body { padding: 0 1rem 1.5rem; }
.pf-body h2 { text-align: left; font-size: 1.125rem; margin: 1.5rem 0 .5rem; }
.pf-notice { margin: 0 0 .75rem; padding: .75rem 1rem; background: #eef0fb; color: var(--c-ink); }
.pf-keyinfo-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.pf-keyinfo dl { margin: 0 0 .75rem; }
.pf-keyinfo dt { font-weight: 700; margin-top: .5rem; }
.pf-keyinfo dd { margin: 0; overflow-wrap: anywhere; }
.pf-plain { list-style: none; margin: 0 0 .5rem; padding: 0; }
.pf-plain li { padding: .1rem 0; overflow-wrap: anywhere; }
.pf-dates { font-size: .78rem; width: 100%; border-collapse: collapse; }
.pf-dates td { padding: 3px 0; line-height: 1; vertical-align: top; }
.pf-dates td:last-child { text-align: right; }
@media (min-width: 30rem) {
    .pf-cover { height: 18.5rem; }
}
@media (min-width: 48rem) {
    .pf-pic { width: 8.125rem; height: 8.125rem; }
    .pf-summary ul { padding: 1.25rem; flex: none; min-width: 16rem; }
    .pf-summary h1 { font-size: 1.125rem; }
    .pf-summary .pf-sub { font-size: 1rem; }
    .pf-body { padding: 0 2rem 2rem; }
    .pf-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; }
}

/* Chat page: the reserved place for the chat widget (runbook 27 item 11). */
.chat-placeholder { min-height: 12rem; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--c-ink-soft); }

/* Settings page (legacy ClubProfileSettings): purple-ruled headings, a bold label with the explanation under it, switches. */
.settings-page h1 { text-align: left; margin: .5rem 0 .5rem; }
.settings-page h2 { text-align: left; font-family: var(--f-body); font-size: 1.0625rem; margin: 1.5rem 0 .75rem; padding-bottom: .35rem; border-bottom: 2px solid var(--c-purple); }
.settings-page .setting { margin: 0 0 1rem; }
.setting-check { display: flex; align-items: flex-start; gap: .6rem; cursor: pointer; }
.setting-check input { margin-top: .25rem; }
.setting-text { margin: .15rem 0 0; font-size: .875rem; color: var(--c-ink); }
.setting-check + .setting-text { padding-left: 1.6rem; }
.setting-toggle { display: flex; align-items: center; gap: .75rem; cursor: pointer; font-weight: 700; }
.setting-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle-slider { position: relative; flex: none; order: -1; width: 2.5rem; height: 1.4rem; border-radius: 1rem; background: #c9c9d6; transition: background .15s; }
.toggle-slider::after { content: ""; position: absolute; top: .2rem; left: .2rem; width: 1rem; height: 1rem; border-radius: 50%; background: #fff; transition: transform .15s; }
.setting-toggle input:checked ~ .toggle-slider { background: var(--c-purple); }
.setting-toggle input:checked ~ .toggle-slider::after { transform: translateX(1.1rem); }
.setting-toggle input:focus-visible ~ .toggle-slider { outline: 2px solid var(--c-coral); outline-offset: 2px; }
.flash-ok { color: var(--c-purple-dark); font-weight: 600; }
.settings-page .buttons { margin-top: 1.5rem; display: flex; justify-content: flex-end; }

/* Profile page, second pass (Petter's legacy screenshots 2026-10-21): the legacy cover picture, ruled section headings,
   status on the picture, key-info buttons, the groups and forums tabs and the guest book at the bottom. */
.pf-cover { background: #cfcde4 url("/img/profile-cover.png") center / cover no-repeat; }
.pf-summary { align-items: flex-end; }
.pf-summary ul { align-self: stretch; }
.pf-summary h1, .pf-summary .pf-sub { color: #fff; }
.pf-pic-wrap { position: relative; flex: none; line-height: 0; }
.pf-status { position: absolute; left: .4rem; bottom: .3rem; display: flex; align-items: center; gap: .35rem; font: 700 .75rem/1 var(--f-body); color: #fff; text-shadow: 0 0 3px rgba(0, 0, 0, .7); }
.pf-online { width: .6rem; height: .6rem; border-radius: 50%; background: #3fb950; box-shadow: 0 0 0 2px rgba(255, 255, 255, .8); }
.pf-lock { position: absolute; right: .75rem; bottom: .9rem; color: #ffa632; }
.pf-lock .icon { width: 1.1rem; height: 1.1rem; }
.pf-edit { display: inline-flex; align-items: center; gap: .4rem; top: 0; right: 0; background: #251f54; padding: .6rem 1rem; }
.pf-edit .icon { width: 1.1rem; height: 1.1rem; }
.pf-body h2 {
    font: 700 .9375rem/1.3 var(--f-body); color: var(--c-ink); margin: 1.5rem 0 .6rem; padding-bottom: .35rem;
    border-bottom: 2px solid var(--c-purple); text-align: left;
}
.pf-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem; margin: .5rem .5rem 0 0; padding: .9rem 1.1rem;
    background: #f1f1f1; color: var(--c-ink); font-weight: 700; font-size: .9375rem; min-width: 7rem;
}
.pf-btn:hover, .pf-btn:focus-visible { background: #e6e6ea; color: var(--c-purple-dark); }
.pf-btn .icon { width: 1.3rem; height: 1.3rem; color: var(--c-purple); }
.pf-btn-wide { display: flex; width: 100%; margin-right: 0; }
.pf-module { margin-top: 1.5rem; }
.pf-module .pf-tab-radio { position: absolute; opacity: 0; pointer-events: none; }
.pf-module-tabs { list-style: none; margin: 0; padding: 0; display: flex; border-bottom: 2px solid var(--c-purple); }
.pf-module-tabs li { padding: 0; }
.pf-module-tabs label { display: block; padding: .5rem 1rem; cursor: pointer; font-weight: 700; font-size: .9375rem; background: #f1f1f1; color: var(--c-ink); }
.pf-module-tabs label:hover { color: var(--c-coral); }
.pf-module-panel { display: none; padding-top: .75rem; font-size: .9375rem; }
#pf-m1:checked ~ .pf-mp1, #pf-m2:checked ~ .pf-mp2, #pf-m3:checked ~ .pf-mp3 { display: block; }
#pf-m1:checked ~ .pf-module-tabs li:nth-child(1) label, #pf-m2:checked ~ .pf-module-tabs li label[for=pf-m2], #pf-m3:checked ~ .pf-module-tabs li label[for=pf-m3] { background: var(--c-purple); color: #fff; }
.pf-module-list { list-style: none; margin: 0; padding: 0; }
.pf-module-list li { padding: 0; border-bottom: 1px solid var(--c-line); }
.pf-module-list a { display: block; padding: .6rem 0; color: var(--c-ink); overflow-wrap: anywhere; }
.pf-module-list a:hover strong { color: var(--c-coral); }
.pf-module-list span, .pf-module-list small { display: block; color: var(--c-ink-soft); }
.pf-guestbook .pf-guestbook-title { text-align: center; }
.pf-guestbook-list { list-style: none; margin: 0 0 1rem; padding: 0; }
.pf-guestbook-list li { padding: .6rem 0; border-bottom: 1px solid var(--c-line); }
.pf-guestbook-list p { margin: .25rem 0 0; overflow-wrap: anywhere; }
.pf-guestbook-by { font-size: .875rem; }
.pf-guestbook-form textarea { width: 100%; border: 2px solid var(--c-purple); min-height: 5rem; }
.pf-guestbook-form .buttons { display: flex; justify-content: flex-end; margin-top: .75rem; }
@media (min-width: 48rem) {
    .pf-edit { padding: .75rem 1.1rem; }
}

/* "Report abuse" links under content and the report page (legacy: the abuse report component). */
.report-row { margin: .5rem 0 0; font-size: .8125rem; }
.report-row a { color: var(--c-ink-soft); text-decoration: underline; }
.report-row a:hover, .report-row a:focus-visible { color: var(--c-coral); }
.report-card { max-width: 40rem; }

/* Moderation queue (legacy club-moderation-app): tabs, a list of reports that open to their detail, pictures with approve and reject. */
.mod-tabs a.is-current { color: var(--c-purple-dark); border-bottom-color: var(--c-purple); }
.mod-list { list-style: none; margin: 0 0 var(--gap); padding: 0; display: grid; gap: .5rem; }
.mod-item { background: var(--c-surface); box-shadow: 0 0 10px rgba(0, 0, 0, .06); padding: .75rem 1rem; }
.mod-report > summary { cursor: pointer; display: grid; gap: .15rem; list-style: none; }
.mod-report > summary::-webkit-details-marker { display: none; }
.mod-comment { overflow-wrap: anywhere; }
.mod-meta { font-size: .8125rem; }
.mod-detail { padding-top: .75rem; }
.mod-content { white-space: pre-wrap; overflow-wrap: anywhere; }
.gb-text { white-space: pre-line; overflow-wrap: anywhere; }
.mod-resolve label { display: block; font-weight: 700; font-size: .875rem; margin-top: .5rem; }
.mod-resolve textarea, .mod-image textarea { width: 100%; padding: .4rem .6rem; font: inherit; border: 2px solid var(--c-purple); border-radius: var(--btn-radius); margin-bottom: .5rem; }
.mod-image { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-start; }
.mod-image img { display: block; height: auto; max-width: 100%; }
.mod-image .mod-body { flex: 1 1 12rem; }
.mod-image .mod-body p { margin: 0 0 .25rem; }
.mod-actions { display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; }

/* My forums (legacy forum__list--topics): a thread or post with where it was posted, then counts and date. */
.my-forum-list { list-style: none; margin: 0 0 var(--gap); padding: 0; background: var(--c-surface); box-shadow: 0 0 10px rgba(0, 0, 0, .06); }
.my-forum-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1.5rem; padding: .75rem 1rem; border-bottom: 1px solid var(--c-line); }
.my-forum-list li:last-child { border-bottom: 0; }
.my-forum-main { flex: 1 1 16rem; display: grid; gap: .15rem; color: var(--c-ink); overflow-wrap: anywhere; }
.my-forum-main:hover strong, .my-forum-main:focus-visible strong { color: var(--c-coral); }
.my-forum-num, .my-forum-date { font-size: .875rem; white-space: nowrap; }
.my-forum-label { color: var(--c-ink-soft); margin-right: .25rem; }
.pf-sub-body input[type="text"], .pf-sub-body select { width: 100%; padding: .4rem .6rem; font: inherit; border: 2px solid var(--c-purple); border-radius: var(--btn-radius); background: var(--c-surface); margin-bottom: .5rem; }

/* Restricted-access pages (legacy ClubContentPage: title, text, Back): VIP only, blacklisted, profile not available. */
.message-card { max-width: 40rem; }
.message-card h1 { margin-top: 0; }
.message-sub { text-align: left; font-size: 1.125rem; margin: 1.25rem 0 .5rem; }
.message-card .pf-sub > summary { display: inline-block; width: auto; padding: .5rem .875rem; color: var(--c-on-accent); text-align: center; }

/* Home desktop "In Club" tiles (runbook 27 item N10): a count, what it counts and the period; the whole tile is the link. */
.overview-tiles { list-style: none; margin: 0 0 var(--gap); padding: 0; display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); }
.overview-tile {
    display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: 1rem .75rem; height: 100%; text-align: center;
    color: var(--c-ink); background: var(--c-surface); box-shadow: 0 0 10px rgba(0, 0, 0, .06);
}
.overview-tile:hover, .overview-tile:focus-visible { color: var(--c-coral); }
.overview-icon { line-height: 0; margin: .5rem 0 .35rem; }
.overview-label { font-weight: 700; }
.overview-period { font-size: .8125rem; }

/*
 * Kit (runbook 31 items A and B): the outline icons, the one count badge, the tabs, the gear menu and the list rows.
 * Shared by the forum screens first; other screens move onto them one at a time. Tokens only, no literal colours.
 */
.ico { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; flex: none; }
.ico.is-disabled { color: var(--c-ink-soft); }
.ico.is-highlight { color: var(--c-coral-dark); }
.ico .x { stroke: var(--c-coral-dark); stroke-width: 2; }

/* The one count badge: a red circle up and to the right of the item, out of the text flow, so nothing shifts when it appears. */
.has-badge { position: relative; display: inline-block; }
.count-badge {
    position: absolute; top: -.6rem; right: -.7rem; z-index: 1; min-width: 1.25rem; height: 1.25rem; padding: 0 .3rem;
    border-radius: 1rem; background: var(--c-coral-dark); color: var(--c-on-accent); pointer-events: none; white-space: nowrap;
    font: 700 .75rem/1.25rem sans-serif; text-align: center;
}
.count-badge[hidden] { display: none; }
/* A text that carries a badge (a title, a tab label) always keeps room at its right edge, so it wraps the same with or without a count. */
.has-badge.is-text { padding-right: 1.5rem; }
.has-badge.is-text .count-badge { top: -.2rem; right: 0; }
/* A text menu row: the circle sits at the right edge of the row on its first line; the row always keeps room for it. */
.menu-club .menu-panel li a, .club-aside li a { position: relative; padding-right: 2.4rem; }
.menu-club .menu-panel .has-badge, .club-aside .has-badge { position: static; display: inline; }
.menu-club .menu-panel .count-badge, .club-aside .count-badge { top: .35rem; right: .5rem; }
/* A Home tile: the circle sits at the tile's top right corner. */
.overview-tile { position: relative; }
.overview-tile > .count-badge { top: .5rem; right: .5rem; }

/* Tabs: a row from tablet width, a dropdown (details) on a phone with the current tab on top. */
.tabs { margin: 0 0 var(--gap); min-width: 0; }
.tab-row { display: none; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; gap: .25rem 1.5rem; border-bottom: 2px solid var(--c-line); }
.tab-row .tab { display: flex; align-items: center; gap: .5rem; padding: .6rem .25rem; margin-bottom: -2px; border-bottom: 3px solid transparent; color: var(--c-ink); font-weight: 700; }
.tab-row .tab:hover, .tab-row .tab:focus-visible { color: var(--c-coral); }
.tab-row .tab.is-current { color: var(--c-purple-dark); border-bottom-color: var(--c-purple); }
.tab-dropdown { background: var(--c-surface); border-radius: var(--radius); box-shadow: 0 0 10px rgba(0, 0, 0, .06); }
.tab-dropdown > summary { display: flex; align-items: center; gap: .6rem; padding: .7rem 1rem; list-style: none; cursor: pointer; color: var(--c-purple-dark); font-weight: 700; }
.tab-dropdown > summary::-webkit-details-marker { display: none; }
.tab-dropdown-label { flex: 1; }
.tab-dropdown-chevron { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border: 1px solid var(--c-line); border-radius: 50%; }
.tab-dropdown[open] .tab-dropdown-chevron .ico { transform: rotate(180deg); }
.tab-dropdown ul { list-style: none; margin: 0; padding: .25rem 0; border-top: 1px solid var(--c-line); }
.tab-dropdown li a { display: flex; align-items: center; gap: .6rem; padding: .6rem 1rem; color: var(--c-ink); font-weight: 700; }
.tab-dropdown li a:hover, .tab-dropdown li a:focus-visible { color: var(--c-coral); }
@media (min-width: 48rem) { .tab-row { display: flex; } .tab-dropdown { display: none; } }

/* A bar with the tabs on the left and one action button on the right (the forum list: "New forum"). */
.tabs-bar { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .75rem var(--gap); }
.tabs-bar .tabs { flex: 1 1 18rem; }
.tabs-bar > .btn { flex: none; margin-bottom: var(--gap); }

/* The gear menu of a list row: a details, so it opens without JavaScript (menus.js closes it on an outside click). */
.action-menu { position: relative; display: inline-block; }
.action-menu > summary { padding: .35rem; border-radius: 50%; line-height: 0; list-style: none; cursor: pointer; color: var(--c-purple); }
.action-menu > summary::-webkit-details-marker { display: none; }
.action-menu > summary:hover, .action-menu > summary:focus-visible, .action-menu[open] > summary { color: var(--c-coral); }
.action-menu-panel {
    position: absolute; top: 100%; right: 0; z-index: 8; min-width: 12rem; padding: .25rem 0;
    background: var(--c-surface); border-radius: var(--radius); box-shadow: 0 .25rem 1rem rgba(0, 0, 0, .2);
}
.action-menu-panel form { margin: 0; }
.action-menu-panel > a, .action-menu-panel form > button, .am-confirm > summary {
    display: flex; align-items: center; gap: .6rem; width: 100%; padding: .55rem 1rem; border: 0; background: none; list-style: none;
    color: var(--c-ink); font: inherit; font-size: .875rem; font-weight: 700; text-align: left; white-space: nowrap; cursor: pointer;
}
.am-confirm > summary::-webkit-details-marker { display: none; }
.action-menu-panel > a:hover, .action-menu-panel form > button:hover, .am-confirm > summary:hover,
.action-menu-panel > a:focus-visible, .action-menu-panel form > button:focus-visible, .am-confirm > summary:focus-visible { color: var(--c-coral); }
.am-confirm form { padding: .25rem 1rem .75rem; }
.am-confirm p { margin: 0 0 .5rem; max-width: 14rem; font-size: .875rem; }

/* List rows (legacy forum list): one white card per row on a phone with a small label in front of each value; from tablet
   width a table-like grid with one header row. The gear sits at the top right of the row. */
.list-table { list-style: none; margin: 0 0 var(--gap); padding: 0; display: grid; gap: 1rem; }
.list-header { display: none; }
.list-row { position: relative; display: grid; gap: .4rem; padding: 1rem 2.75rem 1rem 1rem; background: var(--c-surface); box-shadow: 0 0 10px rgba(0, 0, 0, .06); }
.lr-main { display: flex; align-items: flex-start; gap: .75rem; min-width: 0; }
.lr-icon { flex: none; padding-top: .15rem; }
.lr-icon .ico { width: 1.5rem; height: 1.5rem; }
.lr-text { min-width: 0; overflow-wrap: anywhere; }
.lr-title { margin: 0; font-family: var(--f-heading); font-size: 1.125rem; line-height: 1.25; }
.lr-title a { color: var(--c-ink); }
.lr-title a:hover, .lr-title a:focus-visible { color: var(--c-coral); }
.lr-title.is-unread a { color: var(--c-coral-dark); }
.lr-desc { margin: .25rem 0 0; font-size: .875rem; line-height: 1.3; }
.lr-cell { display: flex; gap: .5rem; align-items: baseline; font-size: .875rem; min-width: 0; }
.lr-label { flex: none; width: 6.4rem; color: var(--c-purple); font-weight: 700; }
.lr-sub { display: block; font-size: .75rem; color: var(--c-ink-soft); font-weight: 400; }
.lr-num { white-space: nowrap; font-weight: 700; }
.lr-tools { position: absolute; top: .6rem; right: .6rem; }
.list-row.is-closed .lr-title a { color: var(--c-ink-soft); }
@media (min-width: 48rem) {
    .list-header, .list-row { grid-template-columns: var(--lt-cols); align-items: start; gap: 1rem; }
    .list-header { display: grid; padding: 0 1rem; color: var(--c-purple-dark); font-size: 1rem; font-weight: 700; line-height: 1.3; }
    .list-row { padding-right: 1rem; }
    .lr-label { display: none; }
    .lr-tools { position: static; justify-self: end; }
    .list-forums { --lt-cols: minmax(0, 1fr) 5rem 5rem 15rem 2.5rem; }
    .list-threads { --lt-cols: minmax(0, 1fr) 5rem 9.5rem 11rem 2.5rem; }
    .list-groups { --lt-cols: minmax(0, 1fr) 5.5rem 7rem 12rem 10rem 2.5rem; }
    .list-mygroups { --lt-cols: minmax(0, 1fr) 9rem 5.5rem 5rem; }
    .list-mygroupposts { --lt-cols: minmax(0, 1fr) 10rem 11rem 6rem; }
    .list-mythreads { --lt-cols: minmax(0, 1fr) 5rem 10rem; }
    .list-myposts { --lt-cols: minmax(0, 1fr) 10rem; }
    .list-header > .lr-num-h { text-align: left; }
}

/* The legend under a list: what the icons mean. */
.legend { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; list-style: none; margin: 0 0 var(--gap); padding: 0; font-size: .875rem; font-weight: 700; }
.legend li { display: flex; align-items: center; gap: .4rem; }

/* The header card of a screen (_PageHeader): back link, icon and title, a part at the right, the tabs below. */
.page-header .ph-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; }
.page-header .ph-title { display: flex; align-items: center; gap: .6rem; margin: .5rem 0; font-family: var(--f-body); font-size: 1.5rem; }
.page-header .ph-title .ico { width: 2.25rem; height: 2.25rem; color: var(--c-purple-dark); }
@media (max-width: 40rem) {
    .page-header .ph-title { font-size: 1.3125rem; }
    .page-header .ph-title .ico { width: 1.875rem; height: 1.875rem; }
}
.page-header .ph-right { flex: none; }
.page-header .ph-subtitle { margin: 0 0 .5rem; }
.page-header .ph-below { margin-top: .5rem; }
.page-header .ph-below .tabs { margin-bottom: 0; }

/* A list of people with a small picture (legacy contact-list): one white row each, picture, name, details, action at the right. */
.club-main .list-title, .list-title { font-size: 1.25rem; margin: 0 0 .75rem; text-align: left; }
.contact-list { list-style: none; margin: 0 0 var(--gap); padding: 0; display: grid; gap: 1rem; }
.contact-list > li { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding: 1rem; background: var(--c-surface); box-shadow: 0 0 10px rgba(0, 0, 0, .06); }
.contact-list .cl-pic { flex: none; width: 3.75rem; line-height: 0; }
.contact-list .cl-pic .avatar { width: 3.75rem; height: 3.75rem; border-radius: 0; object-fit: cover; }
.contact-list .cl-body { flex: 1 1 10rem; min-width: 0; overflow-wrap: anywhere; }
.contact-list h3 { margin: 0 0 .125rem; font-size: 1rem; }
.contact-list h3 a { color: var(--c-ink); }
.contact-list .cl-meta { font-size: .875rem; }
.contact-list .cl-date { font-size: .75rem; opacity: .7; line-height: 1.3; }
.contact-list .cl-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-left: auto; align-items: center; }
.contact-list .cl-actions form { margin: 0; }
.cl-remove { background: none; border: 0; padding: 0; line-height: 0; cursor: pointer; color: var(--c-coral-dark); }
.cl-remove .ico { width: 1.5rem; height: 1.5rem; }
.cl-remove:hover, .cl-remove:focus-visible { color: var(--c-coral); }
.page-header .ph-switch { margin: 0; }

/* Profile description (legacy desc-lessmore): cut off on a phone with an eye button, whole from desktop width. */
.pf-desc { position: relative; }
.desc-text { max-height: 11rem; overflow: hidden; position: relative; }
.desc-text::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5rem; background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff); pointer-events: none; }
.desc-toggle:checked ~ .desc-text { max-height: none; }
.desc-toggle:checked ~ .desc-text::after { display: none; }
.desc-more-btn { display: flex; justify-content: center; align-items: center; gap: .5rem; padding: .75rem 0 0; cursor: pointer; font-weight: 700; color: var(--c-purple-dark); }
.desc-more-btn .ico { width: 2rem; height: 1.5rem; color: var(--c-purple); }
.desc-more-btn .less, .desc-toggle:checked ~ .desc-more-btn .more { display: none; }
.desc-toggle:checked ~ .desc-more-btn .less { display: inline; }
.desc-toggle:focus-visible ~ .desc-more-btn { outline: 2px solid var(--c-purple); outline-offset: 2px; }
@media (min-width: 75rem) {
    .desc-text { max-height: none; }
    .desc-text::after, .desc-more-btn { display: none; }
}
.pf-admin-note { margin: 0 0 1rem; color: var(--c-error); }
.title-center { text-align: center; }

/* A bar that divides the sections of a page (_SectionBar): name, count and a gear menu of the tools. */
.section-bar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .6rem 1rem; background: var(--c-purple); color: #fff; }
.section-bar .sb-title { margin: 0; font-size: 1.125rem; text-align: left; color: #fff; overflow-wrap: anywhere; }
.section-bar .sb-title a { color: #fff; }
.section-bar .sb-count { font-weight: 400; margin-left: .35rem; }
.section-bar .action-menu > summary { color: #fff; }
.section-bar .action-menu > summary:hover, .section-bar .action-menu[open] > summary { opacity: .8; }
.gallery-block { margin: 0 0 var(--gap); background: var(--c-surface); box-shadow: 0 0 10px rgba(0, 0, 0, .06); }
.gallery-covers { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin: 0; padding: .75rem; }
.gallery-covers img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery-covers .gc-empty { aspect-ratio: 1; background: #ececf1; }
.gallery-empty { padding: .75rem 1rem 1rem; margin: 0; }
.gallery-grid { list-style: none; margin: 0 0 var(--gap); padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.gallery-grid li { background: var(--c-surface); box-shadow: 0 0 10px rgba(0, 0, 0, .06); padding: .5rem; min-width: 0; }
.gallery-grid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery-grid .gg-caption { margin: .4rem 0 0; font-size: .875rem; overflow-wrap: anywhere; }
.gallery-grid form { margin: .5rem 0 0; }
@media (min-width: 48rem) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }

/* Group pages (legacy forum--group, forum--groupsub, forum--groupsub2): the same band with the group art; the sub pages are darkened. */
.forum-band--group { background-image: url("/img/group/group-mobile.svg"); }
.forum-band--groupsub { background-image: linear-gradient(rgba(84, 76, 31, .7), rgba(84, 76, 31, .7)), url("/img/group/group-sub-mobile.svg"); }
.forum-band--groupsub2 { background-image: linear-gradient(rgba(84, 76, 31, .7), rgba(84, 76, 31, .7)), url("/img/group/group-sub-2-mobile.svg"); }
@media (min-width: 48rem) {
    .forum-band--group { background-image: url("/img/group/group-tablet.svg"); }
    .forum-band--groupsub { background-image: linear-gradient(rgba(84, 76, 31, .7), rgba(84, 76, 31, .7)), url("/img/group/group-sub-tablet.svg"); }
    .forum-band--groupsub2 { background-image: linear-gradient(rgba(84, 76, 31, .7), rgba(84, 76, 31, .7)), url("/img/group/group-sub-2-tablet.svg"); }
}
@media (min-width: 62rem) {
    .forum-band--group { background-image: url("/img/group/group.svg"); }
    .forum-band--groupsub { background-image: linear-gradient(rgba(84, 76, 31, .7), rgba(84, 76, 31, .7)), url("/img/group/group-sub.svg"); }
    .forum-band--groupsub2 { background-image: linear-gradient(rgba(84, 76, 31, .7), rgba(84, 76, 31, .7)), url("/img/group/group-sub-2.svg"); }
}
.list-categories { --lt-cols: minmax(0, 1fr) 5rem 5rem 2.5rem; }
.contact-list .cl-link { color: var(--c-ink); }
.contact-list .cl-link:hover h3, .contact-list .cl-link:focus-visible h3 { color: var(--c-coral); }
/* A conversation (legacy inbox): the messages as bubbles, your own at the right. */
.chat-messages { list-style: none; margin: 0 0 var(--gap); padding: 0; display: grid; gap: .75rem; }
.chat-message { display: flex; }
.chat-message.is-own { justify-content: flex-end; }
.cm-bubble { max-width: 85%; padding: .6rem .9rem; background: var(--c-surface); box-shadow: 0 0 10px rgba(0, 0, 0, .06); overflow-wrap: anywhere; }
.chat-message.is-own .cm-bubble { background: #e9e6f5; }
.cm-bubble p { margin: .15rem 0; white-space: pre-wrap; }
.cm-from { font-size: .8125rem; color: var(--c-purple-dark); }
.cm-time { font-size: .75rem; color: var(--c-ink-soft); }

/* The pictures of the edit page: the profile picture and the cover, each with its upload and remove forms. */
.pictures-card h2 { text-align: left; margin-top: 0; }
.picture-slots { display: grid; gap: 1.5rem; }
.picture-slot h3 { margin: 0 0 .5rem; font-size: 1.125rem; }
.picture-slot form { margin: .5rem 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.picture-slot .pic-profile { display: block; width: 8rem; height: 8rem; object-fit: cover; }
.picture-slot .pic-cover { display: block; max-width: 100%; height: auto; max-height: 9rem; object-fit: cover; }
@media (min-width: 48rem) { .picture-slots { grid-template-columns: 1fr 1fr; } }

/* A cover picture behind the summary, and the mark for a picture that waits for a moderator (only its owner and moderators see it). */
.pf-cover { overflow: hidden; }
.pf-cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.pf-cover .pf-edit, .pf-cover .pf-summary { z-index: 1; }
.pf-waiting { position: absolute; top: .5rem; left: .5rem; z-index: 2; display: inline-flex; padding: .25rem; background: var(--c-coral-dark); color: #fff; border-radius: 50%; }
.pf-waiting .ico { width: 1.25rem; height: 1.25rem; }
.pf-waiting.is-picture { top: .25rem; left: .25rem; }
.topic-star { margin: .25rem 0 0; }
.topic-star button { background: none; border: 0; padding: 0; line-height: 0; cursor: pointer; color: var(--c-purple); }
.topic-star .ico { width: 1.5rem; height: 1.5rem; }
.topic-star .ico.is-highlight { fill: currentColor; }

/* Grey button tabs (legacy .gray-buttons, the Contact ads header): stacked boxes on a phone with a dark bar at the left of the current
   one; from a wider screen a row of boxes with a dark bar under the current one. */
.tabs-buttons ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.tabs-buttons a {
    display: flex; align-items: center; gap: .5rem; padding: .875rem; font-size: .875rem; font-weight: 700; color: var(--c-ink);
    background: #f4f4f4; border-left: 3px solid transparent; border-radius: 3px;
}
.tabs-buttons a .ico { flex: none; width: 1.75rem; height: 1.75rem; color: var(--c-purple); }
.tabs-buttons a:hover, .tabs-buttons a:focus-visible, .tabs-buttons a.is-current {
    background: #dfdfdf; border-left-color: var(--c-purple-dark); border-radius: 0 3px 3px 0; color: var(--c-ink);
}
@media (min-width: 30rem) {
    .tabs-buttons ul { display: flex; flex-wrap: wrap; gap: .5rem; }
    .tabs-buttons a { border-left: 0; border-bottom: 3px solid transparent; }
    .tabs-buttons a:hover, .tabs-buttons a:focus-visible, .tabs-buttons a.is-current { border-left: 0; border-bottom-color: var(--c-purple-dark); border-radius: 3px 3px 0 0; }
}

/* The list of ads (legacy .contact-ad__table): one white card per ad. A phone: the picture and the title on top, a rule, then the
   facts; from tablet width: the picture and title on the left, the facts at the right behind a thin vertical rule. */
.ad-list { list-style: none; margin: 0 0 var(--gap); padding: 0; display: grid; gap: 1rem; }
.ad-card { background: var(--c-surface); box-shadow: 0 0 10px rgba(0, 0, 0, .06); transition: background .15s; }
.ad-card:hover { background: #fbfbfb; }
.ad-head { display: flex; }
.ad-pic { flex: none; width: 5.875rem; line-height: 0; }
.ad-pic .profile-card-frame { margin: 0; }
.ad-title { display: flex; flex-direction: column; flex: 1; min-width: 0; margin: .75rem .75rem 0; border-bottom: 1px solid #dbdbdb; }
.ad-title h2 { margin: 0; padding: 0; border: 0; font-size: 1.125rem; text-align: left; overflow-wrap: anywhere; }
.ad-title h2 a { color: var(--c-purple); }
.ad-title h2 a:hover, .ad-title h2 a:focus-visible { color: var(--c-coral); }
.ad-title p { margin: .25em 0; font-size: .8125rem; }
.ad-author { color: var(--c-ink); }
.ad-facts { list-style: none; margin: 0; padding: .75rem 1rem; font-size: .875rem; }
.ad-facts li { padding: .25em 0; line-height: 1.2em; overflow-wrap: anywhere; }
@media (min-width: 48rem) {
    .ad-card { display: flex; }
    .ad-head { flex: 0 0 54%; }
    .ad-pic { width: 7.8125rem; }
    .ad-title { margin: 1.25rem 1.5rem 1.125rem 1rem; border-bottom: 0; }
    .ad-title p { font-size: .875rem; margin: 0; }
    .ad-facts { flex: 0 0 46%; position: relative; display: flex; flex-direction: column; justify-content: center; padding-left: 1.5rem; }
    .ad-facts::before { content: ""; position: absolute; left: 0; top: 10%; width: 1px; height: 80%; background: #dbdbdb; }
    .ad-facts li { padding: .125rem 0; }
}
@media (min-width: 64rem) {
    .ad-pic { width: 9.375rem; }
    .ad-title { margin: 1.6875rem 1.5rem 1.5625rem; }
    .ad-title p, .ad-facts { font-size: 1rem; }
}

/* A "choose" box of the filters: the date fields inside a dropdown. */
.filter-dd-panel .field { margin: .5rem 0 0; }
.filter-dd-panel .field label { font-weight: 700; font-size: .9rem; }
.ad-filter .filters-save .btn { white-space: nowrap; }

/* One ad (legacy .contact-ad-detail): the author's facts at the side on a wide screen (a collapsible strip on a phone), the ad in a
   white card, the facts under a purple rule and the reply button. */
.ad-detail { display: flex; margin-bottom: 2rem; }
.ad-aside { display: none; }
.ad-article { flex: 1; min-width: 0; background: var(--c-surface); padding: 1.25rem; box-shadow: 0 0 10px rgba(0, 0, 0, .06); }
.ad-article .back-link { display: inline-block; margin-bottom: .5rem; }
.ad-body-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.ad-body-head h1 { margin: 0 0 .5rem; font-size: 1.25rem; color: var(--c-purple-dark); text-align: left; overflow-wrap: anywhere; }
.ad-tools { display: flex; align-items: center; gap: .5rem; flex: none; padding-top: .25rem; }
.ad-tool { display: block; line-height: 0; color: var(--c-purple); }
.ad-tool .ico { width: 1.5rem; height: 1.5rem; }
.ad-tool:hover, .ad-tool:focus-visible { color: var(--c-coral); }
.ad-text { margin: 1rem 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.ad-facts-footer { list-style: none; margin: 1rem 0 0; padding: 0 0 .5rem; border-bottom: 2px solid var(--c-purple); }
.ad-facts-footer li { padding: 0; margin-bottom: .5rem; }
.ad-facts-footer p { margin: 0; }
.ad-facts-footer span { display: block; overflow-wrap: anywhere; }
.ad-reply { margin: 1.25rem 0 0; text-align: right; }
.ad-aside-text { margin: 0 0 .75rem; }
.ad-aside-text p { margin: 0; font-size: .875rem; }
.ad-strip { margin: 0 -1.25rem 1rem; background: #fafafa; box-shadow: 0 0 10px rgba(0, 0, 0, .06); }
.ad-strip > summary { display: flex; align-items: center; gap: .75rem; list-style: none; cursor: pointer; padding: 0 1rem 0 0; }
.ad-strip > summary::-webkit-details-marker { display: none; }
.ad-strip-pic { flex: none; width: 7.1875rem; line-height: 0; }
.ad-strip-pic .profile-card-frame { margin: 0; }
.ad-strip-text { display: flex; flex-direction: column; flex: 1; min-width: 0; font-size: .875rem; overflow-wrap: anywhere; }
.ad-strip[open] .tab-dropdown-chevron .ico { transform: rotate(180deg); }
.ad-strip-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; padding: 1.25rem; background: #fafafa; border-top: 1px solid #dbdbdb; }
.ad-strip-facts .ad-aside-text { margin: 0 0 .75rem; }
@media (min-width: 48rem) {
    .ad-aside { display: block; flex: none; width: 11.5625rem; margin-right: 0; padding: 1.25rem; background: #fafafa; box-shadow: 0 0 10px rgba(0, 0, 0, .06); }
    .ad-aside-pic { display: block; line-height: 0; margin-bottom: .75rem; }
    .ad-aside-pic .profile-card-frame { margin: 0; }
    .ad-article { padding: 1.25rem 1.75rem 1.75rem; }
    .ad-body-head h1 { font-size: 1.5rem; }
    .ad-strip { display: none; }
    .ad-facts-footer { display: flex; flex-wrap: nowrap; }
    .ad-facts-footer li { padding-right: 1.25rem; }
}
@media (min-width: 64rem) { .ad-body-head h1 { font-size: 2rem; } .ad-aside-text p { font-size: .875rem; } }
.ad-nowrap { white-space: nowrap; }
.ad-mine { position: relative; }
.ad-mine .ad-title { margin-right: 3rem; }
.ad-desc { overflow-wrap: anywhere; margin: .5em 0; }
/* The close icon of one of my ads: it opens a small "are you sure" box under it (works without JavaScript). */
.ad-close { position: absolute; top: .5rem; right: .5rem; z-index: 2; }
.ad-close > summary { list-style: none; cursor: pointer; line-height: 0; color: var(--c-purple); }
.ad-close > summary::-webkit-details-marker { display: none; }
.ad-close > summary .ico { width: 1.5rem; height: 1.5rem; }
.ad-close > summary:hover, .ad-close > summary:focus-visible { color: var(--c-coral); }
.ad-close form { position: absolute; top: 2rem; right: 0; width: 16rem; padding: .75rem 1rem; background: var(--c-surface); box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .2); text-align: left; }
.ad-close form p { margin: 0 0 .5rem; font-size: .875rem; }

/* The ad form (legacy .contact-ad__form): type and purpose side by side on a wide screen, the two dates next to each other. */
.ad-form-row { display: grid; grid-template-columns: 1fr; gap: 0 1rem; }
.ad-form-label { display: block; font: 600 1rem/1.3 var(--f-body); margin-bottom: .25rem; }
.ad-form-dd { border-bottom: 2px solid var(--c-purple); }
.ad-form-dd > summary { justify-content: space-between; }
.ad-form-dd .filter-dd-panel { left: 0; right: 0; }
.ad-form-choices { margin: .5rem 0 0; font-size: .9rem; overflow-wrap: anywhere; }
.ad-form-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ad-form-buttons { display: flex; align-items: center; justify-content: flex-end; gap: 1.5rem; margin-top: 1.5rem; }
.form-reset { font-weight: 700; color: var(--c-purple); }
@media (min-width: 48rem) { .ad-form-row { grid-template-columns: 1fr 1fr 1fr; } .ad-form-row.is-dates > .field { grid-column: span 2; } }

/* Legacy gray-buttons--group: the "new" button of the group pages is a white box with a purple plus, over a dark line. */
.tabs-bar--line { border-bottom: 3px solid var(--c-purple-dark); margin-bottom: 1rem; }
.tabs-bar--line > .btn-white { margin-bottom: 0; }
.btn-white {
    display: inline-flex; align-items: center; gap: .5rem; padding: .875rem 1rem; background: var(--c-surface); color: var(--c-ink);
    font-size: .875rem; font-weight: 700; border-radius: 3px 3px 0 0; border-bottom: 3px solid transparent;
}
.btn-white .ico { width: 1.75rem; height: 1.75rem; color: var(--c-purple); }
.btn-white:hover, .btn-white:focus-visible { background: var(--c-purple); color: var(--c-on-accent); }
.btn-white:hover .ico, .btn-white:focus-visible .ico { color: var(--c-on-accent); }

/* Legacy forum__child-numbers: the counts of the category and group lists are centred under their headings. */
@media (min-width: 48rem) {
    .list-categories .list-header > span:nth-child(n+2):nth-child(-n+3), .list-groups .list-header > span:nth-child(n+2):nth-child(-n+3) { text-align: center; }
    .list-categories .lr-num, .list-groups .lr-num { justify-content: center; }
}
.lr-key { display: inline-block; margin-left: .35rem; vertical-align: -.2em; line-height: 0; color: var(--c-purple); }
.lr-key .ico { width: 1.1rem; height: 1.1rem; }

/* A written item with its author (_TopicCard): the report icon and the gear at the right of the header, the author's picture in the footer. */
.topic-tools { float: right; display: flex; align-items: center; gap: .5rem; margin-left: .5rem; }
.topic-new { display: inline-block; margin-right: .5rem; padding: 0 .4rem; background: var(--c-coral-dark); color: var(--c-on-accent); border-radius: 1rem; font: 700 .75rem/1.25rem sans-serif; vertical-align: .2em; }
.topic-facts { padding: 1rem 1rem 0; display: flex; flex-wrap: wrap; gap: .5rem 2rem; }
.topic-facts dt, .topic-facts strong { color: var(--c-purple-dark); }
.topic-footer--profile { flex-wrap: wrap; }
.topic-pic { flex: none; width: 5rem; line-height: 0; }
.topic-pic .profile-card-frame { margin: 0; }
.topic-footer-right { margin-left: auto; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; }

/* A group page (legacy forum--groupsub2): the group's own panel above the posts on a narrow screen, as a column at the right from a wide one. */
.group-page { display: flex; flex-direction: column-reverse; gap: 1rem; }
.group-aside h3 { margin: 0 0 .5rem; font-size: 1.125rem; text-align: left; }
.group-actions { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .5rem; }
.group-actions a, .group-actions button {
    display: flex; align-items: center; gap: .5rem; width: 100%; padding: .875rem; background: #f4f4f4; color: var(--c-ink); border: 0; border-radius: 3px;
    font: 700 .875rem/1.2 var(--f-body); text-align: left; cursor: pointer;
}
.group-actions a:hover, .group-actions button:hover, .group-actions a:focus-visible, .group-actions button:focus-visible { background: #dbdbdb; }
.group-actions .ico { flex: none; width: 1.5rem; height: 1.5rem; color: var(--c-purple); }
.group-actions form { margin: 0; }
.group-info > summary { list-style: none; cursor: pointer; }
.group-info > summary::-webkit-details-marker { display: none; }
.group-info p { margin: 0 0 .75rem; }
.posts-title { margin: 1rem 0 .75rem; font-size: 1.125rem; text-align: left; }
@media (min-width: 75rem) {
    .group-page { flex-direction: row-reverse; align-items: flex-start; }
    .group-main { flex: 1; min-width: 0; }
    .group-aside { flex: 0 0 15rem; }
}

/* The comments under a post (legacy .guest list): a white row each, the picture at the left, name and place, the time and tools at the right, then the text. */
.comment-form { margin: 1rem 0; }
.comment-form h4 { margin: 0 0 .5rem; text-align: left; }
.comment-list { list-style: none; margin: 0 0 var(--gap); padding: 0; display: grid; gap: .75rem; }
.comment-list > li { display: flex; gap: 1rem; padding: 1rem; background: var(--c-surface); box-shadow: 0 0 10px rgba(0, 0, 0, .06); }
.cm-pic { flex: none; width: 5.5rem; line-height: 0; }
.cm-pic .profile-card-frame { margin: 0; }
.cm-body { flex: 1; min-width: 0; }
.cm-head { display: flex; justify-content: space-between; gap: .75rem; }
.cm-who h3 { margin: 0; font-size: 1.0625rem; text-align: left; }
.cm-who { font-size: .8125rem; }
.cm-tools { display: flex; align-items: flex-start; gap: .5rem; font-size: .8125rem; }
.cm-when { opacity: .8; padding-top: .15rem; }
.cm-text { margin-top: .5rem; overflow-wrap: anywhere; }
.btn-white .ico-left { transform: rotate(90deg); }

/* The group members list and the member role label. */
.members-title { display: flex; align-items: center; gap: .5rem; margin: 1rem 0 .75rem; font-size: 1.25rem; text-align: left; }
.members-title .ico { width: 1.75rem; height: 1.75rem; color: var(--c-purple); }
.member-role { margin-left: .5rem; font-size: .8125rem; color: var(--c-purple); white-space: nowrap; }
@media (min-width: 48rem) { .list-members { --lt-cols: minmax(0, 1fr) minmax(0, 1fr) 2.5rem; } }

/* The month calendar of a group (legacy .calendar-table): a week per row from tablet width, Monday first; on a phone only the days with events. */
.cal-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: .5rem 0 1rem; }
.cal-nav h3 { margin: 0; text-align: center; }
.cal-nav a { display: inline-flex; align-items: center; gap: .35rem; color: var(--c-ink); }
.cal-nav .ico { width: 1.25rem; height: 1.25rem; }
.ico-left { transform: rotate(90deg); }
.ico-right { transform: rotate(-90deg); }
.cal-grid { display: grid; grid-template-columns: 1fr; gap: .5rem; margin-bottom: 1rem; }
.cal-head, .cal-blank { display: none; }
.cal-day { display: none; background: var(--c-surface); box-shadow: 0 0 10px rgba(0, 0, 0, .06); padding: .5rem .75rem; min-width: 0; }
.cal-day.is-booked, .cal-day.is-today { display: block; }
.cal-date { display: flex; align-items: baseline; gap: .5rem; }
.cal-num { font-weight: 700; font-size: 1.125rem; }
.cal-dow { font-size: .8125rem; color: var(--c-ink-soft); }
.cal-day.is-booked { border-left: 3px solid var(--c-purple); }
.cal-day.is-past { opacity: .6; }
.cal-today { display: inline-block; margin: .25rem 0; padding: 0 .4rem; background: var(--c-coral-dark); color: var(--c-on-accent); border-radius: 2px; font-size: .75rem; font-weight: 700; }
.cal-event { margin: .25rem 0; }
.cal-event > summary { cursor: pointer; list-style: none; overflow-wrap: anywhere; }
.cal-event > summary::-webkit-details-marker { display: none; }
.cal-time { display: block; font-size: .75rem; color: var(--c-ink-soft); }
.cal-event-body { margin-top: .5rem; padding: .75rem; background: #fafafa; border: 1px solid #dbdbdb; font-size: .875rem; overflow-wrap: anywhere; }
.cal-event-body p { margin: 0 0 .5rem; }
.cal-empty { text-align: center; }
.cal-add { text-align: right; }
@media (min-width: 48rem) {
    .cal-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: #dbdbdb; border: 1px solid #dbdbdb; }
    .cal-head { display: block; padding: .5rem; text-align: center; font-weight: 700; background: #f4f4f4; }
    .cal-blank { display: block; background: #fafafa; }
    .cal-day, .cal-day.is-booked { display: block; min-height: 5.5rem; box-shadow: none; border-left: 0; }
    .cal-dow { display: none; }
    .cal-day.is-booked { background: #efeaf9; }
}

/* Legacy gray-buttons--forum: the tabs of the forum pages are grey boxes (the first one white), the current one purple with white text. */
.tabs-bar--line .tabs { margin-bottom: 0; }
.tabs-buttons--forum a { background: #dbdbdb; border-left: 0; border-radius: 3px 3px 0 0; }
.tabs-buttons--forum li:first-child a { background: var(--c-surface); }
.tabs-buttons--forum a:hover, .tabs-buttons--forum a:focus-visible, .tabs-buttons--forum a.is-current,
.tabs-buttons--forum li:first-child a:hover, .tabs-buttons--forum li:first-child a.is-current {
    background: var(--c-purple); color: var(--c-on-accent); border-left: 0; border-radius: 3px 3px 0 0;
}
.tabs-buttons--forum a:hover .ico, .tabs-buttons--forum a:focus-visible .ico, .tabs-buttons--forum a.is-current .ico { color: var(--c-on-accent); }
.tabs-buttons--forum ul { gap: .25rem; }
.topic-title-icon { display: inline-block; margin-right: .4rem; vertical-align: -.2em; line-height: 0; color: var(--c-purple); }
.topic-title-icon .ico { width: 1.4rem; height: 1.4rem; }
.topic-title.is-closed .topic-title-icon { color: var(--c-ink-soft); }

/* The inbox (legacy conversation-messages-page): the buttons and filter on top, select-and-act on rows, the notice after a delete. */
.inbox-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin: 1rem 0 .75rem; }
.inbox-buttons { display: flex; gap: .5rem; }
.btn-gray {
    display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .875rem; background: #5a5a66; color: var(--c-on-accent); border-radius: 3px;
    font-size: .875rem; font-weight: 700;
}
.btn-gray .ico { width: 1.25rem; height: 1.25rem; }
.btn-gray:hover, .btn-gray:focus-visible { background: var(--c-purple-dark); color: var(--c-on-accent); }
.inbox-search { display: flex; flex: 1 1 14rem; max-width: 20rem; margin-left: auto; }
.inbox-search input { flex: 1; min-width: 0; height: 2.5rem; padding: 0 .75rem; font: inherit; border: 1px solid var(--c-purple); border-right: 0; border-radius: var(--btn-radius) 0 0 var(--btn-radius); }
.inbox-search button { flex: none; width: 2.75rem; height: 2.5rem; display: grid; place-items: center; background: var(--c-purple); color: var(--c-on-accent); border: 0; border-radius: 0 var(--btn-radius) var(--btn-radius) 0; cursor: pointer; }
.inbox-search .ico { width: 1.25rem; height: 1.25rem; }
.inbox-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .5rem 1rem; margin-bottom: .5rem; }
.inbox-select-all { display: flex; align-items: center; gap: .4rem; cursor: pointer; }
.inbox-delete { position: relative; }
.inbox-delete > summary { list-style: none; cursor: pointer; }
.inbox-delete > summary::-webkit-details-marker { display: none; }
.inbox-delete-box { position: absolute; z-index: 5; right: 0; top: 100%; width: 16rem; padding: .75rem 1rem; background: var(--c-surface); box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .2); }
.inbox-delete-box p { margin: 0 0 .5rem; font-size: .875rem; }
.inbox-check { display: flex; cursor: pointer; }
.cl-frame { width: 5.5rem; }
.cl-frame .profile-card-frame { margin: 0; }
.inbox-empty { text-align: center; margin: 2rem 0; }
.inbox-info { margin-top: 1.5rem; }
.notice-box { margin: 1rem 0; padding: .75rem 1rem; background: #fff7d6; border: 1px solid #ecd67b; }
.notice-box p { margin: 0 0 .5rem; }
.link-button { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; color: var(--c-purple); }
.comment-item { display: flex; gap: 1rem; padding: 1rem; background: var(--c-surface); box-shadow: 0 0 10px rgba(0, 0, 0, .06); }
.cm-note { margin-top: .5rem; font-size: .8125rem; color: var(--c-ink-soft); }

/* gray-buttons--wrap: a row of grey buttons from a wider screen; on a phone the dropdown with the current tab on top. */
.tab-dropdown--wrap { display: none; }
@media (max-width: 29.99rem) {
    .tabs-buttons--wrap > ul { display: none; }
    .tab-dropdown--wrap { display: block; }
}
.chat-message { align-items: flex-start; gap: .75rem; }
/* My messages sit at the right edge: with the row reversed, "start" is the right side. */
.chat-message.is-own { flex-direction: row-reverse; justify-content: flex-start; }
.chat-pic { flex: none; width: 4.5rem; line-height: 0; }
.chat-pic .profile-card-frame { margin: 0; }
.cm-line { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
@media (min-width: 48rem) { .list-members--plain { --lt-cols: minmax(0, 1fr) 2.5rem; } }
.list-members--plain .list-row { min-height: 3rem; }

.filter-divider { padding: .1rem 0; color: var(--c-ink-soft); font-weight: 700; line-height: 1; }

/* Friends and Favourites on a profile: two buttons of the same size side by side (equal columns). */
.pf-btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: .75rem; }
.pf-btn-row .pf-btn { margin: 0; min-width: 0; width: 100%; }

/* The icon glossary (a review page for the team). */
.icon-glossary h2 { text-align: left; margin-top: 1.5rem; }
.icon-table { width: 100%; }
.icon-table td, .icon-table th { vertical-align: middle; }
.icon-cell { display: inline-grid; place-items: center; color: var(--c-purple); }
.icon-cell .ico { width: 1.75rem; height: 1.75rem; }
.icon-cell.icon-s .ico { width: 1.25rem; height: 1.25rem; }
.icon-cell.icon-m .ico { width: 1.5rem; height: 1.5rem; }
.icon-cell.icon-l .ico { width: 1.75rem; height: 1.75rem; }
.icon-cell.icon-xl .ico { width: 2rem; height: 2rem; }
/* Heading form (runbook 31 item R): closed shapes filled in the text colour, details knocked out in the surface colour. */
.ico-filled .f { fill: currentColor; }
.ico-filled .kf { fill: var(--c-surface); stroke: var(--c-surface); }
.ico-filled .k { stroke: var(--c-surface); }
.heading-samples { list-style: none; margin: 0; padding: 0; }
.heading-samples li { display: grid; grid-template-columns: 11rem repeat(3, minmax(0, 1fr)); gap: .5rem 1rem; align-items: center; padding: .5rem .75rem; border-top: 1px solid var(--c-line); }
.heading-samples code { font-size: .8125rem; }
.hd-sample { display: flex; align-items: center; gap: .6rem; min-width: 0; color: var(--c-purple-dark); font-weight: 700; }
.hd-sample .ico { flex: none; }
.hd-sample--s { font-size: 1.3125rem; }
.hd-sample--s .ico { width: 1.75rem; height: 1.75rem; }
.hd-sample--m { font-size: 1.5rem; }
.hd-sample--m .ico { width: 2.25rem; height: 2.25rem; }
.hd-sample--l { font-size: 1.6875rem; }
.hd-sample--l .ico { width: 2.75rem; height: 2.75rem; }
.icon-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: .75rem; }
.icon-grid li { display: grid; grid-template-columns: auto 1fr; gap: .1rem .75rem; align-items: center; padding: .6rem .75rem; background: var(--c-surface); box-shadow: 0 0 10px rgba(0, 0, 0, .06); }
.icon-grid li .icon-cell { grid-row: span 2; }
.icon-grid li .muted { grid-column: 2; font-size: .8125rem; }
.icon-status { padding: 0 .4rem; border-radius: 2px; font-size: .8125rem; font-weight: 700; background: #eee; }
.icon-status--agreed { background: #d8f0d8; }
.icon-status--change { background: #fbe0c8; }
.icon-status--no-icon { background: #f6d0d0; }

.alt-cell { white-space: nowrap; }
.alt-icon { display: inline-grid; justify-items: center; gap: .1rem; margin-right: .6rem; font-size: .75rem; }

/* Home: profile fullness card and tip (runbook 31 item I) */
.home-fullness__list { margin: 0 0 .75rem; padding-left: 1.25rem; }
.home-tip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
.home-tip p { margin: 0; flex: 1 1 18rem; }
.home-tip form { margin: 0; }

/* Landing page, visitor desktop and the log on dialog (runbook 27 N6, N10) */
.landing { padding: 2rem 0; }
.landing-lead { font-size: 1.15rem; max-width: 40rem; }
.landing-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1rem 0; }
.menu-logon { margin-left: .75rem; font-weight: 600; }
.logon-dialog { border: 1px solid var(--c-border, #ccc); border-radius: var(--btn-radius); padding: 1.25rem 1.5rem; max-width: 22rem; }
.logon-dialog::backdrop { background: rgba(0, 0, 0, .45); }
.visitor-tiers p { margin: 0 0 .75rem; }
.visitor-online .search-form { margin-bottom: 1rem; }
.visitor-online-list { list-style: none; margin: 0 0 .75rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: .75rem; }
.visitor-online-list li { display: flex; align-items: center; gap: .75rem; }
.visitor-online-icon { flex: none; width: 1.75rem; height: 1.75rem; }
.visitor-example h3 { margin: 0; }


/* Admin messages shown as banners above the page (runbook 32 item E). The severity only changes the left edge. */
.live-prompts { max-width: 60rem; margin: .75rem auto 0; padding: 0 1rem; display: grid; gap: .5rem; }
.live-prompts[hidden] { display: none; }
.live-prompt {
    display: flex; gap: 1rem; align-items: center; justify-content: space-between; padding: .75rem 1rem;
    background: var(--c-surface); border: 1px solid var(--c-line); border-left-width: .35rem; border-radius: .35rem;
}
.live-prompt-text p { margin: .15rem 0 0; }
.live-prompt-tip { border-left-color: var(--c-line); }
.live-prompt-info { border-left-color: var(--c-purple); }
.live-prompt-warning { border-left-color: #b26a00; }
.live-prompt-critical { border-left-color: var(--c-coral-dark); }
.live-prompt .btn { flex: none; }
@media (max-width: 30rem) { .live-prompt { flex-direction: column; align-items: stretch; } }

/* The Home desktop: "Customize this page" (runbook ordered list item 15, decision H3). One column, big enough to touch on a phone. */
.home-customize { text-align: right; margin: 1rem 0; }
.widget-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .5rem; }
.widget-row {
    display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between;
    padding: .6rem .9rem; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: .35rem;
}
.widget-row.is-hidden .widget-name { color: var(--c-ink-soft); text-decoration: line-through; }
.widget-actions { display: flex; gap: .4rem; }
.widget-actions form { margin: 0; }
