/* Week 09 sketches: what every navigation sketch shares, so each file only carries its look and motion.
   .stage is the whole picture (--w by --h), centred and shrunk as one picture.
   .stage[data-side] = open | rail; .stage[data-slot] = badge | icon | text.
   Inside a row, .trail holds .t-badge, .t-icon and .t-text; only the one for the slot shows.
   In a tab bar, .tb-badge shows only when the slot is a badge. The switch at the bottom right is added by week-09-sketch.js. */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { overflow: hidden; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; margin: 0; padding: 0; border: 0; background: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
ul { list-style: none; margin: 0; padding: 0; }

:root {
  --w: 760px; --h: 420px; --fit: 1;
  /* Material 3 Expressive springs, sampled into linear(): spatial 0.8 / 380, fast 0.6 / 800, effects 1 / 1600 */
  --spatial: linear(0, 0.072, 0.222, 0.395, 0.558, 0.696, 0.804, 0.884, 0.94, 0.976, 0.997, 1.009, 1.014, 1.014, 1.013, 1.011, 1.008, 1.006, 1.004, 1.003, 1.002, 1.001, 1, 1, 1);
  --fast: linear(0, 0.108, 0.337, 0.58, 0.79, 0.944, 1.041, 1.084, 1.093, 1.081, 1.059, 1.036, 1.017, 1.004, 0.995, 0.992, 0.991, 0.993, 0.995, 0.997, 0.999, 1, 1, 1.001, 1);
  --fx: linear(0, 0.095, 0.27, 0.441, 0.588, 0.703, 0.793, 0.856, 0.901, 0.932, 0.955, 0.969, 0.979, 0.986, 0.991, 0.994, 0.996, 0.997, 0.998, 0.999, 0.999, 0.999, 1, 1, 1);
}
.stage { position: absolute; left: 50%; top: 50%; width: var(--w); height: var(--h); transform: translate(-50%, -50%) scale(var(--fit)); }

[data-i] { display: inline-grid; place-items: center; flex: none; }
[data-i] svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }

.trail > * { display: none; }
.stage[data-slot="badge"] .trail .t-badge, .stage[data-slot="icon"] .trail .t-icon, .stage[data-slot="text"] .trail .t-text { display: inline-flex; }
.tb-badge { display: none; }
.stage[data-slot="badge"] .tb-badge { display: inline-flex; }

.view b { display: block; }

/* the switch: neutral, apart from the sketch; hidden in the small grid preview */
.ctl-pill { position: fixed; right: 10px; bottom: 10px; z-index: 9; display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(20,20,20,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font: 600 11px/1 system-ui, sans-serif; }
.ctl-pill button { height: 24px; padding: 0 9px; border-radius: 999px; color: rgba(255,255,255,.6); }
.ctl-pill button:hover { color: #fff; background: rgba(255,255,255,.12); }
.ctl-pill button[aria-pressed="true"] { color: #111; background: #fff; }
.ctl-pill i { width: 1px; height: 14px; margin: 0 3px; background: rgba(255,255,255,.25); }
@media (max-width: 520px) { .ctl-pill { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0s !important; transition-delay: 0s !important; animation: none !important; } }
