/* =========================================================
   PHASE 5 HOA - "OFFICE SIGNAGE" THEME (UI revamp draft)
   Loaded LAST on every page. Restyles only; no markup, text
   or behaviour depends on it. Remove the <link> to revert.

   World: the HOA office's own signage. A flat maroon frame
   (top bar + rail) with gold lettering for "you are here",
   a quiet warm-gray wall, white panels ruled in 1px lines,
   one type family (Archivo), tabular figures.
   See docs/development/DESIGN_SYSTEM.md.
========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@62..125,400..800&display=swap");

/* ---------------------------------------------------------
   0. TOKENS - override the shared --hoa-* values.
   :root:root beats tokens.css even when app-modal.js
   injects it after this file.
--------------------------------------------------------- */
:root:root {
    --hoa-maroon-950: #2f1115;
    --hoa-maroon-900: #45191f;
    --hoa-maroon-800: #5e232b;
    --hoa-maroon-700: #6e2a33;
    --hoa-maroon-600: #82363f;
    --hoa-maroon-500: #94424c;
    --hoa-maroon-100: #f2e6e7;
    --hoa-maroon-50: #f8f1f1;
    --hoa-gold: #e3b93c;
    --hoa-gold-600: #c99d24;
    --hoa-gold-50: #fbf4df;

    /* One neutral ramp (warm gray), the only grays in use */
    --hoa-n-0: #ffffff;
    --hoa-n-50: #f9f8f6;
    --hoa-n-100: #f3f1ee;
    --hoa-n-150: #ece9e5;
    --hoa-n-200: #e3ddd8;
    --hoa-n-300: #cfc7c1;
    --hoa-n-500: #8a807b;
    --hoa-n-600: #6b625e;
    --hoa-n-800: #3a3331;
    --hoa-n-900: #221d1c;

    --hoa-ink: var(--hoa-n-900);
    --hoa-ink-2: var(--hoa-n-600);
    --hoa-ink-3: #7a716c;
    --hoa-line: var(--hoa-n-200);
    --hoa-line-strong: var(--hoa-n-300);
    --hoa-surface: var(--hoa-n-0);
    --hoa-surface-2: var(--hoa-n-50);
    --hoa-canvas: var(--hoa-n-100);

    --hoa-ok: #17673a;
    --hoa-ok-bg: #e8f4ec;
    --hoa-ok-line: #b9dbc5;
    --hoa-warn: #8a5a0c;
    --hoa-warn-bg: #fbf1dc;
    --hoa-warn-line: #ecd6a6;
    --hoa-bad: #a0262f;
    --hoa-bad-bg: #fbeaeb;
    --hoa-bad-line: #efc5c8;
    --hoa-info: #2c5a93;
    --hoa-info-bg: #e9f0f9;
    --hoa-info-line: #c3d5ec;

    --hoa-font-display: "Archivo", "Segoe UI", system-ui, sans-serif;
    --hoa-font-body: "Archivo", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

    --hoa-r-sm: 6px;
    --hoa-r-md: 8px;
    --hoa-r-lg: 12px;
    --hoa-shadow-1: 0 1px 2px rgba(34, 29, 28, .05);
    --hoa-shadow-hover: 0 2px 8px rgba(34, 29, 28, .08);
    --hoa-shadow-2: 0 18px 48px rgba(34, 18, 20, .24);
    --hoa-focus-ring: 0 0 0 3px rgba(227, 185, 60, .55);

    /* Sidebar variables used by admin.css and household-layout.css */
    --sb-bg-top: var(--hoa-maroon-800);
    --sb-bg-middle: var(--hoa-maroon-800);
    --sb-bg-bottom: var(--hoa-maroon-800);
    --sb-text: rgba(255, 255, 255, .86);
    --sb-text-muted: rgba(255, 255, 255, .62);
    --sb-hover-bg: rgba(255, 255, 255, .07);
    --sb-active-bg: var(--hoa-gold);
    --sb-active-text: var(--hoa-maroon-950);
    --sb-divider: rgba(255, 255, 255, .1);
    --sb-accent: var(--hoa-gold);
}

/* Archivo: semi-condensed for titles, normal for UI text */
.hoa-title,
:is(h1, h2, h3) {
    font-stretch: 88%;
}

/* ---------------------------------------------------------
   1. BROWSER SURFACES
--------------------------------------------------------- */
::selection {
    background: rgba(227, 185, 60, .45);
    color: var(--hoa-maroon-950);
}

html {
    accent-color: var(--hoa-maroon-700);
    scrollbar-color: var(--hoa-n-300) transparent;
    -webkit-font-smoothing: antialiased;
}

:focus-visible {
    outline: 2px solid var(--hoa-gold);
    outline-offset: 2px;
}

/* ---------------------------------------------------------
   2. PORTAL SHELL - admin, staff, household
   No photo behind working screens: a flat warm-gray wall.
--------------------------------------------------------- */
html:has(.admin-header, .household-shell-header) {
    background: var(--hoa-canvas);
}

body:has(> .admin-header, > .household-shell-header) {
    background: var(--hoa-canvas) !important;
    color: var(--hoa-ink);
    font-family: var(--hoa-font-body);
}

body:has(> .admin-header, > .household-shell-header)::before {
    display: none;
}

/* Top bar */
.site-header.admin-header,
.admin-header,
.household-shell-header.household-header,
.household-shell-header {
    border-bottom: 1px solid var(--hoa-maroon-900);
    background: var(--hoa-maroon-700);
    box-shadow: none;
    font-family: var(--hoa-font-body);
}

:is(.admin-header, .household-shell-header) :is(.brand-name, .brand-title) {
    color: #fff;
    font-family: var(--hoa-font-display);
    font-stretch: 92%;
    font-weight: 700;
    letter-spacing: .02em;
}

:is(.admin-header, .household-shell-header) :is(.brand-sub, .brand-subtitle) {
    color: rgba(255, 238, 200, .72);
    font-weight: 500;
    letter-spacing: .06em;
}

:is(.admin-header, .household-shell-header) :is(.admin-brand-logo, .brand-logo) {
    box-shadow: none;
}

:is(.admin-header, .household-shell-header) :is(.admin-menu-toggle, .menu-toggle) {
    border-radius: var(--hoa-r-sm);
}

:is(.admin-header, .household-shell-header) :is(.admin-menu-toggle, .menu-toggle):hover {
    background: rgba(255, 255, 255, .1);
}

/* Rail */
.admin-sidebar,
.household-shell-sidebar,
.household-shell-sidebar.sidebar {
    border-right: 1px solid var(--hoa-maroon-900);
    background: var(--hoa-maroon-800);
    box-shadow: none;
    font-family: var(--hoa-font-body);
}

:is(.admin-sidebar, .household-shell-sidebar) :is(.admin-sidebar-title, .sidebar-title) {
    color: rgba(227, 185, 60, .85);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
}

