/* ==========================================================================
   Kiralık Karavan — Design System v1 (docs/DESIGN_SYSTEM.md)
   Rule: components use tokens only. No raw hex / px outside this :root block.
   ========================================================================== */

:root {
  /* Primary — deep forest (trust, nature) */
  --primary-50: #ecf6f1; --primary-100: #d2eadf; --primary-200: #a6d4bf; --primary-300: #72b899;
  --primary-400: #449a76; --primary-500: #237d5b; --primary-600: #17654a; --primary-700: #12513c;
  --primary-800: #0f3d2e; --primary-900: #0b2c21; --primary-950: #061a13;
  /* Accent — sunset amber (CTA highlight, never body text on white) */
  --accent-50: #fdf6ea; --accent-100: #fae8c8; --accent-200: #f5d08f; --accent-300: #efb556;
  --accent-400: #e8a33d; --accent-500: #d98a1f; --accent-600: #b86d16; --accent-700: #925315;
  --accent-800: #763f16; --accent-900: #613415; --accent-950: #381a08;
  /* Neutral — warm stone */
  --neutral-0: #ffffff; --neutral-50: #f7f6f3; --neutral-100: #efede8; --neutral-200: #e1ded6;
  --neutral-300: #cbc6bb; --neutral-400: #a29c8f; --neutral-500: #7a7468; --neutral-600: #5d584e;
  --neutral-700: #47433b; --neutral-800: #302d28; --neutral-900: #1f1d1a; --neutral-950: #12110f;
  /* Feedback */
  --success-50: #ecfdf3; --success-600: #16794a; --success-700: #11603a;
  --warning-50: #fff8e6; --warning-600: #a15c07; --warning-700: #7f4806;
  --danger-50: #fdf0ef; --danger-600: #c0362c; --danger-700: #9b2b23;
  --info-50: #eef5ff; --info-600: #2563c7; --info-700: #1d4f9f;

  /* Surface roles (light) */
  --color-bg: var(--neutral-50);
  --color-surface: var(--neutral-0);
  --color-surface-raised: var(--neutral-0);
  --color-surface-sunken: var(--neutral-100);
  --color-border: var(--neutral-200);
  --color-border-strong: var(--neutral-300);
  --color-text: var(--neutral-900);
  --color-text-muted: var(--neutral-600);
  --color-text-inverse: var(--neutral-0);
  --color-link: var(--primary-600);
  --color-focus: var(--accent-500);
  --color-brand: var(--primary-800);
  --overlay: rgb(18 17 15 / 0.55);
  --overlay-strong: rgb(18 17 15 / 0.72);

  /* Typography — system stack: zero font download, fast LCP */
  --font-sans: "Segoe UI Variable", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --text-xs: 0.75rem;   --lh-xs: 1rem;
  --text-sm: 0.875rem;  --lh-sm: 1.25rem;
  --text-base: 1rem;    --lh-base: 1.5rem;
  --text-lg: 1.125rem;  --lh-lg: 1.625rem;
  --text-xl: 1.375rem;  --lh-xl: 1.875rem;
  --text-2xl: 1.75rem;  --lh-2xl: 2.25rem;
  --text-display: clamp(2rem, 1.35rem + 2.6vw, 3.25rem); --lh-display: 1.08;
  --weight-regular: 400; --weight-medium: 500; --weight-semibold: 600; --weight-bold: 700;
  --tracking-tight: -0.02em;

  /* Spacing — 4px base */
  --space-0: 0; --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem; --space-12: 3rem;
  --space-16: 4rem; --space-20: 5rem;

  /* Radius (3 steps) + pill */
  --radius-sm: 0.375rem; --radius-md: 0.625rem; --radius-lg: 1rem; --radius-pill: 999px;
  /* Shadow (3 steps) */
  --shadow-sm: 0 1px 2px rgb(31 29 26 / 0.06), 0 1px 1px rgb(31 29 26 / 0.04);
  --shadow-md: 0 4px 14px rgb(31 29 26 / 0.08), 0 1px 3px rgb(31 29 26 / 0.06);
  --shadow-lg: 0 18px 40px rgb(31 29 26 / 0.14), 0 4px 10px rgb(31 29 26 / 0.06);

  /* Layout */
  --container: 76rem;           /* header = content = footer width */
  --gutter: var(--space-4);
  --header-h: 3.5rem;
  --bottom-nav-h: 3.75rem;
  --tap: 2.75rem;               /* 44px min touch target */
  --col-xs: 7rem; --col-sm: 12rem; --col-md: 14rem; --col-lg: 15rem; --col-xl: 16.5rem; --w-dialog: 32rem;
  --w-form: 34rem;              /* form column — allowed width exception (forms), never for h1 / lead */
  --border-w: 1px;
  --focus-ring: 0 0 0 3px var(--color-focus);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur-fast: 120ms; --dur: 200ms;
  --z-header: 40; --z-bottom-nav: 45; --z-banner: 50; --z-dialog: 60; --z-toast: 70;
}

@media (min-width: 48rem) { :root { --gutter: var(--space-6); --header-h: 4rem; } }

