/* GENERATED by admin/tools/site_layer.py from the website. Never edit: run python3 tools/site_layer.py --update. Sources, line ranges and SHA-256: admin/site-layer.json. */
/* The website's menu sheet at every width, inside .site-sheet: the gear's sheet (spec §2.2), rising from the bottom on phones and floating, centred, from 768 px, exactly as the website's does. Markup: the .mhd-dialog of src/site/html/00-header.mobile.html. JS: src/site/js/sheet.js. */
/* Rescoped (selectors only, every value is the website's): ".site-header .v-mobile " -> ".site-sheet " */

/* ---- web-next/site-v3/css/00-header.mobile.css · sheet.vars ---- */
.site-sheet {
  --pad-l: max(var(--gutter), env(safe-area-inset-left, 0px));
  --pad-r: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* ---- web-next/site-v3/css/00-header.mobile.css · sheet.css ---- */
/* ---- the sheet (a modal <dialog>: the page behind is inert; js locks its scroll) ---- */
.site-sheet .mhd-dialog {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: transparent; color: var(--ink); overflow: hidden;
  /* MENU-FIX: clip, not hidden. A hidden box can still be scrolled by the browser, and when the dialog opened it scrolled
     itself 480 px to show the focused row inside the sheet (still parked below the screen), so the sheet snapped into
     place and then drifted instead of rising. A clipped box can never scroll. */
  overflow: clip;
}
.site-sheet .mhd-dialog:focus { outline: none; }   /* the dialog itself holds focus after a tap (no ring) */
.site-sheet .mhd-dialog::backdrop { background: transparent; }
.site-sheet .mhd-dim {
  position: absolute; inset: 0; background: rgba(15, 26, 43, .25);
  opacity: 0; transition: opacity .32s var(--ease); touch-action: none;
}
.site-sheet .mhd-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto;
  max-height: calc(100% - 16px); overflow-y: auto; overscroll-behavior: contain;
  padding: 0 var(--pad-r) calc(16px + env(safe-area-inset-bottom, 0px)) var(--pad-l);
  background: #fff; border-radius: var(--r-sheet) var(--r-sheet) 0 0;
  /* the app's card depth (--depth-2), cast upwards because the sheet rises from the bottom — a whisper, not a slab */
  box-shadow: var(--highlight), 0 -1px 0 rgba(15, 26, 43, .05), 0 -2px 8px rgba(15, 26, 43, .06), 0 -12px 28px rgba(15, 26, 43, .10);
  transform: translateY(calc(100% + 24px));
  transition: transform .3s cubic-bezier(.4, 0, 1, 1);
}
.site-sheet .mhd-dialog.is-open .mhd-dim { opacity: 1; }
.site-sheet .mhd-dialog.is-open .mhd-sheet { transform: none; transition: transform .5s var(--ease); }
.site-sheet .mhd-dialog.is-dragging .mhd-sheet,
.site-sheet .mhd-dialog.is-dragging .mhd-dim { transition: none; }

/* grabber + head (the badge and the close button): also the drag handle (pull down to close) */
.site-sheet .mhd-handle { position: relative; padding-top: 18px; touch-action: none; cursor: grab; }
.site-sheet .mhd-grab { position: absolute; left: 50%; top: 8px; width: 36px; height: 5px; margin-left: -18px; border-radius: 3px; background: #C2C9D2; }
.site-sheet .mhd-head { display: flex; align-items: center; justify-content: space-between; height: 52px; margin-right: -10px; }
.site-sheet .mhd-head .mhd-sheet-cta { margin-left: 2px; }
.site-sheet .mhd-close {
  position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--secondary);
}
.site-sheet .mhd-close::before {
  content: ""; position: absolute; left: 7px; top: 7px; width: 30px; height: 30px; border-radius: 50%; background: var(--soft); box-shadow: inset 0 0 0 1px var(--edge);
  transition: transform .18s var(--ease), background-color .18s var(--ease);
}
.site-sheet .mhd-close svg { position: relative; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.site-sheet .mhd-close:active::before { transform: scale(.9); background: #EBEFF4; }

/* the rows: the app's grouped list — 50 px rows, radius 12. No lines (founder): no row hairlines, no outline; the group
   is one raised white surface and the icons keep the rows apart */
.site-sheet .mhd-list {
  position: relative; margin-top: 6px; border-radius: var(--r-row); background: #fff;
  box-shadow: var(--highlight), var(--depth-1);
}
.site-sheet .mhd-list li { position: relative; }
.site-sheet .mhd-row {
  display: flex; align-items: center; gap: 12px; height: 50px; padding: 0 14px 0 18px;
  font-size: 16px; font-weight: 400; line-height: 1.2; color: var(--ink);
  border-radius: 11px;
  transition: background-color .18s var(--ease), transform .18s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.site-sheet .mhd-row span { flex: 1; min-width: 0; }
.site-sheet .mhd-row:active { background: var(--tint); transform: scale(.975); }
@media (hover: hover) { .site-sheet .mhd-row:hover { background: var(--selected); } }
.site-sheet .mhd-row:focus-visible { outline-offset: -3px; }
.site-sheet .mhd-list li:first-child .mhd-row { border-radius: 11px 11px 0 0; }
.site-sheet .mhd-list li:last-child .mhd-row { border-radius: 0 0 11px 11px; }
.site-sheet .mhd-ico { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.site-sheet .mhd-chev { flex: none; width: 16px; height: 16px; fill: none; stroke: #B8BEC8; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
.site-sheet .mhd-row:active .mhd-chev { transform: translateX(2px); }

.site-sheet .mhd-list-more { margin-top: 14px; }   /* the two pages, a group of their own */

/* ---- web-next/site-v3/css/00-header.mobile.css · sheet.short ---- */
/* ---- short screens (iPhone SE and landscape): slightly shorter rows so the whole menu fits without scrolling ---- */
@media (max-height: 700px) {
  .site-sheet .mhd-row { height: 46px; }
  .site-sheet .mhd-head { height: 50px; }
  .site-sheet .mhd-list-more { margin-top: 10px; }
}

/* ---- web-next/site-v3/css/00-header.mobile.css · sheet.float ---- */
/* ---- tablets: a wider bar margin and the sheet floats, centred, like an iPad sheet ---- */
@media (min-width: 768px) {
  .site-sheet { --pad-l: max(32px, env(safe-area-inset-left, 0px)); --pad-r: max(32px, env(safe-area-inset-right, 0px)); }
  .site-sheet .mhd-logo img { width: 118px; }
  .site-sheet .mhd-sheet {
    left: 50%; right: auto; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: 480px; margin: 0 0 0 -240px;
    padding: 0 24px 24px; border-radius: var(--r-sheet);
    box-shadow: var(--highlight), 0 0 0 1px rgba(15, 26, 43, .05), var(--depth-2);
    transform: translateY(calc(100% + 40px));
  }
}

/* ---- web-next/site-v3/css/00-header.mobile.css · sheet.cta ---- */
.site-sheet .mhd-sheet-cta { position: relative; }
.site-sheet .mhd-sheet-cta::after { content: ""; position: absolute; inset: -4px -2px; }
