/* VIC Lot Finder. Same look as the stock list site (Prime/stock-list-site): red, ink and greys,
   square corners, mono caps labels with the corner triangle. Inter Tight / IBM Plex Mono stand in for
   the main site's Adobe fonts. Only the logo is blue. */
:root {
  --red: #B1122A;
  --red-dark: #7b1a1a;
  --red-line: #d98894;
  --red-soft: #F7E6E9;
  --ink: #2C2C2C;
  --ink-2: #5b5b5b;
  --muted: #8a8a8a;
  --bg: #FAFAFA;
  --grey: #F2F2F2;
  --zebra: #F6F6F6;
  --line: #E6E6E6;
  --white: #fff;
  --avail: #3b5b1a;
  --avail-bg: #E7EEDD;
  --hold: #9A6200;
  --hold-bg: #FCEFD6;
  --font: "Inter Tight", "Neue Haas Grotesk Text", "Helvetica Neue", Arial, sans-serif;
  --display: "Inter Tight", "Neue Haas Grotesk Display", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "Cofo Sans Mono", ui-monospace, monospace;
  --gutter: 32px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
.wrap { padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 200; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }

.supertitle { display: inline-flex; align-items: center; gap: 8px; margin: 0; font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.supertitle::before { content: ""; width: 10px; height: 10px; flex: none; background: currentColor; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.supertitle-plain { margin: 0; font: 400 13px/1.4 var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.sqlink { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.sqlink i { width: 12px; height: 12px; flex: none; border: 1px solid currentColor; transition: background .15s ease-out; }
a.sqlink:hover i { background: currentColor; }
.sqlink--quiet { color: var(--ink-2); }

/* Header */
.site-header { background: var(--white); border-bottom: 1.5px solid var(--line); }
.site-header__in { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand img { width: 94px; height: auto; }
.site-header__meta { display: flex; align-items: center; gap: 28px; }

/* Hero */
.hero { padding: clamp(36px, 5vw, 72px) 0 clamp(28px, 3.5vw, 44px); }
.hero h1 { margin: 18px 0 14px; font: 500 clamp(48px, 7vw, 96px)/.95 var(--display); letter-spacing: -.035em; color: var(--red); }
.updated { margin: 0 0 18px; font: 500 13px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.updated span, .row__main small span { white-space: nowrap; }
.hero__lede { margin: 0; max-width: 600px; font-size: clamp(16px, 1.4vw, 18px); }
.hero__stats { display: flex; flex-wrap: wrap; margin: 32px 0 0; padding: 0; border-top: 1.5px solid var(--line); max-width: 900px; }
.hero__stats div { flex: 1 1 150px; padding: 18px 24px 0 0; }
.hero__stats dt { font: 500 11px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.hero__stats dd { margin: 8px 0 0; font: 500 clamp(26px, 2.6vw, 34px)/1 var(--display); letter-spacing: -.02em; }
.hero__stats dd small { font: 400 13px/1 var(--font); letter-spacing: 0; color: var(--ink-2); margin-left: 6px; }

/* Indicative notice */
.notice { background: var(--ink); color: #fff; }
.notice__in { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; padding-top: 14px; padding-bottom: 14px; font-size: 14px; }
.notice strong { font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.notice span { color: rgba(255, 255, 255, .78); }

/* Picks */
.picks { background: var(--white); border-bottom: 1.5px solid var(--line); padding: 44px 0 52px; }
.picks__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; margin-bottom: 26px; }
.picks h2, .about h2 { margin: 0; font: 500 clamp(30px, 3vw, 42px)/1 var(--display); letter-spacing: -.025em; }
.picks__sub { margin: 0; max-width: 620px; color: var(--ink-2); font-size: 14.5px; }
.picks__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.pickcol__h { display: flex; align-items: center; justify-content: space-between; margin: 0; padding: 0 14px; height: 40px; background: var(--red); color: #fff; font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.pickcol__h em { font-style: normal; opacity: .75; }
.pickcol__list { list-style: none; margin: 0; padding: 0; border: 1.5px solid var(--line); border-top: 0; }
.pick { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 4px 14px; padding: 16px 14px; border-top: 1px solid var(--line); }
.pick:first-child { border-top: 0; }
.pick__rank { grid-row: span 3; display: grid; place-items: center; width: 44px; height: 44px; background: var(--grey); font: 500 18px/1 var(--display); }
.pick:first-child .pick__rank { background: var(--red); color: #fff; }
.pick__title { margin: 0; font: 600 17px/1.25 var(--display); }
.pick__title small { display: block; margin-top: 3px; font: 400 11.5px/1.3 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.pick__score { grid-row: span 2; text-align: right; }
.pick__score b { display: block; font: 500 26px/1 var(--display); letter-spacing: -.02em; }
.pick__score span { font: 400 10.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.pick__facts { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 6px 0 0; font-size: 14px; color: var(--ink-2); }
.pick__facts strong { color: var(--ink); font-weight: 600; }
.pick__actions { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pick__flags { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.pickcol__empty { padding: 20px 14px; color: var(--ink-2); }

/* Tags */
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; font: 400 10.5px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; background: var(--grey); color: var(--ink-2); }
.tag--new { background: var(--red); color: #fff; }
.tag--changed { background: var(--ink); color: #fff; }
.tag--ours { background: var(--red-soft); color: var(--red); }
.tag--warn { background: var(--hold-bg); color: #8A5600; }
.status { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; color: #fff; font: 400 10.5px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.status--available { background: var(--avail); }
.status--hold { background: var(--hold); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; background: var(--ink); color: #fff; border: 1.5px solid var(--ink); text-decoration: none; font: 600 13px/1 var(--display); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.btn svg { width: 14px; height: 14px; fill: currentColor; }
.btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn--sm { height: 32px; padding: 0 12px; font-size: 11.5px; gap: 6px; }
.btn--ghost { background: var(--white); color: var(--ink); }

/* Toolbar */
.toolbar { position: sticky; top: 0; z-index: 30; background: rgba(250, 250, 250, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 2px solid var(--line); }
.toolbar__in { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs button { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 1.5px solid var(--line); background: var(--white); cursor: pointer; font: 600 13px/1 var(--display); letter-spacing: .05em; text-transform: uppercase; transition: background .2s, color .2s, border-color .2s; }
.tabs button span { font: 400 11px/1 var(--mono); padding: 4px 6px; background: var(--grey); color: var(--ink-2); }
.tabs button:hover { border-color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.tabs button[aria-selected="true"] span { background: rgba(255, 255, 255, .18); color: #fff; }
.filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.search { position: relative; display: block; }
.search svg { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); fill: var(--ink-2); pointer-events: none; }
.search input { width: 230px; height: 40px; padding: 0 12px 0 36px; border: 1.5px solid var(--line); background: var(--white); border-radius: 0; outline: none; }
.search input:focus, .select select:focus { border-color: var(--ink); outline: none; }
.select select { height: 40px; padding: 0 32px 0 12px; border: 1.5px solid var(--line); background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0h10L5 6z' fill='%232C2C2C'/%3E%3C/svg%3E") no-repeat right 12px center; border-radius: 0; appearance: none; -webkit-appearance: none; cursor: pointer; }
.toggle { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1.5px solid var(--line); background: var(--white); cursor: pointer; user-select: none; font-weight: 500; white-space: nowrap; }
.toggle input { width: 16px; height: 16px; margin: 0; accent-color: var(--red); cursor: pointer; }
.filterbar { display: none; }
.filterbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 14px; border: 1.5px solid var(--ink); background: var(--white); cursor: pointer; font: 600 13px/1 var(--display); letter-spacing: .05em; text-transform: uppercase; }
.filterbtn svg { width: 15px; height: 15px; fill: currentColor; }
.filterbtn span { font: 500 11px/1 var(--mono); padding: 4px 6px; background: var(--red); color: #fff; }
.filterbtn[aria-expanded="true"] { background: var(--ink); color: #fff; }

/* Results */
.stock { padding-bottom: 72px; }
.results { margin: 20px 0 12px; font: 400 12px/1.4 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }
.loading, .empty { padding: 60px 0; text-align: center; color: var(--ink-2); }
.empty p { font: 500 20px/1.3 var(--display); margin: 0 0 16px; color: var(--ink); }

/* Table (wide screens) */
.table-wrap { margin: 0 calc(var(--gutter) * -1); background: var(--white); border-top: 1.5px solid var(--line); border-bottom: 1.5px solid var(--line); }
.grid { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.grid th, .grid td { padding: 0 8px; text-align: left; white-space: nowrap; }
.grid th:first-child, .grid td:first-child { padding-left: var(--gutter); }
.grid th:last-child, .grid td:last-child { padding-right: var(--gutter); }
.grid thead th { position: sticky; top: var(--tb, 66px); z-index: 5; height: 42px; background: var(--white); font: 400 10.5px/1.2 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); border-bottom: 1.5px solid var(--ink); }
.grid td { height: 54px; border-top: 1px solid var(--line); }
.grid tbody tr.lotrow { cursor: pointer; }
.grid tbody tr.lotrow:nth-of-type(4n+1) td { background: var(--white); }
.grid tbody tr.lotrow:hover td { background: #F1F1F1; }
.grid tr.lotrow[aria-expanded="true"] td { background: var(--grey); }
.grid .r { text-align: right; }
.grid .price { font-weight: 600; font-size: 14.5px; }
.grid .k-lot strong { font-weight: 600; }
.grid .k-estate { white-space: normal; line-height: 1.2; min-width: 120px; }
.grid .k-estate small { display: block; font-size: 12px; color: var(--ink-2); }
.grid .k-design small { display: block; font: 400 11px/1.2 var(--mono); color: var(--ink-2); }
.grid .k-tags { white-space: normal; }
.grid .k-tags .tag + .tag { margin-left: 4px; }
.grid .k-x { width: 28px; }
.grid tr.detail td { padding: 0; height: auto; border-top: 0; }
.scorebar { display: inline-grid; grid-template-columns: 30px 54px; align-items: center; gap: 8px; }
.scorebar b { font: 600 15px/1 var(--display); text-align: right; }
.scorebar i { position: relative; height: 6px; background: var(--line); }
.scorebar i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w, 0%); background: var(--red); }
.muted { color: var(--muted); }
.chev::before { content: ""; display: block; width: 9px; height: 9px; margin-left: auto; background: var(--ink); clip-path: polygon(100% 0, 100% 100%, 0 100%); transform: rotate(45deg); transition: transform .3s var(--ease); }
[aria-expanded="true"] .chev::before { transform: rotate(225deg); }

/* Detail panel (shared by table and list) */
.detail__in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); gap: 28px; padding: 22px var(--gutter) 28px; background: var(--grey); border-top: 1px solid var(--line); font-size: 14px; white-space: normal; }
.detail h4 { margin: 0 0 10px; font: 500 11px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.calc { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.calc td { padding: 6px 0; border-top: 1px solid #E2E2E2; vertical-align: top; height: auto; white-space: normal; }
.calc td:last-child { text-align: right; white-space: nowrap; padding-left: 12px; font-weight: 500; }
.calc td small { display: block; color: var(--ink-2); font-size: 12px; margin-top: 2px; }
.calc tr.sum td { border-top: 1.5px solid var(--ink); font-weight: 700; }
.calc tr.sum td:last-child { font-size: 16px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; }
.facts dt { font: 400 10.5px/1.7 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }
.facts dd { margin: 0; }
.issues { list-style: none; margin: 0; padding: 0; }
.issues li { position: relative; padding: 6px 0 6px 16px; border-top: 1px solid #E2E2E2; }
.issues li::before { content: ""; position: absolute; left: 0; top: 12px; width: 7px; height: 7px; background: var(--hold); clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.issues li.ok::before { background: var(--avail); }
.issues li.bad::before { background: var(--red); }
.docs { list-style: none; margin: 0; padding: 0; }
.docs li { padding: 6px 0; border-top: 1px solid #E2E2E2; }
.docs li b { font: 500 10.5px/1.4 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); margin-right: 6px; }
.docs code { font: 400 12px/1.4 var(--mono); word-break: break-all; color: var(--ink); }
.also { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 13px; }
.also td { padding: 5px 0; border-top: 1px solid #E2E2E2; height: auto; }
.also td + td { text-align: right; padding-left: 10px; }
.detail__block + .detail__block { margin-top: 22px; }
.detail__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.parts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* Collapsed list (under 1280px) */
.list { display: none; margin: 0 calc(var(--gutter) * -1); background: var(--white); border-top: 1.5px solid var(--line); border-bottom: 1.5px solid var(--line); font-variant-numeric: tabular-nums; }
.row { border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row__btn { display: grid; width: 100%; grid-template-columns: 40px minmax(0, 1fr) auto 14px; align-items: center; gap: 12px; min-height: 68px; padding: 10px var(--gutter); background: transparent; border: 0; cursor: pointer; text-align: left; }
.row__btn:hover { background: var(--zebra); }
.row__btn[aria-expanded="true"] { background: var(--grey); }
.row__score { font: 600 18px/1 var(--display); text-align: center; }
.row__score small { display: block; margin-top: 3px; font: 400 9.5px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }
.row__main strong { display: block; font-weight: 600; line-height: 1.25; }
.row__main small { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 4px; color: var(--ink-2); font: 400 11px/1.3 var(--mono); letter-spacing: .03em; text-transform: uppercase; }
.row__nums { text-align: right; }
.row__nums strong { display: block; font-weight: 600; }
.row__nums span { font-size: 13px; color: var(--ink-2); }
.row .detail__in { grid-template-columns: 1fr; gap: 22px; padding: 18px var(--gutter) 22px; }

/* Sources and rules */
.about { padding: 56px 0 64px; background: var(--white); border-top: 1.5px solid var(--line); }
.about h2 { margin-bottom: 28px; }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.about__grid + .about__grid { margin-top: 40px; }
.about h3 { margin: 0 0 12px; font: 500 12px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.mini { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.mini th { text-align: left; padding: 0 10px 8px 0; font: 400 10.5px/1.2 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); border-bottom: 1.5px solid var(--ink); }
.mini td { padding: 9px 10px 9px 0; border-top: 1px solid var(--line); vertical-align: top; }
.mini td small { display: block; color: var(--ink-2); font-size: 12.5px; margin-top: 2px; }
.mini .r { text-align: right; }
.rules { margin: 0; }
.rules dt { margin-top: 14px; font-weight: 600; }
.rules dt:first-child { margin-top: 0; }
.rules dd { margin: 3px 0 0; color: var(--ink-2); font-size: 14.5px; }

/* Footer */
.footer { background: var(--red); color: #fff; }
.footer__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding: 32px var(--gutter); }
.footer__note { margin: 0; max-width: 620px; font-size: 14px; opacity: .8; }
.footer .sqlink { color: #fff; }

/* Responsive */
@media (max-width: 1279px) {
  .table-wrap { display: none; }
  .list { display: block; }
}
@media (min-width: 768px) and (max-width: 1279px) {
  .row__btn { grid-template-columns: 48px minmax(0, 1.4fr) minmax(0, 1fr) 110px 70px 14px; }
  .row__mid { display: block !important; font-size: 14px; }
  .row__mid small { display: block; color: var(--ink-2); font-size: 12.5px; }
  .row .detail__in { grid-template-columns: 1fr 1fr; }
}
.row__mid, .row__yield { display: none; }
@media (min-width: 768px) and (max-width: 1279px) { .row__yield { display: block; text-align: right; font-weight: 600; } }
@media (max-width: 1100px) {
  .picks__grid, .about__grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .filters { width: 100%; }
  .search { flex: 1 1 100%; }
  .search input { width: 100%; }
  .select { flex: 1 1 140px; }
  .select select { width: 100%; }
}
@media (max-width: 767px) {
  :root { --gutter: 16px; --header-h: 64px; }
  .brand img { width: 78px; }
  .site-header .supertitle { display: none; }
  .hero h1 { margin: 12px 0 10px; }
  .hero__stats div { flex: 1 1 45%; }
  .hero__stats dd { font-size: 24px; }
  .picks { padding: 32px 0 36px; }
  .pick { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 4px 10px; padding: 14px 12px; }
  .pick__rank { width: 36px; height: 36px; font-size: 16px; }
  .pick__actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .pick__actions .btn { width: 100%; }
  .pick__actions .btn:first-child { grid-column: 1 / -1; }
  .pick__flags { grid-column: 1 / -1; }
  .toolbar { position: static; }
  .tabs { display: grid; grid-template-columns: 1fr 1fr 1fr; width: 100%; }
  .tabs button { justify-content: space-between; gap: 4px; min-width: 0; padding: 0 8px; font-size: 11px; letter-spacing: .02em; }
  .tabs button span { padding: 3px 4px; font-size: 10px; }
  .filterbar { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 100%; }
  .filterbar .toggle { justify-content: center; }
  .filters { display: none; }
  .filters.is-open { display: flex; }
  .filters .toggle { flex: 1 1 100%; }
  .filters #availOnly { }
  .filters label.toggle:has(#availOnly) { display: none; }
  .row__btn { grid-template-columns: 36px minmax(0, 1fr) auto 12px; gap: 10px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .about { padding: 40px 0 48px; }
  .mini { font-size: 13px; }
  .footer__bar { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
