/* Фон раздела применяется только к страницам детской лиги. */
body.body--junior-league::before {
    background-image: url("../../images/junior-league-bg.50c39e0d0eec.webp");
    background-position: center top;
    background-size: cover;
}

@media (width <= 640px) {
    body.body--junior-league::before {
        background-position: 72% top;
    }
}


.jl {
    --jl-bg: var(--color-bg);
    --jl-surface: var(--color-bg-card);
    --jl-ink: var(--color-text);
    --jl-muted: var(--color-text-muted);
    --jl-accent: var(--color-primary);
    --jl-gold-ink: var(--color-primary-dark);
    --jl-line-strong: var(--color-border);
    --jl-line: rgb(166 130 74 / 25%);
    --jl-radius: 20px;

    color-scheme: dark;
    color: var(--jl-ink);
    background: var(--jl-bg);
    border: 1px solid var(--jl-line);
    box-shadow: var(--shadow-lg);
    border-radius: 24px;
    padding: 32px 32px 72px;

    /* Совпадает с внешней шириной плавающей панели навигации:
       контейнер 1400px минус его боковые отступы 16px. */
    width: calc(100% - 2 * var(--spacing-md));
    max-width: calc(1400px - 2 * var(--spacing-md));
    margin-block: 24px;
    font-size: 16px;
    line-height: 1.6;
}

@media (width <= 768px) {
    .jl {
        width: calc(100% - 2 * var(--spacing-sm));
    }
}

.jl * {
    box-sizing: border-box;
}

.jl a {
    color: inherit;
}

.jl-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--jl-line);
}

.jl-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: auto;
    font-weight: 750;
    text-decoration: none;
}

.jl-brand>span:last-child {
    font-weight: 450;
    color: var(--jl-muted);
    border-left: 1px solid var(--jl-line);
    padding-left: 12px;
}

.jl-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--jl-accent);
    color: var(--jl-gold-ink);
    font-size: 24px;
}

.jl-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 48px 0 32px;
}

.jl h1 {
    font-size: clamp(30px,4vw,48px);
    line-height: 1.12;
    letter-spacing: -.035em;
    margin: 10px 0 16px;
    color: var(--jl-ink);
}

.jl h2 {
    font-size: 23px;
    letter-spacing: -.02em;
    line-height: 1.3;
    margin: 16px 0;
}

.jl p {
    line-height: 1.65;
}

.jl-eyebrow {
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .16em;
    color: var(--jl-accent);
}

.jl-muted,.jl-field small {
    color: var(--jl-muted);
}

.jl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(min(100%,310px),1fr));
    gap: 20px;
}

.jl-card {
    padding: 28px;
    background: var(--jl-surface);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--jl-line);
    border-radius: var(--jl-radius);
    min-width: 0;
}

.jl-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.jl-avatar {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    background: var(--color-primary-transparent);
    color: var(--jl-accent);
    border-radius: 16px;
    font-size: 24px;
    font-weight: 650;
}

.jl-card hr {
    border: 0;
    border-top: 1px solid var(--jl-line);
    margin: 24px 0;
}

.jl-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--jl-line);
    border-radius: 50px;
    padding: 7px 12px;
    font-size: 12px;
    background: var(--jl-surface);
}

.jl-badge[class*="jl-ball-"]::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--ball-color);
}

.jl-ball-red {
    --ball-color: #d34c42;
}

.jl-ball-orange {
    --ball-color: #e4821e;
}

.jl-ball-green {
    --ball-color: #4f9b55;
}

.jl-ball-yellow {
    --ball-color: #b2a900;
}

.jl-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    min-height: 46px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: var(--jl-accent);
    color: var(--jl-gold-ink)!important;
    text-decoration: none;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: transform 140ms cubic-bezier(.23,1,.32,1), background-color 140ms ease-out;
}

.jl-button:active {
    transform: scale(.97);
}

.jl-button:disabled {
    opacity: .5;
    cursor: default;
}

.jl :focus-visible {
    outline: 3px solid var(--jl-accent);
    outline-offset: 4px;
}

.jl-link {
    font-weight: 650;
    text-underline-offset: 4px;
}

.jl-empty {
    padding: 48px;
    border: 1px dashed var(--jl-line);
    border-radius: var(--jl-radius);
    max-width: 750px;
}

.jl-note {
    padding: 20px 24px;
    background: var(--jl-surface);
    border: 1px solid var(--jl-line);
    border-radius: 14px;
    margin-top: 28px;
    line-height: 1.65;
}

.jl-form {
    max-width: 800px;
}

.jl-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.jl-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
}

.jl-field-wide {
    grid-column: 1/-1;
}

.jl-field label {
    font-weight: 600;
}

.jl-field input:not([type="checkbox"]),.jl-field select,.jl-field textarea,.jl-filter select,.jl-filter input:not([type="checkbox"]):not([type="radio"]) {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--jl-line);
    border-radius: 10px;
    padding: 11px 12px;
    background: var(--jl-surface);
    color: var(--jl-ink);
    font: inherit;
}

.jl-field input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--jl-accent);
}

.jl-field input[aria-invalid="true"] {
    border-color: #ba3535;
}

