/* PepPure — base design system
   Ink-blue, warm ivory, restrained copper. Plain store typography (DM Sans), mono for codes.
   Page-specific layers (collection.css, commerce.css, checkout.css) load after this file. */

:root {
  --ink: #16233f;
  --ink-2: #24365c;
  --ink-soft: #3b4f7a;
  --ivory: #f6f1e7;
  --paper: #fbf8f2;
  --sand: #efe7d8;
  --rule: #d6ccb9;
  --rule-soft: #e6dfd0;
  --text: #16233f;
  --muted: #565f72;
  --copper: #b5602b;
  --copper-text: #96491b;
  --copper-soft: #f3e0d0;
  --ok: #2c6a4c;   --ok-bg: #e2efe6;
  --warn: #85540c; --warn-bg: #f7ead2;
  --bad: #a1302a;  --bad-bg: #f6e0dc;
  --info: #2c5288; --info-bg: #e2e9f4;
  --focus: #b5602b;

  --serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --radius: 4px;
  --space-1: 0.5rem; --space-2: 1rem; --space-3: 1.5rem; --space-4: 2.5rem; --space-5: 4rem; --space-6: clamp(4rem, 9vw, 8rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; } }
body {
  margin: 0; background: var(--ivory); color: var(--text);
  font: 400 1rem/1.6 var(--sans); font-feature-settings: "kern", "liga";
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--copper-text); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
main:focus { outline: none; }
h1, h2, h3, h4 { margin: 0 0 0.5em; font-weight: 500; line-height: 1.15; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
hr { border: 0; border-top: 1px solid var(--rule); }
code, .mono { font-family: var(--mono); font-size: 0.92em; }
address { font-style: normal; }
.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 { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: var(--ivory); padding: 0.6rem 1rem; }
.skip:focus { top: 1rem; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.pre { white-space: pre-wrap; }
.mt-l { margin-top: var(--space-4); }
.mt-m { margin-top: var(--space-3); }
.count { font-family: var(--mono); font-size: 0.78em; color: var(--muted); margin-left: 0.2em; }

/* ---------- type */
/* Headings are plain sans at store scale; the display-* names are kept for existing views. */
.display-1, .display-2, .display-3, .display-4, .display-5 { font-family: var(--sans); color: var(--ink); font-weight: 600; letter-spacing: -0.02em; }
.display-1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1.08; }
.display-2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.12; }
.display-3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.15; }
.display-4 { font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.2; }
.display-5 { font-size: 1.2rem; line-height: 1.25; }
.mono-title { font-family: var(--mono); letter-spacing: 0; font-weight: 500; }
.lede { font-size: clamp(1.02rem, 1.2vw, 1.15rem); line-height: 1.6; color: var(--ink-2); max-width: 42em; }
.eyebrow { display: block; font: 600 0.75rem/1.3 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--copper-text); margin-bottom: 0.75rem; }
/* Numbered eyebrows ("01 —") are retired; the number is no longer shown anywhere. */
.eyebrow__num { display: none; }

/* ---------- layout */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--space-6); }
.section--tight { padding-block: 0 var(--space-5); }
.section--rule { border-top: 1px solid var(--rule); }
.narrow { max-width: 760px; }
.narrow-wide { max-width: 1080px; }
.section__head { display: grid; gap: 0; margin-bottom: var(--space-4); max-width: 900px; }
.page-head { padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: var(--space-4); }
.page-head--split { display: grid; gap: var(--space-4); align-items: end; }
@media (min-width: 900px) { .page-head--split { grid-template-columns: 7fr 5fr; } }
.page-head__art img { width: 100%; max-width: 420px; margin-left: auto; opacity: 0.9; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; margin-top: 1.5rem; }
.actions form { margin: 0; }

/* ---------- buttons & links */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0.75rem 1.5rem; border: 1px solid var(--ink); border-radius: var(--radius);
  background: var(--ink); color: var(--ivory); font: 500 0.95rem/1.2 var(--sans); letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.button:hover { background: var(--ink-2); color: var(--ivory); }
