/* ============================================================================
   Lightning Lane tier pages (/parks/{slug}/lightning-lane), the Disneyland Multi
   Pass guide, and the shared Single Pass receipt (card 866).
   Signature objects, each one encoding real data:
     the tier ladder   rungs sized by typical standby wait, Tier 1 in gold
     the ticket row    the opening three picks as ride tickets
     the receipt       a Single Pass ride's dated prices, one bar per day
     the 120 clock     two mornings on one time scale (Disneyland)
   Built on the Nightfall tokens with fallbacks, plus one scoped accent, --llx-volt.
   ========================================================================== */

.llx, .llr {
  --llx-volt:  oklch(78% 0.15 235);
  --llx-volt-soft: oklch(78% 0.15 235 / 0.18);
  --llx-gold:  var(--gold, oklch(84% 0.13 86));
  --llx-ink:   var(--ink, oklch(93% 0.03 84));
  --llx-soft:  var(--ink-soft, oklch(83% 0.03 84));
  --llx-muted: var(--muted, oklch(72% 0.032 84));
  --llx-panel: var(--paper-2, oklch(29% 0.05 277));
  --llx-rule:  var(--rule, oklch(58% 0.04 282));
  --llx-hair:  var(--hair, oklch(37% 0.05 278));
  --llx-dca:   oklch(76% 0.13 25);
}

.llx {
  max-width: 880px; margin: 0 auto;
  padding: var(--space-xl, 32px) var(--space-md, 16px) var(--space-3xl, 64px);
  color: var(--llx-ink);
  overflow-x: clip;
}
.llx :where(a) { color: var(--llx-gold); text-underline-offset: 3px; }
.llx :where(a):hover { color: var(--llx-ink); }

/* ── Hero, answer first ─────────────────────────────────────────────────── */
.llx-hero { margin-bottom: var(--space-2xl, 48px); }
.llx-kicker {
  font: 600 13px/1.3 var(--label, system-ui); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--llx-muted); margin: 0 0 var(--space-sm, 12px);
}
.llx-title {
  font-family: var(--display, system-ui); font-weight: 800;
  font-size: clamp(34px, 7vw, 60px); line-height: 1.02; letter-spacing: -0.02em;
  margin: 0 0 var(--space-md, 16px); text-wrap: balance;
}
.llx-answer {
  font-size: clamp(17px, 2.2vw, 20px); line-height: 1.55; color: var(--llx-soft);
  max-width: 64ch; margin: 0; text-wrap: pretty;
}
.llx-answer strong { color: var(--llx-ink); }

.llx-h2 {
  font-family: var(--display, system-ui); font-weight: 700;
  font-size: clamp(24px, 3.6vw, 32px); line-height: 1.12; letter-spacing: -0.01em;
  margin: 0 0 var(--space-xs, 8px); text-wrap: balance;
}
.llx-sub { color: var(--llx-soft); margin: 0 0 var(--space-lg, 24px); max-width: 64ch; }
.llx-micro { color: var(--llx-muted); font-size: 14px; margin: var(--space-md, 16px) 0 0; max-width: 64ch; }
.llx > section, .llx > nav { margin: 0 0 var(--space-3xl, 64px); }

/* ── The opening three, as ride tickets ─────────────────────────────────── */
.llx-tickets {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: var(--space-sm, 12px); grid-template-columns: repeat(3, minmax(0, 1fr));
}
.llx-ticket {
  position: relative; display: grid; gap: 6px; align-content: start;
  padding: 18px 18px 16px; border-radius: 14px;
  background: var(--llx-panel); border: 1px solid var(--llx-hair);
  /* the punched notches of a paper ticket */
  -webkit-mask: radial-gradient(circle 9px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 9px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 9px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 9px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
}
.llx-ticket--t1 { background: color-mix(in oklab, var(--llx-gold) 16%, var(--llx-panel)); border-color: color-mix(in oklab, var(--llx-gold) 55%, transparent); }
.llx-ticket-tier { font: 700 12px/1 var(--label, system-ui); letter-spacing: 0.08em; text-transform: uppercase; color: var(--llx-volt); }
.llx-ticket--t1 .llx-ticket-tier { color: var(--llx-gold); }
.llx-ticket-name { font-family: var(--display, system-ui); font-weight: 700; font-size: 19px; line-height: 1.2; }
.llx-ticket-name :where(a) { color: var(--llx-ink); text-decoration: none; }
.llx-ticket-name :where(a):hover { text-decoration: underline; }
.llx-ticket-wait { color: var(--llx-soft); font-size: 14px; border-top: 1px dashed var(--llx-rule); padding-top: 8px; margin-top: 4px; }
.llx-ticket-wait b { color: var(--llx-ink); font-size: 18px; font-variant-numeric: tabular-nums; }

/* ── The tier ladder (and the Disneyland ride board) ────────────────────── */
.llx-rungs-group + .llx-rungs-group { margin-top: var(--space-xl, 32px); }
.llx-tierlabel { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font: 600 15px/1.3 var(--text, system-ui); color: var(--llx-soft); margin: 0 0 var(--space-sm, 12px); }
.llx-chip {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  font: 800 12px/1 var(--label, system-ui); letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--llx-volt-soft); color: var(--llx-volt);
}
.llx-chip--t1 { background: color-mix(in oklab, var(--llx-gold) 20%, transparent); color: var(--llx-gold); }

