/* ============================================================================
   DG-024 · "Arriving by car" — Get Here
   ----------------------------------------------------------------------------
   Mobile-first. Loaded by all 15 /get-here/ pages (EN base + 13 forks).
   Inherits the page tokens defined in each Get Here <style> block
   (--gold, --amber, --grey-brd, --text, --text-2, --radius, --pill, --ff-*).
   Fallbacks are supplied so the file is also legible if loaded standalone.

   Layout rules that must not regress (DG-024 AC-9 / AC-10):
   - nothing may exceed 100% width at 390px  → every flex row wraps, long
     strings get overflow-wrap, and the address block scrolls inside itself;
   - every interactive element keeps a visible :focus-visible ring.
   ========================================================================== */

.ghc {
  --ghc-ink: var(--text, #1a1a1a);
  --ghc-ink-2: var(--text-2, #555);
  --ghc-brd: var(--grey-brd, #e8e0ca);
  --ghc-gold: var(--gold, #d4af37);
  --ghc-amber: var(--amber, #f59e0b);
  --ghc-warn-bg: #fff7ed;
  --ghc-warn-brd: #f59e0b;
  --ghc-alert-bg: #fef2f2;
  --ghc-alert-brd: #dc2626;
}

/* ── card body ─────────────────────────────────────────────────────────── */
.ghc-body { display: block; border-top: 1px solid #f0e6c8; }

.ghc-lead {
  font-size: .85rem;
  line-height: 1.55;
  color: var(--ghc-ink-2);
  margin-bottom: 12px;
}

/* ── destination block ─────────────────────────────────────────────────── */
.ghc-dest {
  background: linear-gradient(135deg, #fffdf5, #fff);
  border: 1.5px solid var(--ghc-brd);
  border-left: 4px solid var(--ghc-gold);
  border-radius: var(--radius-sm, 9px);
  padding: 12px 14px;
  margin-bottom: 10px;
}

.ghc-dest-label {
  display: block;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ghc-ink-2);
  margin-bottom: 4px;
}

/* The address is never translated and never truncated. On a narrow screen it
   wraps; if a single token were ever longer than the box it scrolls inside the
   block rather than widening the page. */
.ghc-dest-value {
  display: block;
  font-family: var(--ff-serif, 'Cormorant Garamond', Georgia, serif);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ghc-ink);
  overflow-wrap: anywhere;
  max-width: 100%;
  overflow-x: auto;
}

/* ── warnings ──────────────────────────────────────────────────────────── */
.ghc-warn {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .78rem;
  line-height: 1.5;
  border-radius: var(--radius-sm, 9px);
  padding: 10px 12px;
  margin-bottom: 10px;
  color: var(--ghc-ink);
}

.ghc-warn i { flex: 0 0 auto; margin-top: .15em; }
.ghc-warn > span { min-width: 0; overflow-wrap: anywhere; }

.ghc-warn--address {
  background: var(--ghc-warn-bg);
  border: 1px solid #fed7aa;
  border-left: 3px solid var(--ghc-warn-brd);
}
.ghc-warn--address i { color: var(--ghc-amber); }

.ghc-warn--ztl {
  background: var(--ghc-alert-bg);
  border: 1px solid #fecaca;
  border-left: 3px solid var(--ghc-alert-brd);
}
.ghc-warn--ztl i { color: var(--ghc-alert-brd); }

.ghc-warn-title {
  display: block;
  font-weight: 800;
  margin-bottom: 2px;
}

/* ── navigation buttons ────────────────────────────────────────────────── */
.ghc-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.ghc-nav .btn { max-width: 100%; white-space: normal; }

.ghc-nav .btn-gmaps {
  background: linear-gradient(135deg, #4285F4, #1a73e8);
  box-shadow: 0 4px 12px rgba(66, 133, 244, .28);
}
.ghc-nav .btn-waze {
  background: linear-gradient(135deg, #33ccff, #05c8f7);
  box-shadow: 0 4px 12px rgba(5, 200, 247, .28);
  color: #062a33;
}

.ghc-ext { font-size: .82em; opacity: .85; }

/* ── three-step flow ───────────────────────────────────────────────────── */
.ghc-steps-title {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ghc-ink-2);
  margin: 0 0 8px;
}

.ghc-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  counter-reset: ghc-step;
}

.ghc-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--ghc-brd);
  border-radius: var(--radius-sm, 9px);
  padding: 10px 12px;
}

.ghc-step-num {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .78rem;
  font-weight: 800;
  color: #4a3708;
  background: linear-gradient(135deg, #f0d060, #d4af37);
}

/* min-width:0 lets the text column shrink below its content width, which is
   what actually prevents the flex row from forcing a horizontal scrollbar. */
.ghc-step-body { min-width: 0; }

.ghc-step-title {
  font-size: .82rem;
  font-weight: 800;
  color: var(--ghc-ink);
  margin: 0 0 2px;
}

.ghc-step-text {
  font-size: .78rem;
  line-height: 1.5;
  color: var(--ghc-ink-2);
  margin: 0;
  overflow-wrap: anywhere;
}

/* ── official links + notes ────────────────────────────────────────────── */
.ghc-links-title {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ghc-ink-2);
  margin: 0 0 6px;
}

.ghc-links {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ghc-links a {
  display: inline-flex;
  align-items: flex-start;
  gap: 7px;
  font-size: .78rem;
  line-height: 1.45;
  font-weight: 600;
  color: #1a56b8;
  text-decoration: none;
  border-bottom: 1px solid rgba(26, 86, 184, .25);
  overflow-wrap: anywhere;
  max-width: 100%;
}
.ghc-links a:hover { border-bottom-color: #1a56b8; }
.ghc-links a i { flex: 0 0 auto; margin-top: .2em; }

/* Framing for the two official links: they are the city's pages, not ours, and
   only they can say what applies. Sits between the links and the disclaimers. */
.ghc-links-note {
  font-size: .74rem;
  line-height: 1.5;
  color: var(--ghc-ink-2);
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}

.ghc-notes {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ghc-notes li {
  font-size: .74rem;
  line-height: 1.5;
  color: var(--ghc-ink-2);
  background: #faf9f5;
  border-radius: 6px;
  border-left: 3px solid var(--ghc-brd);
  padding: 7px 9px;
  overflow-wrap: anywhere;
}

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

/* Screen-reader-only text. The Get Here pages do not load css/guide.css, so the
   class is defined here rather than reused. It carries the translated part of
   an accessible name that would be redundant on screen (the full destination
   and the "opens in a new tab" warning). */
.ghc-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ghc a:focus-visible,
.ghc button:focus-visible {
  outline: 3px solid #1a56b8;
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .ghc * { transition: none !important; animation: none !important; }
}

@media (forced-colors: active) {
  .ghc-dest, .ghc-warn, .ghc-step, .ghc-notes li { border: 1px solid CanvasText; }
  .ghc a:focus-visible, .ghc button:focus-visible { outline: 3px solid Highlight; }
}

/* ── wider screens: the flow reads as a row, still never wider than 100% ─ */
@media (min-width: 720px) {
  .ghc-steps { flex-direction: row; }
  .ghc-step { flex: 1 1 0; min-width: 0; }
}

/* ── print: the address and the steps must survive on paper ────────────── */
@media print {
  .ghc-nav { display: none; }
  .ghc-dest, .ghc-step, .ghc-warn { break-inside: avoid; }
  .ghc-links a { border-bottom: none; color: #000; }
}

/* ============================================================================
   DG-024 (2026-08-06) — parking near the apartment · paying by phone · onward
   ---------------------------------------------------------------------------
   Same overflow contract as above: every flex row wraps, every text column can
   shrink (min-width:0), every long token wraps rather than widening the page.
   ========================================================================== */

.ghc-sub-title {
  font-family: var(--ff-serif, 'Cormorant Garamond', Georgia, serif);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ghc-ink);
  margin: 18px 0 6px;
  padding-top: 14px;
  border-top: 1px solid var(--ghc-brd);
  overflow-wrap: anywhere;
}

.ghc-park-intro,
.ghc-pay-body {
  font-size: .8rem;
  line-height: 1.55;
  color: var(--ghc-ink-2);
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}

/* ── blue / white line bands ───────────────────────────────────────────── */
.ghc-bands {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ghc-band {
  font-size: .8rem;
  line-height: 1.5;
  color: var(--ghc-ink);
  background: #fff;
  border: 1px solid var(--ghc-brd);
  border-radius: var(--radius-sm, 9px);
  padding: 9px 11px;
  overflow-wrap: anywhere;
}

/* The colour is a visual echo of the real road marking, never the only signal:
   the band always names itself in words ("Blue lines" / "White lines"). */
.ghc-band--blue { border-left: 5px solid #1a56b8; }
.ghc-band--white { border-left: 5px solid #b9b3a2; }

.ghc-park-scope {
  font-size: .74rem;
  line-height: 1.5;
  font-style: italic;
  color: var(--ghc-ink-2);
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}

.ghc-warn--signs {
  background: var(--ghc-warn-bg);
  border: 1px solid #fed7aa;
  border-left: 3px solid var(--ghc-warn-brd);
}
.ghc-warn--signs i { color: var(--ghc-amber); }

.ghc-warn--session {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-left: 3px solid #059669;
  font-weight: 600;
}
.ghc-warn--session i { color: #059669; }

/* ── ATAC-listed apps ──────────────────────────────────────────────────── */
.ghc-apps-label {
  font-size: .78rem;
  color: var(--ghc-ink-2);
  margin: 10px 0 6px;
}

/* Proper nouns, presented as a neutral unordered set. No ordering meaning, no
   emphasis on any one of them, no per-app link. */
.ghc-apps {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ghc-app {
  font-size: .74rem;
  font-weight: 600;
  color: var(--ghc-ink);
  max-width: 100%;
  overflow-wrap: anywhere;
}

/* DG-026 — an UNVERIFIED provider renders as plain text. It deliberately gets no
   pill, no border, no hover and no pointer: the defect the owner reported was
   precisely a chip that looked tappable and was not. Names are separated by a
   thin rule rather than made to look like buttons. */
.ghc-app--plain {
  padding: 4px 0;
  color: var(--ghc-ink-2);
  border-bottom: 1px solid var(--ghc-brd);
}
.ghc-app--plain:not(:last-child) { margin-right: 4px; }

/* A VERIFIED provider becomes a real external link and looks like one. */
.ghc-app--link { padding: 0; }
.ghc-app--link > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;           /* mobile touch target */
  padding: 4px 12px;
  color: #1a56b8;
  text-decoration: none;
  background: #f4f2ec;
  border: 1px solid var(--ghc-brd);
  border-radius: var(--pill, 999px);
  transition: border-color .15s ease, background .15s ease;
}
.ghc-app--link > a:hover { background: #eee9dc; border-color: #1a56b8; }
.ghc-app--link > a:focus-visible { outline: 3px solid #1a56b8; outline-offset: 2px; }
.ghc-app--link > a i { font-size: .72em; opacity: .8; }

/* ── three payment steps ───────────────────────────────────────────────── */
.ghc-paysteps {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ghc-paystep {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: .78rem;
  line-height: 1.5;
  color: var(--ghc-ink-2);
}
.ghc-paystep .ghc-step-num { width: 22px; height: 22px; font-size: .72rem; }
.ghc-paystep .ghc-step-text { min-width: 0; overflow-wrap: anywhere; }

/* ── onward links inside the guide ─────────────────────────────────────── */
.ghc-onward {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--ghc-brd);
}

.ghc-onward-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 1 1 220px;
  min-width: 0;
  font-size: .78rem;
  font-weight: 700;
  color: var(--ghc-ink);
  text-decoration: none;
  background: linear-gradient(135deg, #fffdf5, #fff);
  border: 1.5px solid var(--ghc-brd);
  border-left: 4px solid var(--ghc-gold);
  border-radius: var(--radius-sm, 9px);
  padding: 11px 13px;
  overflow-wrap: anywhere;
}
.ghc-onward-link:hover { border-color: var(--ghc-gold); }
.ghc-onward-link i { flex: 0 0 auto; color: var(--ghc-gold); }

@media print {
  .ghc-apps { gap: 4px; }
  .ghc-onward { display: none; }
  .ghc-park, .ghc-pay { break-inside: avoid; }
}
