/* Rikoooo premium footer. Loaded after the legacy footer foundation.
   Aviation surfaces, typography and proportions harmonised 2026-09-12. */

/* Native newsletter form shares the existing footer panel; no nested painted card. */
html body #tm-block-footer .riko-newsletter-footer-module .rkn-footer {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: none;
    margin: 0;
    color: var(--riko-on-brand);
}

html body #tm-block-footer .rkn-footer > p,
html body #tm-block-footer .rkn-footer .rkn-muted {
    color: var(--riko-on-brand-muted);
    font-size: 12px;
    line-height: 1.5;
    margin: 10px 0;
}

html body #tm-block-footer .rkn-footer .rkn-form {
    display: grid;
    gap: 12px;
    margin-top: 16px !important;
}

html body #tm-block-footer .rkn-footer .rkn-field { margin: 0; }
html body #tm-block-footer .rkn-footer .rkn-field > label,
html body #tm-block-footer .rkn-footer .rkn-consent > span {
    color: var(--riko-on-brand);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
}

html body #tm-block-footer .rkn-footer .rkn-consent {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 9px;
}

html body #tm-block-footer .rkn-footer .rkn-consent input {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin-top: 1px;
}

html body #tm-block-footer .rkn-footer .rkn-button { width: 100%; }
html body #tm-block-footer .rkn-footer :focus-visible { outline-color: var(--riko-focus-on-brand); }

html body #tm-block-footer,
html body #tm-footer {
    --riko-footer-rail: 1520px;
    --riko-footer-deep: var(--riko-brand-deep);
    --riko-footer-mid: var(--riko-brand);
    --riko-footer-cyan: var(--riko-brand-end);
    --riko-footer-ink: var(--riko-on-brand);
    --riko-footer-muted: var(--riko-on-brand-muted);
}

html body #tm-block-footer {
    width: 100% !important;
    margin: 24px 0 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

html body #tm-block-footer > .uk-container,
html body #tm-block-footer > .uk-container > section {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

html body #tm-block-footer > .uk-container > section.tm-block-footer {
    position: relative !important;
    isolation: isolate;
    display: grid !important;
    width: calc(100% - 32px) !important;
    max-width: var(--riko-footer-rail) !important;
    grid-template-columns: minmax(0, 2.8fr) minmax(340px, 1fr) !important;
    gap: 0 !important;
    align-items: stretch !important;
    margin: 0 auto !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    border: 1px solid color-mix(in srgb, var(--riko-line) 18%, transparent) !important;
    border-radius: 18px 18px 0 0 !important;
    background:
        linear-gradient(112deg, var(--riko-brand-deep) 0%, var(--riko-brand-deep) 55%, var(--riko-footer-cyan) 100%) !important;
    /* Keep photographs beneath their veil, inside the translucent border. */
    background-clip: padding-box !important;
    box-shadow:
        0 12px 28px color-mix(in srgb, var(--riko-brand-deep) 10%, transparent),
        inset 0 1px 0 color-mix(in srgb, var(--riko-inverse) 8%, transparent) !important;
}

html body #tm-block-footer > .uk-container > section.tm-block-footer::before,
html body #tm-block-footer > .uk-container > section.tm-block-footer::after {
    display: none !important;
    content: none !important;
}

html body #tm-block-footer > .uk-container > section.tm-block-footer > [class*="uk-width"] {
    float: none !important;
    flex: none !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

html body #tm-block-footer > .uk-container > section.tm-block-footer > [class*="uk-width"] > .uk-panel-box {
    width: 100% !important;
    min-height: 100% !important;
    box-sizing: border-box !important;
}