.llx-rungs { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.llx-rung {
  display: grid; align-items: center; gap: 4px 14px;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) minmax(4.5rem, auto);
  padding: 9px 0; border-bottom: 1px solid var(--llx-hair);
}
.llx-rung-name { font-weight: 600; line-height: 1.25; min-width: 0; overflow-wrap: anywhere; }
.llx-rung-name :where(a) { color: var(--llx-ink); text-decoration: none; }
.llx-rung-name :where(a):hover { color: var(--llx-gold); text-decoration: underline; }
.llx-rung-park { display: block; font-weight: 500; font-size: 13px; color: var(--llx-muted); }
.llx-rung-track { height: 12px; border-radius: 6px; background: color-mix(in oklab, var(--llx-hair) 70%, transparent); overflow: hidden; }
.llx-rung-fill {
  display: block; height: 100%; width: var(--w, 0%); border-radius: inherit;
  background: linear-gradient(90deg, color-mix(in oklab, var(--llx-volt) 55%, transparent), var(--llx-volt));
  transform-origin: left center; animation: llx-grow 0.9s cubic-bezier(.2,.7,.2,1) both;
}
.llx-rung--t1 .llx-rung-fill { background: linear-gradient(90deg, color-mix(in oklab, var(--llx-gold) 55%, transparent), var(--llx-gold)); }
.llx-rung--dca .llx-rung-fill { background: linear-gradient(90deg, color-mix(in oklab, var(--llx-dca) 55%, transparent), var(--llx-dca)); }
.llx-rung-val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; font-size: 15px; }
.llx-rung.is-show .llx-rung-val, .llx-rung.is-nowait .llx-rung-val { color: var(--llx-muted); font-weight: 500; font-size: 14px; }
.llx-rung.is-show .llx-rung-track, .llx-rung.is-nowait .llx-rung-track { display: none; }
.llx-rung.is-show .llx-rung-name, .llx-rung.is-nowait .llx-rung-name { grid-column: 1 / -2; }
.llx-rung.is-show .llx-rung-val, .llx-rung.is-nowait .llx-rung-val { grid-column: -2 / -1; }
@keyframes llx-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.llx-legend { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--llx-soft); margin: 0 0 var(--space-sm, 12px); }
.llx-key { display: inline-block; width: 14px; height: 10px; border-radius: 3px; background: var(--llx-volt); }
.llx-key--dca { background: var(--llx-dca); margin-left: 10px; }

/* ── Multi Pass band ────────────────────────────────────────────────────── */
.llx-band { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; margin: var(--space-md, 16px) 0; }
.llx-band-lo, .llx-band-hi { font-family: var(--display, system-ui); font-weight: 800; font-size: clamp(26px, 5vw, 38px); font-variant-numeric: tabular-nums; }
.llx-band-hi { color: var(--llx-gold); }
.llx-band-track { position: relative; height: 14px; border-radius: 7px; background: color-mix(in oklab, var(--llx-hair) 70%, transparent); }
.llx-band-fill {
  position: absolute; top: 0; bottom: 0; left: var(--lo); right: calc(100% - var(--hi)); border-radius: inherit;
  background: linear-gradient(90deg, var(--llx-volt), var(--llx-gold));
}

/* ── Notes, steps, FAQ, more ────────────────────────────────────────────── */
.llx-notes ul { margin: var(--space-md, 16px) 0 0; padding-left: 1.2em; display: grid; gap: 10px; color: var(--llx-soft); max-width: 66ch; }
.llx-steps ol { margin: var(--space-md, 16px) 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: var(--space-md, 16px); }
.llx-steps li { counter-increment: s; position: relative; padding-left: 52px; }
.llx-steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; font: 800 16px/1 var(--display, system-ui);
  background: var(--llx-volt-soft); color: var(--llx-volt);
}
.llx-steps h3 { font-family: var(--display, system-ui); font-size: 19px; margin: 4px 0 4px; }
.llx-steps p { margin: 0; color: var(--llx-soft); max-width: 64ch; }

.llx-faq-item { border-bottom: 1px solid var(--llx-hair); padding: 14px 0; }
.llx-faq-item summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style-position: outside; }
.llx-faq-item p { margin: 10px 0 0; color: var(--llx-soft); max-width: 66ch; }

