h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

#blazor-error-ui {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(11, 18, 14, 0.75);
    backdrop-filter: blur(8px);
    z-index: 9999;
}

#blazor-error-ui .blazor-error-card {
    width: min(100%, 480px);
    padding: 1.75rem;
    border-radius: 1.35rem;
    background: rgba(255, 253, 249, 0.97);
    box-shadow: 0 24px 60px rgba(16, 26, 20, 0.22);
    border: 1px solid rgba(216, 202, 181, 0.95);
}

#blazor-error-ui .blazor-error-kicker {
    margin: 0 0 .45rem;
    color: #2f7a37;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

#blazor-error-ui h2 {
    margin: 0 0 .6rem;
    font-size: 1.35rem;
    color: var(--brand);
}

#blazor-error-ui p {
    margin: 0 0 1.1rem;
    color: var(--on-surface-variant);
    line-height: 1.6;
}

#blazor-error-ui .blazor-error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ── Ains Reads brand — exact same palette/material language as AinsReads.Web ── */
:root {
    --brand: #1b4f2d;
    --primary: #2f6b34;
    --primary-container: #e6f7d8;
    --on-primary: #ffffff;
    --on-primary-container: #16371d;
    --background: #f5f2eb;
    --surface: #fffdf9;
    --surface-container: #f1eadf;
    --surface-container-high: #e8dfcf;
    --on-surface: #151311;
    --on-surface-variant: #5d5349;
    --outline: #8c7f70;
    --outline-variant: #d8cab5;
    --secondary-container: #f6d481;
    --on-secondary-container: #6d4b00;
    --error: #ba1a1a;
    --muted: #f7f0e8;
    --shadow: rgba(16, 26, 20, 0.14);
    --btn-primary-gradient: linear-gradient(135deg, var(--brand) 0%, var(--primary) 100%);
}

/* Dark mode — same mechanism as AinsReads.Web (wwwroot/js/theme.js sets this attribute before
   first paint, toggled via .theme-toggle in NavBar.razor). Everything built with var(--surface)/
   var(--on-surface)/etc picks this up automatically; the handful of rules below that used literal
   near-white rgba() values instead of a variable get an explicit dark override each, same as Web. */
:root[data-theme="dark"] {
    --brand: #7ed957;
    --primary: #5fcf6a;
    --primary-container: #1f3d22;
    --on-primary: #0b1a0f;
    --on-primary-container: #cdf5cf;
    --background: #10140f;
    --surface: #171c15;
    --surface-container: #1d2319;
    --surface-container-high: #262d20;
    --on-surface: #ece7dc;
    --on-surface-variant: #b7ae9e;
    --outline: #837a68;
    --outline-variant: #3a382e;
    --secondary-container: #4a3a12;
    --on-secondary-container: #f6d481;
    --error: #ff8a80;
    --muted: #1d2319;
    --shadow: rgba(0, 0, 0, 0.5);
}

:root[data-theme="dark"] body {
    background:
        radial-gradient(circle at top left, rgba(126, 217, 87, 0.10), transparent 32%),
        radial-gradient(circle at bottom right, rgba(246, 212, 129, 0.08), transparent 24%),
        linear-gradient(135deg, #12160f 0%, #0b0d0a 100%);
}

:root[data-theme="dark"] #blazor-error-ui .blazor-error-card { background: rgba(23, 28, 21, 0.97); border-color: rgba(58, 56, 46, 0.9); }
:root[data-theme="dark"] .page-shell { background: rgba(23, 28, 21, 0.82); border-color: rgba(58, 56, 46, 0.9); }
:root[data-theme="dark"] .side-nav { background: rgba(23, 28, 21, 0.9); border-color: rgba(58, 56, 46, 0.9); }
:root[data-theme="dark"] .side-nav-toggle { background: rgba(23, 28, 21, 0.92); border-color: rgba(58, 56, 46, 0.9); }
:root[data-theme="dark"] .hero { background: rgba(23, 28, 21, 0.78); border-color: rgba(58, 56, 46, 0.9); }
:root[data-theme="dark"] .section.promo-band { background: linear-gradient(135deg, rgba(29, 35, 25, 0.9), rgba(38, 45, 32, 0.85)); border-color: rgba(58, 56, 46, 0.9); }
:root[data-theme="dark"] .tile-card { background: rgba(23, 28, 21, 0.94); border-color: rgba(58, 56, 46, 0.9); }
:root[data-theme="dark"] .auth-card { background: rgba(23, 28, 21, 0.92); border-color: rgba(58, 56, 46, 0.9); }
:root[data-theme="dark"] .site-footer { background: rgba(23, 28, 21, 0.5); border-color: rgba(58, 56, 46, 0.9); }

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--on-surface-variant);
    cursor: pointer;
}