.jl-actions {
    display: flex;
    gap: 24px;
    align-items: center;
    margin-top: 32px;
    flex-wrap: wrap;
}

.jl-error {
    background: #572d32;
    border: 1px solid #a65d61;
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 24px;
    color: #ffbdb5;
}

.jl-error-text {
    color: #ffbdb5!important;
}

.jl-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.jl-details dt {
    color: var(--jl-muted);
}

.jl-details dd {
    margin: 0;
    text-align: right;
}

.jl-table-wrap {
    overflow: auto;
}

.jl-table {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}

.jl-table th,.jl-table td {
    text-align: left;
    padding: 16px 12px;
    border-bottom: 1px solid var(--jl-line);
    white-space: nowrap;
}

.jl-table th {
    font-size: 12px;
    color: var(--jl-muted);
    font-weight: 550;
}

.jl-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0;
}

.jl-filter>label {
    flex: 1;
    min-width: 140px;
    font-size: 12px;
}

.jl-filter select,.jl-filter input {
    margin-top: 6px;
}

.jl-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin-block: 24px;
}

.jl-stat strong {
    display: block;
    font-size: 30px;
    letter-spacing: -.04em;
}

.jl-stat span {
    font-size: 12px;
    color: var(--jl-muted);
}

@media(hover:hover) and (pointer:fine) {
    .jl-button:hover {
        background: var(--jl-accent);
        box-shadow: var(--shadow-glow);
    }

    .jl-link:hover {
        text-decoration-thickness: 2px;
    }
}

@media(width <=640px) {
    .jl {
        padding-inline: 16px;
    }

    .jl-heading {
        align-items: flex-start;
        flex-direction: column;
        margin-top: 28px;
    }

    .jl-card {
        padding: 22px;
    }

    .jl-form-grid {
        grid-template-columns: 1fr;
    }

    .jl-brand {
        flex-wrap: wrap;
    }

    .jl-brand>span:last-child {
        font-size: 13px;
    }

    .jl-nav {
        gap: 16px;
    }

    .jl-empty {
        padding: 28px;
    }
}

@media(prefers-reduced-motion:reduce) {
    .jl-button {
        transition: none;
    }

    .jl-button:active {
        transform: none;
    }
}

.jl-card li {
    line-height: 1.8;
    margin: 8px 0;
}

/* ==========================================================================
   Главная детской лиги
   ========================================================================== */

.jl--home {
    --jl-line-soft: rgb(166 130 74 / 16%);
    --jl-line-strong: rgb(166 130 74 / 36%);
    --jl-ease: cubic-bezier(.23, 1, .32, 1);

    margin-block: 8px 32px;
    padding: 16px 32px 64px;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    overflow-x: clip;
}

.jlh {
    --jlh-gap: 64px;
}

.jl .jlh-path,
.jl .jlh-steps,
.jl .jlh-flow {
    list-style: none;
    padding-left: 0;
}

.jlh h1,
.jlh h2,
.jlh h3 {
    text-wrap: balance;
}

.jlh h1 {
    margin: 14px 0 18px;
    font-size: clamp(34px, 4vw, 52px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.035em;
}

.jlh h2 {
    margin: 8px 0 10px;
    font-size: clamp(24px, 2.6vw, 32px);
    line-height: 1.15;
    letter-spacing: -.028em;
}

.jlh h3 {
    font-size: 17px;
    line-height: 1.3;
    letter-spacing: -.01em;
}

.jlh-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    align-items: center;
    gap: 56px;
    padding: 40px 0 8px;
    position: relative;
    isolation: isolate;
}

.jlh-hero::before {
    content: "";
    position: absolute;
    inset: -70px 0 auto;
    height: 420px;
    background: radial-gradient(58% 100% at 18% 0%, rgb(166 130 74 / 13%), transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.jlh-hero__lead {
    max-width: 52ch;
    margin: 0;
    font-size: clamp(16px, 1.3vw, 18px);
    line-height: 1.6;
    color: var(--jl-muted);
}

.jlh-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
}

.jlh-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.jlh-facts li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--jl-line-soft);
    border-radius: 999px;
    background: rgb(166 130 74 / 5%);
    font-size: 13px;
    color: var(--jl-muted);
}

.jlh-facts li::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--jl-accent);
}

.jlh-panel {
    position: relative;
    isolation: isolate;
    padding: 26px 28px;
    border: 1px solid var(--jl-line-strong);
    border-radius: 24px;
    background:
        radial-gradient(120% 90% at 100% 0%, rgb(166 130 74 / 16%), transparent 58%),
        linear-gradient(158deg, #043526, #001a11 72%);
    box-shadow: 0 30px 60px -34px rgb(0 0 0 / 90%), inset 0 1px 0 rgb(255 255 255 / 6%);
    overflow: hidden;
}

.jlh-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        repeating-linear-gradient(90deg, transparent 0 71px, rgb(166 130 74 / 6%) 71px 72px),
        repeating-linear-gradient(0deg, transparent 0 71px, rgb(166 130 74 / 6%) 71px 72px);
    -webkit-mask-image: linear-gradient(200deg, #000 0%, transparent 65%);
    mask-image: linear-gradient(200deg, #000 0%, transparent 65%);
    pointer-events: none;
}

.jlh-panel__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.jlh-panel__head h2 {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--jl-accent);
}

.jlh-panel__meta {
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--jl-muted);
    opacity: .8;
}