html body #tm-block-footer .uk-panel-box {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body #tm-block-footer .riko-footer-shell.wrapperrik {
    position: relative !important;
    isolation: isolate;
    display: grid !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    min-height: 236px;
    grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(135px, 0.9fr)) !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 30px 26px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: var(--riko-footer-ink) !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body #tm-block-footer .riko-footer-shell.wrapperrik::before {
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
    display: block !important;
    background-image: url('../images/home-airframe.svg') !important;
    background-position: left -100px bottom -85px !important;
    background-size: 700px auto !important;
    background-repeat: no-repeat !important;
    content: "" !important;
    opacity: 0.35 !important;
    pointer-events: none !important;
    -webkit-mask-image: linear-gradient(90deg, #000, rgba(0, 0, 0, 0.7) 48%, transparent 78%) !important;
    mask-image: linear-gradient(90deg, #000, rgba(0, 0, 0, 0.7) 48%, transparent 78%) !important;
}

html body #tm-block-footer .riko-footer-shell.wrapperrik::after {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    background:
        linear-gradient(164deg, transparent 0 57%, color-mix(in srgb, var(--riko-inverse) 8%, transparent) 57.2%, transparent 57.6%),
        linear-gradient(90deg, color-mix(in srgb, var(--riko-inverse) 2.5%, transparent), transparent 34%);
    content: "";
    pointer-events: none;
}

html body #tm-block-footer .riko-footer-shell.wrapperrik > * {
    position: relative !important;
    z-index: 1 !important;
    min-width: 0;
    box-sizing: border-box;
}

html body #tm-block-footer .riko-footer-brand {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0 26px 0 0 !important;
    border: 0 !important;
    background: transparent !important;
}

html body #tm-block-footer .riko-footer-badge {
    display: inline-flex !important;
    width: max-content !important;
    max-width: 100%;
    min-height: 20px !important;
    align-items: center;
    margin: 0 0 12px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: var(--riko-on-brand-muted) !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 10.5px !important;
    font-weight: 820 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    text-transform: uppercase;
}

html body #tm-block-footer .riko-footer-brand h2 {
    display: block !important;
    max-width: 520px !important;
    margin: 0 0 9px !important;
    color: var(--riko-on-brand) !important;
    font-size: 23px !important;
    font-weight: 750 !important;
    line-height: 1.22 !important;
    letter-spacing: 0 !important;
    text-shadow: none !important;
}

html body #tm-block-footer .riko-footer-brand p {
    display: block !important;
    max-width: 570px !important;
    margin: 0 !important;
    color: var(--riko-footer-muted) !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.55 !important;
    letter-spacing: 0 !important;
}

html body #tm-block-footer .riko-footer-actions {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px !important;
    margin: 17px 0 0 !important;
}

html body #tm-block-footer .riko-footer-actions > a.riko-footer-cta,
html body #tm-block-footer .riko-footer-actions > a.riko-footer-secondary {
    display: inline-flex !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 42px !important;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 0 15px !important;
    border-radius: 8px !important;
    font-size: 12.5px !important;
    font-weight: 830 !important;
    line-height: 1.1 !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
}

html body #tm-block-footer .riko-footer-actions > a.riko-footer-cta {
    border: 1px solid color-mix(in srgb, var(--riko-action) 50%, transparent) !important;
    color: var(--riko-action-contrast) !important;
    background: var(--riko-action) !important;
    box-shadow: none !important;
}

html body #tm-block-footer .riko-footer-actions > a.riko-footer-secondary {
    border: 1px solid color-mix(in srgb, var(--riko-line) 28%, transparent) !important;
    color: var(--riko-on-brand) !important;
    background: color-mix(in srgb, var(--riko-inverse) 6.5%, transparent) !important;
    box-shadow: inset 0 1px 0 color-mix(in srgb, var(--riko-inverse) 5.5%, transparent) !important;
}

html body #tm-block-footer .riko-footer-actions > a:hover,
html body #tm-block-footer .riko-footer-actions > a:focus {
    transform: translateY(-1px);
}

html body #tm-block-footer .riko-footer-column {
    display: block !important;
    align-self: stretch;
    padding: 2px 18px 0 !important;
    border: 0 !important;
    border-left: 1px solid color-mix(in srgb, var(--riko-line) 17%, transparent) !important;
    background: transparent !important;
}

