/*
 * VSM Glasgow Energy redesign — Sprint 2
 *
 * Loaded by index.html (and later other legacy pages) AFTER css/style.css
 * so its declarations override Bootstrap + legacy styles. All redesign
 * styles are scoped under `.glasgow` body class to avoid leaking into
 * any page that hasn't opted in.
 *
 * Tokens: public/brand-tokens.css (canonical source)
 * Spec:   docs/superpowers/specs/2026-04-28-legacy-redesign-glasgow-energy.md
 */

/*
 * Editorial type stack — Stage 2 redesign (Claude Design handoff 2026-05-06).
 * Fraunces replaces Cabinet Grotesk for the display role. Inter joins as a
 * tighter UI body face. Public Sans + JetBrains Mono kept as fallback +
 * monospace. Work Sans stays the CRM body face.
 */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700;9..144,800;9..144,900&family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ── Design-system animation primitives (used by Skel, OfflineBanner, etc.) ── */
@keyframes vsm-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@keyframes vsm-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@keyframes vsm-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .vsm-skel { animation: none !important; }
}

:root {
  --font-display: 'Fraunces', 'Cabinet Grotesk', 'Inter Tight', system-ui, sans-serif;
  --font-body: 'Inter', 'Public Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
  --font-crm: 'Work Sans', system-ui, sans-serif;

  /*
   * Stage 2 (Claude Design v2 handoff) token additions — additions only,
   * existing brand-tokens.css values stay authoritative. These standardise
   * focus rings, sticker drop shadows and motion grammar across both the
   * legacy site (.glasgow) and the React CRM.
   */
  --ring-focus: 0 0 0 3px hsl(45 72% 47% / 0.4);
  --shadow-sticker: 0 10px 30px hsl(220 10% 10% / 0.25);
  --motion-fast: 150ms;
  --motion-base: 250ms;
  --motion-slow: 400ms;
  --ease-out: cubic-bezier(.4, 0, .2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --motion-fast: 1ms;
    --motion-base: 1ms;
    --motion-slow: 1ms;
    --ease-spring: var(--ease-out);
  }
}

/* Standardised focus treatment — keyboard nav only, never on click. */
:focus-visible {
  outline: none;
  box-shadow: var(--ring-focus);
  border-radius: inherit;
}

body.glasgow {
  font-family: var(--font-body);
  background: hsl(var(--bg-cream));
  color: hsl(var(--foreground));
  line-height: 1.6;
}

/*
 * WOW.js disable: legacy pages mark below-fold sections with .wow.fadeIn(Up)
 * and rely on Waypoints to flip visibility on scroll. The triggers are
 * unreliable for sections far below the fold (notably footers + late content
 * blocks) — leaving them invisible to users, screen readers, crawlers, and
 * screenshot tooling. Force everything visible. Inline `visibility:hidden`
 * from WOW.js requires `!important` to override.
 */
body.glasgow .wow {
  visibility: visible !important;
  opacity: 1 !important;
  animation-name: none !important;
}

body.glasgow h1,
body.glasgow h2,
body.glasgow h3,
body.glasgow .display,
body.glasgow .display-1,
body.glasgow .display-2,
body.glasgow .display-3,
body.glasgow .display-4,
body.glasgow .display-5,
body.glasgow .display-6 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

body.glasgow .mono,
body.glasgow code,
body.glasgow .price,
body.glasgow .eyebrow {
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

body.glasgow .eyebrow {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: hsl(var(--primary));
}

@media (prefers-reduced-motion: reduce) {
  body.glasgow *,
  body.glasgow *::before,
  body.glasgow *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ═══════════════════════════════ HERO ═══════════════════════════════ */
body.glasgow .g-hero {
  position: relative;
  min-height: 92vh;
  background: hsl(var(--foreground));
  color: hsl(var(--bg-cream));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(80px, 12vh, 160px) 0 clamp(80px, 12vh, 140px);
}

body.glasgow .g-hero__bg { position: absolute; inset: 0; z-index: 0; }
body.glasgow .g-hero__photo {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.35; filter: grayscale(0.4) contrast(1.1);
}
body.glasgow .g-hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(hsl(var(--primary) / 0.08) 1px, transparent 1px),
    linear-gradient(90deg, hsl(var(--primary) / 0.08) 1px, transparent 1px);
  background-size: 80px 80px;
}
body.glasgow .g-hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, hsl(var(--foreground) / 0.5) 0%, hsl(var(--foreground) / 0.85) 100%);
}
body.glasgow .g-hero__content { position: relative; z-index: 2; }

body.glasgow .g-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px;
  border: 1px solid hsl(var(--primary) / 0.4);
  border-radius: 999px;
  background: hsl(var(--primary) / 0.08);
  margin-bottom: 32px;
}
body.glasgow .g-hero__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: hsl(var(--primary));
  box-shadow: 0 0 12px hsl(var(--primary));
  animation: gPulse 2s ease-in-out infinite;
}
@keyframes gPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

body.glasgow .g-hero__headline {
  font-size: clamp(56px, 11vw, 168px);
  font-weight: 800; line-height: 0.92; letter-spacing: -0.05em;
  text-transform: uppercase; margin: 0 0 32px;
  color: hsl(var(--bg-cream));
}
body.glasgow .g-hero__headline-accent { color: hsl(var(--primary)); font-style: normal; }

body.glasgow .g-hero__lede {
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.45; max-width: 560px;
  color: hsl(var(--bg-cream) / 0.85);
  margin: 0 0 40px;
}

body.glasgow .g-hero__ctas { display: flex; flex-wrap: wrap; gap: 16px; }

body.glasgow .g-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 28px;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  letter-spacing: 0.02em; text-transform: uppercase;
  border-radius: 8px; text-decoration: none; cursor: pointer; border: none;
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
}
body.glasgow .g-btn--gold {
  background: hsl(var(--primary)); color: hsl(var(--foreground));
  box-shadow: 0 8px 24px hsl(var(--primary) / 0.3);
}
body.glasgow .g-btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px hsl(var(--primary) / 0.45);
  background: hsl(var(--primary-glow));
}
body.glasgow .g-btn--ghost {
  background: transparent; color: hsl(var(--bg-cream));
  border: 1.5px solid hsl(var(--bg-cream) / 0.3);
}
body.glasgow .g-btn--ghost:hover { border-color: hsl(var(--primary)); color: hsl(var(--primary)); }
body.glasgow .g-btn__price {
  font-family: var(--font-mono); font-weight: 500; font-size: 12px;
  letter-spacing: 0.05em; text-transform: none;
  opacity: 0.7; padding-left: 12px; border-left: 1px solid currentColor;
}

