/* src/assets/styles.css */
:root {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.5;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #fff; }
a { color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.wrap { width: min(1120px, calc(100% - 40px)); margin: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 10; background: var(--ink); color: #fff; padding: 10px; text-decoration: none; font-weight: bold; }

/* typography headers */
h1, h2, h3, .brand, .verdict, .price, .boundary { font-family: var(--font-head), system-ui, sans-serif; }
h1 { font-size: clamp(2.5rem, 5.5vw, 4.5rem); max-width: 950px; margin: 0 0 20px; font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.1; margin: 0 0 16px; font-weight: 700; }
h3 { font-size: 1.4rem; line-height: 1.2; margin: 0 0 10px; font-weight: 700; }
.brand { font-weight: 800; font-size: 1.4rem; color: var(--ink); text-decoration: none; text-transform: uppercase; letter-spacing: -0.02em; }

/* Site Header */
.site-header { border-bottom: 3px solid var(--ink); background: #fff; position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 70px; }
.site-header nav { display: flex; gap: 24px; font-size: 0.95rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a[aria-current=page], .site-header nav a:hover { color: var(--ink); }
.preview-banner { text-align: center; padding: 10px; background: #000; color: #fff; font: 700 12px/1.2 ui-monospace, monospace; text-transform: uppercase; letter-spacing: 0.1em; }

/* Hero */
.hero, .record-hero { background: var(--surface); border-bottom: 3px solid var(--ink); }
.hero { padding: 80px 0; }
.record-hero { padding: 60px 0; }
.hero-grid { display: grid; grid-template-columns: 1fr 340px; gap: 60px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.75rem; font-weight: 800; color: var(--ink); border-bottom: 2px solid var(--accent); padding-bottom: 6px; margin-bottom: 16px; display: inline-block; }
.lede { font-size: 1.25rem; color: var(--ink); max-width: 790px; font-weight: 500; }
.actions { display: flex; align-items: center; gap: 24px; margin-top: 32px; flex-wrap: wrap; }
.button { display: inline-block; background: var(--accent); color: #fff; padding: 14px 24px; text-decoration: none; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.9rem; border: 2px solid var(--accent); transition: background 0.2s; }
.button:hover { background: var(--ink); border-color: var(--ink); }
.text-link { text-decoration: none; font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--accent); padding-bottom: 2px; }

/* Cards & Panels */
.hero-card, .panel, .decision-card, .principle { background: #fff; border: 2px solid var(--ink); padding: 24px; }
.hero-card { display: grid; gap: 0; padding: 0; }
.metric { display: flex; flex-direction: column; justify-content: center; border-bottom: 2px solid var(--ink); padding: 20px 24px; }
.metric:last-child { border-bottom: none; }
.metric strong { font-size: 3.5rem; line-height: 1; font-weight: 800; color: var(--ink); }
.metric span { color: var(--muted); text-transform: uppercase; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.05em; margin-top: 4px; }

/* Trust Strip */
.trust-strip { padding: 16px 0; border-bottom: 1px solid var(--ink); background: var(--ink); color: #fff; font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; text-align: center; }

/* Sections */
.section { padding: 80px 0; }
.section.alt { background: #f4f4f4; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.section-tight { padding: 40px 0; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; border-bottom: 2px solid var(--ink); padding-bottom: 16px; }
.search-box { display: grid; gap: 8px; color: var(--ink); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; }
.search-box input { min-width: 300px; padding: 12px 16px; border: 2px solid var(--ink); font: inherit; background: #fff; }
.search-box input:focus { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Record Grid */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.record-card { border: 2px solid var(--ink); padding: 24px; background: #fff; display: flex; flex-direction: column; }
.record-card h3 { margin: 0; }
.record-card h3 a { color: var(--ink); text-decoration: none; }
.record-card h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.record-card p { color: var(--muted); flex-grow: 1; margin: 12px 0 20px; font-size: 0.95rem; }
.status-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.status { display: inline-block; padding: 6px 10px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; background: #eee; color: var(--ink); border: 1px solid var(--ink); }
.status.published { background: #e6f4ea; color: #1e5a2e; border-color: #1e5a2e; }

/* Layouts */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.record-meta { display: flex; gap: 24px; flex-wrap: wrap; color: var(--muted); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; margin-top: 16px; }
.record-meta strong { color: var(--ink); }
.record-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 60px; padding-top: 60px; padding-bottom: 80px; }
.sidebar { display: grid; gap: 24px; align-content: start; }

/* Decisions */
.decision-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 48px; border-top: 3px solid var(--ink); padding-top: 32px; }
.decision-card p { margin: 16px 0 12px; font-weight: 500; font-size: 1.1rem; }
.decision-card small { display: block; font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; border-top: 1px solid #ddd; padding-top: 12px; margin-top: 12px; }
.verdict, .price, .boundary { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 8px; }

/* Verdict colors */
.verdict { padding: 8px 16px; display: inline-block; border: 2px solid var(--ink); }
.verdict-buy, .verdict-city { background: #e3f2e6; color: #1e5a2e; border-color: #1e5a2e; }
.verdict-owner { background: #fdf0e2; color: #8a5a10; border-color: #8a5a10; }
.verdict-negotiate, .verdict-inspect, .verdict-shared { background: #fff4d6; color: #85660e; border-color: #85660e; }
.verdict-walk { background: #fbe5e2; color: #8f1d12; border-color: #8f1d12; }
.verdict-insufficient-data, .verdict-unverified { background: #eee; color: var(--muted); font-size: 1.5rem; }

/* Warnings */
.warning { border: 2px solid var(--ink); border-left: 8px solid var(--accent); margin-bottom: 32px; padding: 24px; background: #fff; }

/* Risks */
.risk-list { display: grid; gap: 16px; margin-top: 24px; }
.risk-list article { border: 2px solid var(--ink); padding: 20px; background: #fff; }
.risk-list article strong { font-size: 1.2rem; font-weight: 700; font-family: var(--font-head), sans-serif; display: inline-block; margin-bottom: 8px; }
.risk-list article p { margin: 0 0 12px; color: var(--ink); }
.risk-list article small { display: block; font-weight: 700; color: var(--accent); font-size: 1.05rem; }
.severity { float: right; background: var(--ink); color: #fff; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; padding: 4px 10px; font-weight: 700; }
.risk-list article:has(.severity-high), .risk-list article.sev-high { border-color: #a32014; }
.risk-list article:has(.severity-high) .severity { background: #a32014; }

/* Facts List */
.facts { display: grid; gap: 0; border: 2px solid var(--ink); background: #fff; margin: 24px 0 0; }
.facts div { display: grid; grid-template-columns: 200px 1fr; border-bottom: 2px solid var(--ink); padding: 16px 20px; }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-weight: 700; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.05em; color: var(--muted); }
.facts dd { margin: 0; color: var(--ink); font-weight: 500; }

/* DataBar */
.databar { display: flex; flex-wrap: wrap; gap: 0; margin-top: 32px; border: 2px solid var(--ink); background: #fff; }
.databar div { padding: 16px 24px; border-right: 2px solid var(--ink); display: flex; flex-direction: column; justify-content: center; flex: 1 1 auto; }
.databar div:last-child { border-right: 0; }
.databar span { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.databar strong { font-size: 1.25rem; font-weight: 800; color: var(--ink); }
.databar .flag { color: #a32014; }

/* Sources & Evidence */
.sources { padding-left: 0; list-style: none; margin-top: 24px; }
.sources li { margin-bottom: 16px; border-bottom: 1px solid #eee; padding-bottom: 16px; }
.sources li::before { content: "■"; color: var(--accent); margin-right: 12px; font-size: 0.8em; }
.sources li a { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--accent); }
.sources span { display: block; color: var(--muted); font-size: 0.85rem; margin-top: 6px; text-transform: uppercase; letter-spacing: 0.05em; }
.empty { color: var(--muted); font-style: italic; background: #f4f4f4; padding: 16px; border: 2px dashed var(--muted); margin-top: 16px; }

.evidence-notes { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; }
.evidence-notes li { border: 2px solid var(--ink); border-left: 8px solid var(--accent); background: #fff; padding: 16px 20px; font-size: 0.95rem; color: var(--ink); overflow-wrap: anywhere; }

/* Recalls */
.recall-callout { border-color: #a32014; background: #fff; border-width: 2px; }
.recall-callout h2 { color: #a32014; }
.recall-callout .severity { background: #a32014; color: #fff; float: none; margin-left: 12px; }
.status.recallpill { background: #a32014; color: #fff; border-color: #a32014; }

/* Hub & Chips */
.hub-strip { display: flex; flex-wrap: wrap; gap: 12px; padding: 12px 0; }
.hub-chip { border: 2px solid var(--ink); padding: 8px 16px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 0.9rem; background: #fff; text-transform: uppercase; letter-spacing: 0.05em; transition: all 0.2s; }
.hub-chip span { color: var(--muted); margin-left: 8px; border-left: 2px solid var(--ink); padding-left: 8px; }
.hub-chip:hover { background: var(--ink); color: #fff; }
.hub-chip:hover span { color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.3); }
.hub-chip.more { background: transparent; border-style: dashed; color: var(--ink); }

.hub-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; padding: 40px 0; }
.hub-index li { border: 2px solid var(--ink); display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; background: #fff; transition: transform 0.2s; }
.hub-index li:hover { transform: translateY(-2px); box-shadow: 4px 4px 0 var(--ink); }
.hub-index a { font-family: var(--font-head), sans-serif; font-weight: 700; font-size: 1.1rem; text-decoration: none; color: var(--ink); }

/* FAQ */
.faq details { border: 2px solid var(--ink); padding: 16px 20px; margin-bottom: 16px; background: #fff; }
.faq summary { font-weight: 700; font-size: 1.1rem; cursor: pointer; font-family: var(--font-head), sans-serif; }
.faq details[open] summary { margin-bottom: 12px; color: var(--accent); }
.faq p { margin: 0; color: var(--ink); line-height: 1.6; }

/* Ads & Misc */
.ad-slot { margin: 32px 0; min-height: 120px; display: flex; align-items: center; justify-content: center; background: #f4f4f4; border: 2px dashed var(--muted); }
.ad-rail { min-height: 280px; margin: 0 0 24px; }
.crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 24px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.crumbs a { color: var(--ink); text-decoration: none; border-bottom: 2px solid transparent; }
.crumbs a:hover { border-color: var(--ink); }
.panel.compact { padding: 20px; font-size: 0.95rem; }

/* Footer */
footer { border-top: 4px solid var(--ink); padding: 60px 0; background: var(--surface); color: var(--ink); }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-grid strong { font-family: var(--font-head), sans-serif; font-size: 1.2rem; display: block; margin-bottom: 8px; }
.footer-grid p { margin: 0; color: var(--muted); max-width: 400px; }
.footer-grid a { color: var(--ink); font-weight: 600; margin-right: 16px; text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; text-decoration-thickness: 2px; }

[hidden] { display: none !important; }

/* Responsive */
@media(max-width: 900px) {
  .hero-grid, .two-col, .record-layout, .decision-grid { grid-template-columns: 1fr; gap: 40px; }
  .sidebar { grid-row: 2; }
  .site-header nav { gap: 16px; font-size: 0.85rem; }
  .facts div { grid-template-columns: 1fr; padding: 12px 16px; gap: 4px; }
}
@media(max-width: 600px) {
  .card-grid { grid-template-columns: 1fr; }
  .header-inner { flex-direction: column; align-items: flex-start; padding: 20px 0; gap: 16px; }
  .site-header nav { flex-wrap: wrap; justify-content: flex-start; width: 100%; }
  .section-heading, .footer-grid { flex-direction: column; align-items: stretch; }
  .search-box input { min-width: 0; width: 100%; }
  .hero { padding: 40px 0; }
  .record-hero { padding: 40px 0; }
  h1 { font-size: 2.2rem; }
  .metric { padding: 16px; }
  .databar div { flex: 1 1 100%; border-right: none; border-bottom: 2px solid var(--ink); }
  .databar div:last-child { border-bottom: none; }
}