/* Dark theme (opt-in by OS; panels and public pages share tokens) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-bg: var(--neutral-950); --color-surface: var(--neutral-900); --color-surface-raised: var(--neutral-800);
    --color-surface-sunken: var(--neutral-950); --color-border: var(--neutral-700); --color-border-strong: var(--neutral-600);
    --color-text: var(--neutral-100); --color-text-muted: var(--neutral-400); --color-link: var(--primary-300);
    --color-brand: var(--primary-300);
  }
}
:root[data-theme="dark"] {
  --color-bg: var(--neutral-950); --color-surface: var(--neutral-900); --color-surface-raised: var(--neutral-800);
  --color-surface-sunken: var(--neutral-950); --color-border: var(--neutral-700); --color-border-strong: var(--neutral-600);
  --color-text: var(--neutral-100); --color-text-muted: var(--neutral-400); --color-link: var(--primary-300);
  --color-brand: var(--primary-300);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + var(--space-4)); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: var(--font-sans); font-size: var(--text-base); line-height: var(--lh-base);
  color: var(--color-text); background: var(--color-bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
main { flex: 1 0 auto; outline: none; }
h1, h2, h3, h4 { margin: 0 0 var(--space-3); line-height: 1.2; letter-spacing: var(--tracking-tight); font-weight: var(--weight-bold); }
h1 { font-size: var(--text-2xl); line-height: var(--lh-2xl); }
h2 { font-size: var(--text-xl); line-height: var(--lh-xl); }
h3 { font-size: var(--text-lg); line-height: var(--lh-lg); font-weight: var(--weight-semibold); }
p { margin: 0 0 var(--space-4); }
a { color: var(--color-link); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
code { font-family: var(--font-mono); font-size: 0.92em; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--space-2); top: calc(-1 * var(--space-16)); z-index: var(--z-toast);
  padding: var(--space-2) var(--space-4); background: var(--primary-800); color: var(--neutral-0);
  border-radius: var(--radius-md); font-weight: var(--weight-semibold);
}
.skip-link:focus { top: var(--space-2); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--space-10); }
.section--tight { padding-block: var(--space-6); }
.section__title { margin-bottom: var(--space-6); }
.stack > * + * { margin-top: var(--space-4); }
.stack > h2:not(:first-child) { margin-top: var(--space-8); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--col-xl)), 1fr)); }
@media (min-width: 64rem) { .section { padding-block: var(--space-16); } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: color-mix(in srgb, var(--color-surface) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: var(--border-w) solid var(--color-border);
}
.site-header__inner { display: flex; align-items: center; gap: var(--space-4); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--color-brand); text-decoration: none; font-weight: var(--weight-bold); font-size: var(--text-lg); letter-spacing: var(--tracking-tight); }
.brand__mark { width: var(--space-8); height: var(--space-8); }
.nav { display: none; margin-left: var(--space-4); gap: var(--space-1); }
.nav__link {
  display: inline-flex; align-items: center; min-height: var(--tap); padding-inline: var(--space-3);
  color: var(--color-text); text-decoration: none; font-weight: var(--weight-medium); border-radius: var(--radius-md);
}
.nav__link:hover { background: var(--color-surface-sunken); }
.nav__link[aria-current="page"] { color: var(--primary-700); background: var(--primary-50); }
.site-header__actions { margin-left: auto; display: flex; align-items: center; gap: var(--space-2); }
.menu-toggle { display: inline-flex; }
@media (min-width: 64rem) { .nav { display: flex; } .menu-toggle { display: none; } }
.mobile-menu { border-top: var(--border-w) solid var(--color-border); padding-block: var(--space-2) var(--space-4); }
.mobile-menu .nav__link { display: flex; }
@media (min-width: 64rem) { .mobile-menu { display: none !important; } }

/* ---------- Mobile bottom navigation ---------- */
.bottom-nav {
  position: fixed; inset: auto 0 0 0; z-index: var(--z-bottom-nav);
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  min-height: var(--bottom-nav-h); padding-bottom: env(safe-area-inset-bottom);
  background: var(--color-surface); border-top: var(--border-w) solid var(--color-border);
}
.bottom-nav__item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-1);
  min-height: var(--tap); color: var(--color-text-muted); text-decoration: none; font-size: var(--text-xs); font-weight: var(--weight-medium);
}
.bottom-nav__item[aria-current="page"] { color: var(--primary-700); }
.bottom-nav__icon { width: var(--space-6); height: var(--space-6); }
body.has-bottom-nav { padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom)); }
@media (min-width: 64rem) { .bottom-nav { display: none; } body.has-bottom-nav { padding-bottom: 0; } }

/* ---------- Footer ---------- */
.site-footer { margin-top: var(--space-16); background: var(--primary-900); color: var(--neutral-200); }
.site-footer a { color: var(--neutral-0); }
.site-footer__inner { padding-block: var(--space-10) var(--space-8); }
.site-footer__grid { display: grid; gap: var(--space-8); grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--col-sm)), 1fr)); }
.site-footer__heading { color: var(--neutral-0); font-size: var(--text-sm); text-transform: none; margin-bottom: var(--space-3); }
.site-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); font-size: var(--text-sm); }
.site-footer__copy { margin: 0; font-size: var(--text-sm); color: var(--neutral-200); }
.site-footer__grid + .site-footer__copy { margin-top: var(--space-8); padding-top: var(--space-6); border-top: var(--border-w) solid var(--primary-700); }

