/* ══════════════════════════════════════════════
   ÉDITION NUMÉRIQUE — PDF Viewer (public)
   ══════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Body ── */
html, .edition-body {
    height: 100%;
}
.edition-body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #1a1a2e;
    display: flex;
    flex-direction: column;
}

.edition-html--viewer,
.edition-html--viewer body {
    overflow: hidden;
}

.edition-html--catalog,
.edition-html--catalog body {
    min-height: 100%;
    background: #e9edf3;
}

.edition-body--catalog {
    min-height: 100%;
    background:
        radial-gradient(circle at top left, rgba(186,29,65,.12), transparent 28%),
        linear-gradient(180deg, #f6f8fb 0%, #e9edf3 100%);
}

/* ── Top bar ── */
.ed-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: #0f0f23;
    border-bottom: 1px solid rgba(255,255,255,.08);
    flex-shrink: 0;
    z-index: 10;
}

.ed-bar__back {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #aaa;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: color .2s;
}
.ed-bar__back:hover { color: #fff; }

.ed-bar__center {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    gap: 1px;
}
.ed-bar__sitename {
    font-size: 10px;
    color: #666;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
}
.ed-bar__edtitle {
    font-size: 13px;
    color: #ddd;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ed-bar__subline {
    font-size: 11px;
    color: #7f89a8;
    font-weight: 500;
}

.ed-bar__download {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    text-decoration: none;
    color: #fff;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    font-size: 12px;
    font-weight: 700;
    transition: background .2s, border-color .2s;
}

.ed-bar__download:hover {
    background: rgba(255,255,255,.14);
    border-color: rgba(255,255,255,.2);
}

/* ── Stage (fills remaining vertical space) ── */
#ed-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 16px 10px 94px;
    min-height: 0;
}

#ed-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
}

#ed-stage.ed-stage--turn-out-next,
#ed-stage.ed-stage--turn-out-prev,
#ed-stage.ed-stage--turn-in-next,
#ed-stage.ed-stage--turn-in-prev {
    will-change: transform, opacity, filter;
}

#ed-zoom-layer {
    position: absolute;
    inset: 0;
    display: none;
    z-index: 20;
    cursor: zoom-in;
    touch-action: none;
}

#ed-zoom-layer.is-active {
    display: block;
}

#ed-zoom-view {
    position: absolute;
    display: none;
    border-radius: 2px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 8px 28px rgba(0,0,0,.22);
    pointer-events: auto;
    cursor: zoom-in;
}

.ed-zoom-content {
    position: absolute;
    inset: 0;
    transform-origin: 0 0;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center center;
    transition: transform .08s linear;
    will-change: transform;
}

#ed-zoom-view.is-active {
    display: block;
}

#ed-zoom-view.is-zoomed {
    cursor: grab;
}

#ed-zoom-view.is-dragging {
    cursor: grabbing;
}

#ed-zoom-view.is-dragging .ed-zoom-content {
    transition: none;
}

/* ── Loading ── */
#ed-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: #aaa;
    font-size: 14px;
    text-align: center;
}

.ed-spinner {
    width: 38px;
    height: 38px;
    border: 3px solid rgba(255,255,255,.1);
    border-top-color: #7c5cfc;
    border-radius: 50%;
    animation: ed-spin .8s linear infinite;
}
@keyframes ed-spin { to { transform: rotate(360deg); } }

.ed-error {
    color: #f87171;
    line-height: 1.6;
    font-size: 14px;
    text-align: center;
}
.ed-fallback-link {
    display: inline-block;
    margin-top: 14px;
    color: #7c5cfc;
    font-size: 14px;
    text-decoration: underline;
}

/* ── Controls bar ── */
.ed-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 10px 16px;
    background: #0f0f23;
    border-top: 1px solid rgba(255,255,255,.08);
    position: fixed;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,.28);
    z-index: 40;
}

