/* Load after the landing page's inline styles and application-language.css.
   Retain the landing's warm cream, navy, orange and existing type hierarchy. */
.landing-page .nav-inner {
    flex-wrap: wrap;
    gap: 10px 16px;
}

.landing-page .nav-brand {
    flex: 0 1 auto;
    min-width: 0;
    min-height: 44px;
}

.landing-page .nav-brand img {
    flex-shrink: 0;
}

.landing-page .nav-inner > .application-language {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 0 auto;
    padding: 3px;
    border: 1px solid var(--rule);
    border-radius: 999px;
    background: var(--cream);
}

.landing-page .application-language > button[data-language] {
    flex: 1 1 auto;
    min-width: 44px;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--blue-900);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

.landing-page .application-language > button[data-language][aria-pressed="true"] {
    border-color: var(--blue-900);
    background: var(--blue-900);
    color: var(--cream-soft);
}

@media (hover: hover) {
    .landing-page .application-language > button[data-language][aria-pressed="false"]:hover {
        border-color: var(--blue-100);
        background: var(--blue-100);
        color: var(--blue-900);
    }
}

.landing-page .application-language > button[data-language]:focus-visible,
.landing-page .nav-brand:focus-visible,
.landing-page .btn-nav:focus-visible {
    outline: 2px solid var(--blue-600);
    outline-offset: 3px;
}

.landing-page .nav-inner > .btn-nav {
    flex: 0 1 auto;
    justify-content: center;
    min-width: 0;
    min-height: 44px;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
}

.landing-page .btn-primary .arrow {
    flex-shrink: 0;
}

/* Keep translated content in normal flow; break at spaces first, with a
   last-resort break for a word longer than the available column. */
.landing-page:lang(ru) :is(h1, h2, h3, p, summary, li, .eyebrow, .section-eyebrow, .how-eyebrow, .join-questions-eyebrow, .hero-cta-note, .foot-links) {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
}

.landing-page:lang(ru) :is(.btn-primary, .btn-secondary) {
    min-width: 0;
    min-height: 44px;
    max-width: 100%;
    height: auto;
    white-space: normal;
    overflow-wrap: anywhere;
}

.landing-page:lang(ru) :is(.hero-cta-wrap, .cta-buttons) {
    min-width: 0;
    max-width: 100%;
}

@media (max-width: 640px) {
    /* Brand and language stay together; the complete application label gets
       its own row rather than competing for narrow-phone space. */
    .landing-page .nav-inner {
        gap: 8px 12px;
        padding: 10px 16px;
    }

    .landing-page .nav-brand {
        flex: 1 1 0;
        gap: 8px;
    }

    .landing-page .nav-brand .wordmark {
        overflow-wrap: anywhere;
    }

    .landing-page .nav-inner > .application-language {
        margin-left: 0;
    }

    .landing-page .application-language > button[data-language] {
        padding-inline: 10px;
    }

    .landing-page .nav-inner > .btn-nav {
        flex: 1 1 100%;
        width: 100%;
        padding: 10px 12px;
        font-size: 14px;
    }
}

@media (forced-colors: active) {
    .landing-page .application-language > button[data-language][aria-pressed="true"] {
        border-color: Highlight;
        background: Highlight;
        color: HighlightText;
        forced-color-adjust: none;
    }

    .landing-page .application-language > button[data-language]:focus-visible,
    .landing-page .nav-brand:focus-visible,
    .landing-page .btn-nav:focus-visible {
        outline-color: Highlight;
    }
}
