/* ==========================================================================
   The Sports Card Spot
   Layout idea: a navy hero patterned like a 9-pocket binder page, with a foil-framed
   "slab" showing a consignment tracker; calm limestone pages below; left-aligned text.
   ========================================================================== */

:root {
  /* Color */
  --ink: #0E2233;          /* navy ink: text, header, hero */
  --ink-2: #17344B;        /* raised navy panels */
  --stock: #F1F4F2;        /* page background (limestone) */
  --paper: #FFFFFF;        /* cards, forms, alternate sections */
  --line: #D3DAD6;
  --muted: #4A5C6A;
  --pennant: #C4302B;      /* primary action */
  --pennant-dark: #A32420;
  --sky: #7DB9CE;          /* river blue, used on dark only */
  --brass: #E0A93B;        /* placeholder markers, demo bar */
  --ok: #1E7A4C;
  --focus: #2B7FBF;
  --error: #B3261E;

  /* Type */
  --font-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  /* Shape and layout */
  --radius: 8px;
  --radius-lg: 16px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --max: 1160px;

  /* Binder-page pocket (card ratio 2.5 : 3.5) */
  --pockets: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='196' viewBox='0 0 140 196'%3E%3Crect x='10' y='14' width='120' height='168' rx='9' fill='none' stroke='%23ffffff' stroke-opacity='.09' stroke-width='2'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--stock);
  color-scheme: light;
}

img, svg { max-width: 100%; }

a { color: #0B5A8A; text-underline-offset: 0.2em; }
a:hover { color: var(--ink); }
.on-dark a:not(.btn) { color: #fff; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
/* Headings receive focus from the router after navigation; they are not interactive. */
[tabindex="-1"]:focus { outline: none; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

h1, h2 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.005em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(3.1rem, 2.2rem + 5.2vw, 6rem); }
h2 { font-size: clamp(2.25rem, 1.6rem + 3vw, 3.6rem); }
h3 { font-size: 1.1875rem; font-weight: 700; line-height: 1.3; margin: 0 0 0.35rem; }

.lead { font-size: 1.1875rem; color: var(--muted); max-width: 38rem; }
.on-dark .lead { color: rgba(255, 255, 255, 0.82); }
.mono { font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.01em; }

.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: #fff; color: var(--ink); padding: 0.75rem 1rem; border-radius: var(--radius);
  font-weight: 700;
}
.skip-link:focus { top: 1rem; }

.noscript { margin: 0; padding: 1rem; background: var(--brass); color: var(--ink); text-align: center; font-weight: 600; }

/* Placeholders the owner must confirm */
.ph { background: rgba(224, 169, 59, 0.3); border-radius: 4px; padding: 0 0.3em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.on-dark .ph { background: rgba(224, 169, 59, 0.28); }
a.ph, .ph a { text-decoration-style: dotted; }
.chip {
  display: inline-block; vertical-align: middle; margin-left: 0.35rem;
  font-size: 0.75rem; font-weight: 700; line-height: 1.4; padding: 0.1rem 0.55rem;
  border: 1px dashed #8A6A1C; background: #FBF1D9; color: #5C4208; border-radius: 999px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.7rem 1.4rem;
  font: 700 1rem/1.2 var(--font-body); text-decoration: none; text-align: center;
  border: 2px solid transparent; border-radius: var(--radius); cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--pennant); color: #fff; }
.btn--primary:hover { background: var(--pennant-dark); color: #fff; }
.btn--gold { background: #FFC72C; color: var(--ink); }
.btn--gold:hover { background: #FFD65C; color: var(--ink); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; color: #fff; }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--sm { min-height: 44px; padding: 0.55rem 1.1rem; font-size: 0.9375rem; }
.btn--lg { min-height: 54px; padding: 0.85rem 1.6rem; font-size: 1.0625rem; }
.btn--block { width: 100%; }

.link-btn {
  background: none; border: 0; padding: 0.4rem 0; font: inherit; font-weight: 600; color: #0B5A8A;
  text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; min-height: 44px;
}
.link-btn:hover { color: var(--ink); }

/* Auth-aware visibility */
body.is-authed [data-auth="out"], body.is-admin [data-auth="out"] { display: none !important; }
body:not(.is-authed) [data-auth="in"] { display: none !important; }
body:not(.is-admin) [data-auth="admin"] { display: none !important; }
body:not(.is-authed):not(.is-admin) [data-auth="any"] { display: none !important; }

/* ---------- Preview bar ---------- */
.demo-bar {
  display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap;
  padding: 0.5rem var(--gutter); background: var(--brass); color: var(--ink); font-size: 0.875rem; font-weight: 600;
}
.demo-bar p { margin: 0; }
.demo-bar button {
  font: inherit; font-weight: 700; color: var(--ink); background: transparent; border: 1.5px solid var(--ink);
  border-radius: 6px; padding: 0.2rem 0.7rem; min-height: 32px; cursor: pointer;
}
.demo-bar button:hover { background: var(--ink); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink); color: #fff; border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: #fff; text-decoration: none; }
.brand__logo { flex: none; width: 48px; height: 48px; border-radius: 10px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2); }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; line-height: 1; text-transform: uppercase; letter-spacing: 0.01em; }

.nav-toggle {
  display: inline-grid; place-items: center; width: 48px; height: 48px; padding: 0;
  background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.4); border-radius: var(--radius); cursor: pointer;
}
.nav-toggle:hover { background: rgba(255, 255, 255, 0.1); }
.nav-toggle .icon-close, .nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  flex-direction: column; gap: 1rem; padding: 0.25rem var(--gutter) 1.5rem;
  background: var(--ink); border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.5);
}
.site-nav.is-open { display: flex; }