.ed-ctrl-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    color: #ccc;
    cursor: pointer;
    transition: background .2s, color .2s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.ed-ctrl-btn:hover { background: rgba(255,255,255,.14); color: #fff; }

.ed-zoom-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ed-zoom-panel {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    width: 178px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(10, 14, 22, .96);
    box-shadow: 0 8px 24px rgba(0,0,0,.28);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    z-index: 50;
}

.ed-zoom-wrap.is-open .ed-zoom-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.ed-zoom-label {
    color: #c9ceda;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
}

.ed-zoom-range {
    flex: 1 1 auto;
    width: 100%;
    accent-color: #7c5cfc;
}

.ed-zoom-value {
    min-width: 28px;
    text-align: right;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.ed-ctrl-btn.is-active,
.ed-ctrl-btn--zoom.is-active {
    background: rgba(124,92,252,.3);
    color: #fff;
    border-color: rgba(124,92,252,.55);
}

.ed-ctrl-btn--fullscreen.is-active {
    background: rgba(41, 182, 246, .24);
    color: #fff;
    border-color: rgba(41, 182, 246, .5);
}

.ed-sound-select {
    height: 42px;
    min-width: 126px;
    background: rgba(255,255,255,.08);
    color: #d8d8d8;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    padding: 0 10px;
    outline: none;
}

.ed-sound-select:focus {
    border-color: rgba(124,92,252,.55);
    box-shadow: 0 0 0 2px rgba(124,92,252,.2);
}

.ed-sound-muted .ed-ctrl-btn--sound {
    opacity: .5;
}

.ed-sound-muted .ed-ctrl-btn--sound.is-active {
    opacity: 1;
}

.ed-anim-disabled .ed-ctrl-btn--anim {
    opacity: .55;
}

.ed-ctrl-info {
    min-width: 90px;
    text-align: center;
    color: #aaa;
    font-size: 13px;
    font-weight: 500;
}

.ed-is-fullscreen .ed-controls {
    bottom: 18px;
}

/* ── StPageFlip fine-tuning ── */
#ed-flipbook {
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
}

.ed-page {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #fff;
    position: relative;
}

.ed-page__img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #fff;
}

.ed-page__links {
    position: absolute;
    inset: 0;
    z-index: 3;
}

.ed-page__link {
    position: absolute;
    display: block;
    background: transparent;
}

.ed-zoom-enabled .ed-page {
    cursor: zoom-in;
}

/* Overlay de liens dans zoomLayer : pointer-events uniquement sur les <a> */
.ed-zoom-links-overlay {
    pointer-events: none;
}
.ed-zoom-links-overlay .ed-page__links {
    pointer-events: none;
}
.ed-zoom-links-overlay .ed-page__link {
    pointer-events: auto;
    cursor: pointer;
}

.ed-page--cover {
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.04);
}

@media (max-width: 600px) {
    .ed-bar { padding: 8px 10px; gap: 8px; }
    .ed-controls {
        left: 12px;
        right: 12px;
        bottom: 10px;
        transform: none;
        width: auto;
        max-width: none;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        padding: 8px;
        border-radius: 16px;
    }

    .ed-ctrl-btn {
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
    }

    .ed-sound-select {
        order: 10;
        flex: 1 1 132px;
        min-width: 0;
        height: 38px;
        font-size: 11px;
    }

    .ed-ctrl-info {
        order: 11;
        flex: 0 0 auto;
        min-width: 72px;
        font-size: 12px;
    }

    #ed-stage.ed-stage--turn-out-next {
        animation: ed-mobile-turn-out-next .12s ease forwards;
    }

    #ed-stage.ed-stage--turn-in-next {
        animation: ed-mobile-turn-in-next .18s ease forwards;
    }

    #ed-stage.ed-stage--turn-out-prev {
        animation: ed-mobile-turn-out-prev .12s ease forwards;
    }

    #ed-stage.ed-stage--turn-in-prev {
        animation: ed-mobile-turn-in-prev .18s ease forwards;
    }
}

@media (max-width: 420px) {
    .ed-controls {
        left: 8px;
        right: 8px;
        bottom: 8px;
        gap: 6px;
        padding: 7px;
    }

    .ed-ctrl-btn {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .ed-sound-select {
        flex-basis: 118px;
        font-size: 10px;
        padding: 0 8px;
    }

    .ed-ctrl-info {
        min-width: 64px;
        font-size: 11px;
    }
}

@keyframes ed-mobile-turn-out-next {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
        filter: brightness(1);
    }
    to {
        opacity: .46;
        transform: translateX(-18px) scale(.985);
        filter: brightness(.94);
    }
}

@keyframes ed-mobile-turn-in-next {
    from {
        opacity: .52;
        transform: translateX(18px) scale(.985);
        filter: brightness(.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
        filter: brightness(1);
    }
}

@keyframes ed-mobile-turn-out-prev {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
        filter: brightness(1);
    }
    to {
        opacity: .46;
        transform: translateX(18px) scale(.985);
        filter: brightness(.94);
    }
}