html body #tm-block-footer .riko-footer-column h3 {
    margin: 0 0 11px !important;
    color: var(--riko-on-brand-muted) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    text-transform: uppercase !important;
}

html body #tm-block-footer .riko-footer-list {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 4px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

html body #tm-block-footer .riko-footer-list li {
    margin: 0 !important;
    padding: 0 !important;
}

html body #tm-block-footer .riko-footer-list a {
    position: relative !important;
    display: flex !important;
    min-height: 42px !important;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    margin: 0 !important;
    padding: 7px 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: var(--riko-on-brand) !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
}

html body #tm-block-footer .riko-footer-list a::after {
    display: none !important;
    content: none !important;
}

html body #tm-block-footer .riko-footer-list a span {
    display: block !important;
    color: var(--riko-on-brand-muted) !important;
    font-size: 11.5px !important;
    font-weight: 400 !important;
    line-height: 1.45 !important;
    letter-spacing: 0 !important;
}

html body #tm-block-footer .riko-footer-list a:hover,
html body #tm-block-footer .riko-footer-list a:focus {
    border-left-color: var(--riko-focus-on-brand) !important;
    color: var(--riko-focus-on-brand) !important;
    background: linear-gradient(90deg, color-mix(in srgb, var(--riko-on-brand-muted) 7%, transparent), transparent 72%) !important;
}

html body #tm-block-footer .riko-newsletter-footer-module {
    position: relative !important;
    display: flex !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 100% !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 30px 26px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    border: 0 !important;
    border-left: 1px solid color-mix(in srgb, var(--riko-line) 20%, transparent) !important;
    border-radius: 0 !important;
    color: var(--riko-footer-ink) !important;
    background:
        linear-gradient(150deg, color-mix(in srgb, var(--riko-inverse) 6.5%, transparent), color-mix(in srgb, var(--riko-brand-deep) 16%, transparent)) !important;
    box-shadow: inset 1px 0 0 color-mix(in srgb, var(--riko-inverse) 2.5%, transparent) !important;
}

html body #tm-block-footer .riko-newsletter-footer-module::before {
    position: absolute;
    inset: 0;
    background: url('../images/home-navigation.svg') right top / auto 100% no-repeat;
    opacity: 0.25;
    content: "";
    pointer-events: none;
}

html body #tm-block-footer .riko-newsletter-footer-module .acym_module,
html body #tm-block-footer .riko-newsletter-footer-module .acym_fulldiv,
html body #tm-block-footer .riko-newsletter-footer-module form,
html body #tm-block-footer .riko-newsletter-footer-module .acym_module_form {
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

html body #tm-block-footer .riko-newsletter-footer-module .acym_module_form {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 17px !important;
    align-content: center !important;
    align-items: stretch !important;
}

html body #tm-block-footer .riko-newsletter-inline__copy {
    gap: 6px !important;
}

html body #tm-block-footer .riko-newsletter-inline__kicker {
    color: var(--riko-on-brand-muted) !important;
    font-size: 10.5px !important;
    letter-spacing: 0.11em !important;
}

html body #tm-block-footer .riko-newsletter-inline__title {
    max-width: 18ch !important;
    color: var(--riko-on-brand) !important;
    font-size: 22px !important;
    line-height: 1.14 !important;
    letter-spacing: -0.02em !important;
}

html body #tm-block-footer .riko-newsletter-inline__text {
    max-width: 42ch !important;
    color: var(--riko-footer-muted) !important;
    font-size: 12.5px !important;
    line-height: 1.45 !important;
}

html body #tm-block-footer .riko-newsletter-footer-module .acym_form {
    gap: 9px !important;
}

html body #tm-block-footer .riko-newsletter-footer-module .onefield > label {
    color: color-mix(in srgb, var(--riko-on-brand-muted) 88%, transparent) !important;
    font-size: 11.5px !important;
}