/* ---------- Hero (no width limits on eyebrow / h1 / lead — global rule) ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--neutral-0);
  background:
    radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--accent-400) 35%, transparent) 0%, transparent 46%),
    linear-gradient(160deg, var(--primary-800) 0%, var(--primary-900) 58%, var(--primary-950) 100%);
}
.hero__inner { padding-block: var(--space-12) var(--space-12); }
.hero .eyebrow { color: var(--accent-200); }
.hero__title { font-size: var(--text-display); line-height: var(--lh-display); color: var(--neutral-0); margin-bottom: var(--space-4); }
.hero__lead { font-size: var(--text-lg); line-height: var(--lh-lg); color: var(--neutral-200); margin-bottom: var(--space-6); }
.hero__status {
  display: inline-flex; align-items: center; gap: var(--space-2); margin: 0;
  padding: var(--space-2) var(--space-4); border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--neutral-0) 12%, transparent); color: var(--neutral-0); font-size: var(--text-sm);
}
@media (min-width: 64rem) { .hero__inner { padding-block: var(--space-20); } }
.eyebrow { margin: 0 0 var(--space-3); font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--primary-600); letter-spacing: 0.01em; }
.page-head { padding-block: var(--space-8) var(--space-6); border-bottom: var(--border-w) solid var(--color-border); background: var(--color-surface); }
.page-head__title { margin: 0; }
.page-head__lead { margin: var(--space-2) 0 0; color: var(--color-text-muted); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--color-surface); --btn-fg: var(--color-text); --btn-bd: var(--color-border-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: var(--tap); padding: 0 var(--space-5); border: var(--border-w) solid var(--btn-bd); border-radius: var(--radius-md);
  background: var(--btn-bg); color: var(--btn-fg); font-weight: var(--weight-semibold); text-decoration: none; line-height: 1;
  cursor: pointer; transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
  -webkit-tap-highlight-color: transparent; white-space: nowrap;
}
.btn:hover { background: var(--color-surface-sunken); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn--primary { --btn-bg: var(--primary-700); --btn-fg: var(--neutral-0); --btn-bd: var(--primary-700); }
.btn--primary:hover { background: var(--primary-800); }
.btn--accent { --btn-bg: var(--accent-400); --btn-fg: var(--neutral-950); --btn-bd: var(--accent-400); }
.btn--accent:hover { background: var(--accent-300); }
.btn--danger { --btn-bg: var(--danger-600); --btn-fg: var(--neutral-0); --btn-bd: var(--danger-600); }
.btn--danger:hover { background: var(--danger-700); }
.btn--ghost { --btn-bg: transparent; --btn-bd: transparent; }
.btn--on-dark { --btn-bg: transparent; --btn-fg: var(--neutral-0); --btn-bd: color-mix(in srgb, var(--neutral-0) 45%, transparent); }
.btn--on-dark:hover { background: color-mix(in srgb, var(--neutral-0) 12%, transparent); }
.btn--sm { min-height: var(--space-8); padding: 0 var(--space-3); font-size: var(--text-sm); }
.btn--lg { min-height: var(--space-12); padding: 0 var(--space-6); font-size: var(--text-lg); }
.btn--block { width: 100%; }
.btn--icon { padding: 0; width: var(--tap); }
.btn[data-loading="true"] { position: relative; color: transparent !important; pointer-events: none; }
.btn[data-loading="true"]::after {
  content: ""; position: absolute; width: var(--space-4); height: var(--space-4);
  border: 2px solid var(--btn-fg); border-right-color: transparent; border-radius: 50%; animation: spin 700ms linear infinite;
}
.icon { width: var(--space-5); height: var(--space-5); flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Forms ---------- */
.field { display: grid; gap: var(--space-1); align-content: start; margin-bottom: var(--space-4); }
.field__label { font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--color-text); }
.field__required { color: var(--danger-600); margin-left: var(--space-1); }
.field__help { font-size: var(--text-sm); color: var(--color-text-muted); margin: 0; }
.field__error { font-size: var(--text-sm); color: var(--danger-700); margin: 0; font-weight: var(--weight-medium); }
.input, .select, .textarea {
  width: 100%; min-height: var(--tap); padding: var(--space-2) var(--space-3);
  background: var(--color-surface); color: var(--color-text);
  border: var(--border-w) solid var(--color-border-strong); border-radius: var(--radius-md);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.textarea { min-height: calc(var(--space-20) + var(--space-8)); resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--neutral-500); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--neutral-400); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { border-color: var(--primary-500); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-400) 35%, transparent); border-radius: var(--radius-md); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger-600); }
.input:disabled, .select:disabled, .textarea:disabled { background: var(--color-surface-sunken); color: var(--color-text-muted); cursor: not-allowed; }
.check { display: flex; align-items: flex-start; gap: var(--space-3); min-height: var(--tap); padding-block: var(--space-2); cursor: pointer; }
.check input { width: var(--space-5); height: var(--space-5); margin: 0; accent-color: var(--primary-600); flex: none; }
.form-row { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--col-md)), 1fr)); }

