/* =========================================================
   Local Property Records - "county records office" template
   (cool off-white, slate + terracotta, Archivo headings,
    full-width slate header, blueprint-grid search hero,
    right sidebar, document-margin section heads, slate foot)
   ========================================================= */

:root {
    --ink: #22303c;
    --ink-soft: #46586a;
    --ink-mute: #7b8a99;
    --slate: #34495e;
    --slate-deep: #223140;
    --slate-wash: #eef2f6;
    --rust: #b0532c;
    --rust-deep: #8c3f1e;
    --rust-wash: #f6ece5;
    --paper: #ffffff;
    --mist: #f5f7f9;
    --line: #dbe2e8;
    --line-soft: #e9eef2;
    --ok: #3c7d4e;
    --alert: #a23a2a;
    --shell: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16.5px;
    line-height: 1.68;
    color: var(--ink);
    background: var(--mist);
}

h1, h2, h3, h4, h5 {
    font-family: 'Archivo', 'Inter', sans-serif;
    font-weight: 700;
}

a { color: var(--rust-deep); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--slate); }

img { max-width: 100%; height: auto; display: block; }

.shell {
    max-width: var(--shell);
    margin: 0 auto;
    padding: 0 22px;
}

/* =========================================================
   SITE HEADER - slate logo bar + full-width nav bar below
   ========================================================= */
.site-head {
    background: var(--slate-deep);
}

.site-head .shell {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 14px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
}

.brand img { height: 42px; width: auto; }

.brand-name {
    font-family: 'Archivo', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    line-height: 1.12;
    letter-spacing: .2px;
}

.brand-name em {
    font-style: normal;
    color: #e6a179;
}

/* Full-width nav bar under the logo bar */
.nav-bar {
    background: var(--slate);
    border-top: 1px solid var(--slate-deep);
    border-bottom: 3px solid var(--rust);
}

.nav-bar .shell {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    padding-top: 2px;
    padding-bottom: 2px;
}

.nav-bar a {
    padding: 10px 13px;
    color: #c4d0dc;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s, color .15s;
}

.nav-bar a:hover { background: rgba(255,255,255,.07); color: #fff; }

.nav-bar a.current {
    color: #fff;
    background: var(--rust);
}

/* =========================================================
   HEAD BAND - page title on slate-wash
   ========================================================= */
.head-band {
    background: var(--slate-wash);
    border-bottom: 1px solid var(--line);
    padding: 30px 0 26px;
}

.head-band h1 {
    font-size: 33px;
    line-height: 1.18;
    color: var(--slate-deep);
    margin: 0;
}

.head-band .crumbs {
    color: var(--ink-mute);
    font-size: 13px;
    margin-bottom: 8px;
}

.head-band .crumbs a { color: var(--ink-soft); text-decoration: none; }
.head-band .crumbs a:hover { color: var(--rust-deep); text-decoration: underline; }

/* Intro band */
.intro-band {
    background: var(--paper);
    border-bottom: 1px solid var(--line-soft);
    padding: 22px 0 18px;
}

.intro-band p {
    font-size: 17px;
    line-height: 1.72;
    color: var(--ink-soft);
    margin: 0;
    max-width: none;
}

/* =========================================================
   SEARCH HERO - blueprint-grid band (protected widget inside)
   ========================================================= */
.search-hero {
    background:
        linear-gradient(var(--slate) 0 0),
        repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 26px),
        repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 26px);
    background-blend-mode: normal;
    padding: 26px 0;
    border-top: 1px solid var(--slate-deep);
    border-bottom: 4px solid var(--rust);
}

.hero-box {
    background: var(--paper);
    border-radius: 5px;
    padding: 20px 22px 14px;
    box-shadow: 0 6px 20px rgba(20,30,40,.28);
}

.hero-box h2 {
    font-size: 19px;
    color: var(--slate-deep);
    margin: 0 0 12px;
}

.hero-box .ad-note {
    font-size: 11.5px;
    color: var(--ink-mute);
    margin: 8px 0 0;
    text-align: right;
}

.search-hero.hero-close {
    border-top: 4px solid var(--rust);
    border-bottom: 0;
}

/* Stacked search: labels + divider (name + address in one box) */
.hero-box .stack-label,
.aside-card .stack-label {
    display: block;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--slate-deep);
    margin-bottom: 8px;
    font-size: 13px;
}

.hero-box .stack-or {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0 14px;
    color: var(--ink-mute);
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: .6px;
}
.hero-box .stack-or::before,
.hero-box .stack-or::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

/* =========================================================
   MAIN LAYOUT - article left, sidebar RIGHT
   ========================================================= */
.records-main {
    padding: 32px 0 46px;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 36px;
    align-items: start;
}

.split.solo { grid-template-columns: minmax(0, 1fr); }

.doc { min-width: 0; }

.doc > section { margin-bottom: 26px; }

.doc img {
    max-width: 100%;
    max-height: 450px;
    width: auto;
    height: auto;
    margin: 16px 0;
    border: 1px solid var(--line);
    border-radius: 4px;
}