.llx-more ul { list-style: none; padding: 0; margin: var(--space-md, 16px) 0 0; display: grid; gap: 8px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.llx-more li :where(a) { display: inline-block; padding: 4px 0; }
.llx-foot { color: var(--llx-muted); font-size: 13px; border-top: 1px solid var(--llx-hair); padding-top: var(--space-md, 16px); }

/* ── Disneyland price stubs ─────────────────────────────────────────────── */
.visually-hidden-llx { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.llx-stubs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-sm, 12px); }
.llx-stub {
  display: grid; gap: 4px; padding: 20px 22px; border-radius: 16px;
  background: color-mix(in oklab, var(--llx-gold) 14%, var(--llx-panel));
  border: 1px solid color-mix(in oklab, var(--llx-gold) 50%, transparent);
  border-left: 6px dotted color-mix(in oklab, var(--llx-gold) 70%, transparent);
}
.llx-stub--day { background: color-mix(in oklab, var(--llx-volt) 12%, var(--llx-panel)); border-color: color-mix(in oklab, var(--llx-volt) 50%, transparent); border-left-color: color-mix(in oklab, var(--llx-volt) 70%, transparent); }
.llx-stub-kind { font: 700 12px/1 var(--label, system-ui); letter-spacing: 0.08em; text-transform: uppercase; color: var(--llx-soft); }
.llx-stub-price { font-family: var(--display, system-ui); font-weight: 800; font-size: clamp(44px, 9vw, 64px); line-height: 1; font-variant-numeric: tabular-nums; }
.llx-stub-price small { font-size: 0.34em; font-weight: 700; color: var(--llx-soft); vertical-align: middle; }
.llx-stub-was { color: var(--llx-muted); text-decoration: line-through; font-size: 15px; }
.llx-stub-foot { color: var(--llx-soft); font-size: 14px; }
.llx-stub-cap { grid-column: 1 / -1; color: var(--llx-muted); font-size: 14px; margin: 4px 0 0; }

/* ── The 120 minute clock ───────────────────────────────────────────────── */
.llx-lanes { --span: 240; position: relative; padding: 8px 0 0; }
.llx-hours { position: relative; height: 22px; margin: 0 8px 6px; }
.llx-hours span {
  position: absolute; left: calc(var(--at) / var(--span) * 100%); transform: translateX(-50%);
  font: 600 12px/1 var(--label, system-ui); color: var(--llx-muted); white-space: nowrap;
}
.llx-hours span:first-child { transform: none; }
.llx-hours span:last-child { transform: translateX(-100%); }
.llx-lane { padding: 14px 0 6px; border-top: 1px solid var(--llx-hair); }
.llx-lane-name { margin: 0 0 10px; font-weight: 700; }
.llx-lane-track { position: relative; height: 72px; margin: 0 8px; }
.llx-lane-track::before { content: ""; position: absolute; left: 0; right: 0; top: 20px; height: 2px; background: var(--llx-hair); }
.llx-span {
  position: absolute; top: 14px; height: 14px; border-radius: 7px;
  left: calc(var(--from) / var(--span) * 100%); width: calc((var(--to) - var(--from)) / var(--span) * 100%);
}
.llx-span--wait  { background: var(--llx-volt); }
.llx-span--clock { background: repeating-linear-gradient(90deg, var(--llx-gold) 0 10px, color-mix(in oklab, var(--llx-gold) 55%, transparent) 10px 14px); }
.llx-pin {
  position: absolute; top: 0; left: calc(var(--at) / var(--span) * 100%);
  padding-top: 36px; font-size: 13px; line-height: 1.25; color: var(--llx-soft); white-space: nowrap;
  transform: translateX(-50%);
}
.llx-pin::before {
  content: ""; position: absolute; left: 50%; top: 13px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%;
  background: var(--paper, oklch(24% 0.045 276)); border: 3px solid var(--llx-ink);
}
.llx-pin b { display: block; color: var(--llx-ink); font-variant-numeric: tabular-nums; }
.llx-pin--book, .llx-pin--tap { transform: none; }
.llx-pin--book::before, .llx-pin--tap::before { left: 0; margin-left: 0; }
.llx-pin--tap::before { border-color: var(--llx-volt); }
.llx-pin--clock::before { border-color: var(--llx-gold); background: var(--llx-gold); }
.llx-pin--ride { transform: translateX(-100%); text-align: right; }
.llx-pin--ride::before { border-color: var(--llx-volt); left: auto; right: -8px; margin-left: 0; }
.llx-lanes { overflow-x: clip; }

