/* ============================================================
   Search page: "Console" direction.
   Loads after tokens.css / lr.css and re-points the shared tokens
   at the landing page's brand fonts, then lays the page out as a
   sticky search panel beside a dense results table.
   ============================================================ */

@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/hanken-grotesk-latin-wght.woff2') format('woff2-variations'),
       url('../fonts/hanken-grotesk-latin-wght.woff2') format('woff2');
}
@font-face {
  font-family: 'Spline Sans Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url('../fonts/spline-sans-mono-latin-wght.woff2') format('woff2-variations'),
       url('../fonts/spline-sans-mono-latin-wght.woff2') format('woff2');
}

:root {
  --font-display: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-body:    'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono:    'Spline Sans Mono', SFMono-Regular, Menlo, monospace;
}

body { font-family: var(--font-body); }

/* ─── Nav ───────────────────────────────────────────────────── */
.lr-nav { background: rgba(255, 255, 255, 0.94); }
.lr-nav-inner { max-width: 1360px; }
.lr-nav-word { font-weight: 800; font-size: 16px; letter-spacing: -0.02em; }
.lr-nav-dom { font-weight: 500; }
.lr-nav-link { font-size: 14px; }
.lr-nav-link[aria-current="page"] { color: var(--brand-700); font-weight: 700; }
.lr-nav-cta { border-radius: 999px; padding: 9px 16px; font-size: 13px; font-weight: 700; }
.lr-nav-credits { border-radius: 999px; padding: 6px 11px; background: var(--brand-50); border-color: var(--brand-100); color: var(--brand-700); }

/* ─── Layout ────────────────────────────────────────────────── */
.sc-layout {
  max-width: 1360px; margin: 0 auto;
  padding: 28px 32px 80px;
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.sc-panel {
  position: sticky; top: 80px;
  display: flex; flex-direction: column; gap: 14px;
  min-width: 0;
}
.sc-main { min-width: 0; display: flex; flex-direction: column; gap: 16px; }

/* ─── Search panel ──────────────────────────────────────────── */
.sc-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
}
.sc-h1 {
  font: 800 1.5rem/1.15 var(--font-display);
  letter-spacing: -0.03em;
  margin: 0 0 4px;
}
.sc-sub { font: var(--t-body-sm); color: var(--ink-3); margin: 0 0 18px; }
.sc-legend,
.sc-source-h {
  display: block;
  font: 700 11px/1.3 var(--font-body);
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 8px;
}
.sc-card .lr-search-tabs {
  display: grid; gap: 6px; margin: 0 0 18px;
}
.sc-card .lr-search-tab {
  justify-content: flex-start;
  gap: 10px;
  padding: 12px 12px;
  border: 1px solid var(--paper-sunk);
  border-radius: 8px;
  background: #fff;
  color: var(--ink-2);
  font: 600 14px/1.2 var(--font-body);
  text-align: left;
}
.sc-card .lr-search-tab:hover { background: var(--paper); color: var(--ink); }
.sc-card .lr-search-tab[data-active="true"] {
  background: var(--brand-50);
  border-color: var(--brand-700);
  color: var(--ink);
  box-shadow: inset 3px 0 0 var(--brand-700);
}
.sc-card .lr-search-tab[data-active="true"]::after { display: none; }
.sc-card .lr-search-tab iconify-icon { color: var(--brand-700); }
.sc-card .lr-credit-cost-tag,
.sc-card .lr-price-tag {
  margin-left: auto;
  background: transparent; border: 0; padding: 0;
  font: 500 12px/1 var(--font-mono);
  color: var(--ink-3);
}
.sc-card .lr-search-tab[data-type="director"] .lr-credit-cost-tag,
.sc-card .lr-search-tab[data-type="director"] .lr-price-tag { color: var(--gold-700); }
.sc-card .lr-search-tab[data-active="true"] .lr-credit-cost-tag,
.sc-card .lr-search-tab[data-active="true"] .lr-price-tag { color: var(--brand-700); }