.admin-sidebar a,
.household-shell-sidebar .sidebar-link {
    border-radius: var(--hoa-r-sm);
    font-size: 14px;
    font-stretch: 88%;
    font-weight: 500;
}

.admin-sidebar a:hover,
.household-shell-sidebar .sidebar-link:hover {
    background: var(--sb-hover-bg);
    color: #fff;
}

/* "You are here": a gold plate with dark maroon lettering */
.admin-sidebar a.active,
.household-shell-sidebar .sidebar-link.active,
.household-shell-sidebar.sidebar .sidebar-link.active,
.household-shell-sidebar.sidebar .sidebar-link.active:hover {
    background: var(--sb-active-bg);
    color: var(--sb-active-text);
    box-shadow: none;
    font-weight: 700;
}

.household-shell-sidebar.sidebar .sidebar-link.active::before,
.admin-sidebar a.active::before {
    display: none;
}

.admin-sidebar a.active :is(svg, .admin-sidebar-icon),
.household-shell-sidebar .sidebar-link.active :is(svg, .sidebar-icon) {
    color: var(--hoa-maroon-900);
}

.admin-sidebar .admin-sidebar-count {
    background: var(--hoa-gold);
    color: var(--hoa-maroon-950);
    font-weight: 700;
}

.admin-sidebar a.active .admin-sidebar-count {
    background: var(--hoa-maroon-800);
    color: #fff;
}

:is(.admin-sidebar-footer, .sidebar-footer) {
    border-top-color: var(--sb-divider);
}

.admin-sidebar .admin-sidebar-settings {
    border: 0;
    border-radius: var(--hoa-r-sm);
    box-shadow: none;
}

/* ---------------------------------------------------------
   3. TYPE + BASE INSIDE THE WORK AREA
--------------------------------------------------------- */
:is(#adminMain, #main) {
    color: var(--hoa-ink);
    font-family: var(--hoa-font-body);
    font-variant-numeric: tabular-nums;
}

:is(#adminMain, #main) :is(h1, h2, h3, h4) {
    font-family: var(--hoa-font-display);
    letter-spacing: -.005em;
}

:is(#adminMain, #main) a:not([class]) {
    text-underline-offset: 3px;
}

/* ---------------------------------------------------------
   4. DOOR-PLATE PAGE HEADER
   Compact maroon plate, 1px gold rule set inside its edge.
--------------------------------------------------------- */
:is(#adminMain, #main) :is(.admin-page-heading, .dashboard-header, .reports-page-banner, .staff-dashboard-heading),
#main :is(.welcome-card, .page-heading, .account-heading) {
    position: relative;
    padding: 22px 28px;
    border: 0;
    border-radius: var(--hoa-r-md);
    background: var(--hoa-maroon-700);
    box-shadow: none;
    color: #fff;
    outline: 1px solid rgba(227, 185, 60, .5);
    outline-offset: -6px;
}

#main .hm-title-card .page-heading {
    outline-offset: -6px;
}