.theme-toggle:hover {
    background: var(--surface-container);
    color: var(--primary);
}

.theme-icon-dark {
    display: none;
}

:root[data-theme="dark"] .theme-icon-light {
    display: none;
}

:root[data-theme="dark"] .theme-icon-dark {
    display: inline-flex;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    position: relative;
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(126, 217, 87, 0.22), transparent 32%),
        radial-gradient(circle at bottom right, rgba(246, 212, 129, 0.3), transparent 24%),
        linear-gradient(135deg, #fcfbf7 0%, #f1ebde 100%);
    color: var(--on-surface);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.55;
}

body::before,
body::after {
    content: "";
    position: fixed;
    z-index: 0;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(45px);
    opacity: 0.26;
}

body::before {
    top: -90px;
    right: -80px;
    width: 260px;
    height: 260px;
    background: rgba(47, 107, 52, 0.22);
}

body::after {
    bottom: -100px;
    left: -90px;
    width: 300px;
    height: 300px;
    background: rgba(246, 212, 129, 0.24);
}

a {
    color: var(--primary);
    transition: color 160ms ease, transform 160ms ease;
}

h1, h2, h3 {
    letter-spacing: -0.02em;
    line-height: 1.08;
}

.page-container {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
    padding: 1.25rem 1.25rem 4rem;
}

.page-shell {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding: 1.35rem;
    border-radius: 1.8rem;
    background: rgba(255, 253, 249, 0.82);
    border: 1px solid rgba(216, 202, 181, 0.95);
    box-shadow: 0 20px 48px rgba(16, 26, 20, 0.08);
    backdrop-filter: blur(16px);
}

.page-shell > :first-child {
    margin-top: 0;
}

/* One button treatment for the whole site — same shape, gradient and hover as AinsReads.Web. */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border: 1px solid var(--outline-variant);
    background: var(--surface);
    color: var(--on-surface);
    padding: .85rem 1.4rem;
    border-radius: .65rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
    box-shadow: none;
}

.btn:hover {
    background: var(--muted);
    border-color: var(--outline);
}

.btn:disabled {
    opacity: .55;
    cursor: default;
}

.btn-primary {
    background: var(--btn-primary-gradient);
    border-color: transparent;
    color: var(--on-primary);
    box-shadow: 0 10px 24px rgba(29, 91, 43, 0.24);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(29, 91, 43, 0.3);
}

.btn-ghost {
    background: transparent;
    border-color: var(--outline-variant);
    color: var(--on-surface-variant);
}

.btn-ghost:hover {
    background: var(--muted);
    color: var(--primary);
}

/* Nav */
/* ── Side navigation (replaces the old horizontal top nav-bar — too many items were being
   crammed into one row as Publish grew). Desktop: a sticky column alongside the content.
   Mobile (see breakpoint below): an off-canvas drawer toggled by .side-nav-toggle. ── */
.app-shell {
    display: flex;
    align-items: flex-start;
    min-height: 100vh;
}

.side-nav {
    position: sticky;
    top: 0;
    z-index: 30;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    width: 248px;
    height: 100vh;
    padding: 1.1rem .9rem;
    background: rgba(255, 253, 249, 0.9);
    border-right: 1px solid rgba(216, 202, 181, 0.9);
    box-shadow: 0 16px 40px rgba(16, 26, 20, 0.06);
    overflow-y: auto;
    transition: width 220ms ease, padding 220ms ease, opacity 180ms ease;
}

.side-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .3rem;
    margin-bottom: 1.4rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-width: 0;
    font-weight: 800;
    font-size: .92rem;
    color: var(--brand);
    text-decoration: none;
    letter-spacing: -.02em;
    white-space: nowrap;
}

.nav-brand img {
    display: block;
    flex-shrink: 0;
}

.nav-brand-tag {
    font-size: .68rem;
    font-weight: 700;
    color: var(--on-surface-variant);
    border: 1px solid var(--outline-variant);
    border-radius: 999px;
    padding: .1rem .55rem;
}

.side-nav-close,
.side-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    flex-shrink: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--on-surface-variant);
    cursor: pointer;
}

.side-nav-close:hover,
.side-nav-toggle:hover {
    background: var(--surface-container);
    color: var(--primary);
}

