/* Mobility1 overrides on top of Broadsheet (design handoff: green #1d8a3b, navy #17375e). */
:root {
  --color-text: #16202e;
  --color-accent: #1d8a3b;
  --color-accent-100: #e7f7e8; --color-accent-200: #c6ecca; --color-accent-300: #97da9f; --color-accent-400: #5fc06f;
  --color-accent-500: #35a34c; --color-accent-600: #177434; --color-accent-700: #13622c; --color-accent-800: #0f4a22;
  --color-accent-900: #0b311a;
  --color-accent-2: #17375e;
  --color-accent-2-100: #ebf1fa; --color-accent-2-200: #d3e0f2; --color-accent-2-300: #a9c1e4; --color-accent-2-400: #7597c9;
  --color-accent-2-500: #4a72a8; --color-accent-2-600: #2d5487; --color-accent-2-700: #1f406b; --color-accent-2-800: #142d4d;
  --color-accent-2-900: #0e1f36;
  --color-divider: color-mix(in srgb, #16202e 16%, transparent);
}

body { margin: 0; background: var(--color-bg); color: var(--color-text); padding-bottom: 110px; }
a { color: var(--color-accent-700); }
a:hover { color: var(--color-accent-800); }
.btn { white-space: nowrap; }
/* White on the brand green is 4.4:1; one step darker passes WCAG AA (5.9:1). */
.btn-primary { background: var(--color-accent-600); }
.btn-primary:hover { background: var(--color-accent-700); }
.btn-primary:active { background: var(--color-accent-800); }
.btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; pointer-events: none; }
@keyframes m1in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 16px; }
.screen { animation: m1in .35s ease; padding-block: 28px; }
.kicker { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--color-accent-700); }
.muted { color: var(--color-neutral-700); }
.num { font-variant-numeric: tabular-nums; }

/* Demo rail */
.demo-rail { background: var(--color-accent-2); color: var(--color-bg); font-size: 12px; letter-spacing: .04em; text-align: center; padding: 6px 16px; }

/* Masthead */
.masthead { max-width: 1120px; margin: 0 auto; padding: 14px 16px 0; }
.masthead-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.masthead-logo img { width: 200px; height: 70px; object-fit: cover; mix-blend-mode: multiply; margin-left: -8px; }
.masthead-brand { display: flex; flex-direction: column; gap: 2px; color: var(--color-text); text-decoration: none; }
.masthead-brand img { width: 186px; height: 44px; mix-blend-mode: multiply; }
.masthead-brand span { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--color-neutral-700);
  padding-left: 2px; }
.masthead-who { display: flex; align-items: center; gap: 10px; text-align: right; color: inherit; text-decoration: none; }
.masthead-who:hover { color: inherit; }
.masthead-who .who-name { font-size: 14px; font-weight: 600; }
.masthead-who .who-sub { font-size: 12px; color: var(--color-neutral-700); }
.masthead-who i { font-size: 34px; color: var(--color-accent-2); }
.dateline { margin-top: 12px; border-top: 3px solid var(--color-text); border-bottom: 1px solid var(--color-text); padding: 7px 0;
  display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 12px; letter-spacing: .04em; }
.dateline-date { font-weight: 600; }
.dateline-note { margin-left: auto; color: var(--color-accent-700); font-weight: 600; }

/* Segmented links (filters) */
a.seg-opt { color: inherit; text-decoration: none; }
a.seg-opt[aria-current="page"] { background: var(--color-accent); color: var(--color-bg); }
a.seg-opt:not([aria-current="page"]):hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }

/* Lot cards */
.lot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.lot-card { padding: 0; overflow: hidden; transition: box-shadow .2s; color: inherit; text-decoration: none; }
.lot-card:hover { box-shadow: var(--shadow-md); color: inherit; }
.photo-ph { background: repeating-linear-gradient(135deg, var(--color-neutral-200) 0 12px, var(--color-neutral-300) 12px 24px); }
.card-photo { position: relative; background: var(--color-neutral-200); }
.card-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-photo > .tag { position: relative; }

/* The car page's photos: one at a time, swipe (or scroll) sideways; a tap opens the full-size photo */
.gallery { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; border-radius: var(--radius-md);
  background: var(--color-neutral-200); }
