/* Phone layer, hubs templates. Everything inside @media (max-width: 767px). See docs/processes/mobile-layer.md */
/* Pages: /robberies, /heists, /money, /robberies/[tier] (all main.hubs-page), /vehicles (.sr-row), /characters (.cl-features), /characters/[slug] (.dz). */

/* ── blocks shared by every hub page ── */
@media (max-width: 767px) {
  /* section heading: tighter, and the "All ..." link sits on the title line as the small light pill */
  body :is(.hubs-page, main:has(.sr-row, .cl-features, .dz)) .run-head { flex-wrap: nowrap; align-items: flex-end; gap: 0.6rem; margin-bottom: 0.8rem; }
  body :is(.hubs-page, main:has(.sr-row, .cl-features, .dz)) .run-head-text { flex: 1; gap: 0.4rem; }
  body :is(.hubs-page, main:has(.sr-row, .cl-features, .dz)) .run-h2 { font-size: 1.5rem; line-height: 1; }
  body :is(.hubs-page, main:has(.sr-row, .cl-features, .dz)) .run-head > .run-ghost { flex: none; gap: 0.4rem; min-height: 34px; padding: 0 0.3rem 0 0.75rem; font-size: 0.66rem; font-weight: 800; color: #0b0b12; background: #f5f1ea; box-shadow: none; }
  body :is(.hubs-page, main:has(.sr-row, .cl-features, .dz)) .run-head > .run-ghost::after { content: '→'; display: grid; place-items: center; flex: none; width: 1.5rem; height: 1.5rem; border-radius: 50%; font-size: 0.8rem; color: #f5f1ea; background: #0b0b12; }
  body :is(.hubs-page, main:has(.sr-row, .cl-features, .dz)) .run-head > .run-ghost:active { transform: scale(0.96); }

  /* FAQ: short cards, 14 px answers; the 01/02 chip is decoration */
  body :is(.hubs-page, main:has(.sr-row, .cl-features, .dz)) .run-faq { gap: 6px; }
  body :is(.hubs-page, main:has(.sr-row, .cl-features, .dz)) .run-faq-item { gap: 0.35rem; padding: 0.8rem 0.9rem 0.85rem; }
  body :is(.hubs-page, main:has(.sr-row, .cl-features, .dz)) .run-faq-item:hover { transform: none; }
  body :is(.hubs-page, main:has(.sr-row, .cl-features, .dz)) .run-faq-index { display: none; }
  body :is(.hubs-page, main:has(.sr-row, .cl-features, .dz)) .run-faq-q { font-size: 1.05rem; line-height: 1.1; }
  body :is(.hubs-page, main:has(.sr-row, .cl-features, .dz)) .run-faq-a { margin-top: 0.3rem; font-size: 0.875rem; line-height: 1.5; }

  /* map card: a short map band, then title left and the pill right */
  body :is(.hubs-page, main:has(.sr-row, .cl-features, .dz)) .mcta { border-radius: 14px; }
  body :is(.hubs-page, main:has(.sr-row, .cl-features, .dz)) .mcta .mcta-map { aspect-ratio: 16 / 7; }
  body :is(.hubs-page, main:has(.sr-row, .cl-features, .dz)) .mcta-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 0.6rem; padding: 0 0.8rem 0.8rem; }
  body :is(.hubs-page, main:has(.sr-row, .cl-features, .dz)) .mcta-kicker { display: none; }
  body :is(.hubs-page, main:has(.sr-row, .cl-features, .dz)) .mcta-title { font-size: 1.15rem; line-height: 1; }
  body :is(.hubs-page, main:has(.sr-row, .cl-features, .dz)) .mcta-meta { grid-column: 1; font-size: 0.75rem; }
  body :is(.hubs-page, main:has(.sr-row, .cl-features, .dz)) .mcta-go { grid-column: 2; grid-row: 1 / span 2; align-self: center; margin: 0; padding: 0.55rem 0.85rem; font-size: 0.68rem; white-space: nowrap; }

  /* tool panels: two short picture cards side by side, title and button only */
  body :is(.hubs-page, main:has(.sr-row, .cl-features, .dz)) .feature-strip--tools { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  body :is(.hubs-page, main:has(.sr-row, .cl-features, .dz)) .feature-strip .feature-panel { min-height: 132px; border-radius: 12px; }
  body :is(.hubs-page, main:has(.sr-row, .cl-features, .dz)) .feature-strip--tools :is(.feature-panel-tag, .method-icon, .feature-panel-body p) { display: none; }
  body :is(.hubs-page, main:has(.sr-row, .cl-features, .dz)) .feature-strip--tools .feature-panel-body { gap: 0.5rem; padding: 0.7rem; }
  body :is(.hubs-page, main:has(.sr-row, .cl-features, .dz)) .feature-strip--tools .feature-panel-title { font-size: 1.2rem; line-height: 0.95; }
  body :is(.hubs-page, main:has(.sr-row, .cl-features, .dz)) .feature-strip--tools .panel-cta { min-height: 30px; padding: 0.35rem 0.65rem; font-size: 0.6rem; letter-spacing: 0.04em; white-space: nowrap; }
  body :is(.hubs-page, main:has(.sr-row, .cl-features, .dz)) .feature-strip--tools .panel-cta svg { display: none; }

  /* related article card and the "looking for heists" band: shorter */
  body :is(.hubs-page, main:has(.sr-row, .cl-features, .dz)) .newsx-card { min-height: 150px; }
  body :is(.hubs-page, main:has(.sr-row, .cl-features, .dz)) .newsx-card-body { padding: 0.8rem 0.9rem; gap: 0.35rem; }
  body :is(.hubs-page, main:has(.sr-row, .cl-features, .dz)) .newsx-card-title { font-size: 1.2rem; line-height: 1; }
  body .hubs-page .cross-band { flex-direction: row; align-items: center; gap: 0.8rem; padding: 0.8rem 0.9rem; }
  body .hubs-page .cross-band p { font-size: 0.84rem; line-height: 1.4; }

  /* running text of the hubs: 14 to 15 px, not 18 */
  body .hubs-page .rob-lede { margin: 0 0 0.9rem; font-size: 0.9rem; line-height: 1.5; }
  body .hubs-page .rob-lede--wide { font-size: 0.95rem; line-height: 1.5; }
  body .hubs-page .tg-note { margin-top: 0.6rem; }
  body .hubs-page p.text-base { font-size: 0.9rem; line-height: 1.5; }
  body :is(.hubs-page, main:has(.sr-row, .cl-features, .dz)) nav[aria-labelledby='related-heading'] { margin-top: 1.4rem; }
}

/* ── picture tiles (home-run module tiles reused on the hubs) ── */
@media (max-width: 767px) {
  /* the lead tile is one row high, not two: six targets fit one screen */
  body .hubs-page [class*='bento'] { grid-auto-rows: 128px; gap: 6px; }
  body .hubs-page [class*='bento'] > [class*='tile0'] { grid-row: span 1; }
  body .hubs-page [class*='bento'] > [class*='tile0'] [class*='tileName'] { font-size: 1.9rem; }
  body .hubs-page [class*='bento'] > [class*='tile0'] [class*='tileCash'] { margin-top: 0.4rem; padding: 0.25rem 0.75rem 0.25rem 0.25rem; }
  body .hubs-page [class*='bento'] > [class*='tile0'] [class*='tileCash'] b { font-size: 1.2rem; }
  body .hubs-page [class*='bento'] > li:last-child:nth-child(even) { grid-column: 1 / -1; }
  body .hubs-page [class*='bento'] [class*='tileTag'] { display: none; } /* "Full guide" badge: it sat on the pink label of the short lead tile */
  body .hubs-page a[class*='tile'], body .hubs-page div[class*='tile']:has(> [class*='tileBody']) { padding: 0.6rem 0.65rem; border-radius: 12px !important; }
  /* tighter pink label so two lines still fit the short tile */
  body .hubs-page [class*='tileTier'] { letter-spacing: 0.05em; line-height: 1.2; }
  body .hubs-page [class*='tileBody'] { min-width: 0; max-width: 100%; gap: 0.15rem; }

  /* /robberies guides: every group is a two-column wall of short tiles (was one 250 px tile per row or pair) */
  body section[aria-labelledby='robbery-runs'] > .grid { gap: 1.5rem; }
  body section[aria-labelledby='robbery-runs'] .scroll-mt-24 > div { gap: 0.2rem; padding-bottom: 0.5rem; margin-bottom: 0.6rem; }
  body section[aria-labelledby='robbery-runs'] h3 { font-size: 1.35rem !important; gap: 0.5rem; }
  body section[aria-labelledby='robbery-runs'] h3 + p { font-size: 0.8rem; line-height: 1.35; }
  body section[aria-labelledby='robbery-runs'] ol { grid-auto-rows: 138px !important; gap: 6px; }
  body section[aria-labelledby='robbery-runs'] ol > li { grid-column: auto; }
  body section[aria-labelledby='robbery-runs'] ol > li:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
  body section[aria-labelledby='robbery-runs'] [class*='tileName'] { font-size: 1.05rem !important; line-height: 0.98; }
  body section[aria-labelledby='robbery-runs'] [class*='tileCash'] { margin-top: 0.3rem; padding: 0.15rem 0.55rem 0.15rem 0.18rem; gap: 0.35rem; max-width: 100%; }
  body section[aria-labelledby='robbery-runs'] [class*='tileCash']::before { width: 1.2rem; height: 1.2rem; font-size: 0.72rem; }
  body section[aria-labelledby='robbery-runs'] [class*='tileCash'] b { font-size: 1rem; }
  body section[aria-labelledby='robbery-runs'] [class*='tileCashNote'] { display: none; }
  body section[aria-labelledby='robbery-runs'] li:first-child:nth-last-child(odd) [class*='tileCashNote'] { display: inline; font-size: 0.6875rem; }
  body section[aria-labelledby='robbery-runs'] > p { margin-top: 1rem; }

  /* tier pages: the targets are short wide tiles, the related links never overflow their tile */
  body #tier-targets { padding-top: 0.4rem; }
  body #tier-targets > ul { gap: 6px; }
  body #tier-targets > ul > li { aspect-ratio: auto; height: 138px; }
  body #tier-targets [class*='tileName'] { font-size: 1.3rem !important; }
  body #tier-targets [class*='tileCash'] { margin-top: 0.3rem; padding: 0.15rem 0.6rem 0.15rem 0.18rem; }
  body #tier-targets [class*='tileCash']::before { width: 1.2rem; height: 1.2rem; font-size: 0.72rem; }
  body #tier-targets [class*='tileCash'] b { font-size: 1.05rem; }
  body :is(.hubs-page, main:has(.sr-row, .cl-features, .dz)) nav[aria-labelledby='related-heading'] > ul { gap: 6px; }
  body :is(.hubs-page, main:has(.sr-row, .cl-features, .dz)) nav[aria-labelledby='related-heading'] [class*='tileName'] { font-size: 1rem !important; line-height: 1; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  body :is(.hubs-page, main:has(.sr-row, .cl-features, .dz)) nav[aria-labelledby='related-heading'] > ul > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* ── /robberies ── */
@media (max-width: 767px) {
  /* tier comparison: one card per tier (was a 860 px table scrolling sideways). Cells are regrouped by column with `order`. */
  body .tc-wrap { overflow: visible; border: 0; border-radius: 0; background: none; }
  body .tc { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; }
  body .tc thead, body .tc tbody, body .tc tr { display: contents; }
  body .tc tr > :first-child { display: none; } /* the label column: each value carries its label (data-label) */
  body .tc tr > :nth-child(2) { order: 2; } body .tc tr > :nth-child(3) { order: 3; } body .tc tr > :nth-child(4) { order: 4; }
  body .tc tr > :nth-child(5) { order: 5; } body .tc tr > :nth-child(6) { order: 6; } body .tc tr > :nth-child(7) { order: 7; }
  body .tc tr > :nth-child(8) { order: 8; } body .tc tr > :nth-child(9) { order: 9; }
  body .tc thead th { margin-top: 8px; padding: 0.5rem 0.6rem; border: 1px solid var(--border-subtle); border-bottom: 0; border-radius: 12px 12px 0 0; background: var(--bg-elevated); }
  body .tc thead th:nth-child(2) { margin-top: 0; }
  body .tc-head { display: flex; align-items: center; gap: 0.7rem; min-height: 44px; }
  body .tc-pic { flex: none; width: 60px; aspect-ratio: 4 / 3; border-radius: 8px; }
  body .tc-name { font-size: 1.25rem; }
  body .tc tbody td { display: grid; grid-template-columns: 6.6rem minmax(0, 1fr); align-items: baseline; gap: 0.5rem; padding: 0.3rem 0.7rem; border: 0; border-inline: 1px solid var(--border-subtle); font-size: 0.84rem; line-height: 1.3; background: var(--bg-elevated); }
  body .tc tbody td::before { content: attr(data-label); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; white-space: nowrap; color: var(--text-muted); }
  body .tc tbody tr:not(:last-child) td.tc-none { display: none; } /* "—" = nothing sourced yet: the row is left out */
  body .tc tbody tr:last-child td { padding-bottom: 0.6rem; border-bottom: 1px solid var(--border-subtle); border-radius: 0 0 12px 12px; }

  /* mechanics sections: 14 px points, pictures two across */
  body .hubs-page section[id] > ul.text-base { margin-top: 0.6rem; gap: 0.45rem; font-size: 0.875rem; line-height: 1.5; }
  body .hubs-page section[id] > .grid:has(> figure) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 0.9rem; }
  body .hubs-page section[id] > .grid:has(> figure) > figure:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
  body .hubs-page section[id] > .grid:has(> figure) > figure:first-child:nth-last-child(odd) > span { aspect-ratio: 21 / 9; }
  body .hubs-page section[id] > .grid:has(> figure) figcaption { margin-top: 0.25rem; font-size: 0.75rem; line-height: 1.3; }
}

/* ── /heists ── */
@media (max-width: 767px) {
  /* every heist: title, target, then chapter / missions / payout on one line (was five stacked rows, 194 px a card) */
  body #story-heists .data-table--stack tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 0.9rem; margin-bottom: 6px; padding: 0.65rem 0.8rem 0.7rem; }
  body #story-heists .data-table--stack td { width: auto; margin: 0; padding: 0; border: 0; }
  body #story-heists .data-table--stack td:first-child { order: -2; flex: 1 1 100%; font-size: 1.2rem !important; }
  body #story-heists .data-table--stack td[data-label] { display: inline-flex; align-items: baseline; gap: 0.35rem; font-size: 0.84rem; font-weight: 700; }
  body #story-heists .data-table--stack td[data-label]::before { font-size: 0.6875rem; letter-spacing: 0.06em; }
  body #story-heists .data-table--stack td[data-label='Target'] { order: -1; flex: 1 1 100%; font-weight: 400; color: var(--text-secondary); line-height: 1.35; }
  body #story-heists .data-table--stack td[data-label='Target']::before { display: none; }
  body #story-heists .data-table--stack td[data-label='Payout'] { color: #4ade80; }

  /* how heists work: a short picture, then compact text */
  body .hubs-page .ed-walk { gap: 1.5rem; }
  body .hubs-page .ed-walk-item, body .hubs-page .ed-walk-item:nth-child(even) { gap: 0.6rem; }
  body .hubs-page .ed-walk .ed-walk-media { aspect-ratio: 21 / 9; border-radius: 12px; }
  body .hubs-page .ed-walk-text { gap: 0.4rem; }
  body .hubs-page .ed-walk-name { font-size: 1.3rem; line-height: 1; }
  body .hubs-page .heist-walk-answer { font-size: 0.95rem; line-height: 1.45; }
  body .hubs-page .heist-walk-detail { font-size: 0.875rem; line-height: 1.5; }
  body .hubs-page .heist-walk-source { padding-top: 0.3rem; border-top: 0; }

  /* the way out to robberies: a short band */
  body .rb { border-radius: 14px; }
  body .rb-body { gap: 0.5rem; padding: 0.9rem; }
  body .rb-title { font-size: 1.6rem; }
  body .rb-text { font-size: 0.875rem; line-height: 1.45; }
  body .rb-cta { margin-top: 0; padding: 0.6rem 1rem; font-size: 0.7rem; }
  body .rb-types { margin-top: 0; gap: 0.3rem; }
  body .rb-types a { padding: 0.5rem 0.7rem; }
}

/* ── /robberies/[tier] ── */
@media (max-width: 767px) {
  /* step pictures: two across, an odd first one wide */
  body .hubs-page .grid.sm\:grid-cols-3:has(> figure) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 6px; margin-top: 0.8rem; }
  body .hubs-page .grid.sm\:grid-cols-3:has(> figure) > figure:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
  body .hubs-page .grid.sm\:grid-cols-3:has(> figure) figcaption { margin-top: 0.25rem; line-height: 1.3; }
  body .hubs-page #tier-targets ~ p.text-sm { font-size: 0.8rem; line-height: 1.6; }
  /* bank jobs: one short line per bank, the take on the right; the range bar is a gauge, left to desktop */
  body .bj-grid { gap: 8px; }
  body .bj { border-radius: 12px; }
  body .bj-head { padding: 0.7rem 0.8rem 0.6rem; }
  body .bj-head h3 { font-size: 1.25rem; }
  body .bj-head p { margin-top: 0.4rem; gap: 0.3rem; }
  body .bj-chip { font-size: 0.6875rem; padding: 0.15rem 0.5rem; }
  body .bj-list { padding: 0.15rem 0; }
  body .bj-row { grid-template-columns: 1.3rem minmax(0, 1fr) auto; gap: 0.5rem; padding: 0.42rem 0.8rem; }
  body .bj-bar { display: none; }
  body .bj-name { font-size: 0.875rem; line-height: 1.25; column-gap: 0.4rem; }
  body .bj-take { font-size: 0.84rem; }

  /* sourced facts: two short cash tiles, evidence cards with a thin picture, 14 px text */
  body .kf-wrap { gap: 0.9rem; }
  body .kf-money { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  body .kf-money > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  body .kf-cash { min-height: 118px; gap: 0.2rem; padding: 0.7rem 0.75rem; border-radius: 14px; }
  body .kf-cash-n { font-size: 1.9rem; }
  body .kf-cash dd { font-size: 0.8rem; line-height: 1.3; }
  body .kf-cash .kf-ev { position: static; order: 9; align-self: flex-start; padding: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; font-size: 0.6875rem; }
  body .kf-exhibits { gap: 6px; }
  body .kf-ex { border-radius: 14px; }
  body .kf-ex-img { aspect-ratio: 3 / 1; }
  body .kf-ex-body { gap: 0.25rem; padding: 0.3rem 0.8rem 0.75rem; }
  body .kf-ex dd { font-size: 0.875rem; line-height: 1.45; }
  body .kf-list > div { padding: 0.55rem 0; gap: 0.15rem; }
  body .kf-list dd { font-size: 0.875rem; line-height: 1.5; }
  body .kf-ev { font-size: 0.6875rem; }
}

/* ── /vehicles ── */
@media (max-width: 767px) {
  body .hg-nav { gap: 6px; margin-bottom: 1.1rem; }
  body .hg-nav a { display: flex; align-items: center; justify-content: center; flex: 1 1 calc(50% - 3px); min-height: 40px; padding: 0 0.6rem; }
  body .sr-row + .sr-row { margin-top: 2.2rem; }
  body .sr-row { padding-top: 0; }
  body .sr-row .sr-title { margin-bottom: 0.6rem; gap: 0.25rem; font-size: 2rem; line-height: 0.9; }
  body .sr-row .sr-title span { font-size: 0.84rem; line-height: 1.3; }
  body .sr-row .sr-hero { border-radius: 14px; }
  body .sr-row .sr-spec { gap: 0.7rem; margin-top: 0.8rem; }
  body .sr-row .sr-name { margin-top: 0.4rem; font-size: 1.6rem; }
  body .sr-row .sr-role { margin-top: 0.3rem; font-size: 0.875rem; line-height: 1.45; }
  body .sr-row .sr-leaders { gap: 0.25rem; }
  body .sr-row .sr-leaders dd { font-size: 0.875rem; }
  body .sr-row .sr-leaders .sr-cash { font-size: 1.15rem; }
  body .sr-row .sr-pager span { font-size: 1.2rem; }
  /* every vehicle of the row: a compact row, picture left, name and job right (was a 180 px card) */
  body .sr-row .sr-grid { grid-template-columns: minmax(0, 1fr); gap: 6px; margin-top: 0.9rem; padding-top: 0.9rem; }
  body .sr-row .sr-thumb { display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: auto auto; align-content: center; gap: 0.15rem 0.7rem; min-height: 60px; padding: 0.3rem; border-radius: 12px; background: rgba(255, 255, 255, 0.03); }
  body .sr-row .sr-thumb:active { background: rgba(255, 255, 255, 0.07); }
  body .sr-row .sr-thumb-img { grid-row: 1 / span 2; align-self: center; border-radius: 8px; opacity: 1; }
  body .sr-row .sr-thumb-name { align-self: end; font-size: 1.1rem; line-height: 1; }
  body .sr-row .sr-thumb-job { align-self: start; font-size: 0.6875rem; letter-spacing: 0.04em; line-height: 1.25; }
  body .sr-row .sr-thumb[aria-pressed='true'] { box-shadow: inset 0 0 0 1.5px var(--accent-pink); }
  body .sr-row .sr-thumb[aria-pressed='true'] .sr-thumb-img { box-shadow: none; }
  /* work steps: short cards, number and label on the title line */
  body .hg-steps { gap: 6px; }
  body .hg-step { padding: 0.7rem 0.85rem 0.8rem; border-top-width: 2px; }
  body .hg-step-n { font-size: 1.2rem; gap: 0.45rem; }
  body .hg-step-t { margin-top: 0.3rem; font-size: 1.05rem; line-height: 1.15; }
  body .hg-step-b { margin-top: 0.25rem; font-size: 0.875rem; line-height: 1.5; }
  body .hg-still { margin-top: 0.9rem; font-size: 0.875rem; line-height: 1.5; }
}

/* ── /characters ── */
@media (max-width: 767px) {
  body main:has(.cl-features) > .space-y-14 { padding-top: 1.4rem; }
  body main:has(.cl-features) > .space-y-14 > * + * { margin-top: 2rem; }
  /* the two leads: short picture cards, name, quote, chips and link in three lines */
  body .cl-features { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  body .cl-features .cl-feature { aspect-ratio: auto; min-height: 196px; border-radius: 14px; }
  body .cl-feature .feature-panel-body { padding: 0.75rem 0.8rem; }
  body .cl-feature-name { font-size: 1.7rem; }
  body .cl-feature-line { margin-top: 0.25rem; font-size: 0.84rem; }
  body .cl-feature .cx-chips { flex-wrap: nowrap; margin-top: 0.4rem; gap: 0.3rem; }
  body .cl-feature .cx-chips .chip { padding: 0.1rem 0.45rem; letter-spacing: 0.02em; white-space: nowrap; }
  body .cl-feature-cta { margin-top: 0.45rem; font-size: 0.6875rem; letter-spacing: 0.06em; }
  /* partners in crime: a two-column wall of short tiles, the planner on a wide one (was 300 px a tile, 600 for the first) */
  body #partners-in-crime > p { margin: 0 0 0.8rem; font-size: 0.875rem; line-height: 1.45; }
  body #partners-in-crime > ol { grid-auto-rows: 150px !important; gap: 6px; }
  body #partners-in-crime > ol > li:first-child { grid-row: span 1; }
  body #partners-in-crime a[class*='tile'] { padding: 0.6rem 0.65rem; border-radius: 12px; }
  body #partners-in-crime [class*='tileBody'] { min-width: 0; max-width: 100%; gap: 0.15rem; }
  body #partners-in-crime [class*='tileTier'] { letter-spacing: 0.04em; line-height: 1.2; }
  body #partners-in-crime [class*='tileName'] { font-size: 1.15rem; line-height: 1; }
  body #partners-in-crime li:first-child [class*='tileName'] { font-size: 1.7rem; }
  body #partners-in-crime li:not(:first-child) [class*='tileNote'] { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; font-size: 0.75rem; line-height: 1.3; }
  body #partners-in-crime [class*='tileCash'] { margin-top: 0.3rem; padding: 0.15rem 0.55rem 0.15rem 0.18rem; gap: 0.35rem; max-width: 100%; }
  body #partners-in-crime [class*='tileCash']::before { width: 1.2rem; height: 1.2rem; font-size: 0.72rem; }
  body #partners-in-crime [class*='tileCash'] b { font-size: 1rem; }
  body #partners-in-crime li:not(:first-child) [class*='tileCashNote'] { display: none; }
  body main:has(.cl-features) .cx-split { padding-top: 1.5rem !important; gap: 0.8rem; }
  body main:has(.cl-features) section[style*='padding-top'] { padding-top: 1.5rem !important; }
  body :is(.hubs-page, main:has(.sr-row, .cl-features, .dz)) .cx-ol { padding: 0.2rem 0.9rem; }
  body :is(.hubs-page, main:has(.sr-row, .cl-features, .dz)) .cx-ol li { padding: 0.6rem 0; font-size: 0.875rem; }
}

/* ── /characters/[slug] ── */
@media (max-width: 767px) {
  /* the file photo is a short header, not a full screen */
  body .dz-aside { padding: 0.5rem; }
  body .dz-case { display: none; } /* the case number sat under the back pill; it is repeated in the header line below */
  body .dz-photo { height: 300px; min-height: 0; }
  body .dz-plate { left: 0.7rem; right: 0.7rem; bottom: 1.6rem; padding: 0.55rem 0.75rem; }
  body .dz-plate-name { font-size: 1.8rem; }
  body .dz-head { padding-top: 0.9rem; }
  body .dz .run-crumbs li[aria-current] { display: none; } /* the name is the title right under: the trail stays on one line */
  body .dz-h1 { font-size: 2.3rem; }
  body .dz-summary { margin-top: 0.6rem; font-size: 0.9rem; line-height: 1.5; }
  /* identity: two cells a row */
  body .dz-id { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0.9rem; }
  body .dz-id > div { padding: 0.5rem 0.7rem; }
  body .dz-id > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  body .dz-id dt { font-size: 0.6875rem; letter-spacing: 0.1em; }
  body .dz-id dd { margin-top: 0.1rem; font-size: 0.9rem; line-height: 1.25; }
  body .dz-paid { gap: 6px; margin-top: 0.8rem; }
  body .dz-cash { gap: 0.4rem; padding: 0.22rem 0.7rem 0.22rem 0.22rem; }
  body .dz-cash::before { width: 1.3rem; height: 1.3rem; font-size: 0.75rem; }
  body .dz-cash b { font-size: 1.15rem; }
  body .dz-cash span { font-size: 0.6875rem; letter-spacing: 0.03em; }
  body .dz-block { margin-top: 1.5rem; }
  /* known jobs: one row each, the cut on the right */
  body .dz-jobs { gap: 6px; }
  body .dz-jobs li { grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.6rem; padding: 0.5rem 0.7rem; }
  body .dz-jobs-cash { grid-column: auto; font-size: 1.05rem; }
  body .dz-jobs-name { font-size: 0.95rem; line-height: 1.2; }
  body .dz-jobs-role { font-size: 0.8rem; line-height: 1.35; }
  body .dz-cards { gap: 6px; }
  body .dz-card { padding: 0.6rem 0.75rem; }
  body .dz-card dt { font-size: 0.6875rem; letter-spacing: 0.1em; }
  body .dz-card dd { margin-top: 0.25rem; font-size: 0.84rem; line-height: 1.45; }
  body .dz-squares { gap: 6px; }
  /* bio chapters: a thin picture, then compact text */
  body .dz .cx-chapter { gap: 0; padding: 0; }
  body .dz .cx-chapter + .cx-chapter { margin-top: 8px; }
  body .dz .cx-chapter + .cx-chapter::before { display: none; }
  body .dz .cx-ch-img { aspect-ratio: 21 / 9; }
  body .dz .cx-ch-text { padding: 0.75rem 0.85rem 0.85rem; }
  body .dz .cx-ch-eyebrow { margin-bottom: 0.3rem; font-size: 0.6875rem; letter-spacing: 0.16em; }
  body .dz .cx-ch-title { margin-bottom: 0.5rem; font-size: 1.5rem; }
  body .dz .cx-ch-p { margin-bottom: 0.5rem; font-size: 0.9rem; line-height: 1.55; }
  body .dz .cx-pull { margin: 0.7rem 0 !important; }
  body .dz .cx-pull p { font-size: 1.15rem; }
  body .dz .cx-ch-ev { margin-top: 0.6rem; gap: 0.25rem; }
  body .dz .cx-ch-ev .chip { padding: 0.1rem 0.4rem; font-variation-settings: 'wdth' 100; letter-spacing: 0.02em; white-space: nowrap; } /* three proof chips fit one line */
  body .dz :is(.cx-ch-credit, .cx-cite, .cx-time, .cx-time-chip) { font-size: 0.6875rem; }
  /* trailer moments and lines */
  body .dz .cx-moments { gap: 6px; margin-bottom: 0.9rem; }
  body .dz .cx-moment-body { padding: 0.65rem 0.8rem 0.7rem; }
  body .dz .cx-line { font-size: 0.875rem; }
  body .dz .cx-moment .cx-meta { padding-top: 0.5rem; }
  body .dz .cx-track-row { gap: 0.6rem; padding: 0.6rem 0; }
  body .dz .cx-track-line { font-size: 1rem; line-height: 1.15; }
  body .dz .cx-play { width: 40px; height: 40px; }
  body .dz .cx-mosaic { grid-auto-rows: 100px; gap: 6px; }
}

/* ── /robberies/local-store: one short card per store run (was a 16:9 frame over seven lines, about 650 px) ── */
@media (max-width: 767px) {
  body #store-runs .sr-group { margin-top: 1.1rem; }
  body #store-runs .sr-group-t { margin-bottom: 0.5rem; }
  body #store-runs .sr-grid { gap: 6px; }
  body #store-runs .sr-top { aspect-ratio: 3 / 1; }
  body #store-runs .sr-top--text { aspect-ratio: auto; min-height: 58px; }
  body #store-runs .sr-rank { top: auto; bottom: 0.55rem; left: 0.7rem; font-size: 1.2rem; }
  body #store-runs .sr-take, body #store-runs .sr-top--text .sr-take { left: 2.5rem; right: 0.7rem; bottom: 0.5rem; font-size: 1.35rem; }
  body #store-runs .sr-body { gap: 0.25rem; padding: 0.6rem 0.75rem 0.7rem; }
  body #store-runs .sr-name { font-size: 1.05rem; line-height: 1.15; }
  body #store-runs .sr-bar { display: none; } /* gauge */
  body #store-runs .sr-split { font-size: 0.84rem; line-height: 1.4; }
  body #store-runs .sr-how { margin-top: 0; font-size: 0.875rem; line-height: 1.4; }
  body #store-runs .sr-how span { display: inline; margin-right: 0.4rem; font-size: 0.6875rem; }
  body #store-runs .sr-tags { padding-top: 0.25rem; }
  body #store-runs .sr-chip { padding: 2px 8px; font-size: 0.72rem; }
  body #store-runs .sr-card:hover { transform: none; }
}

/* ── /money (the browser is in mobile-app.css, the BuckMe guide body in guides.css) ── */
@media (max-width: 767px) {
  /* the four money steps: short cards, number and label on one line with the question under */
  body .hubs-page .heist-steps { gap: 6px; }
  body .hubs-page .heist-step { padding: 0.75rem 0.85rem 0.8rem; }
  body .hubs-page .heist-step-head { margin-bottom: 0.3rem; }
  body .hubs-page .heist-step-index { font-size: 1.3rem; }
  body .hubs-page .heist-step-label { font-size: 0.6875rem; }
  body .hubs-page .heist-step-question { margin: 0 0 0.3rem; font-size: 1.15rem; line-height: 1.05; }
  body .hubs-page .heist-step-answer { margin: 0 0 0.3rem; font-size: 0.9rem; line-height: 1.4; }
  body .hubs-page .heist-step-detail { margin: 0; font-size: 0.84rem; line-height: 1.45; }
  body .hubs-page .heist-step-source { margin-top: 0.4rem; padding-top: 0; border-top: 0; font-size: 0.6875rem; }
  body .hubs-page figure.run-panel { margin-bottom: 0.8rem; padding: 0.9rem 1rem; }
  body .hubs-page figure.run-panel blockquote { font-size: 1.1rem; line-height: 1.25; }
  body .hubs-page figure.run-panel figcaption { margin-top: 0.5rem; }
  body .hubs-page p.border-l-2 { margin-bottom: 0.6rem; padding-left: 0.75rem; }
  body .hubs-page #how-money-works > p { margin-bottom: 0.9rem; }
  /* the BuckMe tips sit outside .guide-main on this page: same compact rows as the guides (see guides.css) */
  body #buckme > .gt .gt-h { font-size: 1.45rem; margin: 0.25rem 0 0.7rem; }
  body #buckme > .gt .gt-grid { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  body #buckme > .gt .gt-card { flex-direction: row; align-items: stretch; padding-top: 0; border-radius: 14px; }
  body #buckme > .gt .gt-media { flex: 0 0 96px; aspect-ratio: auto; min-height: 96px; }
  body #buckme > .gt .gt-media .gt-n { font-size: 1.35rem; left: 0.5rem; bottom: 0.4rem; }
  body #buckme > .gt .gt-card:not(.gt-card--img) > .gt-n { flex: 0 0 2.7rem; padding: 0.7rem 0 0 0.8rem; font-size: 1.45rem; }
  body #buckme > .gt .gt-body { min-width: 0; gap: 0.2rem; padding: 0.6rem 0.75rem 0.65rem; }
  body #buckme > .gt .gt-card:not(.gt-card--img) .gt-body { padding-left: 0.35rem; }
  body #buckme > .gt .gt-title { font-size: 0.95rem; line-height: 1.25; }
  body #buckme > .gt .gt-text { font-size: 0.875rem; line-height: 1.4; }
  body #buckme > .gt .gt-ev { padding-top: 0.1rem; }
  body #buckme > .gt .gt-gain { top: auto; bottom: 0.55rem; right: 0.6rem; padding: 0.12rem 0.4rem; font-size: 0.6875rem; letter-spacing: 0.04em; box-shadow: none; }
  body #buckme > .gt .gt-gain svg { display: none; }
}
