.record {
    --line-pink: #d8a9b5;
    font-weight: 350;
}

.record-hero {
    padding-top: calc(var(--section-y) + 12px);
    background: linear-gradient(var(--paper) calc(100% - 78px), var(--blue-band) 0);
}

.record-hero .block-title {
    font-size: clamp(2.2rem, 3.6vw, 3.1rem);
}

.record-hero .lede {
    max-width: 760px;
    margin-top: 24px;
    font-size: var(--text-body);
    line-height: 1.55;
}

.record__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin: 64px 0 0;
}

.record__stats li {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 176px;
    padding: 24px;
    background: #f9f8f7;
    box-shadow: 2px 3px 4px rgba(0, 0, 0, 0.18);
}

.record__stats li:first-child {
    border-radius: 14px 0 0 14px;
}

.record__stats li:last-child {
    border-radius: 0 14px 14px 0;
}

.record__stats strong {
    display: block;
    color: var(--red);
    font-size: 43px;
    line-height: 1;
}

.record__stats small {
    color: var(--ink);
    font-size: 11px;
}

.record__stats span {
    display: block;
    margin-top: 10px;
    font-size: 10px;
    text-transform: uppercase;
}

.record-body {
    padding-top: calc(var(--section-y) + 12px);
    background: var(--blue-band);
}

.record__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 40px;
}

.record__head + .ledger {
    margin-top: -12px;
}

.record__head h4 {
    margin: 0;
    font-family: var(--font-title);
    font-size: clamp(19px, 2.66vw, 38px);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.record__head p {
    font-size: var(--text-body);
}

.register {
    margin-bottom: 64px;
    border-bottom: 1px solid var(--line-pink);
}

.register details {
    border-top: 1px solid var(--line-pink);
}

.register details:not([open]) > .register__panel {
    display: none;
}

.register details[open] {
    border-top-color: var(--red);
    border-bottom: 1px solid var(--red);
}

.register details[open] + details {
    border-top: 0;
}

.register details:last-child[open] {
    margin-bottom: -1px;
}

.register summary {
    position: relative;
    display: grid;
    grid-template-columns: 130px 176px 1fr;
    align-items: center;
    min-height: 84px;
    font-size: 16px;
    cursor: pointer;
    list-style: none;
}

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

.register summary::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 14px;
    width: 12px;
    height: 12px;
    margin-top: -9px;
    border-right: 3px solid var(--red);
    border-bottom: 3px solid var(--red);
    transform: rotate(45deg);
}

.register details[open] summary {
    grid-template-columns: 130px 1fr;
    padding: 18px 0 14px;
    font-size: 14px;
    line-height: 1.3;
}

.register details[open] summary b {
    grid-row: span 2;
    color: var(--red);
    font-size: 44px;
}

.register details[open] summary span {
    grid-column: 2;
}

.register details[open] summary::after {
    margin-top: -3px;
    border-color: var(--red);
    transform: rotate(-135deg);
}

.register__panel {
    overflow: hidden;
    padding: 8px 0 22px;
    transition: height 0.45s ease, padding 0.45s ease;
}

.register__tabs {
    display: flex;
    gap: 18px;
    margin-bottom: 26px;
}

.register__tabs button {
    padding: 0;
    border: 0;
    background: none;
    color: var(--ink);
    font: inherit;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
}

.register__tabs .is-active {
    color: var(--red);
    text-decoration: underline;
    text-underline-offset: 5px;
}

.register__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.register__table th {
    padding: 0 0 10px;
    font-size: 10px;
    font-weight: 400;
    text-align: left;
    text-transform: uppercase;
}

.register__table th:nth-child(1),
.register__table th:nth-child(2) {
    font-weight: 700;
}

.register__table td {
    padding: 12px 0;
    border-top: 1px solid var(--line-pink);
}

.register__table td:first-child {
    font-weight: 400;
}

.register__table td:last-child {
    font-weight: 400;
    text-align: right;
}

.register__table th:last-child {
    text-align: right;
}

.register b,
.ledger b {
    font-family: var(--font-title);
    font-weight: 600;
}

.register b {
    font-size: 32px;
}

.register summary strong {
    margin-right: 6px;
}

.ledger {
    border-top: 1px solid var(--line-pink);
}

.ledger li {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 22px;
    align-items: center;
    min-height: 59px;
    border-bottom: 1px solid var(--line-pink);
}

.ledger b {
    font-size: 20px;
}

.ledger li > span {
    display: flex;
    height: 24px;
    background: #d6e0e8;
}

.ledger i {
    position: relative;
    background: var(--red);
    cursor: default;
}

.ledger i span {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    z-index: 2;
    transform: translateX(-50%);
    padding: 4px 8px;
    background: var(--ink);
    color: #fff;
    font-size: 10px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.3;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
}

.ledger i:hover span,
.ledger i:focus span {
    opacity: 1;
}

.ledger i + i {
    background: #6D92AB;
}

.ledger i + i + i {
    background: #494949;
}

.ledger__key {
    display: flex;
    gap: 34px;
    margin-top: 20px;
    font-size: 10px;
}

.ledger__key li::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 10px;
    vertical-align: -2px;
    background: var(--red);
}

.ledger__key li + li::before {
    background: #6D92AB;
}

.ledger__key li + li + li::before {
    background: #494949;
}

@media (max-width: 720px) {
    .record-hero {
        background: linear-gradient(var(--paper) calc(100% - 48px), var(--blue-band) 0);
    }

    .record__stats {
        gap: 3px;
        margin-top: 40px;
    }

    .record__stats li {
        min-height: 96px;
        padding: 12px 8px;
    }

    .record__stats strong {
        font-size: 20px;
    }

    .record__stats small,
    .record__stats span {
        font-size: 7px;
    }

    .record__head {
        flex-direction: column;
    }

    .register summary,
    .register details[open] summary {
        grid-template-columns: 90px 1fr;
        padding: 14px 32px 14px 0;
        font-size: 13px;
    }

    .register summary b {
        grid-row: span 2;
        font-size: 28px;
    }

    .register details[open] summary b {
        font-size: 34px;
    }

    .register summary span {
        grid-column: 2;
    }

    .register__table thead {
        display: none;
    }

    .register__table tr {
        display: block;
        padding: 12px 0;
        border-top: 1px solid var(--line-pink);
    }

    .register__table td,
    .register__table td:last-child {
        display: grid;
        grid-template-columns: 130px 1fr;
        padding: 2px 0;
        border: 0;
        text-align: left;
    }

    .register__table td::before {
        content: attr(data-label);
        font-size: 9px;
        font-weight: 700;
        text-transform: uppercase;
    }

    .ledger li {
        grid-template-columns: 56px 1fr;
        gap: 12px;
    }
}