.nav-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.nav-links a, .nav-login {
  display: flex; align-items: center; min-height: 52px; color: rgba(255, 255, 255, 0.9);
  font: 600 1.0625rem var(--font-body); text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.nav-links a:hover, .nav-login:hover { color: #fff; }
.nav-links a[aria-current="page"] { color: #fff; box-shadow: inset 3px 0 0 var(--brass); padding-left: 0.85rem; }
.nav-auth { display: flex; flex-direction: column; gap: 0.75rem; }
.nav-auth .nav-login { background: none; border: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); cursor: pointer; text-align: left; }
.nav-auth .btn { width: 100%; }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; position: static; flex-direction: row; align-items: center; gap: 2rem; padding: 0; background: none; border: 0; box-shadow: none; }
  .nav-links { flex-direction: row; gap: 0.25rem; }
  .nav-links a, .nav-login {
    min-height: 44px; padding: 0 0.85rem; border-bottom: 0; border-radius: 6px; font-size: 1rem;
  }
  .nav-links a:hover, .nav-login:hover { background: rgba(255, 255, 255, 0.1); }
  .nav-links a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--brass); border-radius: 6px 6px 0 0; padding-left: 0.85rem; }
  .nav-auth { flex-direction: row; align-items: center; gap: 0.5rem; }
  .nav-auth .btn { width: auto; }
  .nav-auth .nav-login { border-bottom: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow-x: clip;
  background: var(--ink); color: #fff;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(5rem, 9vw, 7rem);
}
.hero::before {
  content: ""; position: absolute; inset: 0; background-image: var(--pockets); background-size: 140px 196px; background-position: 20px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 5%, #000 75%); mask-image: linear-gradient(90deg, transparent 5%, #000 75%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 48px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath fill='%23F1F4F2' d='M0 48V26C160 6 320 44 520 28S900 4 1100 26 1340 38 1440 16V48Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  pointer-events: none;
}
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; align-items: center; }
.hero__copy { max-width: 40rem; min-width: 0; }
.hero h1 { overflow-wrap: break-word; }
.hero__lead { margin: 1.5rem 0 2rem; font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem); color: rgba(255, 255, 255, 0.86); max-width: 34rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero__actions .btn { flex: 1 1 11rem; }
.hero__contact { margin-top: 1.5rem; color: rgba(255, 255, 255, 0.78); font-size: 1rem; }
.hero__contact a { font-weight: 700; }

@media (min-width: 560px) { .hero__actions .btn { flex: 0 1 auto; } }
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 4rem; }
}

/* The slab: a graded-card holder that carries a sample consignment */
@property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