html body #tm-block-footer .riko-newsletter-footer-module .fieldacyterms {
    height: auto !important;
}

html body #tm-block-footer .riko-newsletter-footer-module .fieldacyterms > label {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    color: var(--riko-footer-muted) !important;
    font-size: 11px !important;
    line-height: 1.5 !important;
}

html body #tm-block-footer .riko-newsletter-footer-module .fieldacyterms input[type="checkbox"] {
    display: inline-block !important;
    width: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    height: 18px !important;
    margin: 0 8px 0 0 !important;
    padding: 0 !important;
    vertical-align: -4px !important;
    accent-color: var(--riko-focus);
}

html body #tm-block-footer .riko-newsletter-footer-module .fieldacyterms a {
    display: inline !important;
    width: auto !important;
    color: var(--riko-on-brand-muted) !important;
    text-decoration: underline !important;
    text-underline-offset: 2px !important;
}

html body #tm-block-footer .riko-newsletter-footer-module input[type="email"] {
    min-height: 48px !important;
    border-color: color-mix(in srgb, var(--riko-line) 52%, transparent) !important;
    border-radius: 8px !important;
    background: var(--riko-surface) !important;
}

html body #tm-block-footer .riko-newsletter-footer-module .acym__subscription__form__termscond {
    color: var(--riko-footer-muted) !important;
    font-size: 11px !important;
}

html body #tm-block-footer .riko-newsletter-footer-module .acym__subscription__form__termscond a {
    color: var(--riko-on-brand-muted) !important;
}

html body #tm-block-footer .riko-newsletter-footer-module .acysubbuttons {
    width: 100% !important;
    margin: 0 !important;
}

html body #tm-block-footer .riko-newsletter-footer-module .subbutton {
    width: 100% !important;
    min-height: 46px !important;
    margin: 0 !important;
    border-radius: 8px !important;
    font-size: 13px !important;
}

html body #tm-footer {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 0 24px !important;
    background: transparent !important;
}

html body #tm-footer > .uk-container {
    display: flex !important;
    width: calc(100% - 32px) !important;
    max-width: var(--riko-footer-rail) !important;
    min-height: 42px !important;
    align-items: center;
    justify-content: center;
    margin: 0 auto !important;
    padding: 8px 16px !important;
    box-sizing: border-box;
    border: 0 !important;
    border-radius: 0 0 18px 18px !important;
    color: var(--riko-on-brand-muted) !important;
    background: var(--riko-brand-deep) !important;
    box-shadow: inset 0 1px 0 color-mix(in srgb, var(--riko-inverse) 5.5%, transparent) !important;
    font-size: 11.5px !important;
    font-weight: 400 !important;
    line-height: 1.25 !important;
    letter-spacing: 0 !important;
    text-align: center !important;
}

html body #tm-footer .uk-container > .uk-flex,
html body #tm-footer .tm-footer-left,
html body #tm-footer .tm-footer-left p {
    width: 100%;
    margin: 0 !important;
    text-align: center !important;
}

@media (max-width: 1180px) and (min-width: 701px) {
    html body #tm-block-footer .riko-footer-shell.wrapperrik {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        padding: 26px !important;
    }

    html body #tm-block-footer .riko-footer-brand {
        grid-column: 1 / -1 !important;
        padding: 0 0 24px !important;
        border-bottom: 1px solid color-mix(in srgb, var(--riko-line) 17%, transparent) !important;
    }

    html body #tm-block-footer .riko-footer-brand h2 {
        max-width: 720px !important;
        font-size: 26px !important;
    }

    html body #tm-block-footer .riko-footer-brand p {
        max-width: 760px !important;
    }

    html body #tm-block-footer .riko-footer-column {
        margin-top: 22px !important;
        padding: 0 20px !important;
    }

    html body #tm-block-footer .riko-footer-brand + .riko-footer-column {
        padding-left: 0 !important;
        border-left: 0 !important;
    }
}

