/* =========================================================
   Local People Search - records-desk template
   (left rail layout, serif display headings, teal/copper
    palette, ledger-style tables, quiet single-rule dividers)
   ========================================================= */

:root {
    --brand: #0d5c63;
    --brand-deep: #08424a;
    --brand-wash: #e7f1f1;
    --copper: #c96f2f;
    --copper-wash: #f9efe5;
    --ink: #22292d;
    --ink-soft: #4a565c;
    --ink-mute: #71808a;
    --paper: #ffffff;
    --paper-soft: #f5f7f7;
    --paper-tint: #eef3f2;
    --line: #d7e0e0;
    --line-soft: #e5ecec;
    --alert: #a33327;
    --ok: #4c8a2e;
    --lift-sm: 0 1px 3px rgba(13,44,48,.07);
    --lift-md: 0 3px 12px rgba(13,44,48,.08);
    --wrap: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Source Sans 3', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink);
    background: var(--paper);
}

h1, h2, h3, h4 {
    font-family: 'Lora', Georgia, 'Times New Roman', serif;
}

a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--copper); }

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

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

/* =========================================================
   MASTHEAD
   ========================================================= */
.masthead {
    background: var(--paper);
    border-bottom: 3px solid var(--brand);
    padding: 16px 0;
}

.masthead .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    color: var(--ink);
}

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

.brand-name {
    font-family: 'Lora', Georgia, serif;
    font-size: 21px;
    font-weight: 700;
    color: var(--brand-deep);
    line-height: 1.15;
}

.brand-name em {
    font-style: normal;
    color: var(--copper);
}

.menu {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
}

.menu a {
    padding: 9px 13px;
    color: var(--ink-soft);
    font-size: 13.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color .15s, border-color .15s;
}

.menu a:hover { color: var(--brand); }

.menu a.here {
    color: var(--brand-deep);
    border-bottom-color: var(--copper);
}

/* =========================================================
   PAGE HEAD - title band (all pages)
   ========================================================= */
.page-head {
    background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 78%);
    color: #fff;
    padding: 34px 0 30px;
}

.page-head h1 {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.page-head .crumb {
    color: #a9c8ca;
    font-size: 13px;
    margin-bottom: 8px;
}

.page-head .crumb a { color: #d6e6e7; text-decoration: none; }
.page-head .crumb a:hover { color: #fff; text-decoration: underline; }

/* Lede - intro paragraph band, tinted so it reads as part of the head */
.lede {
    background: var(--paper-tint);
    border-bottom: 1px solid var(--line-soft);
    padding: 24px 0 20px;
}

.lede p {
    font-size: 17.5px;
    line-height: 1.72;
    color: var(--ink);
    margin: 0;
}

/* =========================================================
   FINDER BAND - full-width search band (protected widget inside)
   ========================================================= */
.finder-band {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 26px 0;
}

.finder-inner {
    background: var(--paper-soft);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 20px 22px 14px;
    box-shadow: var(--lift-sm);
}

.finder-inner h2 {
    font-size: 19px;
    font-weight: 700;
    color: var(--brand-deep);
    margin: 0 0 12px;
}

.finder-inner .ad-note {
    font-size: 12px;
    color: var(--ink-mute);
    margin: 8px 0 0;
    text-align: right;
}

/* Bottom-of-page repeat of the finder band */
.finder-band.finder-close {
    border-top: 1px solid var(--line);
    border-bottom: 0;
    background: var(--paper-soft);
}

.finder-close .finder-inner { background: #fff; }

/* =========================================================
   MAIN LAYOUT - LEFT rail + article
   (article stays first in the DOM; grid places it right)
   ========================================================= */
.page-main {
    padding: 34px 0 46px;
}

.layout {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 38px;
    align-items: start;
}

.layout .article { grid-column: 2; grid-row: 1; }
.layout .rail    { grid-column: 1; grid-row: 1; }

/* Single-column layout (about / legal pages) */
.layout.solo { grid-template-columns: minmax(0, 1fr); }
.layout.solo .article { grid-column: 1; }

.article { min-width: 0; }

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

/* Content images: capped display size, aspect preserved */
.article img {
    max-width: 100%;
    max-height: 440px;
    width: auto;
    height: auto;
    margin: 16px 0;
    border: 1px solid var(--line-soft);
    border-radius: 4px;
}

.article h2 {
    font-size: 27px;
    font-weight: 700;
    color: var(--brand-deep);
    line-height: 1.25;
    margin: 6px 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--line-soft);
}

.article h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--ink);
    margin: 18px 0 10px;
}

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

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

.article li { margin-bottom: 7px; }

.article dl { margin: 14px 0 18px; }

.article dt { font-weight: 700; color: var(--ink); margin-top: 10px; }
.article dd { margin-left: 0; color: var(--ink-soft); padding-left: 14px; border-left: 3px solid var(--brand-wash); }

/* Quiet divider - short copper tick, no ornament row */
.rule {
    border: 0;
    height: 3px;
    width: 64px;
    background: var(--copper);
    border-radius: 2px;
    margin: 30px auto 30px 0;
    opacity: .55;
}

/* =========================================================
   RAIL (left column)
   ========================================================= */
.rail {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 14px;
}

.rail-box {
    background: var(--paper-soft);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 16px 16px 14px;
}

.rail-box h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--brand-deep);
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--copper);
}