.jlh-path {
    display: grid;
    gap: 16px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.jlh-path__item {
    --jlh-court: 100%;

    display: grid;
    grid-template-columns: 9px 74px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

.jlh-path .jl-ball-red {
    --jlh-court: 51%;
}

.jlh-path .jl-ball-orange {
    --jlh-court: 76%;
}

.jlh-path__ball {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--ball-color);
    box-shadow: 0 0 12px -2px var(--ball-color);
}

.jlh-path__name {
    font-size: 13px;
    letter-spacing: .01em;
}

.jlh-path__track {
    position: relative;
    display: flex;
    align-items: center;
    height: 26px;
}

.jlh-path__track i {
    position: relative;
    display: block;
    width: var(--jlh-court);
    height: 100%;
    border: 1px solid rgb(166 130 74 / 50%);
    border-radius: 3px;
    background: linear-gradient(rgb(166 130 74 / 7%), transparent);
    transition: width 600ms var(--jl-ease);
}

.jlh-path__track i::before,
.jlh-path__track i::after {
    content: "";
    position: absolute;
    background: rgb(166 130 74 / 45%);
}

.jlh-path__track i::before {
    inset: 50% 0 auto;
    height: 1px;
}

.jlh-path__track i::after {
    inset: 0 auto 0 50%;
    width: 1px;
}

.jlh-path__size {
    min-width: 82px;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    text-align: right;
    color: var(--jl-muted);
}

.jlh-panel__note {
    margin: 24px 0 0;
    padding-top: 18px;
    border-top: 1px dashed var(--jl-line-soft);
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--jl-muted);
}

.jlh-section {
    margin-top: var(--jlh-gap);
}

.jlh-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.jlh-head__lead {
    max-width: 62ch;
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: var(--jl-muted);
}

.jlh-head__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    color: var(--jl-accent);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.jlh-head__link span {
    transition: transform 180ms var(--jl-ease);
}

.jlh-events {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.jlh-event {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 16px;
    padding: 20px;
    border: 1px solid var(--jl-line-soft);
    border-radius: 18px;
    background: linear-gradient(180deg, rgb(255 255 255 / 2.5%), transparent 60%), var(--jl-surface);
    transition: transform 200ms var(--jl-ease), border-color 200ms ease-out, box-shadow 200ms ease-out;
}

.jlh-event__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding-right: 16px;
    border-right: 1px solid var(--jl-line-soft);
    min-width: 56px;
}

.jlh-event__day {
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.04em;
    font-variant-numeric: tabular-nums;
}

.jlh-event__month {
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--jl-accent);
}

.jlh-event__weekday {
    font-size: 11px;
    color: var(--jl-muted);
}

.jlh-event__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.jlh-event__body {
    min-width: 0;
}

.jlh-event__body h3 {
    margin: 10px 0 6px;
}

.jlh-event__body h3 a {
    text-decoration: none;
}

.jlh-event__meta {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--jl-muted);
    overflow-wrap: anywhere;
}

.jlh-status {
    padding: 4px 9px;
    border: 1px solid var(--jl-line-soft);
    border-radius: 999px;
    font-size: 10.5px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--jl-muted);
}

.jlh-status--open {
    border-color: rgb(166 130 74 / 40%);
    background: rgb(166 130 74 / 14%);
    color: #d9b982;
}

.jlh-status--active {
    border-color: rgb(79 155 85 / 45%);
    background: rgb(79 155 85 / 14%);
    color: #9fd3a1;
}

.jlh-event__go {
    align-self: center;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--jl-line-strong);
    border-radius: 50%;
    color: var(--jl-accent);
    text-decoration: none;
    transition: background-color 160ms ease-out, transform 180ms var(--jl-ease);
}

.jlh-empty {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: center;
    gap: 40px;
    padding: 32px;
    border: 1px dashed var(--jl-line-strong);
    border-radius: 20px;
    background: radial-gradient(80% 120% at 100% 0%, rgb(166 130 74 / 8%), transparent 70%);
}

.jlh-empty h3 {
    margin: 0 0 8px;
    font-size: 20px;
    letter-spacing: -.02em;
}

.jlh-empty p {
    max-width: 58ch;
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--jl-muted);
}

.jlh-empty__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-top: 22px;
}

.jlh-empty__art {
    position: relative;
    aspect-ratio: 1.45;
    border-radius: 12px;
}

.jlh-empty__art--calendar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 8% 6%;
}

.jlh-empty__art--calendar span {
    border: 1px solid rgb(166 130 74 / 22%);
    border-radius: 6px;
    background: rgb(166 130 74 / 4%);
}

.jlh-empty__art--calendar span:nth-child(6) {
    border-color: rgb(166 130 74 / 65%);
    background: rgb(166 130 74 / 16%);
}