@media (max-width: 1020px) and (min-width: 701px) {
    html body #tm-block-footer > .uk-container > section.tm-block-footer {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    html body #tm-block-footer .riko-newsletter-footer-module {
        padding: 28px 26px !important;
        border-top: 1px solid color-mix(in srgb, var(--riko-line) 20%, transparent) !important;
        border-left: 0 !important;
    }

    html body #tm-block-footer .riko-newsletter-footer-module .acym_module_form {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px 28px !important;
        align-items: start !important;
    }

    html body #tm-block-footer .riko-newsletter-footer-module .acym_introtext {
        grid-column: 1 !important;
        grid-row: 1 / span 2 !important;
    }

    html body #tm-block-footer .riko-newsletter-footer-module .acym_form {
        grid-column: 2 !important;
        grid-row: 1 !important;
    }

    html body #tm-block-footer .riko-newsletter-footer-module .acysubbuttons {
        grid-column: 2 !important;
        grid-row: 2 !important;
    }

    html body #tm-block-footer .riko-newsletter-footer-module .subbutton {
        min-width: 120px !important;
    }
}

@media (max-width: 700px) {
    html body #tm-block-footer > .uk-container > section.tm-block-footer {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    html body #tm-block-footer .riko-footer-shell.wrapperrik {
        width: 100% !important;
        max-width: none !important;
        min-height: 0 !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 0 !important;
        border-radius: 0 !important;
    }

    html body #tm-block-footer .riko-footer-shell.wrapperrik::before {
        background-position: center top -65px !important;
        background-size: 580px auto !important;
        opacity: 0.24 !important;
        -webkit-mask-image: linear-gradient(#000, transparent 65%) !important;
        mask-image: linear-gradient(#000, transparent 65%) !important;
    }

    html body #tm-block-footer .riko-footer-badge {
        padding: 0 9px !important;
    }

    html body #tm-block-footer .riko-footer-brand h2 {
        display: block !important;
        margin-bottom: 0 !important;
    }

    html body #tm-block-footer .riko-footer-brand p {
        display: none !important;
    }

    html body #tm-block-footer .riko-footer-actions {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        margin-top: 14px !important;
    }

    html body #tm-block-footer .riko-footer-actions > a.riko-footer-cta,
    html body #tm-block-footer .riko-footer-actions > a.riko-footer-secondary {
        width: 100% !important;
        min-height: 42px !important;
        padding: 0 9px !important;
        border-radius: 11px !important;
        font-size: 11.5px !important;
    }

    html body #tm-block-footer .riko-footer-shell.wrapperrik > .riko-footer-column,
    html body #tm-block-footer .riko-footer-shell.wrapperrik > .riko-footer-column:nth-of-type(1) {
        display: block !important;
        border-top: 1px solid color-mix(in srgb, var(--riko-line) 17%, transparent) !important;
    }

    html body #tm-block-footer .riko-footer-column h3 {
        margin-bottom: 6px !important;
    }

    html body #tm-block-footer .riko-footer-shell.wrapperrik > .riko-footer-column:nth-of-type(1) {
        margin-top: 10px !important;
        padding-top: 0 !important;
        border-top: 0 !important;
    }

    html body #tm-block-footer .riko-footer-shell.wrapperrik > .riko-footer-column:nth-of-type(1) h3,
    html body #tm-block-footer .riko-footer-shell.wrapperrik > .riko-footer-column:nth-of-type(1) .riko-footer-list li:nth-child(-n + 2) {
        display: none !important;
    }

    html body #tm-block-footer .riko-footer-shell.wrapperrik > .riko-footer-column:nth-of-type(1) .riko-footer-list {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    html body #tm-block-footer .riko-footer-shell.wrapperrik > .riko-footer-column:nth-of-type(1) .riko-footer-list a[href*="discord"] {
        align-items: center;
        border: 1px solid color-mix(in srgb, var(--riko-line) 20%, transparent) !important;
    }

    html body #tm-block-footer .riko-footer-list {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    html body #tm-block-footer .riko-footer-list a {
        min-height: 40px !important;
        justify-content: center;
        padding: 8px 20px 8px 0 !important;
        border: 0 !important;
        border-bottom: 1px solid color-mix(in srgb, var(--riko-line) 13%, transparent) !important;
        border-radius: 0 !important;
        background: transparent !important;
        font-size: 12px !important;
    }

    html body #tm-block-footer .riko-footer-list a::after {
        position: absolute !important;
        top: 50% !important;
        right: 2px !important;
        display: block !important;
        color: color-mix(in srgb, var(--riko-on-brand-muted) 48%, transparent) !important;
        content: ">" !important;
        transform: translateY(-50%) !important;
    }

    html body #tm-block-footer .riko-footer-list a span {
        display: none !important;
    }

    html body #tm-block-footer .riko-newsletter-footer-module {
        min-height: 0 !important;
        border-top: 1px solid color-mix(in srgb, var(--riko-line) 20%, transparent) !important;
        border-left: 0 !important;
    }

    html body #tm-block-footer .riko-newsletter-footer-module .acym_module_form {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    html body #tm-block-footer .riko-newsletter-inline__title {
        max-width: none !important;
    }

    html body #tm-block-footer .riko-newsletter-footer-module .subbutton {
        width: 100% !important;
    }

    html body #tm-footer {
        padding: 0 0 18px !important;
    }

}

