/* ==========================================================================
   Listaibuk home gateway
   ========================================================================== */
.kn-home-gateway {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, .8fr);
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 14px;
    min-height: 0;
    margin: 14px 0 18px;
}

.kn-home-gateway__lead,
.kn-home-gateway__panel,
.kn-home-gateway__tiles .kn-home-gateway__tile {
    border: 1px solid rgba(255, 255, 255, .56);
    border-radius: 28px;
    box-shadow: var(--kn-shadow);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
}

.kn-home-gateway__lead {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 360px;
    overflow: hidden;
    padding: clamp(24px, 3vw, 44px);
    background:
        radial-gradient(circle at 12% 0, rgba(159, 179, 255, .30), transparent 34%),
        radial-gradient(circle at 100% 16%, rgba(227, 75, 215, .24), transparent 36%),
        linear-gradient(145deg, rgba(255, 255, 255, .72), rgba(239, 242, 255, .34) 48%, rgba(255, 236, 254, .22));
    color: var(--kn-ink);
}

.kn-home-gateway__lead::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 27px;
    border: 1px solid rgba(255, 255, 255, .64);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .78), inset 0 -30px 70px rgba(23, 40, 217, .05);
    pointer-events: none;
}

.kn-home-gateway__lead::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .3;
    background-image:
        linear-gradient(115deg, rgba(255, 255, 255, .68), transparent 32%),
        linear-gradient(290deg, rgba(23, 40, 217, .14), transparent 42%);
    pointer-events: none;
}

.kn-home-gateway__copy {
    position: relative;
    z-index: 1;
    max-width: min(680px, 62%);
}

.kn-home-gateway__art {
    position: absolute;
    z-index: 1;
    right: .5%;
    bottom: 2%;
    width: min(48%, 560px);
    pointer-events: none;
}

.kn-home-gateway__art img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 24px 28px rgba(23, 40, 217, .16));
}

.kn-home-gateway__badge {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    margin-bottom: clamp(14px, 2.1vh, 24px);
    padding: 0 18px;
    border: 1px solid rgba(23, 40, 217, .2);
    border-radius: 999px;
    background: rgba(23, 40, 217, .1);
    color: var(--kn-accent-strong);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .16em;
    line-height: 1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
    text-transform: uppercase;
}

.kn-home-gateway h1 {
    max-width: 760px;
    margin: 0 0 clamp(13px, 1.8vh, 22px) !important;
    color: var(--kn-ink) !important;
    font-size: clamp(30px, var(--kn-gateway-title-size, 44px), 58px) !important;
    font-weight: 950 !important;
    line-height: 1.02 !important;
    letter-spacing: 0 !important;
}

.kn-home-gateway__text {
    max-width: 650px;
    margin: 0 0 clamp(18px, 2.5vh, 30px);
    color: var(--kn-muted);
    font-size: clamp(15px, 1.2vw, 19px);
    font-weight: 650;
    line-height: 1.56;
}

.kn-home-gateway__text p {
    margin: 0;
    color: inherit;
    font: inherit;
}

.kn-home-gateway__text p + p {
    margin-top: .7em;
}

.kn-home-gateway__actions,
.kn-home-gateway__notes {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.kn-home-gateway__actions {
    margin-bottom: clamp(16px, 2.4vh, 28px);
}

.kn-home-gateway__actions a {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid rgba(23, 40, 217, .24);
    border-radius: 999px;
    color: var(--kn-accent-strong);
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none !important;
    transition: transform .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.kn-home-gateway__actions a::after {
    position: absolute;
    top: 0;
    left: -80%;
    width: 48%;
    height: 100%;
    content: "";
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .34), transparent);
    transform: skewX(-18deg);
    transition: left .5s ease;
}

.kn-home-gateway__actions a:first-child {
    border-color: transparent;
    background: linear-gradient(135deg, #113b9f, #1728d9 52%, #e34bd7);
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(23, 40, 217, .22), 0 10px 28px rgba(227, 75, 215, .14);
}

.kn-home-gateway__actions a:hover {
    transform: translateY(-2px);
    border-color: rgba(23, 40, 217, .44);
    box-shadow: 0 14px 28px rgba(23, 40, 217, .14);
}

.kn-home-gateway__actions a:hover::after {
    left: 130%;
}

.kn-home-gateway__actions a:first-child:hover {
    box-shadow: 0 18px 34px rgba(23, 40, 217, .26), 0 12px 30px rgba(227, 75, 215, .2);
}

.kn-home-gateway__actions a:nth-child(2):hover {
    background: rgba(255, 255, 255, .72);
}

.kn-home-gateway__actions svg {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    padding: 5px;
    border-radius: 50%;
    background: rgba(23, 40, 217, .1);
    transition: transform .2s ease, background-color .2s ease;
}

.kn-home-gateway__actions a:first-child svg {
    background: rgba(255, 255, 255, .18);
}

.kn-home-gateway__actions a:hover svg {
    transform: translateX(2px);
    background: rgba(23, 40, 217, .16);
}

.kn-home-gateway__actions a:first-child:hover svg {
    background: rgba(255, 255, 255, .26);
}

.kn-home-gateway__notes {
    color: var(--kn-muted);
    font-size: 13px;
    font-weight: 800;
}

.kn-home-gateway__notes span::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 7px;
    border-radius: 999px;
    background: #1728d9;
}

