/* ==========================================================================
   WingTorq / RotorTorq — Design System
   Single stylesheet, no build step. Brand themes via [data-brand] on <html>.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Ink — dark surfaces */
  --ink-950: #05080c;
  --ink-900: #090e14;
  --ink-850: #0d141c;
  --ink-800: #121a23;
  --ink-700: #1a242f;
  --ink-600: #26333f;

  /* Paper — light surfaces */
  --paper-000: #ffffff;
  --paper-050: #fbfaf8;
  --paper-100: #f4f2ee;
  --paper-200: #eae7e1;
  --paper-300: #ddd9d1;

  /* Text on light */
  --t-900: #10161d;
  --t-800: #232c35;
  --t-700: #3d4751;
  --t-500: #6b7580;
  --t-400: #929aa3;

  /* Text on dark */
  --d-900: #f6f4f0;
  --d-700: rgba(246, 244, 240, 0.70);
  --d-500: rgba(246, 244, 240, 0.48);
  --d-400: rgba(246, 244, 240, 0.34);

  /* Lines */
  --line-light: rgba(16, 22, 29, 0.10);
  --line-light-2: rgba(16, 22, 29, 0.16);
  --line-dark: rgba(246, 244, 240, 0.10);
  --line-dark-2: rgba(246, 244, 240, 0.18);

  /* Brand accent — WingTorq (brass) is the default */
  --accent: #b08d52;
  --accent-dark: #cdae74;   /* on dark surfaces */
  --accent-light: #856436;  /* on light surfaces, AA text */
  --accent-wash: rgba(176, 141, 82, 0.10);
  --accent-ink: #10161d;    /* text sitting on an accent fill */

  /* Status */
  --ok: #2c7a5b;
  --ok-wash: rgba(44, 122, 91, 0.10);
  --alert: #b4432c;
  --alert-wash: rgba(180, 67, 44, 0.10);
  --info: #35566f;

  /* Type */
  --f-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --f-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --fs-display: clamp(2.75rem, 1.6rem + 4.4vw, 5.25rem);
  --fs-h1: clamp(2.1rem, 1.4rem + 2.6vw, 3.4rem);
  --fs-h2: clamp(1.7rem, 1.25rem + 1.7vw, 2.5rem);
  --fs-h3: clamp(1.3rem, 1.1rem + 0.8vw, 1.65rem);
  --fs-h4: 1.125rem;
  --fs-body: 1rem;
  --fs-sm: 0.875rem;
  --fs-xs: 0.8125rem;
  --fs-micro: 0.6875rem;

  /* Space */
  --s-1: 4px;   --s-2: 8px;   --s-3: 12px;  --s-4: 16px;
  --s-5: 24px;  --s-6: 32px;  --s-7: 48px;  --s-8: 64px;
  --s-9: 96px;  --s-10: 128px;

  --radius: 3px;
  --radius-lg: 5px;
  --container: 1320px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* RotorTorq theme — same system, different signal */
[data-brand="rotor"] {
  --accent: #c4562c;
  --accent-dark: #e58254;
  --accent-light: #a2431f;
  --accent-wash: rgba(196, 86, 44, 0.10);
  --accent-ink: #ffffff;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--f-ui);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--t-800);
  background: var(--paper-050);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "tnum" 1, "cv05" 1;
}

img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
.display, .h1, .h2, .h3 {
  font-family: var(--f-display);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.018em;
  color: var(--t-900);
}
.display { font-size: var(--fs-display); }
.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); line-height: 1.12; }
.h3 { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -0.01em; }

.h4 {
  font-family: var(--f-ui);
  font-size: var(--fs-h4);
  font-weight: 600;
  letter-spacing: -0.011em;
  line-height: 1.35;
  color: var(--t-900);
}

.display em, .h1 em, .h2 em {
  font-style: italic;
  color: var(--accent-light);
}

.eyebrow {
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-light);
}
.eyebrow--muted { color: var(--t-500); }

.lede {
  font-size: 1.0625rem;
  line-height: 1.62;
  color: var(--t-700);
  max-width: 62ch;
}

