/* ───────────── every form factor: phones from 320 px, foldables (cover, open, book posture), tablets, desktops ─────────────
   rules_design_review, 28-Oct-2026. The viewport meta carries viewport-fit=cover; see directory-blueprint/design/FOLD-LAYER.md. */

/* nothing wider than the screen: the "checked" stamp stays inside between 921 and 1279 px (it widened the home 10 px on a Fold main
   screen and an iPad held sideways, and on 932–1180 px laptops); a long name breaks inside its heading */
@media (max-width: 1279px) { .st-stamp { right: -6px; } }
.hx { overflow-x: clip; }
h1, h2, h3 { overflow-wrap: anywhere; }

/* the masthead never sticks (the owner's standing rule: no sticky header on any site); the filter bar gives way on short screens */
.mast { position: relative; }
@media (max-height: 520px) { .sift { position: static; } }

/* safe areas: notches, rounded corners and the home bar */
.page { width: min(var(--max), 100% - max(16px, env(safe-area-inset-left)) - max(16px, env(safe-area-inset-right))); }
.foot { padding-bottom: max(42px, env(safe-area-inset-bottom)); }

/* touch: every target at least 44 px (links inside sentences excepted) */
@media (pointer: coarse) {
  .lookup input, .lookup button { height: 44px; }
  .shade { width: 44px; height: 44px; }
  .name { min-height: 44px; }
  .links a, .list-yours { display: inline-flex; align-items: center; min-height: 44px; }
  .act, .btn-ink, .btn-line, .sift button { min-height: 44px; }
  .foot ul { gap: 0; }
  .foot ul a, .foot .legal a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
  .foot .legal { gap: 0 18px; }
  .sec-h > a, .st-foot a { display: inline-block; padding-block: 13px; margin-block: -13px; }
  a.fig { padding: 9px; margin: -9px; }
}

/* book posture (a foldable half-open like a book): nothing across the fold */
@media (horizontal-viewport-segments: 2) {
  :root { --seg0: env(viewport-segment-width 0 0, 50vw); --fold-gap: calc(env(viewport-segment-left 1 0, 0px) - env(viewport-segment-right 0 0, 0px) + 32px); --fold-page: calc(var(--seg0) - 32px); }
  .page { width: calc(100% - 32px); }
  .hx .page { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--fold-gap); }
  .foot .cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--fold-gap); }
}
