/* ============================================================================
   WELL RUN · SIGNAL SYSTEM — INSIGHTS
   Page styles for /en/insights/  (namespace: .in-)
   Built on Signal Core tokens in global.css.
   Light-field editorial hub: hairline-ruled index rows, no nested cards.
   ============================================================================ */

/* Page base. The Reveal Lift seam shows the dark footer beneath as content
   lifts away — every section paints its own light field over this base. */
.in-page { background: var(--wr-black) !important; overflow-x: hidden; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* Cross-browser: no grey tap flash on touch; long headings/words never
   overflow their container on the narrowest phones. */
.in-page a, .in-page button { -webkit-tap-highlight-color: transparent; }
.in-h1, .in-h2, .in-cta__h, .in-tile__title, .in-head__lead { overflow-wrap: break-word; }

/* Section scaffolding ------------------------------------------------------ */
.in-section { position: relative; z-index: 2; width: 100%; padding: clamp(72px, 10vh, 132px) var(--wr-pad-x); background: var(--wr-white); color: var(--wr-black); }
.in-inner { position: relative; z-index: 4; max-width: var(--wr-max-width); margin: 0 auto; width: 100%; }
.in-section.is-hidden { display: none; }

/* Section head ------------------------------------------------------------- */
.in-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 16px 32px; margin-bottom: clamp(34px, 4.5vh, 52px); scroll-margin-top: 150px; }
.in-head__main { max-width: 38ch; }
.in-eyebrow { margin-bottom: 18px; }
.in-h2 { font-size: clamp(28px, 3.6vw, 46px); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; color: var(--wr-black); text-wrap: balance; }
.in-head__lead { font-size: 14.5px; line-height: 1.55; color: var(--wr-black-40); margin-top: 14px; max-width: 50ch; }
.in-head__count { font-family: ui-monospace, Menlo, monospace; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--wr-black-40); white-space: nowrap; padding-bottom: 6px; }
.in-head__count b { color: var(--wr-orange); }

/* Buttons / text links (Signal System action button) ---------------------- */
.in-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 54px; padding: 0 30px; border-radius: var(--wr-radius-pill); font-size: 13px; font-weight: 800; letter-spacing: 0.04em; color: var(--wr-black); position: relative; isolation: isolate; border: none; cursor: pointer; font-family: inherit; background: var(--wr-grad); background-size: 200% auto; animation: gradientShimmerSlow 4s ease-in-out infinite alternate; transition: transform 0.25s var(--wr-ease-out), box-shadow 0.3s ease; box-shadow: 0 8px 30px -10px #F0492366; text-decoration: none; }
.in-btn svg { width: 15px; height: 15px; stroke: var(--wr-black); stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s var(--wr-ease-out); }
@media (hover: hover) and (pointer: fine) { .in-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 38px -10px #F0492399; } .in-btn:hover svg { transform: translateX(4px); } }
.in-btn--ghost { background: transparent; animation: none; box-shadow: none; color: var(--wr-black); border: 1.5px solid var(--wr-black-15); }
.in-btn--ghost svg { stroke: var(--wr-orange); }
@media (hover: hover) and (pointer: fine) { .in-btn--ghost:hover { transform: translateY(-2px); border-color: var(--wr-black); } }

/* Breadcrumb --------------------------------------------------------------- */
.in-crumb { display: flex; align-items: center; gap: 9px; font-family: ui-monospace, Menlo, monospace; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wr-black-40); margin-bottom: 22px; }
.in-crumb a { color: var(--wr-black); text-decoration: none; transition: color 0.2s ease; }
.in-crumb a:hover { color: var(--wr-orange); }
.in-crumb span { color: var(--wr-black-15); }
.in-crumb b { color: var(--wr-orange); font-weight: 700; }

/* ============================================================================
   S1 — HERO. Editorial masthead on a light field (Daylight, locked).
   ========================================================================== */