.sc-label { display: block; font: 600 14px/1.3 var(--font-body); color: var(--ink); margin: 0 0 6px; }
.sc-card .lr-search-field {
  min-width: 0;
  background: var(--paper);
  border-radius: 8px;
  margin: 0 0 12px;
}
.sc-card .lr-search-field input { padding: 13px 10px; font-size: 15px; }
.sc-submit.lr-btn {
  width: 100%;
  justify-content: center;
  min-height: 50px;
  border-radius: 999px;
  background: var(--brand-700); color: #fff;
  font: 700 15px/1 var(--font-body);
  gap: 10px;
}
.sc-submit.lr-btn:hover { background: var(--brand-800); color: #fff; }
.sc-submit.lr-btn:disabled { opacity: 0.75; cursor: not-allowed; }
.sc-submit .lr-price-tag-large { border-radius: 999px; }

.sc-notices { display: flex; flex-direction: column; gap: 10px; }
.sc-notices .lr-banner { border-radius: 12px; font-size: 13px; }

.sc-source {
  display: flex; flex-direction: column; gap: 3px;
  border-radius: 14px;
  padding: 16px 20px;
  background: var(--brand-800);
  color: var(--brand-100);
  font: var(--t-body-sm);
}
.sc-source strong { color: #fff; font-weight: 700; }
.sc-source time { color: #fff; font-weight: 600; }

/* ─── Empty state ───────────────────────────────────────────── */
.sc-intro {
  border: 1.5px dashed var(--line-strong);
  border-radius: 14px;
  padding: 56px 32px;
  text-align: center;
  color: var(--ink-3);
}
.sc-main:has(> [id]:not(.hidden)) .sc-intro { display: none; }
.sc-intro-mark {
  width: 44px; height: 44px; margin: 0 auto 14px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
}
.sc-intro-mark span { border-radius: 3px; background: var(--brand-700); opacity: 0.85; }
.sc-intro-mark span:nth-child(2) { background: var(--gold-500); transform: scale(0.6); }
.sc-intro-h { font: 800 1.25rem/1.2 var(--font-display); letter-spacing: -0.02em; color: var(--ink); margin: 0 0 6px; }
.sc-intro-p { max-width: 520px; margin: 0 auto; font: var(--t-body); }

/* ─── Results header + owner strip ──────────────────────────── */
.lr-results-head-title { font: 800 1.75rem/1.15 var(--font-display); letter-spacing: -0.03em; }
.lr-results-actions .lr-select,
.lr-results-actions .lr-btn { border-radius: 999px; min-height: 40px; }
.lr-owner-profiles { border-radius: 14px; }
.lr-owner-profiles-title { font: 800 1.0625rem/1.2 var(--font-display); letter-spacing: -0.015em; }
.lr-owner-profile-name { font: 800 1.0625rem/1.25 var(--font-display); letter-spacing: -0.015em; }
.lr-owner-stat { border-radius: 10px; }
.lr-owner-stat-v { font: 700 1rem/1.25 var(--font-display); }

/* ─── Results table ─────────────────────────────────────────── */
.sc-sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.sc-table-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.sc-table { width: 100%; border-collapse: collapse; font: 400 14px/1.45 var(--font-body); }
.sc-table thead th {
  text-align: left;
  background: var(--paper);
  font: 700 11px/1.3 var(--font-body);
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--ink-3);
  padding: 12px 16px;
  border-bottom: 1px solid var(--paper-sunk);
  white-space: nowrap;
}
.sc-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--paper-sunk);
  vertical-align: top;
  color: var(--ink);
}
.sc-table tbody tr:last-child td { border-bottom: 0; }
.sc-row:hover td,
.sc-row[data-open="true"] td { background: var(--brand-50); }
.sc-row[data-open="true"] td { border-bottom-color: transparent; }
.sc-num { text-align: right; white-space: nowrap; }
.sc-table th.sc-num { text-align: right; }
.sc-mono { font-family: var(--font-mono); font-size: 13px; }
.sc-muted { color: var(--ink-4); font-family: var(--font-body); }
.sc-addr { display: block; font-weight: 700; }
.sc-cell-sub { display: block; font-size: 13px; color: var(--ink-3); }
.sc-owner { display: block; font-weight: 600; margin-bottom: 3px; }
.sc-tenure {
  display: inline-block;
  font: 600 12px/1 var(--font-body);
  padding: 5px 9px; border-radius: 999px;
  background: var(--brand-50); color: var(--brand-700);
  white-space: nowrap;
}
.sc-tenure[data-tenure="leasehold"] { background: var(--warn-bg); color: var(--gold-700); }
.sc-expand-cell { width: 44px; padding-left: 0 !important; }
.sc-expand {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--ink-2);
  cursor: pointer;
  transition: transform 160ms var(--ease), border-color 120ms var(--ease);
}
.sc-expand:hover { border-color: var(--brand-700); color: var(--brand-700); }
.sc-expand[aria-expanded="true"] { transform: rotate(180deg); }

.sc-detail td { background: var(--brand-50); padding-top: 0; }
.sc-detail-inner {
  background: #fff;
  border-radius: 10px;
  padding: 14px 16px;
  display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: flex-start;
}
.sc-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0; }
.sc-facts dt { font-size: 12px; color: var(--ink-3); }
.sc-facts dd { margin: 0; font-weight: 600; }
.sc-detail-epc { flex: 1 1 260px; min-width: 0; }
.sc-detail-epc:empty { display: none; }
.sc-detail-epc .lr-epc { margin: 0; padding-top: 0; border-top: 0; }

.sc-cite {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 13px;
  font: 700 12px/1 var(--font-body);
  color: var(--brand-700);
  cursor: pointer;
}
.sc-cite:hover { background: var(--brand-50); border-color: var(--brand-200); }
.sc-cite[data-copied="true"] { color: var(--ok); background: var(--ok-bg); border-color: rgba(45, 107, 31, 0.3); }

.lr-suggestions-wrap,
.lr-empty,
.lr-director-card { border-radius: 12px; }

.lr-search-guide h3 { font-weight: 700; letter-spacing: -0.01em; }
.lr-footer-word { font-weight: 800; letter-spacing: -0.02em; }

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 960px) {
  .sc-layout { grid-template-columns: minmax(0, 1fr); padding: 20px 20px 64px; }
  .sc-panel { position: static; }
}
@media (max-width: 720px) {
  .sc-table, .sc-table tbody, .sc-table tr, .sc-table td { display: block; }
  .sc-table thead { display: none; }
  .sc-row {
    position: relative;
    padding: 14px 52px 12px 16px;
    border-bottom: 1px solid var(--paper-sunk);
  }
  .sc-row td { padding: 2px 0; border: 0; background: none !important; }
  .sc-row td[data-label="Property"] { order: -1; }
  .sc-row td[data-label="Title no."]::before,
  .sc-row td[data-label="Region"]::before,
  .sc-row td[data-label="Price paid"]::before {
    content: attr(data-label) " · ";
    font: 400 12px/1.4 var(--font-body); color: var(--ink-3);
  }
  .sc-table .sc-row { display: flex; flex-direction: column; }
  .sc-table .sc-detail[hidden] { display: none; }
  .sc-num { text-align: left; }
  .sc-expand-cell { position: absolute; top: 12px; right: 12px; width: auto; }
  .sc-row[data-open="true"] { background: var(--brand-50); }
  .sc-detail td { padding: 0 12px 12px; border-bottom: 1px solid var(--paper-sunk); }
  .sc-cite { margin-left: 0; }
}
