:root {
  --ink: #17231d;
  --muted: #647269;
  --paper: #f5f4ef;
  --white: #fffefa;
  --green: #174b37;
  --green-dark: #0e3427;
  --lime: #bfdb86;
  --line: #d9ddd4;
  --amber: #bf6b2c;
  --blue: #3567a5;
  --teal: #087c73;
  --purple: #705aa7;
  --rose: #a14265;
  --red: #b33f47;
  --shadow: 0 22px 60px rgba(18, 43, 32, .10);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; }
a { color: var(--green); text-underline-offset: 3px; }
button, input { font: inherit; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 20; padding: 10px 14px; background: var(--white); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.site-header { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px clamp(20px, 5vw, 72px); background: rgba(255, 254, 250, .92); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: var(--white); background: var(--green); font-weight: 800; letter-spacing: -.04em; }
.brand span:last-child { display: grid; }
.brand strong { letter-spacing: -.02em; }
.brand small { color: var(--muted); font-size: .75rem; }
.site-header nav { display: flex; gap: 22px; }
.site-header nav a { color: var(--ink); text-decoration: none; font-weight: 650; }
.site-header nav a:hover, .site-header nav a.active { color: var(--green); }
.hero { padding: clamp(64px, 9vw, 120px) clamp(20px, 6vw, 88px); }
.home-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(330px, .8fr); align-items: center; gap: clamp(40px, 8vw, 112px); background: radial-gradient(circle at 80% 10%, rgba(191, 219, 134, .23), transparent 30%), linear-gradient(145deg, #f8f7f1, #eef0e9); }
.hero h1, .article-hero h1, .parcel-hero h1, .results-heading h1 { margin: 8px 0 20px; max-width: 850px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.6rem, 6vw, 5.8rem); font-weight: 500; line-height: .99; letter-spacing: -.05em; }
.lede { max-width: 760px; color: #44544b; font-size: clamp(1.08rem, 2vw, 1.28rem); }
.eyebrow { margin: 0 0 8px; color: var(--green); font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow.light { color: var(--lime); }
.status-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #60a363; box-shadow: 0 0 0 5px rgba(96, 163, 99, .13); }
.search-card { margin-top: 34px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.search-card label { display: block; margin-bottom: 10px; font-weight: 800; }
.search-row { display: flex; gap: 10px; }
.search-row input { min-width: 0; flex: 1; padding: 15px 16px; border: 1px solid #bfc8bf; border-radius: 10px; background: white; color: var(--ink); }
.search-row input:focus { outline: 3px solid rgba(23, 75, 55, .18); border-color: var(--green); }
.search-row button, .button-primary { padding: 14px 20px; border: 0; border-radius: 10px; color: white; background: var(--green); font-weight: 800; cursor: pointer; text-decoration: none; }
.search-row button:hover, .button-primary:hover { background: var(--green-dark); }
.search-card p { margin: 10px 0 0; color: var(--muted); font-size: .83rem; }
.hero-preview { padding: 26px; border-radius: 26px; color: white; background: var(--green-dark); box-shadow: 0 28px 80px rgba(11, 47, 35, .24); transform: rotate(1deg); }
.preview-topline, .preview-value, .mini-grid { display: flex; justify-content: space-between; gap: 16px; }
.preview-topline { color: #d7e5dc; font-size: .78rem; text-transform: uppercase; letter-spacing: .09em; }
.pill { padding: 4px 9px; border-radius: 999px; color: var(--green-dark); background: var(--lime); font-weight: 850; }
.preview-address { margin: 38px 0 2px; font-family: Georgia, serif; font-size: 1.55rem; }
.preview-parcel { margin-top: 0; color: #b8c8bf; }
.preview-value { align-items: end; margin: 30px 0 24px; padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,.18); }
.preview-value span { color: #c7d6ce; }
.preview-value strong { font-size: 2.5rem; }
.mini-grid > div { display: grid; }
.mini-grid span { color: #b8c8bf; font-size: .78rem; }
.mini-grid strong { margin-top: 4px; }
.preview-link { display: block; margin-top: 28px; color: white; font-weight: 750; }
.section-wrap, .record-section { padding: clamp(58px, 7vw, 96px) clamp(20px, 6vw, 88px); }
.compact-heading { max-width: 820px; }
.section-heading h2 { margin: 6px 0 12px; font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 500; letter-spacing: -.035em; }
.section-heading > p:last-child { color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.feature-grid article { padding: 28px; border-top: 3px solid var(--green); background: var(--white); }
.feature-number { color: var(--amber); font-size: .75rem; font-weight: 900; }
.feature-grid h3 { font-size: 1.15rem; }
.feature-grid p { color: var(--muted); }
.boundary-section { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 56px clamp(20px, 6vw, 88px); color: white; background: var(--green); }
.boundary-copy { max-width: 760px; }
.boundary-copy h2 { margin: 8px 0; font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 500; }
.button-secondary { flex: none; padding: 13px 18px; border: 1px solid currentColor; border-radius: 10px; text-decoration: none; font-weight: 800; }
.light-button { color: white; }
.site-footer { display: flex; justify-content: space-between; gap: 40px; padding: 38px clamp(20px, 6vw, 88px); color: #d9e5de; background: #0e261d; }
.site-footer p { max-width: 580px; margin: 6px 0 0; color: #aebdb5; font-size: .86rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: end; gap: 18px; }
.footer-links a { color: white; }
.article-layout, .results-layout, .parcel-layout { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 70px 0 96px; }
.article-hero, .results-heading { margin-bottom: 36px; }
.article-hero h1, .results-heading h1 { font-size: clamp(2.6rem, 5vw, 4.8rem); }
.prose-card, .record-section, .scope-note, .empty-state { padding: clamp(26px, 5vw, 58px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 12px 40px rgba(18, 43, 32, .06); }
.prose-card { max-width: 880px; }
.prose-card h2 { margin-top: 38px; font-family: Georgia, serif; font-size: 1.8rem; font-weight: 500; }
.prose-card h2:first-child { margin-top: 0; }
.compact-search { margin: 0 0 26px; }
.results-list { display: grid; gap: 12px; }
.result-card { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(340px, 1.5fr) auto; align-items: center; gap: 24px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.result-address { margin: 0; font-size: 1.08rem; font-weight: 800; }
.result-unit { margin: 5px 0 0; color: var(--green); font-size: .86rem; font-weight: 700; }
.result-unit strong { font-size: .96rem; }
.result-parcel { margin: 2px 0 0; color: var(--muted); font-size: .86rem; }
.result-card dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; }
.result-card dl div { display: grid; }
.result-card dt { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.result-card dd { margin: 3px 0 0; font-weight: 700; }
.result-card > a { font-weight: 800; white-space: nowrap; }
.search-pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; margin-top: 26px; }
.search-pagination > div:last-child { text-align: right; }
.page-direction, .page-number { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 10px; background: var(--white); font-weight: 800; text-decoration: none; }
.page-direction { padding: 0 15px; }
.page-number { min-width: 42px; padding: 0 9px; }
.page-direction:hover, .page-number:hover { border-color: var(--green); background: #f1f7f3; }
.page-numbers { display: flex; align-items: center; justify-content: center; gap: 7px; }
.page-current { border-color: var(--green); color: white; background: var(--green); }
.page-disabled { color: #98a29c; background: #f4f5f1; cursor: default; }
.page-gap { padding: 0 2px; color: var(--muted); }
.parcel-layout { width: min(1280px, calc(100% - 40px)); padding-top: 42px; }
.parcel-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 36px; margin-bottom: 18px; }
.parcel-hero h1 { margin: 4px 0 5px; font-size: clamp(2.2rem, 4vw, 3.8rem); }
.parcel-subtitle { margin: 0; color: var(--muted); font-size: 1rem; }
.value-panel { min-width: 300px; padding: 18px 20px; border-radius: 15px; color: white; background: linear-gradient(145deg, #1b5a42, var(--green-dark)); box-shadow: 0 12px 34px rgba(14,52,39,.14); }
.value-panel > span { color: #c6d7ce; font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; }
.value-panel > strong { display: block; margin: 3px 0 9px; font-family: Georgia, serif; font-size: 2.15rem; font-weight: 500; }
.value-panel > div { display: flex; flex-wrap: wrap; gap: 8px 18px; color: #d8e5de; font-size: .82rem; }
.property-at-glance, .property-more, .record-help { border: 1px solid var(--line); border-radius: 15px; background: var(--white); box-shadow: 0 8px 28px rgba(18,43,32,.045); }
.property-at-glance { padding: 18px 20px 20px; }
.summary-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 13px; }
.summary-heading h2 { margin: 0; font-family: Georgia, serif; font-size: 1.35rem; font-weight: 500; }
.summary-heading > span { color: var(--muted); font-size: .76rem; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.summary-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px 18px; margin: 0; }
.summary-grid > div { min-width: 0; padding-top: 10px; border-top: 1px solid #e5e8e2; }
.summary-grid > .summary-wide { grid-column: span 2; }
.summary-grid dt, .detail-facts dt { color: var(--muted); font-size: .66rem; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; }
.summary-grid dd, .detail-facts dd { margin: 3px 0 0; overflow-wrap: anywhere; font-weight: 720; line-height: 1.35; }
.property-more { margin-top: 10px; overflow: hidden; }
.property-more > summary, .record-help > summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 19px; cursor: pointer; font-weight: 800; }
.property-more > summary:hover, .record-help > summary:hover { background: #f7f8f4; }
.property-more > summary small { color: var(--muted); font-weight: 500; }
.property-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; padding: 6px 20px 22px; border-top: 1px solid var(--line); }
.property-detail-grid > section { min-width: 0; padding-top: 16px; }
.property-detail-grid h3 { margin: 0 0 12px; font-size: .98rem; }
.property-detail-full { grid-column: 1 / -1; }
.detail-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 16px; margin: 0; }
.detail-facts > div { min-width: 0; padding: 9px 10px; border-radius: 8px; background: #f5f6f2; }
.source-note { margin: 12px 0 0; color: var(--muted); font-size: .78rem; }
.address-list { display: grid; gap: 8px; padding: 0; list-style: none; }
.address-list li { display: flex; justify-content: space-between; gap: 20px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; }
.address-list span { color: var(--muted); font-size: .84rem; }
.account-list { display: grid; gap: 10px; }
.account-card { padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: #fafaf7; }
.account-card h4 { margin: 0 0 10px; }
.account-card p { margin-bottom: 0; overflow-wrap: anywhere; }
.legal-description { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; line-height: 1.75; overflow-wrap: anywhere; }
.record-help { margin-top: 20px; }
.record-help > p { margin: 0; padding: 0 20px 18px; color: var(--muted); font-size: .84rem; }
.source-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.source-card { padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.source-card h2 { margin: 0; overflow-wrap: anywhere; font-size: 1.03rem; }
.source-purpose { min-height: 3.1em; margin: 8px 0 0; color: var(--muted); font-size: .86rem; }
.source-count { margin: 18px 0; color: var(--muted); font-size: .82rem; }
.source-count strong { display: block; color: var(--ink); font-family: Georgia, serif; font-size: 1.65rem; font-weight: 500; }
.source-card dl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 20px 0; }
.source-card dl div { display: grid; }
.source-card dt { color: var(--muted); font-size: .67rem; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.source-card dd { margin: 3px 0 0; font-weight: 800; }
.source-card > a { font-weight: 750; }
.complete-badge { color: var(--green); font-size: .78rem; font-weight: 850; }
.history-section { margin-top: 38px; }
.history-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 16px; }
.history-heading h2 { margin: 2px 0 0; font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 500; letter-spacing: -.035em; }
.history-heading > p { margin: 0 0 7px; color: var(--muted); font-size: .86rem; }
.timeline-tools { padding: 14px 16px 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,254,250,.96); box-shadow: 0 8px 28px rgba(18,43,32,.055); }
.timeline-tool-row { display: flex; align-items: end; justify-content: space-between; gap: 22px; }
.timeline-filter-set { min-width: 0; }
.tool-label { display: block; margin-bottom: 7px; color: var(--muted); font-size: .68rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-chip { --chip-color: var(--green); display: inline-flex; align-items: center; gap: 6px; min-height: 31px; padding: 5px 9px; border: 1px solid #d4dad3; border-radius: 999px; color: #536159; background: white; cursor: pointer; font-size: .75rem; font-weight: 750; }
.filter-chip:hover { border-color: var(--chip-color); }
.filter-chip.is-active { color: var(--ink); border-color: color-mix(in srgb, var(--chip-color), white 35%); background: color-mix(in srgb, var(--chip-color), white 90%); }
.filter-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--chip-color); }
.filter-count { min-width: 18px; padding: 1px 5px; border-radius: 999px; color: var(--muted); background: rgba(255,255,255,.72); font-size: .66rem; text-align: center; }
.filter-all { --chip-color: var(--ink); }
.filter-values { --chip-color: var(--blue); }
.filter-taxes { --chip-color: var(--teal); }
.filter-changes { --chip-color: var(--purple); }
.filter-property { --chip-color: #327a52; }
.filter-permits { --chip-color: #c55d2d; }
.filter-sales { --chip-color: var(--rose); }
.filter-reviews { --chip-color: var(--red); }
.filter-notes { --chip-color: #a66a12; }
.year-select { flex: none; width: 180px; }
.year-select select { width: 100%; padding: 8px 30px 8px 10px; border: 1px solid #cbd3cb; border-radius: 8px; color: var(--ink); background: white; font: inherit; font-size: .78rem; }
.timeline-tool-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 10px; padding-top: 9px; border-top: 1px solid #e5e8e2; }
.timeline-status { margin: 0; color: var(--muted); font-size: .74rem; }
.decade-jump { display: flex; flex-wrap: wrap; gap: 8px; font-size: .72rem; }
.decade-jump span { color: var(--muted); }
.decade-jump a { font-weight: 800; text-decoration: none; }
.timeline-shell { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 18px; }
.year-rail { position: sticky; top: 16px; max-height: calc(100vh - 32px); padding: 12px 9px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); overflow: auto; }
.year-rail > strong { display: block; padding: 0 7px 7px; color: var(--muted); font-size: .68rem; letter-spacing: .07em; text-transform: uppercase; }
.year-rail ol { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.year-rail a { display: flex; justify-content: space-between; gap: 8px; padding: 5px 7px; border-radius: 7px; color: var(--ink); text-decoration: none; font-size: .75rem; font-weight: 750; }
.year-rail a:hover { color: var(--green); background: #f0f4ef; }
.year-rail small { color: var(--muted); font-size: .66rem; }
.timeline-stream { min-width: 0; }
.timeline-year-group { scroll-margin-top: 12px; }
.timeline-year-group + .timeline-year-group { margin-top: 22px; }
.timeline-year { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 8px; padding: 0 2px 6px; border-bottom: 1px solid #cbd2ca; }
.timeline-year h3 { margin: 0; font-family: Georgia, serif; font-size: 1.45rem; font-weight: 500; }
.timeline-year span { color: var(--muted); font-size: .7rem; font-weight: 750; }
.timeline-items { position: relative; display: grid; gap: 8px; padding-left: 22px; }
.timeline-items::before { content: ""; position: absolute; top: 18px; bottom: 14px; left: 5px; width: 2px; background: #d4d9d3; }
.current-records { margin-top: 18px; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: rgba(245,247,242,.72); }
.current-records .timeline-year { margin-bottom: 10px; }
.current-records .timeline-year > div { display: grid; gap: 1px; }
.current-records .timeline-year .eyebrow { margin: 0; color: var(--green); font-family: inherit; font-size: .62rem; font-weight: 900; letter-spacing: .085em; text-transform: uppercase; }
.current-records .timeline-items { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-left: 0; }
.current-records .timeline-items::before, .current-records .timeline-marker { display: none; }
.current-records .timeline-card { box-shadow: none; }
.timeline-card { --event-color: var(--green); --event-tint: #f2f7f4; position: relative; padding: 13px 15px 11px; border: 1px solid #d9ddd7; border-left: 4px solid var(--event-color); border-radius: 11px; background: linear-gradient(100deg, var(--event-tint), var(--white) 44%); box-shadow: 0 3px 12px rgba(18,43,32,.035); }
.timeline-card[hidden] { display: none; }
.timeline-marker { position: absolute; top: 18px; left: -25px; width: 10px; height: 10px; border: 2px solid var(--paper); border-radius: 50%; background: var(--event-color); box-shadow: 0 0 0 1px #bbc3bb; }
.timeline-values { --event-color: var(--blue); --event-tint: #f1f5fb; }
.timeline-taxes { --event-color: var(--teal); --event-tint: #eef8f6; }
.timeline-changes { --event-color: var(--purple); --event-tint: #f5f2fa; }
.timeline-property { --event-color: #327a52; --event-tint: #f0f7f2; }
.timeline-permits { --event-color: #c55d2d; --event-tint: #fcf3ee; }
.timeline-sales { --event-color: var(--rose); --event-tint: #faf1f5; }
.timeline-reviews { --event-color: var(--red); --event-tint: #fbf1f2; }
.timeline-notes { --event-color: #a66a12; --event-tint: #fcf7eb; }
.event-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.event-title { min-width: 0; }
.event-heading h4 { margin: 2px 0 0; font-size: .98rem; font-weight: 760; line-height: 1.28; letter-spacing: -.01em; overflow-wrap: anywhere; }
.event-kind { color: var(--event-color); font-size: .61rem; font-weight: 900; letter-spacing: .085em; text-transform: uppercase; }
.event-date { flex: none; max-width: 190px; color: #526158; text-align: right; }
.event-date time { font-size: .76rem; font-weight: 760; }
.event-highlights { display: flex; flex-wrap: wrap; gap: 8px 0; margin: 10px 0 0; }
.event-highlights > div { min-width: 135px; padding: 0 14px; border-left: 1px solid #d8ddd7; }
.event-highlights > div:first-child { padding-left: 0; border-left: 0; }
.event-highlights dt, .event-fields dt { color: var(--muted); font-size: .6rem; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
.event-highlights dd, .event-fields dd { margin: 1px 0 0; overflow-wrap: anywhere; font-size: .82rem; font-weight: 700; }
.event-summary { margin: 9px 0 0; color: #4a574f; font-size: .78rem; overflow-wrap: anywhere; }
.event-note { margin: 9px 0 0; padding: 9px 11px; border-left: 2px solid var(--event-color); color: #384a40; background: rgba(255,255,255,.58); font-size: .79rem; white-space: normal; overflow-wrap: anywhere; }
.linked-details { margin-top: 11px; padding: 11px 12px; border-radius: 8px; background: #eff4ef; }
.linked-details h4 { margin: 0 0 5px; font-size: .82rem; }
.linked-details ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.linked-details li { display: flex; justify-content: space-between; gap: 20px; padding: 6px 0; border-top: 1px solid #d2ddd4; font-size: .78rem; }
.linked-details li:first-child { border-top: 0; }
.linked-details li span { text-align: right; overflow-wrap: anywhere; }
.event-details { margin-top: 8px; border-top: 1px solid rgba(128,143,134,.25); }
.event-details summary { width: max-content; max-width: 100%; padding-top: 7px; color: var(--event-color); cursor: pointer; font-size: .72rem; font-weight: 800; }
.event-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 26px; margin: 14px 0 0; }
.event-fields > div { min-width: 0; padding: 9px 0; border-bottom: 1px solid #dde2dc; background: transparent; }
.record-provenance { margin: 13px 0 0; color: var(--muted); font-size: .75rem; }
.empty-detail { color: var(--muted); }
.timeline-empty { padding: 30px; border: 1px dashed #b9c3ba; border-radius: 12px; color: var(--muted); text-align: center; }
.raw-record-section { padding-left: clamp(20px, 4vw, 48px); padding-right: clamp(20px, 4vw, 48px); }
.raw-datasets { display: grid; gap: 10px; margin-top: 30px; }
.raw-dataset { border: 1px solid var(--line); border-radius: 12px; background: white; overflow: hidden; }
.raw-dataset summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px; cursor: pointer; list-style-position: inside; }
.raw-dataset summary:hover { background: #f5f7f2; }
.raw-dataset summary > span:first-child { display: inline-grid; margin-left: 5px; }
.raw-dataset summary strong { overflow-wrap: anywhere; }
.raw-dataset summary small { color: var(--muted); }
.relation-pill { flex: none; padding: 4px 8px; border-radius: 999px; color: #704018; background: #f7e5cf; font-size: .69rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.direct-pill { color: var(--green); background: #e3efe8; }
.raw-table-wrap { max-height: 70vh; overflow: auto; border-top: 1px solid var(--line); }
.raw-table-wrap table { width: max-content; min-width: 100%; border-collapse: collapse; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .76rem; }
.raw-table-wrap caption { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.raw-table-wrap th, .raw-table-wrap td { max-width: 420px; padding: 8px 10px; border-right: 1px solid #e5e8e2; border-bottom: 1px solid #e5e8e2; text-align: left; vertical-align: top; white-space: pre-wrap; overflow-wrap: anywhere; }
.raw-table-wrap thead th { position: sticky; top: 0; z-index: 2; color: white; background: var(--green-dark); white-space: nowrap; }
.raw-table-wrap tbody th { position: sticky; left: 0; z-index: 1; color: var(--green); background: #f3f6f2; white-space: nowrap; }
.raw-table-wrap tbody tr:nth-child(even) td { background: #fafbf8; }
.parse-warning { margin: 0; padding: 12px 18px; border-top: 1px solid #e2c49b; color: #6f431e; background: #fff4df; font-size: .82rem; }
.malformed-row td, .malformed-row th { background: #fff7e8 !important; }
.row-warning { display: block; margin-top: 4px; color: #9b4d17; font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: .62rem; font-weight: 850; text-transform: uppercase; }
.standalone-table { max-height: 75vh; border: 1px solid var(--line); border-radius: 12px; background: white; }
.pagination { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; margin-top: 18px; font-weight: 750; }
.pagination > *:last-child { text-align: right; }
.error-page { width: min(720px, calc(100% - 40px)); min-height: 100vh; display: grid; align-content: center; justify-items: start; margin: 0 auto; }
.error-brand { margin-bottom: 52px; }
.error-code { margin: 0; color: var(--amber); font-size: .78rem; font-weight: 900; letter-spacing: .14em; }
.error-page h1 { margin: 8px 0 6px; font-family: Georgia, serif; font-size: clamp(2.8rem, 7vw, 5rem); font-weight: 500; letter-spacing: -.04em; }
.error-page p:not(.error-code) { margin-bottom: 26px; color: var(--muted); }

@media (max-width: 900px) {
  .home-hero, .parcel-hero { grid-template-columns: 1fr; }
  .hero-preview { max-width: 620px; transform: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .source-grid { grid-template-columns: 1fr; }
  .source-purpose { min-height: 0; }
  .summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .property-detail-grid { grid-template-columns: 1fr; }
  .property-detail-full { grid-column: auto; }
  .result-card { grid-template-columns: 1fr; }
  .result-card dl { grid-template-columns: repeat(3, 1fr); }
  .value-panel { min-width: 0; }
  .timeline-shell { grid-template-columns: 92px minmax(0, 1fr); gap: 14px; }
  .timeline-tool-row { align-items: stretch; }
}

@media (max-width: 620px) {
  .site-header { align-items: center; flex-wrap: wrap; padding: 12px 16px; }
  .brand small { display: none; }
  .site-header nav { width: 100%; display: flex; justify-content: space-between; gap: 12px; padding-top: 9px; border-top: 1px solid var(--line); font-size: .8rem; }
  .search-row { display: grid; }
  .search-pagination { grid-template-columns: 1fr 1fr; }
  .search-pagination > div:last-child { text-align: right; }
  .page-numbers { grid-column: 1 / -1; grid-row: 2; }
  .mini-grid, .boundary-section, .site-footer { display: grid; }
  .footer-links { justify-content: start; }
  .parcel-layout { width: min(100% - 24px, 1280px); padding-top: 26px; }
  .parcel-hero { gap: 18px; }
  .parcel-hero h1 { font-size: clamp(2rem, 11vw, 3rem); }
  .property-at-glance { padding: 15px; }
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 13px; }
  .summary-grid > .summary-wide { grid-column: span 2; }
  .property-more > summary { align-items: flex-start; }
  .property-more > summary small { max-width: 150px; text-align: right; }
  .property-detail-grid { padding: 3px 14px 18px; }
  .detail-facts, .result-card dl { grid-template-columns: 1fr; }
  .address-list li { display: grid; gap: 4px; }
  .source-card dl { grid-template-columns: repeat(2, 1fr); }
  .history-section { margin-top: 30px; }
  .history-heading { display: grid; gap: 3px; }
  .history-heading > p { margin: 0; }
  .timeline-tools { padding: 12px; }
  .timeline-tool-row { display: grid; gap: 12px; }
  .year-select { width: 100%; }
  .timeline-tool-footer { display: grid; gap: 7px; }
  .decade-jump { gap: 7px 12px; }
  .timeline-shell { display: block; }
  .year-rail { display: none; }
  .timeline-year-group { scroll-margin-top: 8px; }
  .current-records { padding: 12px; }
  .current-records .timeline-items { grid-template-columns: 1fr; }
  .timeline-items { padding-left: 18px; }
  .timeline-items::before { left: 3px; }
  .timeline-marker { left: -20px; }
  .event-heading { display: grid; gap: 12px; }
  .event-date { max-width: none; text-align: left; }
  .event-highlights > div { width: 50%; min-width: 0; padding: 0 10px; }
  .event-highlights > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .event-fields { grid-template-columns: 1fr; }
  .linked-details li { display: grid; gap: 2px; }
  .linked-details li span { text-align: left; }
  .raw-dataset summary { align-items: flex-start; }
  .relation-pill { white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
