/* Written by scripts/build.mjs from src/tints.mjs. Do not edit here. */
:root[data-tint="navy"]{--ground:#060b14;--ground-rgb:6 11 20;--glow:44 101 148;--accent:#a3d2f1;--dot:#3b8fd0;--p1:#5a9ccb;--p2:#2c6594;--p3:#1f4a73;--sheet-a:62 76 100;--sheet-b:30 41 61;--ink:#0b1220}
.mswitch__tile--navy{background:#2972a3}
.mswitch__item--navy{--accent:#a3d2f1}
:root[data-tint="green"]{--ground:#05110d;--ground-rgb:5 17 13;--glow:35 120 90;--accent:#9be8c8;--dot:#2fb383;--p1:#4fb592;--p2:#23785a;--p3:#175640;--sheet-a:50 84 72;--sheet-b:22 46 38;--ink:#07140f}
.mswitch__tile--green{background:#1f8a63}
.mswitch__item--green{--accent:#9be8c8}
:root[data-tint="brown"]{--ground:#100c09;--ground-rgb:16 12 9;--glow:138 90 49;--accent:#f7c08a;--dot:#e8873a;--p1:#c49562;--p2:#8a5a31;--p3:#5e3b20;--sheet-a:98 76 58;--sheet-b:54 38 27;--ink:#140e09}
.mswitch__tile--brown{background:#c96824}
.mswitch__item--brown{--accent:#f7c08a}
/* Michael Mansour's cards. One small dark page per business (src/render.mjs),
   in the look approved on the design canvas in Nov 2026: a photo of the place
   (where there is one) under a dark scrim, the person in a frosted-glass panel
   with the portrait over its top edge, frosted panels and buttons below, and a
   handle on the bottom edge that slides up the list of cards.

   The colours that differ by business are custom properties, written ahead of
   this file by the build from src/tints.mjs and keyed on <html data-tint>.

   Mobile first, and the same column at every width: a card is read on a phone,
   and on a wide screen it is that phone's column, centred. No media query but
   the ones about the reader (pointer, motion, transparency).

   Frosted glass is a milky white tint over a heavy blur with a bright top rim.
   NOTHING relies on the blur to be readable: every text colour is measured
   against the pixels behind it with the blur on AND off (`npm run contrast`).
   There is no build step for CSS, so `backdrop-filter` is written twice, the
   -webkit- spelling first (Safari before 18 reads only that one). */

@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk-var-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: optional;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: optional;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Metric-matched fallbacks, so the page does not move when the fonts arrive
   (or never do: `optional` keeps the fallback on a slow first visit). The
   figures are the dealership site's, measured there against Arial and Courier New. */
@font-face {
  font-family: "Space Grotesk Fallback";
  src: local("Arial");
  font-weight: 400;
  size-adjust: 108.68%;
  ascent-override: 90.17%;
  descent-override: 26.68%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Space Grotesk Fallback";
  src: local("Arial Bold"), local("Arial");
  font-weight: 500 700;
  size-adjust: 101.21%;
  ascent-override: 96.83%;
  descent-override: 28.65%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "IBM Plex Mono Fallback";
  src: local("Courier New");
  size-adjust: 99.98%;
  ascent-override: 103.02%;
  descent-override: 28%;
  line-gap-override: 0%;
}

:root {
  --soft: rgb(255 255 255 / 0.86);
  --mute: rgb(255 255 255 / 0.76);
  --line: rgb(255 255 255 / 0.1);
  --font: "Space Grotesk", "Space Grotesk Fallback", system-ui, sans-serif;
  --mono: "IBM Plex Mono", "IBM Plex Mono Fallback", ui-monospace, monospace;
  --out: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
  scrollbar-color: rgb(255 255 255 / 0.28) transparent;
  scrollbar-gutter: stable;
}

*,
*::before,
*::after { box-sizing: border-box; }
html {
  background: var(--ground);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background: var(--ground);
  color: #fff;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, p, ul, table { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img, svg { display: block; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--ink); }
html.is-sheet-open { overflow: hidden; }

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

a:focus-visible,
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
main:focus { outline: none; }

/* ---- the card ---- */
.mcard__col {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  width: min(100%, 430px);
  margin: 0 auto;
  padding: 0 20px 28px;
}
/* <main> is one item of the column and a column itself. */
.mcard__main { display: flex; flex-direction: column; }

/* Behind the top of the column, 700px tall, fading into the ground. */
.mcard__bg { position: absolute; z-index: -1; inset: 0 0 auto; height: 700px; overflow: hidden; }
.mcard__bg picture { height: 100%; }
.mcard__bg picture,
.mcard__bg img { display: block; width: 100%; }
.mcard__bg img { height: 100%; object-fit: cover; object-position: 45% 50%; }
.mcard__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Two stops are set by measurement, not by eye (the dealership's team cards,
     14 Nov 2026, and `npm run contrast` here). The scrim stays near full
     strength down to 9% (63px): the wordmark sits there, over the showroom's
     ceiling lights. And it is back to 0.82 by 40% (280px), where the name
     panel's text begins: the panel's own blur and dimming cannot be relied on
     to tame a bright light behind the job title, so the photo is dark there
     before the glass is drawn. The showroom shows through between the two. */
  background: linear-gradient(180deg, rgb(var(--ground-rgb) / 0.86) 0%, rgb(var(--ground-rgb) / 0.84) 9%, rgb(var(--ground-rgb) / 0.3) 21%, rgb(var(--ground-rgb) / 0.42) 30%, rgb(var(--ground-rgb) / 0.82) 40%, rgb(var(--ground-rgb) / 0.96) 85%, var(--ground) 100%);
}
/* A business with no photo of its place: its tint, lit from the top and
   falling to the ground, so the glass has something to frost. */
.mcard__bg--plain { background: linear-gradient(180deg, rgb(var(--glow) / 0.46) 0%, rgb(var(--glow) / 0.3) 30%, rgb(var(--glow) / 0.1) 68%, rgb(var(--glow) / 0) 100%); }
.mcard__bg--plain::after { content: none; }

.mcard__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.mcard__brand {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  min-width: 0;
  min-height: 44px;
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
}
.mcard__brand span + span { color: var(--accent); }
.mcard__brand--plain {
  display: block;
  font-size: 1.125rem;
  line-height: 44px;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mcard__round {
  --glass: blur(20px) saturate(125%) brightness(0.9);
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgb(255 255 255 / 0.32);
  border-radius: 50%;
  background: rgb(255 255 255 / 0.17);
  -webkit-backdrop-filter: var(--glass);
  backdrop-filter: var(--glass);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.36);
  color: #fff;
}

/* Who it is. The portrait straddles the panel's top edge. */
.mcard__id {
  --glass: blur(34px) saturate(125%) brightness(0.82);
  position: relative;
  margin-top: 150px;
  padding: 78px 20px 22px;
  border: 1px solid rgb(255 255 255 / 0.34);
  border-radius: 28px;
  background: linear-gradient(155deg, rgb(255 255 255 / 0.24) 0%, rgb(255 255 255 / 0.11) 46%, rgb(255 255 255 / 0.16) 100%);
  -webkit-backdrop-filter: var(--glass);
  backdrop-filter: var(--glass);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.5), inset 0 0 28px rgb(255 255 255 / 0.06), 0 24px 48px -24px rgb(0 0 0 / 0.7);
  text-align: center;
}
/* The portrait is a cut-out with no background of its own: the disc behind it
   is the business's tint. */
.mcard__avatar {
  position: absolute;
  top: -66px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  margin-left: -66px;
  overflow: hidden;
  border: 3px solid rgb(255 255 255 / 0.92);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 28%, var(--p1) 0%, var(--p2) 52%, var(--p3) 100%);
  box-shadow: 0 0 0 4px rgb(255 255 255 / 0.12), 0 20px 40px -14px rgb(0 0 0 / 0.75);
}
.mcard__avatar img { width: 126px; height: 126px; object-fit: cover; }
.mcard__name { font-size: 1.875rem; line-height: 1.14; font-weight: 700; letter-spacing: -0.03em; text-wrap: balance; }
.mcard__role { margin-top: 4px; font-size: 1rem; line-height: 1.375; font-weight: 500; color: var(--accent); }
.mcard__place { margin-top: 2px; font-size: 0.8125rem; line-height: 1.4; color: var(--mute); }
.mcard__about { margin-top: 12px; font-size: 0.875rem; line-height: 1.43; color: var(--soft); text-wrap: pretty; }

/* Save contact: the one solid control on the page. */
.mcard__save {
  display: flex;
  align-items: center;
  height: 56px;
  margin-top: 16px;
  padding: 0 6px 0 50px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.16s var(--out);
}
.mcard__save > span:first-child { flex: 1 1 0; text-align: center; }
.mcard__savemark {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
}
.mcard__save:active { transform: scale(0.985); }

/* Call, Email, Directions, Website: as many columns as there are buttons. */
.mcard__acts { display: grid; gap: 10px; margin-top: 20px; }
.mcard__acts--1 { grid-template-columns: minmax(0, 1fr); }
.mcard__acts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mcard__acts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mcard__acts--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mcard__acts a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  line-height: 1.23;
  font-weight: 500;
  color: #fff;
}
.mcard__chip {
  --glass: blur(18px) saturate(125%);
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgb(255 255 255 / 0.3);
  border-radius: 50%;
  background: rgb(255 255 255 / 0.15);
  -webkit-backdrop-filter: var(--glass);
  backdrop-filter: var(--glass);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.34);
  transition: transform 0.16s var(--out), background-color 0.16s linear;
}
.mcard__acts a:active .mcard__chip { transform: scale(0.94); }

.mcard__panel {
  --glass: blur(30px) saturate(125%) brightness(0.9);
  margin-top: 12px;
  border: 1px solid rgb(255 255 255 / 0.28);
  border-radius: 24px;
  background: linear-gradient(155deg, rgb(255 255 255 / 0.19) 0%, rgb(255 255 255 / 0.1) 50%, rgb(255 255 255 / 0.14) 100%);
  -webkit-backdrop-filter: var(--glass);
  backdrop-filter: var(--glass);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.38);
}
.mcard__links { display: flex; flex-direction: column; margin-top: 28px; overflow: hidden; }
.mcard__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 50px;
  padding: 0 14px 0 20px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #fff;
  transition: background-color 0.16s linear;
}
.mcard__links a + a { border-top: 1px solid var(--line); }
.mcard__links a:focus-visible { outline-offset: -3px; border-radius: 22px; }
.mcard__go {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.1);
  color: var(--accent);
  transition: transform 0.2s var(--out);
}
.mcard__visit { padding: 16px 20px; }
.mcard__addr { font-size: 0.875rem; line-height: 1.29; font-weight: 600; }
.mcard__note { margin-top: 4px; font-size: 0.8125rem; line-height: 1.46; color: var(--mute); }
.mcard__hours { width: 100%; margin-top: 10px; border-collapse: collapse; font-size: 0.8125rem; line-height: 1.46; }
.mcard__hours th { padding: 5px 0; text-align: left; font-weight: 400; color: var(--mute); }
.mcard__hours td { padding: 5px 0; text-align: right; font-family: var(--mono); font-size: 0.75rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.mcard__hours tr + tr th,
.mcard__hours tr + tr td { border-top: 1px solid var(--line); }
.mcard__hours .is-closed { color: var(--mute); }

@media (hover: hover) and (pointer: fine) {
  .mcard__acts a:hover .mcard__chip { background: rgb(255 255 255 / 0.24); }
  .mcard__links a:hover { background: rgb(255 255 255 / 0.07); }
  .mcard__links a:hover .mcard__go { transform: translateX(3px); }
  .mswitch__item:hover { background: rgb(255 255 255 / 0.2); }
}

/* An unknown address, or `/` where no redirect ran: one message and the ways on. */
.mcard__col--plain { justify-content: center; gap: 14px; min-height: 100vh; min-height: 100svh; text-align: center; }
.mcard__ways { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.mcard__save--plain { margin-top: 0; }

/* ---- the switcher: a handle on the bottom edge, and the sheet it opens ----
   The handle lies over whatever the page has scrolled beneath it, the white
   Save contact button included, so it is DENSE, like the sheets: its fill
   alone, with no blur, holds its text at 4.5:1 over pure white (measured). */
.mswitch { width: min(100%, 430px); margin: 0 auto; padding: 0 20px calc(88px + env(safe-area-inset-bottom)); }
.mswitch__handle {
  --glass: blur(30px) saturate(125%);
  position: fixed;
  z-index: 5;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: min(100%, 430px);
  height: calc(72px + env(safe-area-inset-bottom));
  margin: 0 auto;
  padding: 10px 20px env(safe-area-inset-bottom);
  border-top: 1px solid rgb(255 255 255 / 0.36);
  border-radius: 26px 26px 0 0;
  background: linear-gradient(180deg, rgb(var(--sheet-a) / 0.86) 0%, rgb(var(--sheet-b) / 0.92) 100%);
  -webkit-backdrop-filter: var(--glass);
  backdrop-filter: var(--glass);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.4), 0 -18px 40px -22px rgb(0 0 0 / 0.8);
  color: #fff;
  /* A finger that starts on the handle pulls the switcher up with it (card.js);
     it does not scroll the card. */
  touch-action: none;
}
.mswitch__handle:focus-visible { outline-offset: -4px; }
.mswitch__grip { flex: none; width: 40px; height: 4px; border-radius: 2px; background: rgb(255 255 255 / 0.45); }
.mswitch__row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 24px; }
.mswitch__dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--dot); }
.mswitch__now { flex: 1 1 0; min-width: 0; font-size: 0.9375rem; line-height: 1.33; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mswitch__cta { flex: none; font-size: 0.8125rem; line-height: 1.54; color: rgb(255 255 255 / 0.9); }
.mswitch__row > svg { flex: none; }

.mswitch__list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.mswitch__item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 10px 14px;
  border: 1px solid rgb(255 255 255 / 0.26);
  border-radius: 20px;
  background: rgb(255 255 255 / 0.14);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.3);
  color: #fff;
  transition: background-color 0.16s linear;
}
.mswitch__tile { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: #fff; }
.mswitch__text { flex: 1 1 0; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mswitch__name { font-size: 1rem; line-height: 1.25; font-weight: 600; }
/* Stronger than --mute: a row's own fill lightens what is behind this line, and
   at 76% it measured 4.28:1 with the blur off (`npm run visual`, 14 Nov 2026). */
.mswitch__sub { font-size: 0.8125rem; line-height: 1.38; color: rgb(255 255 255 / 0.9); }
/* The tick is each row's own accent; only the current card's row shows it. */
.mswitch__check { flex: none; color: var(--accent); visibility: hidden; }
.mswitch__item[aria-current] .mswitch__check { visibility: visible; }

/* ---- the bottom sheets: this card's QR code, and the list of cards ----
   A native modal <dialog> whose transparent full-screen stage sits the panel
   on the bottom edge. Denser than the page's panels: a sheet lies over the
   card's own text, and its words must still read. With no scripts, or in a
   browser with no <dialog>, the element is an ordinary block in the page. */
.msheet {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  /* `clip`, NOT `hidden` alone, and this was the flicker (16 Nov 2026). A box
     with `overflow: hidden` can still be scrolled by the browser, and a panel
     waiting below the screen is content it can scroll to: showModal() moves
     focus into the sheet, the browser scrolled the stage to show the focused
     button, and the sheet stood at its open place from the first frame,
     shaking while the slide ran underneath. `clip` makes the stage no scroll
     container at all; `hidden` stays before it for a browser without `clip`
     (Safari before 16), where card.js holds the stage's scroll at 0. */
  overflow: hidden;
  overflow: clip;
  /* A finger on the stage is a press to close, never a scroll of the card. */
  touch-action: none;
  overscroll-behavior: contain;
  /* Fast away, slow to land. card.js leans on its starting slope (0.72 / 0.32). */
  --sheet-ease: cubic-bezier(0.32, 0.72, 0, 1);
}
.msheet[open] { display: flex; align-items: flex-end; justify-content: center; }
.msheet:focus { outline: none; }
/* HOW A SHEET MOVES. card.js writes three custom properties on the <dialog>:
   `--sheet-y`, how far below its open place the panel sits; `--sheet-dim`, how
   much of the scrim shows; `--sheet-ms`, how long the move there takes (0
   while a finger holds it). Four things here are deliberate:
   1. ONE transition on `transform`, never keyframes: an open, a close, a drag
      and a release all retarget the same property, so none of them jumps.
   2. `will-change: transform` for as long as the sheet is open, so the panel
      keeps its layer and the blur under it is not re-drawn when a move ends.
   3. The frosted glass is the panel's ::before, NOT the panel: an element that
      blurs what is behind it and also scrolls flickers in WebKit as it moves,
      and a fade on the panel itself (opacity makes a backdrop root) would
      switch the blur off for the length of the fade.
   4. The scrim is the stage's ::before, not ::backdrop, which cannot read the
      <dialog>'s custom properties in every browser still in use. */
.msheet::backdrop { background: transparent; }
.msheet::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(3 7 13 / 0.55);
  opacity: var(--sheet-dim, 1);
  transition: opacity var(--sheet-ms, 0ms) var(--sheet-ease);
  will-change: opacity;
}
.msheet__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(100%, 430px);
  max-height: calc(100% - 40px);
  transform: translate3d(0, var(--sheet-y, 0px), 0);
  transition: transform var(--sheet-ms, 0ms) var(--sheet-ease);
  will-change: transform;
}
/* The glass. It runs 72px past the bottom edge, off the screen, so a pull
   upward past open (the rubber band) uncovers more glass and never the card. */