.small { font-size: var(--fs-sm); }
.micro {
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--t-500);
}
.muted { color: var(--t-500); }
.num { font-variant-numeric: tabular-nums; }

/* Dark-surface typography */
.on-dark { color: var(--d-700); }
.on-dark .display, .on-dark .h1, .on-dark .h2,
.on-dark .h3, .on-dark .h4 { color: var(--d-900); }
.on-dark .display em, .on-dark .h1 em, .on-dark .h2 em { color: var(--accent-dark); }
.on-dark .eyebrow { color: var(--accent-dark); }
.on-dark .eyebrow--muted, .on-dark .muted, .on-dark .micro { color: var(--d-500); }
.on-dark .lede { color: var(--d-700); }

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--s-5);
}
.container--narrow { max-width: 860px; }

.section { padding-block: var(--s-9); }
.section--tight { padding-block: var(--s-7); }
.section--dark {
  background: var(--ink-900);
  color: var(--d-700);
}
.section--paper { background: var(--paper-100); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-5);
  margin-bottom: var(--s-6);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--line-light);
}
.on-dark .section-head, .section--dark .section-head { border-color: var(--line-dark); }
.section-head__text > .eyebrow { display: block; margin-bottom: var(--s-2); }

.grid { display: grid; gap: var(--s-5); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.stack > * + * { margin-top: var(--s-4); }
.row { display: flex; align-items: center; gap: var(--s-3); }
.row--between { justify-content: space-between; }
.row--wrap { flex-wrap: wrap; }
.spacer { flex: 1; }

.rule { height: 1px; background: var(--line-light); border: 0; }
.on-dark .rule { background: var(--line-dark); }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 13px 22px;
  font-size: var(--fs-sm);
  font-weight: 550;
  letter-spacing: 0.005em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease), transform 0.2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-light); color: #fff; }
[data-brand="rotor"] .btn--primary:hover { background: var(--accent-light); }

.btn--ink { background: var(--ink-900); color: var(--d-900); }
.btn--ink:hover { background: var(--ink-700); }

.btn--ghost {
  border-color: var(--line-light-2);
  color: var(--t-900);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--t-900); background: var(--paper-100); }

.on-dark .btn--ghost, .section--dark .btn--ghost {
  border-color: var(--line-dark-2);
  color: var(--d-900);
}
.on-dark .btn--ghost:hover, .section--dark .btn--ghost:hover {
  border-color: var(--d-900);
  background: rgba(255, 255, 255, 0.06);
}

.btn--lg { padding: 16px 30px; font-size: var(--fs-body); }
.btn--sm { padding: 9px 15px; font-size: var(--fs-xs); }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--fs-sm);
  font-weight: 550;
  color: var(--accent-light);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: border-color 0.2s var(--ease), gap 0.2s var(--ease);
}
.link-arrow:hover { border-color: currentColor; gap: 10px; }
.on-dark .link-arrow, .section--dark .link-arrow { color: var(--accent-dark); }

/* --------------------------------------------------------------------------
   6. Badges & pills
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  font-size: var(--fs-micro);
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  line-height: 1.4;
}
.badge--featured { background: var(--accent); color: var(--accent-ink); }
[data-brand="rotor"] .badge--featured { color: #fff; }
.badge--verified { background: var(--ok-wash); color: var(--ok); }
.badge--reduced { background: var(--alert-wash); color: var(--alert); }
.badge--sold { background: var(--ink-900); color: var(--d-900); }
.badge--new { background: rgba(53, 86, 111, 0.12); color: var(--info); }
.badge--outline {
  border: 1px solid var(--line-light-2);
  color: var(--t-700);
  background: transparent;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  font-size: var(--fs-xs);
  border: 1px solid var(--line-light-2);
  border-radius: 100px;
  color: var(--t-700);
  background: var(--paper-000);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.pill:hover { border-color: var(--t-900); color: var(--t-900); }
.pill--active {
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: var(--d-900);
}

/* --------------------------------------------------------------------------
   7. Header
   -------------------------------------------------------------------------- */