@keyframes ed-mobile-turn-in-prev {
    from {
        opacity: .52;
        transform: translateX(-18px) scale(.985);
        filter: brightness(.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
        filter: brightness(1);
    }
}

@media (max-width: 900px) {
    .ed-ctrl-btn--zoom {
        display: none;
    }

    .ed-zoom-panel {
        display: none;
    }
}


/* ══════════════════════════════════════════════
   KIOSQUE NUMÉRIQUE — Catalogue public
   ══════════════════════════════════════════════ */

.edition-body--catalog {
    background: #f0f2f5;
    min-height: 100%;
}

.edition-html--catalog,
.edition-html--catalog body {
    min-height: 100%;
    background: #f0f2f5;
}

/* Sticky top bar pour le catalogue */
.edition-body--catalog .ed-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 14, 22, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* ── Kiosk wrapper ── */
.ed-kiosk {
    width: min(1320px, calc(100% - 40px));
    margin: 0 auto;
    padding: 40px 0 64px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: relative;
    isolation: isolate;
}

.ed-kiosk::before,
.ed-kiosk::after {
    content: '';
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(36px);
    opacity: .55;
    pointer-events: none;
}

.ed-kiosk::before {
    width: 240px;
    height: 240px;
    top: -50px;
    right: 2%;
    background: radial-gradient(circle, rgba(186,29,65,.28) 0%, rgba(186,29,65,0) 70%);
}

.ed-kiosk::after {
    width: 260px;
    height: 260px;
    bottom: -70px;
    left: 0;
    background: radial-gradient(circle, rgba(36,86,190,.22) 0%, rgba(36,86,190,0) 72%);
}

/* ── Featured (latest edition) ── */
.ek-featured {
    display: grid;
    grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
    border-radius: 0;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 40px rgba(10, 14, 22, .10);
    min-height: 500px;
    animation: ek-fade-up .55s ease both;
}

.ek-featured__cover-wrap {
    position: relative;
    display: block;
    background: #fbfbfb;
    text-decoration: none;
    overflow: hidden;
    --ek-featured-badge-space: 44px;
    padding-top: var(--ek-featured-badge-space);
}

.ek-featured__img {
    position: absolute;
    inset: var(--ek-featured-badge-space) 0 0 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    transition: transform .5s ease;
}

.ek-featured__cover-wrap:hover .ek-featured__img {
    transform: none;
}

.ek-featured__img-placeholder {
    position: absolute;
    inset: var(--ek-featured-badge-space) 0 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: Georgia, serif;
    font-size: 24px;
    font-weight: 700;
    color: rgba(255,255,255,.6);
    line-height: 1.3;
}

.ek-featured__badge {
    position: absolute;
    top: 10px;
    left: 20px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: #fff;
    color: #111827;
    border: 1px solid rgba(17, 24, 39, .12);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.ek-featured__info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
    padding: 52px 48px;
    background: #fff;
    position: relative;
}

.ek-featured__info::before {
    content: '';
    position: absolute;
    top: 24px;
    right: 24px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(186,29,65,.16) 0%, rgba(186,29,65,0) 72%);
}

.ek-featured__eyebrow {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #ba1d41;
}

.ek-featured__title {
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(26px, 3.5vw, 46px);
    line-height: 1.05;
    color: #070c14;
    margin: 0;
}

.ek-featured__date {
    font-size: 15px;
    color: #5d6a80;
    font-weight: 500;
    margin: 0;
}

.ek-featured__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.ek-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 26px;
    border-radius: 0;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background .18s, border-color .18s, color .18s, transform .16s;
    line-height: 1;
    position: relative;
    overflow: hidden;
}

.ek-btn:hover {
    transform: translateY(-2px);
}

.ek-btn--primary {
    background: #ba1d41;
    color: #fff;
    box-shadow: 0 6px 20px rgba(186, 29, 65, .28);
}

.ek-btn--primary:hover {
    background: #9b1636;
    box-shadow: 0 8px 26px rgba(186, 29, 65, .38);
}

.ek-btn--primary::after {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateX(-120%);
    background: linear-gradient(110deg, rgba(255,255,255,0) 32%, rgba(255,255,255,.34) 50%, rgba(255,255,255,0) 68%);
    transition: transform .55s ease;
}

.ek-btn--primary:hover::after {
    transform: translateX(120%);
}

.ek-btn--ghost {
    background: transparent;
    color: #1a2035;
    border: 1.5px solid rgba(15, 20, 40, .18);
}

.ek-btn--ghost:hover {
    border-color: rgba(15, 20, 40, .36);
    background: rgba(15, 20, 40, .04);
}

.ek-featured__count {
    font-size: 13px;
    color: #9aa3b5;
    font-weight: 500;
    margin: 0;
}

.ek-info-band {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    animation: ek-fade-up .8s ease both;
}

.ek-info-card {
    position: relative;
    padding: 20px 20px 18px;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fc 100%);
    border: 1px solid rgba(16, 24, 40, .08);
    box-shadow: 0 8px 22px rgba(12, 18, 30, .06);
    overflow: hidden;
}

.ek-info-card::after {
    content: '';
    position: absolute;
    right: -16px;
    top: -22px;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(186,29,65,.18) 0%, rgba(186,29,65,0) 72%);
}

