/* County.Land — Bitter + Redwood earth tones */

:root {
  /* Brand palette per Our Landmen LLC tokens */
  --redwood:    #7B2D26;  /* primary */
  --terracotta: #C76647;
  --copper:     #B07D5C;
  --sepia:      #8C6A4A;
  --cream:      #F5EFE6;
  --parchment:  #EFE6D6;
  --ink:        #1F1A14;
  --ink-soft:   #4A413A;
  --rule:       #C8B8A0;
  --rule-soft:  #E5DCCC;

  /* Type */
  --serif: 'Bitter', Georgia, 'Times New Roman', serif;
  --sans:  -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  /* Spacing */
  --max:   1140px;
  --gap:   1.25rem;
  --gap-l: 2.5rem;
  --gap-xl:4.5rem;

  --radius: 2px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 17px; scroll-behavior: smooth; }

body {
  font-family: var(--serif);
  font-weight: 400;
  background-color: var(--cream);
  background-image:
    radial-gradient(ellipse at 20% 15%, rgba(139, 106, 74, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 70%, rgba(123, 45, 38, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 90%, rgba(139, 106, 74, 0.06) 0%, transparent 60%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.55  0 0 0 0 0.42  0 0 0 0 0.28  0 0 0 0.18 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/></svg>");
  background-attachment: fixed, fixed, fixed, fixed;
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.card { background: #FBF6EC !important; }
table.compare { background: #FBF6EC; }

a { color: var(--redwood); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--terracotta); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }
ul, ol { margin: 0 0 1rem 1.25rem; }
li { margin-bottom: 0.35rem; }

hr { border: 0; border-top: 1px solid var(--rule); margin: var(--gap-l) 0; }

/* Glossary term: dotted underline, browser-native tooltip on hover. */
abbr.cl-term {
  text-decoration: none;
  border-bottom: 1px dotted var(--sepia);
  cursor: help;
  font-variant: inherit;
}
abbr.cl-term:hover { border-bottom-color: var(--redwood); color: var(--redwood); }

/* ---------- LAYOUT ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gap); }

section { padding: var(--gap-xl) 0; border-bottom: 1px solid var(--rule-soft); }
section:last-of-type { border-bottom: 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sepia);
  margin-bottom: 0.5rem;
}

/* ---------- HEADER ---------- */
header.site {
  background: var(--parchment);
  border-bottom: 2px solid var(--redwood);
  padding: 1rem 0;
  position: sticky; top: 0; z-index: 50;
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { font-family: var(--serif); font-weight: 700; font-size: 1.4rem; text-decoration: none; letter-spacing: -0.01em; color: var(--redwood); }
.brand .b1 { color: var(--redwood); }
.brand .b2 { color: var(--copper); }
.brand .dot { color: var(--terracotta); }
nav.primary { display: flex; gap: 1.4rem; align-items: center; }
nav.primary a { font-family: var(--sans); font-size: 0.92rem; color: var(--ink); text-decoration: none; }
nav.primary a:hover { color: var(--redwood); }
nav.primary a.is-active:not(.btn) { color: var(--redwood); font-weight: 700; box-shadow: inset 0 -3px 0 var(--terracotta); padding-bottom: 4px; }
nav.primary a.btn.is-active { background: var(--ink); }
@media (max-width: 720px) { nav.primary a:not(.btn) { display: none; } }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  background: var(--redwood);
  color: var(--cream) !important;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid var(--redwood);
  transition: background 0.15s;
}
.btn:hover { background: var(--terracotta); border-color: var(--terracotta); color: var(--cream) !important; }
.btn.ghost {
  background: transparent;
  color: var(--redwood) !important;
  border-color: var(--redwood);
}
.btn.ghost:hover { background: var(--redwood); color: var(--cream) !important; }

/* ---------- HERO ---------- */
.hero { padding: var(--gap-xl) 0 var(--gap-xl); background: linear-gradient(180deg, var(--parchment) 0%, var(--cream) 100%); }
.hero h1 { margin-bottom: 1rem; }
.hero .lede { font-size: 1.2rem; color: var(--ink-soft); margin-bottom: 1.75rem; }
.hero .ctas { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ---------- GRID ---------- */
.grid { display: grid; gap: var(--gap-l); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 800px) {
  .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .grid.cols-2 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--rule);
  padding: 1.5rem;
  border-radius: var(--radius);
}
.card h3 { color: var(--redwood); margin-bottom: 0.5rem; }
.card.featured { border: 2px solid var(--redwood); }
.card .price { font-family: var(--serif); font-weight: 700; font-size: 2rem; color: var(--ink); display: block; margin: 0.5rem 0 0.75rem; }
.card .price small { font-size: 0.9rem; font-weight: 400; color: var(--ink-soft); }

/* ---------- TABLE ---------- */
table.compare { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 0.95rem; }
table.compare th, table.compare td { padding: 0.75rem 0.9rem; text-align: left; border-bottom: 1px solid var(--rule-soft); }
table.compare thead th { background: var(--parchment); font-family: var(--serif); font-weight: 700; }
table.compare tbody tr:hover { background: var(--parchment); }

/* ---------- COVERAGE / COUNTY ---------- */
.badge {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
  font-weight: 600;
}
.badge.live { background: var(--redwood); color: var(--cream); }
.badge.soon { background: var(--sepia); color: var(--cream); }
.badge.wait { background: var(--rule); color: var(--ink); }

.stat-block { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 1.5rem 0; }
.stat-block .stat { background: var(--parchment); padding: 1rem; border-radius: var(--radius); border-left: 3px solid var(--redwood); }
.stat-block .stat .n { font-size: 1.6rem; font-weight: 700; display: block; }
.stat-block .stat .l { font-family: var(--sans); font-size: 0.78rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.08em; }
@media (max-width: 700px) { .stat-block { grid-template-columns: repeat(2, 1fr); } }

/* ---------- FOOTER ---------- */
footer.site { background: var(--ink); color: var(--cream); padding: var(--gap-xl) 0 var(--gap); margin-top: 0; }
footer.site h4 { color: var(--terracotta); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 0.75rem; }
footer.site a { color: var(--cream); text-decoration: none; font-family: var(--sans); font-size: 0.9rem; display: block; padding: 0.2rem 0; }
footer.site a:hover { color: var(--terracotta); }
footer.site .colophon { border-top: 1px solid var(--ink-soft); margin-top: var(--gap-l); padding-top: 1rem; font-family: var(--sans); font-size: 0.8rem; color: var(--rule); text-align: center; }

/* ---------- FORMS ---------- */
input[type=text], input[type=email], select, textarea {
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--terracotta); outline-offset: 1px; }
label { font-family: var(--sans); font-size: 0.88rem; color: var(--ink-soft); display: block; margin-bottom: 0.35rem; }
.form-row { margin-bottom: 1rem; }

/* ---------- DOC AESTHETIC TOUCHES ---------- */
.doc-rule { background-image: repeating-linear-gradient(180deg, transparent 0 1.6rem, var(--rule-soft) 1.6rem 1.61rem); padding: 0.5rem 0; }
blockquote.pullquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--ink-soft);
  border-left: 3px solid var(--terracotta);
  padding: 0.5rem 0 0.5rem 1.25rem;
  margin: 1rem 0;
  max-width: 36em;
}

/* === Sketch-style background textures.
   Apply with class on a <section>. Tiled at low opacity, content stays readable.
   Tunable: --tex-opacity (default ~0.06) and --tex-size (default 320px tile). */
.tex { position: relative; }
.tex::before {
  content: "";
  position: absolute; inset: 0;
  background-repeat: repeat;
  background-size: var(--tex-size, 320px);
  opacity: var(--tex-opacity, 0.16);
  pointer-events: none;
  z-index: 0;
}
.tex > * { position: relative; z-index: 1; }
.tex-chain::before    { background-image: url("/assets/textures/chain.svg"); --tex-opacity: 0.18; }
.tex-ledger::before   { background-image: url("/assets/textures/ledger.svg"); --tex-opacity: 0.14; }
.tex-books::before    { background-image: url("/assets/textures/books.svg"); --tex-opacity: 0.16; }
.tex-tree::before     { background-image: url("/assets/textures/probate-tree.svg"); --tex-opacity: 0.18; }
.tex-survey::before   { background-image: url("/assets/textures/survey-grid.svg"); --tex-opacity: 0.14; --tex-size: 280px; }

/* === Tight footer (chrome.js renders this shape — sits on dark ink background) ===
   All colors !important because footer.site rules in this same stylesheet have
   high specificity and were dimming the new chrome.js content. */
footer.footer-tight { padding: 2.25rem 0 1.25rem !important; background: var(--ink) !important; color: #F5EFE6 !important; }
footer.footer-tight h4 { font-size: 0.78rem !important; margin: 0 0 0.55rem !important; letter-spacing: 0.12em !important; text-transform: uppercase !important; color: var(--terracotta) !important; font-family: var(--sans) !important; }
footer.footer-tight a { display: block !important; font-family: var(--sans) !important; font-size: 0.88rem !important; padding: 0.18rem 0 !important; text-decoration: none !important; color: #F5EFE6 !important; }
footer.footer-tight a:hover { color: var(--terracotta) !important; }
footer.footer-tight p { font-family: var(--sans) !important; font-size: 0.86rem !important; color: #E8DEC8 !important; line-height: 1.5 !important; margin: 0.4rem 0 !important; }
footer.footer-tight p.addr { margin-top: 0.7rem !important; color: #E8DEC8 !important; }
footer.footer-tight p.addr a { display: inline !important; color: #F5EFE6 !important; padding: 0 !important; }
footer.footer-tight p.muted { font-size: 0.82rem !important; line-height: 1.5 !important; margin-top: 0.45rem !important; color: #E8DEC8 !important; }
footer.footer-tight .footer-secondary { margin-top: 1.5rem !important; padding-top: 1.25rem !important; border-top: 1px solid rgba(245,239,230,0.22) !important; }
footer.footer-tight .colophon {
  margin-top: 1rem !important; padding-top: 0.75rem !important; border-top: 1px solid rgba(245,239,230,0.22) !important;
  display: flex !important; justify-content: space-between !important; flex-wrap: wrap !important; gap: 0.5rem !important;
  font-family: var(--sans) !important; font-size: 0.82rem !important; color: #E8DEC8 !important;
}
footer.footer-tight .colophon a { display: inline !important; padding: 0 !important; font-size: inherit !important; color: #E8DEC8 !important; }
footer.footer-tight .colophon a:hover { color: var(--terracotta) !important; }

/* === MOBILE NAV (hamburger) === */
.nav-burger { display: none; cursor: pointer; padding: 0.5rem; }
.nav-burger span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 4px 0; transition: 0.2s; }
.nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
.nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-burger { display: block; }
  header.site .wrap { flex-wrap: wrap; }
  nav.primary { display: none !important; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-top: 0.5rem; border-top: 1px solid var(--rule); margin-top: 0.5rem; }
  .nav-toggle:checked ~ nav.primary { display: flex !important; }
  nav.primary a:not(.btn) { display: block !important; padding: 0.7rem 0.4rem; border-bottom: 1px solid var(--rule-soft); font-size: 1rem; }
  nav.primary a.btn { margin-top: 0.6rem; text-align: center; }
}

/* === MOBILE-WIDE STYLE PASS === */
@media (max-width: 720px) {
  html { font-size: 16px; }
  :root { --gap: 1rem; --gap-l: 1.4rem; --gap-xl: 2rem; }
  h1 { font-size: clamp(1.7rem, 7vw, 2.4rem); line-height: 1.15; }
  h2 { font-size: clamp(1.35rem, 5.5vw, 1.85rem); line-height: 1.2; }
  h3 { font-size: 1.1rem; }
  .hero { padding: 1.5rem 0; }
  .hero .lede { font-size: 1.02rem; }
  .hero .ctas { flex-direction: column; align-items: stretch; }
  .hero .ctas .btn { text-align: center; }
  .hero-anim { font-size: 0.62rem !important; }
  .anim-scroll { height: 380px !important; }
  .anim-table th, .anim-table td { padding: 0.28rem 0.3rem !important; }
  /* compare tables: horizontal scroll wrapper */
  table.compare { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  table.compare th, table.compare td { padding: 0.55rem 0.65rem; font-size: 0.86rem; }
  /* general image safety */
  img, figure { max-width: 100%; height: auto; }
  /* leon county map sidebar already collapses; ensure stat block sane */
  .stat-block { gap: 0.6rem; }
  .stat-block .stat { padding: 0.7rem; }
  .stat-block .stat .n { font-size: 1.25rem; }
  /* footer cols stack */
  footer.footer-tight .grid.cols-4 { grid-template-columns: 1fr 1fr !important; }
  footer.footer-tight .grid.cols-3 { grid-template-columns: 1fr !important; }
  /* generic 2-col inline grids fallback */
  div[style*="grid-template-columns"][style*="1fr 1fr"] { grid-template-columns: 1fr !important; }
  /* card padding */
  .card { padding: 1.1rem; }
  /* generic centered .wrap padding tightening */
  .wrap { padding: 0 0.85rem; }
  /* leon banner smaller */
  div[style*="terracotta"][style*="text-align: center"] { font-size: 0.78rem !important; padding: 0.5rem 0 !important; }
}

@media (max-width: 480px) {
  /* hide desktop-only hero animation on smallest screens — too cramped */
  .hero-anim { display: none !important; }
}

/* County map controls — shared across all county pages (Leon + 6 unified) */
.cmap-controls { margin: 0.85rem 0 0; display: flex; flex-direction: column; gap: 0.45rem; }
.cmap-bar { display: flex; flex-wrap: wrap; gap: 0.4rem 0.6rem; align-items: center; margin: 0; font-family: var(--sans); font-size: 0.82rem; color: var(--ink-soft); }
.cmap-bar label.pill { cursor: pointer; user-select: none; }
.cmap-bar label.pill input { margin: 0 0.35rem 0 0; vertical-align: middle; }
.cmap-bar .lab { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.72rem; color: var(--sepia); margin-right: 0.25rem; }
.cmap-bar .pill { padding: 0.25rem 0.55rem; background: var(--cream); border: 1px solid var(--rule); border-radius: 999px; color: var(--ink); display: inline-flex; align-items: center; gap: 0.3rem; }
.cmap-bar .sw { width: 12px; height: 12px; border-radius: 2px; display: inline-block; }
.cmap-bar .sw.dot { border-radius: 50%; }

/* Print/PDF button in the header nav */
.site nav.primary .nav-print {
  background: transparent; border: 1px solid var(--rule); color: var(--ink-soft);
  padding: 0.32rem 0.65rem; font-family: var(--sans); font-size: 0.82rem;
  cursor: pointer; border-radius: 2px; display: inline-flex; align-items: center; gap: 0.35rem;
  transition: color 120ms, border-color 120ms, background 120ms;
}
.site nav.primary .nav-print:hover { color: var(--redwood); border-color: var(--redwood); background: var(--cream); }
.site nav.primary .nav-print:focus { outline: 2px solid var(--terracotta); outline-offset: 2px; }
.site nav.primary .nav-print-icon { padding: 0.32rem 0.5rem; }
@media (max-width: 820px) {
  .site nav.primary .nav-print { width: 100%; justify-content: center; }
}

/* Print stylesheet — clean PDF output */
@media print {
  /* Strip page chrome that doesn't belong in a printed/saved PDF */
  header.site, footer.site, #site-header, #site-footer { display: none !important; }
  .nav-print, .nav-burger, .nav-toggle { display: none !important; }
  .ctas, .cta, .btn { display: none !important; }
  /* CTA bars on county maps and abstract pages */
  .cmap-controls, .leon-controls { display: none !important; }
  /* Launch banner */
  body > div[style*="background: var(--terracotta)"] { display: none !important; }
  /* Hero animations and side cards that depend on JS */
  .hero-anim, #anim-body, .anim-scroll { display: none !important; }
  .cmap-card, .leon-card, .ab-card { border: 1px solid #999 !important; box-shadow: none !important; }
  /* Maps: hide interactive controls (zoom, layer pickers) but keep the
     attribution copyright row visible — required by OSM/CARTO license and
     wanted on print snapshots so the runsheet image self-identifies. */
  .leaflet-control-zoom, .leaflet-control-layers { display: none !important; }
  .leaflet-control-attribution {
    background: rgba(255,255,255,0.9) !important; color: #000 !important;
    font-size: 7pt !important; -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  .leaflet-control-attribution a { color: #000 !important; text-decoration: none !important; }
  /* Hide pagination/skip links etc that may have been added */
  #sc-skip-link, .sc-progress, .sc-nav { display: none !important; }
  /* Page-level print styles — dense, brand-typeset */
  html, body {
    background: #fff !important; color: #000 !important;
    font-family: var(--serif) !important;  /* Bitter throughout for brand consistency */
    font-size: 9pt !important; line-height: 1.32 !important;
  }
  .wrap { max-width: 100% !important; padding: 0 !important; }
  section { padding: 0.25rem 0 !important; margin: 0 !important; }
  h1 { font-size: 16pt !important; margin: 0.4rem 0 0.25rem !important; line-height: 1.15; page-break-after: avoid; color: #000 !important; }
  h2 { font-size: 12.5pt !important; margin: 0.5rem 0 0.2rem !important; line-height: 1.2;  page-break-after: avoid; color: #000 !important; }
  h3 { font-size: 10.5pt !important; margin: 0.35rem 0 0.15rem !important; page-break-after: avoid; color: #000 !important; }
  h4 { font-size: 9.5pt  !important; margin: 0.3rem 0 0.1rem !important; page-break-after: avoid; color: #000 !important; }
  p, li, td, th, dd, dt { font-family: var(--serif) !important; font-size: 9pt !important; color: #000 !important; line-height: 1.32 !important; }
  p { margin: 0 0 0.35rem !important; }
  ul, ol { margin: 0.2rem 0 0.4rem 1rem !important; padding: 0 !important; }
  li { margin-bottom: 0.12rem !important; }
  table { page-break-inside: auto; border-collapse: collapse !important; font-size: 8.5pt !important; }
  tr { page-break-inside: avoid; page-break-after: auto; }
  th, td { padding: 0.18rem 0.35rem !important; border-bottom: 1px solid #ccc !important; }
  thead { display: table-header-group; }
  thead th { background: #efe6d6 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .eyebrow { font-size: 7.5pt !important; color: #6B5F54 !important; letter-spacing: 0.08em; margin: 0.4rem 0 0.05rem !important; }
  .lede { font-size: 10pt !important; color: #000 !important; margin-bottom: 0.4rem !important; }
  figure, img { max-width: 60% !important; height: auto !important; page-break-inside: avoid; }
  a { color: #000 !important; text-decoration: underline; }
  /* Print URLs after links so the printout is self-referencing */
  a[href^="http"]:not([href*="county.land"])::after { content: " (" attr(href) ")"; font-size: 7.5pt; color: #555; }
  /* Narrow page margins for dense output */
  @page { margin: 0.4in 0.45in 0.5in 0.45in; size: letter; }
  /* Hide screen-only chrome we don't want in the brochure */
  .cl-mapfoot, .cl-search-wrap, .leaflet-container .leaflet-pane { /* parcels, search, map panes — drop in print */ }
  .ab-neighbors, .ab-search-wrap, #ab-search-results, .ab-nearby-section { display: none !important; }
  /* Activity profile: hide the horizontal bar chart in print and reveal
     the parallel table that matches the instrument-types panel. Keeps the
     paper version tabular and consistent. */
  .ab-decade-chart { display: none !important; }
  .ab-decade-print { display: table !important; }
  /* Drop bulky sections that aren't useful in a 2-page handout */
  section.tex.tex-survey figure.courthouse, .hero-fig { display: none !important; }
  /* Keep the map footer visible in print so the abstract identity + URL +
     instrument count stay attached to the polygon image. Strip the URL
     to save horizontal room. */
  .cl-mapfoot { background: #fff !important; border: 1px solid #1F1A14 !important; bottom: 0 !important; color: #000 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .cl-mapfoot .url { color: #000 !important; text-decoration: none !important; }
  .cl-mapfoot .inst { color: #000 !important; }
  /* Acre-grid chip — keep visible on print as a scale reference. Force
     stroke + label colors through the print colour-adjust pipeline so the
     gridlines actually render on paper. */
  .cl-acregrid { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .cl-acregrid svg .gline,
  .cl-acregrid svg .gborder { stroke: #1F1A14 !important; opacity: 1 !important;
    -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .cl-acregrid .lbl { color: #1F1A14 !important; text-shadow: none !important;
    -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
/* ------------------------------------------------------------------
   Shared county-map chrome (watermark + tombstone + adaptive acre grid).
   Mirrors the inline CSS used by per-abstract pages so county home maps
   can host the same visual identity. Each chrome element is positioned
   relative to its Leaflet container ancestor — make sure the map el has
   position:relative (Leaflet sets this by default).
   ------------------------------------------------------------------ */
.cl-mapwm { position: absolute; inset: 0; z-index: 400; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; user-select: none; }
.cl-mapwm span { font-family: var(--serif); font-weight: 700;
  color: var(--ink); opacity: 0.055; white-space: nowrap;
  transform: rotate(-30deg); letter-spacing: 0.01em;
  /* font-size set in JS to fit the rotated bounding box */ }

.cl-mapfoot { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 800;
  background: rgba(245,239,230,0.92); color: var(--ink); padding: 7px 12px;
  font-family: var(--sans); font-size: 0.74rem; display: flex; align-items: center;
  gap: 14px; pointer-events: none; line-height: 1.1;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.cl-mapfoot .brand { font-family: var(--serif); font-weight: 700; font-size: 0.85rem; white-space: nowrap; color: var(--ink); }
.cl-mapfoot .brand .dot { color: var(--terracotta); }
.cl-mapfoot .meta { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cl-mapfoot .url { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: var(--redwood); white-space: nowrap; pointer-events: auto; text-decoration: none; }
.cl-mapfoot .url:hover { color: var(--terracotta); }
.cl-mapfoot .sep { color: var(--sepia); }
.cl-mapfoot .inst { font-family: 'JetBrains Mono', monospace; font-size: 0.74rem; color: var(--ink); font-weight: 600; margin-left: auto; white-space: nowrap; }
@media (max-width: 560px) {
  .cl-mapfoot .url, .cl-mapfoot .sep.s-url { display: none; }
}

.cl-acregrid { position: absolute; right: 12px; bottom: 60px; z-index: 800;
  background: transparent; padding: 0; pointer-events: none; line-height: 1; }
.cl-acregrid svg { display: block; }
.cl-acregrid svg .gline { stroke: var(--ink); stroke-width: 0.6; opacity: 0.45; fill: none; }
.cl-acregrid svg .gborder { stroke: var(--ink); stroke-width: 1.4; opacity: 0.85; fill: none; }
.cl-acregrid .lbl { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; font-weight: 700; color: var(--ink);
  letter-spacing: 0.04em; text-shadow: 0 0 3px rgba(245,239,230,0.95), 0 0 5px rgba(245,239,230,0.85); }
.cl-acregrid.hidden { display: none; }

/* ------------------------------------------------------------------
   Shared breadcrumb trail (chrome.js injects this on every non-home,
   non-abstract page). Abstract pages already ship their own inline
   .crumbs CSS, so this is the lone definition shared across the rest.
   ------------------------------------------------------------------ */
.crumbs { font-family: var(--sans); font-size: 0.78rem; color: var(--sepia); margin: 0; letter-spacing: 0.01em; }
.crumbs a { color: var(--copper); text-decoration: none; }
.crumbs a:hover { color: var(--redwood); text-decoration: underline; }
.crumbs .sep { color: var(--terracotta); margin: 0 0.35rem; opacity: 0.7; }
.crumbs > span:last-child { color: var(--ink); font-weight: 600; }
.cl-crumbs-wrap { background: var(--parchment); border-bottom: 1px solid var(--rule); padding: 0; }
.cl-crumbs-wrap .wrap { padding-top: 0.35rem !important; padding-bottom: 0.35rem !important; }

/* ------------------------------------------------------------------
   Shared abstract-search bar (county home pages). Same CSS as the
   inline rules on leon/index.html — promoted here so the 6 other
   county home maps can reuse it via clCountySearch().
   ------------------------------------------------------------------ */
.cl-search-wrap { position: relative; max-width: 32rem; margin: 0 0 0.7rem; }
.cl-search { display: flex; align-items: center; gap: 0.55rem; background: var(--cream); border: 1px solid var(--rule); border-radius: 2px; padding: 0.45rem 0.7rem; transition: border-color 120ms ease, box-shadow 120ms ease; }
.cl-search:focus-within { border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(199,102,71,0.12); }
.cl-search svg { width: 14px; height: 14px; stroke: var(--ink-soft); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.cl-search input { flex: 1; border: 0; outline: 0; background: transparent; font-family: var(--sans); font-size: 0.95rem; color: var(--ink); min-width: 0; }
.cl-search input::placeholder { color: var(--ink-soft); font-style: italic; }
.cl-search .clr { background: transparent; border: 0; padding: 0; cursor: pointer; color: var(--ink-soft); font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; display: none; }
.cl-search.has-text .clr { display: inline-flex; align-items: center; }
.cl-search .clr:hover { color: var(--redwood); }
.cl-search-results { position: absolute; top: calc(100% + 2px); left: 0; right: 0; max-height: 20rem; overflow: auto; background: var(--cream); border: 1px solid var(--rule); border-radius: 2px; z-index: 1000; box-shadow: 0 6px 16px rgba(31,26,20,0.10); display: none; }
.cl-search-results.open { display: block; }
.cl-search-results .row { display: flex; align-items: baseline; gap: 0.7rem; padding: 0.45rem 0.7rem; font-family: var(--sans); font-size: 0.86rem; color: var(--ink); border-bottom: 1px solid var(--rule); cursor: pointer; background: transparent; border-left: 0; border-right: 0; border-top: 0; width: 100%; text-align: left; }
.cl-search-results .row:last-child { border-bottom: 0; }
.cl-search-results .row:hover, .cl-search-results .row.active { background: var(--parchment); }
.cl-search-results .row .num { font-family: 'JetBrains Mono', monospace; font-weight: 700; color: var(--redwood); min-width: 4.6rem; }
.cl-search-results .row .gr { color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-search-results .row mark { background: rgba(199,102,71,0.18); color: inherit; padding: 0 2px; border-radius: 2px; }
.cl-search-results .empty { padding: 0.55rem 0.7rem; color: var(--ink-soft); font-style: italic; font-size: 0.85rem; }
.cl-search-results .more { padding: 0.4rem 0.7rem; color: var(--ink-soft); font-size: 0.78rem; font-style: italic; border-top: 1px solid var(--rule); }

/* Screen default: keep the chrome.js-injected datasheet footer OUT of the
   page. It exists in the DOM only so the printout has full contact + boundary
   + copyright at the bottom of the last printed page. */
.cl-print-only { display: none !important; }
@media print {
  .cl-print-only { display: block !important; page-break-inside: avoid; margin-top: 0.6rem; padding-top: 0.35rem; border-top: 1.5px solid #1F1A14; font-family: var(--serif) !important; font-size: 8pt !important; color: #000 !important; line-height: 1.35 !important; }
  .cl-print-only .pf-row { display: flex; gap: 0.6rem; justify-content: space-between; align-items: flex-start; margin-bottom: 0.2rem; }
  .cl-print-only .pf-brand { font-weight: 700; font-size: 9pt; }
  .cl-print-only .pf-brand .dot { color: #C76647 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .cl-print-only .pf-meta { text-align: right; font-size: 7.5pt; color: #555 !important; }
  .cl-print-only .pf-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 0.6rem 1.2rem; margin-top: 0.25rem; }
  .cl-print-only .pf-grid h6 { font-family: var(--serif) !important; font-size: 7.5pt !important; text-transform: uppercase; letter-spacing: 0.08em; color: #6B5F54 !important; margin: 0 0 0.15rem !important; font-weight: 700; }
  .cl-print-only .pf-grid p { font-size: 7.8pt !important; margin: 0 !important; }
  .cl-print-only .pf-legal { margin-top: 0.35rem; padding-top: 0.25rem; border-top: 1px solid #ccc; font-size: 7pt !important; color: #555 !important; text-align: center; }
}

/* Runsheets dropdown */
.nav-dd { position: relative; display: inline-block; }
.nav-dd-trigger {
  background: transparent; border: 0; color: var(--ink); cursor: pointer;
  font-family: var(--sans); font-size: 0.92rem; padding: 0; line-height: 1.2;
  display: inline-flex; align-items: center; gap: 0.25rem;
}
.nav-dd-trigger:hover { color: var(--redwood); }
.nav-dd-trigger.is-active { color: var(--redwood); font-weight: 700; box-shadow: inset 0 -3px 0 var(--terracotta); padding-bottom: 4px; }
.nav-dd-trigger .caret { font-size: 0.75em; color: var(--sepia); transition: transform 0.15s; }
.nav-dd.is-open .nav-dd-trigger .caret { transform: rotate(180deg); color: var(--redwood); }
.nav-dd-menu {
  position: absolute; top: calc(100% + 0.6rem); left: 0; min-width: 240px;
  background: #fff; border: 1px solid var(--rule);
  box-shadow: 0 6px 18px rgba(31,26,20,0.12);
  list-style: none; margin: 0; padding: 0.4rem 0;
  display: none; z-index: 50;
}
.nav-dd.is-open .nav-dd-menu { display: block; }
.nav-dd-menu li { display: block; }
.nav-dd-menu a {
  display: block !important; padding: 0.55rem 0.95rem !important;
  color: var(--ink) !important; text-decoration: none; font-size: 0.92rem !important;
  border-bottom: 0 !important;
}
.nav-dd-menu a:hover { background: var(--cream); color: var(--redwood) !important; }
.nav-dd-menu a strong { display: block; font-family: var(--serif); font-weight: 700; font-size: 0.95rem; color: inherit; }
.nav-dd-menu a span { display: block; font-size: 0.74rem; color: var(--ink-soft); margin-top: 0.1rem; }
.nav-dd-menu a:hover span { color: var(--ink-soft); }

/* Mobile: dropdown expands inline inside the burger menu */
@media (max-width: 720px) {
  .nav-dd { width: 100%; }
  .nav-dd-trigger { width: 100%; justify-content: space-between; padding: 0.7rem 0.4rem !important; border-bottom: 1px solid var(--rule-soft); font-size: 1rem; }
  .nav-dd-menu { position: static; box-shadow: none; border: 0; border-bottom: 1px solid var(--rule-soft); padding: 0; min-width: 0; }
  .nav-dd-menu a { padding-left: 1.4rem !important; }
}

/* Print: collapse the dropdown out of the printout */
@media print {
  .nav-dd, .nav-dd-trigger, .nav-dd-menu { display: none !important; }
}