.doc h2 {
    font-size: 25px;
    color: var(--slate-deep);
    line-height: 1.26;
    margin: 6px 0 14px;
    padding-left: 13px;
    border-left: 4px solid var(--rust);
}

.doc h3 {
    font-size: 18.5px;
    color: var(--ink);
    margin: 18px 0 10px;
}

.doc p { margin-bottom: 15px; color: var(--ink-soft); }

.doc ul, .doc ol { margin: 12px 0 18px 24px; color: var(--ink-soft); }
.doc li { margin-bottom: 7px; }

.doc dl { margin: 14px 0 18px; }
.doc dt { font-weight: 700; color: var(--ink); margin-top: 10px; font-family: 'Archivo', sans-serif; }
.doc dd { margin-left: 0; color: var(--ink-soft); padding-left: 14px; border-left: 3px solid var(--slate-wash); }

/* Divider - short slate rule with a terracotta cap */
.div-line {
    border: 0;
    height: 2px;
    background: var(--line);
    margin: 30px 0;
    position: relative;
}
.div-line::before {
    content: "";
    position: absolute;
    left: 0; top: 0;
    width: 46px; height: 2px;
    background: var(--rust);
}

/* =========================================================
   SIDEBAR (right column)
   ========================================================= */
.aside {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: 14px;
}

.aside-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 15px 16px 13px;
    box-shadow: 0 1px 2px rgba(30,45,60,.05);
}

.aside-card h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--slate-deep);
    text-transform: uppercase;
    letter-spacing: .7px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--rust);
}

.aside-card ul { list-style: none; margin: 0; }

.aside-card li {
    padding: 6px 0;
    font-size: 13.5px;
    border-bottom: 1px solid var(--line-soft);
}
.aside-card li:last-child { border-bottom: 0; }

.aside-card li a { text-decoration: none; color: var(--ink-soft); display: block; }
.aside-card li a:hover { color: var(--rust-deep); text-decoration: underline; }

.aside-card img { border-radius: 3px; margin-bottom: 10px; }

.aside-facts { font-size: 13px; color: var(--ink-soft); line-height: 1.6; }
.aside-facts strong {
    color: var(--slate-deep);
    display: block;
    margin-top: 8px;
    font-family: 'Archivo', sans-serif;
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.aside-facts strong:first-child { margin-top: 0; }

/* Sidebar search: stack the name form to one column */
.aside-search .search-widget .search-form { grid-template-columns: 1fr; gap: 8px; }
.aside-search .search-widget .address-row { grid-template-columns: 1fr; gap: 8px; }
.aside-search .ad-note { font-size: 11px; color: var(--ink-mute); text-align: center; margin: 6px 0 0; }

/* =========================================================
   BUREAU CARDS - records-office grid
   ========================================================= */
.bureau-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin: 18px 0 24px;
}

.bureau {
    background: var(--paper);
    border: 1px solid var(--line);
    border-top: 3px solid var(--slate);
    border-radius: 4px;
    padding: 15px 17px;
    box-shadow: 0 1px 2px rgba(30,45,60,.05);
}

.bureau h4 { font-size: 15.5px; color: var(--slate-deep); margin-bottom: 8px; line-height: 1.3; }
.bureau p { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 4px; line-height: 1.55; }
.bureau .phone { color: var(--ink); font-weight: 600; }

/* =========================================================
   TABLES
   ========================================================= */
.rec-table,
.pair-table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0 24px;
    background: var(--paper);
    border: 1px solid var(--line);
    font-size: 14.5px;
}

.rec-table th, .rec-table td,
.pair-table th, .pair-table td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--line-soft);
    text-align: left;
    vertical-align: top;
}

.rec-table thead th {
    background: var(--slate);
    color: #fff;
    font-family: 'Archivo', sans-serif;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .5px;
    border-bottom: 1px solid var(--slate-deep);
}

.pair-table th {
    background: var(--slate-wash);
    color: var(--ink);
    font-weight: 600;
    width: 36%;
}

.rec-table tr:last-child td,
.pair-table tr:last-child td,
.pair-table tr:last-child th { border-bottom: 0; }

.rec-table tbody tr:nth-child(even) td { background: var(--mist); }

/* =========================================================
   CALLOUTS
   ========================================================= */