.msheet__panel::before {
  --glass: blur(28px) saturate(125%);
  content: "";
  position: absolute;
  inset: 0 0 -72px;
  border-top: 1px solid rgb(255 255 255 / 0.18);
  border-radius: 30px 30px 0 0;
  background: linear-gradient(180deg, rgb(var(--sheet-a) / 0.8) 0%, rgb(var(--sheet-b) / 0.88) 100%);
  -webkit-backdrop-filter: var(--glass);
  backdrop-filter: var(--glass);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.3);
}
/* The grip's strip: where a mouse, or a finger on a sheet that scrolls, takes
   hold. 28px tall, the grip 12px from the top as it always was. */
.msheet__grab {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  height: 28px;
  cursor: grab;
  touch-action: none;
}
.msheet__grip { width: 40px; height: 4px; border-radius: 2px; background: rgb(255 255 255 / 0.32); }
.msheet[data-dragging] { -webkit-user-select: none; user-select: none; }
.msheet[data-dragging] .msheet__grab { cursor: grabbing; }
/* The sheet's contents. A finger anywhere on them drags the sheet, unless they
   are taller than the screen allows (`data-scrolls`, measured on open): then
   they scroll, and the grip alone drags. */
.msheet__scroll {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 24px calc(24px + env(safe-area-inset-bottom));
  touch-action: none;
}
.msheet[data-scrolls] .msheet__scroll { touch-action: pan-y; }
/* And the stage allows the same pan while its sheet scrolls. A browser adds up
   `touch-action` from the finger's element through its ancestors, and where it
   stops is the engine's own reading; with `none` left on the stage, a reading
   that goes past the scroller would leave a tall sheet unable to scroll under
   a finger. The stage itself cannot scroll, and the card behind it is locked,
   so the pan has nowhere else to go. */