.kn-home-gateway__panel {
    position: relative;
    min-height: 0;
    overflow: hidden;
    padding: clamp(18px, 2.3vw, 30px);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .58)),
        linear-gradient(160deg, rgba(23, 40, 217, .08), rgba(227, 75, 215, .06));
}

.kn-home-gateway__panel::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .36;
    background-image:
        linear-gradient(rgba(255, 255, 255, .48) 1px, transparent 1px),
        linear-gradient(90deg, rgba(60, 60, 67, .1) 1px, transparent 1px);
    background-size: 38px 38px;
}

.kn-home-gateway__mini,
.kn-home-gateway__today {
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, .62);
    border-radius: 22px;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 16px 34px rgba(23, 40, 217, .10), inset 0 1px 0 rgba(255, 255, 255, .84);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
}

.kn-home-gateway__mini {
    max-width: 290px;
    margin: clamp(24px, 6vh, 70px) auto 0;
    padding: 20px;
}

.kn-home-gateway__mini > span,
.kn-home-gateway__today span {
    display: block;
    margin-bottom: 9px;
    color: var(--kn-accent-strong);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .14em;
    line-height: 1;
    text-transform: uppercase;
}

.kn-home-gateway__mini strong {
    display: block;
    margin-bottom: 14px;
    color: var(--kn-ink);
    font-size: 19px;
    font-weight: 950;
    line-height: 1.18;
}

.kn-home-gateway__mini div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.kn-home-gateway__mini-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 11px;
    background: rgba(255, 255, 255, .82);
    color: var(--kn-ink);
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    text-decoration: none !important;
    transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.kn-home-gateway__mini-link:hover {
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 8px 18px rgba(23, 40, 217, .1);
    transform: translateY(-1px);
}

.kn-home-gateway__mini-link b {
    margin-left: auto;
    color: var(--kn-accent);
    font-size: 11px;
    font-weight: 950;
}

.kn-home-gateway__mini-icon {
    display: inline-flex;
    flex: 0 0 22px;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
}

.kn-home-gateway__mini-icon svg {
    width: 21px;
    height: 21px;
}