body.glasgow .g-hero__sticker {
  --sticker-rot: -12deg;
  position: absolute;
  top: clamp(60px, 12vh, 140px);
  right: clamp(20px, 5vw, 80px);
  width: 200px; height: 200px;
  border-radius: 50%;
  background: hsl(var(--primary)); color: hsl(var(--foreground));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; transform: rotate(var(--sticker-rot)); z-index: 3;
  box-shadow: 0 20px 60px hsl(var(--primary) / 0.4);
  transition: transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
body.glasgow .g-hero__sticker:hover { transform: rotate(calc(var(--sticker-rot) + 4deg)) scale(1.05); }
body.glasgow .g-hero__sticker-num {
  font-family: var(--font-display); font-weight: 800;
  font-size: 56px; line-height: 0.9; letter-spacing: -0.04em; margin-bottom: 4px;
}
body.glasgow .g-hero__sticker-label {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.85; line-height: 1.3;
}

@media (max-width: 768px) {
  body.glasgow .g-hero__sticker { width: 140px; height: 140px; top: 80px; right: 16px; }
  body.glasgow .g-hero__sticker-num { font-size: 38px; }
  body.glasgow .g-hero__sticker-label { font-size: 8px; }
}
/* Below ~480px the sticker overlapped and hid the eyebrow text
   ("DVSA approved · Glasgow · Est. 2010"). Shrink the badge and let the
   eyebrow wrap clear of it. */
@media (max-width: 480px) {
  body.glasgow .g-hero__sticker { width: 112px; height: 112px; top: 72px; right: 10px; }
  body.glasgow .g-hero__sticker-num { font-size: 30px; }
  body.glasgow .g-hero__sticker-label { font-size: 7px; }
  body.glasgow .g-hero__eyebrow { max-width: calc(100% - 118px); }
}

body.glasgow .g-hero__marquee {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  background: hsl(var(--primary)); color: hsl(var(--foreground));
  overflow: hidden;
  border-top: 2px solid hsl(var(--foreground));
  border-bottom: 2px solid hsl(var(--foreground));
}
body.glasgow .g-hero__marquee-track {
  display: flex; gap: 32px; align-items: center;
  padding: 14px 0; white-space: nowrap;
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  letter-spacing: 0.05em; text-transform: uppercase;
  animation: gMarquee 35s linear infinite; width: max-content;
}
body.glasgow .g-hero__marquee-dot { color: hsl(var(--accent-ember)); font-size: 8px; }
/* Track contents must be duplicated 2x exactly — translateX(-50%) loops a half-track */
@keyframes gMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

body.glasgow .g-hero [data-stagger] {
  opacity: 0; transform: translateY(20px);
  transition: opacity 600ms cubic-bezier(0.4, 0, 0.2, 1), transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}
body.glasgow .g-hero.is-visible [data-stagger="0"] { transition-delay: 0ms; opacity: 1; transform: translateY(0); }
body.glasgow .g-hero.is-visible [data-stagger="1"] { transition-delay: 80ms; opacity: 1; transform: translateY(0); }
body.glasgow .g-hero.is-visible [data-stagger="2"] { transition-delay: 160ms; opacity: 1; transform: translateY(0); }
body.glasgow .g-hero.is-visible [data-stagger="3"] { transition-delay: 240ms; opacity: 1; transform: translateY(0); }
body.glasgow .g-hero.is-visible [data-stagger="4"] {
  transition-delay: 400ms; opacity: 1; transform: rotate(var(--sticker-rot)) translateY(0);
}

/* ═══════════════════════════════ STAT STRIP ═══════════════════════════ */
body.glasgow .g-stats {
  background: hsl(var(--bg-cream));
  padding: clamp(80px, 12vh, 140px) 0;
  border-bottom: 1px solid hsl(var(--foreground) / 0.08);
}
body.glasgow .g-stats__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(40px, 6vw, 80px); align-items: end;
}
body.glasgow .g-stat {
  text-align: center; transform: rotate(var(--tilt, 0));
  transition: transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
body.glasgow .g-stat:hover { transform: rotate(0deg) scale(1.03); }
body.glasgow .g-stat__num {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(80px, 14vw, 200px);
  line-height: 0.85; letter-spacing: -0.06em;
  color: hsl(var(--foreground)); margin-bottom: 16px;
}
body.glasgow .g-stat__pct { color: hsl(var(--primary)); font-size: 0.7em; }
body.glasgow .g-stat__label {
  font-size: 12px; letter-spacing: 0.2em;
  text-transform: uppercase; color: hsl(var(--muted-foreground));
}
@media (max-width: 768px) {
  body.glasgow .g-stats__grid { grid-template-columns: 1fr; gap: 60px; }
}

/* ═══════════════════════════════ WHY VSM ═══════════════════════════════ */
body.glasgow .g-why {
  background: hsl(var(--foreground)); color: hsl(var(--bg-cream));
  padding: clamp(80px, 12vh, 140px) 0;
}
body.glasgow .g-why__header {
  text-align: center; margin-bottom: clamp(48px, 6vh, 80px);
}
body.glasgow .g-why__header .eyebrow { display: inline-block; margin-bottom: 16px; }
body.glasgow .g-why__title {
  font-size: clamp(36px, 6vw, 72px); font-weight: 800;
  letter-spacing: -0.04em; text-transform: uppercase;
  line-height: 0.95; max-width: 14ch;
  margin: 0 auto; color: hsl(var(--bg-cream));
}
body.glasgow .g-why__grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
  max-width: 1100px; margin: 0 auto;
}
@media (max-width: 768px) { body.glasgow .g-why__grid { grid-template-columns: 1fr; } }

body.glasgow .g-why__card {
  background: hsl(var(--bg-cream)); color: hsl(var(--foreground));
  padding: 36px 32px; border-radius: 12px;
  transform: rotate(var(--rot, 0));
  transition: transform 350ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 350ms ease;
  position: relative;
}
body.glasgow .g-why__card:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 0 24px 48px hsl(var(--foreground) / 0.4);
}
body.glasgow .g-why__icon {
  width: 56px; height: 56px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
body.glasgow .g-why__cardtitle {
  font-family: var(--font-display); font-weight: 800;
  font-size: 28px; letter-spacing: -0.03em;
  text-transform: uppercase; margin: 0 0 12px;
}
body.glasgow .g-why__cardbody {
  font-family: var(--font-body); font-size: 15px; line-height: 1.6;
  color: hsl(var(--foreground) / 0.88); margin: 0;
  text-transform: none; letter-spacing: 0;
}

/* ═══════════════════════════════ COURSES ═══════════════════════════════ */
body.glasgow .g-courses {
  background: hsl(var(--bg-cream));
  padding: clamp(80px, 12vh, 140px) 0;
}
body.glasgow .g-courses__header {
  margin-bottom: clamp(48px, 6vh, 80px);
  max-width: 720px;
}
body.glasgow .g-courses__header .eyebrow { margin-bottom: 16px; display: inline-block; }
body.glasgow .g-courses__title {
  font-size: clamp(48px, 8vw, 96px); font-weight: 800;
  letter-spacing: -0.04em; text-transform: uppercase;
  margin: 0 0 24px; color: hsl(var(--foreground));
}
body.glasgow .g-courses__lede {
  font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6;
  color: hsl(var(--foreground) / 0.85);
}

body.glasgow .g-courses__grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 320px; gap: 16px;
}
body.glasgow .g-course--lg { grid-column: span 4; grid-row: span 2; }
body.glasgow .g-course--md { grid-column: span 2; grid-row: span 2; }
body.glasgow .g-course--sm { grid-column: span 2; grid-row: span 1; }

@media (max-width: 1024px) {
  body.glasgow .g-courses__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 280px; }
  body.glasgow .g-course--lg,
  body.glasgow .g-course--md,
  body.glasgow .g-course--sm { grid-column: span 2; grid-row: span 1; }
}

body.glasgow .g-course {
  position: relative; border-radius: 12px; overflow: hidden;
  text-decoration: none; color: hsl(var(--bg-cream));
  display: flex; flex-direction: column; justify-content: flex-end;
  isolation: isolate;
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
}
body.glasgow .g-course:hover { transform: translateY(-4px); }
body.glasgow .g-course__media {
  position: absolute; inset: 0;
  background-size: cover; background-position: center; z-index: 0;
  filter: grayscale(1) contrast(1.05);
  transition: transform 800ms cubic-bezier(0.4, 0, 0.2, 1), filter 400ms ease;
}
body.glasgow .g-course:hover .g-course__media {
  transform: scale(1.06);
  filter: grayscale(1) contrast(1.1) brightness(0.95);
}
body.glasgow .g-course::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, hsl(var(--foreground) / 0.45) 0%, hsl(var(--foreground) / 0.6) 40%, hsl(var(--foreground) / 0.92) 100%);
}
body.glasgow .g-course__body { position: relative; z-index: 2; padding: 32px; }
body.glasgow .g-course__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
body.glasgow .g-course__price {
  background: var(--accent); color: hsl(var(--foreground));
  padding: 6px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.05em;
}
body.glasgow .g-course__type {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: hsl(var(--bg-cream) / 0.95);
}
body.glasgow .g-course__name {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(28px, 3.5vw, 44px);
  letter-spacing: -0.03em; text-transform: uppercase;
  margin: 0 0 12px; line-height: 1;
  color: hsl(var(--bg-cream));
  text-shadow: 0 2px 12px hsl(var(--foreground) / 0.4);
}
body.glasgow .g-course__pitch {
  font-size: 15px; line-height: 1.4; margin: 0 0 16px;
  color: hsl(var(--bg-cream)); max-width: 38ch;
}
body.glasgow .g-course__cta {
  display: inline-block;
  font-family: var(--font-display); font-weight: 700;
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  color: hsl(var(--bg-cream));
  border-bottom: 2px solid hsl(var(--bg-cream));
  padding-bottom: 2px;
  transition: border-color 200ms ease;
}
body.glasgow .g-course:hover .g-course__cta { border-bottom-color: var(--accent); }
body.glasgow .g-course--sm .g-course__name { font-size: 24px; }