.gallery:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.gallery ul { display: flex; list-style: none; margin: 0; padding: 0; }
.gallery li { flex: 0 0 100%; position: relative; scroll-snap-align: start; }
.gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery a { display: block; }
.gallery a:focus-visible { outline-offset: -4px; }
.gallery-caption { position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px); }
.gallery-wrap { position: relative; }
.gallery-step { position: absolute; top: calc(50% - 22px); width: 44px; height: 44px; border: 0; border-radius: 50%;
  display: none; place-items: center; font-size: 22px; cursor: pointer; color: var(--color-text);
  background: color-mix(in srgb, var(--color-bg) 85%, transparent); box-shadow: var(--shadow-sm); }
.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }
.gallery-next i { transform: rotate(180deg); }
@media (hover: hover) and (pointer: fine) { .gallery-step { display: grid; } }

/* Shop by make. Every logo is printed in the same ink, sized to the same area, so no make looks endorsed.
   Phones: two rows that scroll sideways. Wide screens: the whole wall. */
.makes { margin-bottom: 20px; }
.makes-head { display: flex; align-items: baseline; gap: 4px 16px; flex-wrap: wrap; margin-bottom: 10px; font-size: 14px; }
.makes-head h3 { margin: 0; }
.makes-wall { display: grid; grid-auto-flow: column dense; grid-template-rows: repeat(2, auto); grid-auto-columns: 108px;
  gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding: 2px 2px 8px; }
.make-tile { scroll-snap-align: start; display: grid; grid-template-rows: 40px auto auto; justify-items: center;
  align-items: center; gap: 3px; min-width: 0; padding: 10px 6px 8px; border: 1px solid var(--color-divider);
  border-radius: var(--radius-md); background: var(--color-bg); color: var(--color-text); text-decoration: none; }
.make-tile.wide { grid-column: span 2; }
.make-tile { position: relative; }
.make-clear { position: absolute; top: 4px; right: 7px; font-size: 14px; line-height: 1; color: var(--color-accent-700); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0; }
.make-tile:hover { color: var(--color-text); border-color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.make-tile:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.make-tile[aria-current="true"] { border-color: var(--color-accent); background: var(--color-accent-100);
  box-shadow: inset 0 0 0 1px var(--color-accent); }
.make-logo { display: flex; align-items: center; justify-content: center; height: 40px; }
.make-tile.text-only { grid-template-rows: 40px auto; }
.make-tile.is-empty .mk { opacity: .55; }
.mk { display: block; fill: currentColor; flex: none; }
.mk-text { font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; text-align: center;
  line-height: 1.15; }
.make-tile.is-empty .mk-text { color: var(--color-neutral-700); }
.make-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px;
  letter-spacing: .05em; text-transform: uppercase; line-height: 1.3; color: var(--color-neutral-800); }
.make-count { font-size: 12px; font-weight: 600; color: var(--color-accent-700); }
.make-tile.is-empty .make-count { font-weight: 400; color: var(--color-neutral-700); }
.makes-note { margin: 6px 0 0; font-size: 12px; color: var(--color-neutral-700); text-wrap: pretty; }
.lot-make { margin-bottom: 10px; color: var(--color-text); }
.brand-note { margin: 10px 0 0; font-size: 12px; text-wrap: pretty; }
@media (min-width: 900px) {
  .makes-wall { grid-auto-flow: row dense; grid-template-rows: none; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
    overflow: visible; }
}

/* Footer and tab bar */
.site-footer { max-width: 1120px; margin: 72px auto 0; padding: 24px 16px 8px; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px 56px; align-items: start; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--color-bg);
  box-shadow: 0 -1px 0 var(--color-divider), 0 -8px 24px color-mix(in srgb, #16202e 8%, transparent); }
.tabbar-inner { max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  padding: 6px 8px calc(8px + env(safe-area-inset-bottom)); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; min-height: 44px;
  font-size: 12px; color: var(--color-neutral-700); text-decoration: none; }
.tabbar a i { font-size: 24px; }
.tabbar a[aria-current="page"] { color: var(--color-accent-700); font-weight: 600; }

/* Toasts (Django messages) */
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 92px; z-index: 40; max-width: min(92vw, 460px);
  background: var(--color-text); color: var(--color-bg); padding: 12px 16px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); font-size: 14px; display: flex; gap: 10px; align-items: center; animation: m1in .25s ease; }
