:root {
  --ink: #17261f;
  --muted: #617168;
  --paper: #f5f4ef;
  --surface: #ffffff;
  --line: #dfe4df;
  --forest: #174c3c;
  --forest-2: #246b56;
  --lime: #cde86a;
  --amber: #a66216;
  --red: #a53c34;
  --shadow: 0 16px 42px rgba(20, 49, 39, .08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at top right, #e9efd9 0, transparent 25rem), var(--paper); color: var(--ink); line-height: 1.5; }
a { color: var(--forest-2); text-underline-offset: .18em; }
a:hover { color: var(--forest); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.skip-link { position: fixed; top: -5rem; left: 1rem; z-index: 100; background: var(--ink); color: white; padding: .7rem 1rem; border-radius: .5rem; }
.skip-link:focus { top: 1rem; }
.site-header { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: .8rem max(1rem, calc((100vw - 1240px) / 2)); background: rgba(245, 244, 239, .94); border-bottom: 1px solid rgba(23, 76, 60, .12); backdrop-filter: blur(16px); }
.brand a { display: flex; align-items: center; gap: .65rem; color: var(--ink); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: .8rem; background: var(--forest); color: var(--lime); font-size: .72rem; font-weight: 900; letter-spacing: .08em; }
.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); font-size: .72rem; }
nav { display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; }
.site-header nav a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: .9rem; padding: .55rem .72rem; border-radius: 999px; }
.site-header nav a[aria-current="page"] { color: white; background: var(--forest); }
.page-shell { width: min(1240px, calc(100% - 2rem)); margin: 0 auto; padding: 2.5rem 0 5rem; }
.hero { display: flex; align-items: end; justify-content: space-between; gap: 2rem; padding: 2.4rem; border-radius: 1.6rem; background: linear-gradient(135deg, var(--forest), #0d3027); color: white; box-shadow: var(--shadow); }
.hero.compact { min-height: 13rem; }
.hero h1, .property-hero h1 { margin: .2rem 0 .55rem; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.02; letter-spacing: -.04em; }
.hero p { max-width: 48rem; color: #dce9e2; }
.hero .eyebrow { color: var(--lime); }
.hero-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.eyebrow { margin: 0 0 .25rem; color: var(--forest-2); font-size: .72rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 2.75rem; padding: .65rem 1rem; border: 1px solid transparent; border-radius: .8rem; font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; }
.button-primary { background: var(--lime); color: #18301f; }
.button-secondary { background: var(--forest); color: white; }
.hero .button-secondary { border-color: #8bb5a8; }
.button-quiet { background: var(--surface); border-color: var(--line); color: var(--forest); }
.metric-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; margin: 1rem 0 2.5rem; }
.metric-card { min-height: 9rem; padding: 1.2rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); box-shadow: 0 10px 28px rgba(20, 49, 39, .05); }
.metric-card.accent { border-color: #9fbd41; background: #f1f7da; }
.metric-card span, .metric-card small { display: block; color: var(--muted); }
.metric-card strong { display: block; margin: .45rem 0; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1; }
.metric-card strong.metric-word { font-size: 1.45rem; }
.section-heading, .panel-heading, .result-summary { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.section-heading { margin: 2.8rem 0 1rem; }
.section-heading h2, .panel-heading h2 { margin: 0; font-size: 1.55rem; }
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.property-card, .panel { padding: 1.25rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); box-shadow: 0 8px 24px rgba(20, 49, 39, .04); }
.property-card h3 { margin: 1rem 0 .25rem; }
.property-card p { color: var(--muted); }
.card-top { display: flex; justify-content: space-between; gap: .5rem; }
.compact-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.compact-facts dt { color: var(--muted); font-size: .75rem; }
.compact-facts dd { margin: 0; font-weight: 800; }
.badge { display: inline-flex; align-items: center; width: fit-content; padding: .25rem .55rem; border-radius: 999px; font-size: .7rem; font-weight: 900; letter-spacing: .035em; }
.badge-accent { background: var(--lime); color: #20391c; }
.badge-good { background: #d9eee1; color: #18583c; }
.badge-bad { background: #f7dedb; color: #862d29; }
.badge-neutral { background: #edf0ed; color: #53645b; }
.inline-warning { padding-left: .7rem; border-left: 3px solid var(--amber); color: #6a4314 !important; font-size: .85rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .85rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { color: var(--muted); background: #f7f8f5; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
.property-table td { min-width: 9rem; }
.property-table td:first-child { min-width: 16rem; }
.property-link { display: block; color: var(--ink); font-weight: 850; }
.muted { display: block; color: var(--muted); font-size: .82rem; }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 7rem; padding: 1rem; color: var(--muted); text-align: center; }
.empty-state.wide { grid-column: 1 / -1; border: 1px dashed #b9c2bc; border-radius: 1rem; }
.filter-panel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; margin: 1rem 0; padding: 1.2rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); }
.field { display: flex; flex-direction: column; gap: .25rem; }
.field.wide, .form-actions.wide { grid-column: span 2; }
label { font-size: .78rem; font-weight: 800; color: #435249; }
input, select, textarea { width: 100%; min-height: 2.7rem; padding: .62rem .7rem; border: 1px solid #b9c3bd; border-radius: .65rem; background: white; color: var(--ink); font: inherit; }
textarea { min-height: 5rem; resize: vertical; }
.form-actions { display: flex; align-items: end; gap: .5rem; }
.result-summary { margin: 1.3rem 0 .7rem; color: var(--muted); }
.pagination { justify-content: flex-end; margin-top: 1rem; }
.back-link { display: inline-block; margin-bottom: 1rem; font-weight: 800; }
.property-hero { display: flex; justify-content: space-between; gap: 2rem; padding: 1.8rem 0; }
.property-hero h1 { font-size: clamp(2rem, 5vw, 3.8rem); }
.hero-status { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 21rem; gap: 1rem; align-items: start; }
.detail-main { display: grid; gap: 1rem; }
.detail-aside .sticky { position: sticky; top: 5.2rem; }
.panel h3 { margin-bottom: .5rem; }
.recommendation { margin: .6rem 0; font-size: 2.2rem; font-weight: 900; color: var(--forest); }
.source-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.source-card { padding: .9rem; border: 1px solid var(--line); border-radius: .8rem; }
.source-card div { display: flex; justify-content: space-between; gap: .5rem; }
.source-card small { display: block; margin-top: .7rem; color: var(--muted); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 1.2rem 1.3rem; border-left: 2px solid #cbd4ce; }
.timeline li::before { content: ""; position: absolute; top: .35rem; left: -.38rem; width: .65rem; height: .65rem; border-radius: 50%; background: var(--forest-2); }
.timeline li span { display: block; color: var(--muted); font-size: .75rem; }
.timeline li p { margin: .2rem 0; }
.action-form { display: grid; gap: .55rem; }
.action-form label span { font-weight: 500; }
hr { height: 1px; border: 0; background: var(--line); margin: 1.2rem 0; }
details { margin-top: 1rem; }
summary { color: var(--forest); font-weight: 850; cursor: pointer; }
.two-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.summary-list { margin: 0; }
.summary-list div { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.summary-list div:last-child { border-bottom: 0; }
.summary-list dd { margin: 0; font-weight: 900; }
.notice { margin: 0 0 1rem; padding: .85rem 1rem; border-radius: .75rem; border: 1px solid var(--line); background: var(--surface); }
.notice-success { border-color: #79ac8a; background: #e7f4eb; }
.notice-warning { border-color: #d3a767; background: #fff4df; }
.notice-neutral { background: #f2f4f2; }
.snapshot-note { color: var(--muted); font-size: .8rem; }
.site-footer { display: flex; justify-content: space-between; gap: 1rem; width: min(1240px, calc(100% - 2rem)); margin: 0 auto; padding: 1.5rem 0 3rem; color: var(--muted); border-top: 1px solid var(--line); font-size: .8rem; }
[aria-busy="true"] { opacity: .65; cursor: wait; }
@media (max-width: 1000px) {
  .site-header { align-items: flex-start; flex-direction: column; gap: .6rem; }
  .site-header nav { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: .2rem; }
  .metric-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-panel { grid-template-columns: repeat(2, 1fr); }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-aside .sticky { position: static; }
}
@media (max-width: 680px) {
  .page-shell { width: min(100% - 1rem, 1240px); padding-top: 1rem; }
  .hero, .property-hero { align-items: flex-start; flex-direction: column; padding: 1.4rem; border-radius: 1rem; }
  .property-hero { padding: 1rem 0; }
  .metric-grid, .card-grid, .filter-panel, .two-column, .source-grid { grid-template-columns: 1fr; }
  .field.wide, .form-actions.wide { grid-column: auto; }
  .detail-metrics { grid-template-columns: repeat(2, 1fr); }
  .property-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .property-table, .property-table tbody, .property-table tr, .property-table td { display: block; width: 100%; }
  .property-table tr { padding: .7rem; border-bottom: 1px solid var(--line); }
  .property-table td { display: grid; grid-template-columns: 7rem 1fr; gap: .6rem; min-width: 0 !important; padding: .45rem; border: 0; }
  .property-table td::before { content: attr(data-label); color: var(--muted); font-size: .72rem; font-weight: 900; text-transform: uppercase; }
  .site-footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
