/* ===========================================================
   LIVING FOR LEGACY 2026 — /legacy and /legacy/[slug]
   Loaded only on the legacy pages (after tfh-ds.css).
   Page-specific blocks use the lg- prefix.

   1 — Page transitions (zoom into a campus photo, fade back)
   2 — Landing: load intro (cursive is drawn, then fades)
   3 — Landing: gold hero, campus tiles, verse
   4 — Campus stage: photos, top bar, cards, tab bar
   5 — Reduced motion
   =========================================================== */

:root {
  --lg-gold: #C9A242;
  --lg-gold-ink: #8A6D1F;        /* eyebrow text on white */
  --lg-serif: 'DM Serif Text', serif;   /* Legacy heading font (same as the old Legacy page); loaded from Google Fonts in each page's head */
  --lg-glass: rgba(255, 255, 255, 0.85);
  --lg-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --lg-ease-in: cubic-bezier(0.55, 0, 1, 0.45);
}


/* ===========================================================
   1 — PAGE TRANSITIONS
   Cross-document view transitions (Chrome, Edge, Safari 18.2+).
   Both legacy pages opt in, so moving between them animates;
   other browsers simply load the next page.
   - Landing → campus: each tile photo shares a view-transition-name
     with that campus page's background photo, so the photo grows
     from its tile to full screen (the "zoom in"), and the rest of
     the page crossfades.
   - Campus → landing: the photo name is cleared before leaving
     (see the pageswap script on the campus page), so the gold page
     just fades in and its text rises in (section 3).
   =========================================================== */

@view-transition { navigation: auto; }

/* Whole-page crossfade */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 650ms;
  animation-timing-function: ease;
}

/* The campus photo zoom */
::view-transition-group(lg-photo-vacaville),
::view-transition-group(lg-photo-napa),
::view-transition-group(lg-photo-eastbay),
::view-transition-group(lg-photo-roseville),
::view-transition-group(lg-photo-online) {
  animation-duration: 800ms;
  animation-timing-function: var(--lg-ease-out);
  z-index: 50;   /* stay above the navbar while growing */
}
/* Keep the photo filling its box while the box changes shape (square tile → wide screen) */
::view-transition-old(lg-photo-vacaville), ::view-transition-new(lg-photo-vacaville),
::view-transition-old(lg-photo-napa),      ::view-transition-new(lg-photo-napa),
::view-transition-old(lg-photo-eastbay),   ::view-transition-new(lg-photo-eastbay),
::view-transition-old(lg-photo-roseville), ::view-transition-new(lg-photo-roseville),
::view-transition-old(lg-photo-online),    ::view-transition-new(lg-photo-online) {
  height: 100%;
  object-fit: cover;
  overflow: hidden;
}


/* ===========================================================
   2 — LANDING: LOAD INTRO
   Hidden by default. A tiny inline script adds .lg-intro-play to
   <html> on the first visit of a browser session (and never when
   reduced motion is on), which shows the overlay and draws the
   cursive. The cursive is the Illustrator SVG: each letter group's
   outline is drawn like a pen stroke, then its fill fades in so the
   final lettering is crisp. The script sets each path's --len,
   --dur and --delay from its measured outline length.
   =========================================================== */

.lg-intro { display: none; }

.lg-intro-play .lg-intro {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 2000;   /* above the fixed navbar */
  align-items: center;
  justify-content: center;
  background: var(--lg-gold);
  animation: lg-fade-out 800ms ease 3400ms forwards;
}

.lg-intro__svg {
  width: min(1180px, 92vw);
  height: auto;
  overflow: visible;
}

.lg-intro__svg path {
  fill: #1d1d1d;
  fill-opacity: 0;
  stroke: #1d1d1d;
  stroke-width: 1px;
  vector-effect: non-scaling-stroke;   /* same pen width at any screen size */
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: var(--len);
  stroke-dashoffset: var(--len);
  animation:
    lg-draw var(--dur) linear var(--delay) forwards,
    lg-ink 500ms ease calc(var(--delay) + var(--dur)) forwards;
}

