/* 2026-11-13 Demos page (/examples/): "Pick by type" tabs over every demo (written by v4/tools/examples-pages.py, driven by
   js/demos.js). A near-black gallery band like the homepage reel, so the colour in each poster carries. */
.dm{background:#0c0d0f;color:#f3f1ec;margin-top:clamp(32px,4vw,56px);padding:clamp(24px,3vw,40px) 0 clamp(40px,5vw,72px)}
.dm .rule{border-top-color:rgba(243,241,236,.4);color:#9a978f}
.dm-tabs{margin-top:18px}
.dm .rl-chips button{border-color:rgba(243,241,236,.28);color:#d9d6cf;min-height:44px;padding:0 16px;font-size:12.5px}
.dm .rl-chips button[aria-pressed=true]{background:#f3f1ec;color:#0c0d0f;border-color:#f3f1ec}
.dm .rl-chips button:focus-visible{outline-color:#f3f1ec}
.dm-n{margin-left:8px;opacity:.55}
.dm-note{margin:14px 0 0;color:#d9d6cf;font-size:15px;max-width:40em}
.dm-grid{list-style:none;margin:22px 0 0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:30px 18px}
.dm-card[hidden]{display:none}
.dm-card a{display:block;color:inherit;text-decoration:none}
.dm-card picture{display:block;overflow:hidden;border-radius:10px;background:#1b1d21}
.dm-card img{display:block;width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;object-position:top;transition:transform .6s var(--ease-out)}
.dm-card a:hover img{transform:scale(1.03)}
.dm-card a:focus-visible{outline:2px solid #f3f1ec;outline-offset:4px}
.dm-cap{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding-top:10px;font-size:14px}
.dm-cap b{font-weight:500;min-width:0}
.dm-meta{font-size:10.5px;color:#9a978f;text-align:right}
.dm-biz::before{content:" \00B7  "}
.dm-all{margin:32px 0 0;text-align:center}
.dm-all .btn{background:transparent;color:#f3f1ec;border-color:rgba(243,241,236,.6)}
.dm-all .btn:hover{background:#f3f1ec;color:#0c0d0f}
.dm-all .btn[hidden]{display:none}
.ex-kinds-h{font-size:clamp(40px,5.4vw,84px)}
.ex-kinds-lede{margin:18px 0 clamp(24px,3vw,36px)}
@media (max-width:1000px){.dm-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Phones: two phone-shaped posters side by side */
@media (max-width:700px){
  .dm-grid{gap:24px 10px}
  .dm-card picture{border-radius:14px}
  .dm-card img{aspect-ratio:9/16}
  .dm-cap{flex-direction:column;gap:3px;font-size:13.5px;line-height:1.25}
  .dm-meta{display:flex;flex-direction:column;gap:2px;text-align:left;font-size:10px;line-height:1.35}
  .dm-biz{font-family:var(--sans);text-transform:none;letter-spacing:0;font-size:12.5px;color:#b9b6ae}
  .dm-biz::before{content:none}
  /* all four tabs in view: two by two */
  .dm .dm-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:18px 0 0;padding:0;overflow:visible}
  .dm .dm-tabs button{justify-content:center;white-space:nowrap}
}
@media (prefers-reduced-motion:reduce){.dm-card img{transition:none}.dm-card a:hover img{transform:none}}
