/* vNext prototype (legacy, to be reduced page by page). Not a source of truth for core. */
/* ===== Components page ===== */
.phero .photo { aspect-ratio: 4 / 3; overflow: hidden; }
.phero .photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.act code, .tile-bar code { font: 12px var(--font-mono); text-transform: none; letter-spacing: 0; }
.cp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cpt-demo { min-height: 260px; display: grid; place-items: center; padding: 20px; overflow: hidden; }
.flip { width: 200px; height: 250px; outline-offset: 6px; }
.flip:focus-visible .vl-flip-card__inner, .flip:focus-within .vl-flip-card__inner { transform: rotateY(180deg); }
.flip-f, .flip-b { display: grid; align-content: space-between; padding: 16px; border: 1px solid var(--line); border-radius: 0; }
.flip-f { background: var(--surface); }
.flip-b { background: var(--fg); color: var(--bg); }
.flip b { font: 800 1.9rem/1 var(--font-display); letter-spacing: -.03em; }
.vl-cube { --vl-cube-size: 110px; }
.vl-cube__face { border-radius: 0; color: var(--fg); }
.gt { font: 800 clamp(2.4rem, 5vw, 3.6rem)/1 var(--font-display); letter-spacing: -.03em; }
@media (max-width: 980px) { .cp-grid { grid-template-columns: minmax(0, 1fr); } }
.vl-gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vl-gallery__item, .vl-gallery { border-radius: 0; }
.bit-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; align-items: center; margin-bottom: 28px; }
.bit-grid .vl-stat__value { background: none; -webkit-text-fill-color: currentColor; color: var(--fg); font: 800 clamp(2.6rem, 5vw, 4rem)/1 var(--font-display); }
.bits-r { display: flex; flex-wrap: wrap; gap: 8px; }
.vl-badge { border-radius: 0; }
.vl-quote { font: 600 clamp(1.4rem, 3vw, 2.4rem)/1.2 var(--font-display); font-style: normal; letter-spacing: -.02em; color: var(--fg); margin-bottom: 28px; }
.vl-quote::before { background: var(--accent); }
.mq { border-block: 1px solid var(--line); padding-block: 14px; }
.mq .vl-marquee__item { font: 500 13px var(--font-mono); color: var(--fg); }
@media (max-width: 820px) { .bit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Interaction language */
.fl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.fl { display: grid; place-items: center; min-height: 200px; padding: 24px; }
.fl-card { display: grid; gap: 6px; padding: 22px 26px; min-width: 12rem; background: var(--bg); border: 1.5px solid var(--accent); clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%); }
.fl-card b { font: 800 1.5rem var(--font-display); } .fl-card .mono { color: var(--muted); font-size: 11px; }
.fl-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (max-width: 800px) { .fl-grid { grid-template-columns: minmax(0, 1fr); } }

/* Side-by-side demo + code */
.cp-sbs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); gap: clamp(18px, 3vw, 36px); align-items: start; }
.cp-sbs > .code, .cp-sbs > pre { margin: 0; font-size: 12.5px; line-height: 1.65; overflow-x: visible; white-space: pre-wrap; overflow-wrap: anywhere; }
.cp-sbs .hx { min-width: 0; }
@media (max-width: 980px) { .cp-sbs { grid-template-columns: minmax(0, 1fr); } }
.cp-sbs--feel .fl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cp-sbs--feel .fl { padding: 14px; }
.cp-sbs--feel .fl-card { min-width: 0; width: 100%; padding: 16px; }
.cp-sbs--feel .cta { white-space: normal; }
@media (max-width: 700px) { .cp-sbs--feel .fl-grid { grid-template-columns: minmax(0, 1fr); } }

/* Orbit */
.ob { width: 150px; height: 150px; margin: auto; }
.ob .vl-orbit-dot { background: var(--accent); box-shadow: none; border-radius: 0; }
.ob .vl-orbit-ring { border-color: var(--line); }

/* Cards and actions */
.cpc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cpc { border-radius: 0; padding: 18px; min-width: 0; }
.cpc .vl-card__title { font: 800 1.4rem/1.1 var(--font-display); margin: 6px 0; }
.cpc .vl-card__body { color: var(--muted); font-size: 13px; margin: 0; }
.cpc-act { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; padding-top: 6px; }
.cpc-act .vl-cta { border-radius: 0; }
@media (max-width: 700px) { .cpc-grid { grid-template-columns: minmax(0, 1fr); } }