.toast i { font-size: 20px; color: var(--color-accent-300); }
.toast-error i { color: #f2b8a2; }

/* Forms and desks */
.offer-box { display: flex; flex-direction: column; gap: 4px; background: var(--color-bg); padding: 12px;
  border-radius: var(--radius-md); border-left: 3px solid var(--color-accent); }
.form-stack { display: flex; flex-direction: column; gap: 14px; max-width: 520px; }
.form-stack .field > label { font-size: 13px; font-weight: 600; color: var(--color-text); }
.form-stack .input { min-height: 44px; font-size: 16px; }
.helptext { font-size: 12px; color: var(--color-neutral-700); margin-top: 3px; }
.errorlist { list-style: none; margin: 4px 0 0; padding: 0; font-size: 12.5px; color: var(--color-accent-2-700); }
.terms-panel { background: var(--color-surface); padding: 22px; border-radius: var(--radius-lg); }
.terms-panel ol { margin: 12px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.desk-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--color-divider); }
.desk-row form, .desk-actions { display: inline-flex; gap: 6px; flex-wrap: wrap; align-items: center; }
@media (max-width: 640px) { .desk-row { grid-template-columns: minmax(0, 1fr); } }

/* Inspection form: one column on a phone, big targets */
.inspect-form fieldset { border: 1px solid var(--color-divider); border-radius: var(--radius-md); padding: 14px; margin: 0 0 16px; }
.inspect-form legend { font-weight: 600; padding: 0 6px; }
.check-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; padding: 10px 0;
  border-bottom: 1px solid var(--color-divider); }
.check-row .choice { display: flex; gap: 6px; }
.check-row .choice label { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px;
  border: 1px solid var(--color-divider); border-radius: var(--radius-md); }
.check-row .choice label:has(input:checked) { background: var(--color-accent-100); border-color: var(--color-accent); }
.panel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.panel-grid select, .panel-grid .input { min-height: 44px; }
.check-line { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.check-line input { width: 20px; height: 20px; }
#tab-account { display: contents; }

/* The inspector's photos: one row per shot, a big camera button, thumbnails of what is taken */
.photo-progress { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-radius: var(--radius-md); background: color-mix(in srgb, var(--color-accent-2) 14%, var(--color-bg)); }
.photo-progress.is-complete { background: var(--color-accent-100); }
.photo-progress span { flex: 1 1 260px; font-size: 14px; }
.photo-locked { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.photo-tips { margin: 14px 0 0; font-size: 14px; }
.photo-tips summary { font-weight: 600; cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.photo-tips ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.shot-list { list-style: none; margin: 18px 0 22px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.shot { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--color-divider);
  border-radius: var(--radius-md); }
.shot.is-done { border-color: var(--color-accent); }
.shot-title { font-weight: 600; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.shot-photos { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.shot-photo { margin: 0; flex: none; width: 132px; display: flex; flex-direction: column; gap: 2px; font-size: 12px; }
.shot-photo img { display: block; width: 132px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-md); }
.shot-photo form { margin: 0; }
.shot-remove { min-height: 36px; font-size: 13px; }
.shot-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.shot-note { flex: 1 1 220px; min-height: 44px; font-size: 16px; }
.shot-take { position: relative; min-height: 48px; padding-inline: 18px; }
.shot-take input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.shot-take:focus-within { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.shot.is-busy .shot-take, .shot.is-busy .shot-remove { opacity: .55; pointer-events: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.shot-status { flex-basis: 100%; margin: 0; font-size: 14px; font-weight: 600; color: var(--color-accent-700); }
.shot-status:empty { display: none; }
.shot-status.is-error { color: var(--color-accent-2-700); }
.owner-photos { display: flex; gap: 6px; overflow-x: auto; align-items: flex-start; }
.owner-photos figure { margin: 0; flex: none; width: 104px; }
.owner-photos img { display: block; width: 104px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-md); }
.owner-photos figcaption { font-size: 12px; line-height: 1.3; margin-top: 2px; overflow-wrap: anywhere; }

/* Payment page: the ways to pay, one under the other */
.pay-way { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 1px solid var(--color-divider); }
.pay-way h2 { display: flex; gap: 8px; align-items: center; font-size: 22px; margin: 0; }
.pay-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin: 0; font-size: 15px; }
.pay-facts dt { color: var(--color-neutral-700); }
.pay-facts dd { margin: 0; overflow-wrap: anywhere; }

/* /goedkeuren/: the owner's approvals, one card per decision, big buttons */
.owner-block { margin-top: 32px; display: flex; flex-direction: column; gap: 10px; }
.owner-block h2 { margin: 0; }
.owner-card { display: flex; flex-direction: column; gap: 8px; background: var(--color-surface); padding: 14px;
  border-radius: var(--radius-md); }
.owner-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.owner-form .input { flex: 1 1 200px; min-height: 44px; }
.owner-form .btn { min-height: 44px; }
