/* Činžiak — single stylesheet.
   Light, high-contrast and large-typed on purpose: a good share of the readers
   are older residents on a phone. Palette: warm stone and paper with enamel
   green — the mailbox bank in the entrance hall, in daylight. */

/* Fonts are served from here, not Google — loading them from Google's servers
   would hand every visitor's IP address to a third party (GDPR). Latin +
   latin-ext subsets only (Slovak needs latin-ext). Both families are under the
   SIL Open Font License 1.1 — see static/fonts/README. */
@font-face {
    font-family: "Public Sans";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/public-sans-latin-ext-53e023.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Public Sans";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/public-sans-latin-6e68d1.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Public Sans";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/public-sans-latin-ext-53e023.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Public Sans";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/public-sans-latin-6e68d1.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Public Sans";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/public-sans-latin-ext-53e023.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Public Sans";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/public-sans-latin-6e68d1.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Public Sans";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/public-sans-latin-ext-53e023.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Public Sans";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/public-sans-latin-6e68d1.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Spectral";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/spectral-latin-ext-8c2209.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Spectral";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/spectral-latin-7fb459.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Spectral";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/spectral-latin-ext-185857.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Spectral";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/spectral-latin-9e845a.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    /* Warm stone ground and paper-white cards (2026-09-28, warmer than the
       original aluminium greys; muted text 5.9:1 on --bg, 7:1 on cards). */
    --bg: #efe9df;
    --surface: #fffdf9;
    --surface-sunken: #f6f1e9;
    --border: #ddd5c9;
    --border-strong: #c5bbac;
    --text: #1f2326;
    --text-muted: #5c574f;
    --accent: #2f6f5e;
    --accent-dark: #225447;
    --accent-soft: #dbe8e3;
    --danger: #9f3a2c;
    --danger-soft: #f7e4e0;
    --success: #1d6b4a;
    --success-soft: #dceee4;
    --warning: #8a5a16;
    --warning-soft: #f7ecd9;
    --radius: 5px;
    --radius-pill: 999px;
    --shadow: 0 1px 2px rgba(30, 38, 42, .06);
    --shadow-lift: 0 2px 4px rgba(30, 38, 42, .07), 0 8px 20px rgba(30, 38, 42, .06);
    --header-h: 4rem;
    --font: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --font-display: "Spectral", Georgia, "Times New Roman", serif;
    --ease: 140ms cubic-bezier(.2, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent-soft); color: var(--accent-dark); }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.2;
    margin: 0 0 .6rem;
    font-weight: 700;
    letter-spacing: -.01em;
    text-wrap: balance;
}
h1 { font-size: 1.85rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1rem; text-wrap: pretty; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ── Header ─────────────────────────────────────────────────────────── */

#site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 1rem;
    height: var(--header-h);
    padding: 0 1.25rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

/* Logo: the building tile (same block as the hero illustration, one window
   lit) + the name in title case — "Činžiak", never all caps (brand rule). */
.logo {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -.015em;
    color: var(--text);
    white-space: nowrap;
}
.logo:hover { text-decoration: none; }
.logo-mark { width: 1.9rem; height: 1.9rem; flex: none; }

#main-nav {
    display: flex;
    align-items: center;
    gap: .2rem;
    margin-left: auto;
}

#main-nav a, .nav-btn {
    padding: .5rem .75rem;
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: .95rem;
    font-weight: 500;
    white-space: nowrap;
    transition: background var(--ease), color var(--ease);
}
#main-nav a:hover, .nav-btn:hover {
    background: var(--surface-sunken);
    color: var(--text);
    text-decoration: none;
}
#main-nav a.is-active {
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-weight: 600;
}

.nav-toggle {
    display: none;
    margin-left: auto;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    cursor: pointer;
    padding: .7rem .6rem;
}
.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
}
.nav-toggle span + span { margin-top: 5px; }

@media (max-width: 860px) {
    .nav-toggle { display: block; }
    #main-nav {
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: .5rem;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lift);
        display: none;
    }
    #main-nav.is-open { display: flex; }
    #main-nav a, .nav-btn { padding: .85rem .7rem; font-size: 1rem; }
}

/* ── Layout ─────────────────────────────────────────────────────────── */

.page {
    max-width: 880px;
    margin: 0 auto;
    padding: 2.25rem 1.25rem 4rem;
}
.page--wide { max-width: 1120px; }

.page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.75rem;
}
.page-head h1 { margin: 0; }
.page-head .page-head-actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: .5rem; }

.breadcrumb {
    font-size: .82rem;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: .5rem;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }

.subtitle { color: var(--text-muted); margin: .35rem 0 0; }

.stack > * + * { margin-top: 1rem; }
.grid { display: grid; gap: 1rem; }
@media (min-width: 620px) {
    .grid--2 { grid-template-columns: repeat(2, 1fr); }
    .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* ── Cards ──────────────────────────────────────────────────────────── */

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.35rem;
    box-shadow: var(--shadow);
}
.card--link {
    display: block;
    color: inherit;
    transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}
.card--link:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-lift);
    transform: translateY(-1px);
    text-decoration: none;
}
.card h2, .card h3 { margin-top: 0; }
.card-meta { color: var(--text-muted); font-size: .9rem; }

.section-title {
    display: flex;
    align-items: baseline;
    gap: .75rem;
    margin: 2.25rem 0 .9rem;
}
.section-title h2 { margin: 0; }
.section-title .section-title-action { margin-left: auto; font-size: .95rem; font-weight: 500; }

.stat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem 1.2rem;
}
.stat-value {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.02em;
}
.stat-label {
    color: var(--text-muted);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 500;
    margin-top: .15rem;
}

/* ── Notices ────────────────────────────────────────────────────────── */

.notice-list { display: flex; flex-direction: column; gap: .85rem; }

.notice {
    position: relative;
    display: block;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem 1.25rem;
    color: inherit;
    box-shadow: var(--shadow);
    transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}
.notice:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-lift);
    transform: translateY(-1px);
    text-decoration: none;
}
.notice.is-pinned { border-left-color: var(--accent); }
.notice.is-pinned:hover { border-left-color: var(--accent); }
.notice.is-new { border-left-color: var(--success); }
.notice.is-new:hover { border-left-color: var(--success); }
.notice h3 { margin: .3rem 0 .35rem; }
.notice p { margin: 0; color: var(--text-muted); font-size: .95rem; }

.notice-head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }

.badge {
    display: inline-block;
    padding: .2rem .6rem;
    border-radius: var(--radius-pill);
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .03em;
    background: var(--surface-sunken);
    color: var(--text-muted);
    border: 1px solid var(--border);
    white-space: nowrap;
}
.badge--accent { background: var(--accent-soft); color: var(--accent-dark); border-color: transparent; }
.badge--new { background: var(--success-soft); color: var(--success); border-color: transparent; }
.badge--warn { background: var(--warning-soft); color: var(--warning); border-color: transparent; }
.badge--danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }

.filter-bar { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.35rem; }
.filter-bar a {
    padding: .42rem .85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--text-muted);
    font-size: .9rem;
    font-weight: 500;
    transition: border-color var(--ease), color var(--ease), background var(--ease);
}
.filter-bar a:hover { text-decoration: none; border-color: var(--border-strong); color: var(--text); }
.filter-bar a.is-active {
    background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600;
}
.filter-bar a.is-active:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }

.prose { line-height: 1.7; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose h2, .prose h3 { margin-top: 1.8rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li + li { margin-top: .3rem; }
.prose blockquote {
    margin: 1.2rem 0;
    padding: .25rem 0 .25rem 1.1rem;
    border-left: 3px solid var(--accent-soft);
    color: var(--text-muted);
}
.prose code {
    background: var(--surface-sunken);
    border: 1px solid var(--border);
    padding: .1rem .35rem;
    border-radius: 3px;
    font-size: .88em;
}
.prose table { border-collapse: collapse; width: 100%; }
.prose th, .prose td { border: 1px solid var(--border); padding: .55rem .65rem; text-align: left; }
.prose th { background: var(--surface-sunken); }

/* ── Buttons ────────────────────────────────────────────────────────── */

.btn {
    display: inline-block;
    padding: .7rem 1.25rem;
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-size: .98rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: background var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.btn:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    text-decoration: none;
    box-shadow: var(--shadow-lift);
}
.btn:active { box-shadow: none; }
.btn--ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn--ghost:hover { background: var(--surface-sunken); border-color: var(--border-strong); }
.btn--danger { background: var(--surface); color: var(--danger); border-color: var(--border); }
.btn--danger:hover { background: var(--danger-soft); border-color: var(--danger); }
.btn--small { padding: .4rem .8rem; font-size: .88rem; }
.btn--block { display: block; width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }

/* ── Forms ──────────────────────────────────────────────────────────── */

.form-narrow { max-width: 30rem; }

.form-group { margin-bottom: 1.2rem; }
.form-group label {
    display: block;
    margin-bottom: .4rem;
    font-weight: 600;
    font-size: .92rem;
}
.form-control {
    display: block;
    width: 100%;
    padding: .7rem .85rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-size: 1rem;
    transition: border-color var(--ease), box-shadow var(--ease);
}
.form-control::placeholder { color: var(--text-muted); opacity: .7; }
.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
textarea.form-control { min-height: 11rem; resize: vertical; }

.form-check { display: flex; align-items: flex-start; gap: .6rem; margin-bottom: 1rem; }
.form-check input { width: 1.15rem; height: 1.15rem; margin-top: .25rem; flex: none; accent-color: var(--accent); }
.form-check label { margin: 0; font-weight: 500; }

.form-error { color: var(--danger); font-size: .9rem; margin: .35rem 0 0; font-weight: 500; }
.form-hint { color: var(--text-muted); font-size: .88rem; margin: .35rem 0 0; }

.code-input {
    font-family: var(--font-display);
    font-size: 1.9rem;
    letter-spacing: .4em;
    text-align: center;
    text-transform: uppercase;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.form-inline { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.form-inline .form-control { width: auto; flex: 1 1 10rem; }

/* ── Tables ─────────────────────────────────────────────────────────── */

.table-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow-x: auto;
}
table.data { border-collapse: collapse; width: 100%; font-size: .95rem; }
table.data th, table.data td {
    padding: .75rem .95rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
table.data th {
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--surface-sunken);
    white-space: nowrap;
}
table.data tbody tr { transition: background var(--ease); }
table.data tbody tr:hover { background: var(--surface-sunken); }
table.data tr:last-child td { border-bottom: none; }
table.data td.actions { text-align: right; white-space: nowrap; }
table.data td { font-variant-numeric: tabular-nums; }

.chip-list { display: flex; flex-wrap: wrap; gap: .35rem; }
.chip {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .3rem .65rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--surface);
    font-size: .88rem;
    color: var(--text);
}
.chip a { color: var(--text-muted); font-size: .9rem; }

/* ── Flash messages ─────────────────────────────────────────────────── */

.flashes { max-width: 880px; margin: 1.25rem auto 0; padding: 0 1.25rem; }
.flash {
    padding: .85rem 1.1rem;
    border-radius: var(--radius);
    margin-bottom: .6rem;
    font-size: .95rem;
    font-weight: 500;
    border: 1px solid transparent;
    border-left-width: 3px;
}
.flash--info { background: var(--accent-soft); color: var(--accent-dark); border-left-color: var(--accent); }
.flash--success { background: var(--success-soft); color: var(--success); border-left-color: var(--success); }
.flash--warning { background: var(--warning-soft); color: var(--warning); border-left-color: var(--warning); }
.flash--error { background: var(--danger-soft); color: var(--danger); border-left-color: var(--danger); }

/* ── Empty state ────────────────────────────────────────────────────── */

.empty {
    text-align: center;
    padding: 3.5rem 1.5rem;
    background: var(--surface);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius);
    color: var(--text-muted);
}
.empty h2 { color: var(--text); }

/* ── Pagination ─────────────────────────────────────────────────────── */

.pagination { display: flex; gap: .35rem; justify-content: center; margin-top: 2.25rem; flex-wrap: wrap; }
.pagination a, .pagination span {
    padding: .5rem .85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    font-size: .92rem;
    font-variant-numeric: tabular-nums;
}
.pagination a:hover { border-color: var(--border-strong); text-decoration: none; }
.pagination .is-active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.pagination .is-disabled { color: var(--text-muted); opacity: .55; }

/* ── Landing ────────────────────────────────────────────────────────── */

.hero { text-align: center; padding: 4rem 1rem 2.5rem; }
.hero h1 { font-size: clamp(2rem, 7vw, 2.6rem); letter-spacing: -.02em; }
.hero p {
    font-size: 1.12rem;
    color: var(--text-muted);
    max-width: 34rem;
    margin: 0 auto 2rem;
}

.hero { padding-top: 3rem; }
.hero p.eyebrow {
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--accent-dark);
    margin: 0 auto .75rem;
}
.btn-row--center { justify-content: center; }

/* The shortcut for residents who were invited and only want to log in. */
.resident-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .6rem 1.25rem;
    max-width: 44rem;
    margin: 0 auto;
    padding: .85rem 1.2rem;
    background: var(--surface-sunken);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
}
.resident-bar p { margin: 0; }

.landing-section { margin-top: 4rem; }
.landing-title { font-size: clamp(1.45rem, 4.5vw, 1.75rem); text-align: center; margin-bottom: .5rem; }
.landing-lead { text-align: center; color: var(--text-muted); max-width: 36rem; margin: 0 auto 1.5rem; }
.landing-title + .grid, .landing-title + .steps { margin-top: 1.5rem; }

.feature h3 { display: flex; align-items: center; gap: .5rem; }
.feature p { margin: 0; color: var(--text-muted); font-size: .95rem; }
.feature .check-list li { margin-bottom: .35rem; }

.steps {
    list-style: none;
    counter-reset: step;
    display: grid;
    gap: 1rem;
    margin: 0;
    padding: 0;
}
@media (min-width: 620px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; position: relative; padding-top: 3.1rem; }
.steps li::before {
    content: counter(step);
    position: absolute;
    top: 0;
    left: 0;
    width: 2.3rem;
    height: 2.3rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
}
.steps p { margin: 0; color: var(--text-muted); }

.plans { max-width: 50rem; margin: 0 auto; }
.plan h3 { margin-bottom: .2rem; }
.plan-price {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    font-variant-numeric: tabular-nums;
}
.plan .check-list { margin-top: 1rem; }
.plan--pro { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-lift); }
#cennik > .small { text-align: center; }

/* The two outside audiences: firms offering services, people looking for a flat. */
.audience-band { display: flex; flex-direction: column; }
.audience-band .mt-auto { margin-top: auto; }
.audience-band--firms { background: var(--accent-soft); border-color: transparent; }

.interest-card { max-width: 44rem; margin: 0 auto; }
.interest-card .grid { gap: 0 1rem; }
#zaujem, #cennik { scroll-margin-top: 1rem; }

/* ── Footer ─────────────────────────────────────────────────────────── */

#site-footer {
    border-top: 1px solid var(--border);
    background: var(--surface);
    padding: 1.75rem 1.25rem;
    color: var(--text-muted);
    font-size: .9rem;
    text-align: center;
}

/* ── Utilities ──────────────────────────────────────────────────────── */

.muted { color: var(--text-muted); }
.small { font-size: .88rem; }
.nowrap { white-space: nowrap; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 1rem; }
.inline-form { display: inline; }

/* ── Fault reports ──────────────────────────────────────────────────── */

.notice.is-fault-new,
.notice.is-fault-new:hover { border-left-color: var(--warning); }

.fault-description { white-space: pre-line; }

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
    gap: .6rem;
}
.photo-grid a { display: block; }
.photo-grid img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-sunken);
}

/* ── Water meters ───────────────────────────────────────────────────── */

.meter-current {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: .75rem;
    padding: .75rem;
    background: var(--surface-sunken);
    border-radius: var(--radius);
}
.meter-current img {
    display: block;
    width: 6rem;
    height: 4.5rem;
    object-fit: cover;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.meter-value { font-size: 1.25rem; font-variant-numeric: tabular-nums; max-width: 14rem; }
.text-danger { color: var(--danger); }

/* ── Written votes ──────────────────────────────────────────────────── */

.vote-counts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 1rem;
}
@media (min-width: 620px) {
    .vote-counts { grid-template-columns: repeat(3, 1fr) 1.6fr; }
}

.vote-result { display: flex; gap: 2rem; margin-top: .5rem; }
.vote-result > div { display: flex; flex-direction: column; }

.file-list { list-style: none; margin: 0; padding: 0; }
.file-list li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem .75rem;
    padding: .5rem 0;
    border-bottom: 1px solid var(--border);
}
.file-list li:last-child { border-bottom: none; }
.file-badge {
    display: inline-block;
    padding: .05rem .4rem;
    border-radius: var(--radius);
    background: var(--danger-soft);
    color: var(--danger);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
}

/* ── Invoices ───────────────────────────────────────────────────────── */

.invoice { display: flex; gap: 1rem; align-items: flex-start; }
.invoice-file {
    flex: 0 0 4.5rem;
    height: 6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-sunken);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.invoice-file img { width: 100%; height: 100%; object-fit: cover; }
.invoice-body { flex: 1; min-width: 0; }
.invoice-head { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }

/* ── Emergency contacts ─────────────────────────────────────────────── */