/* Desktop-only collapse button (inside the nav header) and its matching edge tab to bring the nav
   back — the mobile close/hamburger pair above stays mobile-only, this pair is desktop-only, see
   the breakpoints below. Persisted via localStorage (window.ainsSideNav in sideNav.js), same
   mechanism as the dark-mode toggle — deliberately NOT Blazor state, so it applies before first
   paint with no flash and survives page navigations without a server round trip. */
.side-nav-collapse {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.7rem;
    height: 1.7rem;
    flex-shrink: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--on-surface-variant);
    cursor: pointer;
}

.side-nav-collapse:hover {
    background: var(--surface-container);
    color: var(--primary);
}

.side-nav-expand-tab {
    display: none;
}

.side-nav-links {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

.side-nav-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .6rem .75rem;
    border-radius: .9rem;
    color: var(--on-surface-variant);
    text-decoration: none;
    font-weight: 700;
    font-size: .93rem;
}

.side-nav-link .icon {
    flex-shrink: 0;
}

.side-nav-link:hover {
    background: var(--surface-container);
    color: var(--primary);
}

.side-nav-link.active {
    background: var(--primary-container);
    color: var(--on-primary-container);
}

.side-nav-badge {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.3rem;
    height: 1.3rem;
    padding: 0 .4rem;
    border-radius: 999px;
    background: var(--error);
    color: white;
    font-size: .7rem;
    font-weight: 800;
    animation: badge-pop 260ms ease both;
}

@keyframes badge-pop {
    from { transform: scale(.4); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.side-nav-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .6rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--outline-variant);
}

/* .side-nav-footer a's descendant selector (0,1,1) otherwise beats .btn-primary's single class
   (0,1,0) and silently overrides its white text back to the muted nav color — the "Sign in" button
   needs this re-asserted at equal-or-higher specificity to actually render white. */
.side-nav-footer a.btn-primary,
.side-nav-footer a.btn-primary:hover {
    color: var(--on-primary);
}

.side-nav-footer a {
    color: var(--on-surface-variant);
    text-decoration: none;
    font-weight: 700;
}

.side-nav-footer a:hover {
    color: var(--primary);
}

.nav-username {
    font-weight: 700;
    color: var(--on-surface);
    font-size: .9rem;
}

.side-nav-backdrop {
    display: none;
}

.app-content {
    flex: 1;
    min-width: 0;
}

@media (max-width: 900px) {
    .side-nav-toggle {
        display: inline-flex;
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 40;
        background: rgba(255, 253, 249, 0.92);
        border: 1px solid rgba(216, 202, 181, 0.9);
        box-shadow: 0 8px 20px rgba(16, 26, 20, 0.12);
    }

    .side-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: min(82vw, 300px);
        transform: translateX(-100%);
        transition: transform 220ms ease;
        box-shadow: 0 20px 48px rgba(16, 26, 20, 0.22);
    }

    .side-nav.open {
        transform: translateX(0);
    }

    .side-nav-close {
        display: inline-flex;
    }

    /* Mobile has its own close (X) + hamburger pair above — the desktop collapse button/edge tab
       would be a redundant second way to do the same thing, so it's suppressed here. */
    .side-nav-collapse,
    .side-nav-expand-tab {
        display: none !important;
    }

    .side-nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 25;
        background: rgba(11, 18, 14, 0.45);
        backdrop-filter: blur(2px);
    }

    .page-container {
        padding-top: 4.5rem;
    }
}

@media (min-width: 901px) {
    html[data-nav-collapsed="true"] .side-nav {
        width: 0;
        padding-left: 0;
        padding-right: 0;
        border-right: none;
        box-shadow: none;
        opacity: 0;
        overflow: hidden;
        pointer-events: none;
    }

    html[data-nav-collapsed="true"] .side-nav-expand-tab {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 35;
        width: 2.4rem;
        height: 2.4rem;
        border-radius: 50%;
        background: rgba(255, 253, 249, 0.92);
        border: 1px solid rgba(216, 202, 181, 0.9);
        color: var(--on-surface-variant);
        box-shadow: 0 8px 20px rgba(16, 26, 20, 0.12);
        cursor: pointer;
    }

    html[data-nav-collapsed="true"] .side-nav-expand-tab:hover {
        color: var(--primary);
    }
}

:root[data-theme="dark"] .side-nav-expand-tab { background: rgba(23, 28, 21, 0.92); border-color: rgba(58, 56, 46, 0.9); }

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    padding: 2.2rem;
    margin-top: 1.2rem;
    border-radius: 2rem;
    border: 1px solid rgba(216, 202, 181, 0.95);
    background: rgba(255, 253, 249, 0.78);
    box-shadow: 0 24px 60px rgba(16, 26, 20, 0.08);
    text-align: left;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(47, 107, 52, 0.06), transparent 60%);
    pointer-events: none;
}