.utility {
  background: var(--ink-950);
  color: var(--d-500);
  font-size: var(--fs-xs);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.utility__inner {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  height: 38px;
}
.utility a { transition: color 0.2s var(--ease); }
.utility a:hover { color: var(--d-900); }
.utility__switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--d-700);
}
.utility__switch strong { color: var(--accent-dark); font-weight: 600; }
.utility__dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent-dark);
}

.masthead {
  background: var(--ink-900);
  color: var(--d-900);
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.masthead__inner {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  height: 76px;
}
.masthead__logo { flex-shrink: 0; }
.masthead__logo svg { height: 30px; width: auto; }

.nav { display: flex; align-items: center; gap: var(--s-5); }
.nav a {
  font-size: var(--fs-sm);
  font-weight: 480;
  color: var(--d-700);
  padding-block: 6px;
  border-bottom: 1.5px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.nav a:hover { color: var(--d-900); border-color: var(--accent-dark); }
.nav a.is-active { color: var(--d-900); border-color: var(--accent-dark); }

.masthead__actions { display: flex; align-items: center; gap: var(--s-4); }
.masthead__signin {
  font-size: var(--fs-sm);
  color: var(--d-700);
  transition: color 0.2s var(--ease);
}
.masthead__signin:hover { color: var(--d-900); }

.burger { display: none; color: var(--d-900); padding: 8px; }

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--ink-900);
  color: var(--d-700);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(90% 120% at 78% 8%, rgba(176, 141, 82, 0.20), transparent 58%),
    radial-gradient(70% 90% at 6% 96%, rgba(53, 86, 111, 0.28), transparent 62%),
    linear-gradient(168deg, #0b121a 0%, #05080c 100%);
}
[data-brand="rotor"] .hero__bg {
  background:
    radial-gradient(90% 120% at 78% 8%, rgba(196, 86, 44, 0.22), transparent 58%),
    radial-gradient(70% 90% at 6% 96%, rgba(60, 66, 72, 0.40), transparent 62%),
    linear-gradient(168deg, #10141a 0%, #05080c 100%);
}
.hero__ghost {
  position: absolute;
  right: -6%;
  top: 50%;
  transform: translateY(-50%) rotate(28deg);
  width: min(660px, 52vw);
  color: rgba(246, 244, 240, 0.045);
  pointer-events: none;
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(246, 244, 240, 0.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(246, 244, 240, 0.028) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(80% 70% at 50% 40%, #000 20%, transparent 78%);
  pointer-events: none;
}
.hero__inner {
  padding-block: clamp(64px, 8vw, 128px) clamp(48px, 6vw, 88px);
  max-width: 860px;
}
.hero .display { margin-block: var(--s-4) var(--s-5); }
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-6);
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line-dark);
}
.hero__stat strong {
  display: block;
  font-family: var(--f-display);
  font-size: 1.75rem;
  font-weight: 300;
  color: var(--d-900);
  line-height: 1.1;
}
.hero__stat span {
  font-size: var(--fs-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--d-500);
}

/* Search panel */
.searchbar {
  background: var(--paper-000);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px -20px rgba(5, 8, 12, 0.5);
  padding: var(--s-2);
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr 0.9fr auto;
  gap: 1px;
  background-image: linear-gradient(var(--line-light), var(--line-light));
  position: relative;
  z-index: 2;
}
.searchbar__field {
  background: var(--paper-000);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.searchbar__field label {
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 650;
  color: var(--t-400);
}
.searchbar__field select,
.searchbar__field input {
  border: 0;
  padding: 0;
  background: transparent;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--t-900);
  width: 100%;
  appearance: none;
  cursor: pointer;
}
.searchbar__field input { cursor: text; }
.searchbar__field input::placeholder { color: var(--t-400); font-weight: 400; }
.searchbar__submit {
  background: var(--paper-000);
  display: flex;
  align-items: stretch;
  padding: 0;
}
.searchbar__submit .btn { border-radius: var(--radius); margin: 0; }

.hero__quicklinks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-4);
  font-size: var(--fs-sm);
  color: var(--d-500);
}
.hero__quicklinks a {
  color: var(--d-700);
  border-bottom: 1px solid var(--line-dark-2);
  padding-bottom: 1px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.hero__quicklinks a:hover { color: var(--d-900); border-color: var(--accent-dark); }

/* --------------------------------------------------------------------------
   9. Media placeholder — stands in for photography
   -------------------------------------------------------------------------- */
.media {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, var(--ink-800) 0%, var(--ink-950) 100%);
  display: grid;
  place-items: center;
}
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 50% 120%, rgba(176, 141, 82, 0.16), transparent 60%),
    linear-gradient(to top, rgba(5, 8, 12, 0.5), transparent 55%);
  pointer-events: none;
}
[data-brand="rotor"] .media::after {
  background:
    radial-gradient(120% 80% at 50% 120%, rgba(196, 86, 44, 0.18), transparent 60%),
    linear-gradient(to top, rgba(5, 8, 12, 0.5), transparent 55%);
}
.media svg {
  width: 74%;
  height: auto;
  color: rgba(246, 244, 240, 0.19);
  transition: transform 0.6s var(--ease);
}
.media--16x9 svg, .media--3x2 svg { width: 52%; }
.media--wide svg { width: 44%; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--3x2 { aspect-ratio: 3 / 2; }
.media--16x9 { aspect-ratio: 16 / 9; }
.media--square { aspect-ratio: 1 / 1; }

.media__count {
  position: absolute;
  right: var(--s-3);
  bottom: var(--s-3);
  z-index: 2;
  background: rgba(5, 8, 12, 0.72);
  backdrop-filter: blur(6px);
  color: var(--d-900);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 4px 9px;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.media__flags {
  position: absolute;
  left: var(--s-3);
  top: var(--s-3);
  z-index: 2;
  display: flex;
  gap: 6px;
}

/* --------------------------------------------------------------------------
   10. Listing card
   -------------------------------------------------------------------------- */
.card {
  background: var(--paper-000);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease),
              box-shadow 0.25s var(--ease);
}
.card:hover {
  border-color: var(--line-light-2);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -24px rgba(5, 8, 12, 0.35);
}
.card:hover .media svg { transform: scale(1.045); }

.card__body { padding: var(--s-4) var(--s-4) var(--s-5); flex: 1; display: flex; flex-direction: column; }
.card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--t-400);
  margin-bottom: var(--s-2);
}
.card__meta span + span::before { content: "·"; margin-right: 8px; color: var(--paper-300); }
.card__title {
  font-family: var(--f-ui);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.3;
  color: var(--t-900);
  margin-bottom: var(--s-3);
}
.card__title a:hover { color: var(--accent-light); }