.slab {
  --angle: 200deg;
  position: relative; margin: 0; width: min(100%, 22rem); padding: 10px; border-radius: 20px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.07));
  box-shadow: 0 30px 60px -22px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.3);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotate(var(--tilt, 0deg));
  transition: transform 0.2s ease-out;
  animation: slab-in 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  color: var(--ink);
}
.slab::before {
  content: ""; position: absolute; inset: -3px; border-radius: 23px; padding: 3px; pointer-events: none;
  background: conic-gradient(from var(--angle), #7DB9CE, #E0A93B, #E8A6BC, #8FD6B5, #7DB9CE);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: foil 2.4s ease-out both;
}
@keyframes foil { from { --angle: 0deg; } to { --angle: 200deg; } }
@keyframes slab-in { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }

@media (min-width: 960px) { .slab { --tilt: 2deg; justify-self: center; } }

.slab__label {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: #fff; border-radius: 10px; border-bottom: 4px solid var(--pennant); padding: 0.75rem 0.95rem;
}
.slab__label p { margin: 0; }
.slab__kicker { font-size: 0.8125rem; font-weight: 700; color: var(--muted); line-height: 1.2; }
.slab__id { font-family: var(--font-mono); font-weight: 600; font-size: 1.25rem; line-height: 1.3; }
.slab__barcode { width: 72px; height: 30px; flex: none; }
.slab__window { margin-top: 8px; background: #F6F8F7; border-radius: 8px; padding: 1.1rem 1.1rem 1.25rem; }
.slab__facts { margin: 0 0 1.1rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem 1rem; }
.slab__facts dt { font-size: 0.8125rem; color: var(--muted); font-weight: 600; }
.slab__facts dd { margin: 0; font-weight: 700; }
.slab__facts dd.mono { font-size: 0.9375rem; font-weight: 600; word-break: break-all; }
.slab__facts-wide { grid-column: 1 / -1; }

/* ---------- Progress steps (shared) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.steps li {
  position: relative; padding-top: 1.55rem; text-align: center; font-size: 0.8125rem; line-height: 1.2; color: var(--muted);
}
.steps li::before {
  content: ""; position: absolute; top: 0.25rem; left: 50%; width: 0.85rem; height: 0.85rem; margin-left: -0.425rem;
  border-radius: 50%; background: #fff; border: 2px solid #8FA19A; z-index: 1;
}
.steps li::after {
  content: ""; position: absolute; top: 0.62rem; right: 50%; width: 100%; height: 2px; background: #C5D0CB;
}
.steps li:first-child::after { display: none; }
.steps li.is-done::before { background: var(--ok); border-color: var(--ok); }
.steps li.is-done::after, .steps li.is-current::after { background: var(--ok); }
.steps li.is-current { color: var(--ink); font-weight: 700; }
.steps li.is-current::before { border-color: var(--ok); box-shadow: 0 0 0 4px rgba(30, 122, 76, 0.2); }

.steps--vertical { grid-template-columns: 1fr; }
.steps--vertical li { padding: 0 0 0.9rem 1.8rem; min-height: 1.5rem; text-align: left; font-size: 0.9375rem; line-height: 1.5rem; }
.steps--vertical li:last-child { padding-bottom: 0; }
.steps--vertical li::before { top: 0.33rem; left: 0; margin-left: 0; }
.steps--vertical li::after { top: calc(0.75rem - 2.4rem); right: auto; left: calc(0.425rem - 1px); width: 2px; height: 2.4rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--paper { background: var(--paper); border-block: 1px solid var(--line); }
.section--flush { padding-top: 0; }
.section-head { display: grid; gap: 1rem; max-width: 46rem; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.section-link { margin-top: 2rem; font-weight: 700; }

/* How it works */
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.75rem; }
.flow li { position: relative; padding-left: 3.6rem; }
.flow li p { color: var(--muted); }
.flow__num {
  position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 2.6rem; height: 2.6rem;
  border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; line-height: 1;
}
.flow li:not(:last-child)::after { content: ""; position: absolute; left: 1.3rem; top: 3rem; bottom: -1.5rem; width: 2px; background: var(--line); }
@media (min-width: 1000px) {
  .flow { grid-template-columns: repeat(5, 1fr); gap: 1.75rem; }
  .flow li { padding: 3.6rem 0 0; }
  .flow li:not(:last-child)::after { left: 3.1rem; right: -1.75rem; top: 1.3rem; bottom: auto; width: auto; height: 2px; }
}

/* Services */
.services { display: grid; gap: 1.5rem; }
.consign-panel {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 1rem;
  min-height: 19rem; padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--radius-lg);
  background: var(--ink) var(--pockets) 100% 0 / 140px 196px; color: #fff;
}
.consign-panel h3 { font-family: var(--font-display); font-size: clamp(2.75rem, 7vw, 4rem); font-weight: 800; line-height: 0.9; text-transform: uppercase; margin: 0; }
.consign-panel p { color: rgba(255, 255, 255, 0.86); max-width: 28rem; }
.svc-list { list-style: none; margin: 0; padding: 0; }
.svc-list li { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.4rem 0; border-top: 1px solid var(--line); }
.svc-list li:last-child { border-bottom: 1px solid var(--line); }
.svc-list p { color: var(--muted); }
.svc-icon { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 10px; background: var(--stock); color: var(--ink); }
@media (min-width: 900px) {
  .services { grid-template-columns: 5fr 7fr; gap: 3rem; }
  .svc-list li:first-child { padding-top: 0; border-top: 0; }
}