/* ---------- Cards ---------- */
.card { background: var(--color-surface); border: var(--border-w) solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.card__body { padding: var(--space-5); }
.card--link { text-decoration: none; color: inherit; transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease); }
.card--link:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--col-lg)), 1fr)); }
.feature { padding: var(--space-5); background: var(--color-surface); border: var(--border-w) solid var(--color-border); border-radius: var(--radius-lg); }
.feature__title { margin-bottom: var(--space-2); }
.feature__text { margin: 0; color: var(--color-text-muted); font-size: var(--text-sm); line-height: var(--lh-sm); }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: var(--space-1); padding: 0 var(--space-2); min-height: var(--space-6);
  border-radius: var(--radius-pill); font-size: var(--text-xs); font-weight: var(--weight-semibold);
  background: var(--neutral-100); color: var(--neutral-800);
}
.badge--primary { background: var(--primary-50); color: var(--primary-800); }
.badge--success { background: var(--success-50); color: var(--success-700); }
.badge--warning { background: var(--warning-50); color: var(--warning-700); }
.badge--danger { background: var(--danger-50); color: var(--danger-700); }
.badge--demo { background: var(--accent-100); color: var(--accent-900); border: var(--border-w) dashed var(--accent-600); }

/* ---------- Alerts & toasts ---------- */
.alert {
  display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md); border: var(--border-w) solid; font-size: var(--text-sm);
}
.alert--info { background: var(--info-50); border-color: var(--info-600); color: var(--info-700); }
.alert--success { background: var(--success-50); border-color: var(--success-600); color: var(--success-700); }
.alert--warning { background: var(--warning-50); border-color: var(--warning-600); color: var(--warning-700); }
.alert--danger { background: var(--danger-50); border-color: var(--danger-600); color: var(--danger-700); }
.alert p { margin: 0; }
.toast-region {
  position: fixed; z-index: var(--z-toast); inset: auto var(--space-4) calc(var(--bottom-nav-h) + var(--space-4)) var(--space-4);
  display: grid; gap: var(--space-2); justify-items: center; pointer-events: none;
}
@media (min-width: 64rem) { .toast-region { inset: auto var(--space-6) var(--space-6) auto; justify-items: end; } }
.toast { pointer-events: auto; box-shadow: var(--shadow-lg); animation: toast-in var(--dur) var(--ease); background: var(--color-surface-raised); }
@keyframes toast-in { from { opacity: 0; transform: translateY(var(--space-2)); } }

/* ---------- Dialog / bottom sheet ---------- */
.dialog {
  width: min(100% - 2 * var(--space-4), var(--w-dialog)); padding: 0; border: none; border-radius: var(--radius-lg);
  background: var(--color-surface); color: var(--color-text); box-shadow: var(--shadow-lg);
}
.dialog::backdrop { background: var(--overlay); }
.dialog__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-4) var(--space-5); border-bottom: var(--border-w) solid var(--color-border); }
.dialog__title { margin: 0; font-size: var(--text-lg); }
.dialog__body { padding: var(--space-5); }
.dialog__foot { display: flex; justify-content: flex-end; gap: var(--space-2); padding: var(--space-4) var(--space-5); border-top: var(--border-w) solid var(--color-border); }
@media (max-width: 47.99rem) {
  .dialog--sheet {
    position: fixed; inset: auto 0 0 0; width: 100%; max-width: none; margin: 0; max-height: 88vh;
    padding-bottom: env(safe-area-inset-bottom); border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  .dialog--sheet .dialog__body { overflow-y: auto; }
}

/* ---------- Tabs ---------- */
.tabs__list { display: flex; gap: var(--space-1); padding: var(--space-1); background: var(--color-surface-sunken); border-radius: var(--radius-md); overflow-x: auto; scrollbar-width: none; }
.tabs__tab {
  flex: 1 0 auto; min-height: var(--space-10); padding: 0 var(--space-4); border: none; border-radius: var(--radius-sm);
  background: transparent; color: var(--color-text-muted); font-weight: var(--weight-semibold); cursor: pointer;
}
.tabs__tab[aria-selected="true"] { background: var(--color-surface); color: var(--color-text); box-shadow: var(--shadow-sm); }
.tabs__panel { padding-top: var(--space-4); }

/* ---------- Chips (filters) ---------- */
.chip {
  display: inline-flex; align-items: center; gap: var(--space-1); min-height: var(--space-8); padding: 0 var(--space-3);
  border: var(--border-w) solid var(--color-border-strong); border-radius: var(--radius-pill); background: var(--color-surface);
  font-size: var(--text-sm); font-weight: var(--weight-medium); cursor: pointer; color: var(--color-text); text-decoration: none;
}
.chip[aria-pressed="true"], .chip--active { background: var(--primary-700); border-color: var(--primary-700); color: var(--neutral-0); }

/* ---------- Tables → cards on mobile ---------- */
.table-wrap { width: 100%; overflow-x: auto; border: var(--border-w) solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); }
.table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.table th, .table td { padding: var(--space-3) var(--space-4); text-align: left; border-bottom: var(--border-w) solid var(--color-border); vertical-align: middle; }
.table th { font-weight: var(--weight-semibold); color: var(--color-text-muted); background: var(--color-surface-sunken); white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: var(--color-surface-sunken); }
@media (max-width: 47.99rem) {
  .table--stack thead { display: none; }
  .table--stack tr { display: grid; gap: var(--space-1); padding: var(--space-3) var(--space-4); border-bottom: var(--border-w) solid var(--color-border); }
  .table--stack td { display: flex; justify-content: space-between; gap: var(--space-4); padding: 0; border: none; }
  .table--stack td::before { content: attr(data-label); color: var(--color-text-muted); font-weight: var(--weight-medium); }
}