.button--ghost { background: transparent; color: var(--ink); }
.button--ghost:hover { background: var(--ink); color: var(--ivory); }
.button--copper { background: #a3521d; border-color: #a3521d; color: #fff; } /* 5.3:1 with white text */
.button--copper:hover { background: #8a4417; border-color: #8a4417; color: #fff; }
.button--danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.button--danger:hover { background: #82241f; color: #fff; }
.button--small { min-height: 38px; padding: 0.45rem 0.95rem; font-size: 0.88rem; white-space: nowrap; }
.button--block { width: 100%; }
.button[disabled], .button[aria-disabled="true"] { background: var(--rule-soft); border-color: var(--rule); color: #6c6f78; cursor: not-allowed; }
.button.is-busy { opacity: 0.75; cursor: progress; }
.text-link { color: var(--ink); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--copper); padding-bottom: 1px; }
.text-link:hover { color: var(--copper-text); }
.link-button { background: none; border: 0; padding: 0; color: var(--ink); font: inherit; text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; }
.link-button:hover { color: var(--copper-text); }

/* ---------- badges, notices, missing data */
.badge { display: inline-flex; align-items: center; gap: 0.3em; padding: 0.18rem 0.55rem; border-radius: 999px; font: 500 0.72rem/1.3 var(--sans); letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; vertical-align: middle; border: 1px solid transparent; }
.badge--ok { background: var(--ok-bg); color: var(--ok); }
.badge--warn { background: var(--warn-bg); color: var(--warn); }
.badge--bad { background: var(--bad-bg); color: var(--bad); }
.badge--info { background: var(--info-bg); color: var(--info); }
.badge--muted { background: var(--rule-soft); color: #4f5566; }
.badge--neutral { background: transparent; border-color: var(--rule); color: var(--ink-2); }
.badge--example { background: transparent; border: 1px dashed var(--copper); color: var(--copper-text); }
.missing { color: var(--muted); font-style: italic; }
.owner-gap { display: inline; padding: 0.05rem 0.45rem; background: repeating-linear-gradient(135deg, var(--copper-soft) 0 6px, #f8ebdf 6px 12px); border: 1px dashed var(--copper); color: var(--copper-text); font: 500 0.85em/1.6 var(--sans); border-radius: var(--radius); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
p > .owner-gap:only-child { display: inline-block; }
.notice { border-left: 3px solid var(--ink-soft); background: var(--paper); padding: 0.9rem 1.1rem; margin: 0 0 1.25rem; }
.notice p:last-child, .notice ul:last-child { margin-bottom: 0; }
.notice:focus { outline: 2px solid var(--focus); outline-offset: 2px; }
.notice--error { border-color: var(--bad); background: var(--bad-bg); }
.notice--success { border-color: var(--ok); background: var(--ok-bg); }
.notice--info { border-color: var(--info); background: var(--info-bg); }
.notice--warn { border-color: var(--warn); background: var(--warn-bg); }
.notice--example, .notice--draft { border: 1px dashed var(--copper); border-left: 3px solid var(--copper); background: #faf0e6; }
.flash-stack { max-width: var(--max); margin: 1.25rem auto 0; padding-inline: var(--gutter); }

/* ---------- top bar */
.topbar { background: var(--ink); color: #e4e8ef; font: 450 0.8rem/1.4 var(--sans); }
.topbar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.3rem 1.5rem; padding-block: 0.5rem; }
.topbar p { margin: 0; }
.topbar__end { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1rem; }
.topbar__announce { font-weight: 600; color: #fff; }
.topbar__test { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.1rem 0.55rem; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 999px; font-size: 0.72rem; letter-spacing: 0.02em; color: #f0d2bb; }
.topbar__test::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #e3a072; }
@media (max-width: 720px) {
  .topbar__inner { justify-content: center; text-align: center; padding-block: 0.4rem; }
  .topbar { font-size: 0.74rem; }
}

/* ---------- header */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--ivory); border-bottom: 1px solid var(--rule); }
.site-header__inner { display: flex; align-items: center; gap: 2rem; min-height: 72px; position: relative; }
.site-logo { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; flex-shrink: 0; }
.site-logo:hover { color: var(--ink); }
.site-logo > svg { width: 30px; height: 30px; }
.site-logo__text { display: flex; flex-direction: column; line-height: 1; }
.site-logo__name { font: 600 1.35rem/1 var(--sans); letter-spacing: -0.03em; }
.site-logo__sub { font: 600 0.6rem/1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); margin-top: 0.3rem; }
.main-nav { flex: 1; display: flex; justify-content: center; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.25rem 1.6rem; }
.main-nav a { display: block; padding: 0.6rem 0; color: var(--ink); text-decoration: none; font: 550 0.92rem/1.2 var(--sans); border-bottom: 2px solid transparent; }
.main-nav a:hover { color: var(--copper-text); }
.main-nav a[aria-current="page"] { border-bottom-color: var(--copper); }
.header-tools { display: flex; align-items: center; gap: 0.35rem; margin-left: auto; }
.header-tool { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; min-width: 40px; justify-content: center; padding: 0 0.4rem; color: var(--ink); text-decoration: none; border-radius: 6px; font: 550 0.88rem/1 var(--sans); }
.header-tool:hover { color: var(--copper-text); background: var(--paper); }
.header-tool .icon { width: 21px; height: 21px; }
.header-tool[aria-current="page"] .header-tool__label { text-decoration: underline; text-decoration-color: var(--copper); text-underline-offset: 0.3em; }
.header-tool .cart-link__count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 0.35rem; border-radius: 999px; background: var(--ink); color: #fff; font: 600 0.7rem/1 var(--sans); }
.menu-toggle { display: none; }

@media (max-width: 960px) {
  .site-header__inner { gap: 0.75rem; min-height: 64px; flex-wrap: wrap; }
  .js .menu-toggle:not([hidden]) { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-left: -0.6rem; border: 0; background: transparent; color: var(--ink); cursor: pointer; border-radius: 6px; }
  .menu-toggle .icon { width: 24px; height: 24px; }
  /* Without JavaScript the navigation stays visible as a scrollable row. */
  .main-nav { order: 3; flex-basis: 100%; justify-content: flex-start; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); border-top: 1px solid var(--rule-soft); }
  .main-nav ul { gap: 1.25rem; white-space: nowrap; }
  .js .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0; padding: 0.5rem var(--gutter) 1.25rem; background: var(--ivory); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); box-shadow: 0 18px 30px rgba(20, 34, 56, 0.08); overflow: visible; }
  .js .main-nav.is-open { display: block; }
  .js .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; white-space: normal; }
  .js .main-nav a { padding: 0.95rem 0; border-bottom: 1px solid var(--rule-soft); font-size: 1rem; }
  .js .main-nav a[aria-current="page"] { border-bottom-color: var(--rule-soft); box-shadow: inset 3px 0 0 var(--copper); padding-left: 0.75rem; }
}
@media (max-width: 600px) {
  .site-logo__name { font-size: 1.2rem; }
  .site-logo > svg { width: 26px; height: 26px; }
  .header-tools { gap: 0; }
  .header-tool { padding: 0 0.3rem; }
  .header-tool__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------- search dialog */
.site-search-dialog { width: min(640px, calc(100% - 32px)); padding: 2.25rem 2rem 1.75rem; }
.site-search-dialog h2 { font: 600 1.35rem/1.2 var(--sans); letter-spacing: -0.02em; margin: 0 0 1rem; }
.search-form { display: flex; align-items: center; gap: 0.5rem; padding: 0.3rem 0.3rem 0.3rem 0.85rem; border: 1px solid var(--rule); border-radius: 8px; background: #fff; }
.search-form:focus-within { border-color: var(--ink); outline: 2px solid var(--focus); outline-offset: 1px; }
.search-form > .icon { width: 20px; color: var(--muted); }
.search-form input[type="search"] { flex: 1; min-width: 0; border: 0; min-height: 44px; padding: 0.4rem; font-size: 1rem; background: transparent; }
.search-form input:focus { outline: none; }
.search-form .button { min-height: 42px; }
.search-form__hint { margin: 1.25rem 0 0.5rem; font: 600 0.75rem/1.3 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.search-form__suggest { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.search-form__suggest a { display: inline-block; padding: 0.45rem 0.8rem; border: 1px solid var(--rule); border-radius: 999px; font-size: 0.88rem; text-decoration: none; color: var(--ink); }
.search-form__suggest a:hover { border-color: var(--ink); }

/* ---------- footer */
.site-footer { margin-top: 0; background: var(--paper); border-top: 1px solid var(--rule); color: var(--ink-2); font-size: 0.9rem; padding-block: 2.75rem 1.5rem; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--copper-text); text-decoration: underline; }
.site-footer h2 { font: 700 0.78rem/1.3 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); margin: 0 0 1rem; }
.site-footer__disclaimer { border: 1.5px solid var(--ink); border-radius: 6px; background: var(--ivory); padding: 1.1rem 1.4rem; text-align: center; margin-bottom: 2.5rem; }
.site-footer__disclaimer p { margin: 0; color: var(--ink); line-height: 1.55; }
.site-footer__disclaimer p + p { margin-top: 0.3rem; color: var(--ink-2); font-size: 0.86rem; }
.site-footer__grid { display: grid; gap: 2rem 2.5rem; grid-template-columns: 1.25fr 1fr 1fr 1.35fr; padding-bottom: 2.25rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.site-logo--footer { margin-bottom: 1rem; }
.site-footer__name { margin: 0; font-weight: 700; color: var(--ink); }
.site-footer__legal { display: block; font-weight: 450; color: var(--muted); font-size: 0.85rem; }
.site-footer__desc { margin: 0.15rem 0 1rem; color: var(--muted); }
.site-footer__contact { margin-bottom: 1rem !important; }
.site-footer__contact-line { display: grid; grid-template-columns: 18px 1fr; gap: 0.55rem; align-items: start; }
.site-footer__contact-line .icon { width: 17px; height: 17px; margin-top: 0.15rem; color: var(--copper-text); }
.site-footer__cta { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600; border-bottom: 1px solid var(--copper); padding-bottom: 1px; }
.site-footer__cta .icon { width: 16px; height: 16px; }
.site-footer__cta:hover { text-decoration: none !important; }
.site-footer__eligibility p { margin: 0 0 0.75rem; line-height: 1.6; }
.site-footer__eligibility a { font-weight: 600; border-bottom: 1px solid var(--copper); }
.site-footer__eligibility a:hover { text-decoration: none; }
.site-footer__payments { border-top: 1px solid var(--rule); padding-top: 1.6rem; display: grid; gap: 1rem; }
.site-footer__usd { margin: 0; font-weight: 600; color: var(--ink); }
.site-footer__accept { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; }
.site-footer__accept-title { margin: 0 !important; }
.pay-marks { display: flex !important; flex-wrap: wrap; gap: 0.5rem !important; }
.pay-mark { display: block; height: 40px; width: 60px; overflow: hidden; background: #fff; border: 1px solid var(--rule); border-radius: 6px; box-shadow: 0 1px 2px rgba(20, 34, 56, 0.05); }
.pay-mark__img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 5px; }
.pay-mark__img--sm { width: 36px; height: 24px; border: 1px solid #e3e7ec; border-radius: 4px; background: #fff; }
.site-footer__secure { display: flex; gap: 0.6rem; align-items: flex-start; margin: 0; max-width: 62em; color: var(--ink-2); font-size: 0.85rem; line-height: 1.55; }
.site-footer__secure .icon { width: 18px; height: 18px; flex: none; color: var(--ok); margin-top: 0.1rem; }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; margin-top: 1.6rem; padding-top: 1.1rem; border-top: 1px solid var(--rule); font-size: 0.82rem; color: var(--muted); }
.site-footer__base p { margin: 0; }
.site-footer__base a { color: var(--muted); }
@media (max-width: 1080px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .site-footer { padding-top: 2rem; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .site-footer__disclaimer { padding: 1rem; text-align: left; margin-bottom: 2rem; }
  .site-footer__base { flex-direction: column; }
}

/* ---------- home */
.home-hero { position: relative; isolation: isolate; overflow: hidden; background: #0d1a2e; color: #fff; }
.home-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 55%; z-index: -2; }
.home-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 21, 38, 0.92) 0%, rgba(10, 21, 38, 0.78) 38%, rgba(10, 21, 38, 0.15) 70%, rgba(10, 21, 38, 0) 100%); }
.home-hero__inner { display: flex; align-items: center; min-height: clamp(420px, 44vw, 540px); padding-block: 3.5rem; }
.home-hero__copy { max-width: 560px; }
.home-hero h1 { font: 650 clamp(2rem, 3.7vw, 3.1rem)/1.1 var(--sans); letter-spacing: -0.03em; color: #fff; margin: 0 0 1rem; }
.home-hero p { font-size: 1.06rem; line-height: 1.65; color: #d6dce6; margin: 0; max-width: 34em; }
.home-hero .actions { margin-top: 1.75rem; gap: 0.75rem; }
.button--outline-light { background: transparent; border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.button--outline-light:hover { background: #fff; border-color: #fff; color: var(--ink); }
@media (min-width: 721px) and (max-width: 1100px) {
  .home-hero__copy { max-width: 52%; }
  .home-hero h1 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
  .home-hero p { font-size: 0.98rem; }
  .home-hero__img { left: auto; width: 58%; object-position: 62% 55%; }
  .home-hero::before { background: linear-gradient(90deg, #0d1a2e 0%, #0d1a2e 42%, rgba(13, 26, 46, 0.55) 52%, rgba(13, 26, 46, 0) 68%); }
}
@media (max-width: 720px) {
  .home-hero { display: flex; flex-direction: column; }
  .home-hero::before { display: none; }
  .home-hero__img { position: static; order: 2; height: 230px; object-position: 80% 50%; }
  .home-hero__inner { min-height: 0; padding-block: 2.25rem 2rem; }
  .home-hero .actions .button { flex: 1 1 auto; }
}

.trust-strip { background: var(--ivory); border-bottom: 1px solid var(--rule); }
.trust-strip__list { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.trust-strip li + li { border-left: 1px solid var(--rule); }
.trust-strip a { display: flex; align-items: center; gap: 0.85rem; height: 100%; padding: 1.35rem 1.25rem; color: var(--ink); text-decoration: none; }
.trust-strip li:first-child a { padding-left: 0; }
.trust-strip a:hover strong { color: var(--copper-text); }
.trust-strip .icon { width: 28px; height: 28px; flex: none; color: var(--copper-text); }
.trust-strip strong { display: block; font-size: 0.93rem; font-weight: 650; line-height: 1.3; }
.trust-strip small { display: block; margin-top: 0.15rem; font-size: 0.82rem; color: var(--muted); line-height: 1.4; }
@media (max-width: 960px) {
  .trust-strip__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-strip li:nth-child(3) { border-left: 0; }
  .trust-strip li:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .trust-strip li:nth-child(3) a { padding-left: 0; }
}
@media (max-width: 520px) {
  .trust-strip__list { grid-template-columns: 1fr; }
  .trust-strip li + li { border-left: 0; border-top: 1px solid var(--rule); }
  .trust-strip a { padding: 1rem 0; }
}

.home-section { padding-block: clamp(2.75rem, 5vw, 4rem); }
.home-section--last { padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.home-section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.5rem 1.5rem; margin-bottom: 1.5rem; }
.home-section__head h2 { font: 650 clamp(1.5rem, 2.4vw, 2rem)/1.2 var(--sans); letter-spacing: -0.025em; margin: 0; color: var(--ink); }
.category-links { list-style: none; margin: 0 0 1.75rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.category-links a { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 40px; padding: 0.4rem 1rem; border: 1px solid var(--rule); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 0.9rem; font-weight: 550; background: var(--ivory); }
.category-links a:hover { border-color: var(--ink); color: var(--ink); }
.category-links a.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.category-links span { font-size: 0.78rem; color: var(--muted); font-weight: 500; }
.home-products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem 1.5rem; }
@media (max-width: 1080px) { .home-products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .home-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 0.9rem; } }

.home-band { background: var(--paper); border-block: 1px solid var(--rule); padding-block: clamp(2.75rem, 5vw, 4rem); }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.how-step { display: flex; flex-direction: column; background: var(--ivory); border: 1px solid var(--rule); border-radius: 8px; padding: 1.4rem 1.3rem 1.3rem; }
.how-step__icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--copper-soft); color: var(--copper-text); margin-bottom: 1rem; }
.how-step__icon .icon { width: 22px; height: 22px; }
.how-step h3 { font: 650 1.02rem/1.3 var(--sans); margin: 0 0 0.45rem; color: var(--ink); }
.how-step p { font-size: 0.9rem; color: var(--muted); line-height: 1.6; margin: 0 0 1rem; flex: 1; }
.how-step a { font-size: 0.88rem; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--copper); align-self: flex-start; }
.how-step a:hover { color: var(--copper-text); }
@media (max-width: 1080px) { .how-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .how-steps { grid-template-columns: 1fr; } }

.lab-block { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding: clamp(1.5rem, 4vw, 2.75rem); border: 1px solid var(--rule); border-radius: 10px; background: var(--ivory); }
.lab-block__kicker { display: inline-flex; align-items: center; gap: 0.45rem; margin: 0 0 0.75rem; font: 650 0.8rem/1.2 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--copper-text); }
.lab-block__kicker .icon { width: 18px; height: 18px; }
.lab-block h2 { font: 650 clamp(1.45rem, 2.3vw, 1.9rem)/1.2 var(--sans); letter-spacing: -0.025em; margin: 0 0 0.75rem; color: var(--ink); }
.lab-block__copy > p { color: var(--ink-2); line-height: 1.65; max-width: 36em; }
.lab-block__points { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; gap: 0.55rem; }
.lab-block__points li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.93rem; font-weight: 550; }
.lab-block__points .icon { width: 19px; height: 19px; color: var(--copper-text); }
.lab-block__lookup { background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; padding: 1.5rem; }
.lab-block__lookup h3 { font: 650 1.1rem/1.3 var(--sans); margin: 0 0 0.9rem; }
.lab-block__lookup label { display: block; font-weight: 600; font-size: 0.9rem; }
.lab-block__lookup .field__hint { margin: 0.15rem 0 0.5rem; }
.lab-block__field { display: flex; gap: 0.5rem; }
.lab-block__field input { flex: 1; min-width: 0; font-family: var(--mono); text-transform: uppercase; }
.lab-block__note { margin: 0.75rem 0 0; font-size: 0.82rem; color: var(--muted); }
@media (max-width: 860px) { .lab-block { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .lab-block__field { flex-direction: column; } }

.support-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.support-cards--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.support-cards a { display: grid; grid-template-columns: auto 1fr auto; gap: 0.9rem; align-items: center; height: 100%; padding: 1.2rem 1.25rem; border: 1px solid var(--rule); border-radius: 8px; background: var(--ivory); color: var(--ink); text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s; }
.support-cards a:hover { border-color: var(--ink); color: var(--ink); box-shadow: 0 6px 18px rgba(20, 34, 56, 0.06); }
.support-cards__icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--paper); color: var(--copper-text); }
.support-cards__icon .icon { width: 21px; height: 21px; }
.support-cards strong { display: block; font-size: 0.98rem; font-weight: 650; }
.support-cards small { display: block; margin-top: 0.15rem; font-size: 0.84rem; color: var(--muted); line-height: 1.45; }
.support-cards a > .icon:last-child { width: 18px; height: 18px; color: var(--muted); }
@media (max-width: 1080px) { .support-cards--four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .support-cards, .support-cards--four { grid-template-columns: 1fr; } }
.contact-details { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; }
.contact-details li { display: flex; gap: 0.6rem; align-items: flex-start; }
.contact-details .icon { width: 19px; height: 19px; color: var(--copper-text); margin-top: 0.15rem; }
.contact-details strong { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.contact-details--stack { flex-direction: column; margin: 0 0 1.5rem; }

/* ---------- content & policy pages */
.doc-head { padding-block: clamp(1.75rem, 4vw, 2.75rem) 1.5rem; border-bottom: 1px solid var(--rule); }
.doc-head .crumbs ol { margin-bottom: 0.9rem; }
.doc-head h1 { font: 650 clamp(1.8rem, 3.2vw, 2.5rem)/1.15 var(--sans); letter-spacing: -0.025em; margin: 0; color: var(--ink); }
.doc-head__meta { margin: 0.6rem 0 0; font-size: 0.87rem; color: var(--muted); }
.doc-head__lede { margin: 0.75rem 0 0; color: var(--ink-2); font-size: 1.04rem; max-width: 44em; }
.doc-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); padding-block: 2.25rem clamp(3rem, 6vw, 4.5rem); }
.doc-aside { align-self: start; position: sticky; top: 96px; display: grid; gap: 1.75rem; font-size: 0.9rem; }
.doc-aside__title { margin: 0 0 0.6rem; font: 700 0.75rem/1.3 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
.doc-aside ul, .contact-aside__block ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.1rem; border-left: 1px solid var(--rule); }
.doc-aside a, .contact-aside__block a { display: block; padding: 0.3rem 0 0.3rem 0.9rem; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.4; }
.doc-aside a:hover, .contact-aside__block a:hover { color: var(--ink); }
.doc-aside a[aria-current="page"] { color: var(--ink); font-weight: 650; border-left-color: var(--copper); }
.doc-main { min-width: 0; max-width: 780px; }
.doc-help { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; margin-top: 2.5rem; padding: 1.1rem 1.3rem; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); }
.doc-help p { margin: 0; font-size: 0.93rem; }
@media (max-width: 860px) {
  .doc-layout { grid-template-columns: 1fr; }
  .doc-aside { position: static; order: 2; border-top: 1px solid var(--rule); padding-top: 1.5rem; }
}
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(2rem, 5vw, 4rem); padding-block: 2.25rem clamp(3rem, 6vw, 4.5rem); }
.contact-layout .form-layout { padding-bottom: 0; }
.contact-aside { align-self: start; padding: 1.3rem; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); font-size: 0.92rem; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }

.status-page { max-width: 720px; padding-block: clamp(3rem, 8vw, 5.5rem); }
.status-page__code { margin: 0 0 0.5rem; font: 600 0.82rem/1.3 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--copper-text); }
.status-page h1 { font: 650 clamp(1.8rem, 3.2vw, 2.5rem)/1.15 var(--sans); letter-spacing: -0.025em; margin: 0 0 0.75rem; }
.status-page > p { color: var(--ink-2); font-size: 1.04rem; }
.status-page__search { display: flex; gap: 0.5rem; max-width: 520px; margin-top: 1.5rem; }
.status-page__search input { flex: 1; min-width: 0; }

/* Retained for documentation pages (docs.js). */
.lookup-card { background: var(--ink-2); border: 1px solid #3b4d74; padding: clamp(1.25rem, 3vw, 2rem); border-radius: 8px; }
.lookup-card p { color: #c9cee0; }
.lookup-card--light { background: var(--paper); border-color: var(--rule); }
.lookup-card--light p { color: var(--muted); }
.lookup label { display: block; font-weight: 500; font-size: 0.9rem; margin-bottom: 0.4rem; }
.lookup__row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.lookup__row input { flex: 1 1 180px; min-height: 48px; padding: 0.6rem 0.8rem; font: 500 1rem var(--mono); text-transform: uppercase; border: 1px solid var(--rule); background: #fff; color: var(--ink); border-radius: var(--radius); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { padding: 1.25rem; border: 1px solid var(--rule); border-radius: 8px; display: flex; flex-direction: column; }
.step__num { display: none; }
.step h3, .step h2 { font: 600 1.05rem/1.3 var(--sans); }
.step p { color: var(--muted); flex: 1; }
.step .text-link { align-self: flex-start; }

/* ---------- chips, crumbs, toolbar */
.chips { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { display: inline-flex; align-items: center; gap: 0.3rem; min-height: 36px; padding: 0.35rem 0.9rem; border: 1px solid var(--rule); border-radius: 999px; text-decoration: none; font-size: 0.9rem; background: var(--paper); color: var(--ink); }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-current="page"] { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.chip[aria-current="page"] .count { color: #c9cee0; }
.crumbs ol { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-wrap: wrap; gap: 0.35rem; font-size: 0.87rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 0.35rem; color: var(--rule); }
.crumbs a { color: var(--muted); }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--rule); margin-bottom: 1rem; }
.toolbar__search { display: flex; gap: 0.5rem; flex: 1 1 320px; max-width: 560px; }
.toolbar__search--wide { max-width: 760px; margin-top: 1.5rem; }
.toolbar__search input { flex: 1; min-width: 0; min-height: 44px; padding: 0.55rem 0.8rem; border: 1px solid var(--rule); background: #fff; font: inherit; border-radius: var(--radius); color: var(--ink); }
.toolbar__sort { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; }
.toolbar__sort select { min-height: 44px; }
.results-count { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.25rem; }

/* ---------- shop */
.shop { display: grid; gap: var(--space-4); }
@media (min-width: 960px) { .shop { grid-template-columns: 250px 1fr; } }
.filters { position: sticky; top: 100px; }
@media (max-width: 959px) { .filters { position: static; border: 1px solid var(--rule); padding: 1rem; background: var(--paper); } }
.filters__title { font: 500 0.78rem/1.3 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--copper-text); margin-bottom: 0.5rem; }
.filters__group { border: 0; border-top: 1px solid var(--rule); padding: 1rem 0; margin: 0; min-width: 0; }
.filters__group legend { font-weight: 600; font-size: 0.9rem; padding: 0; margin-bottom: 0.6rem; float: left; width: 100%; }
.filters__group legend + * { clear: both; }
.filters__actions { display: flex; align-items: center; gap: 1rem; border-top: 1px solid var(--rule); padding-top: 1rem; }
.js .filters__actions .button { display: none; }
.radio, .check { display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.3rem 0; }
.radio input, .check input { width: 18px; height: 18px; margin: 0.18rem 0 0; accent-color: var(--ink); flex-shrink: 0; }
.radio label, .check label { font-size: 0.95rem; cursor: pointer; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: var(--space-3); }
.grid-cards--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.card { position: relative; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--rule); transition: border-color 0.2s, transform 0.2s; }
.card:hover { border-color: var(--ink); }
.card:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.card__media { border-bottom: 1px solid var(--rule); aspect-ratio: 1; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { display: flex; flex-direction: column; gap: 0.35rem; padding: 1rem 1.1rem 1.15rem; flex: 1; }
.card__code { font: 400 0.76rem/1.3 var(--mono); color: var(--muted); margin: 0; }
.card__title { font: 400 1.3rem/1.15 var(--serif); margin: 0; letter-spacing: -0.005em; }
.card__link { color: var(--ink); text-decoration: none; }
.card__link::after { content: ""; position: absolute; inset: 0; }
.card__link:focus-visible { outline: none; }
.card__meta { font-size: 0.85rem; color: var(--muted); margin: 0; }
.card__foot { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-top: auto; padding-top: 0.6rem; border-top: 1px solid var(--rule-soft); }
.card__price { margin: 0; font-weight: 600; font-size: 1rem; }
.card__from { font-weight: 400; color: var(--muted); font-size: 0.82rem; }
.card__doc { margin: 0; font-size: 0.8rem; color: var(--ok); }

/* ---------- forms */
.field { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 1.1rem; min-width: 0; }
.field label { font-weight: 500; font-size: 0.93rem; }
.field__optional { font-weight: 400; color: var(--muted); font-size: 0.82rem; }
.field__hint { margin: 0; font-size: 0.84rem; color: var(--muted); }
.field__error { margin: 0; font-size: 0.86rem; color: var(--bad); font-weight: 500; }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"], input[type="search"], input[type="url"], input[type="date"], input:not([type]), select, textarea {
  width: 100%; min-height: 46px; padding: 0.6rem 0.75rem; border: 1px solid #c3b8a3; border-radius: var(--radius);
  background: #fff; color: var(--ink); font: 400 1rem/1.4 var(--sans);
}
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.2rem; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: var(--ink); }
.field--error input, .field--error select, .field--error textarea { border-color: var(--bad); border-width: 2px; }
input[readonly] { background: var(--rule-soft); }
.form { max-width: 820px; }
.form-layout { max-width: 880px; }
.form__grid { display: grid; gap: 0 1.25rem; }
@media (min-width: 640px) { .form__grid { grid-template-columns: 1fr 1fr; } .form__grid--3 { grid-template-columns: 2fr 1.2fr 1fr; } }
.form__section { border: 0; border-top: 1px solid var(--ink); padding: 1.25rem 0 0.5rem; margin: 0 0 1.5rem; min-width: 0; }
.form__section legend { font: 400 1.35rem/1.2 var(--serif); padding: 0 0.75rem 0 0; display: flex; gap: 0.75rem; align-items: baseline; }
.form__num { font: 500 0.85rem var(--mono); color: var(--copper-text); }
.form--inline { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0 1rem; max-width: none; }
.form--inline .field { flex: 1 1 160px; }
.form--inline > .button, .form--inline > button { margin-bottom: 1.1rem; }
.form--inline .check { margin-bottom: 1.1rem; }
.attest { border: 1px solid var(--rule); background: var(--paper); padding: 0.75rem 1rem; margin-bottom: 1rem; }
.attest .check { padding: 0.5rem 0; }
.check.field--error label { color: var(--bad); }
.auth { display: grid; gap: var(--space-4); align-items: start; }
@media (min-width: 900px) { .auth { grid-template-columns: 6fr 5fr; } }
.auth .form { width: 100%; }
.gate { display: grid; gap: 0.75rem; max-width: 420px; margin: 1.5rem 0; }

/* ---------- panels */
.panel { background: var(--paper); border: 1px solid var(--rule); padding: clamp(1rem, 2.5vw, 1.6rem); margin-bottom: 1.25rem; }
.panel__title { font: 500 0.78rem/1.3 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--copper-text); margin-bottom: 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.panel__kicker { font: 500 0.75rem/1.3 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.4rem; }
.panel--status { border-left-width: 4px; }
.panel--ok { border-left-color: var(--ok); } .panel--warn { border-left-color: var(--warn); } .panel--bad { border-left-color: var(--bad); }
.quote { border-left: 2px solid var(--copper); padding-left: 0.9rem; color: var(--ink-2); }
.plain { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.5rem; }

/* ---------- product page */
.product { padding-top: 1.5rem; }
.product__grid { display: grid; gap: var(--space-4); }
@media (min-width: 960px) { .product__grid { grid-template-columns: 6fr 5fr; align-items: start; } .product__media { position: sticky; top: 100px; } }
.product__media img { width: 100%; border: 1px solid var(--rule); background: var(--paper); }
.caption { font-size: 0.82rem; color: var(--muted); margin-top: 0.6rem; }
.product__code { font: 500 0.85rem var(--mono); color: var(--copper-text); margin-bottom: 0.4rem; }
.product__name { margin-bottom: 0.75rem; }
.product__summary { color: var(--ink-2); font-size: 1.05rem; }
.buy { border-top: 1px solid var(--ink); padding-top: 1.25rem; margin-top: 1.25rem; }
.buy__options { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
.buy__options legend { font-weight: 600; font-size: 0.93rem; margin-bottom: 0.6rem; }
.option { position: relative; }
.option + .option { margin-top: -1px; }
.option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.option label { display: grid; grid-template-columns: 1fr auto; gap: 0.1rem 1rem; padding: 0.85rem 1rem 0.85rem 2.6rem; border: 1px solid var(--rule); background: var(--paper); cursor: pointer; position: relative; }
.option label::before { content: ""; position: absolute; left: 1rem; top: 1.05rem; width: 16px; height: 16px; border: 1.5px solid var(--ink-soft); border-radius: 50%; background: #fff; }
.option input:checked + label { border-color: var(--ink); background: #fff; z-index: 1; box-shadow: inset 3px 0 0 var(--copper); }
.option input:checked + label::before { border: 5px solid var(--ink); }
.option input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: 1px; z-index: 2; }
.option__label { font-weight: 600; }
.option__price { font-weight: 600; text-align: right; }
.option__sku { font: 400 0.78rem var(--mono); color: var(--muted); }
.option__avail { font-size: 0.82rem; text-align: right; color: var(--muted); }
.option__avail--ok { color: var(--ok); font-weight: 500; }
.option__avail--example { color: var(--copper-text); }
.option--row label { grid-template-columns: 1fr auto; }
.buy__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.field--qty { margin-bottom: 0; }
.stepper { display: flex; align-items: stretch; }
.stepper input { width: 84px; text-align: center; border-radius: 0; font-family: var(--mono); }
.stepper__btn { width: 46px; border: 1px solid #c3b8a3; background: var(--paper); color: var(--ink); font-size: 1.2rem; cursor: pointer; }
.stepper__btn:first-child { border-right: 0; } .stepper__btn:last-child { border-left: 0; }
.stepper__btn:hover { background: var(--sand); }
.buy__price { text-align: right; }
.buy__price-label { font-size: 0.8rem; color: var(--muted); margin: 0; text-transform: uppercase; letter-spacing: 0.1em; }
.buy__price-value { font: 400 2rem/1.1 var(--serif); margin: 0; }
.buy__avail { margin: 0.9rem 0; font-size: 0.92rem; font-weight: 500; }
.buy__reason { margin: 0.7rem 0 0; padding: 0.7rem 0.9rem; background: #faf0e6; border: 1px dashed var(--copper); color: var(--copper-text); font-size: 0.9rem; }
.buy__note { margin: 0.8rem 0 0; font-size: 0.83rem; color: var(--muted); }
.docs-panel { margin-top: 2rem; border: 1px solid var(--ink); background: var(--paper); padding: 1.25rem; }
.docs-panel__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.docs-panel h2 { font: 400 1.35rem/1.2 var(--serif); margin: 0; }
.docs-panel__sub { font-size: 0.95rem; margin-top: 1rem; }
.lots { list-style: none; padding: 0; margin: 0; }
.lot { padding: 0.9rem 0; border-top: 1px solid var(--rule); }
.lot__head { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.lot__number { font: 500 0.98rem var(--mono); }
.lot__meta { font-size: 0.85rem; color: var(--muted); margin: 0.25rem 0 0.4rem; }
.lot__docs { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.doc-link { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-size: 0.92rem; font-weight: 500; }
.doc-link__kind { font: 600 0.68rem/1 var(--mono); letter-spacing: 0.06em; padding: 0.3rem 0.4rem; background: var(--ink); color: var(--ivory); border-radius: var(--radius); }
.info { border-top: 1px solid var(--rule); }
.info__grid { display: grid; gap: var(--space-5); }
@media (min-width: 960px) { .info__grid { grid-template-columns: 1fr 1fr; } }
.info__block { margin-top: 1.5rem; }
.info__block h3 { font: 600 1rem/1.3 var(--sans); }
.spec { margin: 0; border-top: 1px solid var(--ink); }
.spec__row { display: grid; grid-template-columns: minmax(120px, 40%) 1fr; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--rule); }
.spec dt { color: var(--muted); font-size: 0.92rem; }
.spec dd { margin: 0; }
.spec--wide .spec__row { grid-template-columns: minmax(140px, 28%) 1fr; }
.sources { padding-left: 1.3rem; font-size: 0.93rem; }
.sources li { margin-bottom: 0.5rem; }
.disclaimer { margin-top: var(--space-4); padding-top: 1rem; border-top: 1px solid var(--rule); font-size: 0.85rem; color: var(--muted); }

/* ---------- tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.table th { text-align: left; font: 600 0.76rem/1.3 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding: 0.7rem 0.75rem; border-bottom: 1px solid var(--ink); white-space: nowrap; }
.table td { padding: 0.8rem 0.75rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.table th:first-child, .table td:first-child { padding-left: 0; }
.table .num { text-align: right; white-space: nowrap; }
@media (max-width: 720px) {
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { border-bottom: 1px solid var(--rule); padding: 0.6rem 0; }
  .table td { border: 0; padding: 0.25rem 0; display: grid; grid-template-columns: 38% 1fr; gap: 0.75rem; text-align: left !important; }
  .table td[data-label]::before { content: attr(data-label); font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; padding-top: 0.15rem; }
  .table td:not([data-label]) { grid-template-columns: 1fr; }
}
.doc-list { list-style: none; padding: 0; }
.doc-list li { padding: 0.6rem 0; border-bottom: 1px solid var(--rule); }
.doc-cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 1rem; }
.doc-card { border: 1px solid var(--rule); background: var(--paper); padding: 1.1rem; display: flex; flex-direction: column; gap: 0.3rem; }
.doc-card__kind { font: 500 0.72rem/1.3 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--copper-text); margin: 0; }
.doc-card__title { font: 400 1.15rem/1.25 var(--serif); margin: 0 0 0.25rem; }
.doc-card .button { align-self: flex-start; margin-top: 0.5rem; }

/* ---------- prose pages */
.prose-layout { display: grid; gap: var(--space-4); padding-bottom: var(--space-5); }
@media (min-width: 960px) { .prose-layout { grid-template-columns: 240px minmax(0, 720px); } .toc { position: sticky; top: 100px; align-self: start; } }
.toc { border-top: 1px solid var(--ink); padding-top: 1rem; font-size: 0.92rem; }
.toc__title { font: 500 0.75rem/1.3 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--copper-text); }
.toc ol { padding-left: 1.2rem; display: grid; gap: 0.35rem; }
.toc a { text-decoration: none; }
.prose { font-size: 1rem; line-height: 1.7; color: var(--ink-2); }
.prose h2 { font: 650 1.3rem/1.3 var(--sans); letter-spacing: -0.015em; color: var(--ink); margin: 2.25rem 0 0.7rem; scroll-margin-top: 110px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font: 650 1.02rem/1.35 var(--sans); color: var(--ink); margin: 1.5rem 0 0.4rem; }
.prose h2 + h3 { margin-top: 1rem; }
.prose strong { color: var(--ink); font-weight: 650; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.45rem; padding-left: 0.2rem; }
.prose li::marker { color: var(--copper-text); }
.prose--small { font-size: 0.95rem; }
.prose--small h2 { font-size: 1.15rem; }

/* ---------- empty / loading */
.empty { border: 1px dashed var(--rule); background: var(--paper); padding: clamp(1.5rem, 4vw, 3rem); text-align: center; }
.empty__title { font: 400 1.5rem/1.2 var(--serif); margin-bottom: 0.5rem; }
.empty--small { padding: 1.25rem; text-align: left; }
.empty--small p { margin: 0; color: var(--muted); }
.pending { text-align: left; }
.spinner { display: block; width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--rule); border-top-color: var(--copper); animation: spin 0.9s linear infinite; margin-bottom: 1.5rem; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- account & orders */
.account-grid, .order-grid { display: grid; gap: var(--space-4); }
@media (min-width: 960px) { .account-grid { grid-template-columns: 8fr 4fr; } .order-grid { grid-template-columns: 7fr 4fr; } }
.links li a { font-weight: 500; }
.status-row { list-style: none; padding: 0; margin: 1rem 0 1.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.status-row__k { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-right: 0.3rem; }
.shipments { list-style: none; padding: 0; }
.shipment { border-top: 1px solid var(--rule); padding: 0.9rem 0; }
.shipment__head { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-bottom: 0.35rem; }
.shipment__items { margin: 0.25rem 0 0.5rem; font-size: 0.93rem; }
.timeline { list-style: none; padding: 0; margin: 0 0 1rem; border-left: 1px solid var(--rule); }
.timeline li { position: relative; padding: 0 0 1rem 1.25rem; }
.timeline li::before { content: ""; position: absolute; left: -4px; top: 0.45rem; width: 7px; height: 7px; border-radius: 50%; background: var(--copper); }
.timeline time { display: block; font: 400 0.78rem var(--mono); color: var(--muted); }
.timeline p { margin: 0.1rem 0 0; }
.totals { margin: 0; }
.totals > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0; border-bottom: 1px solid var(--rule-soft); }
.totals dt { color: var(--ink-2); }
.totals dd { margin: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.totals__grand { border-top: 1px solid var(--ink); border-bottom: 0 !important; padding-top: 0.75rem !important; margin-top: 0.25rem; }
.totals__grand dt, .totals__grand dd { font: 500 1.45rem/1.2 var(--serif); color: var(--ink); }
.totals__refund dd { color: var(--ok); }

/* ---------- cart & checkout */
.cart, .checkout { display: grid; gap: var(--space-4); align-items: start; }
@media (min-width: 960px) { .cart, .checkout { grid-template-columns: minmax(0, 8fr) minmax(300px, 4fr); } .cart__summary, .checkout__aside { position: sticky; top: 100px; } }
.lines { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--ink); }
.line { display: grid; grid-template-columns: 72px 1fr; gap: 0.75rem 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); align-items: start; }
@media (min-width: 720px) { .line { grid-template-columns: 96px 1fr 170px 110px; } }
.line--problem { background: linear-gradient(90deg, var(--bad-bg), transparent 70%); }
.line__img { width: 72px; height: 72px; border: 1px solid var(--rule); }
@media (min-width: 720px) { .line__img { width: 96px; height: 96px; } }
.line__code { font: 400 0.76rem var(--mono); color: var(--muted); margin: 0; }
.line__title { font: 400 1.2rem/1.2 var(--serif); margin: 0.1rem 0 0.25rem; }
.line__title a { text-decoration: none; }
.line__problem { color: var(--bad); font-weight: 500; font-size: 0.9rem; margin: 0.4rem 0 0; }
.line__qty label { font-size: 0.8rem; color: var(--muted); display: block; margin-bottom: 0.25rem; }
.line__qty-row { display: flex; gap: 0.4rem; }
.line__qty-row input { width: 76px; text-align: center; font-family: var(--mono); }
.line__total { font-weight: 600; text-align: right; margin: 0; padding-top: 1.4rem; }
.line__remove { grid-column: 2; }
@media (min-width: 720px) { .line__remove { grid-column: 2; grid-row: 2; } }
@media (max-width: 719px) { .line__qty, .line__total { grid-column: 2; } .line__total { text-align: left; padding-top: 0; } }
.checkout-head { padding-top: clamp(1.5rem, 4vw, 3rem); }
.progress { list-style: none; padding: 0; margin: 0 0 1.75rem; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; font-size: 0.88rem; color: var(--muted); border-bottom: 1px solid var(--rule); padding-bottom: 0.9rem; }
.progress span { font-family: var(--mono); margin-right: 0.25rem; }
.progress .is-current { color: var(--ink); font-weight: 600; }
.progress .is-current span { color: var(--copper-text); }
.progress .is-done { color: var(--ok); }
.mini-lines { list-style: none; padding: 0; margin: 0 0 1rem; }
.mini-lines li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid var(--rule-soft); font-size: 0.93rem; }
.review-grid { display: grid; gap: 1rem; margin-top: 1.5rem; }
@media (min-width: 720px) { .review-grid { grid-template-columns: 1fr 1fr; } }
.receipt { margin-top: 1.5rem; }

/* ---------- admin */
.admin { background: #f1ece2; }
.admin__shell { display: grid; min-height: 100vh; }
@media (min-width: 1000px) { .admin__shell { grid-template-columns: 250px minmax(0, 1fr); } }
.admin__side { background: var(--ink); color: #d6d9e6; padding: 1.25rem; display: flex; flex-direction: column; gap: 1.25rem; }
@media (min-width: 1000px) { .admin__side { position: sticky; top: 0; height: 100vh; overflow-y: auto; } }
.admin__side .brand { display: inline-flex; padding: 0; }
.admin__side .brand:hover { background: none; }
.brand--admin { color: var(--ivory); }
.brand--admin .brand__name { font-size: 1.3rem; }
.brand--admin:hover { color: var(--ivory); }
.brand--admin .brand__sub { color: #aab0c4; }
.admin__side ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 1px; }
@media (max-width: 999px) { .admin__side ul { display: flex; flex-wrap: wrap; gap: 0.25rem; } .admin__group { display: none; } }
.admin__side a { display: block; color: #e8eaf2; text-decoration: none; padding: 0.45rem 0.65rem; border-radius: var(--radius); font-size: 0.92rem; }
.admin__side a:hover { background: var(--ink-2); color: #fff; }
.admin__side a[aria-current="page"] { background: var(--ink-2); box-shadow: inset 3px 0 0 var(--copper); color: #fff; }
.admin__group { font: 500 0.7rem/1.3 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: #f2c9a8; padding: 0.9rem 0.65rem 0.3rem; }
.admin__me { margin-top: auto; border-top: 1px solid #34466c; padding-top: 1rem; font-size: 0.9rem; }
.admin__me .muted { color: #aab0c4; }
.admin__me a, .admin__me .link-button { color: #f2c9a8; padding: 0; }
.admin__main { padding: clamp(1rem, 3vw, 2.25rem); min-width: 0; }
.admin__test { background: var(--warn-bg); border: 1px solid #e4cfa6; padding: 0.55rem 0.9rem; font-size: 0.88rem; margin-bottom: 1.25rem; }
.admin__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--rule); }
.admin__head h1 { margin: 0; }
.admin__head p { margin: 0.35rem 0 0; }
.admin .panel { background: #fffdf9; }
.tiles { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; }
.tile { display: flex; flex-direction: column; gap: 0.25rem; padding: 1rem 1.1rem; background: #fffdf9; border: 1px solid var(--rule); text-decoration: none; color: var(--ink); height: 100%; }
.tile:hover { border-color: var(--ink); color: var(--ink); }
.tile--bad { border-color: var(--bad); background: var(--bad-bg); }
.tile__value { font: 400 2.2rem/1 var(--serif); }
.tile__label { font-size: 0.88rem; color: var(--muted); }
.admin-grid { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 1200px) { .admin-grid { grid-template-columns: 1fr 1fr; } .admin-grid--wide { grid-template-columns: minmax(0, 7fr) minmax(300px, 4fr); } }
.checklist { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.6rem; }
.checklist li { display: grid; grid-template-columns: 1.5rem 1fr; gap: 0.5rem; }
.checklist__mark { display: inline-grid; place-items: center; width: 1.2rem; height: 1.2rem; margin-top: 0.15rem; border-radius: 50%; font: 700 0.75rem/1 var(--sans); }
.checklist .is-ok .checklist__mark { background: var(--ok); color: #fff; }
.checklist .is-open .checklist__mark { border: 2px solid var(--copper); color: transparent; }
.table td .mono { white-space: nowrap; }
.table--admin { font-size: 0.9rem; }
.table--edit input, .table--edit select { min-height: 38px; padding: 0.35rem 0.5rem; font-size: 0.9rem; }
.table--edit input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; }
.w-s { width: 72px !important; } .w-m { width: 110px !important; }
.inline-form { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin: 0; }
.inline-form select { width: auto; min-height: 38px; font-size: 0.88rem; }
.detail { display: block; max-width: 420px; white-space: pre-wrap; word-break: break-word; color: var(--muted); font-size: 0.78rem; }
.email-body { white-space: pre-wrap; font: 400 0.9rem/1.55 var(--mono); overflow-x: auto; }
.review { border-left: 3px solid var(--rule); padding-left: 1rem; margin-bottom: 1rem; }

/* ---------- print */
@media print {
  .topbar, .site-header, .site-footer, .doc-aside, .doc-help, .actions, .progress, .flash-stack { display: none !important; }
  body { background: #fff; }
  .panel { border-color: #999; }
}
