/* Self-hosted OFL fonts; complete Vietnamese glyphs, provenance in fonts/manifest.json. */
@font-face {font-family:"Space Grotesk";font-style:normal;font-weight:300 700;font-display:swap;src:url("fonts/space-grotesk-variable.woff2") format("woff2")}
@font-face {font-family:"Be Vietnam Pro";font-style:normal;font-weight:400;font-display:swap;src:url("fonts/be-vietnam-pro-regular.woff2") format("woff2")}
@font-face {font-family:"Be Vietnam Pro";font-style:normal;font-weight:500;font-display:swap;src:url("fonts/be-vietnam-pro-medium.woff2") format("woff2")}
@font-face {font-family:"Be Vietnam Pro";font-style:normal;font-weight:600;font-display:swap;src:url("fonts/be-vietnam-pro-semibold.woff2") format("woff2")}
@font-face {font-family:"Be Vietnam Pro";font-style:normal;font-weight:700;font-display:swap;src:url("fonts/be-vietnam-pro-bold.woff2") format("woff2")}
@font-face {font-family:"Be Vietnam Pro";font-style:normal;font-weight:800;font-display:swap;src:url("fonts/be-vietnam-pro-extrabold.woff2") format("woff2")}
/* Tiệm tuyển chọn — one source of truth. See docs/DESIGN_SYSTEM.md. */
:root {
  /* Recovered21/10 gallery composition; geometry only, existing semantic palette/type. */
  --tst-gallery-band-surface:color-mix(in srgb,var(--tst-canvas),var(--tst-ink) 3%);
  --tst-gallery-hero-height:440px;
  --tst-gallery-hero-mobile-height:520px;
  --tst-gallery-copy-width:440px;
  --tst-product-row-media:64px;

  --tst-purchase-option-logo-size:32px;
  /* Runtime measured native purchase action; expands for text zoom and safe area. */
  --tst-purchase-action-height: 96px;
  /* Measured native Checkout controls; fallback reserves its CTA plus separator. */
  --tst-checkout-controls-height: calc(var(--tst-purchase-action-control-height) + var(--tst-space-3) + var(--tst-border-input));
  /* Cart concept3 media and compact visual field; hit targets remain44px. */
  --tst-cart-media-size: 112px;
  --tst-cart-media-compact: 80px;
  --tst-checkout-media-size: 80px;
  --tst-checkout-media-compact: 72px;
  --tst-type-purchase-heading: 1rem;
  --tst-type-purchase-line-price: 1rem;
  --tst-type-field-value: max(1rem,var(--tst-type-body));
  --tst-cart-quantity-width: calc(3 * var(--tst-touch-min));
  --tst-cart-quantity-frame-inset: calc((var(--tst-touch-min) - var(--tst-space-6)) / 2);
  --tst-purchase-action-total-min: 7.5rem;
  --tst-purchase-action-control-height: 52px;
  --tst-type-purchase-action: 1rem;
  --tst-type-purchase-action-value: 1.25rem;
  --tst-type-purchase-total: 1.375rem;
  --tst-type-purchase-total-label: 1rem;
  /* Supplied full-color TST identity; preserve its 1624.03 / 908.19 ratio. */
  --tst-logo-width: 144px;
  --tst-logo-footer-width: 208px;
  /* Closing brand signature: original tall full mark, never crop or flatten. */
  --tst-logo-footer-signoff-width: 960px;
  --tst-logo-footer-signoff-clearspace: clamp(24px, 4vw, 48px);
  --tst-footer-padding-block: var(--tst-space-7);
  --tst-footer-column-gap: var(--tst-space-7);
  --tst-footer-column-min: 10rem;
  /* Optical hierarchy across Space Grotesk headings and Be Vietnam Pro copy. */
  --tst-type-footer-heading: 1.125rem;
  --tst-footer-brand-gap: var(--tst-space-5);
  --tst-footer-legal-gap: var(--tst-space-6);
  /* Original 16:9 dark thumbnail; mobile removes background at the sides only. */
  --tst-footer-thumbnail-width: 1920px;
  --tst-footer-thumbnail-mobile-ratio: 1536 / 1080;
  --tst-footer-bottom-clearance: 0px;
  /* Compact header context; full-size identity specimens/footer retain their scale. */
  --tst-header-logo-width: 104px;
  --tst-header-logo-clearspace: var(--tst-space-2);
  --tst-logo-clearspace: calc(var(--tst-logo-width) / 6);
  --tst-tam-motif-preview-size: 120px;
  --tst-tam-favicon-preview-size: 48px;
  /* POP brand primitives. Semantic roles below apply across the storefront. */
  --tst-brand-lime: #d9ff3a;
  --tst-brand-purple: var(--tst-brand-pink);
  --tst-brand-purple-hover: var(--tst-brand-ink);
  --tst-brand-purple-soft: var(--tst-brand-white);
  --tst-brand-cyan: #5ce1e6;
  --tst-brand-pink: #fbc3e6;
  --tst-brand-yellow: #ffde59;
  --tst-brand-coral: #ff9999;
  --tst-brand-ink: #11121c;
  --tst-brand-white: #f7f7f2;
  --tst-ink-rgb: 17 18 28;
  --tst-overlay: rgb(var(--tst-ink-rgb) / 28%);
  --tst-brand-muted: #595b64;
  --tst-brand-hover: #2d2f3b;
  --tst-brand-soft: var(--tst-brand-white);
  --tst-surface-ivory: var(--tst-brand-white);
  --tst-surface-lime-soft: var(--tst-brand-lime);
  --tst-brand-line: #d8d8d3;
  --tst-brand-control-border: var(--tst-brand-ink);
  /* Brand headline is a distinct display role; reading/page roles remain unchanged. */
  --tst-type-brand-display: var(--tst-type-display);
  --tst-brand-hero-height: 420px;
  --tst-brand-hero-mobile-art: 240px;
  --tst-brand-hero-mobile-height: 280px;
  --tst-brand-mascot-width: clamp(160px, 22vw, 290px);
  --tst-brand-shortcut-height: 152px;
  --tst-brand-shortcut-art: 136px;
  --tst-canvas: var(--tst-brand-white);
  --tst-surface: #ffffff;
  --tst-surface-subtle: var(--tst-surface-ivory);
  --tst-surface-cyan: var(--tst-brand-cyan);
  --tst-surface-pink: var(--tst-brand-pink);
  --tst-surface-yellow: var(--tst-brand-yellow);
  --tst-surface-coral: var(--tst-brand-coral);
  --tst-footer-surface: var(--tst-inverse-surface);
  --tst-footer-ink: var(--tst-on-inverse);
  --tst-footer-muted: var(--tst-on-inverse-muted);
  --tst-footer-divider: rgb(255 255 255 / 20%);
  --tst-support-surface: var(--tst-inverse-surface);
  --tst-secondary-surface: var(--tst-surface);
  --tst-secondary-hover: var(--tst-surface-subtle);
  --tst-action-disabled-surface: var(--tst-surface-subtle);
  --tst-action-disabled-ink: var(--tst-muted);
  --tst-action-disabled-edge: var(--tst-line);
  --tst-action-hover-surface: var(--tst-brand-ink);
  --tst-action-hover-ink: var(--tst-brand-lime);
  --tst-action-hover-muted: var(--tst-on-inverse-muted);
  --tst-action-hover-edge: var(--tst-brand-lime);
  --tst-icon-lime-filter: brightness(0) saturate(100%) invert(92%) sepia(82%) saturate(908%) hue-rotate(17deg) brightness(108%) contrast(101%);
  --tst-on-accent: #ffffff;
  /* Selected state and inverse actions are independent of the neutral CTA. */
  --tst-selection-surface: var(--tst-brand-lime);
  --tst-on-selection: var(--tst-brand-ink);
  --tst-action-brand: var(--tst-brand-lime);
  --tst-action-brand-hover: var(--tst-action-brand);
  --tst-on-brand: var(--tst-brand-ink);
  --tst-inverse-surface: var(--tst-brand-ink);
  --tst-on-inverse: #ffffff;
  --tst-on-inverse-muted: #dadbe3;
  --tst-inverse-hover: var(--tst-brand-hover);
  --tst-decor-secondary: var(--tst-brand-pink);
  --tst-success-soft: #b7d92e;
  --tst-hero-motif-size: clamp(280px, 45vw, 640px);
  --tst-shortcut-motif-size: 180px;
  --tst-shortcut-motif-opacity: .4;
  --tst-type-pop-hero: var(--tst-type-event-hero);
  /* Factual event heroes are quieter than campaign display typography. */
  --tst-type-event-hero: clamp(3rem, 2rem + 2vw, 3.5rem);
  --tst-ink: var(--tst-brand-ink);
  --tst-muted: var(--tst-brand-muted);
  --tst-content-label-ink: var(--tst-muted);
  --tst-accent: var(--tst-brand-ink);
  --tst-accent-hover: var(--tst-accent);
  --tst-accent-soft: var(--tst-surface-lime-soft);
  --tst-line: var(--tst-brand-line);
  /* Content and Save boundaries stay quiet; native form controls retain Ink. */
  --tst-card-border: var(--tst-line);
  --tst-card-border-hover: var(--tst-muted);
  --tst-control-border: var(--tst-brand-control-border);
  --tst-surface-feature: var(--tst-brand-lime);
  --tst-feature-overlay: none;
  --tst-shortcut-weekend: var(--tst-brand-cyan);
  --tst-shortcut-free: var(--tst-brand-pink);
  --tst-shortcut-upcoming: var(--tst-brand-yellow);
  --tst-shortcut-exhibition: var(--tst-brand-coral);
  --tst-nav-selected: var(--tst-selection-surface);
  --tst-shadow-inset: none;
  --tst-media-caption: rgb(17 18 28 / 75%);
  --tst-map-marker-shadow: 2px 3px 0 var(--tst-brand-ink);
  --tst-map-selected-shadow: 0 0 0 4px var(--tst-brand-lime), 3px 4px 0 var(--tst-brand-ink);
  --tst-icon-hover-background: var(--tst-surface-lime-soft);
  --tst-icon-glyph-size: var(--tst-space-gutter);
  /* Legacy tone keys now share neutral paper; POP accents carry decoration only. */
  --tst-letter-lilac: var(--tst-brand-white);
  --tst-letter-sky: var(--tst-brand-white);
  --tst-letter-cream: var(--tst-brand-white);
  --tst-letter-rose: var(--tst-brand-white);
  --tst-letter-accent-lilac: var(--tst-brand-pink);
  --tst-letter-accent-sky: var(--tst-brand-cyan);
  --tst-letter-accent-cream: var(--tst-brand-lime);
  --tst-letter-accent-rose: var(--tst-brand-ink);
  --tst-pop-graphic-size: 80px;
  --tst-type-pop-headline: var(--tst-type-display);
  --tst-shadow-slogan: none;
  --tst-shadow-artwork: none;
  --tst-duration-artwork: 400ms;
  --tst-duration-sweep: 400ms;
  --tst-motion-ticker: 16s;
  --tst-button-hover-lift: 0px;
  --tst-button-sink-hover: 0px;
  --tst-button-sink-press: 0px;
  --tst-button-flat-press: 0px;
  --tst-button-shadow-hover: none;
  --tst-focus: var(--tst-brand-ink);
  --tst-media-story: 40 / 21;
  --tst-media-story-cover: 14 / 5;
  --tst-media-event: 4 / 3;
  --tst-media-event-products: 16 / 9;
  --tst-media-event-poster: 3 / 4;
  --tst-media-story-compact: 4 / 3;
  --tst-card-title-lines: 2;
  --tst-letter-preview-lines: 4;
  --tst-letter-card-width: clamp(240px, 72vw, 320px);
  --tst-media-product: 1 / 1;
  --tst-media-ip-cover: 4 / 1;
  --tst-media-ip-card: 8 / 5;
  --tst-media-collection: 4 / 3;
  --tst-card-avatar-size: 88px;
  --tst-card-compact-width: calc((min(var(--tst-page-width), 100vw - 2 * var(--tst-page-gutter)) - 2 * var(--tst-space-2) - 3 * var(--tst-grid-gap)) / 4);
  --tst-event-carousel-count: 3;
  --tst-card-carousel-gap: var(--tst-grid-gap);
  --tst-shelf-visible-count: 4;
  --tst-shelf-editorial-visible-count: 3;
  /* Legacy DS4.35 filter retained for compatibility; horizontal edges now fade alpha. */
  --tst-carousel-edge-filter: blur(8px);
  /* Legacy surface token retained for compatibility; horizontal edges no longer use it. */
  --tst-carousel-fade-surface: var(--tst-canvas);
  --tst-carousel-fade-width: var(--tst-space-7);
  --tst-scroll-fade-size: var(--tst-space-4);
  --tst-scroll-fade-surface: var(--tst-surface);
  --tst-scroll-fade-inset: var(--tst-space-3);
  --tst-card-mobile-visible-count: 2.15;
  --tst-card-avatar-compact-size: 56px;
  --tst-success: #245c43;
  --tst-warning: #80531e;
  --tst-warning-soft: var(--tst-brand-yellow);
  --tst-error: #742126;
  --tst-error-soft: var(--tst-brand-coral);
  --tst-radius-badge: 0px;
  --tst-radius-control: 24px;
  --tst-radius-input: 8px; /* Rounded-square fields, independent of pill actions. */
  --tst-radius-card: 16px;
  --tst-radius-media: 8px;
  --tst-radius-card-compact: 16px; /* Dense map results and selected-event preview. */
  --tst-radius-thumbnail: 8px; /* Small square content images, independent of controls. */
  --tst-border-brand: 1px;
  --tst-border-input: 1px;
  /* Editable fields have a quieter boundary than action/choice glyphs. */
  --tst-input-border: #898b92;
  --tst-input-border-hover: var(--tst-muted);
  --tst-input-focus: var(--tst-brand-ink);
  --tst-input-focus-width: 2px;
  --tst-input-focus-inset: calc(var(--tst-input-focus-width) - var(--tst-border-input));
  --tst-shadow-input: none;
  --tst-shadow-input-focus: 0 0 0 transparent;
  --tst-shadow-pop: none;
  --tst-shadow-pop-raised: none;
  --tst-shadow-pop-pressed: none;
  --tst-radius-inset-control: calc(var(--tst-radius-card) - var(--tst-space-1));
  --tst-radius-feature: 16px;
  --tst-radius-editorial: 0px;
  --tst-radius-pill: 999px;
  --tst-radius-round: 50%;
  --tst-font-sans: "Be Vietnam Pro", Arial, Helvetica, sans-serif;
  --tst-font-display: "Space Grotesk", "Be Vietnam Pro", Arial, sans-serif;
  /* Type roles, not page-specific sizes. rem respects the reader's default font. */
  --tst-type-body: 1rem;
  --tst-type-label: .875rem;
  --tst-type-control: .875rem;
  --tst-type-search-filter: var(--tst-type-body);
  --tst-type-filter-chip: var(--tst-type-label);
  --tst-type-caption: .75rem;
  --tst-type-micro: .625rem; /* Counts / decorative marks only; never body copy. */
  --tst-type-subheading: 1.5rem;
  --tst-type-admin-title: 1.75rem; /* Operator workspaces: compact title distinct from customer page display. */
  --tst-type-section: 2rem;
  --tst-type-page: 2.5rem;
  --tst-type-display: 4rem;
  --tst-type-card-title: var(--tst-type-body);
  --tst-type-card-price: var(--tst-type-body);
  --tst-card-content-gap: var(--tst-space-1);
  --tst-card-media-gap: var(--tst-space-2);
  --tst-type-price: 1.25rem;
  --tst-type-reading: var(--tst-type-body);
  --tst-type-detail-copy: var(--tst-type-body); /* Essential detail is body; supplementary captions have their own role. */
  --tst-type-event-title: var(--tst-type-page);
  --tst-type-event-section: var(--tst-type-section);
  --tst-type-story-title: var(--tst-type-page);
  /* The wordmark is artwork, separate from content typography. */
  --tst-type-wordmark: 1.375rem;
  --tst-type-wordmark-small: .9375rem;
  --tst-type-header-wordmark: 1.125rem;
  --tst-type-tagline: .375rem;
  --tst-leading-heading: 1.25;
  --tst-leading-display: 1.1;
  --tst-leading-title: 1.4;
  --tst-leading-ui: 1.5;
  --tst-leading-body: 1.6;
  --tst-leading-reading: var(--tst-leading-body);
  --tst-leading-solid: 1;
  /* Email geometry: fixed values where inbox clients cannot use clamp()/viewport units. */
  --tst-email-width: 640px;
  --tst-email-heading: 28px;
  --tst-email-brand: 22px;
  --tst-email-subheading: 22px;
  --tst-reading-width: 45rem;
  --tst-control-height: 48px;
  --tst-radius-action-table: 8px;
  --tst-touch-min: 44px;
  --tst-card-save-visual-size: var(--tst-touch-min);
  --tst-card-save-icon-size: 20px;
  --tst-card-media-inset: var(--tst-space-2);
  --tst-card-save-gap: var(--tst-space-2); /* Visible circle to image edge, all viewports. */
  --tst-card-save-inset: calc(var(--tst-card-save-gap) - (var(--tst-touch-min) - var(--tst-card-save-visual-size)) / 2); /* Target inset relative to the image; mobile subtracts 6px. */
  --tst-save-border-width: 1px;
  --tst-save-surface: var(--tst-surface);
  --tst-save-edge: var(--tst-line);
  --tst-save-hover-surface: var(--tst-surface-subtle);
  --tst-save-selected-surface: var(--tst-selection-surface);
  --tst-card-save-border-width: var(--tst-save-border-width);
  --tst-card-save-border: var(--tst-save-edge);
  --tst-card-list-image-width: clamp(88px, 26vw, 112px);
  /* Primary navigation geometry. Clearance excludes the device safe area. */
  --tst-header-height: 80px;
  --tst-header-inset-block: var(--tst-space-4);
  --tst-header-content-gap: var(--tst-space-4);
  --tst-reading-entry-gap: var(--tst-space-5);
  --tst-header-inset-left: max(var(--tst-page-gutter), env(safe-area-inset-left,0px), calc((100% - var(--tst-page-width)) / 2));
  --tst-header-inset-right: max(var(--tst-page-gutter), env(safe-area-inset-right,0px), calc((100% - var(--tst-page-width)) / 2));
  --tst-header-safe-top: max(0px, calc(env(safe-area-inset-top,0px) - var(--wp-admin--admin-bar--height,0px)));
  --tst-anchor-clearance: calc(var(--wp-admin--admin-bar--height,0px) + var(--tst-header-safe-top) + var(--tst-header-inset-block) + var(--tst-header-height) + var(--tst-header-content-gap));
  --tst-header-padding-inline: var(--tst-space-4);
  --tst-header-radius: var(--tst-radius-control);
  --tst-header-padding-block: 0px;
  --tst-header-brand-size: 32px;
  --tst-search-control-height: var(--tst-control-height);
  --tst-search-height: calc(var(--tst-search-control-height) + 2px);
  --tst-search-page-start: var(--tst-header-content-gap); /* Compatibility alias; main owns entry spacing. */
  --tst-search-content-gap: var(--tst-header-content-gap);
  --tst-header-tool-icon-size: 28px;
  --tst-header-tool-icon-stroke: 1.5;
  --tst-nav-icon-size: 24px;
  --tst-filter-icon-size: 18px;
  --tst-nav-avatar-size: 28px;
  --tst-section-nav-gap: var(--tst-space-2);
  --tst-section-nav-padding-inline: var(--tst-space-3);
  --tst-section-nav-padding-block: var(--tst-space-4);
  --tst-nav-hover: var(--tst-surface-lime-soft);
  --tst-nav-text-hover: var(--tst-accent-hover);
  --tst-dock-item-height: var(--tst-control-height);
  --tst-dock-padding: var(--tst-space-1);
  --tst-dock-inset: var(--tst-space-3);
  --tst-dock-inset-inline: var(--tst-space-4);
  --tst-dock-max-width: 400px;
  --tst-action-bar-max-width: var(--tst-dock-max-width);
  --tst-dock-height: calc(var(--tst-dock-item-height) + 2 * var(--tst-dock-padding) + 2px);
  --tst-dock-clearance: calc(var(--tst-dock-height) + var(--tst-dock-inset));
  --tst-action-bar-padding: var(--tst-space-2);
  --tst-action-bar-gap: var(--tst-space-2);
  --tst-action-dock-gap: var(--tst-space-2);
  /* Conservative no-JS reserve for wrapping text; the shared observer measures live bars. */
  --tst-action-bar-height: max(var(--tst-space-10), 8rem);
  /* Feedback clears the measured mobile dock/action stack; desktop position stays unchanged. */
  --tst-feedback-bottom: 100px;
  --tst-feedback-gap: var(--tst-space-3);
  /* Shared success HUD: total lifetime includes its duration-press fade out. */
  --tst-feedback-duration: 1800ms;
  --tst-feedback-max-width: 280px;
  --tst-page-width: 1280px;
  --tst-space-half: 2px;
  --tst-space-1: 4px;
  --tst-space-2: 8px;
  --tst-space-3: 12px;
  --tst-space-4: 16px;
  --tst-space-gutter: 20px;
  --tst-space-5: 24px;
  --tst-space-6: 32px;
  --tst-space-layout: 40px;
  --tst-space-7: 48px;
  --tst-space-8: 64px;
  --tst-space-9: 80px;
  --tst-space-10: 96px;
  /* Responsive rhythm: change these roles to tune all customer pages together. */
  --tst-page-gutter: var(--tst-space-6);
  --tst-page-start: var(--tst-header-content-gap);
  --tst-page-end: var(--tst-space-8);
  --tst-section-gap: var(--tst-space-7);
  --tst-heading-gap: var(--tst-space-4);
  --tst-layout-gap: var(--tst-space-6);
  --tst-grid-gap: var(--tst-space-5);
  --tst-panel-padding: var(--tst-space-5);
  /* Every bottom sheet reaches the viewport edge; clearance belongs inside. */
  --tst-sheet-edge: 0px;
  --tst-sheet-hidden-transform: translate3d(0,100%,0);
  /* Shared sheet content excludes its single top border from the outer cap. */
  --tst-sheet-max-height: min(90dvh, calc(100dvh - var(--tst-space-4) - env(safe-area-inset-top)));
  --tst-sheet-content-max-height: calc(var(--tst-sheet-max-height) - 1px);
  --tst-group-gap: var(--tst-space-5);
  --tst-inline-gap: var(--tst-space-2);
  --tst-copy-gap: var(--tst-space-4);
  --tst-reading-heading-gap: var(--tst-space-6);
  --tst-shadow-nav: none;
  --tst-shadow-float: 0 8px 24px rgb(var(--tst-ink-rgb) / 14%);
  /* DS4.5: web material, not Apple's native optical renderer. Text stays opaque. */
  --tst-liquid-regular-fill: rgb(255 255 255 / 92%);
  --tst-liquid-edge: rgb(var(--tst-ink-rgb) / 12%);
  --tst-liquid-edge-hover: var(--tst-liquid-edge);
  --tst-liquid-highlight: none;
  --tst-liquid-filter: blur(20px) saturate(1.15);
  /* DS4.57: neutral chrome shares one quiet edge and shallow depth, including header scroll. */
  --tst-liquid-shadow: var(--tst-liquid-control-shadow);
  --tst-liquid-hover: var(--tst-liquid-lens-fill);
  --tst-liquid-press: rgb(var(--tst-ink-rgb) / 6%);
  --tst-liquid-selection: var(--tst-selection-surface);
  --tst-liquid-press-scale: .985;
  --tst-liquid-origin: 50% 12%;
  /* Shared interaction contract, promoted from reviewed DS4.51/4.52 samples. */
  --tst-liquid-control-sheen: rgb(255 255 255 / 70%);
  --tst-liquid-lens-fill: rgb(var(--tst-ink-rgb) / 4%);
  --tst-liquid-spring-stiffness: 320;
  --tst-liquid-spring-damping: 29;
  --tst-liquid-press-x: 1.02;
  --tst-liquid-press-y: .98;
  --tst-liquid-press-impulse: .3;
  --tst-liquid-control-shadow: 0 2px 6px rgb(var(--tst-ink-rgb) / 6%);
  /* Retained preview geometry/aliases; optics and spring now use shared tokens. */
  --tst-liquid-prototype-fill: var(--tst-liquid-regular-fill);
  --tst-liquid-prototype-hover-fill: var(--tst-liquid-regular-fill);
  --tst-liquid-prototype-sheen: rgb(255 255 255 / 44%);
  --tst-liquid-prototype-single-sheen: var(--tst-liquid-control-sheen);
  --tst-liquid-prototype-selected: var(--tst-selection-surface);
  --tst-liquid-prototype-depth: var(--tst-liquid-control-shadow);
  --tst-liquid-prototype-stiffness: var(--tst-liquid-spring-stiffness);
  --tst-liquid-prototype-damping: var(--tst-liquid-spring-damping);
  --tst-liquid-prototype-press-x: var(--tst-liquid-press-x);
  --tst-liquid-prototype-press-y: var(--tst-liquid-press-y);
  --tst-liquid-prototype-control-height: var(--tst-control-height);
  --tst-liquid-prototype-stage-height: 320px;
  --tst-liquid-prototype-cluster-width: 380px;
  /* Compatibility aliases; canonical tokens above describe material roles. */
  --tst-glass-fill: var(--tst-liquid-regular-fill);
  --tst-glass-panel-fill: var(--tst-liquid-regular-fill);
  --tst-glass-edge: var(--tst-liquid-edge);
  --tst-glass-highlight: var(--tst-liquid-highlight);
  --tst-glass-filter: var(--tst-liquid-filter);
  --tst-glass-shadow: var(--tst-liquid-shadow);
  --tst-duration-press: 160ms;
  --tst-duration-ui: 240ms;
  --tst-duration-nav-page: 240ms;
  --tst-duration-nav-selection: 240ms;
  --tst-duration-nav-underline: 240ms;
  --tst-content-tab-height: 56px; /* Shared IP/Saved desktop targets. */
  --tst-nav-underline-height: 3px;
  --tst-nav-divider-height: 1px;
  --tst-nav-rail-padding-bottom: calc(var(--tst-space-1) + var(--tst-nav-divider-height));
  --tst-nav-underline-radius: 8px; /* Focus geometry for content tabs/section links. */
  --tst-duration-panel: 240ms;
  --tst-duration-reveal: 400ms;
  --tst-duration-hero: 400ms;
  --tst-ease-dock: var(--tst-ease-ui);
  --tst-ease-out: cubic-bezier(.2, .9, .3, 1);
  --tst-ease-ui: cubic-bezier(.2, .7, .2, 1);
}
@media(max-width:900px) {
  :root {
    --tst-header-tool-icon-stroke: 2;
    --tst-header-height: 72px;
    --tst-header-logo-width: 88px;
    --tst-header-padding-inline: var(--tst-space-3);
    --tst-search-control-height: var(--tst-touch-min);
    --tst-header-inset-block: var(--tst-space-3);
    --tst-header-content-gap: var(--tst-space-3);
    --tst-reading-entry-gap: var(--tst-space-4);
    --tst-card-compact-width: calc((100vw - 2 * var(--tst-page-gutter) - 2 * var(--tst-space-2) - 2 * var(--tst-grid-gap)) / 2.2);
    --tst-page-gutter: var(--tst-space-6);
    --tst-page-end: var(--tst-space-7);
    --tst-section-gap: var(--tst-space-6);
    --tst-layout-gap: var(--tst-space-5);
    --tst-panel-padding: var(--tst-space-5);
  }
}
/* Foundation type boundary only; feature layout still uses its600/900px contracts. */
@media(min-width:601px) and (max-width:1199px) {
  :root {
    --tst-footer-column-gap: var(--tst-space-6);
    --tst-shelf-visible-count: 2.2;
    --tst-shelf-editorial-visible-count: 1.8;
    --tst-type-page: 2.25rem;
    --tst-type-section: 1.75rem;
    --tst-type-subheading: 1.25rem;
    --tst-type-display: 3rem;
    --tst-section-gap: var(--tst-space-6);
  }
}
@media(max-width:900px) {
  :root {
    --tst-type-footer-heading: 1rem;
    --tst-footer-padding-block: var(--tst-space-6);
    --tst-footer-column-gap: var(--tst-space-5);
    --tst-footer-legal-gap: var(--tst-space-5);
    --tst-header-height: 72px;
    --tst-header-logo-width: 88px;
    --tst-header-padding-inline: var(--tst-space-3);
  }
}
@media(max-width:600px) {
  :root {
    /* Mobile body, reading, fields and default actions share the14px role. */
    --tst-type-body: .875rem;
    --tst-type-filter-chip: var(--tst-type-caption);
    --tst-type-page: 2rem;
    --tst-type-section: 1.5rem;
    --tst-type-subheading: 1.125rem;
    --tst-type-display: 2.5rem;
    --tst-type-event-hero: 2.5rem;
    --tst-leading-reading: var(--tst-leading-body);
    /* Mobile reading rhythm; geometry and touch targets keep their own roles. */
    --tst-page-end: var(--tst-space-6);
    --tst-section-gap: var(--tst-space-5);
    --tst-layout-gap: var(--tst-space-gutter);
    --tst-group-gap: var(--tst-space-4);
    --tst-copy-gap: var(--tst-space-3);
    --tst-reading-heading-gap: var(--tst-space-5);
    /* The next card can paint into the rail's trailing 8px focus padding. */
    --tst-shelf-visible-count: 2.15;
    --tst-shelf-editorial-visible-count: 1.4;
    --tst-card-compact-width: calc((100% + var(--tst-space-2) - 2 * var(--tst-card-carousel-gap)) / var(--tst-card-mobile-visible-count));
    --tst-card-carousel-gap: var(--tst-space-3);
    --tst-page-gutter: var(--tst-space-4);
    --tst-heading-gap: var(--tst-space-3);
    --tst-grid-gap: var(--tst-space-3);
    --tst-panel-padding: var(--tst-space-4);
    --tst-type-price: 1.125rem;
    --tst-card-save-visual-size: 32px;
    --tst-card-save-icon-size: 16px;
  }
}

@media (max-width:900px) {
  :root {--tst-logo-width:120px}
}

/* Centered editorial rail; feature layouts retain their native boundaries. */
@media(min-width:768px) and (max-width:1199px) {:root {--tst-page-gutter:var(--tst-space-6);--tst-grid-gap:var(--tst-space-5)}}
@media(min-width:601px) and (max-width:767px) {:root {--tst-page-gutter:var(--tst-space-5);--tst-grid-gap:var(--tst-space-5)}}

/* DS4.57: selection is solid brand color on every material/background. */

/* Readable event carousel: retain full date/location/fee metadata. */
@media(max-width:900px){:root{--tst-event-carousel-count:2.15}}
@media(max-width:600px){:root{--tst-event-carousel-count:1.15;--tst-carousel-fade-width:var(--tst-space-5)}}

/* Compact commerce section role; catalogue/content heading scales stay unchanged. */
@media(min-width:601px) {:root {--tst-type-purchase-heading:1.125rem;--tst-type-purchase-total:1.5rem;--tst-type-purchase-total-label:1.125rem;}}
