/* ==========================================================================
   The Tank (October 7 Stories)
   Scorched metal, smoke, military interior — restrained documentary tone.
   Builds on shared story-chapters.css; page-specific identity only.
   ========================================================================== */

@import url('../story-chapters.css');
@import url('../stories-nav.css');

:root {
    --tank-steel: #3a3d42;
    --tank-steel-deep: #1a1b1e;
    --tank-steel-muted: rgba(180, 186, 194, 0.72);
    --tank-accent: var(--color-illuminate-on-dark, #E2C45C);
    --tank-prose: min(42.5rem, 100%);
    --tank-prose-wide: min(47.5rem, 100%);
}

body.tank-story-page {
    background: #fff;
    color: #2C2C2C;
}

body.tank-story-page.has-immersive-hero .site-header .site-nav__link,
body.tank-story-page.has-immersive-hero .site-header .site-action {
    color: rgba(244, 240, 227, 0.98);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.62);
}

body.tank-story-page.has-immersive-hero .site-header .site-action--donate {
    border-color: rgba(244, 240, 227, 0.52);
}

/* --------------------------------------------------------------------------
   Chapter rhythm — lighter padding, white reading foundation
   -------------------------------------------------------------------------- */

body.tank-story-page .story-chapter-section {
    padding: clamp(2.25rem, 5vw, 3.75rem) 0;
}

body.tank-story-page .story-chapter-section--after-hero {
    padding-top: clamp(2.5rem, 5.5vw, 3.75rem);
}

body.tank-story-page .story-chapter-section--video-focus {
    padding-top: clamp(1.75rem, 3.5vw, 2.5rem);
    padding-bottom: clamp(1.75rem, 3.5vw, 2.5rem);
}

body.tank-story-page .story-chapter-section--white {
    background: #fff;
    color: #2C2C2C;
}

body.tank-story-page .story-chapter-section--white .story-lede__prose p,
body.tank-story-page .story-chapter-section--white .story-chapter,
body.tank-story-page .story-chapter-section--white .story-eyebrow {
    color: rgba(44, 44, 44, 0.74);
}

body.tank-story-page .story-chapter-section--white .story-lede h1,
body.tank-story-page .story-chapter-section--white .story-lede h2,
body.tank-story-page .story-chapter-section--white h2.story-chapter-heading {
    color: #2C2C2C;
}

body.tank-story-page .story-chapter-section--white .story-lede blockquote,
body.tank-story-page .story-chapter-section--white .story-lede__prose blockquote {
    color: #2C2C2C;
    border-left-color: rgba(189, 173, 123, 0.55);
}

body.tank-story-page .story-chapter-section--white .story-lede__prose .tank-quote-panel blockquote,
body.tank-story-page .story-chapter-section--white .story-lede__prose .tank-quote-panel blockquote p {
    color: #2C2C2C;
}

body.tank-story-page .story-chapter-section--white .tank-names {
    color: rgba(44, 44, 44, 0.88);
}

body.tank-story-page .story-chapter-section--white .tank-emphasis {
    color: rgba(44, 44, 44, 0.92);
}

body.tank-story-page .story-lede.story-lede--wide,
body.tank-story-page .story-container.story-lede {
    max-width: var(--tank-prose-wide);
}

body.tank-story-page .story-lede__prose p {
    font-size: clamp(1.02rem, 0.38vw + 0.96rem, 1.14rem);
    line-height: 1.82;
}

body.tank-story-page .story-lede h2:not(.story-chapter-heading),
body.tank-story-page .tank-story-title {
    max-width: min(100%, 38rem);
}

/* --------------------------------------------------------------------------
   Hero — mobile collage + desktop/tablet landscape art
   -------------------------------------------------------------------------- */

.tank-doc-hero .story-doc-hero__title {
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    max-width: min(100%, 24rem);
    margin-inline: auto;
    text-wrap: balance;
}

.tank-doc-hero .story-doc-hero__lede {
    width: max-content;
    max-width: min(100%, 36rem);
    margin-inline: auto;
    margin-top: clamp(0.85rem, 2vw, 1.15rem);
    font-size: clamp(1rem, 0.35vw + 0.94rem, 1.12rem);
    font-weight: 400;
    line-height: 1.65;
    color: rgba(244, 240, 227, 0.84);
    text-align: center;
}

