/* ============================================================
   REGISTRY — a dealer that keeps its paperwork straight
   ------------------------------------------------------------
   Paper:  security-mint stock with a fine guilloché, like a
           certificate of title.
   Ink:    deep engraving green; crimson for the seal and the
           main action; a little gold on the rules.
   Type:   Libre Caslon (engraved headings, prices),
           Public Sans (everything you read or type).
   Motifs: double-rule frames, numbered fields, round seals,
           perforated price stubs, folder-tab navigation.
   ============================================================ */

:root {
  --paper:   #F1F4EC;
  --paper-2: #E7EDE0;
  --card:    #FBFCF8;
  --ink:     #15291F;
  --ink-2:   #3D5146;
  --ink-3:   #6B7B70;
  --line:    #C9D4C3;
  --line-2:  #AFBDA9;
  --seal:    #A3261D;
  --seal-2:  #85201A;
  --gold:    #A8843A;
  --gold-lt: #E9D9A6;
  --call:    #34C759;
  --call-2:  #2DB84F;

  --ff-disp: "Libre Caslon Display", "Libre Caslon Text", Georgia, serif;
  --ff-serif:"Libre Caslon Text", Georgia, serif;
  --ff:      "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1220px;
  --gut: clamp(16px, 4vw, 32px);
  --r: 4px;

  --guil: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='22'%3E%3Cg fill='none' stroke='%2315291F' stroke-opacity='.075'%3E%3Cpath d='M0 11 Q10.5 0 21 11 T42 11 T63 11 T84 11'/%3E%3Cpath d='M0 11 Q10.5 22 21 11 T42 11 T63 11 T84 11'/%3E%3C/g%3E%3C/svg%3E");
  --guil-lt: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='22'%3E%3Cg fill='none' stroke='%23E9D9A6' stroke-opacity='.12'%3E%3Cpath d='M0 11 Q10.5 0 21 11 T42 11 T63 11 T84 11'/%3E%3Cpath d='M0 11 Q10.5 22 21 11 T42 11 T63 11 T84 11'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--ff); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.12; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 999; }
.skip:focus { left: 8px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--seal); outline-offset: 2px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; }
.fine { font-size: .84rem; color: var(--ink-3); }
.guil { background-image: var(--guil); }

.eyebrow {
  display: inline-block; font: 700 .7rem/1.2 var(--ff); letter-spacing: .18em; text-transform: uppercase;
  color: var(--seal);
}
.eyebrow--lt { color: var(--gold-lt); }

/* ── buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 0 20px; border: 1.5px solid var(--ink); border-radius: var(--r);
  background: transparent; color: var(--ink); font: 700 .95rem/1 var(--ff); letter-spacing: .01em;
  text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--ink  { background: var(--ink); color: var(--card); }
.btn--ink:hover { background: #0C1B14; }
.btn--seal { background: var(--seal); border-color: var(--seal); color: #fff; }
.btn--seal:hover { background: var(--seal-2); border-color: var(--seal-2); }
.btn--line:hover { background: var(--ink); color: var(--card); }
.btn--call { background: var(--call); border-color: var(--call); color: #fff; }
.btn--call:hover { background: var(--call-2); border-color: var(--call-2); }
.btn--paper { background: var(--card); border-color: var(--card); color: var(--ink); }
.btn--wide { width: 100%; }

/* ── record strip + header ────────────────────────────────── */
.mast { background: var(--ink); color: var(--gold-lt); font-size: .78rem; letter-spacing: .04em; }
.mast__in { display: flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 34px; }
.mast__r { display: flex; gap: 18px; }
.mast a { color: #fff; text-decoration: none; font-weight: 700; }
@media (max-width: 760px) { .mast__l { display: none; } .mast__in { justify-content: center; } }

.head { background: var(--paper); border-bottom: 1.5px solid var(--ink); position: relative; }
.head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; border-bottom: 1px solid var(--ink); }
.head__in { display: flex; align-items: flex-end; gap: 24px; padding-top: 14px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; padding-bottom: 12px; flex: none; min-width: 0; }
.brand img { max-height: 58px; width: auto; }
.brand__seal { width: 48px; height: 48px; color: var(--seal); flex: none; }
.brand__txt { display: flex; flex-direction: column; min-width: 0; }
.brand__txt b { font: 700 1.35rem/1.1 var(--ff-serif); letter-spacing: -.01em; }
.brand__txt small { font-size: .74rem; color: var(--ink-3); letter-spacing: .08em; text-transform: uppercase; margin-top: 3px; }