/* Photos */
.photos { display: grid; gap: 1rem; }
.photo {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem;
  min-height: 12rem; padding: 1.5rem; text-align: center; color: var(--muted);
  border: 2px dashed #8FA19A; border-radius: var(--radius-lg);
  background: repeating-linear-gradient(135deg, #E7EDEA 0 14px, #EEF2F0 14px 28px);
}
.photo svg { margin-bottom: 0.4rem; }
.photo p { margin: 0; }
.photo__title { font-weight: 700; color: var(--ink); }
.photo__note { font-size: 0.9375rem; }
@media (min-width: 700px) {
  .photos { grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; }
  .photo--tall { grid-row: span 2; min-height: 22rem; }
}

/* Visit */
.visit { display: grid; gap: 2.5rem; align-items: center; }
.visit__copy { display: grid; gap: 1.25rem; }
.visit__copy > * { margin: 0; }
.info-list { margin: 0; display: grid; }
.info-list > div { display: grid; grid-template-columns: 6rem 1fr; gap: 0.75rem; padding: 0.9rem 0; border-top: 1px solid var(--line); }
.info-list > div:last-child { border-bottom: 1px solid var(--line); }
.info-list dt { font-weight: 700; color: var(--muted); }
.info-list dd { margin: 0; overflow-wrap: anywhere; }
.map { margin: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: #E6EEEA; }
.map svg { display: block; width: 100%; height: auto; }
@media (min-width: 900px) { .visit { grid-template-columns: 5fr 7fr; gap: 3rem; } }

/* CTA band */
.cta-band { padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(3rem, 7vw, 5rem); }
.cta-band__box {
  display: grid; gap: 1.75rem; align-items: center; padding: clamp(1.75rem, 5vw, 3.25rem);
  border-radius: var(--radius-lg); background: var(--ink) var(--pockets) 100% 0 / 140px 196px; color: #fff;
}
.cta-band__box p { color: rgba(255, 255, 255, 0.84); margin: 0.9rem 0 0; max-width: 32rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.cta-band__actions .btn { flex: 1 1 11rem; }
@media (min-width: 900px) {
  .cta-band__box { grid-template-columns: 1fr auto; gap: 3rem; }
  .cta-band__actions { flex-direction: column; }
  .cta-band__actions .btn { flex: none; min-width: 15rem; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.82); padding: clamp(2.5rem, 6vw, 4rem) 0 1.5rem; }
.footer__grid { display: grid; gap: 2rem; }
.footer__brand p { margin-top: 1rem; max-width: 20rem; }
.footer__title { font-weight: 700; color: #fff; margin-bottom: 0.6rem; }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.1rem; }
.footer__list a { display: inline-block; padding: 0.35rem 0; }
.footer__legal p { margin: 0; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.9375rem; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr; gap: 3rem; } }

/* ---------- Inner pages ---------- */
.page-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.75rem, 4vw, 3rem); }
.page-head h1 { font-size: clamp(2.9rem, 2rem + 4.5vw, 5rem); }
.page-head .lead { margin-top: 1.1rem; }
.page-head--compact { padding-bottom: 1.75rem; }

/* Consign guide */
.guide { list-style: none; margin: 0; padding: 0; }
.guide > li { display: grid; gap: 1rem; padding: 2rem 0; border-top: 1px solid var(--line); }
.guide > li:last-child { border-bottom: 1px solid var(--line); }
.guide__head { display: flex; align-items: flex-start; gap: 1rem; }
.guide__head h2 { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); padding-top: 0.2rem; }
.guide__num { font-family: var(--font-display); font-weight: 800; font-size: 3.5rem; line-height: 0.85; color: var(--pennant); min-width: 2rem; }
.guide__body > * + * { margin-top: 1rem; }
.guide__body .btn + .btn { margin-left: 0.5rem; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.checks li {
  padding-left: 1.9rem; position: relative;
}
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.25rem; width: 1.15rem; height: 1.15rem; border-radius: 4px; background: var(--ok)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.ship-to { margin: 1.25rem 0 0; display: grid; gap: 0.5rem; padding: 1rem 1.1rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.ship-to > div { display: grid; grid-template-columns: 7rem 1fr; gap: 0.75rem; }
.ship-to dt { font-weight: 700; color: var(--muted); }
.ship-to dd { margin: 0; }
@media (min-width: 800px) {
  .guide > li { grid-template-columns: 5fr 7fr; gap: 3rem; padding: 2.5rem 0; }
}

.terms-wrap, .faq-wrap { display: grid; gap: 1.5rem; }
@media (min-width: 900px) {
  .terms-wrap, .faq-wrap { grid-template-columns: 5fr 7fr; gap: 3rem; align-items: start; }
  .terms-wrap .section-head, .faq-wrap .section-head { margin-bottom: 0; }
}
.terms { margin: 0; display: grid; }
.terms > div { display: grid; grid-template-columns: minmax(8rem, 12rem) 1fr; gap: 1rem; padding: 0.95rem 0; border-top: 1px solid var(--line); }
.terms > div:last-child { border-bottom: 1px solid var(--line); }
.terms dt { font-weight: 700; }
.terms dd { margin: 0; }

.faq { min-width: 0; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 56px; padding: 0.9rem 0;
  font-weight: 700; font-size: 1.0625rem; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--pennant); }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: #0B5A8A; }
.faq details > div { padding: 0 0 1.25rem; max-width: 40rem; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; gap: 2.5rem; align-items: start; }
.contact-info { display: grid; gap: 1.75rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 7fr 5fr; gap: 3rem; } }