.card__specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-2);
  padding-block: var(--s-3);
  border-block: 1px solid var(--line-light);
  margin-bottom: var(--s-3);
}
.card__spec dt {
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--t-400);
  margin-bottom: 2px;
}
.card__spec dd {
  font-size: var(--fs-sm);
  font-weight: 550;
  color: var(--t-900);
  font-variant-numeric: tabular-nums;
}

.card__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-3);
  margin-top: auto;
}
.card__price {
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.1;
  color: var(--t-900);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.015em;
}
.card__price small {
  display: block;
  font-family: var(--f-ui);
  font-size: var(--fs-micro);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--t-400);
  margin-top: 5px;
}
.card__price--poa { font-size: 1.125rem; color: var(--t-700); }
.card__seller {
  text-align: right;
  font-size: var(--fs-micro);
  color: var(--t-500);
  line-height: 1.45;
}
.card__seller strong {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--t-800);
  letter-spacing: 0;
  text-transform: none;
}

/* Featured variant */
.card--featured { border-color: rgba(176, 141, 82, 0.4); }
[data-brand="rotor"] .card--featured { border-color: rgba(196, 86, 44, 0.4); }

/* Horizontal list variant, used on search results */
.card--row { flex-direction: row; }
.card--row .card__figure { flex: 0 0 336px; position: relative; }
.card--row .media { height: 100%; aspect-ratio: auto; min-height: 232px; }
.card--row .card__body { padding: var(--s-5); }
.card--row .card__specs { grid-template-columns: repeat(5, 1fr); }
.card--row .card__title { font-size: 1.25rem; margin-bottom: var(--s-2); }
.card--row .card__blurb {
  font-size: var(--fs-sm);
  color: var(--t-700);
  margin-bottom: var(--s-4);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   11. Category tiles
   -------------------------------------------------------------------------- */
.tile {
  position: relative;
  display: block;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink-850);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.tile:hover { border-color: var(--accent-dark); transform: translateY(-3px); }
.tile:hover .media svg { transform: scale(1.06); }
.tile .media { background: linear-gradient(150deg, var(--ink-700), var(--ink-950)); }
.tile__body {
  padding: var(--s-4);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-3);
}
.tile__name {
  font-size: var(--fs-body);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--d-900);
}
.tile__count {
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--d-500);
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   12. Search results layout
   -------------------------------------------------------------------------- */
