/* public/css/shop.css — tokens + components (SPEC §7.1). Frozen after WP F; page CSS lives in shop-pages.css etc. */

:root {
  --c-primary: #1f2937;
  --c-accent: #b45309;
  --c-bg: #fff;
  --c-surface: #f7f7f8;
  --c-text: #111827;
  --c-muted: #6b7280;
  --c-border: #e5e7eb;
  --c-success: #15803d;
  --c-success-bg: #dcfce7;
  --c-danger: #b91c1c;
  --c-danger-bg: #fee2e2;
  --c-warning: #a16207;
  --c-warning-bg: #fef3c7;
  --c-info: #1d4ed8;
  --c-info-bg: #dbeafe;
  --c-focus: #2563eb;
  --radius: 10px;
  --radius-sm: 6px;
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-sm: 0.875rem;
  --fs-xs: 0.8125rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.375rem;
  --fs-2xl: 1.75rem;
  --shadow: 0 1px 2px rgba(17, 24, 39, 0.06), 0 1px 6px rgba(17, 24, 39, 0.05);
  --control-h: 44px;
  --max-w: 1200px;
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.5; color: var(--c-text); background: var(--c-bg); min-height: 100vh; display: flex; flex-direction: column; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--c-accent); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 var(--s-3); font-weight: 700; color: var(--c-text); }
h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
h4, .h4 { font-size: 1rem; }
p { margin: 0 0 var(--s-3); }
ul, ol { margin: 0 0 var(--s-3); padding-left: 1.25rem; }
hr { border: 0; border-top: 1px solid var(--c-border); margin: var(--s-5) 0; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; background: var(--c-surface); padding: 0 var(--s-1); border-radius: 4px; }
abbr[title] { text-decoration: underline dotted; cursor: help; }
s { color: var(--c-muted); }
table { border-collapse: collapse; width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; }
.muted { color: var(--c-muted); }
.small, .text-sm { font-size: var(--fs-sm); }
.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); border: 0; white-space: nowrap; }
.skip-link { position: absolute; left: var(--s-2); top: -100px; background: var(--c-primary); color: #fff; padding: var(--s-2) var(--s-3); border-radius: var(--radius-sm); z-index: 1000; }
.skip-link:focus { top: var(--s-2); }
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--s-4); }
.container-narrow { max-width: 640px; }
.site-main, .plain-main { flex: 1; padding: var(--s-5) 0 var(--s-7); }
.site-main:focus, .plain-main:focus { outline: none; }
.inline-form { display: inline; }
.live-region:empty { display: none; }

/* ---------- announcement / header ---------- */
.announcement { background: var(--c-accent); color: #fff; text-align: center; padding: var(--s-2) var(--s-4); font-size: var(--fs-sm); font-weight: 600; }
.site-header { position: sticky; top: 0; z-index: 100; background: var(--c-bg); border-bottom: 1px solid var(--c-border); }
.header-inner { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "toggle brand actions" "nav nav nav" "search search search"; align-items: center; gap: var(--s-2) var(--s-3); min-height: 64px; padding-top: var(--s-2); padding-bottom: var(--s-2); }
.nav-toggle { grid-area: toggle; }
.brand { grid-area: brand; display: inline-flex; align-items: center; gap: var(--s-2); text-decoration: none; color: var(--c-text); min-height: var(--control-h); }
.brand-name { font-weight: 800; font-size: var(--fs-lg); letter-spacing: -0.01em; color: var(--c-primary); }
.brand-logo { max-height: 48px; width: auto; }
.header-actions { grid-area: actions; display: flex; align-items: center; gap: var(--s-1); }
.site-nav { grid-area: nav; display: none; }
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-1); }
.site-nav a { display: block; padding: var(--s-2) var(--s-3); min-height: var(--control-h); line-height: 28px; text-decoration: none; font-weight: 600; color: var(--c-text); border-radius: var(--radius-sm); }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--c-surface); color: var(--c-primary); }
.site-search { grid-area: search; display: none; gap: var(--s-2); }
.site-search.is-open { display: flex; }
.site-search .input { flex: 1; min-width: 0; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: var(--control-h); height: var(--control-h); border: 0; background: transparent; border-radius: var(--radius-sm); color: var(--c-text); position: relative; text-decoration: none; }
.icon-btn:hover { background: var(--c-surface); color: var(--c-primary); }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cart-count { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--c-accent); color: #fff; font-size: 0.75rem; font-weight: 700; line-height: 20px; text-align: center; }
.cart-count.is-empty { display: none; }