/* ---------- Forms ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.25rem, 3.5vw, 2rem); }
.card__title { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem); margin-bottom: 1.25rem; }

.field { display: grid; gap: 0.4rem; margin-bottom: 1.15rem; }
.field label { font-weight: 700; font-size: 0.9375rem; }
.optional { font-weight: 500; color: var(--muted); }
.hint { margin: 0; font-size: 0.875rem; color: var(--muted); }
.field__error { margin: 0; font-size: 0.875rem; font-weight: 600; color: var(--error); }
.form-row { display: grid; column-gap: 1rem; }
@media (min-width: 560px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }

input, select, textarea {
  width: 100%; min-height: 48px; padding: 0.65rem 0.85rem; font: inherit; color: var(--ink);
  background: #fff; border: 1.5px solid #7C8E87; border-radius: var(--radius);
}
textarea { min-height: 7.5rem; resize: vertical; }
select { appearance: none; padding-right: 2.5rem; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%230E2233' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 0.8rem center / 1rem no-repeat; }
input:hover, select:hover, textarea:hover { border-color: var(--ink); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.mono-input { font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.02em; }
input[type="file"] { padding: 0.5rem; min-height: 0; font-size: 0.9375rem; }
input[type="file"]::file-selector-button {
  margin-right: 0.85rem; padding: 0.55rem 1rem; font: 700 0.9375rem var(--font-body); color: var(--ink);
  background: var(--stock); border: 1.5px solid var(--ink); border-radius: 6px; cursor: pointer;
}
input[type="file"]::file-selector-button:hover { background: var(--ink); color: #fff; }

.input-wrap { position: relative; }
.input-wrap input { padding-right: 4.5rem; }
.input-toggle {
  position: absolute; top: 4px; right: 4px; bottom: 4px; min-width: 56px; padding: 0 0.75rem;
  font: 700 0.875rem var(--font-body); color: #0B5A8A; background: transparent; border: 0; border-radius: 6px; cursor: pointer;
}
.input-toggle:hover { background: var(--stock); color: var(--ink); }

.form-status, .form-notice {
  margin-top: 1rem; padding: 0.85rem 1rem; border-radius: var(--radius); font-weight: 600; font-size: 0.9375rem;
  background: #E3F2EA; color: #14573A; border: 1px solid #A9D5BD;
}
.form-status.is-error { background: #FCE8E6; color: #8C1D18; border-color: #F1B5B0; }
.form-notice { background: #E3EEF6; color: #0F4A73; border-color: #B3CFE2; margin-top: 0; margin-bottom: 1.25rem; }
.form-notice.is-error { background: #FCE8E6; color: #8C1D18; border-color: #F1B5B0; }
.page-head .form-notice { margin: 1.25rem 0 0; max-width: 38rem; }
.form-hint { margin-top: 1.25rem; font-size: 0.875rem; color: var(--muted); }

/* ---------- Auth pages ---------- */
.auth { display: grid; }
.auth__aside { display: none; }
.auth__main { display: grid; justify-items: center; padding: clamp(2rem, 6vw, 4rem) var(--gutter); }
.auth__box { width: min(100%, 28rem); }
.auth__box h1 { font-size: clamp(2.75rem, 2rem + 3.5vw, 4rem); margin-bottom: 1.5rem; }
.auth__alt { margin: 0.25rem 0 0; }
@media (min-width: 860px) {
  .auth { grid-template-columns: 5fr 6fr; min-height: 36rem; }
  .auth__aside {
    display: flex; flex-direction: column; justify-content: center; gap: 2rem; padding: 3.5rem clamp(2rem, 5vw, 4rem);
    background: var(--ink) var(--pockets) 100% 0 / 140px 196px; color: #fff;
  }
  .auth__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.75rem, 4.5vw, 4rem); line-height: 0.95; text-transform: uppercase; margin: 0; }
  .auth__points { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; max-width: 22rem; }
  .auth__points li { display: grid; gap: 0.2rem; padding-left: 1rem; border-left: 3px solid var(--brass); }
  .auth__points span { color: rgba(255, 255, 255, 0.82); }
  .auth__main { align-content: center; }
}

