/* Samvād 2026 gallery — the shared frame every view loads: the dock ("5 ways to see the day" + "Find yourself"),
   the view chooser, the Find-yourself sheet (by face / by time) and the photo viewer. Everything is namespaced gx-
   and uses its own tokens, so it sits on top of any of the five views without touching their styles.
   A view can lift the dock above its own bottom bar with:  :root { --gx-lift: 72px; }  */
:root {
  --gx-ink: #14110D; --gx-ink-2: #2A2117; --gx-cream: #F4EDE0; --gx-card: #F9F4EA; --gx-line: #D9CFB8;
  --gx-mute: #8A7F72; --gx-soft: #4A413A; --gx-blue: #0A6FA8; --gx-deep: #075480; --gx-cyan: #00AFEF; --gx-cyan-2: #5CCBF5;
  --gx-gold: #9A7728; --gx-serif: 'Fraunces', Georgia, serif; --gx-sans: 'Manrope', system-ui, -apple-system, sans-serif;
  --gx-deva: 'Noto Sans Devanagari', 'Kohinoor Devanagari', sans-serif;
}
.gx-dock, .gx-sheet, .gx-viewer, .gx-toast { font-family: var(--gx-sans); -webkit-font-smoothing: antialiased; }
.gx-dock *, .gx-sheet *, .gx-viewer *, .gx-toast * { box-sizing: border-box; }

/* ---- dock ---- */
.gx-dock { position: fixed; z-index: 9000; left: 50%; transform: translateX(-50%);
  bottom: calc(14px + env(safe-area-inset-bottom, 0px) + var(--gx-lift, 0px));
  display: flex; gap: 6px; padding: 6px; border-radius: 999px;
  background: rgba(20, 17, 13, 0.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 34px -12px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08) inset; }
.gx-dock button { appearance: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  font: 700 13px/1 var(--gx-sans); letter-spacing: .02em; color: var(--gx-cream); background: transparent;
  padding: 11px 16px; border-radius: 999px; white-space: nowrap; transition: background .2s, color .2s; }
