/* The Story map and timeline pages (/story-map/ and its six languages) and the map section of each home page
   (29.11.2026, Tellurin 1.1.4). Built on style.css (glass, type, buttons) and on the landing-page rules (.va-*):
   only what those do not have is here. Motion: 120 to 200 ms, never looping (the films loop, and stop with
   prefers-reduced-motion, see /story-map.js). */

/* Many glass boxes on one page: no backdrop blur on them (it does not show on the plain paper behind, and each blurred
   layer costs WebKit memory, see style.css, 22.11.2026); the bar and the menu keep theirs. */
.sm-fig, .sm-film, .sm-roads, .sm-own, .sm-check, .sm-card { -webkit-backdrop-filter: none; backdrop-filter: none; }

/* ---------- films: a <video> in the frame of a screenshot, with its own play / pause button ---------- */
.sm-film { position: relative; margin: 0; }
.sm-film video { display: block; width: 100%; height: auto; aspect-ratio: var(--ar, 16 / 9); border-radius: 16px; background: #efe7d7; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5); object-fit: cover; }
.sm-toggle { position: absolute; right: 18px; bottom: 18px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--cream); background: rgba(29, 42, 69, 0.78); border: 1px solid rgba(255, 255, 255, 0.28); box-shadow: 0 8px 22px -10px rgba(29, 42, 69, 0.7); cursor: pointer; transition: transform 0.16s var(--ease-out), background-color 0.16s ease, opacity 0.16s ease; }
.sm-toggle:hover { transform: scale(1.06); background: rgba(29, 42, 69, 0.92); }
.sm-toggle:active { transform: scale(0.95); }
.sm-toggle:focus-visible { outline: 2px solid var(--gold-line); outline-offset: 3px; }
.sm-toggle svg { width: 14px; height: 14px; }
.sm-toggle .sm-i-play { transform: translateX(1px); }
.sm-toggle[data-state="playing"] .sm-i-play, .sm-toggle:not([data-state="playing"]) .sm-i-pause { display: none; }
.sm-toggle[hidden] { display: none; }
.sm-cap { padding: 12px 12px 4px; font-size: 13.5px; line-height: 1.55; color: var(--ink-mute); text-align: center; }

/* ---------- pictures: the frame of the landing pages (.va-fig), with <picture> inside ---------- */
.sm-fig { margin: 0; border-radius: 22px; padding: 7px; min-width: 0; }
.sm-fig img { display: block; width: 100%; height: auto; border-radius: 16px; background: #efe7d7; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5); }
.sm-fig figcaption { padding: 11px 10px 5px; font-size: 13.5px; line-height: 1.55; color: var(--ink-mute); text-align: center; }
.sm-fig.is-night img { background: #16213a; }
.sm-wide { margin-top: 34px; }

/* ---------- a picture or a film beside its text ---------- */
.sm-split { display: grid; gap: 26px; margin-top: 8px; align-items: center; }
.sm-text .eyebrow { margin-bottom: 12px; }
.sm-text h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.9rem, 4.4vw, 2.6rem); line-height: 1.15; color: var(--ink); }
.sm-text > p { margin-top: 14px; color: var(--ink-soft); font-size: 16px; line-height: 1.7; }
.sm-points { display: grid; gap: 10px; margin-top: 18px; }
.sm-points li { position: relative; padding-left: 26px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.6; }
.sm-points li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 9px; height: 9px; border-radius: 50%; background: var(--gold-line); box-shadow: 0 0 0 3px rgba(168, 133, 76, 0.18); }
.sm-points b { color: var(--ink); font-weight: 600; }
.sm-text .sm-more { margin-top: 20px; }

/* ---------- two pictures side by side (Atlas and Night) ---------- */
.sm-pair { display: grid; gap: 18px; margin-top: 34px; }

/* ---------- the roads: the kinds of relationship, drawn the way the map draws them ---------- */
.sm-roads { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 22px; margin-top: 26px; padding: 22px 22px 20px; border-radius: 24px; }
.sm-roads li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; line-height: 1.35; color: var(--ink-soft); min-width: 0; }
.sm-roads svg { flex: none; width: 46px; height: 12px; }

/* ---------- the checks of the timeline: small cards with a warning mark ---------- */
.sm-checks { display: grid; gap: 12px; margin-top: 30px; }
.sm-check { display: flex; gap: 14px; align-items: flex-start; border-radius: 20px; padding: 16px 18px; color: var(--ink-soft); font-size: 15px; line-height: 1.55; -webkit-backdrop-filter: none; backdrop-filter: none; }
.sm-check svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: #b07a2a; }
.sm-check b { color: var(--ink); font-weight: 600; }

/* ---------- links: under a section, and in the line after the cards ---------- */
.va-tried a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; transition: color 0.16s ease; }
.va-tried a:hover { color: var(--ink); }
.sm-more { display: flex; flex-wrap: wrap; gap: 12px; }
.sm-link { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; transition: color 0.16s ease; }
.sm-link:hover { color: var(--ink); }

/* ---------- private, in the same app: the dark card ---------- */
.sm-own { border-radius: 28px; padding: 28px 26px; margin-top: 8px; }
.sm-own h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.7rem, 4vw, 2.3rem); line-height: 1.15; color: var(--cream); }
.sm-own p { margin-top: 12px; font-size: 16px; line-height: 1.7; color: rgba(243, 238, 225, 0.86); }
.sm-own .sm-points li { color: rgba(243, 238, 225, 0.86); }
.sm-own .sm-points b { color: var(--cream); }
.sm-own .sm-points li::before { background: #e2c47e; box-shadow: 0 0 0 3px rgba(226, 196, 126, 0.22); }

/* ---------- the map section of the home pages ---------- */
.sm-home .sm-text h2 { font-size: clamp(2.1rem, 5vw, 3.2rem); font-weight: 500; line-height: 1.08; }
.sm-home .sm-text h2 .gold-italic { font-weight: 500; }
.section .sm-home { margin-top: 0; }
.sm-new { display: inline-flex; align-items: center; gap: 8px; }
.sm-new::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #e2c47e; box-shadow: 0 0 0 4px rgba(226, 196, 126, 0.22); }

@media (min-width: 640px) {
  .sm-fig { border-radius: 28px; padding: 11px; }
  .sm-fig img, .sm-film video { border-radius: 20px; }
  .sm-own { padding: 36px 40px; }
}
@media (min-width: 720px) {
  .sm-pair { grid-template-columns: 1fr 1fr; }
  .sm-checks { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .va-grid.sm-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 50rem; margin-inline: auto; }
  .sm-checks { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .sm-check { grid-column: span 2; }
  .sm-check:nth-last-child(2):nth-child(3n + 1), .sm-check:last-child:nth-child(3n + 2) { grid-column: span 3; } /* five checks: three, then two side by side */
  .sm-split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 44px; }
  .sm-split.is-rev { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .sm-split.is-rev > .sm-text { order: -1; }
}
@media (max-width: 520px) {
  .sm-toggle { right: 12px; bottom: 12px; width: 36px; height: 36px; }
  .sm-roads { padding: 18px 16px; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
  .sm-roads li { font-size: 13.5px; gap: 8px; }
  .sm-roads svg { width: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .sm-toggle, .sm-link { transition: none; }
}