@media (max-width: 380px) {
    html body #tm-block-footer .riko-footer-shell.wrapperrik {
        padding: 18px 15px !important;
    }

    html body #tm-block-footer .riko-footer-actions > a.riko-footer-cta,
    html body #tm-block-footer .riko-footer-actions > a.riko-footer-secondary {
        font-size: 11px !important;
    }

    html body #tm-block-footer .riko-footer-actions {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    html body #tm-block-footer .riko-footer-list {
        gap: 0 8px !important;
    }

    html body #tm-block-footer .riko-footer-list a {
        font-size: 11.5px !important;
    }
}

/* Mobile footer information architecture - Codex 2026-07-24.
   This final contract intentionally overrides the earlier compact fallback.
   Aviation update 2026-09-12: two useful link columns, no nested cards. */
@media (max-width: 700px) {
    html body #tm-block-footer {
        margin-top: 18px !important;
        padding-bottom: 0 !important;
    }

    html body #tm-block-footer > .uk-container > section.tm-block-footer {
        width: calc(100% - 16px) !important;
        max-width: calc(100% - 16px) !important;
        border-color: color-mix(in srgb, var(--riko-line) 22%, transparent) !important;
        border-radius: 16px 16px 0 0 !important;
        box-shadow:
            0 10px 24px color-mix(in srgb, var(--riko-brand-deep) 10%, transparent),
            inset 0 1px 0 color-mix(in srgb, var(--riko-inverse) 7%, transparent) !important;
    }

    html body #tm-block-footer .riko-footer-shell.wrapperrik {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        column-gap: 20px !important;
        padding: 22px 18px 18px !important;
    }

    html body #tm-block-footer .riko-footer-brand {
        grid-column: 1 / -1 !important;
        padding: 0 0 18px !important;
        border-bottom: 1px solid color-mix(in srgb, var(--riko-line) 17%, transparent) !important;
    }

    html body #tm-block-footer .riko-footer-badge {
        min-height: 20px !important;
        margin-bottom: 8px !important;
        padding-inline: 0 !important;
        border-radius: 0 !important;
        font-size: 10.5px !important;
        letter-spacing: 0.035em !important;
    }

    html body #tm-block-footer .riko-footer-brand h2 {
        max-width: none !important;
        margin: 0 !important;
        font-size: 20px !important;
        line-height: 1.25 !important;
        text-wrap: wrap;
    }

    html body #tm-block-footer .riko-footer-shell.wrapperrik .riko-footer-brand .riko-footer-actions {
        display: grid !important;
        width: 100% !important;
        grid-template-columns: minmax(0, 1fr) !important;
        flex-direction: column !important;
        gap: 8px !important;
        margin-top: 17px !important;
    }

    html body #tm-block-footer .riko-footer-shell.wrapperrik .riko-footer-brand .riko-footer-actions > a.riko-footer-cta,
    html body #tm-block-footer .riko-footer-shell.wrapperrik .riko-footer-brand .riko-footer-actions > a.riko-footer-secondary {
        width: 100% !important;
        max-width: none !important;
        min-height: 46px !important;
        justify-content: flex-start !important;
        padding: 0 16px !important;
        border-radius: 8px !important;
        font-size: 12.5px !important;
        line-height: 1.2 !important;
        text-align: left !important;
    }

    html body #tm-block-footer .riko-footer-actions > a.riko-footer-cta::after,
    html body #tm-block-footer .riko-footer-actions > a.riko-footer-secondary::after {
        margin-left: auto;
        content: "\203A";
        font-size: 22px;
        font-weight: 500;
        line-height: 1;
    }

    html body #tm-block-footer .riko-footer-shell.wrapperrik > .riko-footer-column,
    html body #tm-block-footer .riko-footer-shell.wrapperrik > .riko-footer-column:nth-of-type(1) {
        margin: 18px 0 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    html body #tm-block-footer .riko-footer-shell.wrapperrik > .riko-footer-column:nth-of-type(1) {
        grid-column: 1 / -1 !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    html body #tm-block-footer .riko-footer-column h3 {
        margin: 0 0 5px !important;
        color: var(--riko-on-brand-muted) !important;
        font-size: 11px !important;
        line-height: 1.2 !important;
        letter-spacing: 0.08em !important;
    }

    html body #tm-block-footer .riko-footer-list {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 0 !important;
    }

    html body #tm-block-footer .riko-footer-list li:last-child a {
        border-bottom: 0 !important;
    }

    html body #tm-block-footer .riko-footer-shell.wrapperrik .riko-footer-column .riko-footer-list a {
        min-height: 44px !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        padding: 10px 16px 10px 0 !important;
        border-bottom: 1px solid color-mix(in srgb, var(--riko-line) 12%, transparent) !important;
        color: color-mix(in srgb, var(--riko-on-brand) 96%, transparent) !important;
        font-size: 12.5px !important;
        line-height: 1.25 !important;
        text-align: left !important;
    }

    html body #tm-block-footer .riko-footer-list a::after {
        right: 1px !important;
        color: color-mix(in srgb, var(--riko-on-brand-muted) 60%, transparent) !important;
        content: "\203A" !important;
        font-size: 19px !important;
        font-weight: 500 !important;
    }

    html body #tm-block-footer .riko-footer-shell.wrapperrik > .riko-footer-column:nth-of-type(1) .riko-footer-list a[href*="discord"] {
        min-height: 46px !important;
        justify-content: center !important;
        padding: 0 38px 0 15px !important;
        border: 1px solid color-mix(in srgb, var(--riko-line) 22%, transparent) !important;
        border-radius: 8px !important;
        background: color-mix(in srgb, var(--riko-inverse) 5.5%, transparent) !important;
        font-size: 12.5px !important;
        text-align: left !important;
    }

    html body #tm-block-footer .riko-footer-shell.wrapperrik > .riko-footer-column:nth-of-type(1) .riko-footer-list a[href*="discord"]::after {
        right: 14px !important;
    }

    html body #tm-block-footer .riko-newsletter-footer-module {
        padding: 22px 18px 20px !important;
        border-top-color: color-mix(in srgb, var(--riko-line) 22%, transparent) !important;
        background:
            linear-gradient(150deg, color-mix(in srgb, var(--riko-inverse) 5.5%, transparent), color-mix(in srgb, var(--riko-brand-deep) 10%, transparent)) !important;
    }

    html body #tm-block-footer .riko-newsletter-footer-module .acym_module_form {
        gap: 12px !important;
    }

    html body #tm-block-footer .riko-newsletter-inline__copy {
        gap: 5px !important;
    }

    html body #tm-block-footer .riko-newsletter-inline__kicker {
        font-size: 9.5px !important;
        letter-spacing: 0.10em !important;
    }

    html body #tm-block-footer .riko-newsletter-inline__title {
        max-width: 21ch !important;
        font-size: 20px !important;
        line-height: 1.15 !important;
        text-wrap: balance;
    }

    html body #tm-block-footer .riko-newsletter-inline__text {
        max-width: 44ch !important;
        font-size: 12px !important;
        line-height: 1.45 !important;
    }

    html body #tm-block-footer .riko-newsletter-footer-module .acym_form {
        gap: 8px !important;
    }

    html body #tm-block-footer .riko-newsletter-footer-module .onefield > label {
        font-size: 11px !important;
    }

    html body #tm-block-footer .riko-newsletter-footer-module input[type="email"] {
        min-height: 48px !important;
        padding-inline: 13px !important;
        border-radius: 8px !important;
        font-size: 13px !important;
    }

    html body #tm-block-footer .riko-newsletter-footer-module .fieldacyterms > label {
        display: flex !important;
        min-height: 44px !important;
        align-items: flex-start !important;
        gap: 8px !important;
        padding: 8px 0 !important;
        font-size: 11px !important;
        line-height: 1.45 !important;
    }

    html body #tm-block-footer .riko-newsletter-footer-module .fieldacyterms input[type="checkbox"] {
        margin: 0 !important;
    }

    html body #tm-block-footer .riko-newsletter-footer-module .fieldacyterms a {
        display: inline-flex !important;
        min-height: 44px !important;
        align-items: center !important;
        margin-block: -8px !important;
    }

    html body #tm-block-footer .riko-newsletter-footer-module .subbutton {
        min-height: 48px !important;
        border-radius: 8px !important;
        font-size: 13px !important;
        font-weight: 830 !important;
    }

    html body #tm-footer {
        padding-bottom: 16px !important;
    }

    html body #tm-footer > .uk-container {
        width: calc(100% - 16px) !important;
        max-width: calc(100% - 16px) !important;
        min-height: 40px !important;
        padding: 8px 12px !important;
        border-radius: 0 0 16px 16px !important;
        font-size: 11px !important;
        line-height: 1.35 !important;
    }
}

