/* Dynamic luxury editorial pages — scoped to .lux-page, tokens inherited from :root --lv-*. */
.lux-page {
  --lux-bg: var(--lv-cream);
  --lux-sand: var(--lv-sand);
  --lux-ink: var(--lv-ink);
  --lux-muted: var(--lv-muted);
  --lux-line: var(--lv-line);
  --lux-accent: var(--lv-orange);
  --lux-accent-ink: var(--lv-orange-ink);
  --lux-display: var(--lv-display);
  --lux-body: var(--lv-body);
  overflow-x: clip;
  background: var(--lux-bg);
  color: var(--lux-ink);
}
.lux-page :focus-visible { outline: 2px solid var(--lux-accent); outline-offset: 3px; }
.lux-label { display: block; margin-bottom: 1rem; font: 800 .75rem/1 var(--lux-display); letter-spacing: .2em; color: var(--lux-accent-ink); }
.lux-rich { max-width: 44rem; }
.lux-rich + .lux-rich { margin-top: 1rem; }

/* Hero */
.lux-hero { padding: calc(var(--lv-header) + clamp(2.5rem, 6vw, 5rem)) 0 clamp(2.5rem, 5vw, 4rem); background: var(--lux-sand); border-bottom: 1px solid var(--lux-line); }
.lux-hero__grid { display: grid; gap: 2rem; }
.lux-crumbs { display: flex; align-items: center; gap: .875rem; margin-bottom: clamp(1.5rem, 4vw, 3rem); font: 800 .75rem/1 var(--lux-display); letter-spacing: .2em; text-transform: uppercase; }
.lux-crumbs a { color: var(--lux-muted); }
.lux-crumbs a:hover { color: var(--lux-accent-ink); }
.lux-crumbs i { width: 28px; height: 1px; background: var(--lux-ink); opacity: .35; }
.lux-crumbs [aria-current] { color: var(--lux-accent-ink); }
.lux-hero__title { font: 800 clamp(2.25rem, 6.5vw, 5.75rem)/.95 var(--lux-display); letter-spacing: -.04em; text-wrap: balance; }
.lux-hero__title em { display: block; font-style: italic; font-weight: 700; color: rgba(26, 26, 25, .55); }
.lux-hero__summary { max-width: 44rem; margin-top: 1.5rem; font: 500 clamp(1rem, 1.5vw, 1.2rem)/1.55 var(--lux-body); color: var(--lux-muted); }
.lux-hero__actions { display: flex; align-items: center; gap: 1.25rem; margin-top: 2rem; }
.lux-reading { font: 500 .875rem/1 var(--lux-body); color: var(--lux-muted); }
.lux-pill { display: inline-flex; align-items: center; gap: .6rem; padding: 1rem 1.75rem; border: 1px solid var(--lux-ink); border-radius: 999px; background: transparent; color: var(--lux-ink); font: 700 .9375rem/1 var(--lux-body); transition: background .5s var(--lv-ease, ease), color .5s var(--lv-ease, ease); }
.lux-pill:hover { background: var(--lux-ink); color: var(--lv-cream, #fdfbf7); }
.lux-pill--solid { background: var(--lux-ink); color: var(--lv-cream, #fdfbf7); border-color: var(--lux-ink); }
.lux-pill--solid:hover { background: var(--lux-accent-ink); border-color: var(--lux-accent-ink); }
.lux-hero__media { margin: 0; border-radius: 1.25rem; overflow: hidden; border: 1px solid var(--lux-line); }
.lux-hero__media img { display: block; width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; }
.lux-lead { max-width: 46rem; margin-top: clamp(2rem, 4vw, 3.5rem); padding-top: 2rem; border-top: 1px solid var(--lux-ink); font: 500 clamp(1rem, 1.5vw, 1.2rem)/1.6 var(--lux-body); }
.lux-lead p + p { margin-top: 1rem; }
@media (min-width: 1024px) {
  .lux-hero__grid { grid-template-columns: 7fr 5fr; align-items: end; }
}

/* TOC */
.lux-toc { position: sticky; top: var(--lv-header); z-index: 5; background: rgba(253, 251, 247, .92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--lux-line); }
.lux-toc ol { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; margin: 0; padding: .75rem 0; list-style: none; }
.lux-toc ol::-webkit-scrollbar { display: none; }
.lux-toc a { display: flex; align-items: baseline; gap: .6rem; padding: .55rem 1rem; border: 1px solid var(--lux-line); border-radius: 999px; font: 500 .8125rem/1.2 var(--lux-body); white-space: nowrap; color: var(--lux-muted); }
.lux-toc a span { font: 800 .6875rem/1 var(--lux-display); letter-spacing: .12em; color: var(--lux-accent-ink); }
.lux-toc a[aria-current] { background: var(--lux-ink); border-color: var(--lux-ink); color: var(--lv-cream, #fdfbf7); }

/* Sections */
.lux-sec { padding-block: clamp(2.5rem, 6vw, 5.5rem); scroll-margin-top: calc(var(--lv-header) + 3rem); border-top: 1px solid var(--lux-line); }
.lux-sec:first-of-type { border-top: 0; }
.lux-sec--tint { background: var(--lux-sand); }
.lux-sec__head { max-width: 56rem; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.lux-sec__head h2 { font: 800 clamp(1.6rem, 3vw, 2.5rem)/1.05 var(--lux-display); letter-spacing: -.03em; text-wrap: balance; }
.lux-prose { max-width: 44rem; }
.lux-prose p { font: 400 0.9375rem/1.8 var(--lux-body); color: var(--lux-muted); }
.lux-prose p + p, .lux-prose .lux-rich + p, .lux-prose p + .lux-rich { margin-top: 1.25rem; }
.lux-prose a, .lux-card__body a, .lux-qa__body a { color: var(--lux-accent-ink); text-decoration: underline; text-underline-offset: .2em; }
.lux-split { display: grid; gap: 1rem; margin-top: 1.5rem; }
.lux-split__title { font: 800 clamp(1.1rem, 1.9vw, 1.5rem)/1.2 var(--lux-display); letter-spacing: -.02em; }
.lux-split__body { color: var(--lux-muted); font: 400 0.9375rem/1.8 var(--lux-body); max-width: 44rem; }
.lux-split__body p + p { margin-top: 1.25rem; }
@media (min-width: 1024px) {
  .lux-split { grid-template-columns: 5fr 7fr; gap: 3rem; align-items: start; }
}

/* Cards */
.lux-cards { display: grid; gap: 1.25rem; margin-top: 2rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .lux-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .lux-cards--3 { grid-template-columns: repeat(3, 1fr); }
  .lux-cards--4 { grid-template-columns: repeat(4, 1fr); }
  .lux-cards--2 { grid-template-columns: repeat(2, 1fr); }
}
.lux-card { display: flex; flex-direction: column; gap: .75rem; padding: 1.75rem; border: 1px solid var(--lux-line); border-radius: 1rem; background: var(--lux-bg); transition: transform .5s var(--lv-ease, ease), border-color .5s var(--lv-ease, ease); }
.lux-sec--tint .lux-card { background: var(--lv-cream, #fdfbf7); }
.lux-card:hover { transform: translateY(-4px); border-color: var(--lux-ink); }
.lux-card__num { font: 800 .75rem/1 var(--lux-display); letter-spacing: .2em; color: var(--lux-accent-ink); }
.lux-card h3 { font: 800 clamp(1.1rem, 1.75vw, 1.4rem)/1.2 var(--lux-display); letter-spacing: -.02em; }
.lux-card__body { color: var(--lux-muted); font: 400 1rem/1.75 var(--lux-body); }
.lux-card__body p + p { margin-top: .875rem; }

/* Checklist + steps */
.lux-check, .lux-steps { margin: 2rem 0 0; padding: 0; list-style: none; display: grid; gap: .875rem; }
@media (min-width: 768px) { .lux-check { grid-template-columns: repeat(2, 1fr); } }
.lux-check li { display: flex; gap: .875rem; align-items: flex-start; padding: 1.125rem 1.25rem; border: 1px solid var(--lux-line); border-radius: .875rem; background: var(--lux-bg); font: 400 1rem/1.65 var(--lux-body); color: var(--lux-ink); }
.lux-sec--tint .lux-check li { background: var(--lv-cream, #fdfbf7); }
.lux-check svg { flex: none; margin-top: .2rem; color: var(--lux-accent-ink); }
.lux-steps { counter-reset: lux-step; max-width: 46rem; }
.lux-steps li { display: flex; gap: 1.25rem; align-items: flex-start; padding: 1.25rem 0; border-top: 1px solid var(--lux-line); }
.lux-steps li:last-child { border-bottom: 1px solid var(--lux-line); }
.lux-steps li > span { flex: none; font: 800 clamp(1.3rem, 2.6vw, 1.9rem)/1 var(--lux-display); color: transparent; -webkit-text-stroke: 1.5px var(--lux-accent); }
.lux-steps li > div { color: var(--lux-muted); font: 400 0.9375rem/1.75 var(--lux-body); }

/* Stats */
.lux-stats { display: grid; gap: 1px; margin-top: 2.5rem; border: 1px solid var(--lux-line); border-radius: 1rem; overflow: hidden; background: var(--lux-line); grid-template-columns: 1fr; }
@media (min-width: 768px) { .lux-stats { grid-template-columns: repeat(3, 1fr); } }
.lux-stats > div { background: var(--lux-ink); color: var(--lv-cream, #fdfbf7); padding: 2rem 1.75rem; }
.lux-stats dt { font: 800 clamp(1.5rem, 2.6vw, 2.1rem)/1 var(--lux-display); letter-spacing: -.02em; color: var(--lv-cream, #fdfbf7); }
.lux-stats dd { margin: .75rem 0 0; font: 400 .9375rem/1.6 var(--lux-body); color: rgba(253, 251, 247, .75); }

/* Quote + figure */
.lux-quote { margin: 2.5rem 0 0; padding: 0 0 0 1.5rem; border-left: 2px solid var(--lux-accent); }
.lux-quote p { font: 700 clamp(1.2rem, 2.3vw, 1.7rem)/1.35 var(--lux-display); letter-spacing: -.02em; color: var(--lux-ink); text-wrap: balance; }
.lux-figure { margin: 2.5rem 0 0; border-radius: 1.25rem; overflow: hidden; border: 1px solid var(--lux-line); }
.lux-figure img { display: block; width: 100%; height: auto; }

/* FAQ (native details, crawlable) */
.lux-faq { margin-top: 1rem; max-width: 56rem; }
.lux-qa { border-top: 1px solid var(--lux-line); }
.lux-qa:last-child { border-bottom: 1px solid var(--lux-line); }
.lux-qa summary { display: flex; align-items: center; gap: 1rem; padding: 1.375rem 0; list-style: none; cursor: pointer; }
.lux-qa summary::-webkit-details-marker { display: none; }
.lux-qa__num { flex: none; font: 800 .75rem/1 var(--lux-display); letter-spacing: .18em; color: var(--lux-accent-ink); }
.lux-qa h3 { flex: 1; font: 800 clamp(0.9375rem, 1.8vw, 1.375rem)/1.3 var(--lux-display); letter-spacing: -.015em; }
.lux-qa summary:hover h3 { color: var(--lux-accent-ink); }
.lux-qa__icon { position: relative; flex: none; width: 38px; height: 38px; border: 1px solid rgba(26, 26, 25, .25); border-radius: 50%; }
.lux-qa__icon::before, .lux-qa__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 13px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.lux-qa__icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .5s var(--lv-ease, ease); }
.lux-qa[open] .lux-qa__icon { background: var(--lux-ink); border-color: var(--lux-ink); color: var(--lv-cream, #fdfbf7); }
.lux-qa[open] .lux-qa__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.lux-qa__body { padding-bottom: 1.5rem; max-width: 44rem; color: var(--lux-muted); font: 400 0.9375rem/1.8 var(--lux-body); }
.lux-qa__body p + p { margin-top: 1rem; }

/* CTA + related + fallback */
.lux-cta { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.lux-cta__box { border: 1px solid var(--lux-line); border-radius: 1.5rem; background: var(--lux-ink); color: var(--lv-cream, #fdfbf7); padding: clamp(2rem, 5vw, 4rem); text-align: left; }
.lux-cta__title { font: 800 clamp(1.5rem, 3vw, 2.25rem)/1.1 var(--lux-display); letter-spacing: -.02em; text-wrap: balance; color: var(--lv-cream, #fdfbf7); }
.lux-cta__title strong { color: var(--lv-cream, #fdfbf7); }
.lux-cta__title em { display: block; font-style: italic; font-weight: 700; color: rgba(253, 251, 247, .6); }
.lux-cta__text { margin-top: 1rem; max-width: 40rem; color: rgba(253, 251, 247, .8); font: 400 0.9375rem/1.7 var(--lux-body); }
.lux-cta .lux-pill { margin-top: 1.75rem; background: var(--lv-cream, #fdfbf7); border-color: var(--lv-cream, #fdfbf7); color: var(--lux-ink); }
.lux-cta .lux-pill:hover { background: var(--lux-accent); border-color: var(--lux-accent); color: #fff; }
.lux-related { padding-bottom: clamp(2.5rem, 6vw, 5rem); }
.lux-related__title { font: 800 clamp(1.3rem, 2.4vw, 1.9rem)/1.1 var(--lux-display); letter-spacing: -.025em; margin-bottom: 1.5rem; }
.lux-related__grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .lux-related__grid { grid-template-columns: repeat(3, 1fr); } }
.lux-relcard { border: 1px solid var(--lux-line); border-radius: 1rem; padding: 1.5rem; background: var(--lux-bg); transition: transform .5s var(--lv-ease, ease), border-color .5s var(--lv-ease, ease); }
.lux-relcard:hover { transform: translateY(-4px); border-color: var(--lux-ink); }
.lux-relcard h3 { font: 800 1.1875rem/1.35 var(--lux-display); letter-spacing: -.015em; }
.lux-relcard h3 a { color: inherit; text-decoration: none; }
.lux-relcard h3 a:hover { color: var(--lux-accent-ink); }
.lux-relcard p { margin-top: .75rem; color: var(--lux-muted); font: 400 .9375rem/1.7 var(--lux-body); }
.lux-relcard__more { display: inline-block; margin-top: 1rem; font: 700 .875rem/1 var(--lux-body); color: var(--lux-accent-ink); }
.lux-fallback { padding: clamp(2rem, 5vw, 4rem) 0; font: 400 0.9375rem/1.8 var(--lux-body); color: var(--lux-muted); }
.lux-fallback > * + * { margin-top: 1.25rem; }

/* Data tables: ink header, zebra rows, inner scroll on small screens */
.lux-table-wrap { margin-top: 2rem; border: 1px solid var(--lux-line); border-radius: 1rem; overflow: hidden; background: var(--lux-bg); }
.lux-sec--tint .lux-table-wrap { background: var(--lv-cream, #fdfbf7); }
.lux-table-scroll { overflow-x: auto; }
.lux-table-wrap table { width: 100%; border-collapse: collapse; font: 400 .9375rem/1.65 var(--lux-body); min-width: 560px; }
.lux-table-wrap thead th { background: var(--lux-ink); color: var(--lv-cream, #fdfbf7); text-align: left; font: 800 .75rem/1.5 var(--lux-display); letter-spacing: .12em; text-transform: uppercase; padding: 1rem 1.25rem; white-space: nowrap; }
.lux-table-wrap tbody td { padding: 1rem 1.25rem; border-top: 1px solid var(--lux-line); color: var(--lux-muted); vertical-align: top; }
.lux-table-wrap tbody tr:nth-child(even) td { background: rgba(26, 26, 25, .035); }
.lux-table-wrap tbody td:first-child { color: var(--lux-ink); font-weight: 700; white-space: nowrap; }
.lux-table-wrap a { color: var(--lux-accent-ink); text-decoration: underline; text-underline-offset: .2em; }

/* Key-takeaway highlight */
.lux-prose p.lux-takeaway { margin-top: 1.5rem; padding: 1.25rem 1.5rem; border-left: 3px solid var(--lux-accent); background: var(--lux-sand); border-radius: 0 1rem 1rem 0; font-weight: 500; color: var(--lux-ink); }

/* Pool imagery: card thumbs, section bands, related thumbs */
.lux-card__thumb { margin: -1.75rem -1.75rem .25rem; border-radius: 1rem 1rem 0 0; overflow: hidden; }
.lux-card__thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; }
.lux-sec__fig { margin: 2.5rem 0 0; max-width: 56rem; border-radius: 1.25rem; overflow: hidden; border: 1px solid var(--lux-line); }
.lux-sec__fig img { display: block; width: 100%; height: auto; aspect-ratio: 21/9; object-fit: cover; }
.lux-relcard__thumb { display: block; margin: -1.5rem -1.5rem 1.25rem; border-radius: 1rem 1rem 0 0; overflow: hidden; }
.lux-relcard__thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
@media (max-width: 767px) { .lux-sec__fig img { aspect-ratio: 16/10; } }

/* Reveal (JS adds .is-in; content visible without JS) */
.lv-js .lux-page [data-lux-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--lv-ease, ease), transform .9s var(--lv-ease, ease); }
.lux-page [data-lux-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .lux-page [data-lux-reveal] { opacity: 1 !important; transform: none !important; transition: none; }
  .lux-card, .lux-relcard, .lux-pill { transition: none; }
}