:is(#adminMain, #main) :is(.admin-page-heading, .dashboard-header, .reports-page-banner, .staff-dashboard-heading) h1,
:is(#adminMain, #main) .dashboard-header__title,
#main :is(.welcome-card, .page-heading, .account-heading) :is(h1, h2) {
    color: #fff;
    font-family: var(--hoa-font-display);
    font-size: 1.625rem;
    font-stretch: 85%;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.15;
}

:is(#adminMain, #main) :is(.admin-page-heading, .reports-page-banner, .staff-dashboard-heading) p,
:is(#adminMain, #main) .dashboard-header__subtitle,
#main :is(.welcome-card, .page-heading, .account-heading) p {
    color: rgba(255, 240, 222, .82);
    font-size: .9375rem;
}

:is(#adminMain, #main) .dashboard-header__date {
    border: 1px solid rgba(227, 185, 60, .55);
    border-radius: var(--hoa-r-sm);
    background: transparent;
    color: var(--hoa-gold);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* Billing card header uses the same plate */
:is(#adminMain, #main) .billing-management-card > .admin-announcement-card-header {
    background: var(--hoa-maroon-700);
    border-bottom: 0;
    outline: 1px solid rgba(227, 185, 60, .5);
    outline-offset: -6px;
}

:is(#adminMain, #main) .billing-management-card > .admin-announcement-card-header h2 {
    font-size: 1.625rem;
    font-stretch: 85%;
    letter-spacing: 0;
}

:is(#adminMain, #main) .billing-management-card > .admin-announcement-card-header .bill__btn--primary {
    border-color: var(--hoa-gold);
    background: var(--hoa-gold);
    color: var(--hoa-maroon-950);
}

:is(#adminMain, #main) .billing-management-card > .admin-announcement-card-header .bill__btn--primary:hover {
    border-color: #edc95a;
    background: #edc95a;
}

/* ---------------------------------------------------------
   5. PANELS - white, ruled, flat
--------------------------------------------------------- */
:is(#adminMain, #main) :is(.admin-content-card, .admin-announcement-card, .admin-complaint-card, .admin-request-card, .admin-household-card, .admin-notifications-card, .reports-page-card, .dues-overview, .activity-panel, .staff-dashboard-section),
#main :is(.dashboard-panel, .hm-card, .billing-panel, .card, .household-entry-info, .announcement-card, .empty-card, .account-card, .account-profile-card) {
    border: 1px solid var(--hoa-line);
    border-radius: var(--hoa-r-md);
    background: var(--hoa-surface);
    box-shadow: var(--hoa-shadow-1);
}

:is(#adminMain, #main) :is(.admin-content-header, .admin-announcement-card-header, .admin-complaint-card-header, .admin-request-card-header, .admin-household-card-header, .dues-overview__header),
#main :is(.dashboard-panel-header, .hm-card-header, .account-card-header, .card-header) {
    border-bottom: 1px solid var(--hoa-line);
    background: var(--hoa-surface);
}

:is(#adminMain, #main) :is(.admin-content-header, .admin-announcement-card-header, .admin-complaint-card-header, .admin-request-card-header, .admin-household-card-header, .dues-overview__header, .reports-card-heading) :is(h2, h3),
:is(#adminMain, #main) :is(.activity-panel, .staff-dashboard-section) h2,
:is(#adminMain, #main) .staff-dashboard-section-heading,
#main :is(.dashboard-panel-header, .hm-card-header, .account-card-header, .card-header) :is(h2, h3),
#main :is(.billing-panel, .card, .household-entry-info) > :is(h2, h3) {
    color: var(--hoa-n-900);
    font-family: var(--hoa-font-display);
    font-size: 1.125rem;
    font-stretch: 90%;
    font-weight: 700;
    letter-spacing: 0;
}

/* Eyebrow kickers above headings are removed from view */
#main :is(.household-entry-info-kicker, .dashboard-panel-kicker),
#main .dashboard-panel-header .eyebrow {
    display: none;
}

/* ---------------------------------------------------------
   6. STAT CARDS - figure first, no lift, no icon tiles
--------------------------------------------------------- */
:is(#adminMain, #main) :is(.stat-card, .hh-summary-card, .bill__kpi, .reports-kpi-card, .staff-stat-card),
#main :is(.dashboard-summary-card, .billing-summary-card, .account-summary-tile) {
    border: 1px solid var(--hoa-line);
    border-radius: var(--hoa-r-md);
    background: var(--hoa-surface);
    box-shadow: var(--hoa-shadow-1);
    transform: none;
}

:is(#adminMain, #main) .stat-card:hover,
#main :is(a.dashboard-summary-card, a.account-summary-tile):hover {
    border-color: var(--hoa-line-strong);
    box-shadow: var(--hoa-shadow-hover);
    transform: none;
}

:is(#adminMain, #main) :is(.stat-card__value, .bill__kpivalue, .staff-stat-value),
:is(#adminMain, #main) :is(.hh-summary-card, .reports-kpi-card) > strong,
:is(#adminMain, #main) .dues-overview .dues-kpi > strong,
#main :is(.dashboard-summary-card, .billing-summary-card) > strong,
#main .account-summary-value {
    font-family: var(--hoa-font-display);
    font-stretch: 85%;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
}

:is(#adminMain, #main) .stat-card__badge,
#main :is(.dashboard-summary-icon, .account-summary-icon) {
    border-radius: var(--hoa-r-sm);
    background: var(--hoa-n-100);
    color: var(--hoa-maroon-700);
}

/* ---------------------------------------------------------
   7. TABLES - ruled ledger, right-aligned figures
--------------------------------------------------------- */
:is(#adminMain, #main) table {
    font-variant-numeric: tabular-nums;
}

:is(#adminMain, #main) table th {
    border-bottom: 1px solid var(--hoa-line-strong);
    background: var(--hoa-n-50);
    color: var(--hoa-n-600);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
}

:is(#adminMain, #main) table td {
    border-bottom: 1px solid var(--hoa-n-150);
    color: var(--hoa-ink);
}

:is(#adminMain, #main) table tbody tr:hover > td {
    background: var(--hoa-n-50);
}

:is(#adminMain, #main) table tbody tr:last-child > td {
    border-bottom: 0;
}

/* ---------------------------------------------------------
   8. BUTTONS
--------------------------------------------------------- */
:is(#adminMain, #main) :is(.small-button, .bill__btn, .admin-review-action, .resident-action, .hh-action-button, .admin-household-action, .account-view-button, .account-deactivate-button, .action-view, .action-edit, .action-print, .action-download, .print-button, .portal-button, .reports-action-button, .quick-action, .staff-module-action),
#main :is(.submit-button, .account-button, .hm-rbi-primary-button) {
    border-radius: var(--hoa-r-sm);
    font-family: var(--hoa-font-body);
    font-weight: 600;
    box-shadow: none;
}

/* Solid primary actions: maroon, no glow */
:is(#adminMain, #main) .quick-action--primary,
:is(#adminMain, #main) :is(.admin-add-button, .add-resident-button, .primary-button, .btn-primary),
#main :is(.submit-button, .account-button, .hm-rbi-primary-button),
#main .household-shell-content .card button[type="submit"],
.ui-btn--primary {
    border: 1px solid var(--hoa-maroon-700);
    background: var(--hoa-maroon-700);
    color: #fff;
    box-shadow: none;
}

:is(#adminMain, #main) .quick-action--primary:hover,
:is(#adminMain, #main) :is(.admin-add-button, .add-resident-button, .primary-button, .btn-primary):hover,
#main :is(.submit-button, .account-button, .hm-rbi-primary-button):hover,
#main .household-shell-content .card button[type="submit"]:hover,
.ui-btn--primary:hover {
    border-color: var(--hoa-maroon-900);
    background: var(--hoa-maroon-900);
    transform: none;
}

/* Row actions: neutral outline */
:is(#adminMain, #main) :is(.admin-row-action, .hh-action-button, .resident-action, .account-view-button, .bill__btn--view, .bill__btn--remind, .bill__btn--print) {
    border-color: var(--hoa-line-strong);
    color: var(--hoa-n-800);
}

:is(#adminMain, #main) :is(.admin-row-action, .hh-action-button, .resident-action, .account-view-button, .bill__btn--view, .bill__btn--remind, .bill__btn--print):hover {
    border-color: var(--hoa-maroon-700);
    background: var(--hoa-surface);
    color: var(--hoa-maroon-700);
}

/* ---------------------------------------------------------
   9. FORM CONTROLS
--------------------------------------------------------- */
:is(#adminMain, #main, dialog) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]), select, textarea) {
    border-color: var(--hoa-line-strong);
    border-radius: var(--hoa-r-sm);
    background-color: var(--hoa-surface);
    color: var(--hoa-ink);
    box-shadow: none;
    font-family: var(--hoa-font-body);
}

:is(#adminMain, #main, dialog) :is(input, select, textarea):focus {
    border-color: var(--hoa-maroon-700);
    box-shadow: 0 0 0 3px rgba(110, 42, 51, .14);
    outline: none;
}

:is(#adminMain, #main, dialog) ::placeholder {
    color: var(--hoa-n-500);
}

/* ---------------------------------------------------------
   10. STATUS TAGS - small tinted tags, squared
--------------------------------------------------------- */
:is(#adminMain, #main) :is(.status-pill, .registration_status, .admin-request-status, .admin-complaint-status, .account-status-badge, .billing-status, .admin-announcement-status, .hh-status-pill, .dues-status-pill, .reports-status-pill, .dashboard-status-pill, .admin-dashboard-item-status, .dashboard-activity-status, .activity-item__status),
.ui-badge {
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: .01em;
}

/* Filter chips (Recent activity) */
:is(#adminMain, #main) :is(.activity-filter, .filter-chip, .activity-panel .chip, .activity-filters button) {
    border-radius: var(--hoa-r-sm);
}

/* ---------------------------------------------------------
   11. DIALOGS
--------------------------------------------------------- */
:root :is(.account-view-dialog, .admin-announcement-dialog, .admin-review-dialog, .bill__drawer, .billing-dialog, .household-detail-dialog, .pending-dialog, .resident-dialog, .rbi-info-dialog, .logout-confirmation, .ui-modal) {
    border-radius: var(--hoa-r-lg);
    font-family: var(--hoa-font-body);
}

:root :is(.account-view-dialog, .admin-announcement-dialog, .admin-review-dialog, .bill__drawer, .billing-dialog, .household-detail-dialog, .pending-dialog, .resident-dialog, .rbi-info-dialog, .logout-confirmation, .ui-modal)::backdrop {
    background: rgba(34, 18, 20, .5);
    backdrop-filter: none;
}

:root .modal-close-circle {
    border-radius: var(--hoa-r-sm);
    background: var(--hoa-n-100);
}

/* ---------------------------------------------------------
   12. PUBLIC PAGES - header bar shared by login, register, etc.
--------------------------------------------------------- */
body,
button,
input,
select,
textarea {
    font-family: var(--hoa-font-body);
}

.public-auth-header,
.public-navbar {
    background: var(--hoa-maroon-700);
    border-bottom: 1px solid var(--hoa-maroon-900);
    box-shadow: none;
}

/* ---------------------------------------------------------
   14. LANDING PAGE (index.php)
   The real office photo stays; ornament (roads, waves,
   circles, pins, dot grids, glows) is removed.
--------------------------------------------------------- */
body:has(.public-site) {
    background: var(--hoa-n-0);
    color: var(--hoa-ink);
}

.public-navbar .brand-name,
.public-navbar .public-nav-links a {
    font-family: var(--hoa-font-display);
    letter-spacing: .06em;
}

.public-navbar .public-nav-links a {
    font-size: 13px;
    font-weight: 600;
}

.public-navbar .public-nav-links a:not(.nav-button)::after {
    background: var(--hoa-gold);
}

.public-navbar .public-nav-links .nav-button,
.public-navbar .public-nav-links .nav-button[href="login.php"] {
    border: 1px solid var(--hoa-gold);
    border-radius: var(--hoa-r-sm);
    background: var(--hoa-gold);
    color: var(--hoa-maroon-950);
    box-shadow: none;
}

.public-navbar .public-nav-links .nav-button:hover,
.public-navbar .public-nav-links .nav-button[href="login.php"]:hover {
    border-color: #edc95a;
    background: #edc95a;
    color: var(--hoa-maroon-950);
    transform: none;
}

/* Hero: the office photo, full bleed, softened under a maroon wash.
   The image is blurred and slowly drifts; the wash is strongest behind the
   text column so the copy keeps full contrast. Grain keeps the wash from
   looking like a flat gradient. */
.hero-section {
    height: auto;
    min-height: 560px;
    padding-top: 72px;
    background: var(--hoa-maroon-900);
}

.hero-section .hero-text {
    max-width: 600px;
}

.hero-section::after,
.hero-section .hero-left-panel,
.hero-section .hero-left-panel::after,
.hero-section .hero-diagonal {
    display: none;
}

/* Clips the blurred, drifting photo to the hero box while the feature
   strip is still free to hang over the hero's lower edge. */
.hero-section > .hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-section .hero-background {
    z-index: 0;
    object-position: center 40%;
    filter: blur(7px) brightness(.7) saturate(.75);
    transform: scale(1.12);
    animation: hoa-hero-drift 36s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes hoa-hero-drift {
    from { transform: scale(1.12) translate3d(0, 0, 0); }
    to   { transform: scale(1.2) translate3d(-1.5%, -1%, 0); }
}

.hero-section > .hero-overlay {
    display: block;
    z-index: 1;
    background:
        linear-gradient(90deg,
            rgba(47, 17, 21, .94) 0%,
            rgba(58, 21, 27, .88) 34%,
            rgba(69, 25, 31, .66) 62%,
            rgba(69, 25, 31, .48) 100%),
        linear-gradient(180deg,
            rgba(47, 17, 21, .35) 0%,
            rgba(47, 17, 21, 0) 30%,
            rgba(47, 17, 21, 0) 70%,
            rgba(47, 17, 21, .55) 100%);
}

/* Fine film grain + a hairline of gold at the foot of the photo */
.hero-section > .hero-overlay::before,
.hero-section > .hero-overlay::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.hero-section > .hero-overlay::before {
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: .09;
    mix-blend-mode: overlay;
}

.hero-section > .hero-overlay::after {
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: rgba(227, 185, 60, .55);
}

.hero-section .hero-content {
    z-index: 2;
}

@media (max-width: 900px) {
    .hero-section > .hero-overlay {
        background:
            linear-gradient(180deg,
                rgba(69, 25, 31, .7) 0%,
                rgba(58, 21, 27, .84) 45%,
                rgba(47, 17, 21, .95) 100%);
    }

    .hero-section .hero-background {
        object-position: 62% center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-section .hero-background {
        animation: none;
    }
}

.hero-welcome {
    display: none;
}

.hero-text h1 {
    color: #fff;
    font-family: var(--hoa-font-display);
    font-size: clamp(2.25rem, 3.4vw, 3.25rem);
    font-stretch: 78%;
    font-weight: 800;
    letter-spacing: -.005em;
    line-height: 1;
    text-shadow: none;
}

.hero-text h1 .hero-association-title {
    color: var(--hoa-gold);
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    background: none;
    -webkit-text-fill-color: currentColor;
}

.hero-supporting-copy h2 {
    margin-top: 18px;
    color: #fff;
    font-family: var(--hoa-font-display);
    font-size: 1.25rem;
    font-stretch: 100%;
    font-weight: 600;
}

.hero-location {
    border-left: 0;
    padding-left: 0;
}

.hero-location strong {
    color: #fff;
}

.hero-location span,
.hero-description {
    color: rgba(255, 240, 222, .8);
}

.hero-description {
    max-width: 52ch;
    font-size: 15px;
    line-height: 1.6;
}

.hero-button.primary,
.hero-button.secondary {
    min-height: 52px;
    border: 1px solid var(--hoa-gold);
    border-radius: var(--hoa-r-sm);
    background: var(--hoa-gold);
    color: var(--hoa-maroon-950);
    box-shadow: none;
    font-family: var(--hoa-font-display);
    letter-spacing: .06em;
}

.hero-button.primary:hover {
    background: #edc95a;
    transform: none;
    box-shadow: none;
}

.hero-button.primary small {
    color: rgba(47, 17, 21, .72);
    letter-spacing: 0;
}

.hero-button-arrow {
    border-radius: var(--hoa-r-sm);
    background: var(--hoa-maroon-700);
    color: #fff;
}


/* Feature strip: one ruled bar, not a row of icon cards */
.hero-features.scroll-reveal {
    border: 1px solid var(--hoa-line);
    border-radius: var(--hoa-r-md);
    background: #fff;
    box-shadow: 0 8px 24px rgba(34, 29, 28, .08);
}

.hero-features.scroll-reveal::before,
.feature-item::before,
.feature-text strong::after {
    display: none;
}

.feature-item {
    background: transparent;
    box-shadow: none;
}

.feature-item + .feature-item {
    border-left: 1px solid var(--hoa-line);
}

.feature-icon {
    border-radius: var(--hoa-r-sm);
    background: var(--hoa-maroon-50);
    color: var(--hoa-maroon-700);
    box-shadow: none;
}

.feature-text strong {
    color: var(--hoa-n-900);
    font-family: var(--hoa-font-display);
    font-size: 15px;
}

.feature-text span {
    color: var(--hoa-n-600);
    font-size: 14px;
}

/* Mobile feature block (landing) */
.feat-m-eye,
.feat-m-card::before {
    display: none;
}

.feat-m-h {
    color: var(--hoa-maroon-700);
    font-family: var(--hoa-font-display);
    font-stretch: 82%;
    font-weight: 800;
}

.feat-m-card {
    border: 1px solid var(--hoa-line);
    border-radius: var(--hoa-r-md);
    background: #fff;
    box-shadow: none;
}

.feat-m-ic {
    border-radius: var(--hoa-r-sm);
    background: var(--hoa-maroon-50);
    color: var(--hoa-maroon-700);
}

/* About */
.about {
    background: var(--hoa-n-0);
}

.about > .map,
.about > .wave,
.about .photo .frame,
.about-eyebrow,
.about-title-rule {
    display: none;
}

.about .about-inner {
    padding-top: 120px;
    padding-bottom: 96px;
}

.about .about-title {
    margin: 0 0 20px;
    color: var(--hoa-maroon-700);
    font-family: var(--hoa-font-display);
    font-size: 2.5rem;
    font-stretch: 82%;
    font-weight: 800;
    line-height: 1.05;
}

.about .about-subtitle {
    margin: 28px 0 8px;
    color: var(--hoa-n-900);
    font-family: var(--hoa-font-display);
    font-size: 1.25rem;
    font-weight: 700;
}

.about .about-copy {
    max-width: 62ch;
    color: var(--hoa-n-800);
    font-size: 16px;
    line-height: 1.65;
}

.about .about-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 28px;
    border-top: 1px solid var(--hoa-line);
}

.about .stat {
    min-width: 200px;
    padding: 14px 24px 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.about .stat .stat-label {
    color: var(--hoa-gold-600);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
}

.about .stat .stat-value {
    margin-top: 2px;
    color: var(--hoa-n-900);
    font-size: 16px;
    font-weight: 600;
}

.about .photo img {
    border-radius: var(--hoa-r-md);
    box-shadow: none;
}

.about .photo .chip {
    border-radius: var(--hoa-r-sm);
    background: var(--hoa-maroon-700);
    box-shadow: none;
    outline: 1px solid rgba(227, 185, 60, .5);
    outline-offset: -4px;
}

.about .photo .chip .chip-title {
    font-family: var(--hoa-font-display);
    font-size: 16px;
    font-weight: 700;
}

.about .photo .chip .chip-sub {
    color: var(--hoa-gold);
    font-size: 12px;
    letter-spacing: .08em;
}

.about .mv {
    gap: 0;
    border-top: 1px solid var(--hoa-line);
    border-bottom: 1px solid var(--hoa-line);
}

.about .mcard {
    padding: 28px 32px 28px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.about .mcard + .mcard {
    padding-left: 32px;
    border-left: 1px solid var(--hoa-line);
}

.about .mcard .mi {
    border-radius: var(--hoa-r-sm);
    background: var(--hoa-maroon-700);
    color: var(--hoa-gold);
    box-shadow: none;
}

.about .mcard h3 {
    color: var(--hoa-maroon-700);
    font-family: var(--hoa-font-display);
    font-size: 1.25rem;
    font-weight: 700;
}

.about .mcard p {
    color: var(--hoa-n-800);
    font-size: 15px;
    line-height: 1.6;
}

/* Announcements */
.announcements-section {
    padding-top: 88px;
    padding-bottom: 96px;
    background: var(--hoa-n-100);
    background-image: none;
}

.announcement-decoration,
.announcement-wave,
.announcement-eyebrow,
.announcement-card::before,
.announcement-card::after {
    display: none;
}

.public-section-title {
    color: var(--hoa-maroon-700);
    font-family: var(--hoa-font-display);
    font-size: 2.5rem;
    font-stretch: 82%;
    font-weight: 800;
    letter-spacing: 0;
}

.public-section-title::after,
.public-section-title::before {
    display: none;
}

.public-section-subtitle {
    color: var(--hoa-n-600);
    font-size: 16px;
}

.announcement-card {
    border: 1px solid var(--hoa-line);
    border-radius: var(--hoa-r-md);
    background: #fff;
    box-shadow: var(--hoa-shadow-1);
}

.announcement-card:hover {
    border-color: var(--hoa-line-strong);
    box-shadow: var(--hoa-shadow-hover);
    transform: none;
}

.announcements-section .public-section-title,
.contact-heading h2,
.about .mcard h3 {
    font-family: var(--hoa-font-display);
}

.announcement-card h3 {
    color: var(--hoa-n-900);
    font-family: var(--hoa-font-display);
    font-weight: 700;
}

.announcement-card-photo {
    border-radius: var(--hoa-r-sm);
}

.announcement-category-icon {
    border-radius: var(--hoa-r-sm);
    background: var(--hoa-maroon-50);
}

.announcement-badge {
    border-radius: 4px;
}

.announcement-carousel-control {
    border: 1px solid var(--hoa-line-strong);
    border-radius: var(--hoa-r-sm);
    background: #fff;
    box-shadow: none;
}

.announcement-carousel-control:hover {
    border-color: var(--hoa-maroon-700);
    color: var(--hoa-maroon-700);
}

/* Contact: flat maroon field */
.contact-section {
    min-height: 0;
    padding-top: 96px;
    padding-bottom: 96px;
    background: var(--hoa-maroon-700);
    background-image: none;
}

.contact-decoration,
.contact-houses,
.contact-eyebrow,
.contact-heading-rule {
    display: none;
}

.contact-heading h2 {
    color: #fff;
    font-family: var(--hoa-font-display);
    font-size: 2.5rem;
    font-stretch: 82%;
    font-weight: 800;
}

.contact-heading p {
    color: rgba(255, 240, 222, .82);
}

.contact-card,
.contact-concern {
    border: 0;
    border-radius: var(--hoa-r-md);
    background: #fff;
    box-shadow: none;
}

.contact-card h3 {
    color: var(--hoa-maroon-700);
    font-family: var(--hoa-font-display);
    font-weight: 700;
}

.contact-detail-icon {
    border-radius: var(--hoa-r-sm);
    background: var(--hoa-maroon-50);
}

.contact-login-button {
    border-radius: var(--hoa-r-sm);
    background: var(--hoa-maroon-700);
    box-shadow: none;
}

.public-footer {
    border-top: 1px solid rgba(227, 185, 60, .45);
    background: var(--hoa-maroon-950);
}

.public-footer .footer-title {
    font-family: var(--hoa-font-display);
    letter-spacing: .06em;
}

/* ---------------------------------------------------------
   15. AUTH + REGISTRATION (login, forgot, reset, register)
   Office photo stays, held under a maroon wash so the form
   reads first.
--------------------------------------------------------- */
body:has(> .public-auth-header)::before,
body:has(.public-auth-header)::before {
    background:
        linear-gradient(rgba(47, 17, 21, .62), rgba(47, 17, 21, .62)),
        url("../image/HOAOFFICE.jpg") center / cover no-repeat;
    filter: blur(2px) saturate(.85);
}

.public-auth-header.header::after {
    display: none;
}

.public-auth-header .public-auth-brand-title {
    font-family: var(--hoa-font-display);
    font-stretch: 92%;
    font-weight: 700;
    letter-spacing: .02em;
}

.public-auth-header .public-auth-brand-subtitle {
    color: rgba(255, 238, 200, .72);
}

.public-auth-header .header-link {
    border: 1px solid rgba(227, 185, 60, .7);
    border-radius: var(--hoa-r-sm);
    background: transparent;
    color: var(--hoa-gold);
    box-shadow: none;
}

.public-auth-header .header-link:hover {
    border-color: var(--hoa-gold);
    background: var(--hoa-gold);
    color: var(--hoa-maroon-950);
    transform: none;
}

.login-card,
body:has(.public-auth-header) .registration-form-panel {
    border: 0;
    border-radius: var(--hoa-r-lg);
    background: #fff;
    box-shadow: 0 24px 64px rgba(20, 6, 9, .35);
    backdrop-filter: none;
}

.login-title,
body:has(.public-auth-header) :is(h1, h2, .subsection-title, .member-title) {
    color: var(--hoa-maroon-800);
    font-family: var(--hoa-font-display);
    font-stretch: 85%;
    font-weight: 800;
    letter-spacing: 0;
}

.login-subtitle {
    color: var(--hoa-n-600);
}

body:has(.public-auth-header) label {
    color: var(--hoa-n-900);
    font-weight: 600;
}

body:has(.public-auth-header) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea) {
    border: 1px solid var(--hoa-line-strong);
    border-radius: var(--hoa-r-sm);
    background: #fff;
    box-shadow: none;
}

body:has(.public-auth-header) :is(input, select, textarea):focus {
    border-color: var(--hoa-maroon-700);
    box-shadow: 0 0 0 3px rgba(110, 42, 51, .14);
    outline: none;
}

.login-button,
body:has(.public-auth-header) .submit-button,
body:has(.public-auth-header) button[type="submit"] {
    border: 1px solid var(--hoa-maroon-700);
    border-radius: var(--hoa-r-sm);
    background: var(--hoa-maroon-700);
    color: #fff;
    box-shadow: none;
    font-family: var(--hoa-font-display);
    font-weight: 700;
    letter-spacing: .02em;
}

.login-button:hover,
body:has(.public-auth-header) .submit-button:hover,
body:has(.public-auth-header) button[type="submit"]:hover {
    border-color: var(--hoa-maroon-900);
    background: var(--hoa-maroon-900);
    box-shadow: none;
    transform: none;
}

body:has(.public-auth-header) :is(.forgot-password, .register-section a, .login-link a, .login-link) {
    color: var(--hoa-maroon-700);
    text-underline-offset: 3px;
}

body:has(.public-auth-header) .footer {
    border-top: 1px solid rgba(227, 185, 60, .35);
    background: var(--hoa-maroon-950);
    backdrop-filter: none;
}

/* ---------------------------------------------------------
   16. ACTIVE / SELECTED STATES - maroon, never green.
   Green is kept for "Paid / Resolved / Approved" only.
--------------------------------------------------------- */
:is(#adminMain, #main) .admin-section-tabs a.active,
body .admin-main .admin-section-tabs--attached a.active,
body .admin-main .documents-tabs a.active,
body .admin-main .resident-archive-tab.active,
:is(#adminMain, #main) .dues-range-tabs a.is-active,
:is(#adminMain, #main) .activity-filter.is-active,
:is(#adminMain, #main) .account-filter-buttons .account-filter-button.active,
#main .household-section-tabs a.active {
    border-color: var(--hoa-maroon-700);
    background: var(--hoa-maroon-700);
    color: #fff;
    box-shadow: none;
}

:is(#adminMain, #main) .admin-section-tabs a,
:is(#adminMain, #main) .dues-range-tabs a,
:is(#adminMain, #main) .activity-filter,
:is(#adminMain, #main) .account-filter-buttons .account-filter-button,
#main .household-section-tabs a {
    border-radius: var(--hoa-r-sm);
}

.reports-page .report-menu-actions .reports-action-button.reports-action-primary {
    border-color: var(--hoa-maroon-700);
    background: var(--hoa-maroon-700);
    color: #fff;
}

.reports-page .reports-range-preset {
    border-radius: var(--hoa-r-sm);
}

/* Dates on plates */
:is(#adminMain, #main) .staff-dashboard-date {
    border: 1px solid rgba(227, 185, 60, .55);
    border-radius: var(--hoa-r-sm);
    background: transparent;
    color: var(--hoa-gold);
}

/* ---------------------------------------------------------
   17. NO SIDE BARS - full borders or tints instead
--------------------------------------------------------- */
:is(#adminMain, #main) .staff-section-intro {
    padding-left: 0;
    border-left: 0;
}

:is(#adminMain, #main) .staff-suggestion {
    border: 1px solid var(--hoa-warn-line);
    border-radius: var(--hoa-r-md);
    background: var(--hoa-warn-bg);
}

:is(#adminMain, #main) .staff-access-note {
    color: var(--hoa-ink-2);
}

#main .hm-rbi-banner {
    border: 1px solid rgba(227, 185, 60, .6);
    border-radius: var(--hoa-r-md);
    background: var(--hoa-maroon-700);
    box-shadow: none;
}

/* RBI reminder card (household_rbi_notice.php prints its own
   <style> in <body>, so these rules carry html body for weight) */
html body .rbi-notice-card {
    border: 1px solid var(--hoa-line);
    border-radius: var(--hoa-r-lg);
    background: #fff;
    box-shadow: var(--hoa-shadow-2);
    font-family: var(--hoa-font-body);
}

html body .rbi-notice-card h2 {
    color: var(--hoa-maroon-800);
    font-family: var(--hoa-font-display);
    font-stretch: 88%;
}

html body .rbi-notice-instruction {
    border: 1px solid var(--hoa-warn-line);
    border-radius: var(--hoa-r-sm);
    background: var(--hoa-warn-bg);
    color: var(--hoa-warn);
}

html body .rbi-notice-action {
    border: 1px solid var(--hoa-maroon-700);
    border-radius: var(--hoa-r-sm);
    background: var(--hoa-maroon-700);
    color: #fff;
    box-shadow: none;
}

html body .rbi-notice-action:hover {
    background: var(--hoa-maroon-900);
}

html body .rbi-notice-info {
    border: 1px solid var(--hoa-line-strong);
    border-radius: var(--hoa-r-sm);
    background: #fff;
    color: var(--hoa-maroon-700);
}

html body .rbi-notice-tab {
    border-radius: var(--hoa-r-sm);
    background: var(--hoa-gold);
    color: var(--hoa-maroon-950);
}

/* ---------------------------------------------------------
   18. REVIEW FIXES
--------------------------------------------------------- */
/* Dues "unpaid/outstanding" orange -> the world's warning tone */
:root:root {
    --dues-orange: var(--hoa-warn);
    --dues-amber: var(--hoa-gold-600);
}

.reports-trend-icon {
    display: inline-block;
    vertical-align: -1px;
}

/* Collection-rate ring: paid = the positive green, balance = maroon */
:is(#adminMain, #main) .dues-chart-legend .dues-dot--gold,
:is(#adminMain, #main) .dues-donut-legend .dues-dot--gold {
    background: var(--hoa-ok);
}

:is(#adminMain, #main) .dues-donut__value {
    stroke: var(--hoa-ok);
}

:is(#adminMain, #main) .dues-bar--collected {
    fill: var(--hoa-ok);
    background: var(--hoa-ok);
}

/* Kicker labels above staff work-area titles */
:is(#adminMain, #main) .staff-module-eyebrow {
    display: none;
}

:is(#adminMain, #main) .staff-stat-icon {
    display: grid;
    place-items: center;
    border-radius: var(--hoa-r-sm);
    background: var(--hoa-n-100);
    color: var(--hoa-maroon-700);
}

/* Reports quick ranges sit on the maroon plate: active = gold plate */
html body .reports-page .reports-range-preset {
    border-radius: var(--hoa-r-sm);
}

html body .reports-page .reports-range-preset.is-active {
    border-color: var(--hoa-gold);
    background: var(--hoa-gold);
    color: var(--hoa-maroon-950);
}

/* Dashboard activity search: one border, not two */
:is(#adminMain, #main) .activity-search input {
    border: 0;
    box-shadow: none;
}

:is(#adminMain, #main) .activity-search:focus-within {
    border-color: var(--hoa-maroon-700);
    box-shadow: 0 0 0 3px rgba(110, 42, 51, .14);
}

/* Billing: plate stands on the wall like every other page;
   row actions compact (they may wrap; the cell never clips) */
:is(#adminMain, #main) .billing-page {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

:is(#adminMain, #main) .bill__rowact {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

:is(#adminMain, #main) .bill__rowact .bill__btn {
    min-height: 32px;
    padding: 0 9px;
    font-size: 13px;
    white-space: nowrap;
}

/* Tighter ledger cells so the three row actions fit on one line */
:is(#adminMain, #main) .billing-management-card table :is(th, td) {
    padding-right: 8px;
    padding-left: 8px;
}

:is(#adminMain, #main) .billing-management-card table th {
    letter-spacing: .03em;
}

/* Column split: give the actions column room for one line */
.admin-main .bill .bill__table th:nth-child(1) { width: 11%; }
.admin-main .bill .bill__table th:nth-child(2) { width: 13%; }
.admin-main .bill .bill__table th:nth-child(3) { width: 10%; }
.admin-main .bill .bill__table th:nth-child(4) { width: 9%; }
.admin-main .bill .bill__table th:nth-child(5),
.admin-main .bill .bill__table th:nth-child(6),
.admin-main .bill .bill__table th:nth-child(7) { width: 7%; }
.admin-main .bill .bill__table th:nth-child(8) { width: 8%; }
.admin-main .bill .bill__table th:nth-child(9) { width: 28%; }

.admin-main .bill .bill__table td:first-child {
    white-space: nowrap;
    overflow-wrap: normal;
}

:is(#adminMain, #main) .bill__rowact .bill__btn svg {
    display: none;
}

/* Landing feature-bar dividers: straight rules */
.feature-item {
    border-radius: 0;
}

.feature-icon svg {
    display: block;
}

/* Nothing under 12px */
.hero-button.primary small,
.hero-button-label small {
    font-size: 12px;
}

:is(#adminMain, #main) :is(.dues-panel, .activity-panel, .dues-household-status) :is(small, .muted, span) {
    font-size: max(12px, 1em);
}

/* Dashboard SVG chart: axis text in viewBox units (~12px rendered) */
:is(#adminMain, #main) :is(.dues-bar-chart__axis, .dues-bar-chart__month) {
    font-family: var(--hoa-font-body);
    font-size: 14px;
    fill: var(--hoa-n-600);
}

:is(#adminMain, #main) .dues-chart-legend {
    font-size: 13px;
}

/* Narrow phones: association name wraps instead of truncating */
@media (max-width: 480px) {
    .site-header.admin-header .admin-header-left,
    .site-header.dashboard-home-header .admin-header-left {
        flex: 1 1 auto;
        min-width: 0;
        max-width: none;
    }

    .site-header.admin-header .admin-user {
        flex: 0 0 auto;
        margin-left: 12px;
    }

    .admin-header .admin-brand-text {
        min-width: 0;
        overflow: hidden;
    }

    .admin-header .admin-brand-logo {
        width: 32px;
        height: 32px;
    }

    .site-header.admin-header .admin-header-left {
        gap: 6px;
    }

    .admin-header .admin-brand-text .brand-name {
        overflow: visible;
        font-size: 12px;
        font-stretch: 64%;
        letter-spacing: 0;
        white-space: normal;
        text-overflow: clip;
        line-height: 1.2;
    }

    .admin-header .admin-brand-text .brand-sub,
    .public-navbar .public-brand-text .brand-sub {
        display: none;
    }
}

/* ---------------------------------------------------------
   13. MOTION
--------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}

/* =========================================================
   19. Icons (Hugeicons, stroke-rounded) — see App\Support\Icon
   ========================================================= */
.hoa-icon {
    display: inline-block;
    flex: none;
    width: 1.25em;
    height: 1.25em;
    vertical-align: -.25em;
}

.hoa-icon--inline {
    width: 1.05em;
    height: 1.05em;
    vertical-align: -.2em;
}

.admin-menu-toggle .hoa-icon {
    width: 22px;
    height: 22px;
}

/* Close buttons that used to hold a × glyph */
.modal-close-circle .hoa-icon,
.resident-dialog-close .hoa-icon,
.mobile-menu-close .hoa-icon,
.account-crop-close .hoa-icon,
.rbi-notice-close .hoa-icon,
.hoa-toast__close .hoa-icon,
.hoa-toast__close svg {
    width: 18px;
    height: 18px;
    vertical-align: middle;
}

.quick-action__icon .hoa-icon,
.staff-suggestion-icon .hoa-icon,
.hero-button-arrow .hoa-icon {
    width: 18px;
    height: 18px;
    vertical-align: middle;
}

.reports-insights-list span .hoa-icon {
    width: 16px;
    height: 16px;
    color: var(--hoa-maroon-700);
}

.app-modal-icon svg {
    width: 26px;
    height: 26px;
}

.admin-review-step-dot svg,
.household-record-progress-dot svg {
    width: 70%;
    height: 70%;
}

.hm-rbi-member-state .hoa-icon {
    margin-right: 2px;
}

/* =========================================================
   20. Empty states — one pattern for every list, table and panel
   ========================================================= */
.hoa-empty.hoa-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin: 0;
    padding: 40px 24px;
    border: 1px dashed var(--hoa-line);
    border-radius: var(--hoa-r-md);
    background: var(--hoa-n-50, #faf9f7);
    box-shadow: none;
    color: var(--hoa-ink-2, #5c5452);
    font-size: 14px;
    font-style: normal;
    line-height: 1.5;
    text-align: center;
}

.hoa-empty .hoa-empty__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0 0 6px;
    padding: 0;
    border: 1px solid var(--hoa-line);
    border-radius: 50%;
    background: #fff;
    color: var(--hoa-maroon-700);
    font-size: 0;
    box-shadow: none;
}

.hoa-empty .hoa-empty__icon svg,
.hoa-empty .hoa-empty__icon .hoa-icon {
    width: 24px;
    height: 24px;
}

.hoa-empty .hoa-empty__title {
    display: block;
    margin: 0;
    color: var(--hoa-ink, #221d1c);
    font-family: var(--hoa-font-display);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.hoa-empty .hoa-empty__hint {
    display: block;
    max-width: 46ch;
    margin: 0;
    color: var(--hoa-ink-2, #5c5452);
    font-size: 14px;
}

.hoa-empty .hoa-empty__action {
    margin-top: 10px;
    color: var(--hoa-maroon-700);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Inside table cells the cell already frames it */
td > .hoa-empty.hoa-empty,
.admin-table-no-match td > .hoa-empty.hoa-empty {
    border: 0;
    background: transparent;
    padding: 36px 16px;
}

td:has(> .hoa-empty) {
    padding: 0 !important;
    background: #fff;
}

/* Small panels: notification dropdowns, dashboard side lists */
.hoa-empty.hoa-empty--compact {
    padding: 24px 16px;
    border: 0;
    background: transparent;
}

.hoa-empty--compact .hoa-empty__icon {
    width: 40px;
    height: 40px;
}

.hoa-empty--compact .hoa-empty__icon svg {
    width: 20px;
    height: 20px;
}

/* Landing page announcements sit on a tinted section */
.announcement-empty .hoa-empty.hoa-empty {
    background: #fff;
}

.announcement-empty:has(.hoa-empty) {
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
}

/* =========================================================
   21. Summary cards — admin and staff share one layout:
   icon tile left, label over figure; no arrows
   ========================================================= */
:is(#adminMain, #main) .stat-grid .stat-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    transition: border-color .15s ease, box-shadow .15s ease;
}

:is(#adminMain, #main) .stat-card .stat-card__main-link {
    display: grid;
    flex: 1;
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-areas: "icon label" "icon value";
    column-gap: 14px;
    row-gap: 4px;
    align-items: center;
    padding: 20px 20px 18px;
    color: inherit;
    text-decoration: none;
}

:is(#adminMain, #main) .stat-card .stat-card__head {
    display: contents;
}

:is(#adminMain, #main) .stat-card .stat-card__badge,
:is(#adminMain, #main) .staff-stat-card .staff-stat-icon {
    grid-area: icon;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: 0;
    border: 0;
    border-radius: var(--hoa-r-sm);
    background: var(--hoa-n-100);
    color: var(--hoa-maroon-700);
}

:is(#adminMain, #main) .stat-card .stat-card__badge svg,
:is(#adminMain, #main) .staff-stat-card .staff-stat-icon svg {
    width: 22px;
    height: 22px;
}

:is(#adminMain, #main) .stat-card .stat-card__label {
    grid-area: label;
    align-self: end;
}

:is(#adminMain, #main) .stat-card .stat-card__label,
:is(#adminMain, #main) .staff-stat-card .staff-stat-label {
    color: var(--hoa-ink-2);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

:is(#adminMain, #main) .stat-card .stat-card__body {
    grid-area: value;
    align-self: start;
    margin: 0;
}

:is(#adminMain, #main) .stat-card .stat-card__value,
:is(#adminMain, #main) .staff-stat-card .staff-stat-value {
    color: var(--hoa-ink);
    font-size: 28px;
    line-height: 1.1;
}

/* Footer row: the context line */
:is(#adminMain, #main) .stat-card .stat-card__hint {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    margin: 0;
    padding: 8px 12px 8px 20px;
    border-top: 1px solid var(--hoa-line);
    background: var(--hoa-n-50);
    color: var(--hoa-ink-2);
    font-size: 13px;
    line-height: 1.35;
    text-decoration: none;
}

:is(#adminMain, #main) .stat-card .stat-card__hint--green {
    color: var(--hoa-ok);
}

:is(#adminMain, #main) .stat-card .stat-card__hint:hover {
    color: var(--hoa-ink);
}

/* Staff cards are now links */
:is(#adminMain, #main) .staff-stat-grid .staff-stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    color: inherit;
    text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

:is(#adminMain, #main) .staff-stat-card .staff-stat-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

:is(#adminMain, #main) .staff-stat-card .staff-stat-value {
    order: 2;
}

/* Phones: stack icon over label and figure so long amounts fit */
@media (max-width: 600px) {
    :is(#adminMain, #main) .stat-card .stat-card__main-link {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "icon" "label" "value";
        row-gap: 6px;
        padding: 16px 16px 14px;
    }

    :is(#adminMain, #main) .stat-card .stat-card__badge,
    :is(#adminMain, #main) .staff-stat-card .staff-stat-icon {
        width: 38px;
        height: 38px;
        margin-bottom: 4px;
    }

    :is(#adminMain, #main) .stat-card .stat-card__value,
    :is(#adminMain, #main) .staff-stat-card .staff-stat-value {
        font-size: 22px;
        overflow-wrap: anywhere;
    }

    :is(#adminMain, #main) .stat-card .stat-card__hint {
        padding: 8px 10px 8px 16px;
        font-size: 12px;
    }

    :is(#adminMain, #main) .staff-stat-grid .staff-stat-card {
        position: relative;
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
    }

}

:is(#adminMain, #main) .staff-stat-card:hover {
    border-color: var(--hoa-line-strong);
    box-shadow: var(--hoa-shadow-hover);
}

:is(#adminMain, #main) :is(.stat-card__main-link, .stat-card__hint, .staff-stat-card):focus-visible {
    outline: 2px solid var(--hoa-gold);
    outline-offset: -2px;
}


/* Staff work areas: count and "Open module" on one line */
:is(#adminMain, #main) .staff-module-meta {
    align-items: center;
}

:is(#adminMain, #main) .staff-module-action {
    display: inline-flex;
    align-items: center;
    min-height: 0;
}