.rail-box ul {
    list-style: none;
    margin: 0;
}

.rail-box li {
    padding: 6px 0;
    font-size: 14px;
    border-bottom: 1px dashed var(--line-soft);
}

.rail-box li:last-child { border-bottom: 0; }

.rail-box li a {
    text-decoration: none;
    color: var(--ink-soft);
    display: block;
}

.rail-box li a:hover { color: var(--brand); text-decoration: underline; }

.rail-box img {
    border-radius: 4px;
    margin-bottom: 10px;
}

.rail-facts {
    font-size: 13.5px;
    color: var(--ink-soft);
    line-height: 1.6;
}

.rail-facts strong {
    color: var(--brand-deep);
    display: block;
    margin-top: 8px;
}

.rail-facts strong:first-child { margin-top: 0; }

/* Rail search variation - stack widget fields vertically */
.rail-search .search-widget .search-form {
    grid-template-columns: 1fr;
    gap: 8px;
}

.rail-search .search-widget .phone-row {
    grid-template-columns: 1fr;
    gap: 8px;
}

.rail-search .search-widget .search-form-phone .search-input {
    grid-column: auto;
}

.rail-search .ad-note {
    font-size: 11px;
    color: var(--ink-mute);
    text-align: center;
    margin: 6px 0 0;
}

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

.office-card {
    background: #fff;
    border: 1px solid var(--line);
    border-top: 4px solid var(--copper);
    border-radius: 5px;
    padding: 15px 17px;
    box-shadow: var(--lift-sm);
}

.office-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--brand-deep);
    margin-bottom: 8px;
    line-height: 1.3;
}

.office-card p {
    font-size: 14px;
    color: var(--ink-soft);
    margin-bottom: 4px;
    line-height: 1.55;
}

.office-card .phone { color: var(--ink); font-weight: 600; }

/* =========================================================
   TABLES - ledger style (records-table has header row,
   facts-table is 2-col label/value)
   ========================================================= */
.records-table,
.facts-table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0 24px;
    background: #fff;
    border: 1px solid var(--line);
    font-size: 15px;
}

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

.records-table thead th {
    background: var(--brand-wash);
    color: var(--brand-deep);
    font-weight: 700;
    font-size: 13.5px;
    text-transform: uppercase;
    letter-spacing: .5px;
    border-bottom: 2px solid var(--brand);
}

.facts-table th {
    background: var(--paper-soft);
    color: var(--ink);
    font-weight: 600;
    width: 36%;
}

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

.records-table tbody tr:hover td { background: var(--paper-soft); }

/* =========================================================
   CALLOUTS
   ========================================================= */
.callout {
    padding: 14px 16px 14px 18px;
    border-radius: 4px;
    margin: 18px 0;
    font-size: 15px;
    line-height: 1.6;
    background: var(--paper-soft);
    border: 1px solid var(--line);
    border-left: 5px solid var(--brand);
    color: var(--ink);
}

.callout strong { color: var(--brand-deep); }