@keyframes lg-draw    { to { stroke-dashoffset: 0; } }
@keyframes lg-ink     { to { fill-opacity: 1; stroke-opacity: 0; } }
@keyframes lg-fade-out { to { opacity: 0; visibility: hidden; } }


/* ===========================================================
   3 — LANDING: GOLD HERO, CAMPUS TILES, VERSE
   =========================================================== */

.lg-landing {
  background: var(--lg-gold);
  color: #000;
}

.lg-hero {
  max-width: 1600px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-2xl) var(--space-2xl);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 720px;
  column-gap: var(--space-xl);
  row-gap: var(--space-xl);
  align-items: end;
}

.lg-hero__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.lg-hero__title {
  margin: 0;
  font-family: var(--lg-serif);
  font-weight: 400;
  font-size: clamp(7.2rem, 7.324vw + 4.454rem, 15rem);   /* 72 → 150 */
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: #000;
}

.lg-hero__tagline {
  margin: 0;
  font-family: var(--ds-font);
  font-weight: 500;
  font-size: clamp(2.2rem, 0.939vw + 1.848rem, 3.2rem);  /* 22 → 32 */
  line-height: 1.15;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.lg-hero__lead {
  margin: 0;
  max-width: 680px;
  font-size: clamp(2rem, 0.376vw + 1.859rem, 2.4rem);    /* 20 → 24 */
  line-height: 1.2;
  letter-spacing: -0.03em;
}

/* Campus tiles: 2 across (Vacaville + Online this year; see HIDDEN_TILES).
   A wide tile (.lg-tile--wide) spans 2 columns if more campuses come back. */
.lg-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-sm);
}

.lg-tile {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 16px;
  background: #000;
  text-decoration: none;
}
.lg-tile--wide {
  grid-column: span 2;
  aspect-ratio: auto;   /* height follows the square tile beside it */
}
.lg-tile:hover,
.lg-tile:focus { text-decoration: none; }
.lg-tile:focus-visible { outline: 3px solid #000; outline-offset: 3px; }

/* Black and white until hovered or focused, then the color fades in */
.lg-tile__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;   /* the photo is captured on its own during page transitions, so it needs its own rounded corners */
  filter: grayscale(1);
  transition: filter 400ms ease, transform 600ms var(--lg-ease-out);
}
.lg-tile:hover .lg-tile__img,
.lg-tile:focus-visible .lg-tile__img {
  filter: grayscale(0);
  transform: scale(1.04);
}

.lg-tile::after {   /* dark fade behind the name */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.7) 100%);
  pointer-events: none;
}

.lg-tile__name {
  position: absolute;
  left: var(--space-sm);
  right: var(--space-sm);
  bottom: var(--space-sm);
  z-index: 1;
  font-family: var(--ds-font);
  font-weight: 500;
  font-size: clamp(2.2rem, 0.563vw + 1.989rem, 2.8rem);  /* 22 → 28 */
  line-height: 1;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #fff;
}

/* Matthew 25:21 under the hero */
.lg-verse {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  text-align: center;
}
.lg-verse blockquote {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;   /* the site's base blockquote style adds a white box */
  max-width: 1100px;
  font-family: var(--lg-serif);
  font-size: clamp(2.8rem, 1.502vw + 2.237rem, 4.4rem);  /* 28 → 44 */
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #000;
}
.lg-verse figcaption {
  font-family: var(--ds-font);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Entrance: every [data-rise] element fades up, one after another.
   --i (set inline) staggers them; after the intro they wait for it to finish. */
.lg-landing [data-rise] {
  animation: lg-rise 900ms var(--lg-ease-out) both;
  animation-delay: calc(var(--i, 0) * 70ms + var(--lg-after-intro, 0ms));
}
.lg-intro-play { --lg-after-intro: 3700ms; }

@keyframes lg-rise {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: none; }
}

/* Laptops and tablets: text on top, tiles underneath */
@media (max-width: 1200px) {
  .lg-hero {
    grid-template-columns: minmax(0, 1fr);
    padding: var(--space-xl) var(--space-xl) var(--space-2xl);
    row-gap: var(--space-lg);
  }
  .lg-tiles { max-width: 900px; }
}