.tank-hero-lede__line {
    display: block;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .tank-doc-hero .story-doc-hero__bg {
        object-fit: cover;
        object-position: 54% 58%;
    }
}

@media (min-width: 768px) {
    .tank-doc-hero .story-doc-hero__bg {
        object-fit: cover;
        object-position: center center;
    }
}

/* --------------------------------------------------------------------------
   Creator introduction
   -------------------------------------------------------------------------- */

.tank-creator-intro {
    max-width: var(--tank-prose-wide);
}

.tank-creator-intro .story-lede__prose p + p {
    margin-top: 1.05rem;
}

.tank-source-credit {
    margin-top: clamp(1.35rem, 2.8vw, 1.85rem);
    padding-top: clamp(1rem, 2vw, 1.35rem);
    border-top: 1px solid rgba(44, 44, 44, 0.12);
    font-size: clamp(0.94rem, 0.32vw + 0.88rem, 1.02rem);
    line-height: 1.72;
    color: rgba(44, 44, 44, 0.78);
}

.tank-motto {
    margin-top: clamp(1.75rem, 3.5vw, 2.35rem);
    font-size: clamp(1.05rem, 0.45vw + 0.98rem, 1.22rem);
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1.45;
    color: var(--color-accent-on-light);
}

body.tank-story-page .story-chapter-section--dark .tank-motto {
    color: rgba(189, 173, 123, 0.95);
}

/* --------------------------------------------------------------------------
   Name rolls
   -------------------------------------------------------------------------- */

.tank-names {
    list-style: none;
    margin: clamp(1.15rem, 2.5vw, 1.65rem) 0 0;
    padding: 0;
    font-size: clamp(1rem, 0.35vw + 0.94rem, 1.08rem);
    line-height: 1.65;
}

.tank-names li + li {
    margin-top: 0.55rem;
}

body.tank-story-page .story-chapter-section--light .tank-names {
    color: rgba(44, 44, 44, 0.88);
}

body.tank-story-page .story-chapter-section--dark .tank-names {
    color: rgba(244, 240, 227, 0.9);
}

.tank-emphasis {
    margin-top: clamp(1.15rem, 2.2vw, 1.5rem);
    font-size: clamp(1.08rem, 0.5vw + 1rem, 1.28rem);
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.015em;
    color: rgba(44, 44, 44, 0.92);
}

body.tank-story-page .story-chapter-section--dark .tank-emphasis {
    color: rgba(244, 240, 227, 0.94);
}

.tank-voices-moment {
    margin-top: clamp(1.25rem, 2.5vw, 1.75rem);
    font-size: clamp(1.12rem, 0.55vw + 1.02rem, 1.38rem);
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: -0.02em;
    color: rgba(189, 173, 123, 0.95);
}

/* --------------------------------------------------------------------------
   Documentary — side-by-side portrait videos (Tank page only)
   -------------------------------------------------------------------------- */

.tank-documentary-videos {
    width: 100%;
    max-width: min(100%, 48rem);
    margin-inline: auto;
}

.tank-documentary__label {
    margin: 0 0 clamp(1rem, 2vw, 1.35rem);
    text-align: center;
}

.tank-documentary-videos__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2rem, 3vw, 3rem);
    align-items: stretch;
    width: min(100%, 45.5rem);
    margin-inline: auto;
}

body.tank-story-page .story-chapter-section--video-focus .story-container.tank-documentary-videos {
    display: block;
}