.callout-tip   { border-left-color: var(--brand); background: var(--brand-wash); }
.callout-key   { border-left-color: var(--copper); background: var(--copper-wash); }
.callout-alert { border-left-color: var(--alert); background: #fbeae7; }
.callout-alert strong { color: var(--alert); }

/* =========================================================
   STAT STRIP (optional small numbers row)
   ========================================================= */
.stat-strip {
    background: var(--paper-soft);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    padding: 18px 0;
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    text-align: center;
}

.stat-row .n {
    font-family: 'Lora', Georgia, serif;
    font-size: 25px;
    font-weight: 700;
    color: var(--copper);
    display: block;
}

.stat-row .l {
    font-size: 12px;
    color: var(--ink-mute);
    text-transform: uppercase;
    letter-spacing: .7px;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
    display: inline-block;
    padding: 11px 24px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s;
}

.btn-main { background: var(--brand); color: #fff; }
.btn-main:hover { background: var(--brand-deep); color: #fff; }

.btn-ghost { background: #fff; color: var(--brand); border: 1px solid var(--brand); }
.btn-ghost:hover { background: var(--brand-wash); }

/* =========================================================
   SEARCH WIDGET (markup generated by search.js -
   selector names are fixed, do NOT rename these)
   ========================================================= */
.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: 4px;
    background: #fff;
}

.search-widget .search-button {
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    border: none;
    cursor: pointer;
    padding: 12px 14px;
    text-transform: uppercase;
    letter-spacing: .7px;
}

.search-widget .search-button:hover { background: var(--brand-deep); }

.search-widget .search-input:focus,
.search-widget .search-select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 2px rgba(13,92,99,.16);
}

/* ---- Phone search form (data-search-type="phone") ---- */
.search-widget .search-form-phone { display: block; }

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

.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;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 4px;
}

.search-widget .search-form-phone .search-button {
    padding: 12px 14px;
    white-space: nowrap;
}

.search-widget .secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
    color: var(--ok);
    font-style: italic;
    font-size: 14px;
}

.search-widget .secure-note svg {
    width: 15px;
    height: 15px;
    fill: var(--ok);
    flex-shrink: 0;
}

/* ---- Address search form (data-search-type="address") ---- */
.search-widget .search-form-address { display: block; }

.search-widget .address-row {
    display: grid;
    grid-template-columns: 1.6fr 1.1fr 1fr auto;
    gap: 12px;
    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%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 4px;
}

.search-widget .search-form-address .search-button {
    border-radius: 4px;
    padding: 12px 30px;
    white-space: nowrap;
}

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

/* ---- Stacked Name + Phone widget (data-search-type="name-phone") ---- */
.search-widget .np-block .search-label { margin-bottom: 6px; }

.search-widget .np-or {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 14px 0;
    color: var(--ink-mute);
    font-size: 13px;
    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
   ========================================================= */
.site-end {
    background: #10262a;
    color: #b9c9cb;
    margin-top: 44px;
    font-size: 14px;
}

.end-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 34px 0 26px;
}

.end-grid h5 {
    font-family: 'Lora', Georgia, serif;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

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

.end-legal {
    border-top: 1px solid #22393d;
    padding: 16px 0;
    font-size: 12.5px;
    color: #8ba0a3;
    line-height: 1.6;
}

.end-legal strong { color: #d7e3e4; }

.end-base {
    background: #0a1b1e;
    border-top: 1px solid #22393d;
    padding: 13px 0;
    text-align: center;
    font-size: 12px;
    color: #728a8d;
}

.end-base a { color: #8ba0a3; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
    .layout { grid-template-columns: 1fr; }
    .layout .article { grid-column: 1; grid-row: 1; }
    .layout .rail    { grid-column: 1; grid-row: 2; position: static; }
    .end-grid { grid-template-columns: 1fr 1fr; }
    .page-head h1 { font-size: 28px; }
}

@media (max-width: 700px) {
    .menu a { padding: 6px 9px; font-size: 12.5px; }
    .search-widget .search-form { grid-template-columns: 1fr; }
    .search-widget .phone-row { grid-template-columns: 1fr; }
    .search-widget .search-form-phone .search-input { grid-column: auto; }
    .search-widget .search-button { padding: 14px; }
    .article h2 { font-size: 22px; }
    .page-head { padding: 24px 0 20px; }
    .page-head h1 { font-size: 24px; }
    .end-grid { grid-template-columns: 1fr; gap: 22px; }
}