/* Phones: 2 tiles across, Online gets its own wide row */
@media (max-width: 760px) {
  .lg-hero { padding: var(--space-lg) var(--space-sm) var(--space-xl); }
  .lg-hero__tagline br { display: none; }   /* let the tagline wrap naturally */
  /* Phones: tiles stack full width */
  .lg-tiles { grid-template-columns: minmax(0, 1fr); gap: var(--space-sm); }
  .lg-tile { aspect-ratio: 3 / 2; }
  .lg-tile--wide { grid-column: 1 / -1; aspect-ratio: 2 / 1; }
}


/* ===========================================================
   4 — CAMPUS STAGE
   A full-screen black-and-white photo with one glass card at a
   time over it. Lane campuses get a tab bar to switch cards.
   Hidden cards use visibility: hidden (after they slide out), so
   keyboards and screen readers skip them.
   =========================================================== */

.lg-stage {
  position: relative;
  height: calc(100svh - var(--navbar-h, 50px));
  min-height: 720px;
  overflow: hidden;
  background: #000;
  color: #000;
}

/* Photos: all stacked; the active one is visible. Crossfade + slow settle. */
.lg-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 900ms ease, transform 1800ms var(--lg-ease-out);
}
.lg-bg.is-active { opacity: 1; transform: scale(1); }

.lg-stage__shade {   /* keeps the top bar and card readable */
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.1) 45%, rgba(0, 0, 0, 0) 70%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.5) 100%);
}

/* Top bar: back button + cursive logo */
.lg-topbar {
  position: absolute;
  top: var(--space-md);
  left: var(--space-xl);
  right: var(--space-xl);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.lg-back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  height: 48px;
  padding: 0 var(--space-sm);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  transition: background 150ms ease;
}
.lg-back:hover,
.lg-back:focus { color: #fff; text-decoration: none; background: rgba(255, 255, 255, 0.3); }
.lg-back__short { display: none; }

.lg-logo {
  width: 300px;
  height: auto;
  display: block;
  overflow: visible;
  fill: #fff;   /* white over dark photos */
  transition: fill 500ms ease;
}
.lg-logo__serif {
  font-family: var(--lg-serif);
  font-size: 118px;   /* in logo units (the logo is 1022 wide) */
}
/* Black logo over light photos. Each photo's color is measured at build time
   (separately for desktop and phone crops); the page script copies the active
   photo's choice onto the stage as these classes. */
@media (min-width: 761px) { .lg-stage.lg-logo-black-d .lg-logo { fill: #000; } }
@media (max-width: 760px) { .lg-stage.lg-logo-black-m .lg-logo { fill: #000; } }

/* Cards */
.lg-card {
  position: absolute;
  left: var(--space-xl);
  bottom: 170px;   /* sits above the tab bar */
  z-index: 2;
  width: 520px;
  max-height: calc(100% - 170px - 120px);
  overflow: hidden;   /* the inner .lg-card__scroll does the scrolling */
  box-sizing: border-box;
  border-radius: 32px;
  background-color: var(--lg-glass);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;

  /* Hidden state: off to the left. visibility switches off after the slide-out. */
  opacity: 0;
  visibility: hidden;
  transform: translateX(calc(-100% - 120px));
  transition:
    transform 380ms var(--lg-ease-in),
    opacity 280ms ease 60ms,
    visibility 0s linear 380ms;
}

/* Scrolling content inside the card. When there is more text below, the bottom
   fades out (mask) so it's clear the card scrolls. The page script adds
   .has-more while there is more to scroll; --lg-fade animates the fade in/out.
   The mask only touches the text — the card's glass background stays solid. */
@property --lg-fade {
  syntax: '<length>';
  inherits: false;
  initial-value: 0px;
}
.lg-card__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
  overscroll-behavior: contain;
  box-sizing: border-box;
  padding: var(--space-lg) var(--space-md) var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  --lg-fade: 0px;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - var(--lg-fade)), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - var(--lg-fade)), transparent);
  transition: --lg-fade 250ms ease;
}
.lg-card__scroll.has-more { --lg-fade: 96px; }
.lg-card__scroll::-webkit-scrollbar { width: 0; }
.lg-stage--campaign .lg-card { bottom: var(--space-xl); max-height: calc(100% - var(--space-xl) - 120px); width: 540px; }

/* Shown: waits for the old card to leave, then slides in */
.lg-stage.is-ready .lg-card.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    transform 600ms var(--lg-ease-out) 320ms,
    opacity 360ms ease 320ms,
    visibility 0s linear 0s;
}