.jlh-empty__art--podium {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 12px;
    padding: 0 10%;
    aspect-ratio: 1.6;
    border: 0;
    background: none;
}

.jlh-empty__art--podium::before {
    content: "";
    position: absolute;
    right: 8%;
    bottom: 0;
    left: 8%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgb(166 130 74 / 38%),
        transparent
    );
}

.jlh-empty__art--podium span {
    position: static;
    width: 28%;
    border: 1px solid rgb(166 130 74 / 32%);
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(180deg, rgb(166 130 74 / 32%), rgb(166 130 74 / 5%));
}

.jlh-empty__art--podium span:nth-child(1) {
    height: 42%;
}

.jlh-empty__art--podium span:nth-child(2) {
    height: 68%;
}

.jlh-empty__art--podium span:nth-child(3) {
    height: 100%;
    border-color: rgb(166 130 74 / 62%);
    background: linear-gradient(180deg, rgb(166 130 74 / 46%), rgb(166 130 74 / 7%));
}

.jlh-board {
    overflow: auto;
    border: 1px solid var(--jl-line-soft);
    border-radius: 20px;
    background: var(--jl-surface);
}

.jlh-board__table {
    min-width: 440px;
}

.jlh-board__table tbody tr:last-child td {
    border-bottom: 0;
}

.jlh-board__table td:first-child {
    width: 64px;
}

.jlh-board__table th:nth-child(3),
.jlh-board__table td:nth-child(3),
.jlh-board__table th:nth-child(4),
.jlh-board__table td:nth-child(4) {
    width: 120px;
    padding-right: 22px;
    text-align: right;
}

.jlh-board__count {
    display: none;
}

.jlh-place {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--jl-line-strong);
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--jl-muted);
}

.jlh-place--1 {
    border-color: #e6c894;
    background: linear-gradient(180deg, #efd7a9, #b98f4e);
    color: #1a1206;
}

.jlh-place--2 {
    border-color: #cfd6d3;
    background: linear-gradient(180deg, #e4e9e7, #9ca8a3);
    color: #101715;
}

.jlh-place--3 {
    border-color: #c98d5f;
    background: linear-gradient(180deg, #d9a375, #a2693f);
    color: #1a0f07;
}

.jlh-board__link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 20px;
    border-top: 1px solid var(--jl-line-soft);
    color: var(--jl-accent);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.jlh-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.jlh-step {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 24px 22px 20px;
    border: 1px solid var(--jl-line-soft);
    border-radius: 18px;
    background: linear-gradient(180deg, rgb(255 255 255 / 2.5%), transparent 55%), var(--jl-surface);
    overflow: hidden;
    transition: transform 200ms var(--jl-ease), border-color 200ms ease-out;
}

.jlh-step::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: var(--ball-color);
    opacity: .9;
}

.jlh-step__ball {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--ball-color);
    box-shadow: 0 0 12px -2px var(--ball-color);
}

.jlh-step h3 {
    margin: 14px 0 4px;
}

.jlh-step__court {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--jl-accent);
}

.jlh-step__text {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--jl-muted);
}

.jlh-step__age {
    margin-top: auto;
    font-size: 12px;
    color: var(--jl-muted);
    opacity: .75;
}

.jlh-footnote {
    margin: 16px 0 0;
    font-size: 13px;
    color: var(--jl-muted);
    opacity: .85;
}

.jlh-parents {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 48px;
    padding: 34px;
    border: 1px solid var(--jl-line-soft);
    border-radius: 24px;
    background: linear-gradient(160deg, rgb(255 255 255 / 3%), transparent 55%), var(--jl-surface);
}

.jlh-parents__intro p {
    max-width: 42ch;
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--jl-muted);
}

.jlh-parents__intro .jlh-head__link {
    margin-top: 18px;
}

.jlh-flow {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.jlh-flow li {
    position: relative;
    padding: 18px 0 18px 42px;
    border-top: 1px solid var(--jl-line-soft);
}

.jlh-flow li:first-child {
    padding-top: 0;
    border-top: 0;
}

.jlh-flow li:last-child {
    padding-bottom: 0;
}

.jlh-flow__index {
    position: absolute;
    top: 19px;
    left: 0;
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: .08em;
    color: var(--jl-accent);
}

.jlh-flow li:first-child .jlh-flow__index {
    top: 1px;
}

.jlh-flow h3 {
    margin: 0 0 4px;
    font-size: 16px;
}

.jlh-flow p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--jl-muted);
}

.jlh-parents__note {
    margin: 24px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--jl-line-soft);
    font-size: 13px;
    line-height: 1.6;
    color: var(--jl-muted);
    opacity: .9;
}

.jlh-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-top: var(--jlh-gap);
    padding: 32px;
    border: 1px solid rgb(166 130 74 / 38%);
    border-radius: 24px;
    background:
        radial-gradient(90% 160% at 0% 0%, rgb(166 130 74 / 18%), transparent 58%),
        linear-gradient(135deg, #063826, #001a11);
}

.jlh-cta h2 {
    margin: 0 0 8px;
}

.jlh-cta p {
    max-width: 58ch;
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--jl-muted);
}