.ek-info-card__label {
    display: inline-flex;
    margin-bottom: 8px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: #8d1734;
}

.ek-info-card strong {
    display: block;
    margin-bottom: 8px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 28px;
    line-height: 1;
    color: #0f172a;
}

.ek-info-card p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #667085;
}

.ek-recent-strip {
    display: flex;
    flex-direction: column;
    gap: 14px;
    animation: ek-fade-up .9s ease both;
}

.ek-recent-strip__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.ek-recent-strip__head h2 {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 24px;
    line-height: 1;
    color: #070c14;
}

.ek-recent-strip__head span {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #9aa3b5;
}

.ek-recent-strip__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.ek-recent-pill {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        'date icon'
        'title icon';
    gap: 6px 10px;
    padding: 12px 14px;
    border-radius: 12px;
    text-decoration: none;
    background: #fff;
    border: 1px solid rgba(16, 24, 40, .08);
    box-shadow: 0 6px 16px rgba(12, 18, 30, .05);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.ek-recent-pill:hover {
    transform: translateY(-2px);
    border-color: rgba(186,29,65,.25);
    box-shadow: 0 12px 22px rgba(12, 18, 30, .10);
}

.ek-recent-pill svg {
    grid-area: icon;
    align-self: center;
    color: #ba1d41;
}

.ek-recent-pill__date {
    grid-area: date;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #8d98ac;
}

.ek-recent-pill__title {
    grid-area: title;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    color: #172033;
}

/* ── Archive ── */
.ek-archive {
    display: flex;
    flex-direction: column;
    gap: 22px;
    animation: ek-fade-up .7s ease both;
}

.ek-archive__header {
    display: flex;
    align-items: baseline;
    gap: 14px;
}

.ek-archive__header h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 26px;
    line-height: 1;
    color: #070c14;
    margin: 0;
}

.ek-archive__header span {
    font-size: 13px;
    color: #9aa3b5;
    font-weight: 600;
}

/* ── Grid ── */
.ek-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

/* ── Item (cover card) ── */
.ek-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ek-item__cover {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    border-radius: 0;
    overflow: hidden;
    background: #fff;
    text-decoration: none;
    box-shadow: 0 3px 14px rgba(10, 14, 22, .12);
    transform: perspective(760px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transform-style: preserve-3d;
    transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}

.ek-item__cover:hover {
    transform: perspective(760px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-5px) scale(1.015);
    box-shadow: 0 16px 36px rgba(10, 14, 22, .20);
    filter: saturate(1.04);
}

.ek-item__cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
}

.ek-item__cover-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #667;
}

.ek-item__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(7, 12, 20, .54);
    opacity: 0;
    transition: opacity .2s;
    border-radius: 0;
}

.ek-item__cover:hover .ek-item__overlay {
    opacity: 1;
}

.ek-item__read {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 22px;
    border-radius: 999px;
    background: #fff;
    color: #070c14;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .04em;
}

.ek-item__new {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    background: #ba1d41;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ek-item__meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 0 2px;
}

.edition-body--catalog.ek-js .ek-item {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .45s ease, transform .45s ease;
    transition-delay: calc(var(--ek-i, 0) * 35ms);
}

.edition-body--catalog.ek-js .ek-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.ek-item__date {
    font-size: 11px;
    font-weight: 700;
    color: #9aa3b5;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.ek-item__title {
    font-size: 13px;
    font-weight: 600;
    color: #1a2035;
    line-height: 1.35;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ── Empty state ── */
.ek-empty {
    padding: 72px 24px;
    text-align: center;
    color: #667085;
    font-size: 16px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(10, 14, 22, .06);
}

@keyframes ek-fade-up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ek-featured,
    .ek-archive,
    .edition-body--catalog.ek-js .ek-item {
        animation: none;
        transition: none;
        opacity: 1;
        transform: none;
    }

    .ek-item__cover,
    .ek-item__cover:hover,
    .ek-btn,
    .ek-featured__img {
        transition: none;
        transform: none;
    }
}

/* ── Responsive ── */
@media (max-width: 1200px) {
    .ek-recent-strip__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ek-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 960px) {
    .ek-info-band {
        grid-template-columns: 1fr;
    }

    .ek-featured {
        grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    }

    .ek-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 740px) {
    .ek-featured {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .ek-featured__cover-wrap {
        aspect-ratio: 16 / 10;
        min-height: 220px;
    }

    .ek-featured__info {
        padding: 28px 24px;
        gap: 16px;
    }

    .ek-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
}

@media (max-width: 500px) {
    .ed-kiosk {
        width: calc(100% - 24px);
        padding: 24px 0 44px;
        gap: 28px;
    }

    .ek-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .ek-recent-strip__list {
        grid-template-columns: 1fr;
    }
}