.lg-card__eyebrow {
  margin: 0;
  font-family: var(--ds-font);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--lg-gold-ink);
}

.lg-card__title {
  margin: 0;
  font-family: var(--lg-serif);
  font-weight: 400;
  font-size: clamp(5.2rem, 1.878vw + 4.496rem, 7.2rem);  /* 52 → 72 */
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: #000;
}

.lg-card__lane-title {
  margin: 0;
  font-family: var(--ds-font);
  font-weight: 500;
  font-size: clamp(3.4rem, 1.315vw + 2.907rem, 4.8rem);  /* 34 → 48 */
  line-height: 1;
  letter-spacing: -0.04em;
  color: #000;
}

.lg-card__tagline {
  margin: 0;
  font-family: var(--ds-font);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.lg-card__text {
  margin: 0;
  font-size: clamp(1.7rem, 0.188vw + 1.63rem, 1.9rem);   /* 17 → 19 */
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: #3a3d40;
}

.lg-card__goal {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: var(--space-xs);
}
.lg-card__goal-amount {
  font-family: var(--lg-serif);
  font-size: clamp(4rem, 1.127vw + 3.578rem, 5.2rem);    /* 40 → 52 */
  line-height: 1;
}
.lg-card__goal-label,
.lg-stat__label,
.lg-callout__label {
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #6b6f73;
}

/* Two numbers between hairlines (campus goal, number of lanes) */
.lg-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}
.lg-stat { display: flex; flex-direction: column; gap: var(--space-2xs); }
.lg-stat__value {
  font-family: var(--lg-serif);
  font-size: clamp(3.4rem, 0.939vw + 3.048rem, 4.4rem);  /* 34 → 44 */
  line-height: 1;
}