@media (min-width: 960px) {
  .header-inner { grid-template-columns: auto 1fr minmax(200px, 320px) auto; grid-template-areas: "brand nav search actions"; }
  .nav-toggle, .search-toggle { display: none; }
  .site-nav { display: block; }
  .site-nav ul { flex-direction: row; flex-wrap: wrap; }
  .site-search { display: flex; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--c-surface); border-top: 1px solid var(--c-border); padding: var(--s-6) 0 var(--s-4); font-size: var(--fs-sm); color: var(--c-muted); }
.footer-inner { display: grid; gap: var(--s-5); }
.footer-brand { font-weight: 700; color: var(--c-text); font-size: 1rem; }
.footer-heading { font-weight: 700; color: var(--c-text); margin-bottom: var(--s-2); }
.footer-address { font-style: normal; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-1); }
.footer-links a { color: var(--c-muted); }
.footer-links-inline { flex-direction: row; flex-wrap: wrap; gap: var(--s-3); justify-content: center; }
.payment-badges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.payment-badge { border: 1px solid var(--c-border); border-radius: var(--radius-sm); padding: var(--s-1) var(--s-2); background: #fff; color: var(--c-text); font-weight: 600; }
.footer-bottom { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--c-border); }
.footer-bottom p { margin: 0; }
@media (min-width: 640px) { .footer-inner { grid-template-columns: repeat(3, 1fr); } }
.plain-header { border-bottom: 1px solid var(--c-border); padding: var(--s-3) 0; }
.plain-footer { border-top: 1px solid var(--c-border); padding: var(--s-4) 0; font-size: var(--fs-sm); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: var(--control-h); padding: 0 var(--s-5); border-radius: var(--radius-sm); border: 1px solid transparent; font-weight: 600; text-decoration: none; line-height: 1.2; cursor: pointer; transition: background-color 0.15s, color 0.15s, border-color 0.15s; white-space: nowrap; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.btn-primary:hover { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.btn-secondary { background: #fff; color: var(--c-primary); border-color: var(--c-border); }
.btn-secondary:hover { background: var(--c-surface); color: var(--c-primary); }
.btn-danger { background: var(--c-danger); color: #fff; border-color: var(--c-danger); }
.btn-danger:hover { background: #991b1b; border-color: #991b1b; color: #fff; }
.btn-link { background: none; border: 0; color: var(--c-primary); text-decoration: underline; padding: 0 var(--s-2); min-height: var(--control-h); }
.btn-link:hover { color: var(--c-accent); }
.btn-sm { min-height: 36px; padding: 0 var(--s-3); font-size: var(--fs-sm); }
.btn-block { width: 100%; }
.btn-lg { min-height: 52px; font-size: var(--fs-lg); }
.btn-icon { width: var(--control-h); padding: 0; }
.btn-group { display: flex; flex-wrap: wrap; gap: var(--s-2); }

/* ---------- forms ---------- */
.form { display: flex; flex-direction: column; gap: var(--s-4); }
.form-field { display: flex; flex-direction: column; gap: var(--s-1); margin-bottom: var(--s-3); }
.form-field label, .form-label { font-weight: 600; font-size: var(--fs-sm); }
.label-hint { font-weight: 400; color: var(--c-muted); }
.required-mark { color: var(--c-danger); }
.input, .select, .textarea { width: 100%; min-height: var(--control-h); padding: var(--s-2) var(--s-3); border: 1px solid #9ca3af; border-radius: var(--radius-sm); background: #fff; color: var(--c-text); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--c-focus); outline: 3px solid rgba(37, 99, 235, 0.25); outline-offset: 0; }
.textarea { min-height: 120px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right var(--s-3) center; background-size: 18px; padding-right: var(--s-6); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"], .has-error .input, .has-error .select, .has-error .textarea { border-color: var(--c-danger); }
.field-error { color: var(--c-danger); font-size: var(--fs-sm); margin: 0; }
.field-hint { color: var(--c-muted); font-size: var(--fs-sm); margin: 0; }
.form-row { display: grid; gap: var(--s-3); }
.form-row > .form-field { margin-bottom: 0; }
.form-row { margin-bottom: var(--s-3); }
@media (min-width: 640px) { .form-row-2 { grid-template-columns: 1fr 1fr; } .form-row-zip-city { grid-template-columns: minmax(120px, 1fr) 2fr; } }
.check { display: flex; align-items: flex-start; gap: var(--s-2); min-height: var(--control-h); padding: var(--s-2) 0; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--c-primary); }
.check label { font-weight: 400; }
.check.has-error label { color: var(--c-danger); }
fieldset { border: 0; padding: 0; margin: 0 0 var(--s-4); min-width: 0; }
legend { font-weight: 700; padding: 0; margin-bottom: var(--s-2); }
.field-errors { border: 2px solid var(--c-danger); background: var(--c-danger-bg); color: var(--c-danger); border-radius: var(--radius-sm); padding: var(--s-3) var(--s-4); margin-bottom: var(--s-4); }
.field-errors:focus { outline-offset: 2px; }
.field-errors-title { font-weight: 700; margin-bottom: var(--s-1); }
.field-errors ul { margin: 0; padding-left: 1.2rem; }
.field-errors a { color: var(--c-danger); }
.privacy-note { font-size: var(--fs-sm); color: var(--c-muted); }

/* chips (radio variant options) */
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip label { display: inline-flex; align-items: center; min-height: var(--control-h); padding: 0 var(--s-4); border: 1px solid #9ca3af; border-radius: 999px; background: #fff; font-weight: 500; cursor: pointer; }
.chip input:checked + label { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.chip input:focus-visible + label { outline: 3px solid var(--c-focus); outline-offset: 2px; }
.chip.is-unavailable label, .chip.is-soldout label { text-decoration: line-through; color: var(--c-muted); background: var(--c-surface); }
.chip.is-unavailable input:checked + label, .chip.is-soldout input:checked + label { background: var(--c-muted); border-color: var(--c-muted); color: #fff; }

/* qty stepper */
.qty { display: inline-flex; align-items: stretch; border: 1px solid #9ca3af; border-radius: var(--radius-sm); overflow: hidden; }
.qty button { width: var(--control-h); min-height: var(--control-h); border: 0; background: var(--c-surface); font-size: var(--fs-lg); font-weight: 700; color: var(--c-text); }
.qty button:hover { background: var(--c-border); }
.qty input { width: 64px; min-height: var(--control-h); border: 0; border-left: 1px solid var(--c-border); border-right: 1px solid var(--c-border); text-align: center; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { outline-offset: -3px; }

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; gap: var(--s-1); padding: 2px var(--s-2); border-radius: 999px; font-size: var(--fs-xs); font-weight: 700; line-height: 1.4; background: var(--c-surface); color: var(--c-text); border: 1px solid var(--c-border); white-space: nowrap; }
.badge-ok { background: var(--c-success-bg); color: var(--c-success); border-color: transparent; }
.badge-low { background: var(--c-warning-bg); color: var(--c-warning); border-color: transparent; }
.badge-out { background: var(--c-danger-bg); color: var(--c-danger); border-color: transparent; }
.badge-order-new, .badge-attempt-created { background: var(--c-info-bg); color: var(--c-info); border-color: transparent; }
.badge-order-processing, .badge-payment-pending, .badge-attempt-pending, .badge-attempt-approved, .badge-attempt-review { background: var(--c-warning-bg); color: var(--c-warning); border-color: transparent; }
.badge-order-shipped { background: #e0e7ff; color: #3730a3; border-color: transparent; }
.badge-order-completed, .badge-payment-paid, .badge-attempt-paid, .badge-product-active, .badge-customer-active { background: var(--c-success-bg); color: var(--c-success); border-color: transparent; }
.badge-order-cancelled, .badge-payment-unpaid, .badge-payment-cancelled, .badge-attempt-cancelled, .badge-attempt-expired, .badge-product-draft, .badge-product-archived, .badge-customer-disabled { background: var(--c-surface); color: var(--c-muted); }
.badge-payment-failed, .badge-attempt-failed { background: var(--c-danger-bg); color: var(--c-danger); border-color: transparent; }
.badge-payment-refunded { background: #f3e8ff; color: #6b21a8; border-color: transparent; }

/* ---------- flash / notices ---------- */
.flash, .notice { display: flex; align-items: flex-start; gap: var(--s-2); padding: var(--s-3) var(--s-4); border-radius: var(--radius-sm); border: 1px solid var(--c-border); background: var(--c-surface); margin-bottom: var(--s-4); }
.flash-success, .notice-success { background: var(--c-success-bg); color: var(--c-success); border-color: transparent; }
.flash-info, .notice-info { background: var(--c-info-bg); color: var(--c-info); border-color: transparent; }
.flash-warning, .notice-warning { background: var(--c-warning-bg); color: var(--c-warning); border-color: transparent; }
.flash-error, .notice-error { background: var(--c-danger-bg); color: var(--c-danger); border-color: transparent; }
.flash-label { font-weight: 700; }
.flash-message { flex: 1; }
.flash-close { margin-left: auto; border: 0; background: transparent; font-size: 1.25rem; line-height: 1; color: inherit; width: 32px; height: 32px; border-radius: var(--radius-sm); }
.flash a, .notice a { color: inherit; font-weight: 600; }
.toast-stack { position: fixed; left: var(--s-4); right: var(--s-4); bottom: var(--s-4); z-index: 500; display: flex; flex-direction: column; gap: var(--s-2); pointer-events: none; }
.toast { pointer-events: auto; background: var(--c-text); color: #fff; padding: var(--s-3) var(--s-4); border-radius: var(--radius-sm); box-shadow: var(--shadow); display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.toast a { color: #fff; font-weight: 700; }
@media (min-width: 640px) { .toast-stack { left: auto; width: 420px; } }

/* ---------- cards / grid / product card ---------- */
.card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: var(--s-4); box-shadow: var(--shadow); }
.card + .card { margin-top: var(--s-4); }
.card-title { margin-bottom: var(--s-3); }
.surface { background: var(--c-surface); border-radius: var(--radius); padding: var(--s-4); }
.grid { display: grid; gap: var(--s-4); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); } }
.grid-2 { display: grid; gap: var(--s-4); }
@media (min-width: 960px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.product-grid { list-style: none; margin: 0; padding: 0; }
.product-card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; height: 100%; transition: box-shadow 0.15s, border-color 0.15s; }
.product-card:hover, .product-card:focus-within { box-shadow: var(--shadow); border-color: #cbd5e1; }
.product-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.product-card-link:focus-visible { outline-offset: -3px; }
.product-card-media { aspect-ratio: 1 / 1; background: var(--c-surface); }
.product-card-media img { width: 100%; height: 100%; object-fit: cover; }
.product-card-body { padding: var(--s-3); display: flex; flex-direction: column; gap: var(--s-1); flex: 1; }
.product-card-title { font-size: 1rem; margin: 0; font-weight: 600; }
.product-card-subtitle { margin: 0; color: var(--c-muted); font-size: var(--fs-sm); }
.product-card-availability { margin-top: auto; padding-top: var(--s-2); }

/* ---------- price ---------- */
.price { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-1) var(--s-2); }
.price-current { font-weight: 700; }
.price-lg .price-current { font-size: var(--fs-2xl); }
.price-uvp { color: var(--c-muted); font-size: var(--fs-sm); }
.price-base { color: var(--c-muted); font-size: var(--fs-sm); flex-basis: 100%; }
.price-note { color: var(--c-muted); font-size: var(--fs-sm); margin: var(--s-1) 0 0; }

/* ---------- tables ---------- */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table th, .table td { padding: var(--s-2) var(--s-3); border-bottom: 1px solid var(--c-border); text-align: left; vertical-align: top; }
.table thead th { font-size: var(--fs-sm); color: var(--c-muted); font-weight: 600; background: var(--c-surface); }
.table tfoot th, .table tfoot td { border-bottom: 0; }
.table tfoot th { text-align: right; font-weight: 500; }
.table .order-total th, .table .order-total td { font-weight: 800; font-size: var(--fs-lg); border-top: 2px solid var(--c-border); }
.table .order-tax td { color: var(--c-muted); font-size: var(--fs-sm); text-align: right; padding-top: 0; }
.table-compact th, .table-compact td { padding: var(--s-1) var(--s-2); font-size: var(--fs-sm); }
.order-item-title { font-weight: 600; display: block; }
.order-item-sub, .order-item-variant, .order-item-sku, .order-item-base, .order-item-delivery { display: block; color: var(--c-muted); font-size: var(--fs-sm); }

/* ---------- order summary / addresses ---------- */
.order-summary-head { display: grid; gap: var(--s-1); margin-bottom: var(--s-4); }
.order-summary-head p { margin: 0; }
.order-summary-head .label { color: var(--c-muted); }
.order-summary-status { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.order-addresses { display: grid; gap: var(--s-4); margin-top: var(--s-5); }
@media (min-width: 640px) { .order-addresses { grid-template-columns: 1fr 1fr; } }
.address { font-style: normal; }
.address-line { display: block; }
.address-phone { color: var(--c-muted); }
.order-contact { color: var(--c-muted); font-size: var(--fs-sm); margin-top: var(--s-2); }
.order-meta { display: grid; grid-template-columns: max-content 1fr; gap: var(--s-1) var(--s-4); margin: var(--s-4) 0 0; }
.order-meta dt { color: var(--c-muted); }
.order-meta dd { margin: 0; }
.order-waiver { margin-top: var(--s-4); padding: var(--s-3) var(--s-4); background: var(--c-warning-bg); border-radius: var(--radius-sm); font-size: var(--fs-sm); }
.order-waiver p { margin: 0; }
.order-waiver-label { font-weight: 700; }
.order-waiver-date { color: var(--c-muted); }
.order-payments { margin-top: var(--s-5); }

/* ---------- checkout layout ---------- */
.checkout { display: grid; gap: var(--s-5); }
.checkout-summary { position: static; }
@media (min-width: 960px) {
  .checkout { grid-template-columns: minmax(0, 1fr) 400px; align-items: start; }
  .checkout-summary { position: sticky; top: 88px; }
}
.summary-line { display: flex; justify-content: space-between; gap: var(--s-3); padding: var(--s-1) 0; }
.summary-total { font-weight: 800; font-size: var(--fs-lg); border-top: 2px solid var(--c-border); margin-top: var(--s-2); padding-top: var(--s-2); }
.summary-tax { color: var(--c-muted); font-size: var(--fs-sm); }
.consent-text { font-size: var(--fs-sm); color: var(--c-muted); }

/* ---------- pagination ---------- */
.pagination { margin: var(--s-5) 0; text-align: center; }
.pagination ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-1); }
.page-link { display: inline-flex; align-items: center; justify-content: center; min-width: var(--control-h); min-height: var(--control-h); padding: 0 var(--s-2); border: 1px solid var(--c-border); border-radius: var(--radius-sm); text-decoration: none; color: var(--c-text); background: #fff; }
.page-link:hover { background: var(--c-surface); }
.page-link.is-current { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.page-link.is-disabled { color: var(--c-muted); opacity: 0.5; }
.page-gap { display: inline-flex; align-items: center; min-height: var(--control-h); padding: 0 var(--s-1); color: var(--c-muted); }
.pagination-info { color: var(--c-muted); font-size: var(--fs-sm); margin: var(--s-2) 0 0; }

/* ---------- misc components ---------- */
.breadcrumb { font-size: var(--fs-sm); color: var(--c-muted); margin-bottom: var(--s-4); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-1); }
.breadcrumb li + li::before { content: "›"; margin: 0 var(--s-1); }
.page-header { margin-bottom: var(--s-5); }
.page-header h1 { margin-bottom: var(--s-1); }
.lead { font-size: var(--fs-lg); color: var(--c-muted); }
.empty-state { text-align: center; padding: var(--s-7) var(--s-4); color: var(--c-muted); }
.prose h2 { margin-top: var(--s-5); }
.prose table { margin-bottom: var(--s-4); }
.prose th, .prose td { border: 1px solid var(--c-border); padding: var(--s-2) var(--s-3); text-align: left; }
.prose blockquote { border-left: 4px solid var(--c-border); margin: 0 0 var(--s-3); padding: var(--s-1) var(--s-4); color: var(--c-muted); }
.stack > * + * { margin-top: var(--s-4); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.split { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); align-items: center; }
.sr-status { font-weight: 600; }

/* error page */
.error-page { text-align: center; padding: var(--s-7) var(--s-4); max-width: 640px; margin: 0 auto; }
.error-status { font-size: 4rem; font-weight: 800; color: var(--c-border); margin: 0; line-height: 1; }
.error-message { font-size: var(--fs-lg); }
.error-fields { list-style: none; padding: 0; color: var(--c-danger); }
.error-id { color: var(--c-muted); font-size: var(--fs-sm); }
.error-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); justify-content: center; margin-top: var(--s-5); }

/* ---------- print ---------- */
@media print {
  .site-header, .site-footer, .announcement, .skip-link, .flash, .toast-stack, .btn, .pagination, .nav-toggle, .search-toggle { display: none !important; }
  body { color: #000; background: #fff; }
  a { color: #000; text-decoration: none; }
  .card { border: 0; box-shadow: none; padding: 0; }
  .table th, .table td { border-bottom: 1px solid #999; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