.hero h1 {
    position: relative;
    z-index: 1;
    margin: 0 0 .7rem;
    font-size: clamp(2rem, 3vw, 2.9rem);
    color: var(--brand);
}

.hero p {
    position: relative;
    z-index: 1;
    color: var(--on-surface-variant);
    max-width: 680px;
    margin: 0 0 1.25rem;
    font-size: 1.02rem;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .65rem;
    border-radius: 999px;
    background: rgba(47, 107, 52, 0.1);
    color: var(--brand);
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: .8rem;
    position: relative;
    z-index: 1;
}

.hero-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

/* Sections */
.section {
    padding: 1.25rem 0 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1rem;
}

.section-header h2 {
    margin: 0;
}

.section-header a {
    font-weight: 700;
    text-decoration: none;
}

.button-row {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    margin: .5rem 0;
}

.notification-row {
    cursor: pointer;
}

.notification-unread {
    background: rgba(126, 217, 87, 0.08);
}

.notification-body {
    color: var(--on-surface-variant);
    font-size: .9rem;
}

/* Promo band — a section that also carries this class gets the elevated gradient card look
   instead of .section's plain top-padding-only rule (two classes = higher specificity, so this
   always wins regardless of source order). */
.section.promo-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 1.65rem 1.8rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(241, 234, 223, 0.88));
    border: 1px solid rgba(216, 202, 181, 0.95);
    border-radius: 1.4rem;
    box-shadow: 0 16px 40px rgba(16, 26, 20, 0.06);
}

.promo-band h2 {
    margin-top: 0;
    margin-bottom: .35rem;
}

.promo-band p {
    color: var(--on-surface-variant);
    max-width: 560px;
    margin: 0;
}

/* Tile grid — for picking one of several parallel options (author/press/publisher/transport on
   Home, step cards on How It Works). Same visual treatment as Web's platform-card. */
.tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.25rem;
}

.tile-card {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    text-align: left;
    padding: 1.75rem;
    border: 1px solid rgba(216, 202, 181, 0.95);
    border-radius: 1.3rem;
    background: rgba(255, 253, 249, 0.9);
    box-shadow: 0 16px 40px rgba(16, 26, 20, 0.06);
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
    animation: fade-in-up 320ms ease;
}

.tile-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 48px rgba(16, 26, 20, 0.12);
    border-color: var(--outline);
}

.tile-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: .9rem;
    background: rgba(47, 107, 52, 0.1);
    color: var(--brand);
    margin-bottom: .2rem;
}

.tile-card h3 {
    margin: 0;
}

.tile-card p {
    color: var(--on-surface-variant);
    margin: 0;
    flex: 1;
}

.tile-card .btn {
    align-self: flex-start;
    margin-top: .4rem;
}

/* Progressive disclosure for a tile-card's secondary actions — used on Businesses/Index, which
   used to cram up to 8 buttons/badges into one card at once. Native <details>, no JS needed. */
.tile-more {
    margin-top: .2rem;
}

.tile-more summary {
    cursor: pointer;
    font-size: .8rem;
    font-weight: 700;
    color: var(--on-surface-variant);
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    user-select: none;
}

.tile-more summary::-webkit-details-marker {
    display: none;
}

.tile-more summary:hover {
    color: var(--primary);
}

.tile-more summary::after {
    content: "▾";
    font-size: .65rem;
    transition: transform 160ms ease;
}

.tile-more[open] summary::after {
    transform: rotate(180deg);
}

.tile-more .hero-actions {
    margin-top: .7rem;
}

.edition-block {
    margin-top: 2rem;
}

.edition-block-hidden {
    opacity: .6;
}

.edition-lang {
    color: var(--on-surface-variant);
    font-weight: 400;
    font-size: .9rem;
}

.chapter-list {
    list-style: none;
    padding: 0;
    margin: .75rem 0 0;
    border-top: 1px solid var(--outline-variant);
}

.chapter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .7rem .6rem;
    margin: 0 -.6rem;
    border-radius: .7rem;
    border-bottom: 1px solid var(--outline-variant);
    gap: 1rem;
    transition: background 160ms ease;
}

.chapter-row:hover {
    background: var(--surface-container);
}

.chapter-row a {
    text-decoration: none;
    color: var(--on-surface);
    font-weight: 600;
}

/* Data tables (Earnings breakdown/payout history) — bare semantic <table>, previously unstyled
   (relying on the browser's own default table rendering, which has no visible borders and doesn't
   share the card system's radius/spacing/hover language other list-like content on the site uses). */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: .5rem;
}

