﻿

.os-embed {
    margin-top: 26px;
}

    .os-embed .shelves {
        max-width: none;
        padding: 0;
    }

.os-plusad {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    /* Reserve the right side for the reel. */
    padding-right: 46%;
}

.os-plusad-label {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #F2EEE2;
}

    .os-plusad-label em {
        font-style: normal;
        color: #fc5c17;
    }

.os-plusad h3 {
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -0.028em;
    line-height: 1.12;
    color: #F2EEE2;
}

.os-plusad-actions {
    display: flex;
    align-items: center;
    gap: 10px 12px;
    flex-wrap: wrap;
}

.os-plusad-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: #fc5c17;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.005em;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 6px 18px rgba(252,92,23,.35);
}

    .os-plusad-cta:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 24px rgba(252,92,23,.45);
    }

.os-plusad-cta--ghost {
    background: rgba(242,238,226,.1);
    border: 1px solid rgba(242,238,226,.25);
    color: #F2EEE2;
    box-shadow: none;
}

    .os-plusad-cta--ghost:hover {
        background: rgba(242,238,226,.18);
        box-shadow: none;
    }

.os-plusad-note {
    font-size: 12px;
    color: rgba(242,238,226,.55);
}

.os-plusad-reel {
    position: absolute;
    /* Bleed past the shelf padding so the panel's rounded clip crops it. */
    top: -22px;
    bottom: -24px;
    right: -24px;
    width: 46%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    overflow: hidden;
    pointer-events: none;
    /* Fade into the text side and dissolve at top/bottom, like sell-reel. */
    -webkit-mask-image: linear-gradient(to right, transparent, black 26%), linear-gradient(to bottom, transparent, black 12%, black 88%, transparent);
    mask-image: linear-gradient(to right, transparent, black 26%), linear-gradient(to bottom, transparent, black 12%, black 88%, transparent);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
}

.os-plusad-reel__col {
    display: flex;
    flex-direction: column;
    gap: 8px;
    transform: rotate(4deg);
    transform-origin: center;
}

.os-plusad-reel__col--b {
    margin-top: -44px;
}

.os-plusad-reel__col img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 4px;
    background: #1A1F2E;
    box-shadow: 0 4px 10px rgba(0,0,0,.35);
}

@media (max-width: 600px) {
    .os-plusad {
        padding-right: 0;
    }

    .os-plusad-reel {
        display: none;
    }
}

/* Light newsstand variant of the same panel - the logged-out state
   on the white shelf (oldsite-home3): log in, or activate a
   subscription bought outside Pocketmags. */
.os-plusad--news .os-plusad-label {
    color: #000000;
}

    .os-plusad--news .os-plusad-label em {
        color: #e83a1e;
    }

.os-plusad--news h3 {
    color: #000000;
}

.os-plusad--news .os-plusad-cta {
    background: #000000;
    box-shadow: none;
}

    .os-plusad--news .os-plusad-cta:hover {
        box-shadow: none;
    }

.os-plusad--news .os-plusad-cta--ghost {
    background: #fff;
    border: 1px solid #e8e4da;
    color: #000000;
    box-shadow: none;
}

    .os-plusad--news .os-plusad-cta--ghost:hover {
        background: #f4f3ef;
        box-shadow: none;
    }

.os-plusad--news .os-plusad-note {
    color: var(--ink-mute);
    line-height: 1.45;
}

.os-plusad--news .os-plusad-reel__col img {
    background: #f4f3ef;
    box-shadow: 0 4px 10px rgba(31,29,26,.16);
}