/* ═══════════════════════════════ SOCIAL WALL ═══════════════════════════ */
body.glasgow .g-social {
  background: hsl(var(--foreground)); color: hsl(var(--bg-cream));
  padding: clamp(80px, 12vh, 140px) 0;
  position: relative; overflow: hidden;
}
body.glasgow .g-social::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 80% 20%, hsl(var(--accent-pink) / 0.15) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, hsl(var(--accent-cobalt) / 0.15) 0%, transparent 50%);
  pointer-events: none;
}
body.glasgow .g-social__header {
  text-align: center; margin: 0 auto clamp(48px, 6vh, 80px);
  max-width: 720px; position: relative;
}
body.glasgow .g-social__title {
  font-size: clamp(40px, 6vw, 80px); font-weight: 800;
  letter-spacing: -0.04em; text-transform: uppercase;
  line-height: 0.95; margin: 16px 0 24px;
}
body.glasgow .g-social__lede {
  font-size: clamp(16px, 1.4vw, 19px); line-height: 1.5;
  color: hsl(var(--bg-cream) / 0.85);
}

body.glasgow .g-social__grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px;
  position: relative;
}
@media (max-width: 1024px) { body.glasgow .g-social__grid { grid-template-columns: 1fr; } }

body.glasgow .g-social__col {
  border-radius: 16px; padding: 24px;
  display: flex; flex-direction: column;
}
body.glasgow .g-social__col--google { background: hsl(220 78% 32%); color: hsl(var(--bg-cream)); }
body.glasgow .g-social__col--youtube { background: hsl(15 88% 48%); color: hsl(var(--bg-cream)); }
body.glasgow .g-social__col--stack { background: transparent; padding: 0; gap: 24px; }

body.glasgow .g-social__substack {
  border-radius: 16px; padding: 24px;
  display: flex; flex-direction: column;
}
body.glasgow .g-social__substack--tiktok {
  background: hsl(var(--foreground)); color: hsl(var(--bg-cream));
  border: 2px solid hsl(var(--primary));
}
body.glasgow .g-social__substack--follow {
  background: hsl(340 65% 38%); color: hsl(var(--bg-cream));
}

body.glasgow .g-social__platform {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 800;
  font-size: 16px; text-transform: uppercase; letter-spacing: 0.05em;
  margin-bottom: 16px;
}
body.glasgow .g-social__platform i { font-size: 28px; }

body.glasgow .g-social__widget {
  flex: 1; position: relative;
  border-radius: 8px; overflow: hidden;
  background: hsl(var(--foreground) / 0.05);
  min-height: 320px;
}
body.glasgow .g-social__iframe {
  width: 100%; height: 100%; min-height: 480px; border: none;
}

/* Native Google reviews (served by the social-proof edge function) */
body.glasgow .g-social__reviews {
  display: flex; flex-direction: column; gap: 10px;
  width: 100%; max-height: 480px; overflow-y: auto; padding: 4px;
}
body.glasgow .g-social__review {
  background: hsl(var(--bg-cream) / 0.1);
  border: 1px solid hsl(var(--bg-cream) / 0.18);
  border-radius: 8px; padding: 12px 14px; text-align: left;
}
body.glasgow .g-social__review-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-bottom: 6px;
}
body.glasgow .g-social__review-author { font-weight: 600; font-size: 14px; }
body.glasgow .g-social__review-stars {
  color: #ffce31; font-size: 13px; letter-spacing: 1px; white-space: nowrap;
}
body.glasgow .g-social__review-text {
  margin: 0; font-size: 13px; line-height: 1.5; opacity: 0.92;
  display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4;
  -webkit-box-orient: vertical; overflow: hidden;
}
body.glasgow .g-social__review-time {
  display: block; margin-top: 6px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.1em; opacity: 0.6;
}

body.glasgow .g-social__shortswall {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; min-height: 480px;
}
body.glasgow .g-social__short {
  position: relative; aspect-ratio: 9/16;
  border-radius: 8px; overflow: hidden;
  background: hsl(var(--foreground) / 0.1);
}
body.glasgow .g-social__short iframe {
  width: 100%; height: 100%; border: none;
}

body.glasgow .g-social__loading {
  display: flex; align-items: center; justify-content: center;
  height: 100%;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: currentColor; opacity: 0.5;
}

body.glasgow .g-social__follow-list {
  display: flex; flex-direction: column; gap: 12px;
  flex: 1; min-height: 280px;
}
body.glasgow .g-social__follow-link {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px;
  background: hsl(var(--bg-cream) / 0.14);
  border: 1px solid hsl(var(--bg-cream) / 0.18);
  border-radius: 10px;
  color: hsl(var(--bg-cream));
  text-decoration: none;
  font-family: var(--font-display); font-weight: 700;
  font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase;
  transition: background 200ms ease, transform 200ms ease, border-color 200ms ease;
}
body.glasgow .g-social__follow-link:hover {
  background: hsl(var(--bg-cream) / 0.22);
  border-color: hsl(var(--bg-cream) / 0.4);
  transform: translateX(4px);
}
body.glasgow .g-social__follow-link i {
  font-size: 28px;
  color: hsl(var(--bg-cream));
  flex-shrink: 0;
}
body.glasgow .g-social__follow-name {
  flex: 1;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: none;
  color: hsl(var(--bg-cream) / 0.95);
  word-break: break-word;
}
body.glasgow .g-social__follow-arrow {
  font-size: 18px;
  color: hsl(var(--bg-cream));
  flex-shrink: 0;
}

body.glasgow .g-social__more {
  margin-top: 16px;
  font-family: var(--font-display); font-weight: 700;
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  color: currentColor; text-decoration: none;
  border-bottom: 2px solid currentColor; padding-bottom: 2px;
  align-self: flex-start;
  transition: opacity 200ms ease;
}
body.glasgow .g-social__more:hover { opacity: 0.7; }

