/* Property page (property.html). Loads after search.css, which holds the palette and base styles. */
.top-search { flex: 0 1 380px; min-width: 0; }
.top-search input {
  width: 100%; background: rgba(var(--tint), .04); border: 1px solid var(--line-soft); color: var(--text);
  border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 13px; outline: none;
}
.top-search input:focus { border-color: var(--gold); }
.back { white-space: nowrap; }

.page { max-width: 1200px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12.5px; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--gold-lt); }
.crumbs b { color: var(--text); font-weight: 600; }

.pill {
  font-size: 12.5px; font-weight: 600; color: var(--text); text-decoration: none; background: var(--topbar);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px;
}
.pill:hover { border-color: var(--gold); }

.layout { margin-top: 22px; }
.main-col { display: flex; flex-direction: column; gap: 22px; min-width: 0; }

.head h1 { margin: 6px 0 2px; font-size: 22px; line-height: 1.3; }
.head .chips { margin-bottom: 10px; }
.headline { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.headline b { font-size: 34px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.headline span { color: var(--muted); font-size: 12.5px; }

.panel { border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: var(--panel); }
.panel h3 { margin: 0 0 8px; font-size: 15px; color: var(--gold-lt); }
.eyebrow { text-transform: uppercase; letter-spacing: .6px; font-size: 12px !important; color: var(--muted) !important; }
.summary { margin: 0 0 16px; line-height: 1.65; }
/* Overdue-tax flag freshness (js/tax-freshness.js) */
.tax-fresh { margin: -6px 0 16px; padding: 8px 12px; border-left: 3px solid var(--line); background: var(--tint); line-height: 1.5; font-size: 14px; }
.tax-fresh.tax-confirmed { border-left-color: var(--green-lt); }
.tax-fresh.tax-stale, .tax-fresh.tax-unconfirmed { border-left-color: var(--amber); }
.tax-fresh.tax-likely_paid { border-left-color: var(--muted); color: var(--muted); }
.placeholder p { margin: 0 0 8px; color: var(--muted); }

.block { scroll-margin-top: 80px; }
.block h2, .block-head h2 { margin: 0 0 12px; font-size: 19px; }
.block-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.block-head h2 { margin: 0; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 18px; margin: 0; }
.facts.one { grid-template-columns: 1fr; gap: 10px; margin-top: 12px; }
.facts dt { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.facts.one dt { text-transform: none; letter-spacing: 0; }
.facts dd { margin: 3px 0 0; overflow-wrap: anywhere; font-weight: 600; }
.facts.one dd { font-weight: 400; }
.signals { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.fine { color: var(--muted-2); font-size: 11.5px; margin: 10px 0 0; }
.ext { font-size: 13px !important; }

.history { width: 100%; border-collapse: collapse; }
.history th { text-align: left; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; padding: 0 0 8px; border-bottom: 1px solid var(--line-soft); }
.history td { padding: 10px 0 0; }
.history .num { text-align: right; font-variant-numeric: tabular-nums; }

/* Underwriting */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.tile { border: 1px solid var(--line-soft); border-radius: 12px; padding: 14px 16px; background: rgba(var(--tint), .03); }
.tile span { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.tile b { display: block; margin-top: 6px; font-size: 20px; font-variant-numeric: tabular-nums; }
.tile.hl { border-color: rgba(205,168,94,.5); background: rgba(205,168,94,.09); }
.tile.hl b { color: var(--gold-lt); }
.tile.neg b { color: var(--red); }
.calc .sub { margin: 0 0 14px; }
.calc form { display: flex; flex-direction: column; gap: 12px; }
.calc .grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 14px; }
.calc .grid.three { grid-template-columns: repeat(3, 1fr); }
.calc .mode { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 14px; }
.calc .mode[hidden] { display: none; }
.calc label { display: flex; flex-direction: column; gap: 5px; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.calc input, .calc select {
  width: 100%; min-width: 0; background: rgba(var(--tint), .04); border: 1px solid var(--line-soft); color: var(--text);
  border-radius: 8px; padding: 9px 10px; font: inherit; font-weight: 400; font-size: 13px;
}
.calc input:focus, .calc select:focus { border-color: var(--gold); outline: none; }
.verdict { font-size: 12px; font-weight: 600; border-radius: 999px; padding: 4px 12px; border: 1px solid currentColor; }
.verdict.good { color: var(--green-lt); }
.verdict.warn { color: var(--amber); }
.verdict.bad { color: var(--red); }
.verdict.muted { color: var(--muted); }

/* Side card */
.side-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.side-value { display: block; font-size: 28px; line-height: 1.1; font-variant-numeric: tabular-nums; margin-top: 4px; }
.side-metrics { color: var(--green-lt); font-size: 13px; margin-top: 6px; }

/* Action buttons under the address (the old value / owner band was removed 2026-11-24) */
.page-actions { display: flex; flex-direction: column; gap: 10px; }
.pa-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.pa-buttons { align-items: center; }
.pa-buttons .btn { min-height: 40px; display: inline-flex; align-items: center; margin: 0; }
.pa-lead { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-start; }
.pa-lead .xl-box { margin-top: 0; }
.record .facts dd .sub { font-weight: 400; }

/* Band between the address and the Summary: value, 2 x 2 buttons, owner (no longer used on the main site) */
.band {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: 22px; align-items: start;
  border: 1px solid var(--line); border-radius: 16px; padding: 20px; background: var(--panel-solid);
}
.band-value .fine { margin-top: 12px; }
.band-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-self: stretch; align-content: center; }
.band-actions .btn { display: flex; align-items: center; justify-content: center; min-height: 46px; white-space: normal; line-height: 1.25; }
.btn.disabled { opacity: .45; cursor: default; }
.band-owner { border-left: 1px solid var(--line-soft); padding-left: 22px; }
.band-owner .owner-name { margin-top: 6px; font-size: 16px; overflow-wrap: anywhere; }
.band-owner .facts.one { margin-top: 10px; gap: 8px; }

/* Property record: Dennis's sheet columns */
.record { display: flex; flex-direction: column; gap: 18px; }
.record-group + .record-group { border-top: 1px solid var(--line-soft); padding-top: 16px; }
.record-group h3 { margin: 0 0 12px; }
.record .facts dd { font-weight: 600; }
.record .nodata dt { opacity: .7; }

/* Record sources: one line per record, each linking to its county page */
.record .facts .wide { grid-column: 1 / -1; }
.sources { list-style: none; margin: 6px 0 0; padding: 0; border-top: 1px solid var(--line-soft); }
.sources li { display: grid; grid-template-columns: minmax(180px, 2fr) 3fr; gap: 6px 18px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.record .sources .src-what { font-weight: 600; }
.src-detail { display: block; font-weight: 400; font-size: 12px; color: var(--muted); margin-top: 2px; }
.src-link { font-weight: 400; }
.src-how { display: inline-block; margin-left: 6px; font-size: 11px; padding: 1px 7px; border-radius: 999px; background: var(--tint); color: var(--muted); white-space: nowrap; }
.src-how.how-record, .src-how.how-office, .src-how.how-case, .src-how.how-list, .src-how.how-file { color: var(--green-lt); }
.src-how.how-web, .src-how.how-data { color: var(--amber); }
.src-note { font-size: 12px; color: var(--muted); margin-top: 3px; }
@media (max-width: 700px) { .sources li { grid-template-columns: 1fr; } }

@media (max-width: 1000px) {
  .band { grid-template-columns: 1fr 1fr; }
  .band-owner { grid-column: 1 / -1; border-left: none; padding-left: 0; border-top: 1px solid var(--line-soft); padding-top: 16px; }
}
@media (max-width: 760px) {
  .top-search { display: none; }
  #share { display: none; }
  .headline b { font-size: 28px; }
  .band { grid-template-columns: 1fr; padding: 16px; }
  .facts, .tiles, .calc .grid, .calc .grid.three, .calc .mode { grid-template-columns: repeat(2, 1fr); }
  .calc .grid, .calc .grid.three, .calc .mode { grid-template-columns: 1fr; }
}

/* Documents and notes */
.docs { display: flex; flex-direction: column; gap: 18px; }
.doc-row { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.doc-row > div:first-child { flex: 1 1 280px; }
.doc-row .sub { margin: 0; }
.doc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.doc-part { border-top: 1px solid var(--line-soft); padding-top: 14px; }
.items { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.items li { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: rgba(var(--tint), .03); }
.items li.muted { background: none; padding: 0; }
.items li > div { min-width: 0; overflow-wrap: anywhere; }
.note-body { white-space: pre-wrap; }
.remove { font-size: 12px; flex-shrink: 0; }
.remove:hover { color: var(--red); }
.item-form { display: flex; gap: 8px; flex-wrap: wrap; }
.item-form input, .item-form textarea {
  flex: 1 1 200px; min-width: 0; background: rgba(var(--tint), .04); border: 1px solid var(--line-soft); color: var(--text);
  border-radius: 8px; padding: 9px 10px; font: inherit; font-size: 13px;
}
.item-form textarea { flex-basis: 100%; resize: vertical; }
.item-form input:focus, .item-form textarea:focus { border-color: var(--gold); outline: none; }
.item-form.note .btn { margin-left: auto; }
#items-status { margin: 0; }
#items-status.bad { color: var(--red); }

/* Download PDF: the browser prints the page as a plain sheet. */
@media print {
  @page { margin: 14mm; }
  :root { --text: #111; --muted: #555; --muted-2: #666; --gold-lt: #111; --line: #ccc; --line-soft: #ddd; --panel: #fff; --panel-solid: #fff; }
  html, body { background: #fff !important; color: #111; font-size: 11.5px; }
  .top, .crumbs, .no-print, #go-underwrite, .band-actions,
  .calc, .verdict.muted { display: none !important; }
  .page { padding: 0; max-width: none; }
  .layout { margin: 0; }
  .band { grid-template-columns: 1fr 1fr; }
  .band, .panel, .tile { border: 1px solid #ccc; box-shadow: none; background: #fff !important; break-inside: avoid; }
  .tile.hl b, .side-metrics, .oos { color: #111 !important; }
  .main-col { gap: 14px; }
  .block { break-inside: avoid-page; }
  a { color: #111 !important; text-decoration: none; }
  .print-url { display: block !important; }
  .chip, .signal, .likely { border: 1px solid #999; background: #fff !important; color: #111 !important; }
}
.print-url { display: none; }


/* Parcel number under the county value, with a Copy button (js/property.js parcelLineHtml). */
.head-parcel { color: var(--muted); font-size: 13px; }
.head-parcel .apn { color: var(--text); font-weight: 600; letter-spacing: .02em; font-size: 15px; }
.parcel-line .apn { color: var(--text); font-weight: 600; letter-spacing: .02em; }
.link-btn { background: none; border: 0; padding: 0 0 0 6px; color: var(--gold); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; }
.link-btn:hover { color: var(--text); }

/* ---- Family, heirs and who must sign (js/heirs.js) ---- */
.hr-status, .hr-map { margin: 0 0 14px; }
.hr-map { border-top: 1px solid var(--line-soft); padding-top: 14px; }
.hr-check { margin: 6px 0 10px; }
.hr-flag { display: inline-block; font-weight: 600; font-size: 12.5px; padding: 1px 8px; border-radius: 999px; }
.hr-found { background: color-mix(in srgb, #c0392b 16%, transparent); color: #c0392b; }
.hr-maybe { background: color-mix(in srgb, #d68910 18%, transparent); color: #b9770e; }
.hr-none { background: color-mix(in srgb, currentColor 10%, transparent); opacity: .85; }
.hr-callout { margin-top: 8px; padding: 9px 12px; border-radius: 10px; font-size: 13.5px; line-height: 1.45; border-left: 4px solid var(--amber); background: color-mix(in srgb, #d68910 12%, transparent); }
.hr-callout.alive { border-left-color: var(--green-lt); background: color-mix(in srgb, #27ae60 12%, transparent); }
.hr-callout.dead { border-left-color: #c0392b; background: color-mix(in srgb, #c0392b 10%, transparent); }
.hr-rels { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hr-rel { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 10px 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(var(--tint), .03); }
.hr-rel.status-confirmed { border-color: var(--green-lt); }
.hr-rel.status-not_related { opacity: .55; }
.hr-rel.must-sign { border-color: var(--gold); }
.hr-rel-name { font-size: 15px; display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.hr-tag { font-size: 11px; border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; color: var(--muted); }
.hr-tag.sign { color: var(--gold); border-color: var(--gold); font-weight: 600; }
.hr-tag.dead { color: #c0392b; border-color: #c0392b; }
.hr-tag.st-confirmed { color: var(--green-lt); border-color: var(--green-lt); }
.hr-tag.st-not_related { color: var(--red); border-color: var(--red); }
.hr-contact { margin-top: 6px; font-size: 14px; line-height: 1.5; }
.hr-rel-edit { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.hr-rel-edit label { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.hr-rel-edit select, .hr-note { font: inherit; font-size: 13px; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; min-width: 0; }
.hr-note { width: 100%; }
.hr-check-label input { accent-color: var(--gold); width: 16px; height: 16px; }
.hr-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.fine.good { color: var(--green-lt); }
.fine.bad { color: var(--red); }
@media (max-width: 720px) { .hr-rel { grid-template-columns: 1fr; } }
@media print { .hr-rel-edit { display: none; } }

/* Estimated equity (js/property.js loadEquity) */
.eq-verdict { margin: 0 0 12px; }
.eq-tag { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; border: 1px solid var(--line); }
.eq-ok { color: var(--green); border-color: var(--green); }
.eq-low { color: var(--red); border-color: var(--red); }
.eq-check { color: var(--gold-lt); border-color: var(--gold-lt); }
.eq-unknown { color: var(--muted-2); }
#equity-panel b.bad { color: var(--red); }