.national-numbers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .5rem;
}
.national-number {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: .6rem .25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    text-decoration: none;
}
.national-number:hover { border-color: var(--border-strong); text-decoration: none; }
.national-number strong { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.1; }
.national-number span { font-size: .8rem; color: var(--text-muted); }
.national-number--main { background: var(--danger); border-color: var(--danger); }
.national-number--main strong, .national-number--main span { color: #fff; }

.contact { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }
.contact-main { flex: 1 1 14rem; min-width: 0; }
.contact-phones { display: flex; flex-wrap: wrap; gap: .5rem; }
.contact-call { font-size: 1.05rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.contact-actions { flex-basis: 100%; }
.emergency-card { border-left: 4px solid var(--danger); }

/* ── Surveys ────────────────────────────────────────────────────────── */

.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;
}
fieldset.survey-question { margin-left: 0; margin-right: 0; min-width: 0; }

.choice {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .55rem .75rem;
    margin-top: .4rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
}
.choice:hover { border-color: var(--border-strong); }
.choice input { width: 1.15rem; height: 1.15rem; accent-color: var(--accent); flex: none; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }

.rating-input { display: flex; gap: .5rem; margin-top: .4rem; }
.rating-input label { flex: 1; max-width: 4rem; cursor: pointer; }
.rating-input input { position: absolute; opacity: 0; }
.rating-input span {
    display: block;
    padding: .6rem 0;
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.rating-input input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.rating-input input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.result-row { margin-top: .6rem; }
.result-row--compact { margin-top: .3rem; }
.result-label { display: flex; justify-content: space-between; gap: 1rem; font-size: .95rem; }
.result-bar { height: .55rem; margin-top: .2rem; background: var(--surface-sunken); border-radius: var(--radius-pill); overflow: hidden; }
.result-bar span { display: block; height: 100%; background: var(--accent); border-radius: var(--radius-pill); }

.text-answers { margin: .25rem 0 0; padding-left: 1.2rem; }
.text-answers li { margin-top: .35rem; }

/* ── Building profile ───────────────────────────────────────────────── */

.profile-hero { padding: 0; overflow: hidden; }
.profile-photo { display: block; width: 100%; max-height: 22rem; object-fit: cover; }
.profile-photo-thumb { display: block; max-width: 16rem; border-radius: var(--radius); margin-bottom: .5rem; }
.profile-hero-body { padding: 1.1rem 1.2rem 1.2rem; }
.profile-facts { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin-top: 1rem; }
.profile-facts div { display: flex; flex-direction: column; }
.profile-facts strong { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.1; }
.profile-facts span { font-size: .8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }

.facts { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; margin: 0; }
.facts dt { color: var(--text-muted); font-size: .92rem; }
.facts dd { margin: 0; font-weight: 600; }

.check-list { list-style: none; margin: 0 0 .5rem; padding: 0; }
.check-list li { padding: .15rem 0 .15rem 1.5rem; position: relative; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* The certificate's own colour scale, A0 dark green → G red. */
.energy { display: inline-block; min-width: 2.2em; padding: .05em .35em; border-radius: var(--radius);
          color: #fff; text-align: center; font-weight: 700; }
.energy--a0, .energy--a1 { background: #1b6b3a; }
.energy--b { background: #33722a; }
.energy--c { background: #5c6a12; }
.energy--d { background: #7a5c0c; }
.energy--e { background: #a55a12; }
.energy--f { background: #a8431c; }
.energy--g { background: #9f2c22; }
.profile-facts .energy { align-self: flex-start; }
.facts dd .muted { font-weight: 400; }

/* ── Listings ───────────────────────────────────────────────────────── */

.listing-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .75rem 1rem; align-items: end; }
.listing-filters-submit .btn { width: 100%; }

.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1rem; }
.listing-card {
    display: flex; flex-direction: column;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; color: var(--text); text-decoration: none;
    transition: box-shadow var(--ease), transform var(--ease);
}
.listing-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-1px); text-decoration: none; }
.listing-card-photo { aspect-ratio: 4 / 3; background: var(--surface-sunken); display: flex; align-items: center; justify-content: center; }
.listing-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.listing-card-body { padding: .8rem 1rem 1rem; }
.listing-card h3 { font-size: 1.05rem; }
.listing-price { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; margin: 0 0 .15rem; }
.listing-price--big { font-size: 1.9rem; }

.listing-layout { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .listing-layout { grid-template-columns: minmax(0, 1fr) 20rem; align-items: start; } }
.listing-aside { position: sticky; top: calc(var(--header-h) + 1rem); }

.listing-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; }
.listing-gallery a { display: block; }
.listing-gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); height: auto; }
.listing-gallery .is-cover { grid-column: 1 / -1; }
.listing-gallery .is-cover img { aspect-ratio: 16 / 10; }

/* Honeypot: off-screen for people, still in the form for naive bots. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Pomoc a kontakt: building problems (správca) beside app problems (support). */
.help-split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 1.25rem; align-items: start; }
.help-card { border-top: 4px solid var(--strong); }
.help-card-head { display: flex; align-items: center; gap: .7rem; margin-bottom: .6rem; }
.help-card-head h2 { margin: 0; }
.help-building { padding: .8rem 0; border-top: 1px solid var(--border, #e6e0d6); }
.help-building .muted { display: block; font-size: .95rem; }
@media (max-width: 760px) { .help-split { grid-template-columns: 1fr; } }

/* ── Legal pages ────────────────────────────────────────────────────── */

.legal { max-width: 46rem; margin: 0 auto; }
.legal .prose h2 { font-size: 1.25rem; margin-top: 2rem; }
.legal .prose li { margin-top: .5rem; }
#site-footer .small { opacity: .85; }
.hide-details > summary { list-style: none; cursor: pointer; display: inline-block; }
.hide-details > summary::-webkit-details-marker { display: none; }

/* Upgrade page: the written vote is the headline reason to go Pro. */
.pro-lead h2 { font-size: 1.45rem; }
.upgrade-prompt { background: var(--accent-soft); border-color: transparent; }

/* ── Service providers ─────────────────────────────────────────────── */

.form-grid { gap: 0 1rem; }
fieldset.checks { border: none; margin: 0 0 1.4rem; padding: 0; }
fieldset.checks legend { font-weight: 600; font-size: .92rem; margin-bottom: .5rem; padding: 0; }
.check-grid { display: grid; gap: .4rem .75rem; }
@media (min-width: 620px) { .check-grid { grid-template-columns: repeat(2, 1fr); } }
.check-grid .choice, .region .choice { margin: 0; }
.region { border-top: 1px solid var(--border); padding: .55rem 0; }
.region:last-of-type { border-bottom: 1px solid var(--border); }
.region summary { cursor: pointer; font-weight: 600; }
.region[open] summary { margin-bottom: .4rem; }
.choice--strong { font-weight: 600; margin-bottom: .3rem !important; }

.rating { display: inline-flex; align-items: baseline; gap: .3rem; white-space: nowrap; }
.rating-star, .stars .on { color: #a86a12; }
.stars { letter-spacing: .08em; font-size: 1.05rem; }
.stars .off { color: var(--border-strong); }

.provider-card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; }
.provider-excerpt { color: var(--text-muted); font-size: .95rem; }

.review-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .8rem; margin-bottom: .5rem; }
.review-reply {
    margin-top: .8rem;
    padding: .7rem .9rem;
    background: var(--surface-sunken);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
}
.choice input[type="checkbox"] { margin: 0; }

/* Môj byt — an open reading round asks for action. */
.flat-callout { border-left: 3px solid var(--warning); }

/* Number of new notices on a notice-board category tab. */
.count-badge {
    display: inline-block;
    min-width: 1.35em;
    padding: 0 .4em;
    margin-left: .25rem;
    border-radius: var(--radius-pill);
    background: var(--accent);
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.45;
    text-align: center;
    font-variant-numeric: tabular-nums;
}
.filter-bar a.is-active .count-badge { background: #fff; color: var(--accent-dark); }

/* ── Landing showcase ───────────────────────────────────────────────────
   Each use case = text + an animated mock of the real screen. The row gets
   .is-in from static/js/showcase.js when it scrolls into view; every
   animated piece waits for it (html.js only, so without JavaScript the end
   state simply shows). Delays come from --d on each piece. */

.showcase .landing-lead { margin-bottom: 2.5rem; }
.sc-row {
    display: grid;
    gap: 1.5rem 3rem;
    align-items: center;
    margin: 0 auto 4.5rem;
    max-width: 62rem;
}
@media (min-width: 820px) {
    .sc-row { grid-template-columns: 1fr 1.1fr; }
    .sc-row--flip .sc-copy { order: 2; }
}
.sc-copy h3 { font-size: clamp(1.3rem, 3.5vw, 1.6rem); margin-bottom: .6rem; }
.sc-copy p { color: var(--text-muted); font-size: 1.05rem; margin: 0; }

.sc-stage { position: relative; }
.sc-screen {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(30,38,42,.06), 0 18px 40px -12px rgba(30,38,42,.22);
    padding: 1rem 1.1rem 1.2rem;
    overflow: hidden;
    font-size: .92rem;
    min-height: 17rem;
}
.sc-screen--split { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 480px) { .sc-screen--split { grid-template-columns: 1fr; } }
.sc-bar { display: flex; align-items: center; gap: .35rem; margin: -.2rem 0 .9rem; }
.sc-bar span { width: .55rem; height: .55rem; border-radius: 50%; background: var(--border-strong); }
.sc-bar b { margin-left: .5rem; font-size: .8rem; color: var(--text-muted); font-weight: 600; letter-spacing: .02em; }
.sc-screen--split .sc-bar { display: none; }
.sc-ico { width: 1.35rem; height: 1.35rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8;
          stroke-linejoin: round; stroke-linecap: round; }

.sc-chip { display: inline-block; font-size: .72rem; font-weight: 600; padding: .1rem .55rem;
           border-radius: var(--radius-pill); background: var(--surface-sunken); border: 1px solid var(--border);
           color: var(--text-muted); margin-right: .3rem; }
.sc-chip--new { background: var(--success-soft); color: var(--success); border-color: transparent; }
.sc-chip--warn { background: var(--warning-soft); color: var(--warning); border-color: transparent; }
.sc-chip--file { background: var(--accent-soft); color: var(--accent-dark); border-color: transparent; margin-top: .8rem; }

/* Scene 1 — notice board */
.sc-tabs { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .8rem; }
.sc-tab { font-size: .78rem; padding: .2rem .6rem; border: 1px solid var(--border); border-radius: var(--radius-pill); }
.sc-tab.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.sc-badge { display: inline-block; font-style: normal; font-size: .68rem; font-weight: 700; min-width: 1.2em;
            padding: 0 .3em; margin-left: .2rem; border-radius: var(--radius-pill); background: var(--accent);
            color: #fff; text-align: center; }
.sc-tab.is-on .sc-badge { background: #fff; color: var(--accent-dark); }
.sc-notice { border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius);
             padding: .6rem .75rem; margin-bottom: .5rem; background: var(--surface); }
.sc-notice strong { display: block; font-family: var(--font-display); font-size: 1rem; margin-top: .3rem; }
.sc-notice em { font-style: normal; color: var(--text-muted); font-size: .82rem; }
.sc-toast { position: absolute; right: .8rem; bottom: .8rem; left: 2.5rem; display: flex; gap: .6rem; align-items: center;
            background: var(--text); color: #fff; border-radius: 10px; padding: .65rem .8rem;
            box-shadow: 0 10px 24px -8px rgba(30,38,42,.5); }
.sc-toast strong { display: block; font-size: .85rem; }
.sc-toast span { font-size: .78rem; opacity: .8; }
.sc-toast--inline { position: static; margin-top: .9rem; }

/* Scene 2 — fault report */
.sc-label { display: block; font-weight: 600; font-size: .8rem; margin-bottom: .3rem; }
.sc-input { border: 1px solid var(--border-strong); border-radius: var(--radius); padding: .45rem .6rem;
            min-height: 2.2rem; background: #fff; }
.sc-type { display: inline-block; white-space: nowrap; border-right: 2px solid var(--accent); padding-right: 1px; }
.sc-photo { display: flex; align-items: center; gap: .5rem; margin: .7rem 0; font-size: .78rem; color: var(--text-muted); }
.sc-photo svg { width: 4.2rem; border-radius: 4px; }
.sc-photo-bg { fill: #3a4247; }
.sc-bulb { fill: #f4d35e; }
.sc-btn { display: inline-block; background: var(--accent); color: #fff; font-weight: 600; font-size: .85rem;
          padding: .45rem .9rem; border-radius: var(--radius); }
.sc-btn--ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); margin-top: .6rem; }
.sc-steps { display: flex; align-items: center; gap: .4rem; margin-top: 1rem; }
.sc-step { font-size: .74rem; font-weight: 700; padding: .2rem .55rem; border-radius: var(--radius-pill);
           background: var(--accent-soft); color: var(--accent-dark); }
.sc-step--done { background: var(--success); color: #fff; }
.sc-line { flex: 1; height: 2px; background: var(--accent); transform-origin: left; }
.sc-reply { margin-top: .8rem; background: var(--surface-sunken); border-radius: 10px 10px 10px 2px;
            padding: .5rem .7rem; font-size: .84rem; }

/* Scene 3 — written vote */
.sc-ballot { background: #fffdf6; border: 1px solid #e3dcc6; border-radius: 4px; padding: .8rem .9rem;
             box-shadow: 2px 3px 0 rgba(30,38,42,.06); transform: rotate(-1.2deg); }
.sc-ballot small { display: block; color: var(--text-muted); font-size: .72rem; }
.sc-ballot strong { display: block; font-family: var(--font-display); margin: .3rem 0 .6rem; line-height: 1.25; }
.sc-choice { display: flex; align-items: center; gap: .45rem; font-size: .78rem; font-weight: 600; margin: .3rem 0; }
.sc-box { width: 1.1rem; height: 1.1rem; border: 1.5px solid var(--text); border-radius: 2px; display: grid; }
.sc-box svg { width: 100%; height: 100%; }
.sc-draw { fill: none; stroke: #1b3a8a; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.sc-sign { width: 100%; height: 2.4rem; margin-top: .5rem; border-bottom: 1px dashed var(--border-strong); }
.sc-sign .sc-draw { stroke-width: 2; }
.sc-sign-label { text-align: right; }
.sc-tally { position: relative; align-self: center; }
.sc-tally > small { display: block; font-weight: 600; font-size: .75rem; color: var(--text-muted); margin-bottom: .5rem; }
.sc-meter { display: grid; grid-template-columns: 4.4rem 1fr 1.8rem; align-items: center; gap: .5rem;
            font-size: .8rem; margin: .45rem 0; }
.sc-meter i { display: block; height: .6rem; border-radius: var(--radius-pill); background: var(--surface-sunken); overflow: hidden; }
.sc-meter i b { display: block; height: 100%; width: var(--w); background: var(--accent); border-radius: inherit; transform-origin: left; }
.sc-meter em { font-style: normal; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.sc-meter--small { grid-template-columns: 2.4rem 1fr 1.4rem; margin: .3rem 0; }
.sc-grow--muted { background: var(--border-strong) !important; }
.sc-need { font-size: .74rem; color: var(--text-muted); margin: .6rem 0 0; }
.sc-stamp { display: inline-block; margin-top: .8rem; font-family: var(--font-display); font-weight: 700;
            font-size: 1.2rem; letter-spacing: .06em; text-transform: uppercase; color: var(--success);
            border: 3px solid var(--success); border-radius: 6px; padding: .15rem .6rem; transform: rotate(-8deg); }
.sc-stamp--small { font-size: .85rem; position: absolute; right: .8rem; top: 2.7rem; }

/* Scene 4 — survey */
.sc-q { display: block; font-family: var(--font-display); font-size: 1.05rem; margin-bottom: .6rem; }
.sc-rating { display: flex; gap: .4rem; margin-bottom: .7rem; }
.sc-rating span { flex: 1; max-width: 2.8rem; text-align: center; padding: .35rem 0; border: 1px solid var(--border-strong);
                  border-radius: var(--radius); font-family: var(--font-display); font-weight: 700; }
.sc-lock { display: flex; gap: .45rem; align-items: center; font-size: .78rem; color: var(--accent-dark);
           background: var(--accent-soft); border-radius: var(--radius); padding: .4rem .55rem; margin-bottom: .6rem; }
.sc-foot { font-size: .78rem; color: var(--text-muted); margin: .5rem 0 0; }

/* Scene 5 — water meter */
.sc-dial { position: relative; display: grid; place-items: center; padding: .6rem 0 .4rem; }
.sc-dial-face { width: 14.5rem; max-width: 100%; aspect-ratio: 1.6; border-radius: 50% / 45%; background: radial-gradient(circle at 50% 35%, #fbfcfc, #dfe5e6);
                border: 6px solid #9aa7aa; display: grid; place-content: center; text-align: center; gap: .4rem; }
.sc-dial-face small { font-size: .68rem; color: var(--text-muted); }
.sc-odo { display: flex; align-items: center; justify-content: center; gap: 1px; font-variant-numeric: tabular-nums; }
.sc-roll { display: inline-block; width: 1.05rem; height: 1.5rem; overflow: hidden; background: #1e262a; color: #fff;
           border-radius: 2px; font: 700 1.05rem/1.5rem var(--font); text-align: center; }
.sc-roll i { display: block; font-style: normal; transform: translateY(calc(var(--n) * -1.5rem)); }
.sc-roll--red { background: #9f3a2c; }
.sc-odo b { margin: 0 1px; }
.sc-odo em { font-style: normal; font-size: .8rem; margin-left: .3rem; color: var(--text-muted); }
.sc-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.sc-ok { font-size: .82rem; color: var(--success); font-weight: 600; margin: .4rem 0 .8rem; text-align: center; }
.sc-progress { display: grid; grid-template-columns: auto 1fr auto; gap: .6rem; align-items: center; font-size: .8rem; }
.sc-progress i { display: block; height: .6rem; border-radius: var(--radius-pill); background: var(--surface-sunken); overflow: hidden; }
.sc-progress i b { display: block; height: 100%; width: var(--w); background: var(--accent); transform-origin: left; }
.sc-progress em { font-style: normal; font-weight: 700; }

/* Scene 6 — owner announcement */
.sc-announce { position: relative; border: 1px solid var(--border); border-radius: var(--radius); padding: .75rem .85rem; }
.sc-status { position: relative; height: 1.4rem; margin-bottom: .4rem; }
.sc-status .sc-chip { position: absolute; left: 0; top: 0; }
.sc-out { opacity: 0; }
.sc-announce strong { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.sc-announce em { font-style: normal; font-size: .78rem; color: var(--text-muted); }
.sc-announce p { margin: .5rem 0 0; font-size: .85rem; max-width: 70%; }

/* Scene 7 — listing */
.sc-listing { display: grid; grid-template-columns: 7.5rem 1fr; gap: .8rem; align-items: center; }
.sc-listing-photo svg { width: 100%; border-radius: 6px; display: block; }
.sc-window { fill: #bcd9e8; }
.sc-floor { fill: #b08a5a; }
.sc-listing-body strong { display: block; font-family: var(--font-display); }
.sc-listing-body span { display: block; font-size: .76rem; color: var(--text-muted); }
.sc-listing-body .sc-price span { display: inline; font-size: inherit; color: inherit; }
.sc-price { display: block; font-family: var(--font-display); font-size: 1.25rem; margin-top: .2rem; }
.sc-estimate { margin: .8rem 0; border: 1px dashed var(--accent); border-radius: var(--radius); padding: .45rem .65rem; background: var(--accent-soft); }
.sc-estimate small { display: block; font-size: .7rem; color: var(--accent-dark); font-weight: 600; }
.sc-estimate strong { font-size: .85rem; }

/* Scene 8 — tradespeople */
.sc-search { display: flex; gap: .4rem; margin-bottom: .7rem; }
.sc-search span { border: 1px solid var(--border-strong); border-radius: var(--radius); padding: .25rem .6rem; font-size: .8rem; background: #fff; }
.sc-firm { display: flex; justify-content: space-between; gap: .6rem; align-items: center; border: 1px solid var(--border);
           border-radius: var(--radius); padding: .5rem .7rem; margin-bottom: .45rem; }
.sc-firm strong { display: block; font-family: var(--font-display); font-size: .95rem; }
.sc-firm span { font-size: .74rem; color: var(--text-muted); }
.sc-stars { white-space: nowrap; font-size: .9rem; }
.sc-stars i { font-style: normal; color: var(--border-strong); }
.sc-stars i.on { color: #a86a12; }
.sc-stars em { font-style: normal; font-size: .74rem; color: var(--text-muted); margin-left: .25rem; }

.sc-more { max-width: 40rem; margin: 0 auto; }
.sc-more h3 { text-align: center; }

/* ── The motion — only with JavaScript, and only for people who want it ── */
@media (prefers-reduced-motion: no-preference) {
    html.js .sc-a, html.js .sc-pop, html.js .sc-slide { opacity: 0; }
    html.js .sc-a { transform: translateY(10px); }
    html.js .sc-pop { transform: translateY(14px) scale(.96); }
    html.js .sc-slide { transform: translateX(-18px); }
    html.js .sc-grow { transform: scaleX(0); }
    html.js .sc-draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
    html.js .sc-type { clip-path: inset(0 100% 0 0); }
    html.js .sc-roll i { transform: translateY(0); }
    html.js .sc-stamp-in { opacity: 0; transform: rotate(-8deg) scale(2.2); }
    html.js .sc-pick { background: none; }
    html.js .sc-out { opacity: 1; }
    html.js .sc-stars i.on { color: var(--border-strong); }

    html.js .is-in .sc-a, html.js .is-in .sc-pop, html.js .is-in .sc-slide {
        opacity: 1; transform: none;
        transition: opacity .45s ease var(--d, 0s), transform .55s cubic-bezier(.2,.8,.2,1) var(--d, 0s);
    }
    html.js .is-in .sc-grow { transform: scaleX(1); transition: transform .9s cubic-bezier(.2,.8,.2,1) var(--d, 0s); }
    html.js .is-in .sc-draw { stroke-dashoffset: 0; transition: stroke-dashoffset 1s ease-in-out var(--d, 0s); }
    html.js .is-in .sc-type { clip-path: inset(0 0 0 0); transition: clip-path 1.3s steps(30) .2s; }
    html.js .is-in .sc-type { animation: sc-caret .7s steps(1) infinite 1.5s; }
    html.js .is-in .sc-roll i { transform: translateY(calc(var(--n) * -1.5rem));
        transition: transform 1.1s cubic-bezier(.3,.9,.3,1) var(--d, 0s); }
    html.js .is-in .sc-flash { animation: sc-flash .5s ease-out var(--d, 0s); }
    html.js .is-in .sc-stamp-in { opacity: 1; transform: rotate(-8deg) scale(1);
        transition: opacity .15s ease var(--d, 0s), transform .35s cubic-bezier(.3,1.6,.5,1) var(--d, 0s); }
    html.js .is-in .sc-press { animation: sc-press .35s ease var(--d, 0s); }
    html.js .is-in .sc-pick { background: var(--accent); color: #fff; border-color: var(--accent);
        transition: background .2s ease var(--d, 0s), color .2s ease var(--d, 0s); }
    html.js .is-in .sc-out { opacity: 0; transition: opacity .3s ease var(--d, 0s); }
    html.js .is-in .sc-stars i.on { color: #a86a12; transition: color .25s ease var(--d, 0s); }
    html.js .is-in .sc-badge { animation: sc-bump .45s ease var(--d, 0s); }
}
.sc-pick { background: var(--accent); color: #fff; border-color: var(--accent) !important; }
@keyframes sc-flash { 0% { opacity: 0; } 15% { opacity: .9; } 100% { opacity: 0; } }
@keyframes sc-press { 50% { transform: scale(.94); filter: brightness(1.15); } }
@keyframes sc-caret { 50% { border-right-color: transparent; } }
@keyframes sc-bump { 40% { transform: scale(1.45); } }

/* Showcase colours — one hue per feature (2026-09-28). --strong is used for
   the icon and the screen's top edge; --tint is the row's background. Every
   pair checked: strong on tint ≥ 4.7:1, body text on tint ≥ 12:1. */
.sc-hue-blue   { --strong: #245a9c; --tint: #e4edf8; }
.sc-hue-amber  { --strong: #a4520a; --tint: #fbecd9; }
.sc-hue-green  { --strong: #2a6a58; --tint: #dcece4; }
.sc-hue-violet { --strong: #63409e; --tint: #eee6f8; }
.sc-hue-teal   { --strong: #0c6a7c; --tint: #dbeff2; }
.sc-hue-terra  { --strong: #9e3e2a; --tint: #f8e3dc; }
.sc-hue-indigo { --strong: #3a47a0; --tint: #e5e8f8; }
.sc-hue-ochre  { --strong: #7f5314; --tint: #f4e9d4; }

.sc-row {
    background: var(--tint);
    border-radius: 22px;
    padding: clamp(1.25rem, 3.5vw, 2.75rem);
    margin-bottom: 1.75rem;
}
.sc-row .sc-screen { border-top: 4px solid var(--strong); }
.sc-row .sc-copy p { color: var(--text); opacity: .82; }
.sc-icon {
    display: grid;
    place-items: center;
    width: 3.1rem;
    height: 3.1rem;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: var(--strong);
    box-shadow: 0 6px 16px -6px var(--strong);
}
.sc-icon svg { width: 1.55rem; height: 1.55rem; fill: none; stroke: #fff; stroke-width: 1.9;
               stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: no-preference) {
    html.js .sc-row .sc-icon { transform: scale(.6); opacity: 0; }
    html.js .sc-row.is-in .sc-icon { transform: none; opacity: 1;
        transition: transform .5s cubic-bezier(.3,1.5,.5,1), opacity .3s ease; }
}

/* ── Illustrated hero (2026-09-28) ──────────────────────────────────────
   Headline left, a drawn apartment block right (stacked on a phone), with
   three app notices floating around it in the showcase's colours. */
.hero--split {
    display: grid;
    gap: 2rem 3rem;
    align-items: center;
    text-align: left;
    padding: 2.5rem 0 2rem;
}
@media (min-width: 860px) { .hero--split { grid-template-columns: 1.05fr 1fr; padding-top: 3.5rem; } }
.hero--split h1 { font-size: clamp(2.1rem, 6vw, 3.1rem); line-height: 1.1; }
.hero--split p { margin-left: 0; }
.hero--split .hero-copy p:not(.eyebrow) { font-size: 1.15rem; margin-bottom: 1.75rem; }
.hero--split p.eyebrow { margin-left: 0; }

.hero-art { position: relative; max-width: 30rem; width: 100%; margin: 0 auto; }
.hero-art svg { display: block; width: 100%; height: auto; }
.h-sun { fill: #f8d9a6; }
.h-ground { fill: #e2d6c2; }
.h-trunk { fill: #8a6a4a; }
.h-leaf { fill: #6fa383; }
.h-leaf--2 { fill: #5b9272; }
.h-roof { fill: #4c5a61; }
.h-body { fill: #f7f1e8; stroke: #c5bbac; stroke-width: 1.5; }
.h-stripe { fill: #2f6f5e; }
.hw { fill: #b8d0db; stroke: #8fa9b5; stroke-width: 1; }
.hw--lit { fill: #f6d27a; stroke: #d9ae4a; }
.hbalc { fill: #2f6f5e; }
.hbalc--terra { fill: #b4553f; }
.h-canopy { fill: #4c5a61; }
.h-door { fill: #2f6f5e; }
.h-mb-frame { fill: #7d8b91; }
.h-mailboxes rect:not(.h-mb-frame) { fill: #c9d2d5; }
.h-mailboxes .h-mb-mine { fill: #f6d27a; }
.h-letter { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .h-letter { display: none; } }
.h-letter rect { fill: #fff; stroke: #245a9c; stroke-width: 1.5; }
.h-letter path { fill: none; stroke: #245a9c; stroke-width: 1.5; }
.h-sign { font: 700 9px var(--font); fill: #fff; }

.hero-chip {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: .05rem;
    padding: .5rem .75rem;
    background: var(--surface);
    border-radius: 12px;
    border-left: 4px solid var(--c);
    box-shadow: 0 10px 26px -10px rgba(31,35,38,.35);
    font-size: .8rem;
    line-height: 1.3;
    white-space: nowrap;
}
.hero-chip b { color: var(--c); font-size: .85rem; }
.hero-chip span { color: var(--text-muted); font-size: .75rem; }
.hero-chip--blue  { --c: #245a9c; top: 6%;  left: -2%; }
.hero-chip--green { --c: #2a6a58; top: 34%; right: -3%; }
.hero-chip--teal  { --c: #0c6a7c; bottom: 16%; left: 2%; }
@media (max-width: 480px) {
    .hero-chip { font-size: .72rem; padding: .4rem .6rem; }
    .hero-chip b { font-size: .76rem; }
    .hero-chip--green { right: 0; }
}

@media (prefers-reduced-motion: no-preference) {
    .hero-chip { animation: hero-chip-in .6s cubic-bezier(.2,.8,.2,1) var(--d) both,
                             hero-bob 5s ease-in-out calc(var(--d) + .6s) infinite; }
    .hw--blink { animation: hero-window 7s steps(1) var(--d) infinite; }
    .h-letter { animation: hero-letter 6s ease-in 1.5s infinite; }
    .h-mb-mine { animation: hero-mail 6s ease 1.5s infinite; }
}
@keyframes hero-chip-in { from { opacity: 0; transform: translateY(12px) scale(.95); } }
@keyframes hero-bob { 50% { transform: translateY(-5px); } }
@keyframes hero-window { 0% { fill: #b8d0db; } 40% { fill: #f6d27a; } 85% { fill: #b8d0db; } }
@keyframes hero-letter {
    0%, 8% { transform: translateY(-30px); opacity: 0; }
    15% { opacity: 1; }
    38% { transform: translateY(52px); opacity: 1; }
    44%, 100% { transform: translateY(58px); opacity: 0; }
}
@keyframes hero-mail { 0%, 40% { fill: #c9d2d5; } 46%, 90% { fill: #f6d27a; } 100% { fill: #c9d2d5; } }

/* Concierge's quick actions on the notice board — the landing page's feature
   colours and icons (.sc-hue-*, .sc-icon), so a tool looks the same everywhere. */
.quick { display: grid; gap: .75rem; margin-bottom: 1rem; }
@media (min-width: 700px) { .quick { grid-template-columns: repeat(3, 1fr); } }
.quick-tile {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .9rem 1rem;
    background: var(--tint);
    border: 1px solid transparent;
    border-radius: 14px;
    color: var(--text);
    transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.quick-tile:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--strong);
                    box-shadow: 0 8px 20px -10px var(--strong); }
.quick-tile .sc-icon { margin: 0; width: 2.7rem; height: 2.7rem; flex: none; }
.quick-tile .sc-icon svg { width: 1.35rem; height: 1.35rem; }
.quick-tile b { display: flex; align-items: center; gap: .35rem; font-family: var(--font-display); font-size: 1.1rem; }
.quick-tile small { display: block; color: var(--text-muted); font-size: .85rem; }
.quick-todo { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-bottom: 1.35rem; }
.quick-todo .chip { font-weight: 600; }
.quick-todo .chip--todo { background: var(--warning-soft); border-color: transparent; color: var(--warning); }

/* ── Compose forms (new notice, …) in the feature's colour (2026-09-28) ──
   A coloured head with the feature icon, the form in a card with a
   coloured top edge, and a live preview beside it (below it on a phone). */
.compose-head { display: flex; align-items: center; gap: 1rem; margin: .4rem 0 1.5rem; }
.compose-head .sc-icon { margin: 0; width: 3.4rem; height: 3.4rem; flex: none; }
.compose-head .sc-icon svg { width: 1.7rem; height: 1.7rem; }
.compose-head h1 { margin: 0; }
.compose-head p { margin: .15rem 0 0; color: var(--text-muted); }

.compose { display: grid; gap: 1.5rem 2rem; align-items: start; }
@media (min-width: 900px) { .compose { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.compose-main {
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 5px solid var(--strong);
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: var(--shadow-lift);
}
.compose fieldset { border: none; padding: 0; margin: 0 0 1.2rem; }
.compose legend { display: block; margin-bottom: .45rem; font-weight: 600; font-size: .92rem; padding: 0; }
.form-control--big { font-size: 1.2rem; font-family: var(--font-display); font-weight: 600; padding: .7rem .85rem; }
.form-control--auto { width: auto; max-width: 100%; }

/* Category as colour chips — each notice category in a hue of its own. */
.cat-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.cat-chip input { position: absolute; opacity: 0; pointer-events: none; }
.cat-chip span {
    display: inline-block;
    padding: .45rem .95rem;
    border: 1.5px solid var(--border-strong);
    border-radius: var(--radius-pill);
    background: var(--surface);
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    transition: background var(--ease), border-color var(--ease), color var(--ease);
}
.cat-chip span:hover { border-color: var(--c); }
.cat-chip input:checked + span { background: var(--c); border-color: var(--c); color: #fff; }
.cat-chip input:focus-visible + span { outline: 2px solid var(--c); outline-offset: 2px; }
.cat-chip--news { --c: #245a9c; }
.cat-chip--meeting { --c: #63409e; }
.cat-chip--maintenance { --c: #a4520a; }
.cat-chip--outage { --c: #9e3e2a; }
.cat-chip--other { --c: #4f5a60; }

.toggle-tiles { display: grid; gap: .6rem; margin: .4rem 0 1.4rem; }
@media (min-width: 620px) { .toggle-tiles { grid-template-columns: 1fr 1fr; } }
.toggle-tile {
    display: flex;
    gap: .7rem;
    align-items: flex-start;
    padding: .8rem .9rem;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    cursor: pointer;
    transition: border-color var(--ease), background var(--ease);
}
.toggle-tile input { width: 1.25rem; height: 1.25rem; margin-top: .15rem; flex: none; accent-color: var(--strong); }
.toggle-tile b { display: block; font-size: .98rem; }
.toggle-tile small { display: block; color: var(--text-muted); font-size: .85rem; line-height: 1.4; }
.toggle-tile:has(input:checked) { border-color: var(--strong); background: var(--tint); }

.btn--hue { background: var(--strong); border-color: var(--strong); }
.btn--hue:hover { filter: brightness(1.1); background: var(--strong); }
.compose-actions .btn { padding-left: 1.4rem; padding-right: 1.4rem; }

.compose-preview { position: sticky; top: 1.25rem; }
.compose-preview-label { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
                         color: var(--strong); margin-bottom: .6rem; }
.compose-preview .notice { cursor: default; }
.pv-body { white-space: pre-line; margin-bottom: 0; }
.compose .form-control:focus { border-color: var(--strong); box-shadow: 0 0 0 3px var(--tint); outline: none; }

/* The HTML hidden attribute must win over component display rules (.badge…). */
[hidden] { display: none !important; }

/* Compose pages — shared extras (votes, surveys). */
.compose-tag { display: inline-block; vertical-align: middle; font-family: var(--font); font-size: .78rem;
               font-weight: 700; letter-spacing: .03em; padding: .15rem .6rem; border-radius: var(--radius-pill);
               background: var(--tint); color: var(--strong); }
.compose-head .compose-tag { position: relative; top: -.2rem; }
.compose-note { font-size: .9rem; color: var(--text-muted); background: var(--surface-sunken);
                border-radius: 10px; padding: .6rem .8rem; margin: 0 0 1.2rem; }
.option-list { display: grid; gap: .5rem; }
.option-row { display: flex; align-items: center; gap: .6rem; }
.option-num { flex: none; width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center;
              background: var(--tint); color: var(--strong); font-weight: 700; font-size: .9rem; }
.pv-card { border-top: 4px solid var(--strong); }
.pv-card h3.is-empty, .pv-options .is-empty { color: var(--text-muted); font-weight: 400; }
.pv-options { list-style: none; margin: .6rem 0 1rem; padding: 0; display: grid; gap: .4rem; }
.pv-options li { display: flex; align-items: center; gap: .6rem; padding: .55rem .75rem;
                 border: 1px solid var(--border); border-radius: var(--radius); }
.pv-radio { flex: none; width: 1.05rem; height: 1.05rem; border-radius: 50%; border: 2px solid var(--border-strong); }
.pv-btn { display: inline-block; background: var(--strong); color: #fff; font-weight: 600;
          padding: .5rem 1.1rem; border-radius: var(--radius); }
.item-cards { display: grid; gap: .7rem; }
.item-card { display: grid; grid-template-columns: auto 1fr; gap: .8rem; padding: 1rem 1rem .2rem;
             border: 1px solid var(--border); border-left: 4px solid var(--strong); border-radius: 12px;
             background: var(--surface); }
.item-card .option-num { margin-top: 1.7rem; }

/* Ballot preview — paper, like the printed one. */
.pv-ballot { background: #fffdf6; border: 1px solid #e3dcc6; border-radius: 4px; padding: 1.1rem 1.2rem;
             box-shadow: 3px 4px 0 rgba(31,35,38,.06); }
.pv-ballot small { color: var(--text-muted); font-size: .78rem; }
.pv-ballot > strong { display: block; font-family: var(--font-display); font-size: 1.15rem; margin: .3rem 0 .6rem; }
.pv-ballot .is-empty { color: var(--text-muted); font-weight: 400; }
.pv-ballot-items { margin: 0 0 .8rem; padding-left: 1.2rem; display: grid; gap: .7rem; }
.pv-ballot-items li { font-size: .95rem; }
.pv-ballot-majority { display: block; font-size: .75rem; color: var(--text-muted); }
.pv-ballot-boxes { display: flex; flex-wrap: wrap; gap: .3rem .9rem; margin-top: .3rem; font-size: .78rem; font-weight: 700; }
.pv-ballot-boxes i { display: inline-block; width: .95rem; height: .95rem; border: 1.5px solid var(--text);
                     border-radius: 2px; margin-right: .3rem; vertical-align: -2px; }
.pv-ballot-foot { font-size: .82rem; color: var(--text-muted); margin: .4rem 0 1.4rem; }
.pv-ballot-sign { border-top: 1px dashed var(--border-strong); padding-top: .3rem; text-align: right;
                  font-size: .75rem; color: var(--text-muted); }
@media (min-width: 900px) { .compose--single { grid-template-columns: minmax(0, 52rem); } }
.quick--choices { margin-bottom: 1.8rem; }
.quick--choices .quick-tile { align-items: flex-start; }
.quick--choices .quick-tile .sc-icon { margin-top: .1rem; }
.kind-chip { --c: var(--strong); }
.kind-chip span { font-size: .88rem; padding: .35rem .8rem; }
.form-label { display: block; margin-bottom: .45rem; font-weight: 600; font-size: .92rem; }
.pv-questions { margin: .6rem 0 1rem; padding-left: 1.2rem; display: grid; gap: .55rem; }
.pv-questions .is-empty { color: var(--text-muted); list-style: none; margin-left: -1.2rem; }
.pv-kind { display: block; font-size: .78rem; color: var(--strong); font-weight: 600; }
.pv-lock { font-size: .82rem; color: var(--strong); background: var(--tint); border-radius: var(--radius); padding: .45rem .65rem; }
.pv-ballot-items .is-empty { list-style: none; margin-left: -1.2rem; }
.pv-options .is-empty { border: none; padding-left: 0; }

/* ── Administrácia in the same language (2026-09-28) ─────────────────── */
.sc-hue-slate { --strong: #45545c; --tint: #e5e9eb; }
.page-head--hue { align-items: center; }
.page-head--hue .compose-head { margin: 0; }
.page-head--hue .btn:not(.btn--ghost) { background: var(--strong); border-color: var(--strong); }
.compose-card { border-top: 5px solid var(--strong); border-radius: 14px; box-shadow: var(--shadow-lift); }
/* Traffic statistics (admin/traffic.html). */
.tr-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: .8rem; margin-top: 1rem; }
.tr-bots .stat-value { color: var(--text-muted); }
.tr-chart { display: flex; align-items: flex-end; gap: 2px; height: 11rem; padding: .3rem 0; border-bottom: 1px solid var(--border); }
.tr-day { flex: 1; height: 100%; position: relative; }
.tr-bar { position: absolute; bottom: 0; border-radius: 2px 2px 0 0; }
.tr-bar--bots { left: 0; right: 0; background: #e3ddd2; }
.tr-bar--members { left: 12%; right: 12%; background: #9bc1b3; }
.tr-bar--people { left: 28%; right: 28%; background: #2f6f5e; }
.tr-legend { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin-top: .6rem; }
.tr-dot { display: inline-block; width: .7rem; height: .7rem; border-radius: 2px; vertical-align: -1px; }
.tr-dot--people { background: #2f6f5e; } .tr-dot--members { background: #9bc1b3; } .tr-dot--bots { background: #e3ddd2; }
.tr-table td.n { text-align: right; font-weight: 600; width: 5rem; }

/* Pro order form (buildings/upgrade.html). */
.order-status { border-left: 4px solid var(--success); background: var(--success-soft); padding: .8rem 1rem;
                border-radius: var(--radius); margin-bottom: 1rem; }
.order-periods { border: 0; padding: 0; margin: 0 0 .5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.order-periods legend { font-weight: 600; margin-bottom: .5rem; }
.order-period { display: flex; gap: .6rem; align-items: flex-start; border: 1.5px solid var(--border); border-radius: var(--radius);
                padding: .75rem .85rem; cursor: pointer; background: var(--surface, #fffdf9); }
.order-period:has(input:checked) { border-color: var(--accent, #2f6f5e); box-shadow: 0 0 0 2px rgba(47,111,94,.15); }
.order-period input { margin-top: .3rem; }
.order-period span { display: grid; gap: .1rem; }
.order-price { font-size: 1.2rem; font-weight: 700; }
.order-heading { margin: 1.6rem 0 .2rem; }
.order-period small { color: var(--text-muted); }
@media (max-width: 640px) { .order-periods { grid-template-columns: 1fr; } }

/* Admin invoice list (admin/invoices.html). */
.inv-row { display: grid; grid-template-columns: 1fr auto; gap: .4rem 1rem; align-items: start; }
.inv-main { display: grid; gap: .15rem; }
.inv-sum { font-weight: 700; font-size: 1.15rem; white-space: nowrap; }
.inv-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .4rem; align-items: flex-start; }
.inv-more summary { list-style: none; cursor: pointer; }
.inv-more summary::-webkit-details-marker { display: none; }
.inv-pop { display: grid; gap: .45rem; margin-top: .45rem; padding: .7rem; border: 1px solid var(--border);
           border-radius: var(--radius); background: var(--surface, #fffdf9); min-width: 15rem; }

/* Security page (admin/security.html). */
.sec-findings { display: grid; gap: .45rem; margin-bottom: .6rem; }
.sec-finding { margin: 0; padding: .7rem 1rem; border-radius: var(--radius); border-left: 4px solid;
               background: var(--surface, #fffdf9); }
.sec-finding--danger { border-color: #b3261e; background: #fbeceb; color: #6e1510; font-weight: 600; }
.sec-finding--warn { border-color: #b7791f; background: #fbf3e6; color: #5e3d0a; }
.sec-finding--ok { border-color: var(--success); background: var(--success-soft); color: var(--success); font-weight: 600; margin-bottom: .6rem; }
.sec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(26rem, 1fr)); gap: 1.1rem; margin-top: 1rem; }
.sec-card { border-top: 4px solid var(--strong); }
.sec-card-head { display: flex; align-items: center; gap: .7rem; margin-bottom: .7rem; }
.sec-card-head h2 { margin: 0; }
.sec-kv { margin: 0; }
.sec-row { display: grid; grid-template-columns: minmax(9rem, 40%) 1fr; gap: .2rem 1rem; padding: .5rem 0;
           border-top: 1px solid var(--border); }
.sec-row:first-child { border-top: 0; }
.sec-row dt { color: var(--text-muted); font-size: .95rem; }
.sec-row dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.sec-row dd small { display: block; font-weight: 400; color: var(--text-muted); font-size: .88rem; }
.sec-row dd { display: grid; grid-template-columns: auto 1fr; column-gap: .5rem; align-items: baseline; }
.sec-row dd > small { grid-column: 2; margin-top: .15rem; }
.sec-row dd:not(:has(.sec-dot)) > small { grid-column: 1 / -1; }
.sec-dot { width: .6rem; height: .6rem; border-radius: 50%; display: inline-block; align-self: start; margin-top: .5em; }
.sec-dot--ok { background: #2e8b57; }
.sec-dot--warn { background: #d49a2a; }
.sec-dot--bad { background: #b3261e; }
.sec-value--bad { color: #b3261e; }
.sec-sub { margin: 1.2rem 0 .3rem; font-size: 1.05rem; }
.sec-notes { margin: .6rem 0 0; padding-left: 1.1rem; color: var(--text-muted); }
.sec-sessions { list-style: none; padding: 0; margin: .3rem 0 .8rem; display: grid; gap: .35rem; }
.sec-sessions .muted.small { display: block; }
.sec-log { max-height: 16rem; overflow: auto; font-size: .78rem; background: #f4f1ea; padding: .6rem; border-radius: 6px;
           white-space: pre-wrap; overflow-wrap: anywhere; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
@media (max-width: 560px) {
    .sec-grid { grid-template-columns: 1fr; }
    .sec-row { grid-template-columns: 1fr; }
}

.admin-tiles { display: grid; gap: .8rem; margin-bottom: 1.25rem; }
@media (min-width: 620px) { .admin-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .admin-tiles { grid-template-columns: repeat(4, 1fr); } }
.admin-tiles .quick-tile { align-items: flex-start; min-height: 6.2rem; }
.admin-tiles .quick-tile .sc-icon { margin-top: .1rem; }
.admin-tiles .quick-tile--primary { background: var(--strong); color: #fff; }
.admin-tiles .quick-tile--primary small { color: rgba(255,255,255,.85); }
.admin-tiles .quick-tile--primary .sc-icon { background: #fff; }
.admin-tiles .quick-tile--primary .sc-icon svg { stroke: var(--strong); }
.tile-num { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; line-height: 1.1; display: block; margin-top: .15rem; }
.form-narrow--wide { max-width: 44rem; }
.form-narrow .page-head--hue { margin-bottom: 1.25rem; }
.compose-card .btn:not(.btn--ghost):not(.btn--danger) { background: var(--strong); border-color: var(--strong); }

/* ── About page (2026-09-29) ──────────────────────────────────────────── */
.about-head { display: flex; align-items: center; gap: 1.5rem; padding: 2rem 0 .5rem; max-width: 52rem; }
.about-mark { width: 5rem; height: 5rem; flex: none; border-radius: 16px;
              box-shadow: 0 12px 28px -12px rgba(47,111,94,.6); }
.about-head h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); line-height: 1.15; margin-bottom: .5rem; }
.about-head p:not(.eyebrow) { font-size: 1.1rem; color: var(--text-muted); margin: 0; }
.about-head p.eyebrow { font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
                        color: var(--accent-dark); margin: 0 0 .4rem; }
@media (max-width: 560px) { .about-head { flex-direction: column; align-items: flex-start; } .about-mark { width: 3.8rem; height: 3.8rem; } }
.about-section { margin-top: 3.5rem; }

.tier-title { display: flex; align-items: center; gap: .6rem; margin: 2rem 0 1rem; font-size: 1.15rem; }
.tier-badge { font-family: var(--font); font-size: .78rem; font-weight: 700; letter-spacing: .04em;
              text-transform: uppercase; padding: .25rem .7rem; border-radius: var(--radius-pill); }
.tier-badge--free { background: var(--success-soft); color: var(--success); }
.tier-badge--pro { background: var(--accent); color: #fff; }

.feat-grid { display: grid; gap: .75rem; }
@media (min-width: 620px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .feat-grid { grid-template-columns: repeat(4, 1fr); } }
.feat-tile { display: flex; gap: .8rem; align-items: flex-start; padding: 1rem; border-radius: 14px;
             background: var(--tint); }
.feat-tile .sc-icon { margin: 0; width: 2.6rem; height: 2.6rem; flex: none; }
.feat-tile .sc-icon svg { width: 1.3rem; height: 1.3rem; }
.feat-tile b { display: block; font-family: var(--font-display); font-size: 1.02rem; line-height: 1.25; margin-bottom: .2rem; }
.feat-tile > div > span { display: block; font-size: .88rem; color: var(--text); opacity: .8; line-height: 1.4; }

.faq { max-width: 46rem; margin: 0 auto; display: grid; gap: .6rem; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0 1.1rem; }
.faq summary { cursor: pointer; list-style: none; padding: 1rem 0; font-family: var(--font-display);
               font-weight: 700; font-size: 1.08rem; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font); font-size: 1.4rem; line-height: 1; color: var(--accent);
                      transition: transform var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 1rem; color: var(--text-muted); }

.roadmap { display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.5rem; border-radius: 18px;
           background: var(--tint); border: 1px dashed var(--strong); max-width: 46rem; margin: 0 auto; }
.roadmap .sc-icon { margin: 0; flex: none; }
.roadmap p.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
                     color: var(--strong); margin: 0 0 .2rem; }

/* Fade-in on scroll (static/js/showcase.js) — only with JS and motion allowed. */
@media (prefers-reduced-motion: no-preference) {
    html.js .reveal { opacity: 0; transform: translateY(14px); }
    html.js .reveal.is-in { opacity: 1; transform: none;
        transition: opacity .5s ease var(--d, 0s), transform .6s cubic-bezier(.2,.8,.2,1) var(--d, 0s); }
}

/* ── Flats for sale / rent — indigo, the listings' colour (2026-09-29) ── */
.browse-bar { display: grid; gap: 1rem; margin-bottom: 1.25rem; }
@media (min-width: 900px) { .browse-bar { grid-template-columns: auto 1fr; align-items: end; } }
.seg { display: inline-flex; padding: .3rem; background: var(--tint); border-radius: var(--radius-pill); align-self: end; justify-self: start; }
.seg a { padding: .55rem 1.3rem; border-radius: var(--radius-pill); font-weight: 600; color: var(--strong); }
.seg a:hover { text-decoration: none; background: rgba(255,255,255,.5); }
.seg a.is-on { background: var(--strong); color: #fff; box-shadow: 0 4px 12px -4px var(--strong); }
.browse-filters { display: grid; gap: .75rem 1rem; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); align-items: end;
                  background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--strong);
                  border-radius: 14px; padding: 1rem 1.1rem; box-shadow: var(--shadow); }
.browse-filters .btn { width: 100%; }
.browse-count { color: var(--text-muted); font-size: .95rem; margin: 0 0 .8rem; }

.listing-grid { gap: 1.1rem; }
.listing-card { border-radius: 16px; }
.listing-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -14px rgba(58,71,160,.45); }
.listing-card-photo { position: relative; }
.listing-card-photo img { transition: transform .5s ease; }
.listing-card:hover .listing-card-photo img { transform: scale(1.04); }
.listing-card-photo { overflow: hidden; }
.listing-price-pill { position: absolute; left: .7rem; bottom: .7rem; font-family: var(--font-display); font-weight: 700;
                      font-size: 1.2rem; padding: .25rem .75rem; border-radius: 10px; background: #3a47a0; color: #fff;
                      box-shadow: 0 6px 16px -6px rgba(0,0,0,.5); }
.listing-price-pill small { font-family: var(--font); font-size: .75rem; font-weight: 600; opacity: .85; }
.listing-card-body { padding: .9rem 1rem 1.05rem; }
.listing-card h3 { font-size: 1.08rem; margin-bottom: .55rem; }
.listing-facts { display: flex; flex-wrap: wrap; gap: .35rem; }
.listing-facts span:not(.energy) { font-size: .8rem; font-weight: 600; padding: .15rem .55rem; border-radius: var(--radius-pill);
                      background: #e5e8f8; color: #3a47a0; }
.listing-facts .energy { font-size: .8rem; padding: .15rem .5rem; border-radius: var(--radius-pill); min-width: 0; }
.listing-city { margin: .55rem 0 0; font-size: .85rem; color: var(--text-muted); }

.browse-owner { display: flex; gap: 1rem; align-items: center; margin-top: 2.5rem; padding: 1.1rem 1.25rem;
                border-radius: 16px; background: var(--tint); }
.browse-owner .sc-icon { margin: 0; flex: none; }

/* Listing detail — gallery, facts, contact (2026-09-29). */
.ld-gallery { display: grid; gap: .5rem; margin: .5rem 0 1.5rem; border-radius: 18px; overflow: hidden; }
.ld-gallery a { position: relative; display: block; overflow: hidden; background: var(--surface-sunken); }
.ld-gallery img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ld-gallery a:hover img { transform: scale(1.04); }
.ld-gallery--1 a { aspect-ratio: 16 / 7; }
@media (min-width: 760px) {
    .ld-gallery:not(.ld-gallery--1) { grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 11rem; }
    .ld-gallery:not(.ld-gallery--1) .is-cover { grid-row: span 2; }
    .ld-gallery--2 { grid-template-columns: 2fr 1fr !important; grid-auto-rows: 22rem !important; }
    .ld-gallery--2 .is-cover { grid-row: auto !important; }
}
@media (max-width: 759px) {
    .ld-gallery { grid-template-columns: repeat(4, 1fr); }
    .ld-gallery .is-cover { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
    .ld-gallery a:not(.is-cover) { aspect-ratio: 1; }
}
.ld-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(31,35,38,.55);
           color: #fff; font-weight: 700; font-size: 1.1rem; }

.ld-title h1 { font-size: clamp(1.7rem, 4.5vw, 2.3rem); margin: .5rem 0 .3rem; }
.ld-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.ld-chip { font-size: .78rem; font-weight: 700; padding: .2rem .7rem; border-radius: var(--radius-pill);
           background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); }
.ld-chip--kind { background: var(--strong); border-color: var(--strong); color: #fff; }

.ld-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: .6rem; margin: 1.3rem 0 1.6rem; }
.ld-facts > div { background: var(--tint); border-radius: 14px; padding: .8rem .9rem; display: flex; flex-direction: column; gap: .15rem; }
.ld-facts strong { font-family: var(--font-display); font-size: 1.35rem; color: var(--strong); line-height: 1.15; }
.ld-facts strong.energy { color: #fff; align-self: flex-start; font-family: var(--font); font-size: 1.05rem; padding: .1rem .55rem; }
.ld-facts span { font-size: .82rem; color: var(--text-muted); }

.ld-section { margin-bottom: 1.6rem; }
.ld-section h2 { font-size: 1.2rem; margin-bottom: .5rem; }
.ld-section p { font-size: 1.05rem; line-height: 1.65; }
.ld-cards .card { margin: 0; }

.ld-contact { border-top: 5px solid var(--strong); border-radius: 16px; box-shadow: var(--shadow-lift); }
.ld-price { font-family: var(--font-display); font-weight: 700; font-size: 2.1rem; color: var(--strong); margin: 0; line-height: 1.1; }
.ld-price small { font-family: var(--font); font-size: .9rem; color: var(--text-muted); font-weight: 600; }

/* On a phone the contact card comes last — so show the price under the title. */
.ld-mobile-price { display: none; }
@media (max-width: 899px) {
    .ld-mobile-price { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
                       margin-top: 1rem; padding: .8rem 1rem; border-radius: 14px; background: var(--surface);
                       border: 1px solid var(--border); border-left: 5px solid var(--strong); }
    .ld-mobile-price .ld-price { font-size: 1.6rem; }
}

/* Building page (2026-09-29) */
.bd-facts { margin-top: 0; }
@media (min-width: 620px) { .bd-facts { grid-template-columns: repeat(4, 1fr); } }
.bd-tiles .quick-tile small { line-height: 1.4; }
.bd-danger { border: 1px solid var(--danger-soft); background: #fdf8f6; }
.bd-danger h3 { color: var(--danger); }
.bd-prompt { border: 1.5px dashed var(--border-strong); background: transparent; }
@media (max-width: 619px) { .bd-tiles .quick-tile { min-height: 0; } }

/* ── Building art (app/building_art.py) — the living default picture ─────
   Every moving part sits in a positioned <g>, so CSS transforms here never
   clash with SVG position attributes. Resting spots (--x / --y) are used
   when motion is off. */
.bart { display: block; width: 100%; height: auto; aspect-ratio: 640 / 300; }
.bart-tree { transform-box: fill-box; transform-origin: 50% 100%; }
/* Pivots: a leg at its hip (top centre), a wing where it meets the body. */
.bart-leg { transform-box: fill-box; transform-origin: 50% 0; }
.bart-wing { transform-box: fill-box; }
.bart-wing--l { transform-origin: 100% 100%; }
.bart-wing--r { transform-origin: 0 100%; }
.bart-cloud, .bart-walk, .bart-fly { transform: translateX(var(--x, 0)); }
.bart-snow { transform: translateY(var(--y, -20px)); }
.bart-leaf, .bart-petal { opacity: 0; }

@media (prefers-reduced-motion: no-preference) {
    .bart-tree { animation: bart-sway var(--dur, 4s) ease-in-out var(--delay, 0s) infinite alternate; }
    .bart-tree--windy { animation-name: bart-sway-windy; }
    .bart-cloud { animation: bart-drift var(--dur) linear var(--delay) infinite; }
    .bart-walk { animation: bart-walk var(--dur) linear var(--delay) infinite; }
    .bart-walk--left { animation-name: bart-walk-left; }
    .bart-leg { animation: bart-leg .55s ease-in-out infinite alternate; }
    .bart-leg--b { animation-direction: alternate-reverse; }
    .bart-body { animation: bart-bob .275s ease-in-out infinite alternate; }
    .bart-fly { animation: bart-fly var(--dur) linear var(--delay) infinite; }
    .bart-glide { animation: bart-glide 2.6s ease-in-out var(--delay, 0s) infinite alternate; }
    .bart-wing--l { animation: bart-flap-l var(--flap, .34s) ease-in-out infinite alternate; }
    .bart-wing--r { animation: bart-flap-r var(--flap, .34s) ease-in-out infinite alternate; }
    .bart-sun { animation: bart-spin 60s linear infinite; }
    .bart-snow { animation: bart-snow var(--dur) linear var(--delay) infinite; }
    .bart-leaf { animation: bart-leaf var(--dur) ease-in var(--delay) infinite; }
    .bart-petal { animation: bart-petal var(--dur) ease-in-out var(--delay) infinite; }
    .bart-win--blink { animation: bart-win 11s steps(1) var(--delay, 0s) infinite; }
}
@keyframes bart-sway { from { transform: rotate(-1.4deg); } to { transform: rotate(1.6deg); } }
@keyframes bart-sway-windy { from { transform: rotate(-3deg); } to { transform: rotate(3.4deg); } }
@keyframes bart-drift { from { transform: translateX(-90px); } to { transform: translateX(730px); } }
@keyframes bart-walk { from { transform: translateX(-30px); } to { transform: translateX(670px); } }
@keyframes bart-walk-left { from { transform: translateX(670px) scaleX(-1); } to { transform: translateX(-30px) scaleX(-1); } }
@keyframes bart-leg { from { transform: rotate(-20deg); } to { transform: rotate(20deg); } }
@keyframes bart-bob { from { transform: translateY(0); } to { transform: translateY(-1px); } }
@keyframes bart-fly { from { transform: translateX(-30px); } to { transform: translateX(680px); } }
@keyframes bart-glide { from { transform: translateY(-6px); } to { transform: translateY(6px); } }
@keyframes bart-flap-l { from { transform: rotate(-28deg); } to { transform: rotate(22deg); } }
@keyframes bart-flap-r { from { transform: rotate(28deg); } to { transform: rotate(-22deg); } }
@keyframes bart-spin { to { transform: rotate(360deg); } }
@keyframes bart-snow {
    from { transform: translate(0, -10px); }
    50% { transform: translate(10px, 150px); }
    to { transform: translate(-4px, 320px); }
}
@keyframes bart-leaf {
    0% { transform: translate(0, 0) rotate(0); opacity: 0; }
    10% { opacity: 1; }
    40% { transform: translate(14px, 50px) rotate(160deg); }
    70% { transform: translate(-8px, 90px) rotate(290deg); opacity: 1; }
    100% { transform: translate(6px, 118px) rotate(420deg); opacity: 0; }
}
@keyframes bart-petal {
    0% { transform: translate(0, 0); opacity: 0; }
    15% { opacity: .95; }
    100% { transform: translate(60px, 100px); opacity: 0; }
}
@keyframes bart-win { 0% { fill: #b8d0db; } 45% { fill: #f6d27a; } 80% { fill: #b8d0db; } }
.profile-art { overflow: hidden; max-height: 22rem; }
.profile-art .bart { max-height: 22rem; }

/* Building cards (/budovy, the multi-building dashboard): picture on top. */
.bcard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1.1rem; }
.bcard { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.bcard-pic { position: relative; height: 10.5rem; background: #e3eef3; overflow: hidden; }
.bcard-pic img, .bcard-pic .bart { display: block; width: 100%; height: 100%; object-fit: cover; }
.bcard-tags { position: absolute; top: .6rem; left: .6rem; display: flex; gap: .35rem; }
.bcard-tags .badge { background: rgba(255, 253, 249, .94); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.bcard-tags .badge--new { background: var(--success-soft); }
.bcard-body { padding: .9rem 1.1rem 1rem; }
.bcard-body h3 { margin: 0 0 .15rem; }
.bcard-facts { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin: .6rem 0 0; font-size: .95rem; color: var(--text-muted); }
.bcard-facts b { color: var(--text); }