/* ═══════════════════════════════ FINAL CTA ═══════════════════════════════ */
body.glasgow .g-finalcta {
  background: hsl(var(--foreground)); color: hsl(var(--bg-cream));
  padding: clamp(120px, 18vh, 200px) 0;
  text-align: center; position: relative; overflow: hidden;
}
body.glasgow .g-finalcta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, hsl(var(--primary) / 0.2) 0%, transparent 50%);
  pointer-events: none;
}
body.glasgow .g-finalcta__title {
  font-size: clamp(64px, 12vw, 200px); font-weight: 800;
  letter-spacing: -0.05em; text-transform: uppercase;
  line-height: 0.9; margin: 0 0 48px; position: relative;
}
body.glasgow .g-finalcta__ctas {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 32px; position: relative;
}
body.glasgow .g-btn--lg { font-size: 17px; padding: 22px 36px; }
body.glasgow .g-btn--ghost-light {
  background: transparent; color: hsl(var(--bg-cream));
  border: 1.5px solid hsl(var(--bg-cream) / 0.3);
}
body.glasgow .g-btn--ghost-light:hover {
  border-color: hsl(var(--primary)); color: hsl(var(--primary));
}
body.glasgow .g-finalcta__hours {
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: hsl(var(--bg-cream) / 0.85); position: relative;
  margin-bottom: 24px;
}
body.glasgow .g-finalcta__instructor {
  font-family: var(--font-body); font-size: 14px;
  color: hsl(var(--bg-cream) / 0.85); position: relative;
  margin: 0;
}
body.glasgow .g-finalcta__instructor a {
  color: hsl(var(--primary)); text-decoration: none;
  border-bottom: 1px solid hsl(var(--primary) / 0.4);
  transition: border-color 200ms ease;
}
body.glasgow .g-finalcta__instructor a:hover {
  border-bottom-color: hsl(var(--primary));
}

/* ═══════════════════════════════ NAV TWEAKS ═══════════════════════════════ */
body.glasgow .navbar {
  background: hsl(var(--bg-cream)) !important;
  border-bottom: 1px solid hsl(var(--foreground) / 0.08);
  padding: 16px 0;
  transition: background 200ms ease, box-shadow 200ms ease;
}
body.glasgow .navbar.scrolled {
  background: hsl(var(--bg-cream) / 0.92) !important;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px hsl(var(--foreground) / 0.06);
}
body.glasgow .navbar .navbar-brand,
body.glasgow .navbar .navbar-brand h2,
body.glasgow .navbar .navbar-brand span,
body.glasgow .navbar .navbar-brand h5 {
  font-family: var(--font-display); font-weight: 800;
  letter-spacing: -0.02em; text-transform: uppercase;
  font-size: 18px; color: hsl(var(--foreground));
}
body.glasgow .navbar .nav-link {
  font-family: var(--font-display); font-weight: 600;
  font-size: 14px; letter-spacing: 0.02em; text-transform: uppercase;
  color: hsl(var(--foreground)) !important;
  transition: color 200ms ease;
}
body.glasgow .navbar .nav-link:hover,
body.glasgow .navbar .nav-link.active { color: hsl(var(--primary)) !important; }
body.glasgow .navbar .btn-primary,
body.glasgow .navbar .btn.btn-primary {
  background: hsl(var(--foreground)) !important;
  color: hsl(var(--primary)) !important;
  border: 2px solid hsl(var(--foreground)) !important;
  font-family: var(--font-display); font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  padding: 10px 22px !important; border-radius: 999px !important;
}
body.glasgow .navbar .btn-primary:hover {
  background: hsl(var(--primary)) !important;
  color: hsl(var(--foreground)) !important;
  border-color: hsl(var(--primary)) !important;
}

/* Pages dropdown caret: replace Bootstrap's faint 0.3em border-triangle with
   a clear gold chevron, visible on desktop and in the collapsed menu. */
body.glasgow .navbar .nav-link.dropdown-toggle::after {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-left: 8px;
  border: solid hsl(var(--primary));
  border-width: 0 2.5px 2.5px 0;
  transform: translateY(-3px) rotate(45deg);
  vertical-align: middle;
  transition: transform 200ms ease;
}
body.glasgow .navbar .nav-link.dropdown-toggle[aria-expanded="true"]::after {
  transform: translateY(1px) rotate(225deg);
}

/* Hamburger: comfortable 48px tap target, soft radius, gold focus ring. */
body.glasgow .navbar .navbar-toggler {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid hsl(var(--foreground) / 0.15);
  border-radius: 12px;
  transition: border-color 200ms ease;
}
body.glasgow .navbar .navbar-toggler:hover {
  border-color: hsl(var(--primary));
}
body.glasgow .navbar .navbar-toggler:focus {
  box-shadow: none;
}
body.glasgow .navbar .navbar-toggler:focus-visible {
  outline: 2px solid hsl(var(--primary));
  outline-offset: 2px;
}
/* The 48px treatment above sets display:inline-flex unconditionally, which
   overrode Bootstrap's "hide the toggler at the expand breakpoint" rule and
   left the hamburger showing on desktop next to the inline nav. Re-hide it
   from the lg breakpoint up (same specificity, later in the file → wins). */
@media (min-width: 992px) {
  body.glasgow .navbar .navbar-toggler { display: none; }
}

/* Mobile (collapsed) nav CTAs: the desktop treatment (999px pill, fixed
   paddings, desktop-row sizing) breaks inside the stacked .navbar-collapse —
   Inquire stretched into a full-width blob and Login clipped. Below lg both
   become consistent full-width 48px+ pills with a 12px gap. The Inquire CTA
   carries .d-none.d-lg-block, so display:flex !important also un-hides it in
   the open menu. Desktop (lg+) is untouched. */
@media (max-width: 991.98px) {
  body.glasgow .navbar .navbar-collapse > .btn-primary,
  body.glasgow .navbar .navbar-collapse > .btn.btn-primary {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    min-height: 48px;
    margin: 0 24px 12px;
    padding: 12px 20px !important;
    border-radius: 12px !important;
    font-size: 15px;
  }
  body.glasgow .navbar .navbar-collapse > .btn-primary:last-of-type {
    margin-bottom: 24px;
  }
  /* Inquire (the .d-lg-block CTA): solid gold with dark text; Login keeps
     the dark/gold treatment from the base nav rule above. */
  body.glasgow .navbar .navbar-collapse > .btn-primary.d-lg-block {
    background: hsl(var(--primary)) !important;
    color: hsl(var(--foreground)) !important;
    border-color: hsl(var(--primary)) !important;
  }
}

/* Mid-desktop fit (992–1199.98px): the expanded navbar — brand wordmark +
   6 links + Inquire + Login — measures ~1324px and overflowed the viewport
   by ~300px at 1024. Collapse the brand to logo-only (same treatment the
   <992px breakpoint already uses) and tighten link spacing so everything
   fits from 992px up. */