/* Accordion */
.acc-c { display: grid; gap: 8px; min-width: 0; }
.acc-c .vl-accordion { border-radius: 0; }
.acc-c .vl-accordion__thumb { border-radius: 0; }

/* Links to other pages */
.mo-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mo-l { display: grid; gap: 6px; padding: 18px 20px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: inherit; clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%); }
.mo-l b { font: 700 1.15rem/1.2 var(--font-display); }
.mo-l span { color: var(--muted); font-size: 11px; }
.mo-l:hover { border-color: var(--accent); }
.mo-l:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (max-width: 700px) { .mo-links { grid-template-columns: minmax(0, 1fr); } }
.bits-r { align-items: center; }
.cpc-act .vl-cta { background: var(--fg); color: var(--bg); box-shadow: none; }
.cpc-act .vl-cta--ghost { background: transparent; color: var(--fg); border: 1.5px solid var(--fg); }
.cpc-act .vl-cta::after { display: none; }

/* Hover set 2 */
.h2-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.h2-demo { display: grid; place-items: center; min-height: 280px; padding: 18px; overflow: hidden; }
.h2-fan { --vl-hover-fan-card-width: 5.2rem; --vl-hover-fan-card-height: 9rem; --vl-hover-fan-accent: var(--accent); --vl-hover-fan-surface: var(--surface); --vl-hover-fan-gap: .35rem; --vl-hover-fan-angle: 32deg; }
.h2-fan > * { overflow: hidden; border-radius: 0; color: var(--fg); border: 1px solid var(--line); }
.h2-cross { --vl-bg-main: var(--bg); --vl-color-primary: var(--accent); width: min(100%, 15rem); aspect-ratio: 1; border: 1px solid var(--line); border-radius: 0; color: var(--fg); }
.h2-cross [data-vl-panel] { border-radius: 0; color: var(--fg); font-family: var(--font-display); }
.h2-cross small { font: 11px var(--font-mono); color: var(--muted); }
.h2-duo { --vl-duotone-a: color-mix(in oklab, var(--accent) 85%, var(--bg)); --vl-duotone-b: var(--bg); width: min(100%, 15rem); aspect-ratio: 4 / 5; border-radius: 0; }
.h2-duo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(2.1) contrast(1.15); }
.h2-code { margin: 0; font-size: 12.5px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; overflow-x: visible; }
@media (max-width: 980px) { .h2-grid { grid-template-columns: minmax(0, 1fr); } }

