/* Strategy (/what-jinn-can-do/strategy), on top of the feature kit's sheet (pages/feature.css). Only what the Strategy
   page has and the kit does not. Each rule sits under a class or id only this page prints (the story's `fp-slot`, the
   questions band's `#questions`), so the three Strategy sub-pages, which load the same stylesheet list, are not
   touched. Round two (spec docs/site-relaunch/round-two/specs/strategy.md): the run, its struck card, the What's
   inside scene and the compare table left the page, and their rules with them. */

/* Questions with no index (sections.ts `index: false`): the first question's heading sits close in size to the band's
   h2, so the answers start a clear step below it. */
#questions .sx-qa__head + .sx-qa__items { margin-top: clamp(32px, 4vw, 48px); }

/* Build five (Sarah IuxX5-PBf0Xb): the reports Strategy writes, four depths across on wide screens, two on tablets,
   one on phones. Under `#reports`, which only this page prints. */
#reports .st-reports__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); margin-top: clamp(20px, 2.6vw, 32px); }
#reports .st-reports__group h3 { font-size: 1.05rem; margin: 0 0 10px; }
#reports .st-reports__group ul { list-style: none; margin: 0; padding: 0; }
#reports .st-reports__group li { padding: 8px 0; border-top: 1px solid var(--rule, rgba(0, 0, 0, 0.12)); }
#reports .st-reports__more { margin-top: clamp(20px, 2.6vw, 32px); }
@media (max-width: 960px) { #reports .st-reports__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { #reports .st-reports__grid { grid-template-columns: 1fr; } }

/* Build six (plan 2026-11-14-1409 G1-U7, Sarah BFfFpzAFEExc), /what-jinn-can-do/strategy/features #areas (navy): the
   catalog table's nine rows set as nine tiles, three across, one on phones; each tile the area's name over what it
   covers. CSS only: the markup, the words and the order are the table's. Safari/VoiceOver drops table semantics when
   the table element itself is restyled, so the table stays display: table and its column heads stay in the
   accessibility tree, clipped (not site.css's display: none); only the body and its rows lay out as grids (check
   VoiceOver in the walk). No accent: the tiles rank nothing. Under `#areas`, which only that sub-page prints. */
#areas .sx-trust__table { display: table; }
#areas .sx-trust__table thead { display: table-header-group; }
#areas .sx-trust__table thead th { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
#areas .sx-trust__table tbody { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
#areas .sx-trust__table tbody tr { display: grid; align-content: start; gap: 8px; margin: 0; padding: 18px 20px 20px; background: var(--navy-3); border: 0; border-radius: var(--radius-sm); }
#areas .sx-trust__table tbody td { display: block; padding: 0; border: 0; }
#areas .sx-trust__table tbody td::before { display: none; }
#areas .sx-trust__table tbody td:first-child { font-family: var(--head); font-size: 1.1rem; font-weight: 700; line-height: 1.25; color: var(--fg); }
#areas .sx-trust__table tbody td:last-child { font-size: .95rem; line-height: 1.45; color: var(--muted); }
@media (max-width: 700px) {
  #areas .sx-trust__table tbody { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  #areas .sx-trust__table tbody tr { padding: 16px 16px 18px; }
}

/* Build six part two PW (Sarah 5H_hcQYgrAMg, IlMMESBSYpFB, zOE9F4myHHso: "Add Atlas to this section"): Atlas stands
   beside the heading of three bands, its roster name and title in the kit's role pill under it (strategy-sub-shared.ts
   atlasFigure). Wide: words left, Atlas right, standing on the line where the band's list begins. Phone: Atlas small
   on its own row under the heading, the pill beside it. Each rule sits under an id one page prints: `#reports`
   (the overview), `#road` (features), `#steps` (how). */
:is(#reports, #road, #steps) .st-atlas { margin: 0; display: grid; justify-items: center; gap: 8px; width: clamp(200px, 19vw, 250px); }
:is(#reports, #road, #steps) .st-atlas__uwee { display: block; width: 72%; }
:is(#reports, #road, #steps) .st-atlas .fp-role { text-align: center; }
#reports .st-reports__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: clamp(24px, 4vw, 56px); align-items: end; }
#reports .st-reports__head h2 { margin-bottom: 0; }
:is(#road, #steps) > .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: clamp(24px, 4vw, 56px); align-items: end; }
:is(#road, #steps) > .wrap > * { grid-column: 1 / -1; min-width: 0; }
:is(#road, #steps) > .wrap > .sp-head { grid-column: 1; grid-row: 1; }
:is(#road, #steps) > .wrap > .st-atlas { grid-column: 2; grid-row: 1; margin-bottom: clamp(24px, 3vw, 40px); }
/* FIX-8 (post-walk, Strategy at 1440): standing upright, Atlas was twice the heading's height, so he stood alone over
   the fourth group and pushed "The road" about 220px down the band. On the overview he now stands smaller with his
   pill beside him (the phone layout, turned to face the heading), so the heading row is no taller than its words and
   his feet stay on the line where the groups begin. */
@media (min-width: 701px) {
  #reports .st-reports__head > .st-atlas { display: flex; flex-direction: row-reverse; align-items: center; gap: 14px; width: auto; }
  #reports .st-reports__head > .st-atlas .st-atlas__uwee { flex: 0 0 auto; width: clamp(88px, 7.4vw, 108px); }
  #reports .st-reports__head > .st-atlas .fp-role { flex: 0 1 auto; max-width: 10.5em; white-space: normal; text-align: right; }
}
@media (max-width: 700px) {
  :is(#reports, #road, #steps) .st-atlas { display: flex; align-items: center; justify-content: flex-start; gap: 12px; width: auto; max-width: 100%; }
  :is(#reports, #road, #steps) .st-atlas__uwee { flex: 0 0 auto; width: 84px; }
  :is(#reports, #road, #steps) .st-atlas .fp-role { flex: 0 1 auto; min-width: 0; white-space: normal; text-align: left; padding: 8px 16px; }
  #reports .st-reports__head, :is(#road, #steps) > .wrap { grid-template-columns: minmax(0, 1fr); }
  #reports .st-reports__head > .st-atlas { margin-top: 16px; }
  :is(#road, #steps) > .wrap > .st-atlas { grid-column: 1; grid-row: 2; margin-bottom: 20px; }
}

/* Build six part two PW (Sarah VjAvYUoQKUAX, R4UFqEFx5eDg, zxoHuy9cykhe, 8VEQWyieL1z5): the sentence under each label
   of the claim row, in the depth part's own fact style (depth.css .dp-pipe__facts): a hairline, then muted text.
   `#st-spine` prints on the overview only. */
#st-spine .st-spine__say { margin: 8px 0 0; padding: 8px 0 0; border-top: 1px solid var(--rule); color: var(--muted); }

/* FIX-13b (second look): the row's host now carries its roster name and title (strategy.ts withHostRole), seated
   on the title's line: title at left, the name and the figure at right (as Atlas sits by #reports' heading), the
   four cards under both. Where the four stand in one row (721 up) each card runs the row's full height, so the four
   stand even. Under 721 the figure and its name sit under the title, figure first. */
#st-spine { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 20px; align-items: end; }
#st-spine > .dp-pipe__title { grid-column: 1; grid-row: 1; margin: 0 0 16px; }
#st-spine > .st-spine__host { grid-column: 2; grid-row: 1; display: flex; flex-direction: row-reverse; align-items: center; gap: 12px; margin: 0 0 12px; }
#st-spine > .st-spine__host > .dp-pipe__uwee { position: static; flex: 0 0 auto; width: 76px; }
#st-spine > .st-spine__host > .fp-role { max-width: 11em; text-align: right; }
#st-spine > .dp-pipe__build { grid-column: 1 / -1; grid-row: 2; }
@media (min-width: 721px) {
  #st-spine .dp-pipe__build .kit-build__step { align-items: stretch; }
}
@media (max-width: 720px) {
  #st-spine { grid-template-columns: minmax(0, 1fr); }
  #st-spine > .dp-pipe__title { margin-bottom: 12px; }
  #st-spine > .st-spine__host { grid-column: 1; grid-row: 2; flex-direction: row; justify-content: flex-start; margin: 0 0 16px; }
  #st-spine > .st-spine__host > .dp-pipe__uwee { width: 64px; }
  #st-spine > .st-spine__host > .fp-role { text-align: left; }
  #st-spine > .dp-pipe__build { grid-row: 3; }
}

/* Build six part two PW (Sarah w6VxdsSICZ-U: "Shift Biscuit and his conversation bubble down slightly"): from 861px
   (where sections.css puts the host beside the words) the host figure, bubble and all, drops a little. It is moved,
   not re-laid: `position: relative` + `top` shifts only the figure's paint, so the title, the list and the lines
   under it stay exactly where they were. Under 861px nothing changes. `#plans` is the overview's band; the
   sub-pages print none. */
@media (min-width: 861px) {
  [data-product="strategy"] #plans .sx-host--beside { position: relative; top: clamp(28px, 3.4vw, 48px); }
}

/* FIX-8 (post-walk, Features "Four depths, one road"): the stage read as plain tabs over a bulleted list at left with
   the right half empty. From 600 the four tabs become numbered stops on one road line (the order the road runs; the
   number is drawn by a CSS counter, so no word is added), and the depth on show lays out in two columns: what it
   holds at left, its documents at right as a ruled list. Same words, same tabs and keys. `#depths` is printed by
   the Features sub-page only. */
@media (min-width: 600px) {
  #depths .kit-stage[data-kit-live] .kit-stage__strip { margin-bottom: clamp(24px, 3vw, 36px); }
  #depths .kit-stage[data-kit-live] .kit-stage__tabs { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; width: auto; border-bottom: 0; counter-reset: depth; }
  #depths .kit-stage[data-kit-live] .kit-stage__tabs::before { content: ""; position: absolute; left: 18px; right: calc(25% - 18px); top: 18px; border-top: 2px solid var(--rule); }
  #depths .kit-stage[data-kit-live] .kit-stage__tab { display: grid; justify-items: start; align-content: start; gap: 10px; min-height: 0; padding: 0 12px 6px 0; text-align: left; white-space: normal; counter-increment: depth; }
  #depths .kit-stage[data-kit-live] .kit-stage__tab::before {
    content: counter(depth); position: relative; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
    font-size: .9rem; font-weight: 700; color: var(--ink-2); background: var(--bg); border: 2px solid var(--rule);
  }
  #depths .kit-stage[data-kit-live] .kit-stage__tab::after { content: none; }
  #depths .kit-stage[data-kit-live] .kit-stage__tab[aria-selected="true"]::before { color: var(--ink); background: var(--amber); border-color: var(--amber); }
  #depths .kit-stage[data-kit-live] .kit-stage__tab:focus-visible { outline-offset: 4px; }
  #depths .kit-stage__panel > .sp-prose { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 12px clamp(28px, 5vw, 72px); align-items: start; max-width: none; }
  #depths .kit-stage__panel > .sp-prose > p { grid-column: 1; margin: 0; font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.5; }
  #depths .kit-stage__panel > .sp-prose > ul { grid-column: 2; grid-row: 1 / span 2; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
  #depths .kit-stage__panel > .sp-prose > ul > li { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--rule); font-weight: 600; }
}

/* FIX-13b (second look, phones): under 600 the same road in a phone shape. Four stops, numbered by the same counter,
   the one on show amber; each column is as wide as its label plus an even share of the rest, and each stop but the
   last draws the road from its circle to the next column's circle (so the line meets every stop whatever the label
   widths). "Strategy Room" may take two lines on the narrowest phones. The documents print as the same ruled list
   under the sentence. Same words, same tabs and keys. */
@media (max-width: 599px) {
  #depths .kit-stage[data-kit-live] .kit-stage__strip { overflow: visible; margin-bottom: 22px; }
  #depths .kit-stage[data-kit-live] .kit-stage__tabs { display: grid; grid-template-columns: repeat(4, auto); gap: 0; width: auto; min-width: 0; border-bottom: 0; counter-reset: depth; }
  #depths .kit-stage[data-kit-live] .kit-stage__tab {
    display: grid; justify-items: start; align-content: start; gap: 8px; min-height: 44px; padding: 0 8px 4px 0;
    font-size: .8rem; line-height: 1.25; text-align: left; white-space: normal; counter-increment: depth;
    background: linear-gradient(var(--rule), var(--rule)) no-repeat 15px 14px / calc(100% - 15px) 2px;
  }
  #depths .kit-stage[data-kit-live] .kit-stage__tab:last-child { padding-right: 0; background: none; }
  #depths .kit-stage[data-kit-live] .kit-stage__tab::before {
    content: counter(depth); position: relative; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
    font-size: .8rem; font-weight: 700; color: var(--ink-2); background: var(--bg); border: 2px solid var(--rule); box-sizing: border-box;
  }
  #depths .kit-stage[data-kit-live] .kit-stage__tab::after { content: none; }
  #depths .kit-stage[data-kit-live] .kit-stage__tab[aria-selected="true"]::before { color: var(--ink); background: var(--amber); border-color: var(--amber); }
  #depths .kit-stage[data-kit-live] .kit-stage__tab:focus-visible { outline-offset: 4px; }
  #depths .kit-stage__panel > .sp-prose > ul { margin: 16px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
  #depths .kit-stage__panel > .sp-prose > ul > li { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--rule); font-weight: 600; }
}

/* Build eight P5 (the editor's lkG8-Mv8PTTh, b3JBz3KC23Y6): a page's own host beside a band's heading
   (strategy-sub-shared.ts hostFigure), as Atlas stands by the road: words left, the host right on the heading's line,
   its feet where the band's content begins. Phone: the host small on its own row under the heading, the pill beside
   it. `#side` prints on compare (a navy table: the figure sits in the copy column between the title and the table),
   `#reader` on features. */
:is(#side, #reader) .st-host { margin: 0; display: grid; justify-items: center; gap: 8px; width: clamp(150px, 13vw, 190px); }
:is(#side, #reader) .st-host__uwee { display: block; width: 78%; }
:is(#side, #reader) .st-host .fp-role { text-align: center; }
#side .sx-trust__copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: clamp(24px, 4vw, 56px); align-items: end; }
#side .sx-trust__copy > * { grid-column: 1 / -1; min-width: 0; }
#side .sx-trust__copy > .sp-label { grid-column: 1; grid-row: 1; }
#side .sx-trust__copy > h2 { grid-column: 1; grid-row: 2; }
#side .sx-trust__copy > .st-host { grid-column: 2; grid-row: 1 / span 2; margin-bottom: clamp(16px, 2vw, 24px); }
#reader > .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: clamp(24px, 4vw, 56px); align-items: end; }
#reader > .wrap > * { grid-column: 1 / -1; min-width: 0; }
#reader > .wrap > .sp-head { grid-column: 1; grid-row: 1; }
#reader > .wrap > .st-host { grid-column: 2; grid-row: 1; margin-bottom: clamp(24px, 3vw, 40px); }
@media (max-width: 700px) {
  :is(#side, #reader) .st-host { display: flex; align-items: center; justify-content: flex-start; gap: 12px; width: auto; max-width: 100%; }
  :is(#side, #reader) .st-host__uwee { flex: 0 0 auto; width: 84px; }
  :is(#side, #reader) .st-host .fp-role { flex: 0 1 auto; min-width: 0; white-space: normal; text-align: left; }
  #side .sx-trust__copy, #reader > .wrap { grid-template-columns: minmax(0, 1fr); }
  #side .sx-trust__copy > .st-host { grid-column: 1; grid-row: 3; margin-bottom: 20px; }
  #reader > .wrap > .st-host { grid-column: 1; grid-row: 2; margin-bottom: 20px; }
}

/* Build eight P5 (the editor's HG5cTEoX4JwI, match the paragraph to "Where a retainer starts" and align its top with
   the title): the retainer paragraph at the loop line's size (site.css .lede), its top level with the title's
   top on the wide two-column depth layout (the label sits above the title there). `#agency` prints on compare only. */
#agency .sp-prose p { font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.45; }
@media (min-width: 1024px) { #agency .sp-prose { padding-top: 28px; } }