@media (min-width: 992px) and (max-width: 1199.98px) {
  body.glasgow .navbar .navbar-brand {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  body.glasgow .navbar .navbar-brand h2 span { display: none; }
  body.glasgow .navbar .navbar-nav .nav-link { margin-right: 20px; }
}

/* ═══════════════════════════════ FOOTER POLISH ═══════════════════════════ */
body.glasgow .g-footer {
  background: hsl(var(--foreground)) !important;
  /* 12px side padding is load-bearing: the footer's .row.g-5 pulls -24px
     margins, and the inner .container only absorbs 12px of that. Zeroing
     this caused a 12px horizontal scroll below 576px (and ~4px at 992px)
     on every page. */
  padding: 80px 12px 48px;
  border-top: 4px solid hsl(var(--primary));
}
body.glasgow .g-footer h2,
body.glasgow .g-footer h5,
body.glasgow .g-footer .text-primary {
  font-family: var(--font-display); font-weight: 800;
  letter-spacing: -0.02em; text-transform: uppercase;
  color: hsl(var(--bg-cream)) !important;
}
body.glasgow .g-footer p,
body.glasgow .g-footer li {
  font-family: var(--font-body);
  color: hsl(var(--bg-cream) / 0.88) !important;
}
body.glasgow .g-footer a {
  color: hsl(var(--bg-cream)) !important;
  transition: color 200ms ease;
}
body.glasgow .g-footer a:hover { color: hsl(var(--primary)) !important; }
body.glasgow .g-footer .btn-square {
  border-color: hsl(var(--bg-cream) / 0.3) !important;
  border-radius: 50% !important;
  width: 42px; height: 42px; margin-right: 8px;
}
body.glasgow .g-footer .btn-square:hover {
  border-color: hsl(var(--primary)) !important;
  color: hsl(var(--primary)) !important;
}

/* Touch-width tap targets: footer link rows measured 27px tall and the
   social "Read all reviews →" links 25px — under the ~44px touch minimum.
   Pad them out on touch widths only; desktop pointer sizing unchanged. */
@media (max-width: 991.98px) {
  body.glasgow .footer .btn.btn-link {
    padding: 9px 0;
    margin-bottom: 0;
  }
  body.glasgow .g-social__more {
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

/* ═══════════════════════════════ TOPBAR ═══════════════════════════════ */
body.glasgow .g-topbar {
  background: hsl(var(--foreground)) !important;
  border-bottom: 1px solid hsl(var(--bg-cream) / 0.06);
}
body.glasgow .g-topbar small {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: hsl(var(--bg-cream) / 0.85);
}
body.glasgow .g-topbar .text-primary {
  color: hsl(var(--primary)) !important;
}
body.glasgow .g-topbar a {
  color: hsl(var(--bg-cream)) !important;
  text-decoration: none;
  transition: color 200ms ease;
}
body.glasgow .g-topbar a:hover { color: hsl(var(--primary)) !important; }
body.glasgow .g-topbar .btn-square {
  border-color: transparent !important;
  width: 36px; height: 36px;
  color: hsl(var(--bg-cream) / 0.7) !important;
  transition: color 200ms ease, background 200ms ease;
}
body.glasgow .g-topbar .btn-square i { font-size: 13px; }
body.glasgow .g-topbar .btn-square:hover {
  background: hsl(var(--primary) / 0.1) !important;
  color: hsl(var(--primary)) !important;
}

/* ═══════════════════════════════ ABOUT ═══════════════════════════════ */
body.glasgow .g-about {
  background: hsl(var(--foreground));
  color: hsl(var(--bg-cream));
  padding: clamp(80px, 12vh, 140px) 0;
  position: relative;
  overflow: hidden;
}
body.glasgow .g-about::before {
  content: '';
  position: absolute; top: 0; right: 0; bottom: 0; left: 50%;
  background-image:
    linear-gradient(hsl(var(--primary) / 0.04) 1px, transparent 1px),
    linear-gradient(90deg, hsl(var(--primary) / 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  opacity: 0.6;
}
body.glasgow .g-about__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(48px, 8vw, 100px);
  align-items: center;
  position: relative;
}
@media (max-width: 980px) {
  body.glasgow .g-about__grid { grid-template-columns: 1fr; gap: 60px; }
}
body.glasgow .g-about__media {
  position: relative;
  aspect-ratio: 4/5;
  width: 100%;
  isolation: isolate;
}
body.glasgow .g-about__photo {
  border-radius: 12px;
  object-fit: cover;
  filter: grayscale(0.65) contrast(1.05);
}
body.glasgow .g-about__photo--main {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
body.glasgow .g-about__photo--accent {
  position: absolute;
  bottom: -32px; right: -32px;
  width: 52%; aspect-ratio: 1;
  border: 8px solid hsl(var(--foreground));
  z-index: 2;
}
@media (max-width: 980px) {
  body.glasgow .g-about__photo--accent { right: 8px; bottom: -24px; width: 40%; }
}
body.glasgow .g-about__sticker {
  position: absolute;
  top: -24px; left: -24px;
  z-index: 3;
  background: hsl(var(--primary));
  color: hsl(var(--foreground));
  padding: 18px 22px;
  border-radius: 10px;
  transform: rotate(-4deg);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 12px 32px hsl(var(--primary) / 0.35);
  transition: transform 350ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
body.glasgow .g-about__sticker:hover { transform: rotate(0deg) scale(1.05); }
body.glasgow .g-about__sticker-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 32px;
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin-bottom: 4px;
}
body.glasgow .g-about__sticker-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.3;
  opacity: 0.85;
}
body.glasgow .g-about__title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  line-height: 0.95;
  margin: 16px 0 24px;
  color: hsl(var(--bg-cream));
}
body.glasgow .g-about__lede {
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.45;
  color: hsl(var(--bg-cream));
  margin: 0 0 16px;
  max-width: 56ch;
}
body.glasgow .g-about__body {
  font-size: 15px; line-height: 1.6;
  color: hsl(var(--bg-cream));
  margin: 0 0 32px;
  max-width: 56ch;
}
body.glasgow .g-about__list {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
}
@media (max-width: 540px) {
  body.glasgow .g-about__list { grid-template-columns: 1fr; }
}
body.glasgow .g-about__list li {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: hsl(var(--bg-cream));
}
body.glasgow .g-about__list i {
  color: hsl(var(--primary));
  font-size: 20px;
  flex-shrink: 0;
}
body.glasgow .g-about__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ═══════════════════════════════ RESOURCES ═══════════════════════════════ */
body.glasgow .g-resources {
  background: hsl(var(--bg-cream));
  padding: clamp(64px, 10vh, 120px) 0;
}
body.glasgow .g-resources__header {
  margin-bottom: clamp(32px, 5vh, 56px);
  max-width: 720px;
}
body.glasgow .g-resources__header .eyebrow {
  display: inline-block;
  margin-bottom: 12px;
}
body.glasgow .g-resources__title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  line-height: 1;
  margin: 0 0 16px;
  color: hsl(var(--foreground));
}
body.glasgow .g-resources__lede {
  font-size: 16px;
  line-height: 1.6;
  color: hsl(var(--foreground) / 0.85);
  margin: 0;
}
body.glasgow .g-resources__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 768px) {
  body.glasgow .g-resources__grid { grid-template-columns: 1fr; }
}
body.glasgow .g-resource {
  display: flex;
  flex-direction: column;
  padding: 32px;
  background: hsl(var(--foreground));
  color: hsl(var(--bg-cream));
  border-radius: 12px;
  text-decoration: none;
  position: relative;
  min-height: 200px;
  transition: transform 250ms ease, box-shadow 250ms ease;
  border: 1px solid hsl(var(--foreground));
}
body.glasgow .g-resource:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px hsl(var(--foreground) / 0.25);
  border-color: hsl(var(--primary));
}
body.glasgow .g-resource__label {
  font-size: 10px;
  letter-spacing: 0.3em;
  color: hsl(var(--primary));
  margin-bottom: 20px;
}
body.glasgow .g-resource__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-transform: uppercase;
  margin: 0;
  flex: 1;
  color: hsl(var(--bg-cream));
}
body.glasgow .g-resource__arrow {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  color: hsl(var(--primary));
  margin-top: 24px;
  align-self: flex-start;
  transition: transform 250ms ease;
}
body.glasgow .g-resource:hover .g-resource__arrow { transform: translateX(8px); }

/* ═══════════════════════════════ HOW IT WORKS ═══════════════════════════════ */
body.glasgow .g-howto {
  background: hsl(var(--bg-cream));
  padding: clamp(80px, 12vh, 140px) 0;
  position: relative;
}
body.glasgow .g-howto__header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(48px, 6vh, 72px);
}
body.glasgow .g-howto__header .eyebrow {
  display: inline-block;
  margin-bottom: 12px;
}
body.glasgow .g-howto__title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  line-height: 0.95;
  margin: 0 0 16px;
  color: hsl(var(--foreground));
}
body.glasgow .g-howto__lede {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  color: hsl(var(--foreground) / 0.85);
  margin: 0;
}
body.glasgow .g-howto__steps {
  list-style: none;
  padding: 0;
  margin: 0 0 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
}
@media (max-width: 980px) {
  body.glasgow .g-howto__steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  body.glasgow .g-howto__steps { grid-template-columns: 1fr; }
}
body.glasgow .g-howto__step {
  background: hsl(var(--foreground));
  color: hsl(var(--bg-cream));
  border-radius: 16px;
  padding: 32px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 300ms ease;
}
body.glasgow .g-howto__step:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px hsl(var(--foreground) / 0.22);
}
body.glasgow .g-howto__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: hsl(var(--primary));
  margin-bottom: 28px;
}
body.glasgow .g-howto__icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
body.glasgow .g-howto__icon i { font-size: 28px; }
body.glasgow .g-howto__steptitle {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(20px, 2vw, 24px);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0 0 10px;
  line-height: 1.1;
  color: #ffffff;
}
body.glasgow .g-howto__stepbody {
  font-size: 14px;
  line-height: 1.6;
  color: #ffffff;
  margin: 0;
}
body.glasgow .g-howto__ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ═══════════════════════════════ INSIDE YOUR DASHBOARD PREVIEW ═══════════════════════════════ */
/* Sits right after .g-howto. Dark band so the user feels they cross a threshold from
   "what they will do" into "what they will get." Mirrors howto rhythm. */
