/* RNMW corner menu (slice 1; v14 look). GENERATED nowhere: this is the source, shared by the landing and the Forma gate. Bottom right on every page; replaces the v13 hub sheet and any hub page. */
.cm-btn { position: fixed; z-index: 9990; right: var(--m,14px); bottom: calc(var(--m,14px) + env(safe-area-inset-bottom,0px)); width: 64px; height: 64px;
  border-radius: 50%; display: grid; place-items: center; background: var(--cream,#F4F1EE); color: var(--void,#0A0A0A); cursor: pointer; border: 0;
  box-shadow: 0 0 0 1px rgba(244,241,238,.3), 0 0 26px 3px rgba(154,162,236,.5); font: 700 10.5px/1.05 "Space Mono", monospace; text-transform: uppercase; letter-spacing: .04em; }
.cm-btn::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1px solid rgba(114,124,224,.7); animation: cmring 2.6s ease-out infinite; }
.cm-btn .ini { display: none; width: 30px; height: 30px; border-radius: 50%; background: #3a5cc0; color: #F4F1EE; place-items: center; font-size: 12px; }
.cm-in .cm-btn .lbl { display: none; } .cm-in .cm-btn .ini { display: grid; } .cm-in .cm-btn::after { display: none; }
.cm-open .cm-btn { background: var(--void,#0A0A0A); color: var(--cream,#F4F1EE); } .cm-open .cm-btn::after { display: none; }
.cm-in.cm-open .cm-btn .lbl { display: block; } .cm-in.cm-open .cm-btn .ini { display: none; }
@keyframes cmring { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cm-btn::after { animation: none; } .cm-sheet { transition: none !important; } }
.cm { position: fixed; z-index: 9989; inset: 0; pointer-events: none; }
.cm .veil { position: absolute; inset: 0; background: rgba(5,5,8,.55); opacity: 0; transition: opacity .25s; }
.cm-sheet { position: absolute; right: var(--m,14px); bottom: calc(var(--m,14px) + env(safe-area-inset-bottom,0px) + 76px); width: min(320px, calc(100vw - 2 * var(--m,14px)));
  background: rgba(14,14,18,.95); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border: 1px solid rgba(244,241,238,.16); padding: 14px;
  transform-origin: 100% 100%; transform: scale(.25); opacity: 0; transition: transform .3s cubic-bezier(.2,.9,.25,1.1), opacity .18s;
  clip-path: polygon(12px 0,100% 0,100% calc(100% - 12px),calc(100% - 12px) 100%,0 100%,0 12px); max-height: calc(100svh - 170px); overflow: auto; }
.cm-open .cm { pointer-events: auto; } .cm-open .cm .veil { opacity: 1; } .cm-open .cm-sheet { transform: none; opacity: 1; }
.cm-sheet .who { font: 400 9.5px/1.3 "Space Mono", monospace; letter-spacing: .08em; text-transform: uppercase; color: #727ce0; margin: 0 0 10px; }
.cm-sheet ul { list-style: none; margin: 0; padding: 0; }
.cm-sheet li a { display: block; padding: 11px 2px; min-height: 44px; border-bottom: 1px solid rgba(244,241,238,.08); text-decoration: none; color: inherit; }
.cm-sheet li a b { display: block; font-weight: 600; font-size: 14.5px; }
.cm-sheet li a span { display: block; font-size: 12px; color: #B4B4B4; line-height: 1.35; margin-top: 2px; }
.cm-sheet li.cm-primary a, .cm-sheet li.cm-ghost a { margin: 0 0 8px; padding: 14px; min-height: 0; text-align: center; border: 0;
  font: 700 12px/1 "Space Mono", monospace; text-transform: uppercase; letter-spacing: .06em; }
.cm-sheet li.cm-primary a { background: #F4F1EE; color: #0A0A0A; clip-path: polygon(8px 0,100% 0,100% calc(100% - 8px),calc(100% - 8px) 100%,0 100%,0 8px); }
.cm-sheet li.cm-ghost a { box-shadow: inset 0 0 0 1px rgba(244,241,238,.4); }
.cm-sheet li.cm-primary a b, .cm-sheet li.cm-ghost a b { font: inherit; }
.cm-sheet li.cm-primary a span, .cm-sheet li.cm-ghost a span { display: none; }
.cm-sheet li.cm-quiet a { font: 400 11px/1 "Space Mono", monospace; text-transform: uppercase; letter-spacing: .06em; color: #B4B4B4; border: 0; min-height: 0; padding-top: 12px; }
.cm-sheet li.cm-quiet a b { font: inherit; }
.cm-note { font: 400 10.5px/1.35 "Space Mono", monospace; color: #B4B4B4; margin: 4px 0 0; }
/* prototype-only strip: preview the menu as each role. Never part of the real site. */
.cm-proto { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 12px; padding-top: 8px; border-top: 1px dashed #707070;
  font: 400 9px/1 "Space Mono", monospace; text-transform: uppercase; letter-spacing: .05em; }
.cm-proto a { color: #B4B4B4; text-decoration: none; padding: 6px 6px; min-height: 0; border: 0; } .cm-proto a[aria-current] { color: #0A0A0A; background: #F4F1EE; }
.cm-proto span { color: #707070; padding: 5px 4px; }
.cm-toast { position: fixed; z-index: 9992; left: 50%; bottom: 100px; transform: translateX(-50%); background: #F4F1EE; color: #0A0A0A; padding: 9px 12px;
  font: 400 11px/1.3 "Space Mono", monospace; opacity: 0; transition: opacity .2s; pointer-events: none; max-width: 86vw; }
.cm-toast.on { opacity: 1; }
@media (min-width: 900px) { .cm-btn { width: 78px; height: 78px; font-size: 11.5px; } .cm-sheet { bottom: calc(var(--m,22px) + 94px); width: 340px; } }
.cm-sheet li.cm-primary a, .cm-sheet li.cm-ghost a { display: grid; place-items: center; height: 44px; padding: 0 14px; }

/* fix-sheet-fade (Luca, note 2h4xv7cwkc90, 26 Nov): the sheet is the round button's own extension. Same glass as the
   disc, rounded, just above it on its right edge with a tail down to it, opening from the disc's centre. */
.cm .veil { background: rgba(5,5,8,.32) !important; }
body .cm .cm-sheet { --cm-disc: 44px; right: var(--m, 14px) !important; bottom: calc(var(--m, 14px) + env(safe-area-inset-bottom, 0px) + var(--cm-disc) + 14px) !important;
  clip-path: none !important; border-radius: 20px 20px 8px 20px; overflow: visible !important;
  background: rgba(10,10,12,.82) !important; -webkit-backdrop-filter: blur(16px) saturate(1.15); backdrop-filter: blur(16px) saturate(1.15);
  border: 0 !important; box-shadow: inset 0 0 0 1px rgba(244,241,238,.22), 0 0 22px rgba(154,162,236,.22), 0 18px 40px rgba(0,0,0,.45);
  padding: 16px 16px 10px !important;
  transform-origin: calc(100% - var(--cm-disc) / 2) calc(100% + 14px + var(--cm-disc) / 2);
  transform: translateY(8px) scale(.55); opacity: 0;
  transition: transform .34s cubic-bezier(.2,.9,.25,1.06), opacity .2s ease !important; }
.cm-sheet > * { position: relative; z-index: 1; }
.cm-sheet .cm-scroll, .cm-sheet ul { max-height: calc(100svh - 190px); overflow: auto; }
/* the tail: a small rounded point under the sheet's right corner, centred on the disc */
.cm-sheet::after { content: ""; position: absolute; z-index: 0; width: 12px; height: 12px; right: calc(var(--cm-disc) / 2 - 6px); bottom: -6px;
  background: rgba(10,10,12,.82); border-radius: 0 0 3px 0; transform: rotate(45deg);
  box-shadow: inset -1px -1px 0 0 rgba(244,241,238,.22); }
.cm-open .cm .cm-sheet { transform: none; opacity: 1; }
.cm-sheet li { opacity: 0; transform: translateY(4px); transition: opacity .22s ease .08s, transform .26s ease .08s; }
.cm-open .cm-sheet li { opacity: 1; transform: none; }
.cm-sheet li a { border-bottom-color: rgba(244,241,238,.07) !important; }
.cm-sheet li:last-child a { border-bottom: 0 !important; }
.cm-sheet li.cm-primary a { clip-path: none !important; border-radius: 999px; }
.cm-sheet li.cm-ghost a { border-radius: 999px; }
/* the disc while its sheet is open: the same rim as the sheet, so the two read as one object */
body.cm-in.cm-open .cm-btn .ini { box-shadow: 0 0 0 1px rgba(244,241,238,.9), 0 0 22px rgba(154,162,236,.35) !important; }
/* a visitor's button is a text label, not the disc: the tail then points at the label's middle */
body:not(.cm-in) .cm-sheet { --cm-disc: 44px; }
@media (min-width: 900px) { .cm-sheet { width: 340px; } }
@media (prefers-reduced-motion: reduce) { .cm-sheet, .cm-sheet li { transition: none !important; transform: none !important; } }

/* fix-menu-fit (Luca, iPhone 27 Nov 14:59): the whole menu fits the visible screen. ONE height limit, the dynamic
   viewport minus the room above (safe area + margin) and below (round button + gap + safe area); the header line stays,
   the list scrolls inside it and never moves the page behind. Look unchanged. */
body .cm .cm-sheet {
  --cm-above: max(12px, calc(env(safe-area-inset-top, 0px) + 8px));
  --cm-below: calc(var(--m, 14px) + env(safe-area-inset-bottom, 0px) + var(--cm-disc, 44px) + 14px);
  display: flex !important; flex-direction: column;
  max-height: calc(100vh - var(--cm-above) - var(--cm-below)) !important;
  max-height: calc(100svh - var(--cm-above) - var(--cm-below)) !important;
  max-height: calc(100dvh - var(--cm-above) - var(--cm-below)) !important;
  right: max(var(--m, 14px), env(safe-area-inset-right, 0px)) !important;
  max-width: calc(100vw - 2 * max(var(--m, 14px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)));
  overscroll-behavior: contain; }
body .cm .cm-sheet > .who, body .cm .cm-sheet > .cm-note, body .cm .cm-sheet > .cm-proto { flex: none; }
body .cm .cm-sheet > ul, body .cm .cm-sheet > .cm-scroll {
  flex: 1 1 auto; min-height: 0; max-height: none !important;
  overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: rgba(244,241,238,.25) transparent; }
.cm-open .cm .veil { touch-action: none; overscroll-behavior: contain; }
/* small phones (iPhone SE / mini width, or a short screen): the rows a little more compact */
@media (max-width: 380px), (max-height: 700px) {
  body .cm .cm-sheet { padding: 13px 14px 6px !important; }
  body .cm .cm-sheet .who { margin-bottom: 6px; }
  body .cm .cm-sheet li a { padding: 8px 2px; min-height: 40px; }
  body .cm .cm-sheet li a b { font-size: 14px; }
  body .cm .cm-sheet li a span { font-size: 11.5px; line-height: 1.3; margin-top: 1px; }
  body .cm .cm-sheet li.gu-item a { column-gap: 10px; grid-template-columns: 30px 1fr; }
  body .cm .cm-sheet li.gu-item .gu-ic { width: 30px; height: 30px; }
  body .cm .cm-sheet li.gu-item .gu-ic svg { width: 16px; height: 16px; }
  body .cm .cm-sheet li.cm-quiet a { padding-top: 10px; min-height: 0; }
}
