/* sv-tour.css — MODULE styles for sv-tour.js:
   #sv-panel-tour (guided-tour card; builds on the core's «shared» .sv-story), #sv-notes (margin notes, PLAN §4.13),
   the Part B layer marks (g.m-x-partb inside #sv-marks, via the core's SV.marks hook) and its legend line. House tokens from sv-viz.css. */

/* ---------------------------------------------------------------- tour card */
.svt-card .hero { font-variant-numeric: proportional-nums lining-nums; }
.svt-card .hero .sv-num { font-family: inherit; }
.svt-card p.body { margin: 0 0 .65rem; }
.svt-card p.body .svt-s:last-child { margin-inline-end: 0; }
.svt-card .svt-keys { list-style: none; margin: .1rem 0 .75rem; padding: 0; font-family: var(--sans); font-size: 14px; line-height: 1.45; color: var(--ink-soft); }
.svt-card .svt-keys li { display: flex; gap: .5rem; align-items: flex-start; margin: 0 0 .4rem; }
.svt-card .svt-keys li b { color: var(--ink); }
.svt-card .svt-keys .ic { flex: none; width: 26px; display: inline-flex; justify-content: center; align-items: center; min-height: 20px; }
.svt-card .svt-keys .ic svg { display: block; }
.svt-card .svt-tris { display: inline-flex; gap: 2px; }
.svt-card .svt-who li { align-items: center; margin-bottom: .25rem; }
.svt-card .svt-who .ct { color: var(--muted-text); font-variant-numeric: tabular-nums; }
.svt-card nav { flex-wrap: wrap; }
/* the panel scrolls on its own (desktop and tablet): «הקודם / הבא» stay in view at its bottom on short screens */
@media (min-width: 768px) { .svt-card nav { position: sticky; bottom: 0; z-index: 2; background: var(--surface); padding-block: .5rem; margin-inline: -.2rem; padding-inline: .2rem; box-shadow: 0 -6px 8px -6px rgba(43,39,36,.12); } }
.svt-card .svt-skip { margin: .8rem 0 0; }
.svt-card .svt-down { font-family: var(--sans); font-size: 14px; margin: .2rem 0 .4rem; }
.svt-card .sv-psec { margin-top: .6rem; }
.svt-card .svt-dead { padding-inline-end: .2rem; }   /* no inner scroll: 6 names, then «הציגו את כל …» */

/* the four-quarter key (top גוף, right רכוש, bottom פרנסה ואדמה, left מים וחשמל) */
.svt-qkey { position: relative; width: 15rem; max-width: 100%; height: 104px; margin: .1rem auto .8rem; font-family: var(--sans); font-size: 12.5px; font-weight: 700; color: var(--ink-soft); }
.svt-qkey .sym { position: absolute; left: 50%; top: 20px; transform: translateX(-50%); width: 64px; height: 64px; }
.svt-qkey .sym svg { display: block; }
.svt-qkey span:not(.sym) { position: absolute; white-space: nowrap; line-height: 1.2; }
.svt-qkey .q0 { top: 0; left: 0; right: 0; text-align: center; }
.svt-qkey .q2 { bottom: 0; left: 0; right: 0; text-align: center; }
.svt-qkey .q1 { top: 44px; left: calc(50% + 40px); }          /* right of the symbol */
.svt-qkey .q3 { top: 44px; right: calc(50% + 40px); }         /* left of the symbol */

/* ---------------------------------------------------------------- margin notes (whole-WB level; buttons that zoom) */
.sv-notes .svt-leads { position: absolute; top: 0; left: 0; overflow: visible; pointer-events: none; }
.sv-notes .sv-note { position: absolute; top: 0; left: 0; display: block; margin: 0; pointer-events: auto; cursor: pointer;
  font-family: var(--sans); font-size: 13px; font-weight: 400; line-height: 1.35; color: var(--ink-soft); text-align: start;
  background: rgba(250, 247, 242, .92); border: 0; border-inline-start: 2px solid var(--ink); border-radius: 0; padding: .15rem .4rem .2rem;
  white-space: normal; max-width: 13rem; unicode-bidi: plaintext; }
.sv-notes .sv-note b { color: var(--ink); font-weight: 700; }
.sv-notes .sv-note:hover b, .sv-notes .sv-note:focus-visible b { text-decoration: underline; text-underline-offset: 2px; }
.sv-notes .sv-note:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.sv-notes .sv-note.short { font-size: 12.5px; padding: .1rem .35rem .15rem; }

/* ---------------------------------------------------------------- Part B layer (killings by forces outside the settler context) */
/* the squares are drawn in g.m-x-partb (core SV.marks hook); hover, click and keyboard go through the core */
.sv-legend .svt-lg-partb .lg { max-width: 100%; }

@media (max-width: 767px) {
  .svt-card .svt-keys { font-size: 13.5px; }
  .svt-card nav button { min-height: 44px; }
  .svt-card .svt-skip .skip { min-height: 44px; }
  .svt-card .dots button { width: 44px; height: 44px; }
  /* «שלב 3 מתוך 6» stays on one line, and each of the six dots keeps a 44 × 44 px target: where the label and the dots
     do not fit side by side (a card narrower than about 330 px: phones under 390 px), the dots take a row of their own */
  .svt-card .step-n { flex-wrap: wrap; gap: 0 .3rem; }
  .svt-card .step-n > span:first-child { white-space: nowrap; flex: none; letter-spacing: 0; }
  .svt-card .step-n .dots { flex: none; margin-inline-end: -.6rem; }   /* the last dot's target may use the card's padding */
  .svt-card .step-n .dots button { flex: none; width: 44px; }
  .svt-card .svt-down a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }   /* a real 44 px box, not a hit area over its neighbours */
}
@media print { .sv-notes .sv-note { background: none; } }
/* phones: margin notes keep their size but get a ≥ 44 px hit area (PLAN §3.3) */
@media (max-width: 767px) { .sv-notes .sv-note::before { content: ''; position: absolute; inset: -12px -4px; } }