.tabs { display: flex; gap: 3px; margin-left: auto; align-self: flex-end; }
.tab {
  position: relative; display: block; padding: 10px 14px 9px; margin-bottom: -1.5px;
  font: 600 .88rem/1 var(--ff); text-decoration: none; color: var(--ink-2);
  border: 1.5px solid transparent; border-bottom: 0; border-radius: 8px 8px 0 0;
}
.tab:hover { color: var(--ink); background: var(--paper-2); border-color: var(--line); }
.tab.on { background: var(--card); color: var(--ink); border-color: var(--ink); }
.tab.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1.5px; height: 3px; background: var(--card); }

.head__act { display: flex; align-items: center; gap: 8px; padding-bottom: 14px; }
.head__call { display: inline-flex; align-items: center; gap: 7px; font: 700 .9rem var(--ff); text-decoration: none; padding: 9px 12px; border: 1.5px solid var(--ink); border-radius: var(--r); }
.head__call svg { width: 16px; height: 16px; }
.head__idx { display: none; align-items: center; gap: 9px; min-height: 42px; padding: 0 14px; border: 1.5px solid var(--ink); border-radius: var(--r); background: var(--ink); color: var(--card); font: 700 .86rem var(--ff); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.head__idx i, .head__idx i::before, .head__idx i::after { display: block; width: 16px; height: 1.5px; background: currentColor; position: relative; }
.head__idx i::before, .head__idx i::after { content: ""; position: absolute; left: 0; }
.head__idx i::before { top: -5px; } .head__idx i::after { top: 5px; }

@media (max-width: 1180px) { .head__call span { display: none; } }
@media (max-width: 1080px) {
  .tabs { display: none; }
  .head__in { align-items: center; min-height: 70px; padding-block: 10px; }
  .brand { padding-bottom: 0; }
  .head__act { padding-bottom: 0; margin-left: auto; }
  .head__idx { display: inline-flex; }
}
@media (max-width: 560px) {
  .brand__seal { width: 40px; height: 40px; }
  .brand__txt b { font-size: 1.1rem; }
  .brand__txt small { display: none; }
  .brand img { max-height: 46px; }
}

/* ── Index (table of contents) ────────────────────────────── */
.toc { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.toc.is-open { visibility: visible; }
.toc__scrim { position: absolute; inset: 0; background: rgba(21, 41, 31, .5); opacity: 0; transition: opacity .2s; }
.toc.is-open .toc__scrim { opacity: 1; }
.toc__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 92vw); overflow-y: auto;
  background: var(--card) var(--guil); border-left: 1.5px solid var(--ink);
  padding: 18px 22px calc(26px + env(safe-area-inset-bottom)); transform: translateX(102%); transition: transform .24s ease;
}
.toc.is-open .toc__panel { transform: none; }
.toc__hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1.5px solid var(--ink); }
.toc__x { background: none; border: 0; font-size: 2rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.toc__row { display: grid; grid-template-columns: 42px auto 1fr; align-items: baseline; column-gap: 8px; padding: 12px 0; text-decoration: none; border-bottom: 1px solid var(--line); }
.toc__row em { font: italic 400 .9rem var(--ff-serif); color: var(--ink-3); }
.toc__row b { font: 400 1.35rem var(--ff-disp); }
.toc__lead { border-bottom: 1.5px dotted var(--line-2); transform: translateY(-5px); }
.toc__row small { grid-column: 2 / 4; font-size: .82rem; color: var(--ink-3); }
.toc__row.on b { color: var(--seal); }
.toc__foot { margin-top: 22px; }
.toc__foot p { margin: 10px 0 0; font-size: .9rem; color: var(--ink-2); }

/* ── shared blocks ────────────────────────────────────────── */
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 18px; font-size: .84rem; color: var(--ink-3); }
.crumb a { text-decoration: none; color: var(--ink-2); }
.crumb a:hover { color: var(--seal); }
.crumb i { font-style: normal; color: var(--line-2); }
.crumb span { color: var(--ink); max-width: 60ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ph { padding: 18px 0 26px; border-bottom: 1.5px solid var(--ink); margin-bottom: 30px; position: relative; }
.ph::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; border-bottom: 1px solid var(--ink); }
.ph h1 { font: 400 clamp(2rem, 4.6vw, 3.4rem)/1.06 var(--ff-disp); margin-top: 8px; max-width: 22ch; }
.ph p { margin: 14px 0 0; max-width: 62ch; color: var(--ink-2); font-size: 1.05rem; }

