*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}
body{font-family:'Source Sans 3','Source Sans Pro',sans-serif;font-size:13px;line-height:1.45;color:#111;background:#dce0e6;padding:20px 16px;}

/* ── Site header — hidden in browser, visible when printing ───── */
/* When embedded in cobbtax.gov the site already has a header.     */
/* The print header makes the PDF look like an official document.  */
.site-header{display:none;background:#1f376a;padding:10px 20px;align-items:center;gap:14px;max-width:100%;}
.site-seal{flex-shrink:0;width:110px;height:auto;mix-blend-mode:multiply;}
.site-hdr-name{color:#fff;font-size:14px;font-weight:700;letter-spacing:.1px;}
.site-hdr-sub{color:rgba(255,255,255,.65);font-size:10.5px;margin-top:2px;}
.site-not-bill-banner{display:none;background:#c8102e;color:#fff;text-align:center;padding:5px;font-size:10.5px;font-weight:700;letter-spacing:.8px;max-width:100%;}
.banner-sub{display:block;font-size:9.5px;font-weight:400;letter-spacing:0;text-transform:none;margin-top:4px;line-height:1.5;}

/* ── Shared card shell ─────────────────────────────── */
.card{max-width:800px;margin:0 auto;background:#fff;border:1px solid #c8cdd5;box-shadow:0 2px 8px rgba(0,0,0,.08),0 1px 2px rgba(0,0,0,.05);}

/* ── SCREEN 1: Search ──────────────────────────────── */
#search-screen{padding:28px 24px 32px;}
.search-title{font-size:21px;font-weight:700;color:#1f376a;margin-bottom:6px;}
.search-sub{font-size:13.5px;color:#555;margin-bottom:22px;line-height:1.55;}
.search-wrap{position:relative;max-width:640px;margin-bottom:6px;}
.search-row{display:flex;gap:0;align-items:stretch;border:1px solid #bbb;background:#fff;}
.search-row:focus-within{border-color:#1f376a;box-shadow:0 0 0 3px rgba(31,55,106,.18);}
.search-input{flex:1;padding:11px 14px;font-size:14px;font-family:inherit;border:none;outline:none;color:#111;background:transparent;min-width:0;}
.btn-search{padding:10px 18px;background:#1f376a;color:#fff;border:none;font-family:inherit;font-size:13px;font-weight:700;cursor:pointer;transition:background .2s;flex-shrink:0;display:flex;align-items:center;gap:7px;}
.btn-search:hover{background:#0e8cda;}
.btn-search svg{flex-shrink:0;}
.suggest-dropdown{display:none;position:absolute;top:100%;left:0;right:0;background:#fff;border:1px solid #bbb;border-top:none;box-shadow:0 4px 12px rgba(0,0,0,.12);z-index:200;max-height:320px;overflow-y:auto;}
.suggest-item{padding:9px 14px;cursor:pointer;font-size:13px;display:flex;align-items:baseline;gap:8px;border-bottom:1px solid #f0f0f0;}
.suggest-item:last-child{border-bottom:none;}
.suggest-item:hover,.suggest-item.active{background:#e8f0fb;}
.suggest-label{flex:1;color:#111;text-transform:uppercase;}
.suggest-label b{color:#1f376a;font-weight:700;}
.suggest-badge{font-size:10px;color:#888;text-transform:uppercase;letter-spacing:.3px;flex-shrink:0;padding:1px 5px;background:#eef2f8;border-radius:2px;}
.suggest-none{padding:9px 14px;font-size:12px;color:#888;font-style:italic;}
.search-hint{font-size:11.5px;color:#888;font-style:italic;}
.search-error{margin-top:8px;display:none;}
.error-inline{font-size:13px;color:#c8102e;line-height:1.4;}
.error-notice{background:#fff;border:2px solid #c8102e;border-radius:3px;padding:14px 18px;line-height:1.7;font-size:15px;color:#222;font-weight:500;}
.error-notice strong{display:block;font-size:17px;font-weight:700;color:#c8102e;border-bottom:1px solid #c8102e;padding-bottom:10px;margin-bottom:12px;}
.error-notice a{color:#1f376a;font-weight:700;text-decoration:underline;}
.error-notice a[href^="tel:"]{color:inherit;text-decoration:none;cursor:default;pointer-events:none;font-weight:500;}
#results-list{display:none;margin-top:14px;border:1px solid #ccc;}
.results-heading{background:#eef2f8;padding:7px 12px;font-size:11px;font-weight:700;color:#555;text-transform:uppercase;letter-spacing:.4px;border-bottom:1px solid #ccc;}
.result-item{padding:10px 14px;border-bottom:1px solid #eee;cursor:pointer;display:flex;justify-content:space-between;align-items:center;transition:background .15s;}
.result-item:last-child{border-bottom:none;}
.result-item:hover{background:#f0f5fb;}
.result-addr{font-size:13px;font-weight:600;color:#1f376a;text-transform:uppercase;}
.result-owner{font-size:12px;color:#444;margin-top:2px;}
.result-meta{font-size:11px;color:#777;margin-top:2px;}
.result-arrow{color:#1f376a;font-size:16px;flex-shrink:0;margin-left:10px;}
.results-none{padding:14px;font-size:13px;color:#888;font-style:italic;text-align:center;}

/* ── SCREEN 2: Estimate ────────────────────────────── */
#estimate-screen{display:none;}
.est-toolbar{padding:9px 18px;background:#f5f6f8;border-bottom:2px solid #1f376a;display:flex;gap:10px;align-items:center;}
.btn-back{padding:6px 14px;background:#fff;color:#1f376a;border:1px solid #1f376a;font-family:inherit;font-size:12px;font-weight:700;cursor:pointer;transition:all .2s;}
.btn-back:hover{background:#1f376a;color:#fff;}
.btn-pdf{padding:6px 16px;background:#1f376a;color:#fff;border:none;font-family:inherit;font-size:12px;font-weight:700;cursor:pointer;transition:background .2s;display:flex;align-items:center;gap:6px;}
.btn-pdf:hover{background:#0e8cda;}
.btn-pdf img{width:16px;height:16px;vertical-align:middle;}
.doc-body{padding:14px 18px 18px;}

/* ── Info grid ─────────────────────────────────────── */
/* Row 1: Parcel ID(13%) | Address(flex=35%) | Prop Class(14%) | Tax District(22%) | Prop Type(16%)
   Row 2: Data Ret(13%) + Tax Yr(8%) + FMV(13%) + 40%Assd(14%) = 48% (Group A)
          Est Taxes(14%) matches Prop Class | Homestead flex(38%) matches Tax Dist+Prop Type
   Owner-strip: Property Owner(48%) | Note(52%)
   Vertical dividers: 48% | 62% | 100% */
.info-row{display:grid;grid-template-columns:13% 35% 14% 22% 16%;border:1px solid #ccc;}
.info-cell{padding:9px 8px;border-right:1px solid #ccc;}
.info-cell:last-child{border-right:none;}
.info-row .info-cell,.prop-strip .info-cell{text-align:center;}
.prop-strip{display:flex;border:1px solid #ccc;border-top:none;}
.prop-strip .info-cell{flex:1;border-right:1px solid #ccc;border-bottom:none;}
.prop-strip .info-cell:last-child{border-right:none;}
.prop-strip .info-cell:nth-child(1){flex:0 0 13%;}
.prop-strip .info-cell:nth-child(2){flex:0 0 8%;}
.prop-strip .info-cell:nth-child(3){flex:0 0 14%;}
.prop-strip .info-cell:nth-child(4){flex:0 0 13%;}
.prop-strip .info-cell:nth-child(5){flex:0 0 14%;}
.prop-strip .info-cell:nth-child(6){flex:1;}
/* Property Type cell: min-width:0 lets the 16% grid track constrain it; word-break wraps the text */
.info-row .info-cell:nth-child(5){min-width:0;}
.info-row .info-cell:nth-child(5) .val{word-break:break-word;overflow-wrap:anywhere;}
/* No wrap on short-value cells; col 5 (Property Type) and homestead (col 6) and address are allowed to wrap */
.info-row .info-cell:nth-child(1) .val,
.info-row .info-cell:nth-child(3) .val,
.info-row .info-cell:nth-child(4) .val,
.prop-strip .info-cell:nth-child(1) .val,
.prop-strip .info-cell:nth-child(2) .val,
.prop-strip .info-cell:nth-child(3) .val,
.prop-strip .info-cell:nth-child(4) .val,
.prop-strip .info-cell:nth-child(5) .val{white-space:nowrap;}
.owner-strip{display:grid;grid-template-columns:48% 52%;border:1px solid #ccc;border-top:none;margin-bottom:14px;}
.owner-strip .info-cell{border-right:1px solid #ccc;}
.owner-strip .info-cell:last-child{border-right:none;}
.note-strip{background:#eef2f8;}

.lbl{font-size:9px;font-weight:700;color:#888;text-transform:uppercase;letter-spacing:0;margin-bottom:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.lbl sup{font-size:6px;line-height:0;vertical-align:super;}
.val{font-size:12.5px;font-weight:600;color:#111;}
.val a{color:#1f376a;}
.val.light{font-weight:400;color:#333;font-size:12px;}
.val.redacted{font-weight:400;color:#999;font-style:italic;}
.val.hs{color:#3a7545;}
.val.hs.owner-warn{color:#c8102e;}

/* ── Tax table ─────────────────────────────────────── */
.section-head{background:#1f376a;color:#fff;font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;padding:5px 12px;margin-top:2px;}
table.tt{width:100%;border-collapse:collapse;font-size:11px;table-layout:fixed;}
table.tt thead th{background:#2d5490;color:#fff;padding:5px 8px;text-align:right;font-size:10px;font-weight:600;border:1px solid #1f3f78;white-space:nowrap;}
table.tt thead th:first-child{text-align:left;}
table.tt tbody tr:nth-child(odd){background:#f5f5f5;}
table.tt tbody tr:nth-child(even){background:#fff;}
table.tt tbody td,table.tt tbody th{padding:5px 8px;border-top:1px solid #e0e0e0;text-align:right;font-size:11px;}
table.tt tbody th{text-align:left;font-weight:600;color:#1f376a;}
table.tt .group-row td{background:#e4eaf3!important;font-size:9.5px;font-weight:700;color:#444;text-transform:uppercase;letter-spacing:.3px;padding:3px 8px;border-top:1px solid #c8d2e0;border-right:1px solid #c8d2e0;text-align:right;}
table.tt tbody tr td:last-child,table.tt tbody tr th:last-child{border-right:1px solid #e0e0e0;}
table.tt .htrg-row td{background:#f0faf2!important;font-size:10px;color:#3a7545;font-style:italic;padding:3px 8px;border-top:1px solid #c8e6cb;text-align:left;}
.htrg-note{background:#f0faf2;border-left:3px solid #7bc088;padding:8px 14px 9px;margin-top:4px;font-size:11px;color:#3a7545;font-style:italic;line-height:1.5;}
.city-note{background:#fffbe6;border-left:3px solid #e6a800;padding:8px 14px 9px;margin-top:4px;font-size:11px;color:#5c3d00;line-height:1.5;}
.city-note a{color:#e6a800;}
.city-note a[href^="tel:"]{color:inherit;text-decoration:none;cursor:default;pointer-events:none;}
.new-owner-note a[href^="tel:"]{color:inherit;text-decoration:none;cursor:default;pointer-events:none;}
.new-owner-note{background:#fff4f4;border-left:3px solid #c8102e;padding:8px 14px 9px;margin-top:4px;font-size:11px;color:#7a0000;line-height:1.5;}
table.tt .total-row th,table.tt .total-row td{background:#1f376a!important;color:#fff;font-weight:700;font-size:13px;border-color:#1f376a;padding:7px 8px;}
table.tt .total-row th{text-align:right;white-space:nowrap;padding-right:6px;}
.data-stamp{font-size:12px;color:#444;font-style:normal;text-align:right;padding:7px 0 2px;font-weight:600;}
.data-stamp a{color:#1f376a;}
.prop-strip .val{font-size:11.5px;}
.val-group{background:#f4f8f0;}
.doc-title{text-align:center;font-size:14px;font-weight:700;color:#1f376a;padding:8px 0 6px;text-transform:uppercase;letter-spacing:.9px;border-bottom:1px solid #dde4f0;margin-bottom:2px;}
.mobile-br{display:none;}

/* ── Notice + footnotes ────────────────────────────── */
.notice-box{background:#c5e4c6;padding:10px 14px 12px;margin:14px 0 0;}
.notice-title{font-weight:700;font-size:12.5px;color:#121314;margin-bottom:6px;text-transform:uppercase;letter-spacing:.3px;}
.notice-box p{font-size:11px;line-height:1.5;color:#121314;margin-bottom:5px;}
.notice-box p:last-child{margin-bottom:0;}
.notice-box a{color:#1f376a;}
.footnotes{border-top:1px solid #ddd;padding-top:9px;margin-top:12px;}
.footnotes p{font-size:10.5px;color:#666;line-height:1.5;margin-bottom:3px;}
.footnotes a{color:#1f376a;}
sup{font-size:7.5px;}
.doc-foot{background:#1f376a;color:rgba(255,255,255,.65);font-size:10px;padding:7px 18px;display:none;justify-content:space-between;flex-wrap:wrap;gap:4px;margin-top:14px;}
.doc-foot a{color:#7bc088;text-decoration:none;}
/* Collapsible toggle — hidden on desktop; mobile/tablet media queries show it */
.collapsible-toggle{display:none;}
.collapsible-toggle::after{
  content:'';display:inline-block;flex-shrink:0;margin-left:8px;
  width:8px;height:8px;
  border-right:2px solid currentColor;border-bottom:2px solid currentColor;
  transform:rotate(-135deg);transition:transform .25s;margin-bottom:1px;
}
.collapsible-toggle.is-collapsed::after{transform:rotate(45deg);margin-bottom:3px;}
/* Mobile total — replaces in-table total row on phone/tablet; hidden on desktop+print */
.mobile-total{display:none;justify-content:flex-end;gap:1em;align-items:center;
  background:#1f376a;color:#fff;font-size:13px;font-weight:700;padding:8px 12px;margin-top:2px;}
.mobile-total sup{font-size:8px;}

/* ── Loading spinner ───────────────────────────────── */
.spinner{display:none;text-align:center;padding:30px;color:#555;font-style:italic;}

/* ── Print ─────────────────────────────────────────── */
@media print{
  body{background:#fff;padding:0;font-size:11px;}

  /* ── Letterhead-style header: white bg, logo left, text right ── */
  .site-header{display:flex!important;background:#fff!important;padding:8px 14px 10px!important;justify-content:space-between!important;align-items:flex-end!important;border-bottom:none!important;}
  .site-seal{mix-blend-mode:normal!important;filter:none!important;width:110px!important;}
  .site-hdr-name{color:#1f376a!important;font-size:12px!important;font-weight:700!important;text-transform:uppercase!important;letter-spacing:.4px!important;}
  .site-hdr-sub{color:#444!important;font-size:9px!important;margin-top:2px!important;}
  .site-header > div{text-align:right!important;}

  /* ── Not-a-bill banner ── */
  .site-not-bill-banner{display:block!important;background:#fff4f4!important;color:#c8102e!important;border:2px solid #c8102e!important;margin:4px 14px 4px!important;padding:5px 10px!important;text-transform:uppercase!important;font-weight:700!important;letter-spacing:.4px!important;font-size:10px!important;text-align:center!important;}
  .site-not-bill-banner .banner-sub{font-size:8px!important;font-weight:400!important;text-transform:none!important;letter-spacing:0!important;margin-top:2px!important;line-height:1.35!important;}

  /* ── Hide browser chrome ── */
  .est-toolbar{display:none!important;}
  #search-screen{display:none!important;}
  #estimate-screen{display:block!important;}
  .card{border:none;max-width:100%;}

  /* ── Layout ── */
  .doc-body{padding:8px 10px 12px;}
  .info-cell{padding:7px 9px;border-right:1px solid #ccc!important;}
  .info-cell:last-child{border-right:none!important;}
  .info-row,.prop-strip,.owner-strip{border:1px solid #ccc!important;}
  .prop-strip,.owner-strip{border-top:none!important;}
  .info-row,.prop-strip,.note-strip,.owner-strip{font-size:11px;width:100%;box-sizing:border-box;}
  /* Override responsive CSS — always use desktop layout in print */
  /* Use CSS grid for ALL three rows (same layout engine = sub-pixel consistent borders) */
  .info-row{display:grid!important;grid-template-columns:13% 35% 14% 22% 16%!important;break-inside:avoid;page-break-inside:avoid;}
  .info-row .info-cell{border-bottom:none!important;}
  /* Reset mobile-specific cell grid placements so print uses auto 5-column flow */
  .info-row .info-cell:nth-child(2){border-right:1px solid #ccc!important;}
  .info-row .info-cell:nth-child(4){grid-column:auto!important;grid-row:auto!important;border-right:1px solid #ccc!important;border-bottom:none!important;}
  .info-row .info-cell:nth-child(5){grid-column:auto!important;grid-row:auto!important;border-right:none!important;border-bottom:none!important;}
  .prop-strip{display:grid!important;grid-template-columns:13% 8% 14% 13% 14% 1fr!important;flex-wrap:unset!important;}
  .prop-strip .info-cell{border-bottom:none!important;}
  .owner-strip{display:grid!important;grid-template-columns:48% 52%!important;break-inside:avoid;page-break-inside:avoid;margin-bottom:14px!important;}
  .owner-strip .info-cell{border-bottom:none!important;}
  .lbl{font-size:8.5px;color:#555;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  .lbl sup{font-size:6px;line-height:0;vertical-align:super;}
  .val{font-size:11.5px;}
  .val.light{font-size:10.5px;}

  /* ── Document title ── */
  .doc-title{font-size:13px!important;padding:6px 0 8px!important;letter-spacing:.7px!important;}

  /* ── Section header ── */
  .section-head{background:#2d5490!important;color:#fff!important;padding:4px 10px;font-size:10px;margin-top:6px;}

  /* ── Tax table ── */
  table.tt{font-size:10px;display:table!important;overflow-x:visible!important;width:100%!important;table-layout:fixed!important;}
  table.tt thead th{background:#c8d8ec!important;color:#111!important;padding:4px 5px;font-size:9px;border:1px solid #a8bcda!important;white-space:nowrap!important;}
  table.tt thead th:last-child{white-space:normal!important;}
  table.tt tbody td,table.tt tbody th{padding:4px 6px;font-size:10px;}
  table.tt tbody tr:nth-child(odd){background:#f7f9fc!important;}
  table.tt tbody tr:nth-child(even){background:#fff!important;}
  table.tt .group-row td{background:#e8ecf5!important;color:#333!important;font-size:9px;padding:2px 6px;}
  table.tt .htrg-row td{background:#f0faf2!important;font-size:9px;color:#2a5c34!important;padding:2px 6px;}
  .htrg-note{background:#f0faf2!important;border-left:3px solid #7bc088!important;padding:6px 10px!important;margin-top:6px!important;font-size:9px!important;color:#2a5c34!important;font-style:italic;line-height:1.45;-webkit-print-color-adjust:exact;print-color-adjust:exact;}
  .city-note{background:#fffbe6!important;border-left:3px solid #e6a800!important;padding:6px 10px!important;margin-top:6px!important;font-size:9px!important;color:#5c3d00!important;line-height:1.45;-webkit-print-color-adjust:exact;print-color-adjust:exact;}
  .city-note a{color:#e6a800!important;text-decoration:none!important;}
  .new-owner-note{background:#fff4f4!important;border-left:3px solid #c8102e!important;padding:6px 10px!important;margin-top:6px!important;font-size:9px!important;color:#7a0000!important;line-height:1.45;-webkit-print-color-adjust:exact;print-color-adjust:exact;}
  table.tt .total-row th,table.tt .total-row td{background:#2d5490!important;color:#fff!important;font-size:12px;font-weight:700;padding:5px 6px;border-color:#2d5490!important;}
  table.tt .total-row th{text-align:right!important;padding-right:6px!important;}
  /* Allow prop-strip labels to wrap so long labels like "Fair Market Value" aren't cut */
  .prop-strip .lbl{white-space:normal!important;line-height:1.3;}

  /* ── Notice box ── */
  .notice-box{background:#f8f9fc!important;border:1px solid #b0bdd6!important;border-left:3px solid #1f376a!important;padding:6px 10px 8px!important;margin-top:8px!important;break-inside:avoid;page-break-inside:avoid;}
  .notice-title{font-size:9px!important;color:#1f376a!important;font-weight:700!important;margin-bottom:3px!important;}
  .notice-box p{font-size:8px!important;margin-bottom:3px!important;color:#222!important;line-height:1.42!important;}

  /* ── Footnotes ── */
  .footnotes{border-top:1px solid #ccc;padding-top:6px;margin-top:6px;}
  .footnotes p{font-size:8px;color:#444;margin-bottom:2px;line-height:1.42;}

  /* ── Footer ── */
  .doc-foot{display:flex!important;margin-top:8px;padding:5px 12px;font-size:8.5px;background:#fff!important;color:#444!important;border-top:1px solid #1f376a!important;}
  .doc-foot a{color:#1f376a!important;}

  /* ── Preserve colors ── */
  .site-not-bill-banner,.section-head,
  table.tt thead th,table.tt tr.total-row,table.tt .total-row th,table.tt .total-row td,
  table.tt tbody tr:nth-child(odd),table.tt .group-row td,.htrg-row td,
  .val-group,.doc-foot,.notice-box,.note-strip,.city-note,.new-owner-note{-webkit-print-color-adjust:exact;print-color-adjust:exact;}
  a{color:inherit!important;text-decoration:none!important;}
  /* Ensure collapsed sections always print fully expanded */
  .collapsible-toggle{display:none!important;}
  .collapsible-body{display:block!important;}
  .collapsible-body.is-collapsed{display:block!important;}
  #note-body{display:block!important;}
  #note-body.is-collapsed{display:block!important;}
  #note-toggle::after{display:none!important;}
  .notice-title{display:block!important;}
  /* Force doc-title to single line (mobile stacking must not apply in print) */
  .mobile-br{display:none!important;}
  .title-sep{display:inline!important;}

  /* Always print total row from the table; hide the mobile-total div */
  table.tt tr.total-row{display:table-row!important;}
  .mobile-total{display:none!important;}

  /* Revert sticky column — position:sticky can artifact in print engines */
  table.tt th:first-child,
  table.tt td:first-child{position:static!important;z-index:auto!important;border-right:inherit!important;}
  @page{margin:.12in .2in;size:letter portrait;}
}

/* ── Tablet — iPad portrait / small landscape (641px – 900px) ───── */
@media screen and (min-width:641px) and (max-width:900px){
  body{padding:14px 10px;}
  .doc-body{padding:10px 14px 16px;}

  /* Tighten cell padding so 5 columns breathe at ~768px */
  .info-cell{padding:7px 9px;}
  .lbl{font-size:8.5px;}

  /* Prop strip: inherits desktop single-row layout (6 columns) */

  /* Tax table: fixed layout fills 100% — base display:table + table-layout:fixed + width:100% handle it */

  /* Toolbar → allow wrap */
  .est-toolbar{flex-wrap:wrap;}

  /* Enable tel: links on tablet */
  .city-note a[href^="tel:"]{color:#5c3d00;text-decoration:underline;cursor:pointer;pointer-events:auto;}
  .new-owner-note a[href^="tel:"]{color:#7a0000;text-decoration:underline;cursor:pointer;pointer-events:auto;}
  .error-notice a[href^="tel:"]{color:#222;text-decoration:underline;cursor:pointer;pointer-events:auto;}

  /* Notice + Footnotes: collapsible on tablet but EXPANDED by default */
  .collapsible-toggle{
    display:flex;justify-content:space-between;align-items:center;
    cursor:pointer;-webkit-tap-highlight-color:transparent;
    user-select:none;padding:6px 14px;margin:12px 0 0;
    background:#e8eef5;font-weight:700;font-size:11px;
    color:#1f376a;text-transform:uppercase;letter-spacing:.3px;
    border:1px solid #c5d0e0;
  }
  .collapsible-body.is-collapsed{display:none;}
}

/* ── Phone — iPhone (≤ 640px) ───────────────────────────────────── */
@media screen and (max-width:640px){
  body{padding:10px 8px;}
  #search-screen{padding:18px 14px 24px;}
  .search-title{font-size:18px;}
  .search-sub{font-size:12px;}
  .doc-body{padding:10px 12px 14px;}
  .section-head{font-size:9.5px;padding:5px 10px;}
  .mobile-br{display:block;}
  .title-sep{display:none;}

  /* Prevent iOS input auto-zoom */
  .search-input{font-size:16px;padding:12px 14px;}

  /* Improve touch targets */
  .btn-search,.btn-back,.btn-pdf{min-height:44px;}
  .suggest-item{padding:12px 14px;}
  .suggest-dropdown{max-height:45vh;}

  /* Info row: 2-col grid with explicit placement
     Row 1: Parcel ID | Property Address
     Row 2: Property Class | Property Type
     Row 3: Tax District (full width — has the longest text) */
  .info-row{grid-template-columns:1fr 1fr;}
  .info-row .info-cell{border-right:1px solid #ccc;border-bottom:1px solid #ccc;}
  .info-row .info-cell:nth-child(2){border-right:none;}
  .info-row .info-cell:nth-child(4){grid-column:1/-1;grid-row:3;border-right:none;border-bottom:none;}
  .info-row .info-cell:nth-child(5){grid-column:2;grid-row:2;border-right:none;}

  /* 6-cell prop strip → 2 columns; !important overrides the base nth-child specificity */
  .prop-strip{flex-wrap:wrap;}
  .prop-strip .info-cell{flex:0 0 50%!important;border-bottom:1px solid #ccc;}
  .prop-strip .info-cell:nth-child(even){border-right:none;}
  .prop-strip .info-cell:nth-last-child(-n+2){border-bottom:none;}

  /* Owner + note strip → stacked */
  .owner-strip{grid-template-columns:1fr;}
  .owner-strip .info-cell{border-right:none;border-bottom:1px solid #ccc;}
  .owner-strip .info-cell:last-child{border-bottom:none;}

  /* Tax table → simple horizontal scroll */
  table.tt{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch;table-layout:auto;font-size:11px;}
  table.tt thead th,table.tt tbody td,table.tt tbody th{padding:6px 8px;white-space:nowrap;}
  /* Total row is hidden at ≤900px (mobile-total div shows instead) */

  /* Toolbar buttons → wrap and stretch */
  .est-toolbar{flex-wrap:wrap;}
  .btn-back,.btn-pdf{flex:1 1 auto;white-space:nowrap;}

  /* Info grid — reduce cell padding */
  .info-cell{padding:9px 10px;}
  .lbl{font-size:8.5px;}
  .val{font-size:13px;}

  /* Notice + Footnotes: collapsible on mobile, COLLAPSED by default */
  .collapsible-toggle{
    display:flex;justify-content:space-between;align-items:center;
    cursor:pointer;-webkit-tap-highlight-color:transparent;
    user-select:none;padding:10px 14px;margin:14px 0 0;
    background:#c5e4c6;font-weight:700;font-size:12.5px;
    color:#121314;text-transform:uppercase;letter-spacing:.3px;
  }
  .collapsible-body.is-collapsed{display:none;}

  /* Note cell: collapsible on mobile, collapsed by default */
  #note-toggle{cursor:pointer;user-select:none;-webkit-tap-highlight-color:transparent;
    display:flex;align-items:center;justify-content:space-between;width:100%;
    font-size:10px;}
  .note-strip .val.light{font-size:12px!important;}
  .note-strip .val.light a{font-size:12px!important;}
  .city-note a[href^="tel:"]{color:#5c3d00;text-decoration:underline;cursor:pointer;pointer-events:auto;}
  .new-owner-note a[href^="tel:"]{color:#7a0000;text-decoration:underline;cursor:pointer;pointer-events:auto;}
  .error-notice a[href^="tel:"]{color:#222;text-decoration:underline;cursor:pointer;pointer-events:auto;}
  #note-toggle::after{content:'';display:inline-block;flex-shrink:0;
    width:6px;height:6px;
    border-right:2px solid currentColor;border-bottom:2px solid currentColor;
    transform:rotate(-135deg);transition:transform .25s;margin-bottom:-1px;margin-right:2px;}
  #note-toggle.is-collapsed::after{transform:rotate(45deg);margin-bottom:2px;}
  #note-body.is-collapsed{display:none;}

  /* Hide the original notice-title since toggle acts as the header */
  .collapsible-toggle + .collapsible-body .notice-title{display:none;}
  /* Remove top margin from notice-box since toggle handles spacing */
  .notice-box{margin-top:0;}
}

/* ── Phone + Tablet — total row as div below table (≤ 900px) ──── */
/* Hides the in-table total row (requires scroll to see) and shows  */
/* a fixed-width bar always visible below the scrollable table.     */
@media screen and (max-width:900px){
  table.tt tr.total-row{display:none;}
  .mobile-total{display:flex;}
}

/* ── Very small phones (≤ 380px) ─────────────────────── */
@media screen and (max-width:380px){
  body{padding:6px 4px;}
  .btn-search{padding:10px 12px;font-size:12px;}
}
