/* Reference artwork for the mobile homepage. Links stay in the page markup. */
@media (max-width: 900px) {
    .yh-home {
        --yh-mob-px: calc(100vw / 889);
        --yh-mob-bottom-height: max(44px, calc(122 * var(--yh-mob-px)));
    }

    .yh-home :is(.yh-mob-card, .yh-mob-tile).yh-mobile-only:not([hidden]) {
        display: block !important;
        min-height: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: none;
        box-shadow: none;
    }

    .yh-home :is(.yh-mob-card, .yh-mob-tile)::before {
        display: none;
    }

    .yh-home .yh-mob-art {
        display: block;
        width: 100%;
        height: auto;
        mix-blend-mode: normal;
    }

    .yh-home .yh-main {
        gap: calc(13 * var(--yh-mob-px));
    }

    .yh-home .yh-news-panel {
        padding: calc(5 * var(--yh-mob-px)) calc(20 * var(--yh-mob-px)) calc(17 * var(--yh-mob-px));
    }

    .yh-home .yh-news-panel .yh-panel-head {
        min-height: max(35px, calc(68 * var(--yh-mob-px)));
    }

    .yh-home .yh-portals {
        margin-block-start: calc(3 * var(--yh-mob-px));
    }

    .yh-home .yh-database {
        margin-block-start: calc(2 * var(--yh-mob-px));
    }

    .yh-home .yh-community {
        margin-block-start: calc(-4 * var(--yh-mob-px));
    }

    .yh-home :is(.yh-portals, .yh-database) .yh-panel-head {
        min-height: max(27px, calc(52 * var(--yh-mob-px)));
        padding-inline: calc(8 * var(--yh-mob-px));
    }

    .yh-home :is(.yh-portals, .yh-database) .yh-panel-head h2 {
        font-size: clamp(1rem, 3.55vw, 1.94rem);
    }

    .yh-home :is(.yh-portals .yh-section-note, .yh-database .yh-more) {
        font-size: clamp(.58rem, 2.02vw, 1.125rem);
    }

    .yh-home .yh-portals > .yh-card-grid {
        column-gap: calc(15 * var(--yh-mob-px));
        row-gap: calc(5 * var(--yh-mob-px));
    }

    .yh-home .yh-portals .yh-mob-card:nth-child(-n + 2) {
        margin-block-end: var(--yh-mob-px);
    }

    .yh-home .yh-mob-tile-grid {
        column-gap: calc(7 * var(--yh-mob-px));
    }

    .yh-home .yh-community > .yh-card-grid {
        grid-template-columns: minmax(0, 410fr) minmax(0, 411fr);
        column-gap: calc(12 * var(--yh-mob-px));
    }

    .yh-home :is(.yh-portals > .yh-card-grid, .yh-mob-tile-grid, .yh-community > .yh-card-grid) {
        margin-inline: calc(-1 * var(--yh-mob-px));
    }

    .yh-home .yh-hero-inner {
        padding-block-end: 0;
    }

    .yh-home .yh-enter.yh-mob-enter:not([hidden]) {
        position: relative;
        display: block !important;
        width: calc(355 * var(--yh-mob-px));
        min-height: 0;
        margin-block: auto calc(7 * var(--yh-mob-px));
        padding: 0;
        border: 0;
        border-radius: 0;
        background: none;
        box-shadow: none;
        outline: 0;
    }

    .yh-home .yh-bottom.yh-mob-bottom:not([hidden]) {
        grid-template-columns: 181fr 178fr 173fr 178fr 179fr;
        grid-template-rows: var(--yh-mob-bottom-height);
        gap: 0;
        min-height: 0;
        padding: 0 0 env(safe-area-inset-bottom, 0px);
        border: 0;
        background: #0b0d12 url("/ui-art/mob-bottom.png") center top / 100% auto no-repeat;
        box-shadow: none;
    }

    .yh-home .yh-mob-bottom a {
        position: relative;
        display: block;
        min-width: 0;
        filter: none;
    }

    .yh-home .yh-footer {
        min-height: calc(55 * var(--yh-mob-px));
        margin-bottom: calc(var(--yh-mob-bottom-height) + env(safe-area-inset-bottom, 0px));
    }

    .yh-home :is(.yh-mob-card, .yh-mob-tile):focus-visible,
    .yh-home .yh-enter.yh-mob-enter:focus-visible:not([hidden]),
    .yh-home .yh-mob-bottom a:focus-visible {
        outline: 2px solid var(--yh-rose);
        outline-offset: -2px;
    }
}