.in-hero { position: relative; z-index: 2; width: 100%; background: var(--wr-white); color: var(--wr-black); overflow: hidden; }
.in-hero__glow { position: absolute; inset: 0; pointer-events: none; z-index: 0; background: radial-gradient(48% 52% at 90% 2%, #F0492316 0%, transparent 60%), radial-gradient(40% 42% at 2% 98%, #FFD8000F 0%, transparent 56%); }
.in-hero__grid { position: absolute; inset: 0; z-index: 0; pointer-events: none; background-image: radial-gradient(circle, #0D0A0710 1px, transparent 1.4px); background-size: 38px 38px; -webkit-mask-image: radial-gradient(120% 100% at 88% 4%, #000 0%, transparent 62%); mask-image: radial-gradient(120% 100% at 88% 4%, #000 0%, transparent 62%); opacity: 0.7; }

.in-hero__stage { position: relative; z-index: 4; max-width: var(--wr-max-width); margin: 0 auto; padding: calc(var(--wr-nav-height) + clamp(44px, 7vh, 84px)) var(--wr-pad-x) clamp(48px, 7vh, 80px); display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(36px, 5vw, 76px); align-items: center; }
.in-hero__lead { min-width: 0; }
.in-eyebrow--hero { margin-bottom: 22px; }
.in-h1 { font-size: clamp(34px, 4.4vw, 58px); font-weight: 800; line-height: 1.04; letter-spacing: -0.03em; color: var(--wr-black); max-width: 15ch; text-wrap: balance; }
.in-hero__sub { font-size: clamp(15px, 1.3vw, 18px); line-height: 1.6; color: var(--wr-black-40); max-width: 48ch; margin-top: clamp(20px, 3vh, 28px); }
.in-hero__sub strong { color: var(--wr-black); font-weight: 700; }

/* "In this edition" black card — a single dark contrast panel on the light
   hero, listing every guide grouped by category. One card, not nested boxes. */
.in-toc { position: relative; align-self: stretch; border-radius: var(--wr-radius-card); border: 1px solid var(--wr-white-08); background: linear-gradient(180deg, #15100B, #0C0907); padding: clamp(24px, 2.4vw, 34px); display: flex; flex-direction: column; gap: 22px; box-shadow: 0 40px 90px -52px rgba(13,10,7,0.6); }
.in-toc__cap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.in-toc__caption { font-family: ui-monospace, Menlo, monospace; font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--wr-white-45); }
.in-toc__live { display: inline-flex; align-items: center; gap: 7px; font-family: ui-monospace, Menlo, monospace; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wr-orange); }
.in-toc__live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--wr-grad); box-shadow: 0 0 0 0 #F0492366; animation: inPulse 2.6s ease-out infinite; }
@keyframes inPulse { 0% { box-shadow: 0 0 0 0 #F0492359; } 70%,100% { box-shadow: 0 0 0 9px #F0492300; } }
@media (prefers-reduced-motion: reduce) { .in-toc__live::before { animation: none; } }
.in-toc__group { display: flex; flex-direction: column; gap: 9px; }
.in-toc__label { font-size: 12px; font-weight: 700; letter-spacing: 0.02em; color: var(--wr-white-45); display: flex; align-items: center; gap: 9px; }
.in-toc__label::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--wr-grad); flex-shrink: 0; }
.in-toc__link { display: flex; align-items: baseline; gap: 10px; font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--wr-white-75); text-decoration: none; padding-left: 15px; transition: color 0.2s ease; }
.in-toc__link b { font-family: ui-monospace, Menlo, monospace; font-size: 10px; font-weight: 700; color: var(--wr-white-45); flex-shrink: 0; }
@media (hover: hover) and (pointer: fine) { .in-toc__link:hover { color: var(--wr-white); } .in-toc__link:hover b { color: var(--wr-orange); } }

/* ============================================================================
   FIELD SELECTOR — copied in principle from the Cases page. Two states:
   (a) Default: an inline underline-tab bar sitting in flow after the hero.
   (b) Once it scrolls out of view, a detached rounded capsule fades in fixed
       beneath the nav, and the header's top contact bar collapses for clean
       chrome. Picking a field isolates that category (others hide); "All"
       restores every section. Both bars mirror the same active field.
   ========================================================================== */

/* When the floating filter is active, collapse the header's top contact bar
   (overrides the is-scrolled 36px reveal). */
#siteHeader.is-topbar-hidden #topBar { height: 0; opacity: 0; overflow: hidden; pointer-events: none; }

/* Sentinel — zero-height marker that drives the floating capsule. */
.in-filter-sentinel { position: relative; height: 0; }

/* (a) Inline bar — light field, centred underline tabs --------------------- */
.in-filter { position: relative; z-index: 2; background: var(--wr-white); border-top: 1px solid var(--wr-black-08); border-bottom: 1px solid var(--wr-black-08); }
.in-filter__inner { max-width: var(--wr-max-width); margin: 0 auto; padding: 0 var(--wr-pad-x); display: flex; align-items: center; justify-content: center; }
.in-filter__set { position: relative; display: flex; align-items: stretch; gap: clamp(8px, 2.4vw, 34px); overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.in-filter__set::-webkit-scrollbar { display: none; }
.in-filter__btn { position: relative; display: inline-flex; align-items: baseline; gap: 7px; font-family: inherit; font-size: 13px; font-weight: 700; letter-spacing: 0.01em; color: var(--wr-black); background: transparent; border: none; cursor: pointer; padding: 19px 2px; white-space: nowrap; transition: opacity 0.25s ease; }
.in-filter__btn::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--wr-grad); transform: scaleX(0); transform-origin: center; transition: transform 0.4s var(--wr-ease-spring); }
@media (hover: hover) and (pointer: fine) { .in-filter__btn:not(.is-active):hover { opacity: 0.55; } }
.in-filter__btn.is-active { background: var(--wr-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.in-filter__btn.is-active::after { transform: scaleX(1); }
.in-filter__btn i { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: 0.02em; color: var(--wr-black-40); font-family: ui-monospace, Menlo, monospace; }
.in-filter__btn.is-active i { -webkit-text-fill-color: var(--wr-orange); color: var(--wr-orange); }

/* (b) Floating rounded capsule — sits clearly below the nav ----------------- */
.in-floatfilter { position: fixed; top: calc(var(--wr-nav-height) + 34px); left: 0; right: 0; z-index: 40; display: flex; justify-content: center; padding: 0 var(--wr-pad-x); pointer-events: none; opacity: 0; transform: translateY(-14px) scale(0.96); transition: opacity 0.4s var(--wr-ease-out), transform 0.46s var(--wr-ease-spring); }
.in-floatfilter.is-on { opacity: 1; transform: none; }
.in-floatfilter.is-on .in-floatfilter__set { pointer-events: auto; }
.in-floatfilter__set { position: relative; display: flex; align-items: stretch; gap: clamp(6px, 1vw, 14px); padding: 8px 12px; border-radius: var(--wr-radius-pill); background: var(--wr-white); border: 1px solid var(--wr-black-08); box-shadow: 0 24px 54px -18px rgba(13,10,7,0.42), 0 2px 6px rgba(13,10,7,0.08); overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.in-floatfilter__set::-webkit-scrollbar { display: none; }
.in-floatfilter__btn { position: relative; z-index: 1; display: inline-flex; align-items: baseline; gap: 7px; font-family: inherit; font-size: 13px; font-weight: 700; letter-spacing: 0.01em; color: var(--wr-black); background: transparent; border: none; cursor: pointer; padding: 9px 14px; border-radius: var(--wr-radius-pill); white-space: nowrap; transition: opacity 0.25s ease; }
@media (hover: hover) and (pointer: fine) { .in-floatfilter__btn:not(.is-active):hover { opacity: 0.55; } }
.in-floatfilter__btn.is-active { background: var(--wr-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.in-floatfilter__btn i { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: 0.02em; color: var(--wr-black-40); font-family: ui-monospace, Menlo, monospace; }
.in-floatfilter__btn.is-active i { -webkit-text-fill-color: var(--wr-orange); color: var(--wr-orange); }
@media (prefers-reduced-motion: reduce) { .in-floatfilter { transition: opacity 0.2s linear; } .in-filter__btn::after { transition: none; } }
@media (max-width: 680px) {
  /* Wrap the category tabs inside the bar on phones instead of clipping. */
  .in-filter__inner { padding-top: 10px; padding-bottom: 10px; }
  .in-filter__set { flex-wrap: wrap; overflow-x: visible; justify-content: center; column-gap: clamp(12px, 4vw, 22px); row-gap: 2px; }
  .in-filter__btn { font-size: 12.5px; padding: 8px 2px; }
  /* Float capsule wraps inside the pill so it never overflows the nav width. */
  .in-floatfilter__set { flex-wrap: wrap; overflow-x: visible; justify-content: center; column-gap: clamp(10px, 3vw, 16px); row-gap: 0; border-radius: 20px; padding: 6px 14px; }
  .in-floatfilter__btn { font-size: 12px; padding: 8px 10px; }
}

/* ============================================================================
   GALLERY — image tiles. The picture leads; the title sits on the image and
   the rest of the text (dek · byline · date · read link) reveals on hover.
   One tile = one guide. No nested cards: a tile is one image surface.
   ========================================================================== */
.in-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 1.6vw, 22px); }

.in-tile { position: relative; display: block; border-radius: var(--wr-radius-card); overflow: hidden; aspect-ratio: 16 / 11; background-color: #0D0A07; isolation: isolate; box-shadow: 0 1px 2px rgba(13,10,7,0.05), 0 26px 54px -40px rgba(13,10,7,0.6); transition: transform 0.4s var(--wr-ease-out), box-shadow 0.4s ease; }
@media (hover: hover) and (pointer: fine) { .in-tile:hover { transform: translateY(-5px); box-shadow: 0 1px 2px rgba(13,10,7,0.06), 0 38px 70px -42px rgba(13,10,7,0.7); } }

/* Image-ready surface (Brand Plate) */
.in-tile__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.in-tile__fill { position: absolute; inset: 0; background-color: #0D0A07; background-image: repeating-linear-gradient(135deg, #F2F2F212 0 2px, transparent 2px 14px); transition: transform 0.8s var(--wr-ease-out); }
.in-tile__media::after { content: ''; position: absolute; inset: 0; background: radial-gradient(78% 70% at 76% 14%, #F0492330, transparent 62%), radial-gradient(60% 56% at 12% 96%, #FFD80016, transparent 60%); }
.in-tile__ph { position: absolute; top: 50%; left: 0; right: 0; z-index: 1; text-align: center; transform: translateY(-50%); font-family: ui-monospace, Menlo, monospace; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--wr-white-16); transition: opacity 0.4s ease; }
@media (hover: hover) and (pointer: fine) { .in-tile:hover .in-tile__fill { transform: scale(1.06); } .in-tile:hover .in-tile__ph { opacity: 0; } }

/* Scrim — keeps overlay text legible; deepens on hover */
.in-tile__scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(13,10,7,0.90) 0%, rgba(13,10,7,0.55) 30%, rgba(13,10,7,0.10) 58%, transparent 100%); transition: background 0.4s ease; }
@media (hover: hover) and (pointer: fine) { .in-tile:hover .in-tile__scrim { background: linear-gradient(to top, rgba(13,10,7,0.94) 0%, rgba(13,10,7,0.74) 42%, rgba(13,10,7,0.34) 74%, rgba(13,10,7,0.10) 100%); } }

/* Top overlay — category kicker + internal link */
.in-tile__top { position: absolute; top: 0; left: 0; right: 0; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: clamp(16px, 1.8vw, 22px); }
.in-tile__kicker { display: inline-flex; align-items: center; gap: 9px; font-family: ui-monospace, Menlo, monospace; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wr-white); }
.in-tile__kicker::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--wr-grad); flex-shrink: 0; }
.in-tile__rel { position: relative; z-index: 3; display: inline-flex; align-items: center; gap: 6px; font-family: ui-monospace, Menlo, monospace; font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--wr-white-65); text-decoration: none; white-space: nowrap; transition: color 0.2s ease; }
.in-tile__rel svg { width: 12px; height: 12px; stroke: var(--wr-orange); stroke-width: 2.6; fill: none; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.22s var(--wr-ease-out); }
@media (hover: hover) and (pointer: fine) { .in-tile__rel:hover { color: var(--wr-white); } .in-tile__rel:hover svg { transform: translateX(3px); } }

/* Bottom overlay — title always shown; the rest reveals on hover */
.in-tile__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: clamp(20px, 2.4vw, 30px); }
.in-tile__title { font-size: clamp(20px, 1.9vw, 26px); font-weight: 800; letter-spacing: -0.02em; color: var(--wr-white); line-height: 1.16; text-wrap: pretty; }
.in-tile__link { color: inherit; text-decoration: none; }
.in-tile__link::after { content: ''; position: absolute; inset: 0; z-index: 2; }
.in-tile__reveal { overflow: hidden; max-height: 0; opacity: 0; transform: translateY(10px); transition: max-height 0.5s var(--wr-ease-out), opacity 0.4s ease, transform 0.5s var(--wr-ease-out); }
.in-tile__dek { font-size: 13.5px; line-height: 1.55; color: var(--wr-white-75); margin-top: 12px; max-width: 52ch; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.in-tile__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 12px; margin-top: 16px; }
.in-tile__av { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 9px; font-weight: 800; color: var(--wr-black); background: var(--wr-grad); }
.in-tile__author { font-size: 12px; font-weight: 700; color: var(--wr-white); letter-spacing: -0.01em; }
.in-tile__dot { width: 3px; height: 3px; border-radius: 50%; background: var(--wr-white-16); }
.in-tile__fact { font-family: ui-monospace, Menlo, monospace; font-size: 10.5px; font-weight: 600; letter-spacing: 0.02em; color: var(--wr-white-65); }
.in-tile__fact em { font-style: normal; color: var(--wr-orange); }
.in-tile__go { margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; letter-spacing: 0.03em; color: var(--wr-white); }
.in-tile__go svg { width: 15px; height: 15px; stroke: var(--wr-orange); stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.22s var(--wr-ease-out); }
@media (hover: hover) and (pointer: fine) {
  .in-tile:hover .in-tile__reveal { max-height: 320px; opacity: 1; transform: none; }
  .in-tile:hover .in-tile__go svg { transform: translateX(4px); }
}
/* Touch / no-hover full-text behaviour is handled in the Responsive block
   below, where the tile also restructures into a flowing card so the always-
   visible text can never be clipped by the fixed aspect ratio. */