/* ── Comparison table ───────────────────────────────────────────────────── */
.llx-table-wrap { overflow-x: auto; margin: var(--space-md, 16px) 0; }
.llx-table { width: 100%; border-collapse: collapse; font-size: 15px; table-layout: fixed; overflow-wrap: anywhere; }
.llx-table th, .llx-table td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--llx-hair); vertical-align: top; }
.llx-table thead th { font: 700 12px/1.2 var(--label, system-ui); letter-spacing: 0.06em; text-transform: uppercase; color: var(--llx-muted); }
.llx-table tbody th { color: var(--llx-soft); font-weight: 600; width: 26%; }

/* ── The Single Pass receipt ────────────────────────────────────────────── */
.llx-receipts { display: grid; gap: var(--space-md, 16px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.llr {
  margin: 0; padding: 20px 20px 16px; border-radius: 6px 6px 0 0;
  background: oklch(95% 0.015 85); color: oklch(26% 0.03 270);
  box-shadow: 0 18px 40px -24px oklch(0% 0 0 / 0.7);
  /* the torn bottom edge of a till receipt */
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat,
                conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 16px 10px repeat-x;
          mask: linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat,
                conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 16px 10px repeat-x;
  padding-bottom: 26px;
  font-variant-numeric: tabular-nums;
}
.llr-head { display: grid; gap: 4px; padding-bottom: 12px; border-bottom: 1px dashed oklch(60% 0.02 270); }
.llr-kicker { font: 700 11px/1 var(--label, system-ui); letter-spacing: 0.1em; text-transform: uppercase; color: oklch(48% 0.03 270); }
.llr-name { font-family: var(--display, system-ui); font-weight: 800; font-size: 20px; line-height: 1.15; }
.llr-name :where(a) { color: inherit; text-decoration: none; }
.llr-name :where(a):hover { text-decoration: underline; }
.llr-latest { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 12px 0 8px; }
.llr-price { font-family: var(--display, system-ui); font-weight: 800; font-size: 46px; line-height: 1; }
.llr-when { font-size: 14px; color: oklch(42% 0.03 270); }
.llr-strip { list-style: none; margin: 6px 0 0; padding: 0; height: 56px; display: flex; align-items: flex-end; gap: 3px; }
.llr-strip li { position: relative; flex: 1 1 0; height: var(--h); min-width: 3px; border-radius: 2px 2px 0 0; background: oklch(40% 0.06 260); }
.llr-strip li:last-child { background: oklch(55% 0.17 250); }
.llr-tip {
  position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  padding: 3px 6px; border-radius: 4px; background: oklch(22% 0.03 270); color: oklch(96% 0.01 85);
  font-size: 12px; white-space: nowrap; pointer-events: none; opacity: 0;
  clip-path: inset(50%);
}
.llr-strip li:hover .llr-tip { opacity: 1; clip-path: none; z-index: 2; }
.llr-strip-cap { display: flex; justify-content: space-between; margin: 4px 0 0; font-size: 12px; color: oklch(45% 0.03 270); }
.llr-lines { margin: 12px 0 0; display: grid; gap: 4px; }
.llr-lines div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dotted oklch(70% 0.02 270); padding: 3px 0; }
.llr-lines dt { font-size: 14px; color: oklch(40% 0.03 270); }
.llr-lines dd { margin: 0; font-weight: 700; }
.llr-foot { margin: 10px 0 0; font-size: 12px; color: oklch(45% 0.03 270); text-align: center; letter-spacing: 0.02em; }
.llr-empty { margin: 12px 0 0; color: oklch(40% 0.03 270); }
/* On .guide pages, site.css `.guide p` and `.guide a` (0,1,1) repaint the receipt's paper text in
   cream and gold. These two class selectors outrank them so the receipt reads the same everywhere. */
.llr .llr-strip-cap { font-family: var(--text, system-ui); font-size: 12px; line-height: 1.4; color: oklch(45% 0.03 270); margin: 4px 0 0; }
.llr .llr-foot { font-family: var(--text, system-ui); font-size: 12px; line-height: 1.4; color: oklch(45% 0.03 270); margin: 10px 0 0; }
.llr .llr-empty { color: oklch(40% 0.03 270); font-size: 15px; }
.llr .llr-name a { color: inherit; border-bottom: 0; text-decoration: none; }
.llr .llr-name a:hover { text-decoration: underline; }

/* ── Small screens ──────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .llx-tickets { grid-template-columns: minmax(0, 1fr); }
  .llx-rung { grid-template-columns: minmax(0, 1fr) minmax(4.2rem, auto); }
  .llx-rung-track { grid-column: 1 / -1; grid-row: 2; height: 9px; }
  .llx-more ul { grid-template-columns: minmax(0, 1fr); }
  .llx-stubs { grid-template-columns: minmax(0, 1fr); }
  .llx-pin { font-size: 12px; }
  .llx-table tbody th { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .llx-rung-fill { animation: none; }
}