body.tank-story-page .story-chapter-section--video-focus .tank-documentary-videos .story-video {
    width: 100%;
    max-width: 21.25rem;
    justify-self: center;
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

body.tank-story-page .story-chapter-section--video-focus .tank-documentary-videos .story-video__caption {
    margin: 0 0 0.65rem;
    flex-shrink: 0;
}

body.tank-story-page .story-chapter-section--video-focus .tank-documentary-videos .story-video__frame {
    flex: 1 1 auto;
    width: 100%;
    transform: none;
}

@media (hover: hover) and (pointer: fine) {
    body.tank-story-page .story-chapter-section--video-focus .tank-documentary-videos .story-video:hover .story-video__frame,
    body.tank-story-page .story-chapter-section--video-focus .tank-documentary-videos .story-video:focus-within .story-video__frame {
        transform: translate3d(0, -0.35rem, 0);
    }
}

@media (max-width: 599px) {
    .tank-documentary-videos__grid {
        grid-template-columns: minmax(0, 1fr);
        width: min(100%, 20rem);
        gap: clamp(1.75rem, 5vw, 2.25rem);
    }
}

@media (min-width: 600px) and (max-width: 767px) {
    .tank-documentary-videos__grid {
        gap: clamp(1.75rem, 3.5vw, 2.25rem);
    }
}

/* --------------------------------------------------------------------------
   Omer quotation — clean accent on white chapter (Tank page only)
   -------------------------------------------------------------------------- */

.tank-quote-panel {
    margin: clamp(1.15rem, 2.2vw, 1.65rem) 0;
    padding: 0;
    background: none;
    border: 0;
}

.tank-quote-panel::before,
.tank-quote-panel::after,
.tank-quote-panel blockquote::before,
.tank-quote-panel blockquote::after {
    content: none;
    display: none;
}

.tank-quote-panel blockquote {
    margin: 0;
    padding-left: clamp(1rem, 2vw, 1.25rem);
    border-left: 3px solid rgba(189, 173, 123, 0.72);
    color: #2C2C2C;
    font-size: clamp(1.14rem, 0.5vw + 1.05rem, 1.44rem);
    font-weight: 600;
    line-height: 1.48;
    letter-spacing: -0.018em;
}

.tank-quote-panel blockquote p {
    margin: 0;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

.tank-quote-panel blockquote p + p {
    margin-top: 0.3rem;
}

@media (max-width: 640px) {
    .tank-quote-panel {
        margin: clamp(1rem, 3.5vw, 1.35rem) 0;
    }

    .tank-quote-panel blockquote {
        font-size: clamp(1.08rem, 4.2vw, 1.22rem);
        padding-left: clamp(0.85rem, 3.2vw, 1rem);
    }
}

/* --------------------------------------------------------------------------
   Pacing — short lines, four voices
   -------------------------------------------------------------------------- */

.tank-pacing p {
    margin-top: 0.65rem;
}

.tank-pacing p:first-child {
    margin-top: 0;
}

.tank-four-voices {
    margin-top: clamp(1.5rem, 3vw, 2rem);
}

.tank-four-voices p {
    margin: 0;
    font-size: clamp(1.02rem, 0.4vw + 0.96rem, 1.14rem);
    line-height: 1.55;
}

.tank-four-voices p + p {
    margin-top: 0.55rem;
}

body.tank-story-page .story-chapter-section--light .tank-four-voices p {
    color: rgba(44, 44, 44, 0.82);
}

body.tank-story-page .story-chapter-section--dark .tank-four-voices p {
    color: rgba(244, 240, 227, 0.84);
}

.tank-closing-section {
    padding-bottom: clamp(2rem, 4vw, 3rem);
    overflow: visible;
}

body.tank-story-page .tank-closing-section .story-lede {
    overflow: visible;
}

.tank-story-image {
    margin: clamp(2rem, 4.5vw, 3rem) 0 0;
    overflow: hidden;
    border-radius: 0;
    border: 0;
}

.tank-story-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* --------------------------------------------------------------------------
   Shaked memorial bridge — editorial connection to The Tank story
   -------------------------------------------------------------------------- */

.tank-memorial-bridge {
    margin-top: clamp(2.25rem, 4vw, 3.25rem);
    padding-top: clamp(1.65rem, 3vw, 2.15rem);
    border-top: 1px solid rgba(44, 44, 44, 0.1);
    overflow: visible;
}

.tank-memorial-bridge__inner {
    display: grid;
    grid-template-columns: minmax(0, clamp(13rem, 26vw, 17.5rem)) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 3.5rem);
    align-items: center;
    max-width: min(58rem, 100%);
}

.tank-memorial-bridge__portrait {
    position: relative;
    margin: 0;
    width: 100%;
    padding: clamp(1rem, 2.4vw, 1.45rem) clamp(0.25rem, 0.8vw, 0.45rem) clamp(0.35rem, 0.9vw, 0.55rem);
    overflow: visible;
}

.tank-memorial-bridge__portrait-backdrop {
    position: absolute;
    z-index: 0;
    top: clamp(2.25rem, 5.5vw, 3rem);
    left: -8%;
    width: 94%;
    height: clamp(11rem, 58vw, 16.5rem);
    pointer-events: none;
    background:
        radial-gradient(
            ellipse 100% 88% at 44% 42%,
            rgba(244, 240, 227, 0.98) 0%,
            rgba(244, 240, 227, 0.48) 54%,
            rgba(244, 240, 227, 0) 78%
        ),
        radial-gradient(
            ellipse 72% 68% at 62% 68%,
            rgba(189, 173, 123, 0.32) 0%,
            rgba(189, 173, 123, 0.12) 48%,
            rgba(189, 173, 123, 0) 72%
        );
    border-radius: 58% 42% 48% 52% / 52% 48% 55% 45%;
    transform: rotate(-5deg);
    box-shadow:
        0 22px 48px -14px rgba(189, 173, 123, 0.28),
        0 12px 32px -16px rgba(44, 44, 44, 0.08);
}

.tank-memorial-bridge__portrait picture {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    margin: 0;
    transform: translateY(-0.15rem);
}

.tank-memorial-bridge__portrait img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: center top;
    filter:
        drop-shadow(0 12px 26px rgba(38, 32, 28, 0.08))
        drop-shadow(0 4px 14px rgba(189, 173, 123, 0.16));
}