@media (prefers-reduced-motion: reduce) {
  .in-tile__reveal { transition: opacity 0.3s ease; transform: none; }
  .in-tile__fill { transition: none; }
}

/* Lead tile — the section opener spans the full width, cinematic */
.in-tile--lead { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
.in-tile--lead .in-tile__title { font-size: clamp(26px, 3vw, 40px); line-height: 1.08; max-width: 18ch; }
.in-tile--lead .in-tile__dek { font-size: clamp(14px, 1.1vw, 16px); }

/* ============================================================================
   CTA CLOSE (light): final CTA + soft signal field
   ========================================================================== */
.in-cta { text-align: center; overflow: hidden; }
.in-cta .in-inner { display: flex; flex-direction: column; align-items: center; }
.in-cta__h { font-size: clamp(34px, 5vw, 62px); font-weight: 800; line-height: 1.04; letter-spacing: -0.03em; color: var(--wr-black); max-width: 18ch; text-wrap: balance; }
.in-cta__sub { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.62; color: var(--wr-black-40); max-width: 54ch; margin: 24px auto 0; }
.in-cta__ctas { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 40px; }

.in-signal { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; -webkit-mask-image: radial-gradient(78% 70% at 50% 50%, #000 0%, transparent 72%); mask-image: radial-gradient(78% 70% at 50% 50%, #000 0%, transparent 72%); }
.in-signal__bar { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, #F04923 30%, #FFD800 50%, #F04923 70%, transparent); filter: blur(3px); opacity: 0.5; transform: translateX(-100%); animation: inSweep linear infinite; }
@keyframes inSweep { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .in-signal__bar { animation: none; opacity: 0.16; transform: none; } }

/* ============================================================================
   REVEAL LIFT — footer fixed beneath the page; body padding-bottom is the
   scroll room that uncovers it.
   ========================================================================== */
.in-foot-reveal #site-footer-mount { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1; width: 100%; }
.in-foot-reveal { padding-bottom: 55vh; }
@media (prefers-reduced-motion: reduce) {
  .in-foot-reveal #site-footer-mount { position: static; }
  .in-foot-reveal { padding-bottom: 0; }
}

/* ============================================================================
   RESPONSIVE — fluid from 320px phones through ultra-wide displays.
   ========================================================================== */

/* Ultra-wide: open the measure so the editorial column doesn't strand in a
   narrow band with vast empty margins. Scoped to the page so the global token
   is untouched elsewhere. Type/padding clamps keep their own ceilings. */
@media (min-width: 1600px) { .in-page { --wr-max-width: 1460px; } }
@media (min-width: 2100px) { .in-page { --wr-max-width: 1660px; } }
@media (min-width: 2800px) { .in-page { --wr-max-width: 1880px; } }

/* Hero stacks: lead over the edition card. */
@media (max-width: 1020px) {
  .in-hero__stage { grid-template-columns: 1fr; gap: clamp(30px, 5vh, 48px); }
  .in-toc { max-width: 620px; }
  .in-h1 { max-width: 18ch; }
}

/* Gallery to a single column on tablets and below. */
@media (max-width: 820px) {
  .in-gallery { grid-template-columns: 1fr; }
}

/* Touch devices + narrow viewports: a tile becomes a flowing card — image
   banner on top, full text on a solid panel beneath. Because there is no
   hover to reveal the body, it is shown always; flowing (not overlaid on a
   fixed-ratio box) guarantees nothing is ever clipped, on any browser that
   lacks robust aspect-ratio support too. */
@media (hover: none), (max-width: 700px) {
  .in-tile {
    --in-banner: clamp(158px, 44vw, 232px);
    aspect-ratio: auto;
    background-color: #0D0A07;
  }
  .in-tile__media,
  .in-tile__scrim { bottom: auto; height: var(--in-banner); }
  .in-tile__scrim { background: linear-gradient(to top, rgba(13,10,7,0.78) 0%, rgba(13,10,7,0.30) 56%, transparent 100%); }
  .in-tile__ph { top: calc(var(--in-banner) / 2); }
  .in-tile__body {
    position: static;
    margin-top: var(--in-banner);
    padding: clamp(18px, 5.5vw, 28px);
  }
  .in-tile__reveal { max-height: none; opacity: 1; transform: none; overflow: visible; }
  .in-tile__title { font-size: clamp(19px, 5.2vw, 25px); }
  /* Lead tile (full-bleed opener) follows the same flow layout. */
  .in-tile--lead { aspect-ratio: auto; }
  .in-tile--lead .in-tile__title { font-size: clamp(22px, 6vw, 32px); max-width: none; }
}

/* Section head stacks; filter bar scrolls from the left edge. */
@media (max-width: 640px) {
  .in-head { grid-template-columns: 1fr; }
  .in-head__count { padding-bottom: 0; }
  .in-filter__inner { justify-content: flex-start; }
  .in-filter__set { justify-content: flex-start; }
}

/* Smallest phones: tighten the on-banner overlay so it never wraps awkwardly. */
@media (max-width: 420px) {
  .in-tile__top { padding: 14px; gap: 8px; }
  .in-tile__kicker { font-size: 9px; gap: 7px; }
  .in-tile__rel { font-size: 9px; }
  .in-tile__rel svg { width: 11px; height: 11px; }
  .in-cta__ctas { flex-direction: column; align-items: stretch; width: 100%; max-width: 340px; }
  .in-btn { width: 100%; }
}

/* Touch pointers: comfortable hit targets on the compact controls. */
@media (pointer: coarse) {
  .in-floatfilter__btn { padding-top: 12px; padding-bottom: 12px; }
  .in-toc__link { padding-top: 4px; padding-bottom: 4px; }
}