.msheet[data-scrolls] { touch-action: pan-y; }
.msheet__title { margin-top: 8px; font-size: 1.375rem; line-height: 1.27; font-weight: 700; letter-spacing: -0.02em; }
.msheet__title--small { margin-top: 6px; font-size: 1.125rem; line-height: 1.33; }
.msheet__title--center,
.msheet__sub--center { text-align: center; }
.msheet__sub { margin-top: 4px; font-size: 0.875rem; line-height: 1.43; color: var(--mute); }
.msheet__qr { flex: none; align-self: center; width: 216px; height: 216px; margin-top: 18px; padding: 12px; border-radius: 22px; background: #fff; }
.msheet__qr svg { width: 100%; height: 100%; }
.msheet__url { margin-top: 14px; text-align: center; font-family: var(--mono); font-size: 0.8125rem; font-weight: 500; color: var(--mute); overflow-wrap: anywhere; }
.msheet__acts { display: flex; gap: 10px; margin-top: 20px; }
.msheet__main,
.msheet__close { flex: 1 1 0; height: 52px; border-radius: 999px; font-size: 0.9375rem; transition: transform 0.16s var(--out); }
.msheet__main { border: 0; background: #fff; color: var(--ink); font-weight: 700; }
.msheet__close { border: 1px solid rgb(255 255 255 / 0.2); background: rgb(255 255 255 / 0.1); color: #fff; font-weight: 600; }
.msheet__main:active,
.msheet__close:active { transform: scale(0.985); }

/* ---- motion: the sheet rises, follows a finger and leaves (the rules above
   and in card.js). Nothing else on the page moves by itself. ---- */
/* A switch: the new card is on the page at once, with no entrance of its own
   (the sheet leaving is the motion); only the ground eases to the new tint. */
html,
body { transition: background-color 0.28s ease-out; }
/* Reduced motion: no travel. card.js leaves `--sheet-y` at 0 and moves only
   `--sheet-dim`, and the sheet fades in place with its scrim. The glass and
   the contents fade as separate layers, never the panel as one (see 3 above).
   A finger still moves the sheet: that is the reader's own motion. */
@media (prefers-reduced-motion: reduce) {
  .msheet::before { transition-timing-function: linear; }
  .msheet__panel { transition: none; }
  .msheet__panel::before,
  .msheet__grab,
  .msheet__scroll {
    opacity: var(--sheet-dim, 1);
    transition: opacity var(--sheet-ms, 0ms) linear;
  }
  html,
  body,
  .mcard__save,
  .mcard__chip,
  .mcard__go,
  .msheet__main,
  .msheet__close { transition: none; }
}

/* ---- a sheet that is not open is a block in the page: with scripts off
   (noscript.css shows it), or in a browser with no <dialog>. `:not([open])`
   costs nothing where <dialog> exists (a closed one is display: none). ---- */
.msheet:not([open]) { position: static; width: auto; height: auto; margin-top: 12px; overflow: visible; touch-action: auto; }
.msheet:not([open])::before { content: none; }
.msheet:not([open]) .msheet__panel { width: auto; max-height: none; transform: none; will-change: auto; }
.msheet:not([open]) .msheet__panel::before {
  inset: 0;
  border: 1px solid rgb(255 255 255 / 0.28);
  border-radius: 24px;
}
.msheet:not([open]) .msheet__scroll { overflow: visible; padding: 12px 24px 24px; opacity: 1; touch-action: auto; }
.msheet:not([open]) .msheet__grab,
.msheet:not([open]) .msheet__acts { display: none; }

/* ---- readers who ask for less transparency, and browsers with no backdrop
   blur: the same surfaces, solid. ---- */
@media (prefers-reduced-transparency: reduce) {
  .mcard__id,
  .mcard__panel,
  .mcard__round,
  .mcard__chip { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgb(var(--sheet-a)); }
  .mswitch__handle,
  .msheet__panel::before { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgb(var(--sheet-b)); }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .mcard__id,
  .mcard__panel,
  .mcard__round,
  .mcard__chip { background: rgb(var(--sheet-a)); }
  .mswitch__handle,
  .msheet__panel::before { background: rgb(var(--sheet-b)); }
}