.tank-memorial-bridge__copy {
    min-width: 0;
    padding-block: clamp(0.25rem, 1vw, 0.75rem);
}

.tank-memorial-bridge__name {
    margin: 0 0 clamp(0.85rem, 1.8vw, 1.15rem);
    padding-top: clamp(0.35rem, 0.8vw, 0.55rem);
    border-top: 2px solid rgba(189, 173, 123, 0.42);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #2C2C2C;
}

body.tank-story-page .tank-memorial-bridge__name {
    font-size: clamp(1.45rem, 2.4vw, 1.85rem);
    max-width: none;
}

.tank-memorial-bridge__text {
    margin: 0;
    max-width: 40rem;
    font-size: clamp(1.02rem, 0.42vw + 0.96rem, 1.12rem);
    line-height: 1.8;
    color: rgba(44, 44, 44, 0.74);
}

.tank-memorial-bridge__link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: clamp(1.15rem, 2.2vw, 1.5rem);
    min-height: 2.75rem;
    padding: 0.35rem 0;
    border: 0;
    border-bottom: 1px solid rgba(189, 173, 123, 0.38);
    background: none;
    color: rgba(44, 44, 44, 0.82);
    font-size: clamp(0.78rem, 0.18vw + 0.74rem, 0.84rem);
    font-weight: 650;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    transition:
        color 0.45s var(--ease, ease),
        border-color 0.45s var(--ease, ease),
        gap 0.45s var(--ease, ease);
}

.tank-memorial-bridge__link::after {
    content: "\2192";
    color: rgba(189, 173, 123, 0.88);
    font-size: 1.05em;
    line-height: 1;
    transition: transform 0.45s var(--ease, ease);
}

@media (hover: hover) and (pointer: fine) {
    .tank-memorial-bridge__link:hover,
    .tank-memorial-bridge__link:focus-visible {
        color: #2C2C2C;
        border-bottom-color: rgba(189, 173, 123, 0.62);
        gap: 0.75rem;
    }

    .tank-memorial-bridge__link:hover::after,
    .tank-memorial-bridge__link:focus-visible::after {
        transform: translateX(0.2rem);
    }
}

.tank-memorial-bridge__link:focus-visible {
    outline: 2px solid rgba(189, 173, 123, 0.55);
    outline-offset: 4px;
}

@media (max-width: 640px) {
    .tank-memorial-bridge__inner {
        grid-template-columns: minmax(0, clamp(10.5rem, 38vw, 14rem)) minmax(0, 1fr);
        gap: clamp(1.35rem, 4vw, 2rem);
        align-items: center;
    }

    .tank-memorial-bridge__portrait {
        padding-top: clamp(0.85rem, 2.8vw, 1.1rem);
    }

    .tank-memorial-bridge__portrait-backdrop {
        top: clamp(1.75rem, 7vw, 2.25rem);
        left: -10%;
        width: 98%;
        height: clamp(9.5rem, 62vw, 13.5rem);
        transform: rotate(-4deg);
    }

    body.tank-story-page .tank-memorial-bridge__name {
        font-size: clamp(1.28rem, 4.5vw, 1.48rem);
    }

    .tank-memorial-bridge__text {
        font-size: clamp(0.98rem, 3.6vw, 1.06rem);
        line-height: 1.76;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tank-memorial-bridge__link,
    .tank-memorial-bridge__link::after {
        transition: none;
    }
}

/* Series navigation now lives in ../stories-nav.css */