/* Campaign callout: "Giving toward" + campaign name */
.lg-callout {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  padding: var(--space-sm) 0;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}
.lg-callout__name {
  font-family: var(--lg-serif);
  font-size: clamp(3.4rem, 0.939vw + 3.048rem, 4.4rem);  /* 34 → 44 */
  line-height: 1;
}
.lg-callout__host { font-size: 15px; color: #6b6f73; }

/* "Legacy Offering, December 6th" — small note under the disabled give button */
.lg-notice {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  color: #6b6f73;
}

/* Pastors */
.lg-pastors {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 18px;
  font-weight: 500;
}
.lg-pastors img {
  width: 52px;
  height: 52px;
  border-radius: 9999px;
  object-fit: cover;
}

.lg-hint {
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 16px;
  font-weight: 500;
  color: #6b6f73;
}

/* Buttons inside a card */
.lg-actions { display: flex; flex-direction: column; gap: var(--space-xs); margin-top: var(--space-2xs); }
.lg-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  min-height: 60px;
  padding: 0 var(--space-md);
  border-radius: 12px;
  font-size: clamp(2rem, 0.188vw + 1.93rem, 2.2rem);     /* 20 → 22 */
  font-weight: 500;
  letter-spacing: -0.03em;
  text-decoration: none;
  transition: background 120ms ease, color 120ms ease;
}
.lg-btn:hover,
.lg-btn:focus { text-decoration: none; }
.lg-btn--solid { background: #000; color: #fff; }
.lg-btn--solid:hover,
.lg-btn--solid:focus { background: #333; color: #fff; }
/* Give button before giving opens: greyed out, no hover, not clickable */
.lg-btn--disabled,
.lg-btn--disabled:hover {
  background: #000;
  color: #fff;
  opacity: 0.35;
  cursor: not-allowed;
}
.lg-btn--outline { border: 1.5px solid #000; color: #000; }
.lg-btn--outline:hover,
.lg-btn--outline:focus { background: rgba(0, 0, 0, 0.06); color: #000; }

/* Tab bar: glass pill slides under the active tab, glowing line above it */
.lg-tabs {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  height: 150px;
  box-sizing: border-box;
  padding: var(--space-lg) 0 var(--space-md);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.45) 100%);
}
.lg-tabs__inner {
  position: relative;
  width: min(880px, 100% - 2 * var(--space-sm));
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(var(--lg-tab-count, 4), minmax(0, 1fr));
}
.lg-tabs__pill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: calc(100% / var(--lg-tab-count, 4));
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transform: translateX(calc(var(--lg-tab-index, 0) * 100%));
  transition: transform 520ms cubic-bezier(0.34, 1.4, 0.5, 1);
}

.lg-tab {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 var(--space-xs);
  border: 0;
  border-radius: 30px;
  background: transparent;
  cursor: pointer;
  font-family: var(--ds-font);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-align: center;
  color: rgba(255, 255, 255, 0.78);
  transition: color 200ms ease;
}
.lg-tab:hover { color: #fff; }
.lg-tab:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.lg-tab[aria-selected='true'] { color: #fff; font-weight: 500; }

.lg-tab::before {   /* line above each tab: grey, gold + glow when active */
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  width: 120px;
  height: 5px;
  margin-left: -60px;
  border-radius: 8px;
  background: #b6b0a7;
  transition: background-color 400ms ease, box-shadow 400ms ease;
}
.lg-tab[aria-selected='true']::before {
  background: var(--lg-gold);
  box-shadow: 0 0 6px var(--lg-gold), 0 0 14px rgba(201, 162, 66, 0.6), 0 0 28px rgba(201, 162, 66, 0.33);
}
.lg-tab__short { display: none; }

/* Phones */
@media (max-width: 760px) {
  .lg-stage { min-height: 640px; }
  .lg-stage__shade {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.55) 100%);
  }
  .lg-topbar { top: var(--space-sm); left: var(--space-sm); right: var(--space-sm); }
  .lg-back { height: 44px; font-size: 16px; }
  .lg-back__full { display: none; }
  .lg-back__short { display: inline; }
  .lg-logo { width: 190px; }

  .lg-card,
  .lg-stage--campaign .lg-card {
    left: var(--space-xs);
    right: var(--space-xs);
    width: auto;
    bottom: 134px;
    max-height: calc(100% - 134px - 84px);
    border-radius: 28px;
    transform: translateX(calc(-100% - 24px));
  }
  .lg-card__scroll { padding: var(--space-md); }
  .lg-card__scroll.has-more { --lg-fade: 72px; }
  .lg-stage--campaign .lg-card { bottom: var(--space-md); max-height: calc(100% - var(--space-md) - 84px); }
  .lg-pastors { font-size: 16px; }
  .lg-pastors img { width: 44px; height: 44px; }
  .lg-card__tagline { font-size: 16px; }
  .lg-hint { font-size: 15px; }

  .lg-tabs { height: 119px; padding: var(--space-xs); }
  .lg-tabs__inner { width: 100%; }
  .lg-tab { font-size: 15px; padding: 0 var(--space-2xs); }
  /* line sits halfway between the top of the tab and the top of its label (label is centered, ~18px tall) */
  .lg-tab::before { top: calc(25% - 7px); width: 64px; margin-left: -32px; }
  .lg-tab__full { display: none; }
  .lg-tab__short { display: inline; }
}


/* ===========================================================
   5 — REDUCED MOTION
   No intro (the script never adds .lg-intro-play), no rise-in,
   no slides or zooms: cards and photos switch instantly.
   =========================================================== */

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .lg-landing [data-rise] { animation: none; }
  .lg-tile__img,
  .lg-bg,
  .lg-card,
  .lg-stage.is-ready .lg-card.is-active,
  .lg-tabs__pill { transition: none; }
  .lg-bg { transform: none; }
  .lg-card { transform: none; }
}