body.glasgow .g-dash-preview {
  background: hsl(var(--foreground));
  color: hsl(var(--bg-cream));
  padding: clamp(80px, 12vh, 140px) 0;
  position: relative;
  overflow: hidden;
}
body.glasgow .g-dash-preview::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(hsl(var(--primary) / 0.06) 1px, transparent 1px),
    linear-gradient(90deg, hsl(var(--primary) / 0.06) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 0;
}
body.glasgow .g-dash-preview > .container { position: relative; z-index: 1; }
body.glasgow .g-dash-preview__header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(48px, 6vh, 72px);
}
body.glasgow .g-dash-preview__header .eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: hsl(var(--primary));
}
body.glasgow .g-dash-preview__title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  line-height: 0.95;
  margin: 0 0 16px;
  color: hsl(var(--bg-cream));
}
body.glasgow .g-dash-preview__lede {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  color: hsl(var(--bg-cream) / 0.9);
  margin: 0;
}
body.glasgow .g-dash-preview__grid {
  list-style: none;
  padding: 0;
  margin: 0 0 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 980px) {
  body.glasgow .g-dash-preview__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  body.glasgow .g-dash-preview__grid { grid-template-columns: 1fr; }
}
body.glasgow .g-dash-preview__card {
  background: hsl(var(--bg-cream));
  color: hsl(var(--foreground));
  border-radius: 16px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 300ms ease;
}
body.glasgow .g-dash-preview__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px hsl(var(--primary) / 0.18);
}
body.glasgow .g-dash-preview__icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
body.glasgow .g-dash-preview__icon i { font-size: 28px; }
body.glasgow .g-dash-preview__card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(20px, 2vw, 24px);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0 0 10px;
  line-height: 1.1;
  color: hsl(var(--foreground));
}
body.glasgow .g-dash-preview__card p {
  font-size: 14px;
  line-height: 1.6;
  /* Full --foreground for unfailing legibility on cream cards. */
  color: hsl(var(--foreground));
  margin: 0;
}
body.glasgow .g-dash-preview__ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
/* On the dark band the ghost-dark variant needs to flip to a cream outline. */
body.glasgow .g-dash-preview .g-btn--ghost-dark {
  border-color: hsl(var(--bg-cream) / 0.4);
  color: hsl(var(--bg-cream));
}
body.glasgow .g-dash-preview .g-btn--ghost-dark:hover {
  border-color: hsl(var(--bg-cream));
  background: hsl(var(--bg-cream));
  color: hsl(var(--foreground));
}

/* ═══════════════════════════════ SECTION INTRO (React public pages) ═══════════════════════════════ */
/* Mirrors the home page's g-howto__header / g-dash-preview__header rhythm so every
   React-rendered page (appointment, contact, payment, terms, become-instructor) opens
   with the same eyebrow → display title → lede beat. */
body.glasgow .g-section-intro {
  max-width: 760px;
  margin: 0 auto clamp(40px, 5vh, 64px);
}
body.glasgow .g-section-intro--center { text-align: center; }
body.glasgow .g-section-intro--start  { text-align: left; margin-left: 0; }
body.glasgow .g-section-intro .eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: hsl(var(--primary));
}
body.glasgow .g-section-intro__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  line-height: 0.95;
  margin: 0 0 16px;
  color: hsl(var(--foreground));
}
body.glasgow .g-section-intro__lede {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  color: hsl(var(--foreground) / 0.85);
  margin: 0;
}

/* ═══════════════════════════════ GHOST-DARK BUTTON (cream-bg sections) ═══════════════════════════════ */
body.glasgow .g-btn--ghost-dark {
  background: transparent;
  color: hsl(var(--foreground));
  border: 1.5px solid hsl(var(--foreground) / 0.3);
}
body.glasgow .g-btn--ghost-dark:hover {
  border-color: hsl(var(--foreground));
  background: hsl(var(--foreground));
  color: hsl(var(--bg-cream));
}

/* ═══════════════════════════════ UNIVERSAL PAGE HEADER ═══════════════════════════════ */
/* Restyles the existing Bootstrap .page-header band on inner pages (about, courses, team, etc.) */
body.glasgow .page-header {
  background: hsl(var(--foreground)) !important;
  background-image: none !important;
  color: hsl(var(--bg-cream)) !important;
  padding: clamp(96px, 16vh, 180px) 0 !important;
  margin: 0 !important;
  position: relative;
  overflow: hidden;
}
body.glasgow .page-header::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(hsl(var(--primary) / 0.06) 1px, transparent 1px),
    linear-gradient(90deg, hsl(var(--primary) / 0.06) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 0;
}
body.glasgow .page-header::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: hsl(var(--primary));
  z-index: 1;
}
body.glasgow .page-header > .container {
  position: relative;
  z-index: 2;
}
body.glasgow .page-header h1 {
  font-size: clamp(48px, 8vw, 112px) !important;
  font-weight: 800 !important;
  letter-spacing: -0.04em !important;
  text-transform: uppercase;
  line-height: 0.95 !important;
  color: hsl(var(--bg-cream)) !important;
  margin: 0 0 24px !important;
}
body.glasgow .page-header .breadcrumb {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin: 0;
}
body.glasgow .page-header .breadcrumb-item {
  color: hsl(var(--bg-cream) / 0.85);
}
body.glasgow .page-header .breadcrumb-item a {
  color: hsl(var(--bg-cream) / 0.9) !important;
  text-decoration: none;
  transition: color 200ms ease;
}
body.glasgow .page-header .breadcrumb-item a:hover {
  color: hsl(var(--primary)) !important;
}
body.glasgow .page-header .breadcrumb-item.active {
  color: hsl(var(--primary)) !important;
}
body.glasgow .page-header .breadcrumb-item + .breadcrumb-item::before {
  color: hsl(var(--bg-cream) / 0.25) !important;
  content: "/" !important;
  padding: 0 12px !important;
}

/* ═══════════════════════════════ UNIVERSAL COPYRIGHT BAND ═══════════════════════════════ */
body.glasgow .copyright {
  background: hsl(var(--foreground)) !important;
  color: hsl(var(--bg-cream) / 0.8) !important;
  padding: 24px 0 !important;
  border-top: 1px solid hsl(var(--bg-cream) / 0.08);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}
body.glasgow .copyright a {
  color: hsl(var(--bg-cream) / 0.9) !important;
  text-decoration: none;
  transition: color 200ms ease;
}
body.glasgow .copyright a:hover {
  color: hsl(var(--primary)) !important;
}

/* ═══════════════════════════════ INNER-PAGE TYPE TAMING ═══════════════════════════════ */
/* Soften default Bootstrap utility cascade on inner pages where bespoke
   Glasgow markup hasn't been added yet. Once each page's content section
   gets its own g-* class, those rules override these defaults. */
body.glasgow h6.text-primary.text-uppercase {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  font-weight: 500;
  text-transform: uppercase;
  color: hsl(var(--primary)) !important;
}
body.glasgow .text-primary {
  color: hsl(var(--primary)) !important;
}
/* Generic .btn-primary outside the navbar gets a Glasgow gold pill treatment.
   Nav .btn-primary is handled separately. */