.sec { padding-top: clamp(44px, 6vw, 76px); }
.sec__hd { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line-2); }
.sec__hd h2 { font: 400 clamp(1.7rem, 3.4vw, 2.5rem)/1.1 var(--ff-disp); margin-top: 6px; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .92rem; text-decoration: none; white-space: nowrap; }
.more svg { width: 16px; height: 16px; }
.more:hover { color: var(--seal); }

.two { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(24px, 4vw, 54px); align-items: start; }
@media (max-width: 960px) { .two { grid-template-columns: minmax(0, 1fr); } }
.side { position: sticky; top: 18px; }
@media (max-width: 960px) { .side { position: static; } }
.page { max-width: 72ch; }
.page h2 { font: 400 1.7rem/1.15 var(--ff-disp); margin: 1.4em 0 .5em; }
.page p { color: var(--ink-2); }
.note { margin-top: 26px; padding: 16px 18px; border-left: 3px solid var(--gold); background: var(--card); color: var(--ink-2); }
.note p { margin: 0; }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding: 8px 0 8px 28px; border-bottom: 1px dashed var(--line); color: var(--ink-2); }
.ticks li::before { content: "✓"; position: absolute; left: 4px; top: 8px; color: var(--seal); font-weight: 800; }

/* the certificate frame: double rule */
.cert { position: relative; margin: 0; background: var(--card); border: 1.5px solid var(--ink); padding: 12px; }
.cert::before { content: ""; position: absolute; inset: 5px; border: 1px solid var(--gold); pointer-events: none; }
.cert__ph { position: relative; overflow: hidden; }
.cert__ph img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.cert--flat { margin-bottom: 22px; }
.cert--flat .cert__ph img { aspect-ratio: 3 / 2; }

.seal { display: block; }