/* ---------- Empty state & skeleton ---------- */
.empty { display: grid; justify-items: center; gap: var(--space-3); padding: var(--space-12) var(--space-4); text-align: center; color: var(--color-text-muted); }
.empty__icon { width: var(--space-12); height: var(--space-12); color: var(--neutral-400); }
.empty__title { color: var(--color-text); margin: 0; }
.skeleton { position: relative; overflow: hidden; background: var(--color-surface-sunken); border-radius: var(--radius-sm); min-height: var(--space-4); }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--neutral-0) 55%, transparent), transparent); animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }

/* ---------- Breadcrumb & pagination ---------- */
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-1); font-size: var(--text-sm); color: var(--color-text-muted); }
.breadcrumb li + li::before { content: "/"; margin-right: var(--space-1); color: var(--neutral-400); }
.breadcrumb a { color: var(--color-text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--color-link); text-decoration: underline; }
.pagination { display: flex; flex-wrap: wrap; gap: var(--space-1); justify-content: center; margin-top: var(--space-8); }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center; min-width: var(--tap); min-height: var(--tap);
  padding: 0 var(--space-3); border-radius: var(--radius-md); border: var(--border-w) solid var(--color-border);
  background: var(--color-surface); color: var(--color-text); text-decoration: none; font-weight: var(--weight-medium);
}
.pagination [aria-current="page"] { background: var(--primary-700); border-color: var(--primary-700); color: var(--neutral-0); }

/* ---------- Gallery base ---------- */
.gallery { display: grid; gap: var(--space-2); }
.gallery__main { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius-lg); background: var(--color-surface-sunken); }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__count { position: absolute; right: var(--space-3); bottom: var(--space-3); padding: var(--space-1) var(--space-3); border-radius: var(--radius-pill); background: var(--overlay-strong); color: var(--neutral-0); font-size: var(--text-xs); font-weight: var(--weight-semibold); }
.gallery__zoom { position: absolute; right: var(--space-3); top: var(--space-3); }
.gallery__main [data-gallery-main] { cursor: zoom-in; }
.lightbox { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: var(--neutral-950); color: var(--neutral-0); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr; }
.lightbox::backdrop { background: var(--neutral-950); }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) var(--space-4); }
.lightbox__count { font-size: var(--text-sm); font-weight: var(--weight-semibold); }
.lightbox__img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: var(--space-12); height: var(--space-12); border: 0; border-radius: var(--radius-pill); background: var(--overlay-strong); color: var(--neutral-0); font-size: var(--text-2xl); line-height: 1; cursor: pointer; }
.lightbox__nav:focus-visible { outline: 2px solid var(--neutral-0); outline-offset: 2px; }
.lightbox__nav--prev { left: var(--space-3); }
.lightbox__nav--next { right: var(--space-3); }
.gallery__thumbs { display: flex; gap: var(--space-2); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.gallery__thumb { flex: 0 0 calc(var(--space-20) + var(--space-4)); aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; scroll-snap-align: start; border: 2px solid transparent; padding: 0; background: none; cursor: pointer; }
.gallery__thumb[aria-current="true"] { border-color: var(--primary-600); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.media-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: var(--neutral-400); background: var(--color-surface-sunken); }

/* ---------- Error page ---------- */
.error-page { padding-block: var(--space-16); }
.error-page__code { margin: 0; font-size: var(--text-display); line-height: var(--lh-display); font-weight: var(--weight-bold); color: var(--primary-300); }
.error-page__title { font-size: var(--text-2xl); }
.error-page__message { color: var(--color-text-muted); font-size: var(--text-lg); }
.error-page__actions { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-6); }
.error-page__ref { margin-top: var(--space-8); font-size: var(--text-sm); color: var(--color-text-muted); }
.error-page__debug { margin-top: var(--space-6); padding: var(--space-4); overflow-x: auto; background: var(--neutral-900); color: var(--neutral-100); border-radius: var(--radius-md); font-size: var(--text-xs); }

/* ---------- Design system showcase (non-production only) ---------- */
.ds-swatches { display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--col-xs)), 1fr)); }
.ds-swatch { border-radius: var(--radius-md); border: var(--border-w) solid var(--color-border); overflow: hidden; font-size: var(--text-xs); background: var(--color-surface); }
.ds-swatch__color { height: var(--space-12); }
.ds-swatch__label { padding: var(--space-2); font-family: var(--font-mono); }
.ds-block { margin-bottom: var(--space-10); }
.ds-block > * + * { margin-top: var(--space-4); }

/* ---------- Forms: auth / account / business (form column is the allowed width exception) ---------- */
.form-card { max-width: var(--w-form); }
.form-card--follow { margin-top: var(--space-4); }
.form-card__foot { margin: var(--space-4) 0 0; font-size: var(--text-sm); color: var(--color-text-muted); text-align: center; }
.fieldset { border: none; margin: 0 0 var(--space-4); padding: 0; min-width: 0; }
.form-card--wide { max-width: none; }
.form-section { display: block; width: 100%; padding: 0 0 var(--space-2); margin-bottom: var(--space-4); border-bottom: var(--border-w) solid var(--color-border); font-size: var(--text-lg); line-height: var(--lh-lg); font-weight: var(--weight-semibold); }
.fieldset + .fieldset { margin-top: var(--space-6); }
.check-grid { display: grid; gap: 0 var(--space-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--col-md)), 1fr)); }
.form-row > .check { align-self: end; }
.fieldset legend { padding: 0; margin-bottom: var(--space-1); }
.select--sm { min-height: var(--space-8); padding-block: 0; font-size: var(--text-sm); width: auto; }
.card__title { font-size: var(--text-lg); line-height: var(--lh-lg); margin-bottom: var(--space-3); }
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.link-button { background: none; border: none; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; font-size: inherit; }
.header-register { display: none; }
@media (min-width: 40rem) { .header-register { display: inline-flex; } }
.site-header__actions .btn .icon { width: var(--space-5); height: var(--space-5); }