th, td {
    text-align: left;
    padding: .6rem .5rem;
    border-bottom: 1px solid var(--outline-variant);
    font-size: .88rem;
}

th {
    color: var(--on-surface-variant);
    font-weight: 700;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

td {
    color: var(--on-surface);
}

tbody tr:hover {
    background: var(--surface-container);
}

@media (max-width: 720px) {
    table {
        display: block;
        overflow-x: auto;
    }
}

.badge {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    border-radius: 999px;
    padding: .2rem .6rem;
    transition: background 200ms ease, color 200ms ease, transform 200ms ease;
}

.badge-free {
    background: var(--primary-container);
    color: var(--on-primary-container);
}

.badge-locked {
    background: var(--secondary-container);
    color: var(--on-secondary-container);
}

/* Forms */
h1 {
    color: var(--brand);
}

label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    color: var(--on-surface-variant);
    margin-bottom: .9rem;
    max-width: 520px;
}

.field-optional {
    font-weight: 400;
    font-style: italic;
    color: var(--outline);
}

.field-hint {
    display: block;
    margin-top: .35rem;
    font-size: .78rem;
    font-weight: 400;
    color: var(--outline);
    line-height: 1.4;
}

/* Deny-list, not an allow-list of input[type=X] selectors — Blazor's built-in <InputText>
   component renders a bare <input> with NO type attribute at all (relying on HTML's implicit
   "text" default), so an allow-list keyed on explicit type="..." values silently missed it and
   every InputText on the site rendered as an unstyled browser-default input. This form covers any
   input type (including no type attribute) except the ones that need their own native control. */
input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=submit]):not([type=button]),
textarea,
select {
    display: block;
    width: 100%;
    margin-top: .3rem;
    padding: .55rem .7rem;
    border: 1px solid var(--outline-variant);
    border-radius: .5rem;
    font-size: 1rem;
    box-sizing: border-box;
    font-family: inherit;
    background: var(--surface);
    color: var(--on-surface);
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=submit]):not([type=button]):hover,
textarea:hover,
select:hover {
    border-color: var(--outline);
}

input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=submit]):not([type=button]):focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent);
}

select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23767267' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='5 8 10 13 15 8'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .65rem center;
    background-size: 1.1rem;
    padding-right: 2.2rem;
}

/* Syncfusion RichTextEditor — bootstrap5.css supplies the component's own structure/spacing;
   these overrides just re-skin it onto the site's own palette (border/radius/font) so it doesn't
   look like a foreign widget dropped into a themed page. Re-declared per rule with !important
   only where bootstrap5.css's own specificity would otherwise win. */
.rich-text-editor-field {
    margin-top: .3rem;
}

.rich-text-editor-field .e-richtexteditor {
    border: 1px solid var(--outline-variant);
    border-radius: .5rem;
    font-family: inherit;
    overflow: hidden;
}

.rich-text-editor-field .e-richtexteditor.e-rte-focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent);
}

.rich-text-editor-field .e-toolbar,
.rich-text-editor-field .e-rte-content,
.rich-text-editor-field .e-rte-srctextarea {
    background: var(--surface);
    color: var(--on-surface);
    border-color: var(--outline-variant);
}

.rich-text-editor-field .e-content,
.rich-text-editor-field .e-rte-placeholder {
    font-size: 1rem;
    color: var(--on-surface);
}

.rich-text-editor-field .e-toolbar .e-toolbar-item .e-tbar-btn {
    color: var(--on-surface-variant);
}

.rich-text-editor-field .e-toolbar .e-toolbar-item.e-active .e-tbar-btn,
.rich-text-editor-field .e-toolbar .e-toolbar-item .e-tbar-btn:hover {
    color: var(--primary);
}

:root[data-theme="dark"] .rich-text-editor-field .e-richtexteditor,
:root[data-theme="dark"] .rich-text-editor-field .e-toolbar,
:root[data-theme="dark"] .rich-text-editor-field .e-rte-content,
:root[data-theme="dark"] .rich-text-editor-field .e-rte-srctextarea {
    background: var(--surface);
    border-color: var(--outline-variant);
}

:root[data-theme="dark"] .rich-text-editor-field .e-toolbar .e-icons,
:root[data-theme="dark"] .rich-text-editor-field .e-toolbar .e-tbar-btn-text {
    color: var(--on-surface-variant);
}

:root[data-theme="dark"] .rich-text-editor-field .e-toolbar .e-separator {
    border-color: var(--outline-variant);
}

/* Two-column responsive layout for forms with several short fields side by side (name/genre,
   city/country, etc) — labels inside still cap at 520px individually via the base `label` rule. */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1.5rem;
    max-width: none;
}

