.swipe-story {
    background: #f9faf6;
    color: #012d1d;
}

.swipe-story-fallback {
    min-height: 100dvh;
    padding: 48px 24px 96px;
}

.swipe-story-fallback__inner {
    width: min(760px, 100%);
    margin: 0 auto;
}

.swipe-story-fallback__header {
    margin-bottom: 40px;
}

.swipe-story-fallback__tag {
    display: inline-block;
    margin-bottom: 24px;
    padding: 6px 10px;
    background: #012d1d;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
}

.swipe-story-fallback__header h1 {
    margin: 0 0 24px;
    color: #012d1d;
    font-family: "Newsreader", Merriweather, serif;
    font-size: clamp(2.6rem, 9vw, 5.8rem);
    font-weight: 800;
    line-height: 0.98;
}

.swipe-story-fallback__header p {
    max-width: 640px;
    margin: 0 0 28px;
    color: #4b5563;
    font-family: "Newsreader", Merriweather, serif;
    font-size: 1.35rem;
    font-style: italic;
    line-height: 1.45;
}

.swipe-story-fallback__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 0;
    color: #6b7280;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.swipe-story-fallback__image {
    margin: 0 0 40px;
}

.swipe-story-fallback__image img {
    display: block;
    width: 100%;
    height: auto;
    background: #f3f4f6;
}

.swipe-story-fallback__image figcaption {
    margin-top: 12px;
    color: #6b7280;
    font-size: 0.78rem;
    font-style: italic;
}

.swipe-story.is-enhanced {
    height: 100dvh;
    overflow: hidden;
}

.swipe-story.is-enhanced .swipe-story-fallback {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

body:has(.swipe-story.is-enhanced) {
    overflow: hidden;
}

body:has(.swipe-story.is-enhanced) .gh-viewport > header,
body:has(.swipe-story.is-enhanced) .gh-viewport > footer {
    display: none;
}

.swipe-reader-shell {
    position: fixed;
    inset: 0;
    z-index: 80;
    height: 100dvh;
    background: #f9faf6;
    color: #012d1d;
}

.swipe-reader-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: max(14px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) 12px max(18px, env(safe-area-inset-left));
    pointer-events: none;
}

.swipe-reader-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    pointer-events: auto;
}

.swipe-reader-brand,
.swipe-reader-counter {
    color: #012d1d;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.16em;
    line-height: 1;
    text-transform: uppercase;
}

.swipe-reader-brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    text-decoration: none;
}

.swipe-reader-brand img {
    display: block;
    width: auto;
    max-width: min(160px, 42vw);
    height: 28px;
    object-fit: contain;
}

.swipe-reader-brand span {
    display: block;
    max-width: min(210px, 42vw);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.swipe-reader-icon-button,
.swipe-reader-close {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(1, 45, 29, 0.14);
    border-radius: 999px;
    background: rgba(249, 250, 246, 0.84);
    color: #012d1d;
    cursor: pointer;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
}

.swipe-reader-icon-button svg,
.swipe-reader-close svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.swipe-reader-counter {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    min-width: 56px;
    text-align: center;
    pointer-events: none;
}

.swipe-reader-close {
    margin-left: auto;
}

.swipe-reader-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 5;
    height: 3px;
    background: rgba(1, 45, 29, 0.12);
}

.swipe-reader-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: #1e4b31;
    transform-origin: left center;
    transition: width 180ms ease;
}

.swipe-reader {
    height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.swipe-reader:focus {
    outline: none;
}

.swipe-reader-section {
    position: relative;
    display: grid;
    min-height: 100dvh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overflow: hidden;
}

.swipe-reader-section::after {
    content: "";
    position: absolute;
    left: -18dvh;
    bottom: -24dvh;
    z-index: 0;
    width: min(56dvh, 520px);
    aspect-ratio: 1;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(1, 45, 29, 0.09), rgba(1, 45, 29, 0));
    pointer-events: none;
}

.swipe-reader-section__image-accent {
    position: absolute;
    left: max(-260px, -18vw);
    bottom: max(-310px, -30dvh);
    z-index: 0;
    width: clamp(520px, 88vw, 1120px);
    aspect-ratio: 1;
    border-radius: 999px;
    object-fit: cover;
    opacity: 0.3;
    filter: saturate(0.86) contrast(0.95);
    pointer-events: none;
    user-select: none;
}

.swipe-reader-section__image-accent[hidden] {
    display: none;
}

.swipe-reader-section__inner {
    position: relative;
    z-index: 1;
    display: block;
    width: min(760px, 100%);
    min-height: 100dvh;
    margin: 0 auto;
    padding: max(108px, env(safe-area-inset-top) + 78px) clamp(22px, 6vw, 72px) max(156px, env(safe-area-inset-bottom) + 112px);
}