/* ---------- Listings: cards, grids, search, detail ---------- */
.listing-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--col-xl)), 1fr)); }
.listing-card { display: flex; flex-direction: column; background: var(--color-surface); border: var(--border-w) solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow var(--dur) var(--ease); }
.listing-card:hover { box-shadow: var(--shadow-md); }
.listing-card__media { position: relative; display: block; aspect-ratio: 3 / 2; background: var(--color-surface-sunken); }
.listing-card__media img { width: 100%; height: 100%; object-fit: cover; }
.listing-card__body { display: grid; gap: var(--space-1); padding: var(--space-4); }
.listing-card__title { margin: 0; font-size: var(--text-base); line-height: var(--lh-base); }
.listing-card__title a { color: var(--color-text); text-decoration: none; }
.listing-card__title a:hover { text-decoration: underline; }
.listing-card__meta { margin: 0; font-size: var(--text-sm); color: var(--color-text-muted); display: flex; align-items: center; gap: var(--space-1); }
.listing-card__meta .icon { width: var(--space-4); height: var(--space-4); }
.listing-card__price, .listing-price { margin: var(--space-1) 0 0; font-weight: var(--weight-bold); font-size: var(--text-lg); color: var(--color-text); }
.listing-card__price span, .listing-price span { font-weight: var(--weight-regular); font-size: var(--text-sm); color: var(--color-text-muted); }
.listing-price { font-size: var(--text-2xl); line-height: var(--lh-2xl); margin: 0; }
.search-layout, .listing-layout { display: grid; gap: var(--space-6); align-items: start; }
@media (min-width: 64rem) {
  .search-layout { grid-template-columns: var(--col-xl) 1fr; }
  .listing-layout { grid-template-columns: 1fr var(--w-dialog); }
  .listing-aside { position: sticky; top: calc(var(--header-h) + var(--space-4)); }
}
.spec-list { display: grid; gap: var(--space-2); margin: 0 0 var(--space-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--col-lg)), 1fr)); }
.spec-list > div { display: flex; justify-content: space-between; gap: var(--space-3); padding-bottom: var(--space-2); border-bottom: var(--border-w) solid var(--color-border); }
.spec-list dt { color: var(--color-text-muted); font-size: var(--text-sm); }
.spec-list dd { margin: 0; font-weight: var(--weight-medium); text-align: right; }
.listing-aside .spec-list { grid-template-columns: 1fr; }
.photo-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--col-md)), 1fr)); }
.photo-grid__item { position: relative; display: grid; gap: var(--space-2); }
.photo-grid__item img, .photo-grid__item .media-placeholder { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-md); }
.photo-grid__cover { position: absolute; top: var(--space-2); left: var(--space-2); }
.hero-search { display: grid; gap: var(--space-3); align-items: end; padding: var(--space-4); border-radius: var(--radius-lg); background: var(--color-surface); color: var(--color-text); box-shadow: var(--shadow-lg); }
.hero-search .field { margin: 0; }
@media (min-width: 48rem) { .hero-search { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hero-search > .btn { grid-column: 1 / -1; } }
@media (min-width: 64rem) { .hero-search { grid-template-columns: var(--col-md) minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto; } .hero-search > .btn { grid-column: auto; } }
.org-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--col-lg)), 1fr)); list-style: none; margin: 0; padding: 0; }
.org-card { display: flex; gap: var(--space-3); align-items: center; }
.org-card .org-logo { width: var(--space-12); height: var(--space-12); flex: none; }

/* ---------- Availability calendar ---------- */
.cal-months { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--col-xl)), 1fr)); }
.cal { width: 100%; border-collapse: collapse; font-size: var(--text-sm); text-align: center; }
.cal caption { font-weight: var(--weight-semibold); padding-bottom: var(--space-2); text-align: left; }
.cal th { color: var(--color-text-muted); font-weight: var(--weight-medium); padding: var(--space-1) 0; }
.cal__day { padding: var(--space-1) 0; border-radius: var(--radius-sm); }
.cal__day--busy { background: var(--danger-50); color: var(--danger-700); text-decoration: line-through; }
.cal__day--past { color: var(--neutral-400); }
.cal-legend { display: inline-block; width: var(--space-3); height: var(--space-3); border-radius: var(--radius-sm); vertical-align: middle; }
.cal-legend--busy { background: var(--danger-50); border: var(--border-w) solid var(--danger-600); }
.quote:empty { display: none; }
.quote { margin: 0; padding: var(--space-3); border-radius: var(--radius-md); background: var(--color-surface-sunken); font-size: var(--text-sm); }