.callout {
    padding: 13px 16px;
    margin: 18px 0;
    font-size: 14.5px;
    line-height: 1.6;
    background: var(--paper);
    border: 1px solid var(--line);
    border-left: 4px solid var(--slate);
    border-radius: 3px;
    color: var(--ink);
}
.callout strong { color: var(--slate-deep); }
.callout-tip  { border-left-color: var(--slate); background: var(--slate-wash); }
.callout-key  { border-left-color: var(--rust); background: var(--rust-wash); }
.callout-warn { border-left-color: var(--alert); background: #f8ebe7; }
.callout-warn strong { color: var(--alert); }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
    display: inline-block;
    padding: 11px 24px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    border-radius: 3px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s;
}
.btn-go { background: var(--rust); color: #fff; }
.btn-go:hover { background: var(--rust-deep); color: #fff; }
.btn-plain { background: #fff; color: var(--slate); border: 1px solid var(--slate); }
.btn-plain:hover { background: var(--slate-wash); }

/* =========================================================
   SEARCH WIDGET (markup from search.js - names are fixed)
   ========================================================= */
.search-widget { width: 100%; }

.search-widget .search-form {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.search-widget .search-input,
.search-widget .search-select,
.search-widget .search-button {
    padding: 12px 14px;
    font-size: 15px;
    font-family: inherit;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: #fff;
}

.search-widget .search-button {
    background: var(--rust);
    color: #fff;
    font-weight: 600;
    border: none;
    cursor: pointer;
    padding: 12px 14px;
    text-transform: uppercase;
    letter-spacing: .6px;
}
.search-widget .search-button:hover { background: var(--rust-deep); }

.search-widget .search-input:focus,
.search-widget .search-select:focus {
    outline: none;
    border-color: var(--rust);
    box-shadow: 0 0 0 2px rgba(176,83,44,.16);
}

/* Phone form (unused on this site, styled for safety) */
.search-widget .search-form-phone { display: block; }
.search-widget .phone-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.search-widget .search-form-phone .search-input { grid-column: span 3; }

.search-widget .search-label {
    display: block;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--slate-deep);
    margin-bottom: 8px;
    font-size: 13px;
}

.secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
    color: var(--ok);
    font-style: italic;
    font-size: 13.5px;
}
.secure-note svg { width: 15px; height: 15px; fill: var(--ok); flex-shrink: 0; }
/* At the foot of the search hero, sits below both forms, above the sponsored note */
.hero-box .secure-note { margin-top: 14px; }

/* Address form */
.search-widget .search-form-address { display: block; }
.search-widget .address-row {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
    gap: 10px;
    align-items: end;
}
.search-widget .address-row .field { display: flex; flex-direction: column; }
.search-widget .search-form-address .search-input,
.search-widget .search-form-address .search-select { width: 100%; }
.search-widget .search-form-address .search-button { padding: 12px 14px; white-space: nowrap; }

@media (max-width: 760px) {
    .search-widget .address-row { grid-template-columns: 1fr; }
    .search-widget .search-form-address .search-button { width: 100%; }
}

/* Name+phone (unused) safety */
.search-widget .np-or {
    display: flex; align-items: center; gap: 12px; margin: 14px 0;
    color: var(--ink-mute); font-size: 12.5px; text-transform: uppercase; letter-spacing: .6px;
}
.search-widget .np-or::before, .search-widget .np-or::after {
    content: ""; flex: 1; height: 1px; background: var(--line-soft);
}

/* =========================================================
   FOOTER - dark slate
   ========================================================= */
.site-foot {
    background: var(--slate-deep);
    color: #b6c4d1;
    margin-top: 42px;
    font-size: 14px;
}

.foot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 32px 0 24px;
}

.foot-grid h5 {
    font-family: 'Archivo', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.foot-grid ul { list-style: none; }
.foot-grid li { margin-bottom: 7px; }
.foot-grid a { color: #b6c4d1; text-decoration: none; }
.foot-grid a:hover { color: #fff; text-decoration: underline; }

.foot-legal {
    border-top: 1px solid #34475a;
    padding: 16px 0;
    font-size: 12.5px;
    color: #8fa2b3;
    line-height: 1.6;
}
.foot-legal strong { color: #d6e0e8; }

.foot-base {
    background: #1a2632;
    border-top: 1px solid #34475a;
    padding: 13px 0;
    text-align: center;
    font-size: 12px;
    color: #7688996b;
    color: #7d8fa0;
}
.foot-base a { color: #8fa2b3; }

/* =========================================================
   DIRECTORY HUB LISTS (main-template only)
   ========================================================= */
.county-list {
    columns: 3;
    column-gap: 32px;
    margin: 14px 0 20px 0 !important;
    list-style: none;
}
.county-list li {
    break-inside: avoid;
    padding: 5px 0;
    border-bottom: 1px solid var(--line-soft);
    margin: 0;
}
.county-list li a { text-decoration: none; color: var(--ink-soft); }
.county-list li a:hover { color: var(--rust-deep); text-decoration: underline; }
@media (max-width: 900px) { .county-list { columns: 2; } }
@media (max-width: 560px) { .county-list { columns: 1; } }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 960px) {
    .split { grid-template-columns: 1fr; }
    .aside { position: static; }
    .foot-grid { grid-template-columns: 1fr 1fr; }
    .head-band h1 { font-size: 27px; }
}

@media (max-width: 700px) {
    .nav-bar a { padding: 8px 10px; font-size: 12.5px; }
    .search-widget .search-form { grid-template-columns: 1fr; }
    .search-widget .search-button { padding: 14px; }
    .doc h2 { font-size: 21px; }
    .head-band { padding: 22px 0 18px; }
    .head-band h1 { font-size: 23px; }
    .foot-grid { grid-template-columns: 1fr; gap: 22px; }
    .site-head .shell { justify-content: center; text-align: center; }
}