body.glasgow main .btn-primary,
body.glasgow section:not(.g-hero):not(.g-finalcta):not(.g-courses):not(.g-resources) .btn-primary,
body.glasgow .container-xxl .btn-primary,
body.glasgow .container .btn-primary {
  background: hsl(var(--foreground)) !important;
  color: hsl(var(--bg-cream)) !important;
  border: 2px solid hsl(var(--foreground)) !important;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 999px !important;
  transition: all 200ms ease !important;
}
body.glasgow main .btn-primary:hover,
body.glasgow .container-xxl .btn-primary:hover,
body.glasgow .container .btn-primary:hover {
  background: hsl(var(--primary)) !important;
  color: hsl(var(--foreground)) !important;
  border-color: hsl(var(--primary)) !important;
}

/* ═══════════════════════════════ INNER-PAGE: SECTION HEADERS ═══════════════════════════════ */
/* The "h6 eyebrow + h1 display-6" pattern repeats across every inner page. */
body.glasgow .container-xxl > .container > .text-center.mx-auto h1.display-6,
body.glasgow .container-xxl > .container > .text-center.mx-auto h1.display-4 {
  font-family: var(--font-display) !important;
  font-weight: 800 !important;
  letter-spacing: -0.04em !important;
  text-transform: uppercase;
  line-height: 0.95 !important;
  color: hsl(var(--foreground)) !important;
  font-size: clamp(36px, 5vw, 64px) !important;
  margin: 0 0 16px !important;
}

/* ═══════════════════════════════ INNER-PAGE: SECTION CONTAINERS ═══════════════════════════════ */
/* The repeated `.container-xxl py-6` pattern needs cream background since body is cream. */
body.glasgow .container-xxl {
  background: transparent;
}

/* ═══════════════════════════════ FAQ ACCORDION ═══════════════════════════════ */
body.glasgow .accordion {
  --bs-accordion-border-width: 0;
  --bs-accordion-border-radius: 12px;
  --bs-accordion-inner-border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 880px;
  margin: 0 auto;
}
body.glasgow .accordion-item {
  background: hsl(var(--bg-cream)) !important;
  border: 1.5px solid hsl(var(--foreground) / 0.08) !important;
  border-radius: 12px !important;
  overflow: hidden;
  transition: border-color 250ms ease, box-shadow 250ms ease;
}
body.glasgow .accordion-item:has(.accordion-button:not(.collapsed)) {
  border-color: hsl(var(--primary) / 0.5) !important;
  box-shadow: 0 8px 24px hsl(var(--foreground) / 0.06);
}
body.glasgow .accordion-button {
  background: hsl(var(--bg-cream)) !important;
  color: hsl(var(--foreground)) !important;
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  font-size: 17px !important;
  padding: 24px 28px !important;
  letter-spacing: -0.01em;
  box-shadow: none !important;
  text-transform: none !important;
}
body.glasgow .accordion-button:not(.collapsed) {
  color: hsl(var(--foreground)) !important;
  background: hsl(var(--primary) / 0.08) !important;
}
body.glasgow .accordion-button::after {
  background-image: none !important;
  content: '+' !important;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  color: hsl(var(--primary)) !important;
  width: auto !important;
  height: auto !important;
  line-height: 1;
  transition: transform 250ms ease !important;
}
body.glasgow .accordion-button:not(.collapsed)::after {
  transform: rotate(45deg) !important;
}
body.glasgow .accordion-body {
  padding: 0 28px 24px !important;
  font-family: var(--font-body) !important;
  font-size: 15px;
  line-height: 1.6;
  color: hsl(var(--foreground) / 0.78);
}
body.glasgow .accordion-body a {
  color: hsl(var(--primary));
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* ═══════════════════════════════ TEAM GRID ═══════════════════════════════ */
body.glasgow .team-items {
  --bs-gutter-x: 16px;
  --bs-gutter-y: 16px;
}
body.glasgow .team-item {
  background: hsl(var(--bg-cream));
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid hsl(var(--foreground) / 0.08);
  transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
  height: 100%;
}
body.glasgow .team-item:hover {
  transform: translateY(-6px);
  border-color: hsl(var(--primary));
  box-shadow: 0 24px 48px hsl(var(--foreground) / 0.12);
}
body.glasgow .team-item .position-relative > img,
body.glasgow .team-item img.img-fluid {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  filter: grayscale(0.7) contrast(1.05);
  transition: filter 350ms ease;
}
body.glasgow .team-item:hover img.img-fluid {
  filter: grayscale(0.2) contrast(1.05);
}
body.glasgow .team-avatar {
  width: 100%;
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(56px, 8vw, 96px);
  letter-spacing: 0.03em;
  color: hsl(var(--foreground));
  background:
    radial-gradient(circle at 30% 20%, hsl(var(--primary) / 0.35), transparent 55%),
    linear-gradient(135deg, hsl(var(--primary) / 0.95) 0%, hsl(var(--primary)) 60%, hsl(var(--accent-ember) / 0.85) 100%);
  position: relative;
  transition: filter 350ms ease, transform 350ms ease;
}
body.glasgow .team-avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent 0,
    transparent 14px,
    hsl(var(--foreground) / 0.04) 14px,
    hsl(var(--foreground) / 0.04) 15px
  );
  pointer-events: none;
}
body.glasgow .team-item:hover .team-avatar {
  transform: scale(1.02);
}
body.glasgow .team-social {
  position: absolute;
  inset: auto 0 16px 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 250ms ease, transform 250ms ease;
}
body.glasgow .team-item:hover .team-social {
  opacity: 1;
  transform: translateY(0);
}
body.glasgow .team-social .btn {
  background: hsl(var(--bg-cream)) !important;
  border: 1px solid hsl(var(--bg-cream)) !important;
  color: hsl(var(--foreground)) !important;
  width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-size: 13px !important;
  margin: 0 !important;
}
body.glasgow .team-social .btn:hover {
  background: hsl(var(--primary)) !important;
  border-color: hsl(var(--primary)) !important;
  color: hsl(var(--foreground)) !important;
}
body.glasgow .team-item .bg-light {
  background: hsl(var(--bg-cream)) !important;
  border-top: 1.5px solid hsl(var(--foreground) / 0.06);
  padding: 20px !important;
}
body.glasgow .team-item h5 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: hsl(var(--foreground));
  margin: 0 0 4px !important;
}
body.glasgow .team-item span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: hsl(var(--primary));
}

/* ═══════════════════════════════ COURSES PAGE — driving-courses-item ═══════════════════════════════ */
body.glasgow .driving-courses-item {
  background: hsl(var(--bg-cream)) !important;
  border-radius: 16px !important;
  border: 1.5px solid hsl(var(--foreground) / 0.08);
  transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}