/* ---------- Panel stats ---------- */
.stat-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--col-sm)), 1fr)); }
.stat a, .stat__box { display: grid; gap: var(--space-1); padding: var(--space-4); border-radius: var(--radius-lg); background: var(--color-surface); border: var(--border-w) solid var(--color-border); color: var(--color-text); text-decoration: none; }
.stat a:hover { box-shadow: var(--shadow-md); }
.stat__value { font-size: var(--text-2xl); line-height: var(--lh-2xl); font-weight: var(--weight-bold); }
.stat__label { font-size: var(--text-sm); color: var(--color-text-muted); }
meter { width: var(--col-xs); vertical-align: middle; }

/* ---------- Messaging ---------- */
.thread { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.thread__msg { max-width: min(100%, var(--w-dialog)); padding: var(--space-3) var(--space-4); border-radius: var(--radius-lg); background: var(--color-surface); border: var(--border-w) solid var(--color-border); }
.thread__msg--mine { justify-self: end; background: var(--primary-50); border-color: var(--primary-100); color: var(--neutral-900); }
.thread__msg p { margin: 0; }
.thread__meta { font-size: var(--text-xs); color: var(--color-text-muted); margin-bottom: var(--space-1) !important; }
.thread__msg--mine .thread__meta { color: var(--neutral-600); }
.disclosure > summary { cursor: pointer; list-style: none; }
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure[open] > summary { margin-bottom: var(--space-3); }

/* ---------- Business panel sub-navigation ---------- */
.panel-nav { background: var(--color-surface); border-bottom: var(--border-w) solid var(--color-border); }
.panel-nav__inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); padding-block: var(--space-2); }
.panel-nav__org { margin: 0; font-weight: var(--weight-semibold); display: flex; align-items: center; gap: var(--space-2); }
.panel-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-1); }

/* ---------- Legal pages (corporate text: full container width — global rule) ---------- */
.legal h2 { margin-top: var(--space-8); }
.legal ul { padding-left: var(--space-5); margin: 0 0 var(--space-4); }
.legal li + li { margin-top: var(--space-2); }
.legal__meta { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: var(--space-4); }

/* ---------- Cookie banner (equal-weight choices) ---------- */
.cookie-banner {
  position: fixed; inset: auto 0 0 0; z-index: var(--z-banner);
  background: var(--color-surface-raised); border-top: var(--border-w) solid var(--color-border-strong); box-shadow: var(--shadow-lg);
  padding-bottom: env(safe-area-inset-bottom);
}
body.has-bottom-nav .cookie-banner { bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom)); }
.cookie-banner__inner { display: grid; gap: var(--space-3); padding-block: var(--space-4); }
.cookie-banner__title { font-size: var(--text-base); line-height: var(--lh-base); margin-bottom: var(--space-1); }
.cookie-banner__text p { margin: 0; font-size: var(--text-sm); line-height: var(--lh-sm); }
.cookie-banner__actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
@media (min-width: 48rem) {
  .cookie-banner__inner { grid-template-columns: 1fr auto; align-items: center; gap: var(--space-6); }
  .cookie-banner__actions { display: flex; }
  .cookie-banner__actions .btn { min-width: var(--col-xs); }
}
@media (min-width: 64rem) { body.has-bottom-nav .cookie-banner { bottom: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}

/* ---- Guide / content (PHASE 12) ---- */
.post-grid { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--col-xl)), 1fr)); }
.post-card { display: flex; flex-direction: column; background: var(--color-surface-raised); border: var(--border-w) solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.post-card__img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--color-surface-sunken); }
.post-card__body { display: grid; gap: var(--space-2); padding: var(--space-5); }
.post-card__meta { margin: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; font-size: var(--text-sm); color: var(--color-text-muted); }
.post-card__title { margin: 0; font-size: var(--text-lg); line-height: var(--lh-lg); }
.post-card__title a { color: var(--color-text); text-decoration: none; }
.post-card__title a:hover { color: var(--color-link); text-decoration: underline; }
.post-card__excerpt { margin: 0; color: var(--color-text-muted); }
.post-meta { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); align-items: center; margin: var(--space-3) 0 0; font-size: var(--text-sm); color: var(--color-text-muted); }
.article-layout { display: grid; gap: var(--space-8); align-items: start; }
@media (min-width: 64rem) { .article-layout { grid-template-columns: minmax(0, 1fr) var(--w-dialog); } .article-layout > aside { position: sticky; top: calc(var(--header-h) + var(--space-4)); } }
.prose { font-size: var(--text-lg); line-height: var(--lh-lg); }
.prose > * + * { margin-top: var(--space-4); }
.prose h2 { margin-top: var(--space-10); scroll-margin-top: calc(var(--header-h) + var(--space-4)); }
.prose h3 { margin-top: var(--space-8); scroll-margin-top: calc(var(--header-h) + var(--space-4)); }
.prose ul, .prose ol { padding-left: var(--space-6); }
.prose li + li { margin-top: var(--space-2); }
.prose blockquote { margin-inline: 0; padding: var(--space-3) var(--space-5); border-left: var(--space-1) solid var(--primary-500); background: var(--color-surface-sunken); border-radius: var(--radius-sm); }
.prose__cover { width: 100%; height: auto; border-radius: var(--radius-lg); }
.toc__item--3 { padding-left: var(--space-4); font-size: var(--text-sm); }
.textarea--code { font-family: var(--font-mono); font-size: var(--text-sm); }