.gx-dock button:hover { background: rgba(255,255,255,.1); }
.gx-dock button:focus-visible { outline: 2px solid var(--gx-cyan); outline-offset: 2px; }
.gx-dock .gx-find { background: var(--gx-cyan); color: #04121C; }
.gx-dock .gx-find:hover { background: var(--gx-cyan-2); }
.gx-dock .gx-ico { width: 18px; height: 18px; flex: none; }
.gx-dock .gx-vname { opacity: .7; font-weight: 600; }
@media (min-width: 900px) { .gx-dock { left: auto; right: 22px; transform: none; } }
@media (max-width: 380px) { .gx-dock .gx-vname { display: none; } }
@media print { .gx-dock { display: none; } }
@media (min-width: 900px) { .gx-chips { flex-wrap: wrap; overflow: visible; } }

/* ---- sheets (chooser + find yourself) ---- */
.gx-sheet { position: fixed; inset: 0; z-index: 9500; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(14, 12, 9, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.gx-sheet[hidden] { display: none; }
.gx-panel { position: relative; width: min(980px, 100%); max-height: min(92vh, 100%); overflow: auto; overscroll-behavior: contain;
  background: var(--gx-cream); color: var(--gx-ink); border-radius: 18px 18px 0 0;
  padding: 22px clamp(16px, 4vw, 34px) calc(28px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -20px 60px -20px rgba(0,0,0,.5); animation: gx-up .32s cubic-bezier(.2,.8,.2,1); }
@media (min-width: 900px) { .gx-sheet { align-items: center; } .gx-panel { border-radius: 16px; max-height: 88vh; } }
@keyframes gx-up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.gx-x { position: sticky; top: 0; float: right; z-index: 3; appearance: none; border: 1px solid var(--gx-line); background: var(--gx-card);
  color: var(--gx-ink); font: 700 12px var(--gx-sans); letter-spacing: .06em; text-transform: uppercase; padding: 8px 13px;
  border-radius: 999px; cursor: pointer; }
.gx-x:hover { border-color: var(--gx-ink); }
.gx-kick { font: 700 11px/1 var(--gx-sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gx-blue); }
.gx-h { font: 500 clamp(26px, 4.2vw, 40px)/1.06 var(--gx-serif); letter-spacing: -.015em; margin: 10px 0 6px; text-wrap: balance; }
.gx-h em { font-style: italic; color: var(--gx-deep); }
.gx-sub { color: var(--gx-soft); font-size: 14.5px; line-height: 1.55; max-width: 62ch; margin: 0 0 18px; }

/* chooser */
.gx-views { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 8px; }
.gx-view { position: relative; display: flex; flex-direction: column; gap: 8px; text-align: left; appearance: none; cursor: pointer;
  border: 1px solid var(--gx-line); background: var(--gx-card); color: var(--gx-ink); border-radius: 12px; padding: 0 0 14px; overflow: hidden;
  font: inherit; transition: transform .2s, border-color .2s, box-shadow .2s; }
.gx-view:hover, .gx-view:focus-visible { transform: translateY(-2px); border-color: var(--gx-ink); outline: none; box-shadow: 0 14px 30px -18px rgba(0,0,0,.4); }
.gx-view .gx-prev { aspect-ratio: 16 / 9; background: #1b1814 center / cover no-repeat; }
.gx-view .gx-vt { padding: 0 14px; font: 500 19px/1.2 var(--gx-serif); }
.gx-view .gx-vd { padding: 0 14px; font-size: 13px; color: var(--gx-soft); line-height: 1.45; }
.gx-view .gx-tag { position: absolute; top: 10px; left: 10px; font: 700 10.5px/1 var(--gx-sans); letter-spacing: .1em; text-transform: uppercase;
  background: var(--gx-ink); color: var(--gx-cream); padding: 6px 9px; border-radius: 999px; }
.gx-view .gx-tag.today { background: var(--gx-cyan); color: #04121C; }
.gx-view[aria-current="true"] { border-color: var(--gx-blue); box-shadow: 0 0 0 2px var(--gx-blue) inset; }
.gx-fine { font-size: 12.5px; color: var(--gx-mute); margin-top: 16px; }

/* find yourself */
.gx-tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--gx-card); border: 1px solid var(--gx-line); border-radius: 999px; margin: 4px 0 16px; }
.gx-tabs button { appearance: none; border: 0; background: transparent; font: 700 13px var(--gx-sans); color: var(--gx-soft);
  padding: 9px 16px; border-radius: 999px; cursor: pointer; }
.gx-tabs button[aria-selected="true"] { background: var(--gx-ink); color: var(--gx-cream); }
.gx-chips { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.gx-chips::-webkit-scrollbar { display: none; }
.gx-chip { flex: none; appearance: none; border: 1px solid var(--gx-line); background: var(--gx-card); color: var(--gx-soft);
  font: 600 12.5px var(--gx-sans); padding: 7px 12px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.gx-chip b { font: italic 500 13px var(--gx-serif); color: var(--gx-blue); margin-right: 5px; }
.gx-chip[aria-pressed="true"] { background: var(--gx-ink); color: var(--gx-cream); border-color: var(--gx-ink); }
.gx-chip[aria-pressed="true"] b { color: var(--gx-cyan-2); }
.gx-faces { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 8px; }
.gx-face { position: relative; aspect-ratio: 1; border-radius: 50%; appearance: none; border: 0; padding: 0; cursor: pointer;
  background-color: #d9cfb8; background-repeat: no-repeat; box-shadow: 0 0 0 1px rgba(20,17,13,.08);
  transition: transform .18s, box-shadow .18s; }
.gx-face:hover, .gx-face:focus-visible { transform: scale(1.07); box-shadow: 0 0 0 3px var(--gx-cyan); outline: none; z-index: 1; }
.gx-face .gx-n { position: absolute; right: -2px; bottom: -2px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--gx-ink); color: var(--gx-cream); font: 700 10.5px/22px var(--gx-sans); text-align: center; }
.gx-person { display: flex; gap: 16px; align-items: center; margin: 4px 0 16px; }
.gx-person .gx-face { width: 92px; flex: none; cursor: default; }
.gx-person .gx-face:hover { transform: none; box-shadow: 0 0 0 1px rgba(20,17,13,.08); }
.gx-back { appearance: none; border: 0; background: none; color: var(--gx-deep); font: 700 13px var(--gx-sans); cursor: pointer; padding: 0; margin-bottom: 10px; }
.gx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
@media (max-width: 520px) { .gx-grid { grid-template-columns: repeat(3, 1fr); gap: 4px; } }
.gx-ph { position: relative; appearance: none; border: 0; padding: 0; cursor: zoom-in; aspect-ratio: 1; overflow: hidden; border-radius: 6px; background: #d9cfb8; }
.gx-ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.gx-ph:hover img { transform: scale(1.05); }
.gx-ph:focus-visible { outline: 3px solid var(--gx-cyan); outline-offset: 1px; }
.gx-ph .gx-t { position: absolute; left: 5px; bottom: 4px; font: 700 10.5px var(--gx-sans); color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.7); font-variant-numeric: tabular-nums; }
.gx-time { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 2px 0 14px; }
.gx-time .gx-clock { flex-basis: 100%; }
.gx-time .gx-range { flex: 1 1 0; min-width: 0; }
.gx-clock { font: 400 clamp(44px, 9vw, 72px)/1 var(--gx-serif); letter-spacing: -.02em; font-variant-numeric: tabular-nums; min-width: 3.3ch; }
.gx-range { flex: 1 1 260px; accent-color: var(--gx-blue); height: 36px; }
.gx-note { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--gx-line); font-size: 12.5px; color: var(--gx-soft); line-height: 1.55; }
.gx-note .gx-mail { font-weight: 700; color: var(--gx-deep); }
.gx-empty { color: var(--gx-mute); font-size: 14px; padding: 18px 0; }

/* ---- viewer ---- */
.gx-viewer { position: fixed; inset: 0; z-index: 9800; background: rgba(12, 10, 8, .96); color: #F4EDE0; display: flex; flex-direction: column;
  touch-action: pan-y; }
.gx-viewer[hidden] { display: none; }
.gx-vbar { display: flex; align-items: center; gap: 12px; padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px; }
.gx-vcap { flex: 1; min-width: 0; font-size: 13px; line-height: 1.35; }
.gx-vcap b { display: block; font: 500 16px/1.25 var(--gx-serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gx-vcap span { color: rgba(244,237,224,.66); font-variant-numeric: tabular-nums; }
.gx-vbtn { appearance: none; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06); color: #fff; cursor: pointer;
  font: 700 12px var(--gx-sans); letter-spacing: .06em; text-transform: uppercase; padding: 9px 13px; border-radius: 999px; }
.gx-vbtn:hover { background: rgba(255,255,255,.16); }
a.gx-vbtn { text-decoration: none; display: inline-flex; align-items: center; }
@media (max-width: 520px) { .gx-vbar { flex-wrap: wrap; } .gx-vcap { flex-basis: 100%; } .gx-vbar .gx-vbtn { flex: 1; justify-content: center; text-align: center; } }
.gx-tbtn { appearance: none; border: 1px solid var(--gx-line); background: var(--gx-card); color: var(--gx-ink); font: 700 14px var(--gx-sans);
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer; flex: none; }
.gx-tbtn:hover { border-color: var(--gx-ink); }
.gx-vbtn:focus-visible { outline: 2px solid var(--gx-cyan); outline-offset: 2px; }
.gx-vstage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 8px; touch-action: none; }
.gx-vstage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; box-shadow: 0 20px 60px rgba(0,0,0,.5);
  transition: opacity .2s; }
.gx-vnav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; font-size: 22px; padding: 0;
  display: grid; place-items: center; }
.gx-vprev { left: 12px; } .gx-vnext { right: 12px; }
@media (max-width: 640px) { .gx-vnav { display: none; } }
.gx-vfoot { padding: 8px 14px calc(12px + env(safe-area-inset-bottom, 0px)); font-size: 12px; color: rgba(244,237,224,.6);
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }

/* ---- toast ---- */
.gx-toast { position: fixed; z-index: 9400; left: 16px; right: 16px; margin-inline: auto; width: max-content;
  max-width: min(calc(100vw - 32px), 460px); box-sizing: border-box;
  bottom: calc(80px + env(safe-area-inset-bottom, 0px) + var(--gx-lift, 0px));
  background: var(--gx-ink); color: var(--gx-cream); font-size: 13.5px; line-height: 1.45; padding: 12px 16px; border-radius: 12px;
  box-shadow: 0 14px 34px -14px rgba(0,0,0,.6); display: flex; gap: 12px; align-items: center; }
/* after the base rule, or it loses: on desktop the toast sits right, above the dock, clear of the hero */
@media (min-width: 900px) { .gx-toast { left: auto; right: 22px; margin: 0; } }
/* the shared viewer's 'Link copied' sits over the viewer (toasts are appended after it) */
.gx-viewer:not([hidden]) ~ .gx-toast { z-index: 9810; }
@media print { .gx-toast { display: none; } }   /* after the base rule, or it loses */
/* the first-visit hint gives way to anything that opens after it: each view marks its own viewer or panel */
html.lb-open .gx-hint, body.lb-on .gx-hint, body.locked .gx-hint, body.in-dark .gx-hint,
.gx-sheet:not([hidden]) ~ .gx-hint, .gx-viewer:not([hidden]) ~ .gx-hint { display: none; }
.gx-toast button { appearance: none; border: 0; background: var(--gx-cyan); color: #04121C; font: 700 12px var(--gx-sans);
  padding: 8px 12px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.gx-toast .gx-dismiss { background: transparent; color: var(--gx-cream); opacity: .7; padding: 8px 4px; }
/* the site's macron fix for "Samvād" in Fraunces (styles.css .macron-fix) */
gx-mw { display: inline; }
gx-m { display: inline; font-feature-settings: "kern" 0; }   /* kerning off alone centres the macron; extra spacing opened a gap at display sizes (QA) */
.gx-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  .gx-panel { animation: none; } .gx-face, .gx-ph img, .gx-view, .gx-vstage img { transition: none; }
}
