/* DYTP Wholesale public shop, v3. The warehouse itself: white product cards on a cool grey floor, the shelf-edge
   price ticket in yellow, pack quantities printed large, one grotesque face (Archivo). Values are lifted from the
   mockups in docs/design/shop-v3/ (Main, Department, Product, MobileHome); the system is spec section 3 of
   docs/superpowers/specs/2026-09-15-shop-v3-design.md.
   Sections: tokens; base; layout; notice and header; breadcrumbs; hero; departments; steps; tiles; listing;
   product; bands; buttons; forms; account and basket; information pages; legal; footer; breakpoints; motion;
   print. */

/* ---------- tokens ---------- */
:root {
  --navy: #0b1f3a;
  --floor: #eef0f3;
  --card: #ffffff;
  --ticket: #ffc400;
  --text: #1d2430;
  --muted: #5a6472;
  --line: #d6dae1;
  --ok: #1f6b3a;
  --error: #a11f1f;
  --pad: 24px;
  --wrap: 1280px;
  --radius: 6px;
  --gap: 20px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--floor); color: var(--text); font: 400 16px/1.5 Archivo, Arial, sans-serif; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }
main { flex: 1; }
h1, h2, h3, h4 { font-stretch: 112%; font-weight: 700; color: var(--navy); margin: 0; line-height: 1.15; overflow-wrap: anywhere; }
h1 { font-size: 40px; line-height: 1.1; letter-spacing: -0.5px; }
h2 { font-size: 24px; }
h3 { font-size: 17px; font-stretch: 100%; }
p, dl, dd, address, figure { margin: 0; }
address { font-style: normal; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
table { border-collapse: collapse; }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; }
.num { font-variant-numeric: tabular-nums lining-nums; }
.muted, .note { color: var(--muted); font-size: 14px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 40; background: var(--card); color: var(--navy); border: 2px solid var(--navy); border-radius: 4px; padding: 8px 12px; font-weight: 700; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--ticket); outline-offset: 2px; }          /* yellow on white and on navy */
.btn:focus-visible, .ticket :focus-visible, .badge:focus-visible, .draft-banner :focus-visible { outline-color: var(--navy); }   /* navy on yellow */

/* ---------- layout ---------- */
.wrap { max-width: var(--wrap); padding: 0 var(--pad); margin: 0 auto; }
.sec { padding: 56px 0; }
.sec.tight { padding-top: 0; }
.sechead { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 24px; }
.sechead > a { font-weight: 600; font-size: 15px; text-decoration: underline; }   /* not an <a> inside the heading */
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.intro { max-width: 72ch; font-size: 17px; margin: 12px 0 20px; color: var(--text); }
main > .wrap > h1 { margin-top: 20px; }          /* listing and index pages sit straight under the breadcrumbs */
main > .wrap > .chips:first-of-type { margin-top: 20px; }

/* ---------- notice strip and header ---------- */
.notice { background: var(--navy); color: #fff; font-size: 14px; }
.notice .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 36px; padding-block: 6px; }
.notice a { color: #fff; font-weight: 600; white-space: nowrap; }
.hdr { position: sticky; top: 0; z-index: 20; background: var(--card); border-bottom: 1px solid var(--line); }
.hdr-top { display: flex; align-items: center; gap: 32px; height: 80px; }
.wm { display: flex; align-items: baseline; gap: 6px; color: var(--navy); }
.wm:hover { text-decoration: none; }
.wm b { font-weight: 800; font-stretch: 112%; font-size: 30px; letter-spacing: -0.5px; }
.wm span { font-size: 18px; font-weight: 500; }
.search { flex: 1; display: flex; height: 48px; border: 2px solid var(--navy); border-radius: 4px; overflow: hidden; background: var(--card); }
.search input { flex: 1; border: 0; padding: 0 16px; font: inherit; font-size: 16px; min-width: 0; color: var(--text); background: var(--card); }
.search button { width: 56px; border: 0; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.util { display: flex; gap: 28px; }
.util a { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy); white-space: nowrap; }
.util-label { max-width: 20ch; overflow: hidden; text-overflow: ellipsis; }
.badge { background: var(--ticket); color: var(--navy); border-radius: 999px; font-size: 13px; font-weight: 700; padding: 1px 8px; }
.menu-btn { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 0; background: none; color: var(--navy); cursor: pointer; flex: none; }
.deptbar { border-top: 0; }
.deptbar-in { display: flex; gap: 4px; align-items: stretch; }
.dept-item { display: flex; }
.deptbar a { display: flex; align-items: center; padding: 0 10px; height: 48px; font-weight: 600; font-size: 14px; line-height: 1.15; color: var(--navy); border-bottom: 3px solid transparent; }
.dept-item a.on { border-bottom-color: var(--ticket); }
.clr-item { margin-left: auto; }
.deptbar a.clr { color: var(--error); }
.ask-item { margin-left: 8px; flex: none; }
.deptbar a.ask { align-self: center; height: 36px; padding: 0 14px; white-space: nowrap; border: 2px solid var(--navy); border-radius: 4px; }
.deptbar a.ask:hover, .deptbar a.ask[aria-current="page"] { background: var(--ticket); text-decoration: none; }
.drawer-only { display: none; }

/* ---------- breadcrumbs ---------- */
.crumbs { font-size: 14px; color: var(--muted); padding: 16px 0 0; }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--text); }