/* ---------- Account ---------- */
.account { display: grid; gap: 2rem; padding-bottom: clamp(3rem, 7vw, 5rem); }
.orders-panel .card__title { margin-bottom: 1rem; }
.orders { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.order { display: grid; gap: 1.1rem; padding: 1.25rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.order--new { animation: order-flash 2.4s ease-out; }
@keyframes order-flash { from { box-shadow: 0 0 0 5px rgba(43, 127, 191, 0.5); } to { box-shadow: 0 0 0 0 rgba(43, 127, 191, 0); } }
.order__top { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.order__ref { margin: 0 auto 0 0; font-family: var(--font-mono); font-size: 1.1875rem; font-weight: 600; }
.order__meta { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 0.9rem 1.25rem; }
.order__meta dt { font-size: 0.8125rem; font-weight: 600; color: var(--muted); }
.order__meta dd { margin: 0; overflow-wrap: anywhere; }
.order__wide { grid-column: 1 / -1; }
.track-link { display: inline-block; margin-top: 0.15rem; font-size: 0.9375rem; font-weight: 600; }

.pill { display: inline-flex; align-items: center; padding: 0.15rem 0.7rem; border-radius: 999px; font-size: 0.8125rem; font-weight: 700; background: #E1ECF5; color: #0F4A73; }
.pill--1 { background: #DDF0E6; color: #14573A; }
.pill--2 { background: #FBF1D9; color: #5C4208; }
.pill--3 { background: #E6E3F5; color: #3B2E7A; }
.pill--4 { background: var(--ink); color: #fff; }
.pill--sample { background: #fff; color: var(--muted); border: 1px dashed #8FA19A; }

.empty { padding: 1.5rem; text-align: left; color: var(--muted); border: 2px dashed #8FA19A; border-radius: var(--radius-lg); }

@media (min-width: 1000px) {
  .account { grid-template-columns: 5fr 7fr; gap: 2.5rem; align-items: start; }
}

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

/* ==========================================================================
   Additions: agreement, signing, admin
   ========================================================================== */
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Consign step 2: key terms and the agreement text */
.key-terms { padding: 1.1rem 1.25rem; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--brass); border-radius: var(--radius); }
.key-terms__title { margin: 0 0 0.75rem; font-weight: 700; }
.key-terms__note { margin: 0.9rem 0 0; font-size: 0.9375rem; color: var(--muted); }
.guide__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.guide__body .guide__actions .btn + .btn { margin-left: 0; }

.agreement-doc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.agreement-doc > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 56px; padding: 0.75rem 1.25rem;
  font-weight: 700; cursor: pointer; list-style: none;
}
.agreement-doc > summary::-webkit-details-marker { display: none; }
.agreement-doc > summary::after { content: "+"; font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--pennant); }
.agreement-doc[open] > summary::after { content: "\2212"; }
.agreement-doc > summary:hover { color: #0B5A8A; }

.agreement {
  max-height: 32rem; overflow-y: auto; margin: 0; padding: 0.5rem 1.25rem 1.5rem; border-top: 1px solid var(--line);
  font-size: 1rem; line-height: 1.65; overscroll-behavior: contain;
}
.agreement > * + * { margin-top: 0.85rem; }
.agreement > p { margin-bottom: 0; }
.agreement__title { margin-top: 1rem; font-family: var(--font-display); font-weight: 800; font-size: 1.75rem; line-height: 1; text-transform: uppercase; }
.agreement h3 { margin: 1.75rem 0 0; font-size: 1.0625rem; }
.agreement h3 + * { margin-top: 0.5rem; }
.agreement ul, .agreement ol { margin: 0; padding-left: 1.4rem; display: grid; gap: 0.4rem; }
.agreement__parties { margin: 0.85rem 0 0; display: grid; gap: 0.35rem; padding: 0.85rem 1rem; background: var(--stock); border-radius: var(--radius); }
.agreement__parties > div { display: grid; grid-template-columns: minmax(9rem, 13rem) 1fr; gap: 0.75rem; }
.agreement__parties dt { font-weight: 700; }
.agreement__parties dd { margin: 0; }
.agreement__end { font-weight: 700; color: var(--muted); }
@media (max-width: 559px) { .agreement__parties > div { grid-template-columns: 1fr; gap: 0; } }

/* Terms rows now hold sentences */
.terms > div { grid-template-columns: minmax(7.5rem, 11rem) 1fr; }

/* Form helpers */
.check-field { display: flex; align-items: flex-start; gap: 0.75rem; }
.check-field label { font-weight: 500; font-size: 1rem; line-height: 1.45; }
input[type="checkbox"] {
  flex: none; width: 1.5rem; height: 1.5rem; min-height: 0; margin: 0.1rem 0 0; padding: 0; accent-color: var(--ink); cursor: pointer;
}
.form-fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.form-fieldset:disabled { opacity: 0.5; }
.form-fieldset:disabled .btn { cursor: not-allowed; }
.form-lock {
  margin: 0 0 1.25rem; padding: 0.85rem 1rem; border-radius: var(--radius); font-weight: 600; font-size: 0.9375rem;
  background: #FBF1D9; color: #5C4208; border: 1px solid #E3C77C;
}

/* Account: left column holds the agreement and the tracking form */
.account__left { display: grid; gap: 1.5rem; min-width: 0; }
.sign-panel__intro { margin: -0.5rem 0 1.25rem; color: var(--muted); }
.signed-note {
  margin: 0; padding: 0.85rem 1rem; border-radius: var(--radius); font-weight: 600; font-size: 0.9375rem;
  background: #E3F2EA; color: #14573A; border: 1px solid #A9D5BD;
}
.signed-note a { color: inherit; }

/* Admin */
.admin { display: grid; gap: 1.5rem; padding-bottom: clamp(3rem, 7vw, 5rem); }

.stats { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.stat { padding: 1rem 1.1rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); display: grid; gap: 0.15rem; }
.stat dt { font-size: 0.9375rem; font-weight: 600; color: var(--muted); }
.stat dd { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 3rem; line-height: 1; font-variant-numeric: tabular-nums; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); gap: 1rem; } }

.admin-bar { display: grid; gap: 1rem; align-items: end; }
.admin-bar .field { margin: 0; }
.admin-sample { align-items: center; }
.admin-sample label { font-size: 0.9375rem; font-weight: 600; }
.admin-refresh { min-height: 48px; justify-self: start; }
@media (min-width: 900px) {
  .admin-bar { grid-template-columns: auto minmax(14rem, 1fr) 12rem auto; gap: 1rem 1.25rem; }
  .admin-sample { min-height: 48px; }
}

.seg { display: inline-flex; padding: 4px; gap: 4px; background: #E3E9E6; border-radius: 10px; justify-self: start; }
.seg button {
  min-height: 44px; padding: 0 1.25rem; font: 700 1rem var(--font-body); color: var(--ink);
  background: transparent; border: 0; border-radius: 7px; cursor: pointer;
}
.seg button:hover { background: rgba(255, 255, 255, 0.6); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }

.table-wrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.data { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.data th {
  padding: 0.85rem 1rem; text-align: left; font-size: 0.8125rem; font-weight: 700; color: var(--muted);
  background: #F7F9F8; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.data td { padding: 0.9rem 1rem; vertical-align: top; border-bottom: 1px solid var(--line); }
.data tbody tr:last-child td { border-bottom: 0; }
.data tbody tr:hover { background: #FAFBFA; }
.cell-main { margin: 0; font-weight: 700; }
.cell-sub { margin: 0.1rem 0 0; font-size: 0.875rem; color: var(--muted); overflow-wrap: anywhere; }
.cell-sub.mono { font-family: var(--font-mono); font-size: 0.875rem; color: var(--ink); }
.data .pill { margin-left: 0.4rem; vertical-align: middle; }
.data .link-btn { min-height: 36px; padding: 0.2rem 0; }
.pill--ok { background: #DDF0E6; color: #14573A; }
.pill--warn { background: #FBF1D9; color: #5C4208; }

.status-select { min-height: 44px; padding: 0.4rem 2.25rem 0.4rem 0.7rem; font-weight: 700; font-size: 0.9375rem; min-width: 9.5rem; }
.status-select[data-status="0"] { border-left: 6px solid #2B7FBF; }
.status-select[data-status="1"] { border-left: 6px solid #1E7A4C; }
.status-select[data-status="2"] { border-left: 6px solid #E0A93B; }
.status-select[data-status="3"] { border-left: 6px solid #6B54C9; }
.status-select[data-status="4"] { border-left: 6px solid var(--ink); }

/* Tables become stacked cards on narrow screens */
@media (max-width: 899px) {
  .table-wrap { background: transparent; border: 0; overflow: visible; }
  .data, .data tbody { display: block; }
  .data thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .data tbody { display: grid; gap: 0.85rem; }
  .data tbody tr {
    display: grid; gap: 0.75rem; padding: 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  }
  .data td { display: grid; grid-template-columns: 6.5rem 1fr; gap: 0.75rem; padding: 0; border: 0; align-items: start; }
  .data td::before { content: attr(data-label); font-size: 0.8125rem; font-weight: 700; color: var(--muted); padding-top: 0.15rem; }
  .data td.cell-first { display: block; }
  .data td.cell-first::before { content: none; }
  .status-select { width: 100%; }
}

/* ---------- Commission rates (home page) ---------- */
.rates { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 820px) { .rates { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.rates__group { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.rates__table { width: 100%; border-collapse: collapse; }
.rates__table caption { padding: 1.1rem 1.25rem 0.95rem; text-align: left; font: 800 1.625rem/1.1 var(--font-display); letter-spacing: 0.01em; }
.rates__table th, .rates__table td { padding: 0.9rem 1.25rem; text-align: left; vertical-align: baseline; border-top: 1px solid var(--line); }
.rates__table thead th { font-size: 0.875rem; font-weight: 700; color: var(--muted); background: #F7F9F8; }
.rates__table tbody th { width: 55%; font-weight: 600; }
.rates__table td { font: 800 1.75rem/1.1 var(--font-display); letter-spacing: 0.01em; }
.rates__note { display: block; margin-top: 0.3rem; font: 500 0.875rem/1.3 var(--font-body); letter-spacing: 0; color: var(--muted); }
.rates__foot { margin: 1.75rem 0 0; max-width: 46rem; color: var(--muted); }
#rates + #photos { padding-top: 0; }