.results { display: grid; grid-template-columns: 286px 1fr; gap: var(--s-7); align-items: start; }

.facets {
  position: sticky;
  top: 96px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  background: var(--paper-000);
  overflow: hidden;
}
.facets__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-4);
  border-bottom: 1px solid var(--line-light);
}
.facets__head h2 { font-size: var(--fs-sm); font-weight: 650; color: var(--t-900); }
.facets__clear { font-size: var(--fs-xs); color: var(--accent-light); }
.facets__clear:hover { text-decoration: underline; }

.facet { border-bottom: 1px solid var(--line-light); padding: var(--s-4); }
.facet:last-child { border-bottom: 0; }
.facet__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: var(--fs-xs);
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--t-900);
  margin-bottom: var(--s-3);
}
.facet__list { display: flex; flex-direction: column; gap: 9px; }
.check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: var(--fs-sm);
  color: var(--t-700);
  cursor: pointer;
}
.check:hover { color: var(--t-900); }
.check input {
  appearance: none;
  width: 15px; height: 15px;
  border: 1px solid var(--line-light-2);
  border-radius: 2px;
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
}
.check input:checked { background: var(--ink-900); border-color: var(--ink-900); }
.check input:checked::after {
  content: "";
  position: absolute;
  left: 4px; top: 1px;
  width: 4px; height: 8px;
  border: solid #fff;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(42deg);
}
.check__count { margin-left: auto; font-size: var(--fs-xs); color: var(--t-400); font-variant-numeric: tabular-nums; }

.range { display: flex; align-items: center; gap: var(--s-2); }
.input {
  width: 100%;
  padding: 9px 11px;
  font-size: var(--fs-sm);
  border: 1px solid var(--line-light-2);
  border-radius: var(--radius);
  background: var(--paper-000);
  color: var(--t-900);
  transition: border-color 0.2s var(--ease);
}
.input:focus { outline: none; border-color: var(--accent); }
.input::placeholder { color: var(--t-400); }
select.input { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236b7580' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  padding-right: 30px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--t-800);
}

.results__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  flex-wrap: wrap;
  padding-bottom: var(--s-4);
  margin-bottom: var(--s-5);
  border-bottom: 1px solid var(--line-light);
}
.results__count { font-size: var(--fs-sm); color: var(--t-700); }
.results__count strong { color: var(--t-900); font-weight: 650; font-variant-numeric: tabular-nums; }

.savebar {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  border: 1px dashed var(--line-light-2);
  border-radius: var(--radius-lg);
  background: var(--accent-wash);
  margin-top: var(--s-6);
}