@media (max-width: 720px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.form-grid label {
    max-width: none;
}

/* Groups a form's fields under a short heading + supporting copy — the "bad design" complaint
   root cause on NewPublisher/NewPress/NewTransport was a bare label floating with no context. */
.form-section {
    margin-bottom: 1.6rem;
    padding-bottom: 1.6rem;
    border-bottom: 1px solid var(--outline-variant);
}

.form-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.form-section-title {
    margin: 0 0 .3rem;
    font-size: 1.05rem;
}

.form-section-desc {
    margin: 0 0 1rem;
    color: var(--on-surface-variant);
    font-size: .9rem;
    max-width: 560px;
}

/* New Title's two-step "create → cover" flow, and any similar short wizard elsewhere. */
.step-indicator {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1.4rem;
}

.step-indicator-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .85rem;
    font-weight: 600;
    color: var(--outline);
}

.step-indicator-item.active {
    color: var(--primary);
}

.step-indicator-item.done {
    color: var(--on-surface-variant);
}

.step-indicator-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background: var(--surface-container);
    border: 1px solid var(--outline-variant);
    font-size: .78rem;
    flex-shrink: 0;
}

.step-indicator-item.active .step-indicator-dot {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--on-primary);
}

.step-indicator-item.done .step-indicator-dot {
    background: var(--primary-container);
    border-color: var(--primary-container);
    color: var(--on-primary-container);
}

.step-indicator-line {
    flex: 1;
    height: 1px;
    background: var(--outline-variant);
    min-width: 1.5rem;
}

/* A visible set of choices instead of a collapsed <select> — used where every option should be
   obvious at a glance without opening a dropdown first (e.g. Earnings' payout method, which hid
   Crypto/international options behind "Bank" as the collapsed default). */
.segmented-control {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: .3rem 0 1.1rem;
}

.segmented-option {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: .55rem 1rem;
    border-radius: .6rem;
    border: 1px solid var(--outline-variant);
    background: var(--surface);
    color: var(--on-surface-variant);
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    max-width: none;
    margin-bottom: 0;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.segmented-option:hover {
    border-color: var(--primary);
    color: var(--on-surface);
}

.segmented-option.active {
    background: var(--primary-container);
    border-color: var(--primary);
    color: var(--on-primary-container);
}

.segmented-option input[type=radio] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.auth-checkbox {
    display: flex !important;
    align-items: center;
    gap: .5rem;
    max-width: none;
}

/* Same shape as .auth-checkbox but a generic name for non-auth-page checkbox+label rows
   (Dashboard settings, etc.) — .auth-checkbox stays scoped to what its name implies. */
.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: .5rem;
    max-width: none;
    font-weight: 600;
}

.checkbox-label input[type=checkbox] {
    margin: 0;
}

.auth-error {
    color: var(--error);
    font-weight: 600;
}

.text-muted {
    color: var(--on-surface-variant);
}

/* Auth pages */
.auth-page {
    width: 100%;
    max-width: 420px;
}

.auth-card {
    background: rgba(255, 253, 249, 0.92);
    border: 1px solid rgba(216, 202, 181, 0.95);
    border-radius: 1.4rem;
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(16, 26, 20, 0.08);
}

.auth-card h1 {
    font-size: 1.4rem;
    margin-top: 0;
}

.auth-card .btn {
    width: 100%;
    text-align: center;
    margin-top: .5rem;
}

.auth-switch {
    margin-top: 1.25rem;
    font-size: .9rem;
    text-align: center;
    color: var(--on-surface-variant);
}

/* Icon.razor — stroke/fill both use currentColor, so every placement just sets `color` and the
   icon follows automatically; no per-instance overrides. */
.icon {
    flex-shrink: 0;
}

/* ErrorModal / ConfirmModal — same overlay/card classes as AinsReads.Web so both sites' popups
   look and behave the same. */
.app-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(11, 18, 14, 0.6);
    backdrop-filter: blur(6px);
}

.app-modal-card {
    width: min(100%, 420px);
    padding: 2rem 1.75rem;
    border-radius: 1.35rem;
    background: var(--surface);
    box-shadow: 0 24px 60px rgba(16, 26, 20, 0.22);
    border: 1px solid var(--outline-variant);
    text-align: center;
}

.app-modal-icon {
    display: inline-flex;
    justify-content: center;
    color: var(--primary);
    margin-bottom: .75rem;
    width: 100%;
}

.app-modal-icon-danger {
    color: var(--error);
}

.app-modal-card h2 {
    margin: 0 0 .6rem;
    color: var(--brand);
}