/* ── home ─────────────────────────────────────────────────── */
.hero { border-bottom: 1px solid var(--line-2); }
.hero__in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(26px, 5vw, 70px); align-items: center; padding-block: clamp(30px, 5vw, 64px); }
.hero__txt h1 { font: 400 clamp(2.3rem, 5.4vw, 4.3rem)/1.02 var(--ff-disp); margin: 12px 0 18px; letter-spacing: -.01em; }
.hero__txt > p { font-size: 1.12rem; color: var(--ink-2); max-width: 46ch; }
.hero__txt .row { margin-top: 22px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 0; margin: 28px 0 0; border-top: 1.5px solid var(--ink); }
.hero__facts div { padding: 12px 22px 0 0; margin-right: 22px; border-right: 1px solid var(--line-2); }
.hero__facts div:last-child { border-right: 0; }
.hero__facts dt { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.hero__facts dd { margin: 4px 0 0; font: 700 1.5rem var(--ff-serif); }
.hero__cert { transform: rotate(1.2deg); box-shadow: 0 24px 50px -30px rgba(21, 41, 31, .55); }
.hero__cert figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 12px 6px 4px; }
.hero__cert figcaption span { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.hero__cert figcaption b { font: 700 1rem var(--ff-serif); text-align: right; }
.cert__seal { position: absolute; left: -26px; bottom: 34px; width: 108px; height: 108px; color: var(--seal); background: var(--card); border-radius: 50%; transform: rotate(-14deg); box-shadow: 0 6px 16px -8px rgba(0,0,0,.4); }
@media (max-width: 900px) {
  .hero__in { grid-template-columns: minmax(0, 1fr); }
  .hero__cert { transform: none; order: -1; }
  .cert__seal { width: 84px; height: 84px; left: auto; right: 10px; bottom: 54px; }
}

.lookup-wrap { margin-top: -1px; }
.lookup {
  display: grid; grid-template-columns: auto minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; gap: 14px;
  background: var(--card); border: 1.5px solid var(--ink); padding: 16px 18px; margin-top: 28px; position: relative;
}
.lookup::before { content: ""; position: absolute; inset: 4px; border: 1px solid var(--line); pointer-events: none; }
.lookup__hd { font: 400 1.4rem/1 var(--ff-disp); align-self: center; padding-right: 8px; white-space: nowrap; }
.lf { display: flex; flex-direction: column; gap: 4px; position: relative; min-width: 0; }
.lf span { font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.lf input, .lf select { width: 100%; min-width: 0; min-height: 44px; border: 0; border-bottom: 1.5px solid var(--ink); background: transparent; padding: 6px 2px; font-size: 1rem; border-radius: 0; }
.lf select { appearance: none; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2315291F' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 4px center; padding-right: 22px; }
.lf input:focus, .lf select:focus { outline: none; border-bottom-color: var(--seal); }
.lookup .btn { min-height: 46px; }
.lookup--inv { grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)) auto; margin: 0 0 18px; }
@media (max-width: 1000px) {
  .lookup, .lookup--inv { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .lookup__hd, .lf--q { grid-column: 1 / -1; }
  .lookup .btn { grid-column: 1 / -1; }
}

/* the record card */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid { grid-template-columns: minmax(0, 1fr); } }
.rec { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1.5px solid var(--ink); transition: transform .18s, box-shadow .18s; }
.rec:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -24px rgba(21, 41, 31, .6); }
.rec__shot { position: relative; display: block; margin: 8px 8px 0; overflow: hidden; }
.rec__shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s; }
.rec:hover .rec__shot img { transform: scale(1.03); }
.rec__stamp, .gal__stamp {
  position: absolute; top: 14px; right: 14px; padding: 5px 12px; border: 2px solid var(--seal); color: var(--seal);
  background: rgba(251, 252, 248, .9); font: 800 .8rem var(--ff); letter-spacing: .2em; text-transform: uppercase; transform: rotate(6deg);
}
.rec__b { padding: 14px 16px 12px; flex: 1; }
.rec__t { font: 400 1.45rem/1.15 var(--ff-disp); margin: 6px 0 12px; }
.rec__t a { text-decoration: none; }
.rec__t a:hover { color: var(--seal); }
.rec__f { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line); }
.rec__f div { padding: 8px 8px 2px 0; border-right: 1px solid var(--line); min-width: 0; }
.rec__f div + div { padding-left: 10px; }
.rec__f div:last-child { border-right: 0; }
.rec__f dt { font-size: .62rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); display: flex; gap: 5px; }
.rec__f dt i { font-style: normal; color: var(--gold); }
.rec__f dd { margin: 3px 0 0; font-weight: 600; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec__stub { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; border-top: 1.5px dashed var(--ink); }
.rec__stub::before, .rec__stub::after { content: ""; position: absolute; top: -9px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--ink); }
.rec__stub::before { left: -9.5px; clip-path: inset(0 0 0 50%); }
.rec__stub::after { right: -9.5px; clip-path: inset(0 50% 0 0); }
.rec__stub b { font: 700 1.35rem var(--ff-serif); }
.rec--sold .rec__stub b { color: var(--seal); }
.rec__stub a { display: inline-flex; align-items: center; gap: 5px; font-size: .84rem; font-weight: 700; text-decoration: none; }
.rec__stub a svg { width: 15px; height: 15px; }
.rec__stub a:hover { color: var(--seal); }

.clauses { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(20px, 4vw, 54px); }
.clauses li { display: grid; grid-template-columns: 46px 1fr; column-gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line-2); }
.clauses em { grid-row: span 2; font: italic 400 1.6rem/1 var(--ff-serif); color: var(--gold); }
.clauses b { font: 700 1.12rem var(--ff-serif); }
.clauses p { margin: 6px 0 0; color: var(--ink-2); }
.clauses--one { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 760px) { .clauses { grid-template-columns: minmax(0, 1fr); } }

.band { margin-top: clamp(50px, 7vw, 90px); background: var(--ink) var(--guil-lt); color: var(--card); }
.band__in { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 30px; align-items: center; padding-block: clamp(36px, 5vw, 60px); }
.band h2 { font: 400 clamp(1.8rem, 3.6vw, 2.7rem)/1.08 var(--ff-disp); margin: 8px 0 12px; }
.band p { color: rgba(251, 252, 248, .78); margin: 0; max-width: 52ch; }
.band__route { position: relative; display: grid; grid-template-columns: 14px 1fr 14px; align-items: center; row-gap: 8px; }
.band__route .dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--gold-lt); }
.band__route .dot--end { background: var(--gold-lt); }
.band__route .line { height: 0; border-top: 2px dashed rgba(233, 217, 166, .6); }
.band__route small { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-lt); }
.band__route small:first-of-type { grid-column: 1 / 3; }
.band__route small:last-of-type { grid-column: 2 / 4; text-align: right; }
@media (max-width: 900px) { .band__in { grid-template-columns: minmax(0, 1fr); } }

