/* =========================================================
   County Court Docket - reference template
   Single-column, single-row masthead, slab headings,
   parchment ground. Class vocabulary is unique to this
   project (do not reuse names from sibling networks).
   ========================================================= */

:root {
    --slate: #2d3a4a;
    --slate-deep: #1c2733;
    --slate-mid: #45586d;
    --slate-soft: #eef1f5;
    --clay: #be5a38;
    --clay-deep: #9c4526;
    --clay-soft: #f6e7df;
    --ink: #24282d;
    --ink-soft: #4a5158;
    --ink-faint: #727a82;
    --paper: #ffffff;
    --parch: #faf7f2;
    --parch-deep: #f2ebdf;
    --panel: #f3ece0;
    --rule: #ddd6c8;
    --rule-soft: #e8e2d6;
    --seal: #7a2e2e;
    --lift: 0 1px 2px rgba(28,39,51,.07);
    --lift-md: 0 4px 16px rgba(28,39,51,.10);
    --shell-max: 1080px;
}

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

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4, h5 {
    font-family: 'Zilla Slab', Georgia, 'Times New Roman', serif;
    letter-spacing: .1px;
}

a { color: var(--clay-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-max);
    margin: 0 auto;
    padding: 0 26px;
}

/* =========================================================
   MASTHEAD - single row: brandmark left, nav right,
   thin clay keel on top
   ========================================================= */
.masthead {
    background: var(--paper);
    border-top: 3px solid var(--clay);
    border-bottom: 1px solid var(--rule);
}

.masthead .shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 15px;
    padding-bottom: 15px;
}

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

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

.brandmark .wordmark {
    font-family: 'Zilla Slab', Georgia, serif;
    font-size: 21px;
    font-weight: 700;
    color: var(--slate-deep);
    line-height: 1.05;
}

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

.mainnav a {
    padding: 8px 13px;
    color: var(--slate-mid);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 3px;
    transition: color .15s, background .15s;
}

.mainnav a:hover { color: var(--clay-deep); background: var(--parch-deep); }

.mainnav a.current {
    color: var(--slate-deep);
    box-shadow: inset 0 -2px 0 var(--clay);
    border-radius: 0;
}

/* =========================================================
   PAGE HERO - parchment band, slab H1, clay underline
   ========================================================= */
.pagehero {
    background: var(--parch-deep);
    border-bottom: 1px solid var(--rule);
    padding: 32px 0 28px;
}

.pagehero .trail {
    font-size: 13px;
    color: var(--ink-faint);
    margin-bottom: 7px;
}

.pagehero .trail a { color: var(--slate-mid); text-decoration: none; }
.pagehero .trail a:hover { text-decoration: underline; }

.pagehero h1 {
    font-size: 35px;
    font-weight: 700;
    color: var(--slate-deep);
    line-height: 1.14;
    display: inline-block;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--clay);
}

/* =========================================================
   LEAD - opening paragraph
   ========================================================= */
.lead {
    background: var(--parch);
    padding: 26px 0 8px;
}

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

/* =========================================================
   DOCK BAND - search panel (holds the protected widget)
   ========================================================= */
.dockband { padding: 20px 0 26px; }

.dockbox {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 8px;
    padding: 22px 24px 16px;
    box-shadow: var(--lift-md);
    position: relative;
}

.dockbox::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--clay);
    border-radius: 8px 0 0 8px;
}

.dockbox h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--slate-deep);
    margin-bottom: 13px;
}

.dock-note {
    font-size: 12px;
    color: var(--ink-faint);
    margin-top: 9px;
}

/* =========================================================
   DOCKET - main single-column article (no sidebar)
   ========================================================= */
.reading { padding: 8px 0 50px; }

.docket {
}

.docket > .block { margin-bottom: 32px; }

.docket img {
    max-width: 100%;
    max-height: 430px;
    width: auto;
    height: auto;
    margin: 16px 0;
    border: 1px solid var(--rule);
    border-radius: 5px;
}

.docket h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--slate-deep);
    line-height: 1.22;
    margin: 4px 0 13px;
}

.docket h2::after {
    content: "";
    display: block;
    width: 46px;
    height: 3px;
    margin-top: 7px;
    background: var(--clay);
    border-radius: 2px;
}

.docket h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--slate);
    margin: 18px 0 8px;
}

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

.docket ul, .docket ol { margin: 12px 0 18px 22px; color: var(--ink-soft); }
.docket li { margin-bottom: 6px; }

/* =========================================================
   RECORD TABLES
   .record-table = multi-column (filled header)
   .spec-table   = 2-column field/value
   ========================================================= */
.record-table, .spec-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 22px;
    background: var(--paper);
    border: 1px solid var(--rule);
    font-size: 14.5px;
}

.record-table th, .record-table td,
.spec-table th, .spec-table td {
    padding: 11px 13px;
    border: 1px solid var(--rule-soft);
    text-align: left;
    vertical-align: top;
}

.record-table thead th {
    background: var(--slate);
    color: #fff;
    font-family: 'Karla', sans-serif;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .6px;
}

.record-table tbody tr:nth-child(odd) td { background: var(--parch); }

.spec-table th {
    background: var(--slate-soft);
    color: var(--slate-deep);
    font-family: 'Karla', sans-serif;
    font-weight: 700;
    width: 34%;
}

