/* ============================================================================
   DG-026 · Get Here — opening arrival-method triage, Arrival handoff
   ----------------------------------------------------------------------------
   Loaded by all 15 /get-here/ pages. Inherits the page tokens defined in each
   Get Here <style> block (--gold, --nero, --grey-brd, --text, --text-2,
   --radius, --pill, --ff-*), with standalone fallbacks.

   Contract that must not regress:
   - the four choices fit within or immediately after the first mobile viewport;
   - 2 x 2 on mobile, one row on desktop;
   - the WHOLE tile is the link — no inner-only hit area;
   - never icon or colour alone: every tile carries a text label;
   - visible hover, active AND :focus-visible states;
   - touch targets at least 44px tall;
   - nothing exceeds 100% width at 390px.
   ========================================================================== */

/* The tokens must be declared on EVERY root this file styles. .ght-arr is
   rendered after each route card and is NOT a descendant of .ght, so scoping
   the custom properties to .ght alone left var(--ght-gold) undefined there —
   which silently invalidated the whole `background` and `color` declarations
   and rendered the Arrival CTA as unstyled dark-on-dark. */
.ght,
.ght-arr {
  --ght-ink: var(--text, #1a1a1a);
  --ght-ink-2: var(--text-2, #555);
  --ght-brd: var(--grey-brd, #e8e0ca);
  --ght-gold: var(--gold, #d4af37);
  --ght-gold-dk: var(--gold-dk, #b8860b);
  --ght-nero: var(--black, #0b0b0b);
}

.ght {
  margin: 0 0 14px;
  padding: 14px 16px 16px;
  background: linear-gradient(135deg, #fffdf5 0%, #fff 100%);
  border: 1.5px solid var(--ght-brd);
  border-radius: var(--radius, 14px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
}

.ght-title {
  font-family: var(--ff-serif, 'Cormorant Garamond', Georgia, serif);
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ght-ink);
  margin: 0 0 4px;
  overflow-wrap: anywhere;
}

/* One short line. This is triage, not a second introduction. */
.ght-sub {
  font-size: .78rem;
  line-height: 1.5;
  color: var(--ght-ink-2);
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}

/* ── the four choices ──────────────────────────────────────────────────── */
.ght-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));   /* 2 x 2 on mobile */
  gap: 8px;
}

/* The anchor IS the tile: the whole box is the hit area, not an inner label. */
.ght-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;                 /* comfortably past the 44px touch target */
  padding: 10px 11px;
  background: #fff;
  border: 1.5px solid var(--ght-brd);
  border-radius: var(--radius-sm, 9px);
  text-decoration: none;
  color: var(--ght-ink);
  transition: border-color .15s ease, box-shadow .15s ease, transform .1s ease;
}

.ght-tile:hover {
  border-color: var(--ght-gold);
  box-shadow: 0 3px 12px rgba(212, 175, 55, .22);
}

.ght-tile:active {
  transform: scale(.985);
  border-color: var(--ght-gold-dk);
}

.ght-ic {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  color: #4a3708;
  background: linear-gradient(135deg, #f5e7a8, var(--ght-gold));
}

/* ── owner artwork (DG-026) ────────────────────────────────────────────────
   These are detailed illustrations, not pictograms, so they get a real
   thumbnail — 72px on phones, 88px from 720px up — rather than an icon slot.
   The box is square and the picture fills it with object-fit: cover, so the
   characters and the transport element are never stretched or squashed. The
   fixed box plus the intrinsic width/height on the <img> means the space is
   reserved before the bytes arrive: no layout shift. */
.ght-ic--img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm, 9px);
  overflow: hidden;
  background: #f4f2ec;              /* visible while the image decodes */
  box-shadow: inset 0 0 0 1px var(--ght-brd);
  padding: 0;
}

.ght-ic--img picture { display: block; width: 100%; height: 100%; }

.ght-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* The walking module's own head icon, when the owner artwork is present. */
.lmm-head-ic--img {
  width: 56px !important;
  height: 56px !important;
  border-radius: 9px;
  overflow: hidden;
  padding: 0;
  background: rgba(212, 175, 55, .16);
}
.lmm-head-ic--img picture { display: block; width: 100%; height: 100%; }
.lmm-img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* min-width:0 lets the text column shrink, which is what actually stops the
   flex row forcing a horizontal scrollbar on a narrow screen. */
.ght-body { min-width: 0; display: flex; flex-direction: column; gap: 1px; }

.ght-label {
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.ght-hint {
  font-size: .68rem;
  line-height: 1.3;
  color: var(--ght-ink-2);
  overflow-wrap: anywhere;
}

/* ── "already outside the building?" ───────────────────────────────────── */
/* Secondary by design — a guest at the door has finished travelling, so this is
   not a fifth transport tile. Still unmistakably interactive. */
.ght-shortcut {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  min-height: 44px;
  padding: 9px 11px;
  font-size: .76rem;
  font-weight: 700;
  color: var(--ght-ink);
  text-decoration: none;
  background: rgba(212, 175, 55, .08);
  border: 1px dashed var(--ght-gold);
  border-radius: var(--radius-sm, 9px);
  overflow-wrap: anywhere;
  transition: background .15s ease, border-color .15s ease;
}
.ght-shortcut:hover { background: rgba(212, 175, 55, .16); border-style: solid; }
.ght-shortcut:active { background: rgba(212, 175, 55, .24); }
.ght-shortcut i { flex: 0 0 auto; color: var(--ght-gold-dk); }

/* ── the Arrival handoff, repeated after every route ───────────────────── */
.ght-arr {
  margin: -4px 0 12px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #0b0b0b, #151519);
  border: 1px solid var(--ght-gold);
  border-radius: var(--radius-sm, 9px);
}

.ght-arr-eyebrow {
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ght-gold);
  margin: 0 0 7px;
}

.ght-arr-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  max-width: 100%;
  font-size: .8rem;
  font-weight: 800;
  color: #2a2005;
  text-decoration: none;
  background: linear-gradient(135deg, #f0d060, var(--ght-gold));
  border-radius: var(--pill, 999px);
  overflow-wrap: anywhere;
  transition: filter .15s ease, transform .1s ease;
}
.ght-arr-cta:hover { filter: brightness(1.07); }
.ght-arr-cta:active { transform: scale(.985); }
.ght-arr-cta i { flex: 0 0 auto; }

/* ── accessibility ─────────────────────────────────────────────────────── */

/* Screen-reader-only. The Get Here pages do not load css/guide.css, so this is
   defined locally rather than reused. */
.ght-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ght-tile:focus-visible,
.ght-shortcut:focus-visible,
.ght-arr-cta:focus-visible {
  outline: 3px solid #1a56b8;
  outline-offset: 2px;
}

/* The target heading receives focus after a choice is activated. It must show
   that it did, without looking like a control. */
.card-title:focus-visible {
  outline: 3px solid var(--ght-gold-dk);
  outline-offset: 3px;
  border-radius: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .ght-tile, .ght-shortcut, .ght-arr-cta { transition: none; }
  .ght-tile:active, .ght-arr-cta:active { transform: none; }
}

/* Colour is never the only signal: in forced-colours mode the tiles keep a
   border and the focus ring keeps its own system colour. */
@media (forced-colors: active) {
  .ght, .ght-tile, .ght-shortcut, .ght-arr { border: 1px solid CanvasText; }
  .ght-tile:focus-visible,
  .ght-shortcut:focus-visible,
  .ght-arr-cta:focus-visible { outline: 3px solid Highlight; }
}

/* ── desktop: one row ──────────────────────────────────────────────────── */
@media (min-width: 720px) {
  .ght-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ght-tile { min-height: 62px; }
  .ght-title { font-size: 1.42rem; }
  .ght-ic--img { width: 88px; height: 88px; }
}

/* ── very narrow phones: keep 2 x 2, just tighten ──────────────────────── */
@media (max-width: 360px) {
  .ght { padding: 12px 12px 14px; }
  .ght-grid { gap: 6px; }
  .ght-tile { padding: 9px; gap: 8px; }
  .ght-ic { width: 30px; height: 30px; font-size: .85rem; }
  /* still a legible thumbnail, never below 64px */
  .ght-ic--img { width: 64px; height: 64px; }
}

@media print {
  .ght-grid, .ght-shortcut, .ght-arr { display: none; }
  .ght { border: none; box-shadow: none; padding: 0; }
}