/* Catalog tiles (generated: config/components.mjs) */
.vcs-stage { min-height: 220px; }
.vcs-demo { width: 100%; min-width: 0; display: grid; gap: 12px; justify-items: center; align-content: center; }
.vcs-demo > :is(.vl-card, .vl-gallery, .vl-media, .vl-marquee, .vl-carousel, .vl-accordion, .vl-field, .vl-command, .vl-choice, .vl-nav, .vl-stat) { width: 100%; max-width: 420px; }
.vcs-demo .vl-card { border-radius: 0; padding: 18px; }
.vcs-demo .vl-card__title { font: 800 1.4rem/1.1 var(--font-display); margin: 6px 0; }
.vcs-demo .vl-flip-card { width: 190px; height: 130px; }
.vcs-demo .vl-gallery { max-height: none; }
.vcs-demo .vl-carousel { max-width: 100%; }
.vcs-demo .vl-counter { min-height: 3rem; }
.vcs-demo .vl-cta { border-radius: 0; }
.vcs-stage::after { display: none !important; }
.vcs-demo .vl-flip-card { width: 190px; height: 130px; outline-offset: 6px; }
.vcs-demo .vl-flip-card:focus-visible .vl-flip-card__inner { transform: rotateY(180deg); }
.vcs-demo :is(.vl-flip-card__front, .vl-flip-card__back) { display: grid; place-content: center; border: 1px solid var(--line); border-radius: 0; font: 800 1.6rem/1 var(--font-display); }
.vcs-demo .vl-flip-card__front { background: var(--surface); }
.vcs-demo .vl-flip-card__back { background: var(--fg); color: var(--bg); }
.vcs-demo .vl-orbit-system { width: 140px; height: 140px; margin: auto; }
.vcs-demo .vl-orbit-dot { background: var(--accent); box-shadow: none; border-radius: 0; }
.vcs-demo .vl-orbit-ring { border-color: var(--line); }
.vcs-demo .vl-divider { width: 100%; max-width: 420px; margin-block: 8px; }
.vcs-demo .vl-carousel { max-width: 100%; }
.vcs-demo .vl-carousel__slide img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.vcs-demo .vl-gallery { width: 100%; max-width: 100%; }
.vcs-demo .vl-scroll-progress { position: static; width: 100%; max-width: 320px; height: 4px; animation-timeline: auto; transform: scaleX(.6); transform-origin: left; }
.vcs-demo .vl-carousel--banner { width: 100%; max-width: 100%; margin-inline: 0; padding-inline: 2.75rem; padding-block: 8px 4px; }
.vcs-demo .vl-carousel--banner .vl-carousel__viewport, .vcs-demo .vl-carousel--banner .vl-carousel__slide { min-height: 200px; }
.vcs-demo .vl-carousel--banner .vl-carousel__slide-overlay .vl-card__title { font-size: 1.5rem; }
.vcs-demo .vl-command__item { border: 0; background: transparent; width: 100%; text-align: start; font-family: inherit; }
.vcs-demo .vl-command__list { max-height: none; }
.vcs-demo > * { min-width: 0; }
.vcs-demo .vl-choice { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); border: 1px solid var(--line); background: var(--surface); text-align: start; }
.vcs-demo .vl-choice__options { display: grid; align-content: start; border-inline-end: 1px solid var(--line); }
.vcs-demo .vl-choice__option { padding: 12px 14px; border-bottom: 1px solid var(--line); cursor: pointer; font-weight: 600; }
.vcs-demo .vl-choice__option:has(input:checked) { background: var(--accent); color: var(--bg); }
.vcs-demo .vl-choice__panels { display: grid; padding: 14px; min-height: 84px; align-items: center; }
.vcs-demo .vl-segmented input { position: absolute; opacity: 0; pointer-events: none; }
.vcs-demo .vl-segmented { position: relative; }
.vcs-demo .vl-carousel--banner .vl-carousel__slide-overlay .vl-card__title { font-size: 1.15rem; }
.vcs-demo .vl-banner { min-height: 190px; }
.vcs-demo .vl-banner__title { font-size: 1.6rem; }
.vcs-demo .vl-marquee-v { width: 100%; }
.vcs-demo .vl-marquee-v > div { display: flex; flex-direction: column; gap: 6px; font: 800 1.2rem var(--font-display); text-align: center; }
.vcs-demo .vl-aurora, .vcs-demo .vl-glow, .vcs-demo .vl-surface-premium, .vcs-demo .vl-border-trace, .vcs-demo .vl-depth-card, .vcs-demo .vl-gradient-mesh, .vcs-demo .vl-frame-cinematic { width: 100%; }
.vcs-demo .vl-banner { width: 100%; max-width: 100%; margin-inline: 0; min-height: 200px; }
.vcs-demo .vl-banner__content { padding: 20px 18px; }
.vcs-demo .vl-banner :is(.vl-banner__title, .vl-banner__lead, .vl-kicker) { color: #EDEDDC; }
.vcs-demo .vl-banner__lead { font-size: .9rem; margin-bottom: 0; }
.vcs-demo [style*="position:relative"] { min-height: 130px; display: grid; align-content: center; }
/* Follow the active Skin accent (core gradient-brand and mesh are fixed hues). */
.vcs-demo { --vl-gradient-brand: linear-gradient(135deg, color-mix(in oklab, var(--accent) 70%, var(--fg)), var(--accent)); }
.vcs-demo .vl-stat__value { color: var(--accent); background: none; -webkit-text-fill-color: currentColor; }
.vcs-demo .vl-gradient-mesh { background-color: var(--bg); background-image:
  radial-gradient(at 20% 50%, color-mix(in oklab, var(--accent) 38%, transparent), transparent 55%),
  radial-gradient(at 80% 30%, color-mix(in oklab, var(--accent) 22%, var(--fg)), transparent 55%),
  radial-gradient(at 60% 90%, color-mix(in oklab, var(--accent) 30%, transparent), transparent 55%); }
.vcs-demo .vl-gallery--mosaic { min-height: 280px; }
