/* House roster board, clock line, and district meters. Page-scoped. */
.cu-house-page {
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
}

.cu-house-page .cu-house-stack__toggle {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(4.5rem, 28%) 44px;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    min-height: 44px;
    padding: 0.45rem 0.65rem;
    box-sizing: border-box;
}

.cu-house-page .cu-house-stack__count {
    font-variant-numeric: tabular-nums;
    font-size: 1.35rem;
    font-weight: 750;
    line-height: 1;
    letter-spacing: 0.02em;
}

.cu-house-page .cu-house-stack__meter {
    display: block;
    height: 0.45rem;
    border-radius: 999px;
    background: rgba(245, 240, 230, 0.16);
    overflow: hidden;
}

.cu-house-page .cu-house-stack__meter-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--cu-teal, #0d9488);
}

.cu-house-page .cu-house-stack__note {
    margin: 0;
    padding: 0 0.9rem 0.7rem;
    font-size: 0.82rem;
    line-height: 1.35;
}

.cu-house-page .cu-house-stack__chevron {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cu-house-page .cu-house-stack__body .cu-card-grid {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.cu-house-page .cu-house-official.cu-official-card {
    min-width: 0;
}

.cu-house-page .cu-house-reply {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.3rem;
    margin-top: 0.55rem;
    max-width: 9rem;
}

.cu-house-page .cu-house-reply__pip {
    display: block;
    height: 0.45rem;
    border-radius: 999px;
    background: rgba(26, 26, 26, 0.12);
    border: 1px solid rgba(26, 26, 26, 0.22);
}

.cu-house-page .cu-house-reply__pip--on {
    background: #5c5c5c;
    border-color: #5c5c5c;
}

.cu-house-page .cu-house-reply__pip--ok.cu-house-reply__pip--on {
    background: var(--cu-teal, #0d9488);
    border-color: var(--cu-teal, #0d9488);
}

.cu-house-page .cu-house-reply__pip--amber.cu-house-reply__pip--on {
    background: var(--cu-amber, #d97706);
    border-color: var(--cu-amber, #d97706);
}

.cu-house-page .cu-house-billrail,
.cu-house-page .cu-house-clockline {
    list-style: none;
    margin: 0 0 0.75rem;
    padding: 0;
    display: grid;
    gap: 0.45rem;
    min-width: 0;
}

.cu-house-page .cu-house-billrail {
    counter-reset: cu-house-bill;
}

.cu-house-page .cu-house-billrail li,
.cu-house-page .cu-house-clockline li {
    min-width: 0;
}

.cu-house-page .cu-house-billrail li {
    counter-increment: cu-house-bill;
    display: grid;
    grid-template-columns: 2.75rem minmax(0, 1fr);
    align-items: center;
    gap: 0.55rem;
    min-height: 44px;
    padding: 0.35rem 0.7rem;
    border-radius: 0.7rem;
    border: 1px solid rgba(245, 240, 230, 0.16);
    background: rgba(12, 22, 38, 0.45);
}

.cu-house-page .cu-house-billrail li::before {
    content: counter(cu-house-bill, decimal-leading-zero);
    font-variant-numeric: tabular-nums;
    font-weight: 750;
    color: var(--cu-teal-bright, #5eead4);
}

.cu-house-page .cu-house-billrail__label {
    min-width: 0;
    overflow-wrap: anywhere;
}

.cu-house-page .cu-house-clockline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    position: relative;
}

.cu-house-page .cu-house-clockline::before {
    content: "";
    position: absolute;
    left: 12%;
    right: 12%;
    top: 22px;
    height: 2px;
    background: rgba(245, 240, 230, 0.22);
}

.cu-house-page .cu-house-clockline a {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 0;
    padding: 0.45rem 0.3rem;
    border-radius: 0.7rem;
    border: 1px solid rgba(13, 148, 136, 0.45);
    background: rgba(12, 22, 38, 0.92);
    color: var(--cu-cream, #f5f0e6);
    font-weight: 700;
    font-size: 0.78rem;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.cu-house-page .cu-house-clockline a:hover,
.cu-house-page .cu-house-clockline a:focus-visible {
    border-color: var(--cu-teal-bright, #5eead4);
    color: var(--cu-teal-bright, #5eead4);
    outline: 2px solid #5eead4;
    outline-offset: 2px;
}

.cu-house-page .cu-house-note {
    margin: 0 0 0.75rem;
}

.cu-house-page .cu-house-score {
    display: flex;
    flex-direction: column;
    gap: var(--cu-space-3);
    min-width: 0;
}

.cu-house-page .cu-house-score__row {
    min-width: 0;
    padding: 0.75rem 0.8rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(245, 240, 230, 0.14);
    background: rgba(12, 22, 38, 0.45);
}

.cu-house-page .cu-house-score__district {
    margin: 0 0 0.45rem;
    font-size: 1rem;
    overflow-wrap: anywhere;
}

.cu-house-page .cu-house-score__meter {
    display: grid;
    grid-template-columns: 5.6rem minmax(0, 1fr) 2rem;
    align-items: center;
    gap: 0.4rem;
    min-height: 28px;
}

.cu-house-page .cu-house-score__name,
.cu-house-page .cu-house-score__n {
    font-size: 0.75rem;
    font-weight: 650;
}

.cu-house-page .cu-house-score__n {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.cu-house-page .cu-house-score__track {
    display: block;
    height: 0.5rem;
    border-radius: 999px;
    background: rgba(245, 240, 230, 0.14);
    overflow: hidden;
}

.cu-house-page .cu-house-score__fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: rgba(245, 240, 230, 0.72);
}

.cu-house-page .cu-house-score__fill--ok {
    background: var(--cu-teal, #0d9488);
}

.cu-house-page .cu-house-score__fill--amber {
    background: var(--cu-amber, #d97706);
}

.cu-house-page .cu-pin-chip,
.cu-house-page .cu-chip-btn,
.cu-house-page .cu-cta {
    min-height: 44px;
}

.cu-shell[data-theme="light"] .cu-house-page .cu-house-billrail li,
.cu-shell[data-theme="light"] .cu-house-page .cu-house-score__row {
    background: rgba(255, 253, 248, 0.92);
    border-color: rgba(26, 26, 26, 0.12);
    color: #1a1a1a;
}

.cu-shell[data-theme="light"] .cu-house-page .cu-house-clockline a {
    background: #fffdf8;
    color: #1a1a1a;
}

.cu-shell[data-theme="light"] .cu-house-page .cu-house-clockline::before,
.cu-shell[data-theme="light"] .cu-house-page .cu-house-stack__meter,
.cu-shell[data-theme="light"] .cu-house-page .cu-house-score__track {
    background: rgba(26, 26, 26, 0.12);
}

@media (max-width: 390px) {
    .cu-house-page .cu-house-stack__toggle {
        grid-template-columns: minmax(0, 1fr) auto 44px;
    }

    .cu-house-page .cu-house-stack__meter {
        display: none;
    }

    .cu-house-page .cu-house-score__meter {
        grid-template-columns: 4.8rem minmax(0, 1fr) 1.6rem;
    }
}