/* ---------- hero ---------- */
.hero { background: var(--card); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; padding-block: 56px; }
.hero-text { grid-column: span 5; display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.hero h1 { font-size: 44px; line-height: 1.08; letter-spacing: -0.6px; }
.hero-text p { font-size: 19px; color: var(--text); margin: 0; max-width: 40ch; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-pics { grid-column: span 7; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hero-pics.one { grid-template-columns: minmax(0, 1fr); }
.hero-pics > div { background: var(--floor); border-radius: var(--radius); padding: 10px; display: flex; align-items: center; justify-content: center; }
.hero-pics img { width: 100%; aspect-ratio: 1; object-fit: contain; display: block; }
.hero-photo { display: block; border-radius: var(--radius); overflow: hidden; background: var(--floor); }
.hero-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.hero-photo.is-placeholder img { object-fit: contain; }

/* ---------- department tiles ---------- */
.dept { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; align-items: center; gap: 14px; }
.dept:hover { text-decoration: none; border-color: var(--navy); }
.dept .dept-pic { width: 72px; height: 72px; flex: none; border-radius: 50%; overflow: hidden; background: var(--floor); display: block; }
.dept .dept-pic img { width: 72px; height: 72px; object-fit: cover; }
.dept .dept-pic.is-placeholder img { object-fit: contain; padding: 8px; }
.dept b { display: block; font-stretch: 112%; font-weight: 700; font-size: 17px; color: var(--navy); line-height: 1.15; }
.dept small { display: block; color: var(--muted); font-size: 13px; }
.dept-strap { margin-top: 4px; }
.depts-full .dept { align-items: flex-start; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.stp { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.stp h3 { font-size: 18px; }
.stp p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- product tiles ---------- */
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.tile-link { display: flex; flex-direction: column; gap: 10px; }
.tile-link:hover { text-decoration: none; }
.tile-link:hover .tname { text-decoration: underline; }
.tile img { width: 100%; aspect-ratio: 1; object-fit: contain; display: block; }
.ph { width: 100%; aspect-ratio: 1; background: var(--floor); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; border-radius: 4px; text-align: center; padding: 12px; }
.tname { font-weight: 600; font-size: 16px; line-height: 1.3; color: var(--navy); min-height: 42px; }
.tcat { font-size: 13px; color: var(--muted); }
.grade { display: inline-block; background: var(--floor); border: 1px solid var(--line); border-radius: 3px; padding: 0 6px; color: var(--navy); font-weight: 600; }
.ticket { display: flex; background: var(--ticket); color: var(--navy);
  clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px); }
.ticket .pack { flex: 1; padding: 8px 10px; font-size: 13px; font-weight: 600; border-right: 2px dashed rgba(11, 31, 58, 0.35); line-height: 1.3; }
.ticket .price { padding: 8px 10px; text-align: right; display: flex; flex-direction: column; justify-content: center; }
.ticket .price b { display: block; font-stretch: 112%; font-weight: 800; font-size: 18px; line-height: 1.1; }
.ticket .price small { font-size: 11px; font-weight: 600; line-height: 1.3; }
.stock { font-size: 13px; font-weight: 600; color: var(--ok); }
.stock.src { color: var(--muted); }
.add { display: flex; gap: 8px; align-items: center; margin-top: auto; }
.add .btn { flex: 1; height: 40px; padding: 0 12px; font-size: 15px; }
.step { display: flex; border: 1px solid var(--line); border-radius: 4px; height: 40px; background: var(--card); flex: none; }
.step button { width: 34px; border: 0; background: var(--card); font-size: 18px; color: var(--navy); cursor: pointer; }
.step input { width: 44px; border: 0; text-align: center; font: inherit; font-weight: 700; background: var(--card); color: var(--text); -moz-appearance: textfield; }
.step input::-webkit-outer-spin-button, .step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------- listing ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chips a { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; }
.chips a span { color: var(--muted); font-weight: 400; margin-left: 4px; }
.chips a.on { border-color: var(--navy); background: var(--navy); color: #fff; }
.chips a.on span { color: #d6dae1; }
.list { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 24px; align-items: start; }
.rail { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 20px; font-size: 15px; }
.rail fieldset { border: 0; margin: 0; padding: 0; }
.rail legend { font-weight: 700; font-size: 14px; color: var(--navy); padding: 0; margin-bottom: 8px; }
.rail label { display: flex; align-items: center; gap: 10px; padding: 5px 0; }
.rail input { width: 18px; height: 18px; margin: 0; accent-color: var(--navy); }
.rail .n { margin-left: auto; color: var(--muted); font-size: 13px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; font-size: 15px; flex-wrap: wrap; }
.toolbar select { font: inherit; height: 40px; border: 1px solid var(--line); border-radius: 4px; padding: 0 12px; background: var(--card); color: var(--text); }
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 28px 0 8px; }
.pager a { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 4px; background: var(--card); font-weight: 600; padding: 0 10px; }
.pager a.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.empty { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; max-width: 72ch; }
.empty a { text-decoration: underline; }
.grades { display: flex; flex-direction: column; gap: 6px; max-width: 72ch; margin: 0 0 24px; font-size: 15px; color: var(--muted); }
.grades b { color: var(--navy); }
.ranges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 24px; margin-top: 20px; }
.ranges div { font-size: 14px; color: var(--muted); }
.ranges b { display: block; color: var(--navy); font-weight: 600; font-size: 15px; margin-bottom: 2px; }
.faq { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; max-width: 80ch; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
.faq summary { font-weight: 600; color: var(--navy); cursor: pointer; }
.faq p { margin: 10px 0 0; color: var(--text); font-size: 15px; }

/* ---------- product page ---------- */
.pgrid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; margin-top: 16px; }
.gal { grid-column: span 7; display: flex; flex-direction: column; gap: 12px; }
.gal .main { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; align-items: center; justify-content: center; }
.gal .main img { width: 100%; max-width: 520px; aspect-ratio: 1; object-fit: contain; }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.thumbs .thumb { width: 88px; height: 88px; background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 8px; cursor: pointer; }
.thumbs .thumb.on { border: 2px solid var(--navy); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.buy { grid-column: span 5; display: flex; flex-direction: column; gap: 16px; }
.buy h1 { font-size: 34px; letter-spacing: -0.4px; line-height: 1.12; }
.meta { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.meta b { color: var(--text); font-weight: 600; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.box .ticket { clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px); }
.box .ticket .pack { padding: 14px 16px; font-size: 14px; line-height: 1.45; }
.box .ticket .price { padding: 14px 16px; min-width: 150px; }
.box .ticket .price b { font-size: 30px; line-height: 1; letter-spacing: -0.5px; }
.box .ticket .price span { font-size: 13px; font-weight: 600; }
.box .ticket .price small { font-size: 12px; }
.vat { font-size: 13px; color: var(--muted); margin: -6px 0 0; }
.qty { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.qty .step { height: 48px; }
.qty .step button { width: 44px; font-size: 20px; }
.qty .step input { width: 56px; font-size: 18px; }
.qty .lbl { font-size: 14px; color: var(--muted); }
.buy .stock { font-size: 14px; }
.lines { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--text); }
.lines div { display: flex; gap: 10px; align-items: flex-start; color: var(--navy); }
.lines span { color: var(--text); }
.lines svg { flex: none; margin-top: 2px; }
.prose { max-width: 72ch; font-size: 16px; }
.prose p { margin: 0 0 12px; }
.prose ul { list-style: disc; padding-left: 20px; margin: 0 0 12px; }
.sec h2 + table, .two h2 + table { margin-top: 0; }
.two table, .sec > table { width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 15px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
th { font-weight: 600; color: var(--muted); font-size: 13px; background: #f7f8fa; }
td.num, th.num { text-align: right; }
tr:last-child th, tr:last-child td { border-bottom: 0; }

/* ---------- bands ---------- */
.band { background: var(--navy); color: #fff; border-radius: 8px; padding: 40px; display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.band h2, .band h3 { color: #fff; }
.band p { margin: 8px 0 0; font-size: 17px; max-width: 60ch; color: #d6dae1; }
.band .btn { flex: none; }
.band2 { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 32px 40px; display: flex; justify-content: space-between; align-items: center; gap: 40px; margin-top: 20px; }
.band2 p { margin: 6px 0 0; color: var(--muted); }
.band2 .btn { flex: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 24px; border-radius: 4px; font: 700 16px/1 Archivo, Arial, sans-serif; font-stretch: 100%; border: 2px solid var(--navy); background: var(--ticket); color: var(--navy); cursor: pointer; text-align: center; }
.btn:hover { text-decoration: none; filter: brightness(0.96); }
.btn:disabled { cursor: progress; filter: none; opacity: 0.7; }
.btn.alt { background: var(--card); }
.btn.inv { background: transparent; border-color: #fff; color: #fff; }

/* ---------- cards (portfolio strip, and forms with .pad) ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card:hover { text-decoration: none; border-color: var(--navy); }
.card .card-pic, .card .card-pic img, .card > img { width: 100%; }
.card .card-pic img, .card > img { aspect-ratio: 3 / 2; object-fit: cover; background: var(--card); }
.card .card-pic.is-placeholder img { object-fit: contain; }
.card > div { padding: 16px; }
.card small { color: var(--muted); font-size: 13px; }
.card.pad { padding: 24px; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.field > label { font-weight: 600; color: var(--navy); font-size: 15px; }
.field .req { color: var(--muted); font-weight: 400; }
.field input, .field textarea, .field select { font: inherit; border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px; background: var(--card); color: var(--text); min-height: 44px; width: 100%; }
.field.is-error input, .field.is-error textarea, .field.is-error select { border-color: var(--error); }
.help { color: var(--muted); font-size: 14px; }
.err, .form-error { color: var(--error); font-size: 14px; font-weight: 600; }

/* ---------- account and basket (Task 7) ---------- */
.lay { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start; }
.row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sum { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.kpi b { display: block; font-stretch: 112%; font-weight: 800; font-size: 26px; color: var(--navy); }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: 4px; font-weight: 600; }
.nav a.on { background: var(--card); border: 1px solid var(--line); }
.pill { display: inline-block; background: var(--floor); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.opt { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }

/* The rest of Task 7: the account shell, the basket lines and the checkout columns, lifted from the Account,
   Basket and Checkout mockups. Everything above is Task 6's and is left as it stands; these selectors are new,
   except where a rule only adds properties Task 6 did not set (.nav, .kpi, .opt) or wins on specificity over the
   generic ".card > div" padding. */
.wrap.narrow { max-width: 760px; }
.acct { margin-top: 8px; color: var(--muted); font-size: 15px; }
.acct span { margin-right: 20px; white-space: nowrap; }
.col { display: flex; flex-direction: column; gap: 20px; }
.lay.ck { grid-template-columns: minmax(0, 1fr) 380px; }
.kpis.three { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.kpi small { display: block; color: var(--muted); font-size: 13px; font-weight: 600; }
.kpi b { margin-top: 4px; letter-spacing: -0.4px; }
.kpi span { font-size: 13px; color: var(--muted); }
.nav { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; }
.nav a { font-size: 15px; }
.nav form { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.nav button { width: 100%; text-align: left; border: 0; background: none; cursor: pointer; padding: 8px 12px;
  border-radius: 4px; color: var(--muted); font: 600 15px/1.5 Archivo, Arial, sans-serif; }
.nav button:hover { text-decoration: underline; }
.hd { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 10px; }
.hd a { font-size: 14px; font-weight: 600; text-decoration: underline; }
.card table { width: 100%; font-size: 15px; }
.card.pad h2 { margin-top: 24px; }
.card.pad > :first-child, .hd h2 { margin-top: 0; }
.card.pad > .btn { align-self: flex-start; }
.card > .field, .card > .billing, .card > .agree, .card > .tick { padding: 0; }
.pill.ok { background: #e3f1e8; border-color: #c4e0ce; color: var(--ok); }
.pill.due { background: #fbe9e9; border-color: #efc9c9; color: var(--error); }
.pdf { font-weight: 600; text-decoration: underline; }
.saved { color: var(--ok); font-weight: 600; }
.addr { white-space: pre-line; }
.pairs { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 24px; font-size: 15px; margin-bottom: 16px; }
.pairs dt { color: var(--muted); }
.tick { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; margin-bottom: 20px; }
.tick input, .agree input, .opt input[type="radio"] { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--navy); }
.billing { display: block; }
form:has(#f-billing_same:checked) .billing { display: none; }
.hp { position: absolute; left: -9999px; }   /* the enquiry honeypot: off the page, never in front of a buyer */

/* basket lines */
.card > .bk { display: grid; grid-template-columns: 96px minmax(0, 1fr) 150px 130px 110px 44px; gap: 16px;
  align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.card > .bk.noprice { grid-template-columns: 96px minmax(0, 1fr) 150px 44px; }
.card > .bk.head { padding: 12px 20px; background: #f7f8fa; font-size: 13px; font-weight: 600; color: var(--muted); }
.card > .bk:last-child { border-bottom: 0; }
.bk img { width: 96px; height: 96px; object-fit: contain; }
.bk .ph { width: 96px; height: 96px; aspect-ratio: auto; font-size: 12px; }
.bk .num { text-align: right; font-weight: 600; }
.bk .num small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.bk .step { height: 44px; width: 140px; }
.bk .step input { flex: 1; width: auto; }
.nm { font-weight: 600; color: var(--navy); }
.pk { font-size: 13px; color: var(--muted); margin-top: 2px; }
.src { display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 4px; background: var(--floor);
  font-size: 12px; font-weight: 600; color: var(--navy); }
.sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.upd { border: 0; background: none; padding: 4px 0 0; cursor: pointer; text-decoration: underline;
  color: var(--navy); font: 600 13px/1.5 Archivo, Arial, sans-serif; }
.x button { width: 44px; height: 44px; border: 0; background: none; color: var(--muted); font-size: 22px; cursor: pointer; }
.x button:hover { color: var(--error); }

/* summary, checkout columns and the order-received page */
.card > .row { padding: 6px 0; border-bottom: 0; }
.card > .row.tot { margin-top: 4px; padding-top: 12px; border-top: 2px solid var(--navy); font-size: 20px; font-weight: 700; color: var(--navy); }
.sum h2 { font-size: 20px; }
.boxnote { padding: 10px 12px; border-radius: 4px; background: var(--floor); font-size: 13px; color: var(--muted); }
.chkst { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 16px; font-size: 14px; color: var(--muted); }
.chkst .on { padding: 3px 12px; border-radius: 999px; background: var(--ticket); color: var(--navy); font-weight: 700; }
.opt { margin-bottom: 10px; }
.opt.on { border: 2px solid var(--navy); }
.opt b { display: block; color: var(--navy); }
.opt p { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.opt .field { margin: 10px 0 0; }
.agree { display: flex; gap: 12px; align-items: flex-start; margin: 8px 0 18px; font-size: 15px; }
.card > .oline { display: grid; grid-template-columns: 48px minmax(0, 1fr) 90px; gap: 12px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.oline img { width: 48px; height: 48px; object-fit: contain; }
.oline .ph { width: 48px; height: 48px; aspect-ratio: auto; }
.oline b { display: block; font-weight: 600; color: var(--navy); }
.oline small { color: var(--muted); }
.oline .num { text-align: right; font-weight: 600; }
pre.bank { margin: 0 0 12px; padding: 12px 14px; border-radius: 4px; background: var(--floor); font-family: inherit;
  font-size: 14px; white-space: pre-wrap; }

/* ---------- information pages (Task 8): help, how to order, delivery, portfolio, enquiry ---------- */
.ref { font-size: 22px; font-weight: 700; color: var(--navy); }        /* an order or enquiry reference */
.card address p { margin: 0 0 4px; }
fieldset.field .tick { margin-bottom: 8px; }                           /* the enquiry form's radio group */
.gal .main .pic img { aspect-ratio: 3 / 2; object-fit: cover; max-width: none; }   /* portfolio photos, not cut-outs */
.gal .main .pic.is-placeholder img { object-fit: contain; }
.thumbs span.thumb { cursor: default; }                                /* a portfolio thumbnail is a picture, not a control */

/* ---------- legal (Task 8) ---------- */
.legal { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; align-items: start; margin-top: 8px; }
.legal-body { max-width: 80ch; }
.legal-meta { color: var(--muted); font-size: 14px; margin: 8px 0 20px; }
.legal-prose h2 { margin-top: 28px; font-size: 20px; }
.legal-prose p { margin: 0 0 12px; }
.legal-prose .num { color: var(--muted); }
.legal-prose h2 .num { color: var(--navy); }
.clause { margin-right: 6px; }
.draft-banner { background: var(--ticket); color: var(--navy); border-radius: var(--radius); padding: 12px 16px; font-weight: 600; margin-bottom: 20px; }
.legal-aside { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: sticky; top: 96px; }
.legal-aside h2 { font-size: 15px; font-stretch: 112%; margin-bottom: 10px; }
.legal-aside ul { display: flex; flex-direction: column; gap: 8px; font-size: 15px; margin-bottom: 14px; }
.legal-aside a { text-decoration: underline; }
.legal-aside [aria-current] { font-weight: 700; }

/* ---------- footer ---------- */
.ftr { background: var(--navy); color: #fff; padding: 48px 0 24px; font-size: 14px; margin-top: 56px; }
.ftr a { color: #fff; }
.fgrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px; }
.ftr h2 { margin: 0 0 12px; font-size: 15px; font-stretch: 112%; color: #fff; }
.ftr ul { display: flex; flex-direction: column; gap: 8px; }
.ftr address { display: flex; flex-direction: column; gap: 6px; color: #d6dae1; }
.tab { border: 1px solid rgba(255, 255, 255, 0.4); padding: 6px 12px; border-radius: 4px; display: inline-block; margin-top: 12px; }
.copy { margin-top: 40px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.2); color: #9aa4b2; font-size: 13px; }

/* ---------- breakpoints ---------- */
@media (max-width: 1023.98px) {
  :root { --pad: 16px; --gap: 12px; }
  .menu-btn { display: inline-flex; }
  .hdr-top { height: auto; min-height: 60px; gap: 12px; flex-wrap: wrap; padding-top: 8px; }
  .search { order: 3; flex-basis: 100%; height: 44px; margin-bottom: 12px; }
  .util { gap: 8px; margin-left: auto; }
  .clr-item { margin-left: 0; }
  .util-label { display: none; }
  .util a { width: 44px; height: 44px; justify-content: center; position: relative; }
  .badge { position: absolute; top: 0; right: 0; }
  .deptbar { display: none; border-top: 1px solid var(--line); }
  .hdr.open .deptbar { display: block; }
  .deptbar-in { flex-direction: column; gap: 0; padding-bottom: 12px; }
  .deptbar a { height: 48px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .ask-item { margin-left: 0; }
  .deptbar a.ask { align-self: stretch; height: 48px; padding: 0 14px; white-space: normal; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .drawer-only { display: flex; flex-direction: column; padding-top: 12px; }
  .drawer-only a { height: 44px; display: flex; align-items: center; font-weight: 600; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); padding-block: 32px; gap: 16px; }
  .hero-text, .hero-pics, .gal, .buy { grid-column: auto; }
  .hero h1 { font-size: 30px; }
  .hero-btns .btn { flex: 1 1 200px; }
  h1 { font-size: 30px; }
  .grid3, .grid4, .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .list, .pgrid, .two, .lay, .lay.ck, .legal { grid-template-columns: minmax(0, 1fr); }
  .legal-aside { position: static; }
  .card > .bk { grid-template-columns: 72px minmax(0, 1fr) 140px; gap: 12px; row-gap: 8px; }
  .card > .bk.noprice { grid-template-columns: 72px minmax(0, 1fr) 140px; }
  .card > .bk.head { display: none; }
  .bk img, .bk .ph { width: 72px; height: 72px; }
  .bk .num { grid-column: 2 / -1; text-align: left; }
  .x { grid-column: 3; justify-self: end; }
  .ranges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .band, .band2 { flex-direction: column; align-items: flex-start; padding: 24px; gap: 16px; }
  .sec { padding: 32px 0; }
  .btn { min-height: 44px; }
}
@media (max-width: 639.98px) {
  .grid3, .grid4, .kpis, .ranges { grid-template-columns: minmax(0, 1fr); }
  .notice .wrap { flex-direction: column; align-items: flex-start; gap: 2px; font-size: 12px; }
  .wm b { font-size: 24px; }
  .wm span { font-size: 15px; }
  .fgrid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .ticket { flex-direction: column; }
  .ticket .pack { border-right: 0; border-bottom: 2px dashed rgba(11, 31, 58, 0.35); }
  .ticket .price { text-align: left; }
  .toolbar { align-items: flex-start; flex-direction: column; }
}
@media (min-width: 640px) and (max-width: 1023.98px) {
  .grid4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

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

/* ---------- print ---------- */
@media print {
  .notice, .hdr, .ftr, .rail, .pager, .add, .qty, .skip { display: none !important; }
  html { background: #fff; }
  .tile, .box, .card { border: 1px solid #999; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 11px; color: #555; }
}