body.glasgow .driving-courses-item:hover {
  transform: translateY(-6px);
  border-color: hsl(var(--primary));
  box-shadow: 0 24px 48px hsl(var(--foreground) / 0.12);
}
body.glasgow .driving-courses-item h5 {
  font-family: var(--font-display) !important;
  font-weight: 800 !important;
  font-size: 22px !important;
  letter-spacing: -0.02em !important;
  text-transform: uppercase;
  color: hsl(var(--foreground)) !important;
  margin: 16px 0 12px !important;
}
body.glasgow .driving-courses-item p {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: hsl(var(--foreground) / 0.72);
}
body.glasgow .driving-courses-item .bg-primary {
  background: hsl(var(--primary)) !important;
  color: hsl(var(--foreground)) !important;
  font-family: var(--font-mono);
  font-size: 13px !important;
  letter-spacing: 0.05em;
  border-radius: 999px !important;
  padding: 6px 16px !important;
  margin-top: 24px !important;
}
body.glasgow .driving-courses-item .bg-primary del {
  color: hsl(var(--foreground) / 0.5);
}
body.glasgow .driving-courses-item .breadcrumb-item {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: hsl(var(--foreground) / 0.6);
}
body.glasgow .driving-courses-item .breadcrumb-item .text-primary {
  color: hsl(var(--primary)) !important;
}
body.glasgow .driving-courses-item img {
  filter: grayscale(0.7) contrast(1.05);
  transition: filter 350ms ease;
}
body.glasgow .driving-courses-item:hover img {
  filter: grayscale(0.1) contrast(1.05);
}
body.glasgow .driving-courses-overlay {
  position: absolute;
  inset: 0;
  background: hsl(var(--foreground) / 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 250ms ease;
}
body.glasgow .driving-courses-item:hover .driving-courses-overlay { opacity: 1; }
body.glasgow .driving-courses-overlay .btn {
  background: hsl(var(--primary)) !important;
  color: hsl(var(--foreground)) !important;
  border: none !important;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 999px !important;
  padding: 14px 28px !important;
}

/* ═══════════════════════════════ VIDEO ITEMS (driving-test-routes, testimonial) ═══════════════════════════════ */
body.glasgow .video-item {
  background: hsl(var(--bg-cream));
  border-radius: 12px;
  overflow: hidden;
  padding: 20px;
  border: 1.5px solid hsl(var(--foreground) / 0.08);
}
body.glasgow .video-item h5 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: hsl(var(--foreground));
  margin: 0 0 14px !important;
}
body.glasgow .video-item .ratio { border-radius: 8px; overflow: hidden; }

/* ═══════════════════════════════ TESTIMONIAL — Google Reviews + Carousel ═══════════════════════════════ */
body.glasgow .google-reviews iframe {
  border-radius: 12px;
  border: 1.5px solid hsl(var(--foreground) / 0.08) !important;
  background: hsl(var(--bg-cream));
}
body.glasgow .video-carousel-wrapper {
  background: hsl(var(--bg-cream));
  border-radius: 12px;
  padding: 24px;
  border: 1.5px solid hsl(var(--foreground) / 0.08);
}
body.glasgow .custom-prev,
body.glasgow .custom-next {
  background: hsl(var(--foreground)) !important;
  color: hsl(var(--bg-cream)) !important;
  border: none !important;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 200ms ease, transform 200ms ease;
}
body.glasgow .custom-prev:hover,
body.glasgow .custom-next:hover {
  background: hsl(var(--primary)) !important;
  color: hsl(var(--foreground)) !important;
  transform: scale(1.05);
}

/* ═══════════════════════════════ DRIVING TEST ROUTES — content typography ═══════════════════════════════ */
body.glasgow .container-xxl ul.text-start {
  background: hsl(var(--bg-cream));
  border-radius: 12px;
  padding: 28px 32px 28px 56px;
  border-left: 4px solid hsl(var(--primary));
  margin: 24px auto;
  max-width: 720px;
  text-align: left !important;
}
body.glasgow .container-xxl ul.text-start li {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: hsl(var(--foreground) / 0.85);
  margin-bottom: 8px;
}
body.glasgow .container-xxl ul.text-start li::marker {
  color: hsl(var(--primary));
  font-weight: 700;
}

/* ═══════════════════════════════ TERMS — content typography ═══════════════════════════════ */
body.glasgow .container-xxl h2,
body.glasgow .container-xxl h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 32px;
  color: hsl(var(--foreground));
}
body.glasgow .container-xxl h2 { font-size: clamp(24px, 3vw, 32px); }
body.glasgow .container-xxl h3 { font-size: clamp(18px, 2.2vw, 22px); }
body.glasgow .container-xxl p,
body.glasgow .container-xxl li {
  font-family: var(--font-body);
  line-height: 1.65;
  color: hsl(var(--foreground) / 0.85);
}

/* ═══════════════════════════════ HELPFUL LINKS BUTTON ROWS (testimonial, etc.) ═══════════════════════════════ */
body.glasgow .container.my-5 > .row.text-center {
  --bs-gutter-x: 12px;
  --bs-gutter-y: 12px;
}
body.glasgow .container.my-5 > .row.text-center .btn-primary {
  background: hsl(var(--foreground)) !important;
  color: hsl(var(--bg-cream)) !important;
  border: 2px solid hsl(var(--foreground)) !important;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 12px !important;
  padding: 16px 18px !important;
  width: 100%;
  display: inline-block;
  transition: all 200ms ease !important;
}
body.glasgow .container.my-5 > .row.text-center .btn-primary:hover {
  background: hsl(var(--primary)) !important;
  color: hsl(var(--foreground)) !important;
  border-color: hsl(var(--primary)) !important;
}

/* ═══════════════════════════════ 404 PAGE ═══════════════════════════════ */
body.glasgow .error-container {
  background: hsl(var(--bg-cream)) !important;
}
body.glasgow .error-code {
  font-family: var(--font-display) !important;
  font-weight: 800 !important;
  letter-spacing: -0.06em !important;
  color: hsl(var(--primary)) !important;
}
body.glasgow .error-title {
  font-family: var(--font-display) !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  text-transform: uppercase !important;
  color: hsl(var(--foreground)) !important;
}
body.glasgow .error-message {
  font-family: var(--font-body) !important;
  color: hsl(var(--foreground) / 0.75) !important;
}
body.glasgow .error-logo span {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: hsl(var(--foreground));
}
body.glasgow .error-links a.btn-primary {
  background: hsl(var(--foreground)) !important;
  color: hsl(var(--bg-cream)) !important;
  border: 2px solid hsl(var(--foreground)) !important;
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  border-radius: 999px !important;
}
body.glasgow .error-links a.btn-primary:hover {
  background: hsl(var(--primary)) !important;
  color: hsl(var(--foreground)) !important;
  border-color: hsl(var(--primary)) !important;
}
body.glasgow .error-links a.btn-outline {
  border: 2px solid hsl(var(--foreground) / 0.2) !important;
  color: hsl(var(--foreground)) !important;
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  border-radius: 999px !important;
}
body.glasgow .error-links a.btn-outline:hover {
  background: hsl(var(--foreground)) !important;
  color: hsl(var(--bg-cream)) !important;
}

/* ═══════════════════════════════ BUTTON POLISH ════════════════════════════
   Consistent hover lift, gold focus ring, active press, and 44px touch
   targets across the g-btn family and the legacy .btn-primary. Refinement
   only — colors and shapes stay as defined by the rules above. */
body.glasgow .g-btn:hover {
  transform: translateY(-2px);
}
body.glasgow .g-btn:active {
  transform: translateY(0);
  filter: brightness(0.96);
}
body.glasgow .btn-primary {
  transition: all 200ms ease;
}
body.glasgow .btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}
body.glasgow .btn-primary:active {
  transform: translateY(0);
  filter: brightness(0.96);
}
body.glasgow .g-btn:focus-visible,
body.glasgow .btn-primary:focus-visible {
  outline: 2px solid hsl(var(--primary));
  outline-offset: 2px;
  box-shadow: none !important;
}
@media (pointer: coarse) {
  body.glasgow .g-btn,
  body.glasgow .btn-primary {
    min-height: 44px;
  }
  body.glasgow .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* ═══════════════════════════════ PWA SAFE AREAS ═══════════════════════════
   viewport-fit=cover lets pages extend into device notches / rounded corners.
   Keep the sticky navbar's content inside the safe area — env() resolves to
   0px on flat screens, so this is a no-op everywhere except notched devices
   (landscape iPhones, punch-hole Androids). */
body.glasgow .navbar {
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* Installed-PWA refinement: in standalone display mode the page can render
   under the OS status bar, so push the sticky navbar's 16px top padding
   below it. No-op in a regular browser tab (env() resolves to 0px). */
@media (display-mode: standalone) {
  body.glasgow .navbar {
    padding-top: calc(16px + env(safe-area-inset-top));
  }
}
