/* House plaques */
.plaque {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2px;
    padding: 10px 16px 11px;
    border-radius: 1px;
    background: var(--enamel-slate);
    box-shadow:
        inset 0 0 0 1px var(--brass),
        inset 0 0 0 4px var(--enamel-slate),
        inset 0 0 0 5px rgba(217, 181, 116, 0.4),
        0 4px 9px -3px rgba(0, 0, 0, 0.5);
    color: var(--enamel-letter);
}

.success-plaque {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 1px;
    background: var(--enamel-slate);
    box-shadow:
        inset 0 0 0 1px var(--brass),
        inset 0 0 0 4px var(--enamel-slate),
        inset 0 0 0 5px rgba(217, 181, 116, 0.4),
        0 4px 9px -3px rgba(0, 0, 0, 0.5);
}

.success-plaque::before {
    content: "";
    width: 20px;
    height: 15px;
    background: var(--brass);
    -webkit-mask: var(--check) center / contain no-repeat;
    mask: var(--check) center / contain no-repeat;
    animation: toast-mark-in 260ms 200ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.plaque-label {
    font-size: var(--type-label);
    line-height: 1.3;
    text-wrap: balance;
}

.figure {
    font-family: var(--serif);
    font-size: var(--type-numeral);
    font-weight: 500;
    line-height: 1.1;
    font-variant-numeric: lining-nums tabular-nums;
    color: var(--brass);
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.figure small {
    font-size: var(--type-label);
}

.figure-inline {
    color: var(--brass);
    font-variant-numeric: lining-nums;
}

.roll {
    display: inline-block;
}

.roll.is-rolling {
    animation: roll 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes roll {
    0% { transform: translateY(55%); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.plaque-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.plaque-caption {
    margin-top: 14px;
    font-size: var(--type-label);
    color: var(--umber-soft);
}

.door-hero .plaque-caption {
    color: var(--on-door);
}

.ledger {
    gap: 0;
    padding: 20px 24px 6px;
}

.ledger-rent {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(217, 181, 116, 0.4);
}

.ledger-rent label {
    font-size: var(--type-ui);
}

.ledger dl > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 20px;
    padding-block: 14px;
    border-bottom: 1px solid rgba(228, 235, 234, 0.14);
}

.ledger dl > div:last-child {
    border-bottom: 0;
}

.ledger dt {
    font-size: var(--type-ui);
    line-height: 1.35;
}

.ledger dt small {
    display: block;
    margin-top: 2px;
    font-size: var(--type-label);
    color: rgba(228, 235, 234, 0.78);
}

.ledger dd {
    font-size: var(--type-numeral);
    font-weight: 500;
    line-height: 1.1;
    font-variant-numeric: lining-nums tabular-nums;
    color: var(--brass);
    white-space: nowrap;
}

.ledger .ledger-total,
.ledger dl > div:has(+ .ledger-total) {
    border-bottom-color: rgba(217, 181, 116, 0.4);
}

.ledger-total dt {
    font-weight: 500;
    color: var(--trim-white);
}

.ledger-total dd {
    font-size: var(--type-numeral-lg);
}

@media (max-width: 600px) {
    .ledger {
        padding-inline: 16px;
    }

    .ledger dl > div {
        gap: 12px;
    }

    .ledger-total dd {
        font-size: var(--type-numeral);
    }
}

@media (max-width: 960px) {
    .plaque-grid {
        max-width: 480px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .roll.is-rolling,
    .success-plaque::before {
        animation: none;
    }
}