.app-modal-card p {
    color: var(--on-surface-variant);
    margin: 0 0 1.25rem;
}

.profile-card {
    padding: 1.5rem 1.6rem;
    border-radius: 1.3rem;
    background: var(--surface);
    border: 1px solid var(--outline-variant);
    box-shadow: 0 12px 30px rgba(16, 26, 20, 0.05);
    margin-bottom: 1.1rem;
    transition: box-shadow 200ms ease, border-color 200ms ease;
    animation: fade-in-up 320ms ease;
}

.profile-card:hover {
    box-shadow: 0 16px 36px rgba(16, 26, 20, 0.08);
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .tile-card, .profile-card {
        animation: none;
    }
}

/* ── Skeleton loading placeholders — a shimmering block instead of bare "Loading…" text.
   Usage: a .skeleton-line (text-width bar) or .skeleton-card (card-shaped block), sized via
   inline style or a modifier class where needed. ── */
.skeleton-line,
.skeleton-card {
    position: relative;
    overflow: hidden;
    background: var(--surface-container);
    border-radius: .5rem;
}

.skeleton-line {
    height: .95rem;
    margin-bottom: .55rem;
    border-radius: .3rem;
}

.skeleton-line.w-40 { width: 40%; }
.skeleton-line.w-60 { width: 60%; }
.skeleton-line.w-80 { width: 80%; }

.skeleton-card {
    height: 6rem;
    border-radius: 1.3rem;
    border: 1px solid var(--outline-variant);
}

.skeleton-line::after,
.skeleton-card::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

:root[data-theme="dark"] .skeleton-line::after,
:root[data-theme="dark"] .skeleton-card::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

@keyframes skeleton-shimmer {
    100% { transform: translateX(100%); }
}

@media (prefers-reduced-motion: reduce) {
    .skeleton-line::after, .skeleton-card::after {
        animation: none;
    }
}

.skeleton-block {
    padding: .2rem 0;
}

/* ── Title cards — cover thumbnail + name/genre/status, used on Dashboard's "Your titles" and
   anywhere else a compact, visual list of an author's own titles is useful. Replaces a bare
   text-only <ul> that gave titles no visual identity at all. ── */
.title-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.title-card {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: .8rem;
    border-radius: 1rem;
    border: 1px solid var(--outline-variant);
    background: var(--surface);
    text-decoration: none;
    color: inherit;
    box-shadow: 0 10px 26px rgba(16, 26, 20, 0.05);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.title-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(16, 26, 20, 0.1);
    border-color: var(--outline);
}

.title-card-cover {
    flex-shrink: 0;
    width: 3.4rem;
    height: 4.8rem;
    border-radius: .5rem;
    object-fit: cover;
    background: var(--surface-container);
}

.title-card-cover-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--outline);
    border: 1px dashed var(--outline-variant);
    box-sizing: border-box;
}

.title-card-body {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    min-width: 0;
}

.title-card-name {
    font-weight: 700;
    color: var(--on-surface);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.title-card-genre {
    font-size: .8rem;
    color: var(--on-surface-variant);
}

/* Small "you are here" trail back to the page a detail/sub-page was reached from — a consistent
   replacement for the ad-hoc "← Back to X" links each page used to phrase differently. */
.breadcrumb-link {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .85rem;
    font-weight: 600;
    color: var(--on-surface-variant);
    text-decoration: none;
    margin-bottom: .9rem;
}

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

/* Titles/Manage's header — cover thumbnail beside name/description/actions instead of a bare
   text-only heading with zero visual identity. */
.title-header {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}

.title-header-cover {
    flex-shrink: 0;
    width: 4.8rem;
    height: 6.8rem;
    border-radius: .6rem;
    object-fit: cover;
    background: var(--surface-container);
}

.title-header-body {
    flex: 1;
    min-width: 0;
}

@media (max-width: 620px) {
    .title-header {
        flex-direction: column;
    }
}

/* Rendered rich-text Description (Syncfusion WYSIWYG output) — cap heading sizes so an author who
   used H1/H2 inside a short blurb doesn't blow past the surrounding card's own type scale. */
.title-manage-desc {
    line-height: 1.6;
}

.title-manage-desc :first-child {
    margin-top: 0;
}

.title-manage-desc h1, .title-manage-desc h2, .title-manage-desc h3 {
    font-size: 1.05rem;
    margin: .8rem 0 .3rem;
}

/* ── Empty states — icon + heading + explanation + a real next step, replacing bare
   "You don't have X yet." sentences that dead-ended with no way forward. ── */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.75rem 1.5rem;
    gap: .3rem;
}

