.svhl-live,
.svhl-archive,
.svhl-news {
    margin: 64px 0;
    color: #4A4F55;
}

.svhl-live h2,
.svhl-archive h2,
.svhl-news h2 {
    margin: 0 0 24px;
    color: #173A59;
    font-size: clamp(1.7rem, 2.6vw, 2.2rem);
    line-height: 1.15;
}

.svhl-section-head {
    display: flex;
    gap: 18px;
    align-items: center;
    margin-bottom: 24px;
}

.svhl-section-head h2 {
    margin-bottom: 4px;
}

.svhl-section-head p {
    margin: 0;
    color: #7A7F85;
}

.svhl-live-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    padding: 7px 10px;
    border-radius: 999px;
    background: #202426;
    color: #FFFFFF;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.svhl-live-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    margin-right: 7px;
    border-radius: 50%;
    background: #D6AD42;
}

.svhl-board-grid {
    display: grid;
    gap: 16px;
}

.svhl-board-grid--8 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.svhl-board-grid--6 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.svhl-board-card {
    min-height: 150px;
    padding: 20px;
    border: 1px solid #D9D5CC;
    border-radius: 6px;
    background: #FFFFFF;
    color: #1A1F23;
    text-align: left;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.svhl-board-card:hover,
.svhl-board-card:focus-visible {
    background: #EDE4D6;
    border-color: #D6AD42;
    outline: none;
    transform: translateY(-2px);
}

.svhl-board-number {
    display: block;
    margin-bottom: 18px;
    color: #D6AD42;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.svhl-board-players {
    display: grid;
    gap: 4px;
    margin-bottom: 18px;
    color: #173A59;
}

.svhl-board-action {
    display: inline-block;
    color: #173A59;
    font-weight: 600;
}

.svhl-viewer {
    margin-top: 24px;
    overflow: hidden;
    border: 1px solid #D9D5CC;
    border-radius: 6px;
    background: #FFFFFF;
}

.svhl-viewer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid #D6AD42;
    color: #173A59;
}

.svhl-viewer__heading {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.svhl-viewer__players {
    overflow-wrap: anywhere;
    color: #4A4F55;
    font-size: .9rem;
}

.svhl-viewer__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: #173A59;
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
}

.svhl-viewer__close:hover,
.svhl-viewer__close:focus-visible {
    color: #D6AD42;
}

.svhl-viewer__close:focus-visible {
    outline: 3px solid #D6AD42;
    outline-offset: 2px;
}

.svhl-viewer iframe {
    display: block;
    width: 100%;
    min-height: min(78vh, 780px);
    border: 0;
}

.svhl-lichess-link {
    margin-top: 18px;
}

.svhl-lichess-link a,
.svhl-news-card a {
    color: #173A59;
}

.svhl-lichess-link a:hover,
.svhl-news-card a:hover {
    color: #D6AD42;
}

.svhl-archive-list {
    display: grid;
    gap: 12px;
}

.svhl-archive-round {
    border: 1px solid #D9D5CC;
    border-radius: 6px;
    background: #FFFFFF;
}

.svhl-archive-round summary {
    display: grid;
    grid-template-columns: 130px 190px 1fr;
    gap: 18px;
    align-items: center;
    padding: 18px 20px;
    color: #173A59;
    cursor: pointer;
    list-style: none;
}

.svhl-archive-round summary::-webkit-details-marker {
    display: none;
}

.svhl-archive-round[open] summary {
    border-bottom: 1px solid #D6AD42;
}

.svhl-archive-body {
    padding: 22px;
}

.svhl-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.svhl-news-card {
    overflow: hidden;
    border: 1px solid #D9D5CC;
    border-radius: 6px;
    background: #FFFFFF;
}

.svhl-news-card__image {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.svhl-news-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.svhl-news-card:hover .svhl-news-card__image img {
    transform: scale(1.025);
}

.svhl-news-card__body {
    padding: 20px;
}

.svhl-news-card time {
    color: #7A7F85;
    font-size: .85rem;
}

.svhl-news-card h3 {
    margin: 8px 0 10px;
    font-size: 1.25rem;
}

.svhl-news-card h3 a {
    text-decoration: none;
}

.svhl-news-card p {
    margin: 0;
}

@media (max-width: 900px) {
    .svhl-board-grid--8,
    .svhl-board-grid--6,
    .svhl-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .svhl-archive-round summary {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

@media (max-width: 600px) {
    .svhl-board-grid--8,
    .svhl-board-grid--6,
    .svhl-news-grid {
        grid-template-columns: 1fr;
    }

    .svhl-viewer iframe {
        min-height: 520px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .svhl-board-card,
    .svhl-news-card__image img {
        transition: none;
    }
}