/* ---- Compare & recently viewed (PHASE 18) ---- */
.compare-bar { position: fixed; z-index: var(--z-bottom-nav); right: var(--space-4); bottom: calc(var(--bottom-nav-h) + var(--space-4)); box-shadow: var(--shadow-md); border-radius: var(--radius-md); }
@media (min-width: 48rem) { .compare-bar { bottom: var(--space-6); } }
.compare-table th[scope="col"] { vertical-align: top; min-width: var(--col-lg); }
.compare-table__img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: var(--space-2); }
.compare-table th[scope="row"] { color: var(--color-text-muted); font-weight: var(--weight-medium); white-space: nowrap; }
.recent-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--col-md)), 1fr)); }
.recent-list__item { display: grid; gap: var(--space-2); color: var(--color-text); text-decoration: none; font-weight: var(--weight-medium); }
.recent-list__item img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-md); background: var(--color-surface-sunken); }
.recent-list__item:hover span { color: var(--color-link); text-decoration: underline; }
.recovery-codes { grid-template-columns: repeat(auto-fill, minmax(var(--col-sm), 1fr)); }
.secret-key { word-break: break-all; }

/* ---- Fleet calendar (PHASE 19) ---- */
.fleet-calendar th, .fleet-calendar td { text-align: center; padding: var(--space-1); font-size: var(--text-sm); }
.fleet-calendar th[scope="row"] { text-align: left; white-space: nowrap; min-width: var(--col-md); position: sticky; left: 0; background: var(--color-surface); }
.fleet-calendar thead th[aria-current="date"] { color: var(--primary-700); text-decoration: underline; }
.fleet-cell { min-width: var(--space-12); border: var(--border-w) solid var(--color-border); }
.fleet-cell a, .fleet-cell span { color: inherit; text-decoration: none; font-weight: var(--weight-medium); }
.fleet-cell--booking { background: var(--primary-100); color: var(--primary-900); }
.fleet-cell--buffer { background: var(--neutral-100); color: var(--neutral-800); }
.fleet-cell--block { background: var(--accent-100); color: var(--accent-900); }
.fleet-legend .fleet-cell { padding: var(--space-1) var(--space-2); border-radius: var(--radius-sm); }

/* ---- Printable quote (PHASE 20) ---- */
.quote-doc__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-4); border-bottom: var(--border-w) solid var(--color-border); padding-bottom: var(--space-4); }
.quote-doc__table .num { text-align: right; white-space: nowrap; }
@media print {
  .site-header, .site-footer, .bottom-nav, .cookie-banner, .toast-region, .compare-bar, .no-print, .skip-link { display: none !important; }
  body { background: var(--neutral-0); color: var(--neutral-900); padding: 0; }
  .section { padding: 0; }
  a { color: inherit; text-decoration: none; }
}

/* ---- Reviews (PHASE 21) ---- */
.stars { white-space: nowrap; color: var(--accent-700); font-weight: var(--weight-semibold); }
.stars__value { color: var(--color-text); }
.review + .review { border-top: var(--border-w) solid var(--color-border); padding-top: var(--space-4); }
.review__reply { margin: var(--space-2) 0 0; padding: var(--space-3) var(--space-4); border-left: var(--space-1) solid var(--primary-500); background: var(--color-surface-sunken); border-radius: var(--radius-sm); }

/* ---- Handover records (PHASE 23) ---- */
.checklist-grid { display: grid; gap: var(--space-1) var(--space-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--col-lg)), 1fr)); }
.checklist { columns: 2; column-gap: var(--space-6); }

/* ---- QR code (PHASE 25): always dark-on-light so phones can scan it in dark mode too ---- */
.qr-wrap { display: flex; justify-content: center; }
.qr { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.qr__light { fill: var(--neutral-0); }
.qr__dark { fill: var(--neutral-950); }

.cover-preview { display: block; width: 100%; max-width: var(--col-xl); height: auto; margin-top: var(--space-2); border-radius: var(--radius-sm); }

/* ---- Store profile ---- */
.store-cover { display: block; width: 100%; height: auto; aspect-ratio: 10 / 3; object-fit: cover; border-radius: var(--radius-lg); background: var(--color-surface-sunken); }
.store-profile { display: grid; gap: var(--space-4); grid-template-columns: auto minmax(0, 1fr); align-items: start; }
.org-logo { width: var(--space-20); height: var(--space-20); object-fit: contain; border-radius: var(--radius-md); background: var(--neutral-0); border: var(--border-w) solid var(--color-border); }
@media (max-width: 40rem) { .store-profile { grid-template-columns: 1fr; } }

/* Listing detail: meta row + mobile sticky call to action (hidden on wide screens where the aside is sticky). */
.listing-meta { margin-top: var(--space-2); }
.listing-cta { position: sticky; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) var(--space-4); background: var(--color-surface); border-top: var(--border-w) solid var(--color-border); box-shadow: var(--shadow-lg); }
.listing-cta__price { margin: 0; font-weight: var(--weight-semibold); font-size: var(--text-lg); }
.listing-cta__price span { font-size: var(--text-sm); font-weight: var(--weight-regular); color: var(--color-text-muted); }
@media (min-width: 64rem) { .listing-cta { display: none; } }
.model-card__img { width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; border-radius: var(--radius-md); margin-bottom: var(--space-3); }
.seo-intro { margin-top: var(--space-3); }
