.sheet-directory {
    max-width: 100%;
    padding-block: 2.5rem 3.5rem;
}

.sheet-directory-heading {
    max-width: 720px;
    margin-bottom: 2rem;
}

.sheet-directory-heading h1 {
    margin: 0 0 .6rem;
    font-size: clamp(1.6rem, 3vw, 2.25rem);
}

.sheet-directory-heading p {
    margin: 0;
    color: #64748b;
}

.sheet-directory-list {
    display: grid;
    min-width: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: .85rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.sheet-specification-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 1rem;
    border: 1px solid #dce3eb;
    border-radius: .75rem;
    background: #fff;
}

.sheet-specification-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .75rem;
    padding-bottom: .8rem;
    border-bottom: 1px solid #edf0f4;
}

.sheet-specification-heading h2 {
    margin: 0;
    color: #1e293b;
    font-size: 1.05rem;
}

.sheet-specification-heading > span {
    flex: 0 1 auto;
    color: #64748b;
    font-size: .75rem;
    font-weight: 650;
    text-align: right;
}

.sheet-specification-details {
    display: grid;
    gap: .65rem;
    margin: .9rem 0 1rem;
}

.sheet-specification-details > div {
    display: grid;
    gap: .12rem;
}

.sheet-specification-details dt {
    color: #64748b;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .025em;
}

.sheet-specification-details dd {
    margin: 0;
    color: #334155;
    font-size: .82rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.sheet-compatible-models {
    margin-top: auto;
    padding-top: .85rem;
    border-top: 1px solid #edf0f4;
}

.sheet-compatible-models h3 {
    margin: 0 0 .45rem;
    color: #64748b;
    font-size: .7rem;
    letter-spacing: .025em;
}

.sheet-compatible-models ul {
    display: grid;
    gap: .25rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.sheet-model-row {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: .55rem;
}

.sheet-model-link {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: .42rem .48rem;
    border-radius: .45rem;
    color: #2563eb;
    font-size: .84rem;
    font-weight: 650;
    text-decoration: none;
}

.sheet-model-link > span:first-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.sheet-model-link:hover {
    background: #f1f5f9;
    color: #1d4ed8;
}

.sheet-model-link:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .3);
    outline-offset: 2px;
}

.sheet-model-countries {
    display: inline-flex;
    flex: 0 0 auto;
    max-width: 42%;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: .2rem;
}

.country-flag {
    display: block;
    width: 21px;
    height: 14px;
    border: 1px solid rgba(15, 23, 42, .16);
    border-radius: 2px;
    object-fit: cover;
}

.country-flag-fallback {
    display: inline-flex;
    min-width: 21px;
    height: 14px;
    align-items: center;
    justify-content: center;
    padding-inline: 2px;
    border: 1px solid rgba(15, 23, 42, .16);
    border-radius: 2px;
    background: #f8fafc;
    color: #475569;
    font-size: .52rem;
    font-weight: 750;
    line-height: 1;
}

@media (max-width: 980px) {
    .sheet-directory-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .sheet-directory {
        padding-block: 1.5rem 2rem;
    }

    .sheet-directory-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .sheet-specification-heading {
        flex-wrap: wrap;
    }
}