.endorse { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 900px) { .endorse { grid-template-columns: minmax(0, 1fr); } }
.endorse blockquote { margin: 0; padding: 22px; background: var(--card); border: 1px solid var(--line-2); border-top: 3px solid var(--ink); display: flex; flex-direction: column; }
.endorse p { font: italic 400 1.08rem/1.55 var(--ff-serif); color: var(--ink-2); flex: 1; margin: 12px 0 18px; }
.endorse footer { display: flex; flex-direction: column; border-top: 1px solid var(--line); padding-top: 10px; }
.sig { font: italic 700 1.2rem var(--ff-serif); }
.endorse small { font-size: .8rem; color: var(--ink-3); }
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars svg { width: 16px; height: 16px; }

.office { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(22px, 4vw, 54px); padding: clamp(22px, 4vw, 40px); background: var(--card) var(--guil); border: 1.5px solid var(--ink); position: relative; }
.office::before { content: ""; position: absolute; inset: 5px; border: 1px solid var(--gold); pointer-events: none; }
.office h2 { font: 400 clamp(1.7rem, 3.2vw, 2.4rem)/1.1 var(--ff-disp); margin: 8px 0 12px; }
.office p { color: var(--ink-2); }
@media (max-width: 800px) { .office { grid-template-columns: minmax(0, 1fr); } }
.office__dl { margin: 0; }
.office__dl div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line-2); }
.office__dl dt { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); padding-top: 3px; }
.office__dl dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.office__dl a { text-decoration: none; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 30px; border: 1.5px solid var(--ink); background: var(--card); }
.stats div { padding: 16px 18px; border-right: 1px solid var(--line-2); display: flex; flex-direction: column-reverse; }
.stats div:last-child { border-right: 0; }
.stats dt { font-size: .74rem; color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; margin-top: 4px; }
.stats dd { margin: 0; font: 700 clamp(1.6rem, 3vw, 2.2rem)/1 var(--ff-serif); }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stats div:nth-child(2) { border-right: 0; } .stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line-2); } }

.card { background: var(--card); border: 1.5px solid var(--ink); padding: 20px; position: relative; }
.card::before { content: ""; position: absolute; inset: 5px; border: 1px solid var(--line); pointer-events: none; }
.card > * { position: relative; }
.card h3 { font: 400 1.5rem var(--ff-disp); margin-bottom: 10px; }
.card p { color: var(--ink-2); }
.card .btn + .btn { margin-top: 10px; }
.card__seal { display: flex; align-items: center; gap: 12px; padding: 12px 0; margin-bottom: 12px; border-bottom: 1px dashed var(--line-2); }
.card__seal .seal { width: 64px; height: 64px; color: var(--seal); flex: none; }
.card__seal p { margin: 0; font-size: .86rem; }

/* inventory */
.count { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; font-size: .92rem; color: var(--ink-2); }
.count a { font-weight: 700; }
.pages { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 30px; }
.pages a, .pages span { min-width: 44px; min-height: 44px; display: grid; place-items: center; border: 1.5px solid var(--ink); background: var(--card); text-decoration: none; font-weight: 700; }
.pages .on { background: var(--ink); color: var(--card); }
.sold-link { margin-top: 26px; }

/* ── the car record ───────────────────────────────────────── */
.ptop { display: none; }
.carp {
  display: grid; grid-template-columns: minmax(0, 1fr) 370px; column-gap: clamp(24px, 3.4vw, 46px); row-gap: 26px;
  grid-template-areas: "hd card" "gal card" "parts ship" "remarks ship";
  align-items: start; padding-top: 18px;
}
.gal { grid-area: gal; min-width: 0; }
.carp__hd { grid-area: hd; }
.carp > .card { grid-area: card; position: sticky; top: 18px; }
.parts { grid-area: parts; }
.ship { grid-area: ship; }
.remarks { grid-area: remarks; }