.pager { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: var(--s-7); }
.pager a, .pager span {
  min-width: 38px; height: 38px;
  display: grid; place-items: center;
  font-size: var(--fs-sm);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  color: var(--t-700);
  font-variant-numeric: tabular-nums;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.pager a:hover { border-color: var(--t-900); color: var(--t-900); }
.pager .is-current { background: var(--ink-900); border-color: var(--ink-900); color: var(--d-900); }

/* --------------------------------------------------------------------------
   13. Listing detail
   -------------------------------------------------------------------------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-xs);
  color: var(--t-500);
  padding-block: var(--s-4);
}
.crumbs a:hover { color: var(--t-900); text-decoration: underline; }
.crumbs svg { opacity: 0.4; }

.detail { display: grid; grid-template-columns: 1fr 372px; gap: var(--s-7); align-items: start; }

.gallery { display: grid; gap: var(--s-2); }
.gallery__main { border-radius: var(--radius-lg); overflow: hidden; position: relative; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s-2); }
.gallery__thumb {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), opacity 0.2s var(--ease);
  opacity: 0.9;
}
.gallery__thumb:hover { opacity: 1; }
.gallery__thumb.is-active { border-color: var(--accent); opacity: 1; }
.gallery__more {
  position: relative;
  display: grid;
  place-items: center;
  background: var(--ink-850);
  color: var(--d-900);
  font-size: var(--fs-xs);
  font-weight: 600;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
}

.titleblock { padding-bottom: var(--s-5); border-bottom: 1px solid var(--line-light); margin-bottom: var(--s-5); }
.titleblock__flags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--s-3); }
.titleblock__loc {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: var(--fs-sm);
  color: var(--t-500);
  margin-top: var(--s-3);
}

.titleblock__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-6);
  flex-wrap: wrap;
}
.titleblock__price {
  text-align: right;
  flex-shrink: 0;
}
.titleblock__price b {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(1.9rem, 1.3rem + 1.8vw, 2.6rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--t-900);
  font-variant-numeric: tabular-nums;
}
.titleblock__price span {
  font-size: var(--fs-sm);
  color: var(--t-500);
  font-variant-numeric: tabular-nums;
}
.titleblock__ref {
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--t-400);
}

.docs { display: flex; flex-direction: column; gap: var(--s-2); }
.doc {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 13px var(--s-4);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: var(--paper-000);
  font-size: var(--fs-sm);
  color: var(--t-800);
  transition: border-color 0.2s var(--ease);
}
.doc:hover { border-color: var(--t-900); }
.doc svg { color: var(--t-400); flex-shrink: 0; }
.doc span { margin-left: auto; font-size: var(--fs-xs); color: var(--t-400); }

.keyfacts {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper-000);
  margin-bottom: var(--s-6);
}
.keyfact { padding: var(--s-4); border-right: 1px solid var(--line-light); }
.keyfact:last-child { border-right: 0; }
.keyfact dt {
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--t-400);
  margin-bottom: 4px;
}
.keyfact dd {
  font-family: var(--f-display);
  font-size: 1.375rem;
  font-weight: 400;
  color: var(--t-900);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.specgroup { margin-bottom: var(--s-6); }
.specgroup__title {
  font-size: var(--fs-xs);
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--t-900);
  padding-bottom: var(--s-3);
  border-bottom: 1.5px solid var(--t-900);
  margin-bottom: 0;
}
.spectable { width: 100%; border-collapse: collapse; }
.spectable tr { border-bottom: 1px solid var(--line-light); }
.spectable th, .spectable td {
  text-align: left;
  padding: 11px 0;
  font-size: var(--fs-sm);
  vertical-align: top;
}
.spectable th { font-weight: 450; color: var(--t-500); width: 42%; padding-right: var(--s-4); }
.spectable td { color: var(--t-900); font-weight: 500; font-variant-numeric: tabular-nums; }
.spectable--2col { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--s-7); }
.spectable--2col tbody { display: contents; }
.spectable--2col tr { display: grid; grid-template-columns: 42% 1fr; }

.prose { font-size: 0.9375rem; line-height: 1.72; color: var(--t-700); }
.prose p + p { margin-top: 1em; }
.prose strong { color: var(--t-900); font-weight: 600; }

.taglist { display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
  font-size: var(--fs-xs);
  padding: 5px 11px;
  background: var(--paper-100);
  border: 1px solid var(--line-light);
  border-radius: 2px;
  color: var(--t-700);
}

/* Sticky sidebar */
.aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: var(--s-4); }
.panel {
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  background: var(--paper-000);
  overflow: hidden;
}
.panel__pad { padding: var(--s-5); }
.panel__head {
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--line-light);
  font-size: var(--fs-xs);
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--t-900);
}
.panel--ink { background: var(--ink-900); border-color: var(--ink-900); color: var(--d-700); }
.panel--ink .panel__head { border-color: var(--line-dark); color: var(--d-900); }