.jlh-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.jl-button.jl-button--ghost {
    background: transparent;
    border: 1px solid rgb(166 130 74 / 55%);
    color: var(--jl-accent)!important;
    box-shadow: none;
}

.jlh-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

@media(hover:hover) and (pointer:fine) {
    .jlh-head__link:hover span,
    .jlh-board__link:hover span {
        transform: translateX(3px);
    }

    .jlh-event:hover {
        transform: translateY(-3px);
        border-color: rgb(166 130 74 / 38%);
        box-shadow: 0 22px 40px -32px rgb(0 0 0 / 95%);
    }

    .jlh-event:hover .jlh-event__go {
        background: rgb(166 130 74 / 12%);
        transform: translateX(2px);
    }

    .jlh-event__body h3 a:hover,
    .jlh-head__link:hover,
    .jlh-board__link:hover {
        color: #d9b982;
        text-decoration: underline;
        text-underline-offset: 4px;
    }

    .jlh-step:hover {
        transform: translateY(-2px);
        border-color: rgb(166 130 74 / 30%);
    }

    .jl-button.jl-button--ghost:hover {
        background: rgb(166 130 74 / 12%);
        box-shadow: none;
    }
}

@keyframes jlh-fade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes jlh-rise {
    from {
        opacity: 0;
        transform: translateY(18px) scale(.985);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.jlh-hero__copy > * {
    animation: jlh-fade 560ms var(--jl-ease) both;
}

.jlh-hero__copy > :nth-child(2) {
    animation-delay: 40ms;
}

.jlh-hero__copy > :nth-child(3) {
    animation-delay: 80ms;
}

.jlh-hero__copy > :nth-child(4) {
    animation-delay: 120ms;
}

.jlh-hero__copy > :nth-child(5) {
    animation-delay: 160ms;
}

.jlh-panel {
    animation: jlh-rise 640ms var(--jl-ease) 120ms both;
}

@media(width <= 1000px) {
    .jlh-hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .jlh-panel {
        max-width: 560px;
    }

    .jlh-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .jlh-events {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .jlh-parents {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }
}

@media(width <= 760px) {
    .jl--home {
        padding-inline: 20px;
    }

    .jlh-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .jlh-events {
        grid-template-columns: minmax(0, 1fr);
    }

    .jlh-empty {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        padding: 24px;
    }

    .jlh-empty__art {
        order: -1;
        max-width: 220px;
    }

    .jlh-parents {
        padding: 24px;
    }

    .jlh-cta {
        padding: 24px;
    }
}

@media(width <= 560px) {
    .jl--home {
        padding-inline: 16px;
        margin-block: 0 16px;
    }

    .jlh {
        --jlh-gap: 48px;
    }

    .jlh-hero {
        padding-top: 20px;
    }

    .jlh-hero__actions .jl-button {
        width: 100%;
    }

    .jlh-panel {
        padding: 22px 20px;
    }

    .jlh-path__item {
        grid-template-columns: 9px minmax(72px, auto) minmax(44px, 1fr) auto;
        gap: 8px;
    }

    .jlh-path__name {
        font-size: 12px;
        white-space: nowrap;
    }

    .jlh-path__size {
        min-width: 0;
        font-size: 10px;
        text-align: right;
    }

    .jlh-steps {
        grid-template-columns: minmax(0, 1fr);
    }

    .jlh-step {
        padding: 22px 20px 18px;
    }

    .jlh-event {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .jlh-event__go {
        display: none;
    }

    .jlh-empty__art {
        display: none;
    }

    .jlh-board__table {
        min-width: 0;
    }

    .jlh-board__table th,
    .jlh-board__table td {
        padding: 14px 10px;
    }

    .jlh-board__table td:first-child,
    .jlh-board__table th:first-child {
        width: 52px;
    }

    .jlh-board__table th:nth-child(3),
    .jlh-board__table td:nth-child(3) {
        width: 88px;
        padding-right: 10px;
    }

    .jlh-board__count-col {
        display: none;
    }

    .jlh-board__count {
        display: block;
        margin-top: 2px;
        font-size: 12px;
        font-weight: 400;
        color: var(--jl-muted);
    }

    .jlh-cta__actions {
        width: 100%;
    }

    .jlh-cta__actions .jl-button {
        flex: 1;
    }
}

@media(prefers-reduced-motion:reduce) {
    .jlh-hero__copy > *,
    .jlh-panel {
        animation: none;
    }

    .jlh-event,
    .jlh-step,
    .jlh-head__link span,
    .jlh-event__go,
    .jlh-path__track i {
        transition: none;
    }

    .jlh-event:hover,
    .jlh-step:hover,
    .jlh-event:hover .jlh-event__go {
        transform: none;
    }
}

.jl-check {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    cursor: pointer;
}

.jl-check input {
    flex-shrink: 0;
}

.jl ol {
    list-style: decimal;
    padding-left: 20px;
}

.jl details {
    margin-block: 16px;
}

.jl summary {
    cursor: pointer;
    min-height: 44px;
    display: list-item;
    align-content: center;
    font-weight: 600;
}

.jl form>button:not(.jl-button) {
    background: var(--color-bg-elevated);
    color: var(--jl-accent);
    border: 1px solid var(--jl-line);
    padding: 10px 14px;
    border-radius: 10px;
    min-height: 44px;
}

.jl-nav>a:not(.jl-brand) {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

@media(width <=640px) {
    .jl-nav .jl-brand {
        flex-basis: 100%;
    }

    .jl-nav {
        gap: 4px 18px;
    }

    .jl-nav>a:not(.jl-brand) {
        font-size: 14px;
    }

    .jl-actions .jl-button {
        max-width: 100%;
    }
}

.jl input:not([type="checkbox"]), .jl select, .jl textarea {
    font-size: 16px;
}


.jl-filter input[type="checkbox"] { width: 20px;
    min-height: 20px;
    height: 20px;
    display: block;
    accent-color: var(--jl-accent); }

.jl .errorlist {
    color: #ffbdb5;
    margin-block: 8px;
    font-size: 14px;
}
.jl h1, .jl-card, .jl-note { overflow-wrap: anywhere; }
.jl-button:focus-visible:active { transform: none; }

/* Тёмные поверхности и золотые акценты общей палитры платформы. */
.jl h2, .jl h3, .jl summary, .jl-stat strong {
    color: var(--jl-ink);
}

.jl-nav>a:not(.jl-brand), .jl-link {
    color: var(--jl-accent);
}


.jl-table thead {
    background: var(--color-bg-elevated);
}

.jl input::placeholder, .jl textarea::placeholder {
    color: var(--jl-muted);
    opacity: 1;
}


.jl-rules-heading {
    max-width: 850px;
}

.jl-rules-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.jl-rule-card {
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.jl-rule-number {
    color: var(--jl-accent);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    letter-spacing: .12em;
}

.jl-rule-card h2 {
    text-transform: none;
}

.jl-rule-card p + p, .jl-rules-heading p + p, .jl-rules-sources p + p {
    margin-top: 16px;
}

.jl-rule-card .jl-rule-footer {
    margin-top: auto;
    padding-top: 20px;
    font-size: 14px;
    color: var(--jl-muted);
}

.jl-ball-guide {
    margin-block: 16px 0;
}

.jl-ball-guide>div + div {
    margin-top: 12px;
}

.jl-ball-guide dd {
    margin: 6px 0 0;
    font-size: 14px;
}

.jl-rules-sources a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.jl-rules-sources .jl-link {
    display: inline-block;
    margin-top: 16px;
}

@media(width <= 1000px) {
    .jl-rules-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media(width <= 640px) {
    .jl-rules-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Семейный профиль */
.jl-profile-identity {
    display: flex;
    align-items: center;
    gap: 22px;
    min-width: 0;
}

.jl-profile-identity h1 { overflow-wrap: anywhere; }

.jl-profile-photo {
    width: 96px;
    height: 96px;
    flex: 0 0 96px;
    border-radius: 24px;
    object-fit: cover;
    border: 1px solid var(--jl-line);
}

.jl-profile-photo--empty {
    display: grid;
    place-items: center;
    background: var(--jl-surface);
    color: var(--color-primary);
    font-size: 36px;
    font-weight: 700;
}

.jl-family-photo { object-fit: cover; }

.jl-profile-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
    flex-shrink: 0;
}

.jl-badge.jl-badge--verified {
    color: #a7f3c2;
    background: #10452f;
    border-color: #3ca671;
    font-weight: 600;
    padding: 9px 14px;
}

.jl-badge--verified svg { color: #57df91; flex-shrink: 0; }
.jl-profile-data { max-width: 760px; }
.jl-profile-data > p { margin-top: 20px; }
.jl-photo-editor { display: grid; gap: 16px; padding-block: 16px; border-block: 1px solid var(--jl-line); }
.jl-photo-editor input[type="file"] { max-width: 100%; }
.jl-profile-settings { border-top: 1px solid var(--jl-line); padding-top: 20px; }
.jl-profile-settings > summary { color: var(--color-primary); cursor: pointer; font-weight: 600; padding-block: 12px; }
.jl-settings-body { display: grid; gap: 28px; padding-top: 20px; max-width: 760px; }
.jl-settings-body h2 { font-size: 20px; }
.jl-settings-body details { margin-block: 16px; }
.jl-switch { display: flex; align-items: center; gap: 12px; cursor: pointer; position: relative; }
.jl-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.jl-switch-track { flex: 0 0 42px; height: 24px; border: 1px solid var(--jl-line); background: var(--jl-surface); border-radius: 20px; padding: 3px; }
.jl-switch-track::before { content: ""; display: block; width: 16px; height: 16px; background: #c0c0c0; border-radius: 50%; transition: transform 160ms ease-out; }
.jl-switch input:checked + .jl-switch-track { background: #10452f; border-color: #3ca671; }
.jl-switch input:checked + .jl-switch-track::before { transform: translateX(18px); background: #57df91; }
.jl-switch input:focus-visible + .jl-switch-track { outline: 2px solid var(--color-primary); outline-offset: 3px; }

@media (width <= 768px) {
    .jl-profile-heading { align-items: flex-start; }
    .jl-profile-identity { align-items: flex-start; gap: 14px; }
    .jl-profile-photo { width: 72px; height: 72px; flex-basis: 72px; border-radius: 18px; }
    .jl-profile-actions { align-items: flex-start; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .jl-switch-track::before { transition: none; }
}

/* Матчи семьи: те же зелёные поверхности и золотые действия, что у платформы. */
.jl-match-tabs, .jl-match-crumbs { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-block: 24px; }
.jl-match-tabs a { padding: 10px 18px; border: 1px solid var(--jl-line); border-radius: 10px; text-decoration: none; }
.jl-match-tabs a[aria-current="page"] { background: var(--jl-accent); color: var(--jl-gold-ink); font-weight: 700; }
.jl-match-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.jl-match-card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.jl-match-card h2, .jl-match-card p { margin: 0; }
.jl-match-card .jl-button { margin-top: auto; }
.jl-match-score { font-size: clamp(28px, 5vw, 48px); font-weight: 750; letter-spacing: -.03em; }
.jl-match-entry { max-width: 760px; }
.jl-match-crumbs a, .jl-match-tabs a, .jl-match-card .jl-button { min-height: 44px; display: inline-flex; align-items: center; }
.jl-match-tabs a:focus-visible, .jl-match-crumbs a:focus-visible { outline: 2px solid var(--jl-accent); outline-offset: 4px; }
@media (width <= 700px) { .jl-match-grid { grid-template-columns: minmax(0, 1fr); } .jl-match-card .jl-button { width: 100%; } }

.jl-match-card h2, .jl-heading h1 { overflow-wrap: anywhere; }

/* Единые отступы форм, компактные переключатели и иерархия действий. */
.jl .jl-button-outline {
    background: transparent;
    border: 1px solid var(--jl-line-strong);
    color: var(--jl-accent) !important;
}

.jl .jl-button-sm { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.jl button.jl-link { background: transparent; border: 0; padding: 8px 0; color: var(--jl-accent); font: inherit; text-align: left; cursor: pointer; }
.jl-actions { gap: 12px; }
.jl-actions > form { margin: 0; }
.jl-card > .jl-actions:first-child { margin-top: 0; }
.jl-actions > a:not(.jl-button) { display: inline-flex; align-items: center; min-height: 46px; padding-inline: 8px; }
.jl-form > .jl-button, .jl-form > .jl-link { margin-top: 20px; }
.jl-form > label:not(.jl-check):not(.jl-switch) { display: grid; gap: 8px; margin-block: 16px; font-weight: 600; }
.jl-form > label:not(.jl-check):not(.jl-switch) > input,
.jl-form > label:not(.jl-check):not(.jl-switch) > select,
.jl-form > label:not(.jl-check):not(.jl-switch) > textarea {
    width: 100%; min-height: 46px; padding: 11px 12px;
    border: 1px solid var(--jl-line); border-radius: 10px;
    background: var(--jl-surface); color: var(--jl-ink); font: inherit;
}
.jl-form .jl-check { flex-direction: row; align-items: flex-start; gap: 10px; padding-block: 10px; font-weight: 400; line-height: 1.5; }
.jl .jl-check input[type="checkbox"] {
    flex: 0 0 20px; width: 20px; height: 20px; min-height: 20px;
    padding: 0; margin: 2px 0 0; accent-color: var(--jl-accent); cursor: pointer;
}
.jl .jl-check span { min-width: 0; }
.jl .jl-check { text-align: left; }
.jl-form > .jl-switch { margin-block: 20px; }
.jl-table td details { min-width: 200px; white-space: normal; }
.jl-table td .jl-form { width: min(320px, 100%); padding-block: 8px; }
.jl-table td > form { margin-block: 8px; }
.jl-match-crumbs { gap: 10px; font-size: 14px; }
.jl-crumb-current { display: inline-flex; align-items: center; min-height: 44px; color: var(--jl-muted); }
.jl-crumb-current::before { content: "/"; margin-right: 10px; opacity: .6; }
.jl-match-tabs + .jl-card { scroll-margin-top: 100px; }
.jl [id^="tournament-"] { scroll-margin-top: 100px; }

.jl-filter.jl-filter-panel { display: block; padding: 20px; border: 1px solid var(--jl-line); border-radius: 16px; background: var(--jl-surface); margin-block: 24px; }
.jl-filter-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.jl-filter-fields > .jl-field, .jl-filter-fields > label { min-width: 0; margin: 0; }
.jl-filter-fields > label { display: flex; flex-direction: column; gap: 8px; font-size: 12px; }
.jl-filter-fields .jl-field label { font-size: 12px; font-weight: 500; }
.jl-filter-fields input:not([type="checkbox"]), .jl-filter-fields select { margin-top: 0; }
.jl-tournament-filter-fields { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.jl-tournament-filter-fields > .jl-field { grid-column: span 3; }
.jl-tournament-filter-fields > .jl-field:nth-child(n+5) { grid-column: span 4; }
.jl-filter-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--jl-line); }
.jl-filter-footer--end { justify-content: flex-end; }
.jl-filter-footer .jl-check { gap: 10px; margin: 0; font-size: 14px; }
.jl-filter-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.jl-filter-actions .jl-button { min-height: 46px; }
.jl-tournament-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.jl-tournament-card { display: flex; flex-direction: column; }
.jl-tournament-card h2 { overflow-wrap: anywhere; }
.jl-tournament-footer { display: grid; gap: 12px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--jl-line); }
.jl-tournament-footer p { margin: 0; }
.jl-tournament-footer .jl-link { display: inline-flex; align-items: center; min-height: 44px; }

@media (hover: hover) and (pointer: fine) {
    .jl .jl-button-outline:hover { background: var(--color-primary-transparent); box-shadow: none; }
}
@media (width <= 900px) {
    .jl-filter-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .jl-tournament-filter-fields > .jl-field,
    .jl-tournament-filter-fields > .jl-field:nth-child(n+5) { grid-column: span 1; }
}
@media (width <= 640px) {
    .jl-filter.jl-filter-panel { padding: 16px; }
    .jl-filter-fields { grid-template-columns: minmax(0, 1fr); }
    .jl-tournament-filter-fields > .jl-field:nth-child(n+5) { grid-column: span 1; }
    .jl-filter-footer { flex-direction: column; align-items: stretch; }
    .jl-filter-actions { width: 100%; }
    .jl-filter-actions > .jl-button { flex: 1; }
    .jl-form > .jl-actions { align-items: stretch; }
    .jl-form > .jl-actions > .jl-button { width: 100%; }
    .jl-profile-actions > .jl-button { width: 100%; }
}

.jl-tournament-grid > .jl-empty { grid-column: 1 / -1; }

.jl-launch-note { margin-block:24px; padding:16px 20px; border:1px solid var(--jl-line); border-left:3px solid var(--jl-accent); border-radius:12px; background:var(--color-primary-transparent); }
.jl-launch-note strong { color:var(--jl-accent); }
.jl-launch-note p { margin:6px 0 0; font-size:14px; }
.jl-launch-note a { text-decoration:underline; text-underline-offset:3px; }

/* Навигация лиги: кнопки, активный раздел и равномерная сетка на телефоне. */
.jl-nav {
    gap: 16px;
}

.jl-nav-links {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    gap: 8px;
    min-width: 0;
}

.jl .jl-nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 13px;
    border: 1px solid var(--jl-line-strong);
    border-radius: 10px;
    background: var(--jl-surface);
    color: var(--jl-accent);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 4%);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    transition: transform 180ms cubic-bezier(.23, 1, .32, 1),
        background-color 180ms ease, border-color 180ms ease,
        box-shadow 180ms ease, color 180ms ease;
    -webkit-tap-highlight-color: transparent;
}

.jl .jl-nav-link[aria-current] {
    background: var(--jl-accent);
    border-color: var(--jl-accent);
    color: var(--color-bg);
    box-shadow: 0 3px 12px rgb(166 130 74 / 16%);
}

@media (hover: hover) and (pointer: fine) {
    .jl .jl-nav-link:hover {
        transform: translateY(-2px);
        background-color: var(--color-bg-elevated);
        border-color: var(--jl-accent);
        box-shadow: 0 6px 16px rgb(0 0 0 / 18%);
    }

    .jl .jl-nav-link[aria-current]:hover {
        background-color: color-mix(in srgb, var(--jl-accent) 88%, white);
    }
}

.jl .jl-nav-link:active {
    transform: scale(.97);
}

.jl .jl-nav-link:focus-visible {
    outline: 2px solid var(--jl-accent);
    outline-offset: 3px;
    transition: none;
}

@media (width <= 1100px) {
    .jl-nav .jl-brand {
        flex-basis: 100%;
    }

    .jl-nav-links {
        width: 100%;
        grid-auto-flow: row;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-auto-rows: 1fr;
    }

    .jl-nav-links--guest {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (width <= 640px) {
    .jl-nav-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .jl .jl-nav-link {
        min-height: 48px;
        padding: 10px 8px;
        overflow-wrap: anywhere;
    }
}

@media (prefers-reduced-motion: reduce) {
    .jl .jl-nav-link {
        transition: none;
    }

    .jl .jl-nav-link:hover,
    .jl .jl-nav-link:active {
        transform: none;
    }
}


/* Эмблема и надпись Kids вместо текстового бренда внутри детской лиги. */
.jl-nav .jl-brand {
    flex-wrap: nowrap;
    gap: 10px;
    min-width: 0;
}

.jl-brand-emblem {
    display: block;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgb(0 12 7 / 25%));
}

.jl-brand-wordmark {
    display: block;
    flex: 0 0 72px;
    width: 72px;
    height: 40px;
    object-fit: contain;
}

.jl-nav .jl-brand > span:last-child {
    white-space: nowrap;
}

@media (width <= 640px) {
    .jl-nav .jl-brand {
        gap: 8px;
    }

    .jl-brand-emblem {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
    }

    .jl-brand-wordmark {
        flex-basis: 64px;
        width: 64px;
        height: 36px;
    }

    .jl-nav .jl-brand > span:last-child {
        padding-left: 8px;
    }
}