.carp__hd h1 { font: 400 clamp(2rem, 4.2vw, 3.2rem)/1.05 var(--ff-disp); margin: 8px 0 14px; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.facts li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 1px solid var(--line-2); background: var(--card); font-size: .88rem; font-weight: 600; }
.facts svg { width: 16px; height: 16px; color: var(--ink-3); flex: none; }

.gal__stage { position: relative; background: var(--card); border: 1.5px solid var(--ink); padding: 8px; }
.gal__img { display: block; width: 100%; padding: 0; border: 0; background: var(--paper-2); cursor: zoom-in; touch-action: pan-y; }
.gal__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.gal__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--ink); background: rgba(251, 252, 248, .92); font-size: 1.6rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.gal__nav--p { left: 20px; } .gal__nav--n { right: 20px; }
.gal__nav:hover { background: var(--ink); color: var(--card); }
.gal__n { position: absolute; left: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: rgba(21, 41, 31, .86); color: var(--card); font-size: .82rem; font-weight: 700; }
.gal__n svg { width: 15px; height: 15px; }
.gal__stamp { top: 22px; right: 22px; }
.gal__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 4px; scrollbar-width: thin; }
.gal__thumbs button { flex: 0 0 108px; padding: 0; border: 1.5px solid transparent; background: none; cursor: pointer; scroll-snap-align: start; opacity: .62; transition: opacity .15s, border-color .15s; }
.gal__thumbs button.on, .gal__thumbs button:hover { opacity: 1; border-color: var(--ink); }
.gal__thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.card__top { padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1.5px solid var(--ink); }
.card__price { display: block; font: 700 clamp(2.2rem, 3.4vw, 2.8rem)/1.05 var(--ff-serif); margin: 6px 0 8px; }
.card__price.sold { color: var(--seal); }
.card__top p { margin: 0; font-size: .88rem; }
.card__acts { display: grid; gap: 10px; }
.card__acts .btn + .btn { margin-top: 0; }
.card__cf { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 700; font-size: .9rem; text-decoration: none; }
.card__cf svg { width: 17px; height: 17px; }
.card__cf svg:last-child { width: 14px; height: 14px; margin-left: auto; }
.card__cf:hover { color: var(--seal); }
.carp .card__seal { border-bottom: 0; border-top: 1px dashed var(--line-2); margin: 14px 0 0; padding-bottom: 0; }

.parts h2, .ship h2, .remarks h2 { font: 400 1.9rem/1.1 var(--ff-disp); margin-bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
.parts dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: 1.5px solid var(--ink); border-left: 1px solid var(--line-2); background: var(--card); }
.parts dl div { padding: 10px 14px 12px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); min-width: 0; }
.parts dt { display: flex; align-items: baseline; gap: 8px; font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.parts dt i { font: italic 400 .82rem var(--ff-serif); color: var(--gold); letter-spacing: 0; }
.parts dd { margin: 4px 0 0; font-weight: 600; overflow-wrap: anywhere; }

.ship { background: var(--card); border: 1.5px solid var(--ink); padding: 18px 20px; }
.ship h2 { font-size: 1.5rem; }
.ship ul { list-style: none; margin: 0 0 14px; padding: 0; }
.ship li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line-2); font-size: .94rem; }
.ship li span:first-child { color: var(--ink-3); }
.ship li span:last-child { font-weight: 700; text-align: right; }
.ship li.tot span:last-child { font: 700 1.2rem var(--ff-serif); color: var(--seal); }
.ship form { display: flex; gap: 8px; }
.ship input { flex: 1; min-width: 0; min-height: 48px; padding: 0 12px; border: 1.5px solid var(--ink); background: var(--paper); border-radius: var(--r); }
.ship .fine { margin: 10px 0 0; }
.ship__err { color: var(--seal); font-size: .88rem; margin: 10px 0 0; }
.ship [hidden] { display: none !important; }

.remarks { max-width: 72ch; }
.remarks p { color: var(--ink-2); font-size: 1.02rem; }

