/* ==========================================================================
   Guide: the field guide (mouse + hands) and its button. Light HUD language.
   ========================================================================== */
.ug-btn {
  position: fixed; z-index: 93; left: var(--edge, 24px); bottom: 16px;
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 12px 7px 8px;
  border: 1px solid var(--line); background: rgba(236,237,239,.85); color: var(--ink); cursor: pointer;
  font: 600 9.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s, border-color .2s, color .2s;
}
.ug-btn.is-in { opacity: 1; transform: none; }
.ug-btn:hover, .ug-btn:focus-visible { border-color: var(--red); color: var(--red); outline: none; }
.ug-btn__q { display: grid; place-items: center; width: 18px; height: 18px; border: 1px solid currentColor; font: 700 10px/1 var(--mono); }
html.is-intro .ug-btn { opacity: 0; pointer-events: none; }
html.hm-live .ug-btn { bottom: 56px; }                 /* the hands status chip sits at the bottom left */
.archive-page .archive__bl, .archive-page .archive__br { display: none; }   /* the guide replaces the corner hints */

.ug { position: fixed; inset: 0; z-index: 97; display: grid; place-items: center; padding: 16px; opacity: 0; transition: opacity .32s; }
.ug[hidden] { display: none; }
.ug.is-in { opacity: 1; }
.ug__backdrop { position: absolute; inset: 0; background: rgba(214,215,217,.6); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.ug__box {
  position: relative; width: min(820px, 100%); max-height: calc(100svh - 32px); overflow: auto;
  padding: clamp(22px, 3.4vw, 38px); background: rgba(236,237,239,.94); border: 1px solid var(--line);
  box-shadow: 0 40px 90px -50px rgba(17,17,17,.5); transform: translateY(14px); transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.ug.is-in .ug__box { transform: none; }
.ug__br { position: absolute; width: 14px; height: 14px; border: 0 solid var(--red); }
.ug__br--tl { left: -6px; top: -6px; border-left-width: 2px; border-top-width: 2px; }
.ug__br--tr { right: -6px; top: -6px; border-right-width: 2px; border-top-width: 2px; }
.ug__br--bl { left: -6px; bottom: -6px; border-left-width: 2px; border-bottom-width: 2px; }
.ug__br--br { right: -6px; bottom: -6px; border-right-width: 2px; border-bottom-width: 2px; }
.ug__x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: 1px solid var(--line); background: none; cursor: pointer; color: var(--ink); }
.ug__x i::before, .ug__x i::after { content: ""; position: absolute; left: 9px; right: 9px; top: 50%; height: 1.5px; background: currentColor; transform: rotate(45deg); }
.ug__x i::after { transform: rotate(-45deg); }
.ug__x:hover, .ug__x:focus-visible { color: var(--red); border-color: var(--red); outline: none; }
.ug__eyebrow { display: flex; gap: 18px; margin: 0 48px 0 0; font: 500 9.5px/1.4 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
.ug__eyebrow span:first-child { color: var(--red); }
.ug__title { margin: 14px 0 0; font: 400 clamp(30px, 3.6vw, 50px)/.94 var(--display); text-transform: uppercase; color: var(--ink); }
.ug__tabs { display: inline-flex; gap: 2px; margin: 22px 0 6px; padding: 4px; border: 1px solid var(--line); }
.ug__tab { padding: 9px 16px; border: 0; background: none; color: var(--ink-2); cursor: pointer; font: 500 10.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.ug__tab:hover, .ug__tab:focus-visible { color: var(--ink); outline: none; }
.ug__tab[aria-selected="true"] { background: var(--ink); color: #fff; }
.ug__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 12px 0 0; padding: 0; list-style: none; }
.ug__list[hidden] { display: none; }
.ug__row { display: grid; grid-template-columns: 48px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(17,17,17,.12); }
.ug__ico { grid-row: 1 / 3; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line); background: rgba(255,255,255,.4); }
.ug__ico svg { width: 30px; height: 30px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ug__ico svg .red { fill: var(--red); stroke: none; }
.ug__key { align-self: end; font: 600 11px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.ug__txt { align-self: start; margin-top: 3px; font: 400 12px/1.5 var(--mono); color: var(--ink-body); }
.ug__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 22px; margin-top: 24px; }
.ug__note { margin: 0; font: 500 9.5px/1.5 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.ug__note[hidden] { display: none; }
.ug__ok { margin-left: auto; }
@media (max-width: 640px) {
  .ug__list { grid-template-columns: minmax(0, 1fr); }
  .ug__row { padding: 11px 0; }
}