.swipe-reader-section__kicker {
    margin-bottom: clamp(14px, 3dvh, 28px);
    color: #1e4b31;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.swipe-reader-section h2 {
    max-width: 760px;
    margin: 0 0 clamp(18px, 3dvh, 30px);
    color: #012d1d;
    font-family: "Newsreader", Merriweather, serif;
    font-size: clamp(2.35rem, 8vw, 6rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 0.98;
}

.swipe-reader-section__body {
    max-width: 680px;
    color: #24342e;
    font-family: "Newsreader", Merriweather, serif;
    font-size: clamp(1.34rem, 2.1vw, 1.86rem);
    line-height: 1.42;
}

.swipe-reader-section__body > * {
    margin-top: 0;
}

.swipe-reader-section__body > * + * {
    margin-top: 1em;
}

.swipe-reader-section__body a {
    color: #1e4b31;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

.swipe-reader-section__body img,
.swipe-reader-section__body video {
    display: block;
    max-width: 100%;
    max-height: 34dvh;
    object-fit: contain;
}

.swipe-reader-section__body [data-swipe-media-hidden] {
    display: none;
}

.swipe-reader-section__body [data-swipe-audio-hidden],
.swipe-reader-section__body audio[data-swipe-audio] {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.swipe-reader-section__body blockquote {
    margin-left: 0;
    padding-left: 18px;
    border-left: 3px solid #1e4b31;
    color: #012d1d;
    font-style: italic;
}

.swipe-reader-empty {
    display: grid;
    min-height: 100dvh;
    place-items: center;
    padding: 24px;
    color: #4b5563;
    text-align: center;
}

.swipe-reader-actions {
    position: fixed;
    right: max(18px, env(safe-area-inset-right));
    bottom: max(22px, env(safe-area-inset-bottom));
    z-index: 6;
    display: grid;
    justify-items: end;
    gap: 18px;
    color: #012d1d;
    pointer-events: none;
}

.swipe-reader-audio-cta {
    display: none;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    width: min(270px, calc(100vw - 36px));
    border: 0;
    background: transparent;
    color: #012d1d;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.18em;
    line-height: 1.2;
    text-align: right;
    text-transform: uppercase;
    cursor: pointer;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
}

.swipe-reader-shell.has-section-audio .swipe-reader-audio-cta {
    display: inline-flex;
}

.swipe-reader-shell.is-related-active .swipe-reader-actions {
    display: none;
}

.swipe-reader-audio-cta__ring {
    position: relative;
    flex: 0 0 auto;
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    border: 1px solid rgba(1, 45, 29, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 2px 7px rgba(1, 45, 29, 0.1);
}

.swipe-reader-audio-cta__ring::before {
    content: "";
    width: 25px;
    height: 25px;
    border-radius: inherit;
    background: #012d1d;
    box-shadow: inset 0 0 0 7px #f9faf6;
}

.swipe-reader-audio-cta__ring::after {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(1, 45, 29, 0.12);
    border-radius: inherit;
    animation: swipe-reader-pulse 1.9s ease-out infinite;
}

.swipe-reader-next-hint {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    width: min(270px, calc(100vw - 36px));
    color: rgba(26, 28, 26, 0.74);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.swipe-reader-next-hint__gesture {
    position: relative;
    flex: 0 0 auto;
    width: 72px;
    height: 88px;
    border: 1px solid rgba(1, 45, 29, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.64);
    box-shadow: 0 2px 7px rgba(1, 45, 29, 0.08);
}

.swipe-reader-next-hint__gesture::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 30px;
    width: 12px;
    height: 12px;
    border-left: 3px solid rgba(26, 28, 26, 0.74);
    border-top: 3px solid rgba(26, 28, 26, 0.74);
    transform: translateX(-50%) rotate(45deg);
    animation: swipe-reader-swipe-up 1.35s ease-in-out infinite;
}

@keyframes swipe-reader-pulse {
    from {
        opacity: 0.68;
        transform: scale(0.88);
    }

    to {
        opacity: 0;
        transform: scale(1.2);
    }
}

@keyframes swipe-reader-swipe-up {
    0% {
        opacity: 0;
        transform: translate(-50%, 10px) rotate(45deg);
    }

    35% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -16px) rotate(45deg);
    }
}

@media (min-width: 960px) {
    .swipe-reader-section__inner {
        padding-top: clamp(128px, 16dvh, 176px);
    }

    .swipe-reader-section__body {
        max-width: 720px;
    }

    .swipe-reader-actions {
        right: max(34px, env(safe-area-inset-right));
        bottom: max(34px, env(safe-area-inset-bottom));
    }

    .swipe-reader-section__image-accent {
        left: max(-310px, -16vw);
        bottom: max(-360px, -34dvh);
    }
}

@media (max-width: 560px) {
    .swipe-reader-topbar {
        gap: 10px;
    }

    .swipe-reader-icon-button,
    .swipe-reader-close {
        width: 34px;
        height: 34px;
    }

    .swipe-reader-counter {
        display: none;
    }

    .swipe-reader-section__inner {
        padding-top: max(92px, env(safe-area-inset-top) + 72px);
        padding-bottom: max(154px, env(safe-area-inset-bottom) + 116px);
    }

    .swipe-reader-section__body {
        font-size: 1.32rem;
        line-height: 1.42;
    }

    .swipe-reader-section h2 {
        font-size: clamp(2.18rem, 11vw, 4.1rem);
    }

    .swipe-reader-actions {
        gap: 12px;
    }

    .swipe-reader-audio-cta {
        gap: 12px;
        width: min(238px, calc(100vw - 36px));
        font-size: 9px;
    }

    .swipe-reader-audio-cta__ring {
        width: 62px;
        height: 62px;
    }

    .swipe-reader-next-hint {
        gap: 12px;
        width: min(238px, calc(100vw - 36px));
        font-size: 9px;
    }

    .swipe-reader-next-hint__gesture {
        width: 62px;
        height: 76px;
    }

    .swipe-reader-section__image-accent {
        left: -260px;
        bottom: -272px;
        width: min(144vw, 680px);
        opacity: 0.24;
    }
}

@media (prefers-reduced-motion: reduce) {
    .swipe-reader {
        scroll-behavior: auto;
    }

    .swipe-reader-progress span {
        transition: none;
    }

    .swipe-reader-audio-cta__ring::before,
    .swipe-reader-audio-cta__ring::after,
    .swipe-reader-next-hint__gesture::before {
        animation: none;
    }
}

@supports not selector(:has(*)) {
    body.swipe-reader-active {
        overflow: hidden;
    }

    body.swipe-reader-active .gh-viewport > header,
    body.swipe-reader-active .gh-viewport > footer {
        display: none;
    }
}