@media (max-width: 960px) {
  .ptop { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 0 12px; margin-bottom: 12px; border-bottom: 1.5px solid var(--ink); }
  .ptop b { font: 700 2.1rem/1 var(--ff-serif); }
  .ptop b.sold { color: var(--seal); }
  .ptop span { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); text-align: right; }
  .carp { display: flex; flex-direction: column; align-items: stretch; row-gap: 22px; padding-top: 0; }
  .carp > * { width: 100%; }
  .gal { order: 1; } .carp__hd { order: 2; } .carp > .card { order: 3; position: static; }
  .parts { order: 4; } .ship { order: 5; } .remarks { order: 6; }
  .card__top { display: none; }
  .carp__hd h1 { margin-bottom: 12px; }
  .gal__stage { padding: 5px; }
  .gal__nav { width: 40px; height: 40px; }
  .gal__nav--p { left: 12px; } .gal__nav--n { right: 12px; }
  .gal__n { left: 12px; bottom: 12px; }
  .gal__thumbs button { flex-basis: 84px; }
}
@media (max-width: 420px) { .parts dl { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .parts dl div { padding: 9px 10px 10px; } }

/* sheets: Buy Now / Send message */
.dlg { position: fixed; inset: 0; z-index: 250; display: grid; place-items: center; visibility: hidden; }
.dlg.is-open { visibility: visible; }
.dlg__scrim { position: absolute; inset: 0; background: rgba(21, 41, 31, .55); opacity: 0; transition: opacity .2s; }
.dlg.is-open .dlg__scrim { opacity: 1; }
.dlg__card {
  position: relative; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow-y: auto;
  background: var(--card) var(--guil); border: 1.5px solid var(--ink); transform: translateY(14px); opacity: 0; transition: transform .22s, opacity .22s;
}
.dlg.is-open .dlg__card { transform: none; opacity: 1; }
.dlg__hd { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 20px 14px; border-bottom: 1.5px solid var(--ink); position: sticky; top: 0; background: var(--card); z-index: 1; }
.dlg__hd h3 { font: 400 1.5rem/1.15 var(--ff-disp); margin-top: 6px; }
.dlg__x { background: none; border: 0; font-size: 2rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.dlg__b { padding: 18px 20px 22px; }
.dlg__price { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font: 700 1.8rem var(--ff-serif); padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px dashed var(--line-2); }
.dlg__price small { font: 700 .72rem var(--ff); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 640px) {
  .dlg { place-items: end stretch; }
  .dlg__card { width: 100%; max-height: 92vh; border-width: 1.5px 0 0; transform: translateY(100%); }
}

/* forms */
.f { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.f span { font-size: .7rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); }
.f input, .f select, .f textarea { width: 100%; min-width: 0; min-height: 48px; padding: 10px 12px; border: 1.5px solid var(--line-2); background: var(--card); border-radius: var(--r); }
.f textarea { min-height: 96px; resize: vertical; }
.f input:focus, .f textarea:focus, .f select:focus { outline: none; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.f input[type=file] { padding: 10px; background: var(--paper); }
.f2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 12px; }
@media (max-width: 560px) { .f2 { grid-template-columns: minmax(0, 1fr); } }
.field-err { border-color: var(--seal) !important; box-shadow: inset 0 0 0 1px var(--seal) !important; }
.warn { padding: 12px 14px; margin-bottom: 14px; border-left: 3px solid var(--seal); background: #F8E9E7; color: var(--seal-2); font-size: .92rem; }
.done { text-align: center; padding: 10px 6px; }
.done .seal { width: 88px; height: 88px; color: var(--seal); margin: 0 auto 10px; }
.done h4 { font: 400 1.6rem var(--ff-disp); margin-bottom: 6px; }
.done p { color: var(--ink-2); margin: 0; }
.formcard { background: var(--card); border: 1.5px solid var(--ink); padding: clamp(18px, 3vw, 28px); }
.formcard h2 { font: 400 1.8rem var(--ff-disp); margin-bottom: 16px; }
.map { margin-top: 20px; border: 1.5px solid var(--ink); }
.map iframe { display: block; width: 100%; min-height: 320px; border: 0; }

/* questions */
.qa { border-top: 1.5px solid var(--ink); }
.qa__row { border-bottom: 1px solid var(--line-2); }
.qa__q { width: 100%; display: flex; align-items: center; gap: 14px; padding: 16px 2px; background: none; border: 0; text-align: left; cursor: pointer; font: 700 1.04rem/1.35 var(--ff); overflow-wrap: anywhere; }
.qa__n { font: italic 400 .95rem var(--ff-serif); color: var(--gold); flex: none; }
.qa__q i { margin-left: auto; flex: none; width: 14px; height: 14px; position: relative; }
.qa__q i::before, .qa__q i::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; background: var(--ink); transition: transform .15s; }
.qa__q i::after { transform: rotate(90deg); }
.qa__row.open .qa__q i::after { transform: none; }
.qa__a { display: none; padding: 0 2px 18px; color: var(--ink-2); }
.qa__row.open .qa__a { display: block; }

.pics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 24px 0; }
.pics--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 820px) { .pics--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .pics, .pics--grid { grid-template-columns: minmax(0, 1fr); } }
.pics figure { margin: 0; background: var(--card); border: 1.5px solid var(--ink); padding: 7px; }
.pics img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pics figcaption { font: italic 400 .92rem var(--ff-serif); color: var(--ink-2); padding: 8px 2px 2px; }