@media (max-width: 360px) {
    html body #tm-block-footer > .uk-container > section.tm-block-footer {
        width: calc(100% - 12px) !important;
        max-width: calc(100% - 12px) !important;
        border-radius: 14px 14px 0 0 !important;
    }

    html body #tm-block-footer .riko-footer-shell.wrapperrik,
    html body #tm-block-footer .riko-newsletter-footer-module {
        padding-right: 15px !important;
        padding-left: 15px !important;
    }

    html body #tm-block-footer .riko-footer-brand h2 {
        font-size: 20px !important;
    }

    html body #tm-footer > .uk-container {
        width: calc(100% - 12px) !important;
        max-width: calc(100% - 12px) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html body #tm-block-footer a,
    html body #tm-block-footer input {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Keep keyboard focus distinct from hover on every footer surface. */
html body #tm-block-footer a:focus-visible,
html body #tm-block-footer input:focus-visible {
    outline: 2px solid var(--riko-focus-on-brand) !important;
    outline-offset: 3px !important;
}

@media (forced-colors: active) {
    html body #tm-block-footer .riko-footer-shell.wrapperrik::before,
    html body #tm-block-footer .riko-footer-shell.wrapperrik::after,
    html body #tm-block-footer .riko-newsletter-footer-module::before {
        display: none !important;
    }
}