.pricebox__label {
  font-size: var(--fs-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--d-500);
  margin-bottom: 6px;
}
.pricebox__value {
  font-family: var(--f-display);
  font-size: 2.375rem;
  font-weight: 300;
  line-height: 1.05;
  color: var(--d-900);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.pricebox__alt { font-size: var(--fs-sm); color: var(--d-500); margin-top: 6px; font-variant-numeric: tabular-nums; }
.pricebox__fx {
  font-size: var(--fs-micro);
  color: var(--d-400);
  margin-top: 7px;
  letter-spacing: 0.01em;
}
.pricebox__vat {
  display: flex; align-items: center; gap: 7px;
  font-size: var(--fs-xs); color: var(--d-700);
  margin-top: var(--s-4); padding-top: var(--s-4);
  border-top: 1px solid var(--line-dark);
}
.pricebox__vat svg { color: var(--accent-dark); flex-shrink: 0; }
.pricebox__was {
  display: flex; align-items: center; gap: 7px;
  font-size: var(--fs-xs); color: var(--d-500); margin-top: var(--s-3);
}
.pricebox__was s { color: var(--d-400); }
.pricebox__was svg { flex-shrink: 0; }

.seller { display: flex; align-items: center; gap: var(--s-3); }
.seller__logo {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  background: var(--ink-900);
  color: var(--d-900);
  display: grid; place-items: center;
  font-family: var(--f-display);
  font-size: 1.125rem;
  flex-shrink: 0;
}
.seller__name { display: block; font-size: var(--fs-sm); font-weight: 650; color: var(--t-900); line-height: 1.35; }
.seller__meta { display: block; font-size: var(--fs-xs); color: var(--t-500); line-height: 1.4; margin-top: 2px; }

.enquiry { display: flex; flex-direction: column; gap: var(--s-3); }
.enquiry textarea { min-height: 92px; resize: vertical; }
.enquiry__note { font-size: var(--fs-micro); color: var(--t-400); line-height: 1.5; letter-spacing: 0; text-transform: none; font-weight: 400; }

.aside__actions { display: flex; gap: var(--s-2); }
.iconbtn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px;
  font-size: var(--fs-xs);
  font-weight: 550;
  border: 1px solid var(--line-light-2);
  border-radius: var(--radius);
  color: var(--t-700);
  background: var(--paper-000);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.iconbtn:hover { border-color: var(--t-900); color: var(--t-900); }

/* --------------------------------------------------------------------------
   14. Broker strip
   -------------------------------------------------------------------------- */
.broker {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-4);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  background: var(--paper-000);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.broker:hover { border-color: var(--line-light-2); transform: translateY(-2px); }
.broker__logo {
  width: 56px; height: 56px;
  border-radius: var(--radius);
  background: var(--ink-900);
  color: var(--d-900);
  display: grid; place-items: center;
  font-family: var(--f-display);
  font-size: 1.25rem;
  flex-shrink: 0;
}
.broker__name { font-size: var(--fs-sm); font-weight: 650; color: var(--t-900); display: flex; align-items: center; gap: 6px; line-height: 1.35; }
.broker__meta { display: block; font-size: var(--fs-xs); color: var(--t-500); line-height: 1.4; margin-top: 2px; }

/* --------------------------------------------------------------------------
   15. CTA band
   -------------------------------------------------------------------------- */
.band {
  background: var(--ink-900);
  color: var(--d-700);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 5vw, 72px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--s-7);
  align-items: center;
  position: relative;
  overflow: hidden;
}
.band__glow {
  position: absolute;
  right: -10%;
  top: -40%;
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(circle, var(--accent-wash), transparent 65%);
  pointer-events: none;
}
.band__points { display: flex; flex-direction: column; gap: var(--s-3); }
.band__point {
  display: flex;
  gap: var(--s-3);
  font-size: var(--fs-sm);
  color: var(--d-700);
  align-items: flex-start;
}
.band__point svg { flex-shrink: 0; margin-top: 3px; color: var(--accent-dark); }

