/* MX Bikes Maps.
   Light page, black ink, one colour: number-plate yellow.  Flat - no gradients, glows or shadows.
   Type: Barlow / Barlow Condensed (SIL Open Font Licence), served from /fonts.
   No inline styles anywhere on the site: the Content-Security-Policy only allows this file. */
@font-face { font-family: "Barlow"; src: url("/fonts/barlow-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fonts/barlow-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fonts/barlow-600-normal.woff2") format("woff2"); font-weight: 600 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/fonts/barlow-condensed-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/fonts/barlow-condensed-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/fonts/barlow-condensed-800-italic.woff2") format("woff2"); font-weight: 800; font-style: italic; font-display: swap; }

:root {
  --ink: #141412;
  --black: #111110;
  --page: #efeeea;
  --page2: #e5e3dc;
  --white: #fff;
  --hair: #cbc8bd;
  --muted: #57554e;
  --plate: #ffd200;
  --red: #b92a16;
  --green: #1c6b34;
  --cond: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  --body: "Barlow", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 17px/1.5 var(--body); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; padding-top: 30px; padding-bottom: 64px; }
main:focus { outline: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:not([class]):hover { background: var(--plate); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.top :focus-visible, .foot :focus-visible, .hero :focus-visible { outline-color: var(--plate); }
b, strong { font-weight: 600; }
h1, h2, h3 { margin: 0 0 .45em; }
h1 { font: italic 800 clamp(2.3rem, 6vw, 3.4rem)/.95 var(--cond); text-transform: uppercase; letter-spacing: -.005em; }
h2 { font: 700 1.6rem/1.05 var(--cond); text-transform: uppercase; letter-spacing: .01em; margin-top: 1.3em; }
h3 { font: 600 1.08rem/1.25 var(--body); }
p { margin: 0 0 1em; }
ol, ul { padding-left: 1.3em; }
code { background: var(--page2); border-radius: 2px; padding: 1px 5px; font: .88em Consolas, "Cascadia Mono", monospace; overflow-wrap: anywhere; }
.wrap { width: min(100% - 32px, 860px); margin-inline: auto; }
.wrap.wide, .top .wrap, .foot .wrap, .hero .wrap, .cats .wrap { width: min(100% - 32px, 1180px); }
.narrow { max-width: 560px; margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead { font-size: 1.15rem; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 10; background: var(--plate); color: var(--ink); padding: 10px 14px; font-weight: 600; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.num { font-variant-numeric: tabular-nums; }

/* bars */
.envbar { background: var(--plate); color: var(--ink); text-align: center; font: 600 .85rem/1.3 var(--body); padding: 5px 12px; }
.announce { background: var(--white); border-bottom: 1px solid var(--hair); text-align: center; font-weight: 600; padding: 8px 12px; }

/* header */
.top { background: var(--black); color: #fff; position: sticky; top: 0; z-index: 5; }
.top-in { display: flex; align-items: center; gap: 8px 26px; flex-wrap: wrap; min-height: 60px; padding: 8px 0; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: #fff; font: italic 800 1.6rem/1 var(--cond); text-transform: uppercase; }
.brand-plate { background: var(--plate); color: var(--ink); padding: 3px 9px 3px 6px; border-radius: 2px; }
.nav { flex: 1; min-width: 0; }
.nav ul, .foot-links, .adminnav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 4px; }
.nav a { display: block; padding: 10px 10px; color: #fff; text-decoration: none; font: 600 1.12rem/1 var(--cond); text-transform: uppercase; letter-spacing: .04em; }
.nav a:hover { color: var(--plate); background: none; }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--plate); }
.acct { display: flex; gap: 6px 16px; flex-wrap: wrap; align-items: center; }
.acct a:not(.btn) { color: #fff; font: 600 1.12rem/1 var(--cond); text-transform: uppercase; letter-spacing: .04em; text-decoration: none; padding: 10px 0; }
.acct a:not(.btn):hover { color: var(--plate); background: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 9px 18px; border-radius: 2px; border: 2px solid var(--ink); background: var(--plate); color: var(--ink); font: 700 1.15rem/1.05 var(--cond); text-transform: uppercase; letter-spacing: .035em; text-decoration: none; cursor: pointer; text-align: center; }
.btn:hover { background: var(--ink); color: var(--plate); }
.btn.alt { background: var(--ink); color: #fff; }
.btn.alt:hover { background: var(--plate); color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.sm { min-height: 36px; padding: 5px 12px; font-size: 1.02rem; }
.btn.lg { min-height: 52px; padding: 12px 22px; font-size: 1.3rem; }
.btn[disabled], .btn.disabled { background: var(--page2); border-color: var(--hair); color: var(--muted); cursor: not-allowed; }
.btn .n { font-variant-numeric: tabular-nums; border-left: 2px solid currentColor; padding-left: 10px; }
.top .btn, .hero .btn { border-color: var(--plate); }
.top .btn:hover, .hero .btn:hover { background: #fff; border-color: #fff; color: var(--ink); }
.hero .btn.alt { background: #fff; border-color: #fff; color: var(--ink); }
.hero .btn.alt:hover { background: var(--plate); border-color: var(--plate); }
.hero .btn.ghost { border-color: #fff; color: #fff; }
.hero .btn.ghost:hover { background: #fff; color: var(--ink); }
.cta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 1em; padding: 0; list-style: none; }
form.inline { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }

/* home: top band */
.hero { background: var(--black); color: #fff; position: relative; }
.hero::after { content: ""; display: block; height: 14px; background: url("/tread.svg") 0 0 / 56px 14px repeat-x; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px 48px; align-items: center; padding: 40px 0 44px; }
.hero-in.solo { grid-template-columns: minmax(0, 720px); }
.hero h1 { font-size: clamp(3rem, 8.4vw, 5.6rem); line-height: .88; margin-bottom: .28em; }
.hero .lead { color: #d9d7cf; max-width: 34em; }
.hero-search { display: flex; gap: 8px; margin: 0 0 16px; max-width: 520px; }
.hero-search input:not([type="checkbox"]):not([type="radio"]):not([type="file"]) { border-color: #fff; }
.hero .cta { margin: 0; }
.lead-track { display: block; color: #fff; text-decoration: none; border: 2px solid #fff; background: var(--black); }
.lead-track:hover { border-color: var(--plate); }
.lead-track img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.lt-cap { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; align-items: baseline; padding: 12px 14px 13px; border-top: 2px solid currentColor; }
.lt-label { grid-column: 1 / -1; font: 600 .82rem/1.2 var(--body); text-transform: uppercase; letter-spacing: .09em; color: var(--plate); }
.lt-name { font: 700 1.8rem/1 var(--cond); text-transform: uppercase; }
.lt-price { font: 700 1.5rem/1 var(--cond); text-transform: uppercase; }
.lt-spec { grid-column: 1 / -1; color: #c9c7bf; font-size: .92rem; font-variant-numeric: tabular-nums; }

/* home: category strip */
.cats { border-bottom: 1px solid var(--hair); }
.cats ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 26px; }
.cats a { display: flex; gap: 7px; align-items: baseline; padding: 12px 0; text-decoration: none; font: 600 1.1rem/1 var(--cond); text-transform: uppercase; letter-spacing: .04em; }
.cats a:hover { box-shadow: inset 0 -3px 0 var(--plate); }
.cats .n { color: var(--muted); font: 500 .85rem/1 var(--body); font-variant-numeric: tabular-nums; }

.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 3px solid var(--ink); margin: 40px 0 18px; padding-bottom: 6px; }
main > section:first-child .sec-head { margin-top: 6px; }
.sec-head h2 { margin: 0; font-size: 1.9rem; }
.sec-head a { font-weight: 500; }
.updates { list-style: none; margin: 0; padding: 0; }
.updates li { display: grid; grid-template-columns: 5.2em minmax(0, 1fr) auto auto; gap: 4px 18px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--hair); font-variant-numeric: tabular-nums; }
.updates .ver { font: 700 1.2rem/1 var(--cond); }
.updates a { font-weight: 600; }
.support-band { margin-top: 48px; padding-top: 18px; border-top: 3px solid var(--ink); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 40px; align-items: center; }
.support-band h2 { margin: 0 0 6px; }
.support-band p { margin: 0; max-width: 62ch; }

/* map cards */
.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 30px 24px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.card-link { display: block; color: inherit; text-decoration: none; height: 100%; }
.card-img { position: relative; aspect-ratio: 16 / 9; background: var(--page2); border: 1px solid var(--ink); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-link:hover .card-img, .card-link:focus-visible .card-img { outline: 4px solid var(--plate); outline-offset: -1px; }
.card-body { padding: 11px 0 0; }
.card-topline { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card-body h3 { margin: 0; font: 700 1.5rem/1.02 var(--cond); text-transform: uppercase; }
.card-link:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.card-by { margin: 3px 0 0; color: var(--muted); font-size: .9rem; }
.cap { text-transform: capitalize; }
.card-sum { font-size: .97rem; margin: 7px 0 8px; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-spec { margin: 0; padding-top: 7px; border-top: 1px solid var(--hair); color: var(--muted); font-size: .86rem; font-variant-numeric: tabular-nums; }

/* small labels (rectangular, never pills) */
.tag { display: inline-block; padding: 2px 7px 1px; border-radius: 2px; border: 1px solid var(--ink); font: 600 .78rem/1.35 var(--body); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; vertical-align: middle; }
.tag.cat { background: var(--white); }
.tag.sample { background: var(--plate); }
.card-img .tag.sample { position: absolute; left: -1px; top: -1px; }
.tag.free { background: transparent; }
.tag.price { background: var(--ink); color: #fff; }
.tag.update { background: transparent; border-color: var(--red); color: var(--red); }
.card .tag.price, .card .tag.free { border: 0; padding: 0; background: none; color: var(--ink); font: 700 1.3rem/1 var(--cond); letter-spacing: .02em; }
.empty { padding: 22px 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); color: var(--muted); }

/* filters, forms */
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 0 0 14px; padding: 0 0 16px; border-bottom: 3px solid var(--ink); }
.filters .field { margin: 0; }
.field.grow { flex: 1 1 220px; }
.form { display: grid; gap: 16px; max-width: 640px; }
.field { display: grid; gap: 5px; }
label, legend { font-weight: 600; font-size: .95rem; }
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea { width: 100%; min-height: 44px; padding: 9px 11px; border-radius: 2px; border: 2px solid var(--ink); background: var(--white); color: var(--ink); font: inherit; }
input[type="file"] { padding: 8px 0; font: inherit; max-width: 100%; }
textarea { resize: vertical; line-height: 1.45; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--plate); outline-offset: 0; }
::placeholder { color: #7b786f; opacity: 1; }
.help { color: var(--muted); font-size: .9rem; margin: 0; }
fieldset { border: 1px solid var(--hair); border-radius: 2px; padding: 14px; margin: 0; display: grid; gap: 12px; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 500; min-height: 32px; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); }
.amounts { display: flex; flex-wrap: wrap; gap: 10px; }
.amount { position: relative; }
.amount input { position: absolute; opacity: 0; inset: 0; }
.amount span { display: inline-flex; min-height: 52px; min-width: 96px; align-items: center; justify-content: center; padding: 8px 16px; border: 2px solid var(--ink); border-radius: 2px; background: var(--white); font: 700 1.5rem/1 var(--cond); font-variant-numeric: tabular-nums; cursor: pointer; }
.amount input:checked + span { background: var(--plate); }
.amount input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
progress { width: 100%; height: 14px; accent-color: var(--ink); }

.flash { padding: 11px 14px; margin: 0 0 18px; background: var(--white); border: 1px solid var(--hair); border-left: 6px solid var(--ink); overflow-wrap: anywhere; }
.flash.ok { border-left-color: var(--green); }
.flash.err { border-left-color: var(--red); }
.flash.info { border-left-color: var(--plate); }
.panel { background: var(--white); border: 1px solid var(--hair); padding: 20px 22px; margin: 0 0 22px; }
.panel > h2:first-child { margin-top: 0; }
.facts { display: grid; grid-template-columns: max-content 1fr; margin: 0 0 1em; }
.facts dt { color: var(--muted); padding: 6px 18px 6px 0; border-bottom: 1px solid var(--hair); }
.facts dd { margin: 0; padding: 6px 0; border-bottom: 1px solid var(--hair); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }

/* map page */
.crumbs { color: var(--muted); font-size: .92rem; margin-bottom: 14px; text-transform: capitalize; }
.map-top { display: grid; gap: 28px; grid-template-columns: minmax(0, 1.6fr) minmax(290px, 1fr); align-items: start; }
.shot-main { width: 100%; border: 1px solid var(--ink); aspect-ratio: 16 / 9; object-fit: cover; background: var(--page2); }
.thumbs { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.thumbs img { border: 1px solid var(--ink); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.thumbs a:hover img { outline: 3px solid var(--plate); outline-offset: -1px; }
.thumbs.admin { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.thumbs.admin li { display: grid; gap: 6px; }
.buybox { background: var(--white); border: 2px solid var(--ink); padding: 20px 20px 22px; position: sticky; top: 80px; }
.buybox h1 { font-size: clamp(2rem, 4vw, 2.7rem); margin-bottom: .2em; }
.actions { display: grid; gap: 10px; }
.actions .btn { width: 100%; }
.owned { color: var(--green); font-weight: 600; margin: 0; }
.map-body { display: grid; gap: 8px; max-width: 760px; margin-top: 20px; }
.video { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--ink); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.changelog { list-style: none; padding: 0; margin: 0; }
.changelog li { border-top: 1px solid var(--hair); padding: 14px 0 2px; }
.changelog h3 { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; font: 700 1.35rem/1 var(--cond); }
.changelog h3 .muted { font: 400 .875rem/1.2 var(--body); font-variant-numeric: tabular-nums; }
.md h2 { font-size: 1.3rem; }

/* library, rows, tables */
.lib { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.lib-item { background: var(--white); border: 1px solid var(--hair); padding: 16px 18px; }
.lib-head { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.lib-head h2 { margin: 0; font-size: 1.5rem; }
.lib-actions { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: flex-end; margin-top: 10px; }
.lib-actions select { width: auto; }
details { margin: 8px 0; }
summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
.rows { list-style: none; margin: 0 0 1em; padding: 0; border-top: 1px solid var(--hair); }
.rows > li { display: flex; flex-wrap: wrap; gap: 10px 16px; justify-content: space-between; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--hair); }
.rows > li > div:first-child, .rows > li > span:first-child { flex: 1 1 320px; min-width: 0; overflow-wrap: anywhere; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.errs { color: var(--red); } .warns { color: #7a5200; }
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--hair); }
table { width: 100%; border-collapse: collapse; min-width: 560px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--hair); vertical-align: top; }
thead th { border-bottom: 2px solid var(--ink); font: 600 .8rem/1.3 var(--body); text-transform: uppercase; letter-spacing: .07em; }
tbody th { font-weight: 600; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
.pager { display: flex; gap: 14px; align-items: center; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.stats { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-top: 3px solid var(--ink); border-bottom: 1px solid var(--hair); }
.stats li { padding: 12px 14px 12px 0; color: var(--muted); font-size: .92rem; }
.stats b { display: block; font: 700 2.4rem/1 var(--cond); color: var(--ink); font-variant-numeric: tabular-nums; }
.adminnav { margin: 0 0 22px; border-bottom: 3px solid var(--ink); }
.adminnav a { display: block; padding: 8px 10px; text-decoration: none; font: 600 1.05rem/1 var(--cond); text-transform: uppercase; letter-spacing: .04em; }
.adminnav a:hover { background: var(--plate); }
.adminnav a[aria-current="page"] { background: var(--ink); color: #fff; }
.qr { background: #fff; padding: 10px; border: 1px solid var(--ink); width: 220px; max-width: 100%; }
.qr svg { display: block; width: 100%; height: auto; }
.codes { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.faq details { border-bottom: 1px solid var(--hair); }

/* footer */
.foot { background: var(--black); color: #fff; padding: 34px 0 44px; }
.foot .muted { color: #b5b3ab; max-width: 52ch; }
.foot-in { display: grid; gap: 24px 48px; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.foot-brand { font: italic 800 1.6rem/1 var(--cond); text-transform: uppercase; display: flex; gap: 8px; align-items: center; }
.foot-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 24px; }
.foot a { color: #fff; }
.foot a:not([class]):hover { background: none; color: var(--plate); }

@media (max-width: 860px) {
  .map-top { grid-template-columns: 1fr; }
  .buybox { position: static; }
  .foot-in { grid-template-columns: 1fr; }
  .top { position: static; }
  .nav { order: 3; flex-basis: 100%; margin: 0 -10px; }
  .acct { margin-left: auto; }
  .hero-in { grid-template-columns: 1fr; padding: 28px 0 34px; }
  .support-band { grid-template-columns: 1fr; }
  .updates li { grid-template-columns: 4.6em minmax(0, 1fr); }
  .updates .when, .updates .size { grid-column: 2; color: var(--muted); font-size: .9rem; }
}
@media (max-width: 480px) {
  .cta .btn.lg { width: 100%; justify-content: space-between; }
  .hero-search { flex-wrap: wrap; }
  .hero-search .btn { width: 100%; }
  .facts { grid-template-columns: 1fr; }
  .facts dt { border-bottom: 0; padding-bottom: 0; }
  .foot-links { grid-template-columns: 1fr; }
}