.empty-state-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.6rem;
    height: 3.6rem;
    border-radius: 50%;
    background: var(--surface-container);
    color: var(--outline);
    margin-bottom: .5rem;
}

.empty-state-title {
    margin: 0;
    font-size: 1.05rem;
    color: var(--on-surface);
}

.empty-state-desc {
    margin: 0;
    color: var(--on-surface-variant);
    max-width: 440px;
    font-size: .9rem;
    line-height: 1.5;
}

.empty-state-actions {
    margin-top: .7rem;
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* ── Global toast/snackbar system (Toast.razor + ToastService) — action confirmations that
   previously were silent (a redirect or nothing at all) now get a consistent, satisfying pop-up. ── */
.toast-stack {
    position: fixed;
    z-index: 60;
    bottom: 1.25rem;
    right: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .6rem;
    max-width: min(92vw, 360px);
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .8rem 1rem;
    border-radius: 1rem;
    background: var(--surface);
    border: 1px solid var(--outline-variant);
    box-shadow: 0 16px 40px rgba(16, 26, 20, 0.18);
    color: var(--on-surface);
    font-weight: 600;
    font-size: .9rem;
    pointer-events: auto;
    animation: toast-in 260ms ease both;
}

.toast span {
    flex: 1;
}

.toast-success {
    border-color: var(--primary);
    color: var(--on-primary-container);
    background: var(--primary-container);
}

.toast-error {
    border-color: var(--error);
    color: var(--error);
}

.toast-info {
    border-color: var(--outline-variant);
}

.toast-dismiss {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    opacity: .6;
    cursor: pointer;
}

.toast-dismiss:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.08);
}

@keyframes toast-in {
    from { opacity: 0; transform: translateY(10px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 900px) {
    .toast-stack {
        left: 1rem;
        right: 1rem;
        max-width: none;
        bottom: 1rem;
    }
}

.profile-card-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0 0 .6rem;
    font-size: 1.05rem;
}

/* ── Dashboard's proactive "Needs your attention" panel ── */
.attention-card {
    border-color: var(--secondary-container);
}

.attention-card-clear {
    display: flex;
    align-items: center;
    color: var(--on-surface-variant);
}

.attention-card-clear p {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin: 0;
    color: var(--primary);
    font-weight: 700;
}

.attention-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.attention-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .65rem 0;
    border-bottom: 1px solid var(--outline-variant);
}

.attention-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.attention-item span {
    color: var(--on-surface-variant);
    font-weight: 600;
}

.profile-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: .9rem 1.2rem;
    margin-bottom: .9rem;
}

/* Account/Profile.razor header — mirrors AinsReads.Web's .profile-header/.profile-avatar naming
   for cross-site consistency, minus the gradient-initials fallback (Web's BookCoverArt helper
   isn't ported here; a plain icon circle is used instead). */
.profile-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.profile-avatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--surface-container);
}

.profile-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--outline);
    border: 1px dashed var(--outline-variant);
    box-sizing: border-box;
}

.profile-header-body h1 {
    margin: 0 0 .2rem;
}

.profile-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .4rem;
}

.profile-badges .badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}

.profile-joined {
    color: var(--on-surface-variant);
    font-size: .84rem;
}

/* Legal / info pages (FAQ, How It Works) */
.legal-page {
    max-width: 760px;
    padding: 1rem 0 0;
}

.legal-page h1 {
    color: var(--brand);
}

.legal-page h2 {
    margin-top: 2rem;
    font-size: 1.1rem;
}

.legal-page p {
    color: var(--on-surface-variant);
    line-height: 1.7;
}

.legal-page ol, .legal-page ul {
    color: var(--on-surface-variant);
    line-height: 1.7;
    padding-left: 1.3rem;
}

.faq-item {
    margin-top: 1.5rem;
}

.faq-item h2 {
    margin-top: 0;
    margin-bottom: .35rem;
    font-size: 1rem;
    color: var(--on-surface);
}

/* Footer */
.site-footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(216, 202, 181, 0.95);
    padding: 1.5rem 1.25rem 2.25rem;
    text-align: center;
    background: rgba(255, 253, 249, 0.4);
}

.footer-logo {
    display: block;
    margin: 0 auto .75rem;
    opacity: .85;
}

.site-footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: .5rem;
    flex-wrap: wrap;
}

.site-footer a {
    color: var(--on-surface-variant);
    text-decoration: none;
    font-size: .85rem;
    font-weight: 700;
}

.site-footer .footer-copy {
    color: var(--outline);
    font-size: .8rem;
    margin: 0;
}