/* --------------------------------------------------------------------------
   16. Editorial cards
   -------------------------------------------------------------------------- */
.article__media { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: var(--s-4); }
.article__kicker {
  font-size: var(--fs-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 650;
  color: var(--accent-light);
  margin-bottom: var(--s-2);
  display: block;
}
.article__title {
  font-family: var(--f-display);
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1.24;
  letter-spacing: -0.014em;
  color: var(--t-900);
  margin-bottom: var(--s-2);
}
.article:hover .article__title { color: var(--accent-light); }
.article:hover .media svg { transform: scale(1.045); }

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */
.footer { background: var(--ink-950); color: var(--d-500); padding-block: var(--s-8) var(--s-5); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: var(--s-6);
  padding-bottom: var(--s-7);
  border-bottom: 1px solid var(--line-dark);
}
.footer__brand svg { height: 28px; width: auto; margin-bottom: var(--s-4); }
.footer__blurb { font-size: var(--fs-sm); color: var(--d-500); max-width: 34ch; line-height: 1.6; }
.footer h3 {
  font-size: var(--fs-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 650;
  color: var(--d-900);
  margin-bottom: var(--s-4);
}
.footer li + li { margin-top: 10px; }
.footer li a { font-size: var(--fs-sm); color: var(--d-500); transition: color 0.2s var(--ease); }
.footer li a:hover { color: var(--d-900); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding-top: var(--s-5);
  font-size: var(--fs-xs);
  color: var(--d-400);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: var(--s-4); }
.footer__legal a:hover { color: var(--d-900); }

.crossbrand {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  margin-top: var(--s-6);
  background: rgba(255, 255, 255, 0.02);
}
.crossbrand svg { height: 22px; width: auto; flex-shrink: 0; }
.crossbrand p { font-size: var(--fs-sm); color: var(--d-500); }

/* --------------------------------------------------------------------------
   18. Utilities
   -------------------------------------------------------------------------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--s-4); }
.mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); }
.mb-4 { margin-bottom: var(--s-4); }
.mb-5 { margin-bottom: var(--s-5); }
.mb-6 { margin-bottom: var(--s-6); }
.text-right { text-align: right; }

/* --------------------------------------------------------------------------
   19. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1160px) {
  .searchbar { grid-template-columns: 1fr 1fr; }
  .searchbar__submit { grid-column: span 2; padding: var(--s-2); }
  .searchbar__submit .btn { width: 100%; }
  .detail { grid-template-columns: 1fr 330px; gap: var(--s-6); }
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: span 3; }
}

@media (max-width: 980px) {
  .nav { display: none; }
  .burger { display: block; }
  .masthead__signin { display: none; }
  .results { grid-template-columns: 1fr; }
  .facets { position: static; }
  .detail { grid-template-columns: 1fr; }
  .aside { position: static; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .band { grid-template-columns: 1fr; }
  .keyfacts { grid-template-columns: repeat(3, 1fr); }
  .keyfact:nth-child(3) { border-right: 0; }
  .card--row { flex-direction: column; }
  .card--row .card__figure { flex: none; }
  .card--row .media { min-height: 0; aspect-ratio: 3 / 2; }
  .card--row .card__specs { grid-template-columns: repeat(3, 1fr); }
  .spectable--2col { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .section { padding-block: var(--s-7); }
  .searchbar { grid-template-columns: 1fr; }
  .searchbar__submit { grid-column: span 1; }
  .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .keyfacts { grid-template-columns: repeat(2, 1fr); }
  .keyfact { border-right: 0; border-bottom: 1px solid var(--line-light); }
  .keyfact:nth-child(odd) { border-right: 1px solid var(--line-light); }
  .card__specs, .card--row .card__specs { grid-template-columns: repeat(2, 1fr); }
  .gallery__thumbs { grid-template-columns: repeat(4, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: span 2; }
  .utility__inner { height: auto; padding-block: 8px; flex-wrap: wrap; gap: var(--s-3); }
  .hero__stats { gap: var(--s-5); }
}