.kn-home-gateway__mini-link--genres .kn-home-gateway__mini-icon { color: #1264ff; }
.kn-home-gateway__mini-link--series .kn-home-gateway__mini-icon { color: #8129ed; }
.kn-home-gateway__mini-link--authors .kn-home-gateway__mini-icon { color: #1264ff; }
.kn-home-gateway__mini-link--tops .kn-home-gateway__mini-icon { color: #ff21c8; }

.kn-home-gateway__mini i {
    display: block;
    height: 7px;
    margin-top: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(var(--kn-accent-rgb), .4), rgba(39, 54, 74, .16));
}

.kn-home-gateway__mini i:nth-of-type(2) {
    width: 78%;
}

.kn-home-gateway__mini i:nth-of-type(3) {
    width: 58%;
}

.kn-home-gateway__today {
    margin-top: 14px;
    padding: 18px;
}

.kn-home-gateway__today strong {
    display: block;
    color: var(--kn-ink);
    font-size: 17px;
    font-weight: 950;
    line-height: 1.28;
}

.kn-home-gateway__tiles-shell {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    align-items: center;
    min-width: 0;
    padding: 0 8px 28px;
    border: 1px solid rgba(255, 255, 255, .56);
    border-radius: 28px;
    background: rgba(255, 255, 255, .32);
    box-shadow: var(--kn-shadow);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
}

.kn-home-gateway__tiles-viewport {
    position: relative;
    min-width: 0;
    overflow: visible;
}

.kn-home-gateway__tiles {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.kn-home-gateway__tiles-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(23, 40, 217, .1);
    border-radius: 50%;
    background: rgba(255, 255, 255, .8);
    color: var(--kn-ink);
    cursor: default;
    pointer-events: none;
    box-shadow: 0 8px 18px rgba(23, 40, 217, .08);
    transition: transform .18s ease, color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.kn-home-gateway__tiles-arrow svg {
    width: 20px;
    height: 20px;
}

.kn-home-gateway__tiles-arrow:hover {
    background: #ffffff;
    color: var(--kn-accent-strong);
    box-shadow: 0 12px 24px rgba(23, 40, 217, .16);
    transform: translateY(-2px) scale(1.04);
}

.kn-home-gateway__tiles-arrow:active {
    transform: translateY(0) scale(.98);
}

.kn-home-gateway__tiles .kn-home-gateway__tile {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: center;
    align-items: center;
    min-height: 104px;
    padding: 13px 16px;
    background: rgba(255, 255, 255, .72);
    color: var(--kn-ink);
    text-decoration: none !important;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.kn-home-gateway__tiles .kn-home-gateway__tile:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--kn-accent-rgb), .34);
    box-shadow: 0 22px 50px rgba(0, 0, 0, .11);
}

.kn-home-gateway__tiles .kn-home-gateway__tile:first-child {
    border-color: transparent;
    background: linear-gradient(#ffffff, #ffffff) padding-box, linear-gradient(135deg, #71a8ff, #c78cff 55%, #f02bc8) border-box;
    border: 2px solid transparent;
    box-shadow: 0 12px 26px rgba(60, 89, 222, .12);
}

.kn-home-gateway__tiles .kn-home-gateway__tile:hover svg {
    filter: drop-shadow(0 5px 8px rgba(var(--kn-accent-rgb), .24));
    transform: translateY(-1px) scale(1.08);
}

.kn-home-gateway__tiles svg {
    width: 42px;
    height: 42px;
    padding: 9px;
    grid-row: 1 / span 2;
    grid-column: 1;
    margin: 0;
    border: 1px solid rgba(23, 40, 217, .12);
    border-radius: 50%;
    background: rgba(255, 255, 255, .62);
    color: var(--kn-accent);
    transition: transform .18s ease, filter .18s ease;
}

.kn-home-gateway__tiles .kn-home-gateway__tile:nth-child(1) svg { background: #1664ed; color: #ffffff; border-color: transparent; }
.kn-home-gateway__tiles .kn-home-gateway__tile:nth-child(2) svg { color: #972dff; background: rgba(176, 100, 255, .08); }
.kn-home-gateway__tiles .kn-home-gateway__tile:nth-child(3) svg { color: #2466ef; background: rgba(75, 138, 255, .08); }
.kn-home-gateway__tiles .kn-home-gateway__tile:nth-child(4) svg { color: #8e3ff2; background: rgba(170, 100, 255, .08); }
.kn-home-gateway__tiles .kn-home-gateway__tile:nth-child(5) svg { color: #f226c5; background: rgba(255, 74, 213, .08); }
.kn-home-gateway__tiles .kn-home-gateway__tile:nth-child(6) svg { color: #2466ef; background: rgba(75, 138, 255, .08); }

.kn-home-gateway__tiles strong {
    display: block;
    margin-bottom: 2px;
    grid-column: 2;
    color: var(--kn-ink);
    font-size: 15px;
    font-weight: 950;
    line-height: 1.12;
}

.kn-home-gateway__tiles span {
    grid-column: 2;
    color: var(--kn-muted);
    font-size: 11px;
    font-weight: 750;
    line-height: 1.25;
}

.kn-home-gateway__tiles-pagination {
    position: absolute;
    right: 0;
    bottom: -22px;
    left: 0;
    display: flex;
    justify-content: center;
    gap: 9px;
}

.kn-home-gateway__tiles-pagination span {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(23, 40, 217, .14);
    transition: width .2s ease, border-radius .2s ease, background-color .2s ease;
}

.kn-home-gateway__tiles-pagination span.is-active {
    width: 30px;
    border-radius: 999px;
    background: #2466ef;
}

@media (max-width: 1180px) {
    .kn-home-gateway {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .kn-home-gateway__copy {
        max-width: 760px;
    }

    .kn-home-gateway__art {
        width: min(42%, 430px);
        opacity: .82;
    }

    .kn-home-gateway__tiles {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        overflow: visible;
    }

    .kn-home-gateway__tiles-shell {
        grid-template-columns: 34px minmax(0, 1fr) 34px;
    }
}

@media (max-width: 760px) {
    .kn-home-gateway {
        gap: 10px;
        margin-top: 8px;
    }

    .kn-home-gateway__lead,
    .kn-home-gateway__panel,
    .kn-home-gateway__tiles .kn-home-gateway__tile {
        border-radius: 18px;
    }

    .kn-home-gateway__lead {
        padding: 24px 18px;
    }

    .kn-home-gateway__copy {
        max-width: 100%;
    }

    .kn-home-gateway__art {
        display: none;
    }

    .kn-home-gateway h1 {
        font-size: 32px !important;
    }

    .kn-home-gateway__text {
        font-size: 15px;
    }

    .kn-home-gateway__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .kn-home-gateway__actions a {
        width: 100%;
    }

    .kn-home-gateway__tiles {
        grid-template-columns: 1fr;
        display: grid;
        overflow: visible;
    }

    .kn-home-gateway__tiles-shell {
        display: block;
        padding: 0 0 12px;
        border-radius: 18px;
    }

    .kn-home-gateway__tiles-arrow,
    .kn-home-gateway__tiles-pagination {
        display: none;
    }

    .kn-home-gateway__tiles .kn-home-gateway__tile {
        min-height: 96px;
    }
}