/* ------------------------------- MY PLUS+ PANEL (library) */
.os-myplus {
    max-width: calc(var(--os-max) - 2 * var(--os-pad));
    margin: 22px auto 8px;
    padding: 6px 0 26px;
    border-bottom: 1px solid var(--os-rule);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.os-myplus-lead h2 {
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -0.01em;
    color: #1F252B;
    margin-bottom: 6px;
}

.os-myplus-lead p {
    font-size: 15px;
    color: var(--os-ink-soft);
    margin-bottom: 14px;
}

.os-myplus-lead a {
    font-size: 15px;
    font-weight: 700;
    color: var(--os-teal);
    text-decoration: none;
}

    .os-myplus-lead a:hover {
        text-decoration: underline;
    }

.os-myplus-covers {
    display: flex;
    gap: 10px;
}

    .os-myplus-covers img {
        width: 108px;
        aspect-ratio: 3 / 4;
        object-fit: cover;
        border: 1px solid var(--os-rule);
        box-shadow: 0 2px 8px rgba(31,29,26,.12);
        border-radius: 2px;
        background: var(--os-panel);
    }


/* ------------------------------- RESPONSIVE */
@media (max-width: 1180px) {
    .os-catbar a {
        font-size: 13px;
    }

    .os-catbar-inner {
        gap: 22px;
    }
}

@media (max-width: 1024px) {
    .os-layout {
        grid-template-columns: 1fr;
    }

    .os-sidenav {
        display: none;
    }

    .os-header-icons {
        gap: 22px;
    }
}

@media (max-width: 760px) {
    .os-catbar {
        display: none;
    }

    .os-search {
        display: none;
    }

    .os-usp {
        justify-content: flex-start;
    }

    .os-myplus-covers img {
        width: 84px;
    }
}

/* ============================================================
   POCKETMAGS · LOGGED-IN HOMEPAGE
   Dual-shelf hero and authed nav pill. Layered on top of
   pocketmags.css + site.css + home.css - load in that order.
   ============================================================ */

/* ------------------------------- LOGGED-IN HERO (DUAL SHELVES) */
.logged-hero {
    background: radial-gradient(circle at 78% 14%, rgba(232,58,30,.06), transparent 55%), radial-gradient(circle at 12% 88%, rgba(61,42,120,.06), transparent 55%), var(--cream);
    border-bottom: 1px solid #e8e4da;
    padding: 30px 0 42px;
}

.logged-welcome {
    max-width: var(--max);
    margin: 0 auto 22px;
    padding: 0 var(--pad);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.logged-welcome-lead {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logged-welcome-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e83a1e 0%, #B03692 55%, var(--plus) 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(61,42,120,.25);
}

.logged-welcome h1 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.028em;
    line-height: 1.1;
    color: #000000;
}

    .logged-welcome h1 span {
        display: block;
        font-size: 13px;
        font-weight: 500;
        letter-spacing: 0;
        color: var(--ink-mute);
        margin-top: 2px;
    }

.logged-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px 8px 10px;
    background: #fff;
    border: 1px solid #e8e4da;
    border-radius: 999px;
    font-size: 13px;
    color: var(--ink-soft);
}

.logged-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--plus);
    box-shadow: 0 0 0 3px rgba(61,42,120,.18);
}

.logged-status strong {
    color: #000000;
    font-weight: 700;
    margin-right: 3px;
}

.logged-status-sep {
    width: 1px;
    height: 12px;
    background: #e8e4da;
    margin: 0 2px;
}