/* photo viewer */
.viewer { position: fixed; inset: 0; z-index: 300; background: rgba(12, 22, 17, .97); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; opacity: 0; visibility: hidden; transition: opacity .15s; }
.viewer.is-open { opacity: 1; visibility: visible; }
.viewer__bar { display: flex; justify-content: space-between; align-items: center; padding: 12px var(--gut); color: var(--gold-lt); font-weight: 700; }
.viewer button { background: var(--card); color: var(--ink); border: 0; min-height: 42px; padding: 0 18px; font-weight: 700; cursor: pointer; border-radius: var(--r); }
.viewer__img { display: grid; place-items: center; padding: 0 var(--gut); min-height: 0; touch-action: pan-y; }
.viewer__img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.viewer__nav { display: flex; justify-content: center; gap: 10px; padding: 12px var(--gut) calc(16px + env(safe-area-inset-bottom)); }

/* ── footer ───────────────────────────────────────────────── */
.foot { margin-top: clamp(60px, 8vw, 100px); background: var(--ink) var(--guil-lt); color: rgba(251, 252, 248, .82); }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { color: var(--gold-lt); }
.foot__seal { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 22px; align-items: center; padding: 40px 0 30px; border-bottom: 1px solid rgba(233, 217, 166, .25); }
.foot__sealsvg { width: 110px; height: 110px; color: var(--gold-lt); }
.foot__name { font: 700 1.5rem var(--ff-serif); color: #fff; }
.foot__logo { max-height: 64px; width: auto; }
.foot__seal p { margin: 10px 0 0; max-width: 62ch; }
.foot__soc { display: flex; gap: 8px; margin-top: 14px; }
.foot__soc a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(233, 217, 166, .4); border-radius: 50%; }
.foot__soc svg { width: 18px; height: 18px; }
.foot__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; padding: 30px 0; }
.foot__grid h4 { font: 700 .72rem var(--ff); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-lt); margin-bottom: 12px; }
.foot__grid p { margin: 0 0 6px; }
.foot__grid a { display: block; padding: 4px 0; overflow-wrap: anywhere; }
.foot__end { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 18px 0 calc(22px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(233, 217, 166, .25); font-size: .84rem; color: rgba(251, 252, 248, .6); }
@media (max-width: 860px) { .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .foot__grid { grid-template-columns: minmax(0, 1fr); }
  .foot__seal { grid-template-columns: 1fr; }
  .foot__sealsvg { width: 80px; height: 80px; }
}

/* ── round green call button, every page ─────────────────── */
.gcall { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 85; width: 56px; height: 56px; border-radius: 50%; background: var(--call); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45); text-decoration: none; }
.gcall:hover { background: var(--call-2); color: #fff; }
.gcall svg { width: 24px; height: 24px; }

/* ── phone sticky bar on the car page ─────────────────────── */
.sbar { display: none; }
@media (max-width: 960px) {
  .sbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: flex; gap: 10px; padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1.5px solid var(--ink); box-shadow: 0 -10px 26px -14px rgba(21, 41, 31, .45); }
  .sbar__msg, .sbar__call { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 1rem var(--ff); border: 0; border-radius: var(--r); cursor: pointer; text-decoration: none; }
  .sbar__msg { flex: 1; background: var(--ink); color: var(--card); }
  .sbar__call { flex: 0 0 38%; background: var(--call); color: #fff; }
  .sbar svg { width: 19px; height: 19px; }
  body:has(.sbar) { padding-bottom: 80px; }
  body:has(.sbar) .gcall { display: none; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