/* case numbers / codes get a docket-style monospace touch */
.casecode {
    font-family: 'DM Mono', 'Courier New', monospace;
    font-size: .92em;
    color: var(--seal);
    background: var(--clay-soft);
    padding: 1px 5px;
    border-radius: 3px;
}

/* =========================================================
   CALLOUTS
   ========================================================= */
.callout {
    padding: 13px 16px;
    border-radius: 6px;
    margin: 16px 0;
    font-size: 15px;
    line-height: 1.6;
    border: 1px solid var(--rule);
    border-left: 4px solid var(--slate-mid);
    background: var(--paper);
    color: var(--ink);
}

.callout-info { border-left-color: var(--slate-mid); background: var(--slate-soft); color: var(--slate-deep); }
.callout-key  { border-left-color: var(--clay); background: var(--clay-soft); color: #5f2f1a; }
.callout-flag { border-left-color: var(--seal); background: #f6e6e6; color: #5f1f1f; }

/* =========================================================
   TERMS (definition list)
   ========================================================= */
.terms {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 6px;
    padding: 16px 18px;
    margin: 16px 0 22px;
}

.terms dt { font-weight: 700; color: var(--slate-deep); margin-top: 10px; }
.terms dt:first-child { margin-top: 0; }
.terms dd { margin-left: 0; color: var(--ink-soft); font-size: 15px; }

/* =========================================================
   OFFICE CARDS (court / clerk address blocks)
   ========================================================= */
.office-set {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin: 16px 0 22px;
}

.office {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-top: 4px solid var(--slate);
    border-radius: 6px;
    padding: 15px 17px;
    box-shadow: var(--lift);
}

.office h4 { font-size: 15.5px; font-weight: 700; color: var(--slate-deep); margin-bottom: 7px; }
.office p { font-size: 14px; color: var(--ink-soft); margin-bottom: 4px; line-height: 1.5; }
.office .tel { color: var(--ink); font-weight: 700; }

/* =========================================================
   TALLY STRIP (small stats row)
   ========================================================= */
.tally {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 48px;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 8px;
    padding: 20px 24px;
    margin: 4px 0 8px;
}

.tally-row {
    display: block;
    max-width: 300px;
    text-align: center;
}

.tally-num { font-family: 'Zilla Slab', serif; font-size: 26px; font-weight: 700; color: var(--clay-deep); display: block; }
.tally-cap { font-size: 12px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .7px; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
    display: inline-block;
    padding: 10px 22px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}

.btn-fill { background: var(--slate); color: #fff; }
.btn-fill:hover { background: var(--slate-deep); color: #fff; }
.btn-edge { background: var(--paper); color: var(--slate); border: 1px solid var(--slate); }
.btn-edge:hover { background: var(--slate-soft); }

/* =========================================================
   SEARCH WIDGET (markup injected by protected search.js -
   .search-widget / .search-form / .search-input /
   .search-select / .search-button 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 {
    padding: 12px 13px;
    font-size: 15px;
    font-family: inherit;
    border: 1px solid var(--rule);
    border-radius: 5px;
    background: #fff;
    color: var(--ink);
}

.search-widget .search-input:focus,
.search-widget .search-select:focus {
    outline: none;
    border-color: var(--slate-mid);
    box-shadow: 0 0 0 3px rgba(69,88,109,.16);
}

.search-widget .search-button {
    background: var(--clay);
    color: #fff;
    font-weight: 700;
    font-family: inherit;
    font-size: 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    padding: 12px 13px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

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

/* =========================================================
   FOOTER - dark slate, columns, FCRA legal at bottom
   ========================================================= */
.pagefoot {
    background: var(--slate-deep);
    color: #c3ccd6;
    margin-top: 46px;
}

.foot-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    padding: 34px 0 28px;
}

.foot-cols h5 {
    font-family: 'Zilla Slab', serif;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    letter-spacing: .4px;
    margin-bottom: 12px;
    padding-bottom: 7px;
    border-bottom: 1px solid rgba(255,255,255,.15);
}

.foot-cols ul { list-style: none; }
.foot-cols li { margin-bottom: 7px; font-size: 14px; }
.foot-cols a { color: #c3ccd6; text-decoration: none; }
.foot-cols a:hover { color: #fff; text-decoration: underline; }

.foot-legal {
    border-top: 1px solid rgba(255,255,255,.13);
    padding: 16px 0;
    font-size: 12.5px;
    color: #93a0ad;
    line-height: 1.6;
}

.foot-legal strong { color: #dbe2e9; }

.foot-base {
    background: #14202b;
    padding: 13px 0;
    text-align: center;
    font-size: 12px;
    color: #7c8894;
}

.foot-base a { color: #93a0ad; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 760px) {
    .masthead .shell { justify-content: center; }
    .mainnav a { padding: 7px 9px; font-size: 13px; }
    .pagehero h1 { font-size: 26px; }
    .docket h2 { font-size: 22px; }
    .search-widget .search-form { grid-template-columns: 1fr; }
    .search-widget .search-button { padding: 14px; }
    .foot-cols { grid-template-columns: 1fr; gap: 22px; }
    .lead p { font-size: 16px; }
}