.shelves {
    max-width: var(--max);
    margin: 0 auto 30px auto;
    padding: 0 var(--pad);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.shelf {
    position: relative;
    border-radius: 18px;
    padding: 22px 24px 24px;
    overflow: hidden;
    transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s;
}

.shelf-mine {
    background: #fff;
    border: 1px solid #e8e4da;
    box-shadow: 0 1px 2px rgba(31,29,26,.03), 0 8px 22px rgba(31,29,26,.04);
}

    .shelf-mine:hover {
        box-shadow: 0 2px 4px rgba(31,29,26,.04), 0 16px 34px rgba(31,29,26,.07);
    }

.shelf-plus {
    color: #F2EEE2;
    background-color: var(--plus-ink, #0F1425);
    background-image: radial-gradient(circle at 88% 10%, rgba(252,92,23,.34), transparent 55%), radial-gradient(circle at 8% 95%, rgba(242,238,226,.05), transparent 45%), linear-gradient(145deg, var(--plus-ink, #0F1425) 0%, #181F36 100%);
    box-shadow: 0 1px 2px rgba(15,20,37,.18), 0 10px 30px rgba(15,20,37,.26);
}
.shelf-plus h2 {
    color: #F2EEE2;
}


    .shelf-plus::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image: radial-gradient(rgba(242,238,226,.06) 1px, transparent 1px);
        background-size: 16px 16px;
        pointer-events: none;
        opacity: .8;
    }

    .shelf-plus:hover {
        box-shadow: 0 1px 2px rgba(20,15,40,.14), 0 18px 42px rgba(20,15,40,.26);
    }

.shelf-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.shelf-title-group {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
}

.shelf-title {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.022em;
    line-height: 1.15;
}

    .shelf-title em {
        font-style: normal;
        color: #fc5c17;
    }

.shelf-count {
    font-size: 12px;
    font-weight: 500;
    color: var(--ink-mute);
    white-space: nowrap;
}

.shelf-plus .shelf-count {
    color: rgba(242,238,226,.6);
}

.shelf-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: -0.005em;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid #e8e4da;
    color: #000000;
    background: #fff;
    white-space: nowrap;
    transition: background .2s, color .2s, border-color .2s, transform .2s;
}

    .shelf-cta:hover {
        background: #000000;
        color: #fff;
        border-color: #000000;
    }

    .shelf-cta svg {
        width: 12px;
        height: 10px;
        stroke: currentColor;
        stroke-width: 2;
        fill: none;
        transition: transform .2s;
    }

    .shelf-cta:hover svg {
        transform: translateX(2px);
    }

.shelf-plus .shelf-cta {
    background: rgba(242,238,226,.1);
    color: #F2EEE2;
    border-color: rgba(242,238,226,.22);
    backdrop-filter: blur(4px);
}

    .shelf-plus .shelf-cta:hover {
        background: #fc5c17;
        border-color: #fc5c17;
        color: #fff;
    }

.shelf-row {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 6px 0 4px;
    scroll-snap-type: x mandatory;
    -webkit-mask-image: linear-gradient(to right, black 0, black 88%, transparent 100%);
    mask-image: linear-gradient(to right, black 0, black 88%, transparent 100%);
    scrollbar-width: none;
}

    .shelf-row::-webkit-scrollbar {
        display: none;
    }

.big-cover {
    flex: 0 0 calc((100% - 28px) / 3);
    scroll-snap-align: start;
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 10px;
    overflow: hidden;
    background: #EDE7DA;
    box-shadow: var(--cover-shadow);
    transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s;
    text-decoration: none;
    color: #fff;
    display: block;
    max-height:275px;
}

.shelf-plus .big-cover {
    /* Heavier lift on the dark Plus+ shelf - deeper, darker ambient. */
    box-shadow: 0 4px 10px rgba(0,0,0,.40), 0 18px 32px rgba(0,0,0,.40), 0 36px 72px rgba(0,0,0,.32);
}

.big-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.big-cover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(20,15,10,.18), 0 28px 54px rgba(20,15,10,.18);
}

.cover-stamp {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 10px 4px;
    background: rgba(20,18,16,.72);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 999px;
    z-index: 2;
}

    .cover-stamp.stamp-plus {
        background: linear-gradient(135deg, rgba(61,42,120,.85), rgba(20,15,40,.85));
        border: 1px solid rgba(255,255,255,.14);
        text-transform: none;
        letter-spacing: 0;
        font-size: 10.5px;
        padding-top: 4px;
    }

        .cover-stamp.stamp-plus b {
            color: #fff;
            font-weight: 800;
        }

        .cover-stamp.stamp-plus i {
            font-style: normal;
            color: var(--cta);
            font-weight: 800;
        }

    .cover-stamp.stamp-new {
        background: #e83a1e;
        color: #fff;
    }

.big-cover-meta {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 32px 14px 14px;
    background: linear-gradient(to top, rgba(0,0,0,.82), rgba(0,0,0,.35) 60%, transparent);
    display: flex;
    flex-direction: column;
    gap: 3px;
    z-index: 1;
}

.big-cover-title {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: -0.005em;
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,.3);
}

.big-cover-issue {
    font-size: 11px;
    opacity: .85;
    font-weight: 500;
    color: #fff;
}

.big-cover.has-progress .big-cover-meta {
    padding-bottom: 22px;
}

.big-cover-progress {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 10px;
    height: 3px;
    border-radius: 999px;
    background: rgba(255,255,255,.22);
    overflow: hidden;
    z-index: 2;
}

    .big-cover-progress span {
        display: block;
        height: 100%;
        background: #fff;
        border-radius: 999px;
        box-shadow: 0 0 8px rgba(255,255,255,.5);
    }

/* Empty 'add more' slot for 'My latest issues' */
.big-cover-empty {
    flex: 0 0 calc((100% - 28px) / 2.5);
    aspect-ratio: 3 / 4;
    border-radius: 10px;
    border: 1.5px dashed #e8e4da;
    background: #f4f3ef;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--ink-mute);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .2s, color .2s, background .2s;
}

    .big-cover-empty:hover {
        border-color: #000000;
        color: #000000;
        background: #fff;
    }

.big-cover-empty-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e8e4da;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .big-cover-empty-icon svg {
        width: 14px;
        height: 14px;
        stroke: currentColor;
        stroke-width: 2;
        fill: none;
    }

/* ------------------------------- RESPONSIVE */
@media (max-width: 960px) {
    .shelves {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .shelf {
        padding: 18px 18px 20px;
    }

    .logged-welcome h1 {
        font-size: 22px;
    }

    .logged-status {
        font-size: 12px;
        padding: 6px 12px 6px 8px;
    }
}
