/* ============================================================================
   Portal.css - the public taxpayer portal (PortalController / _PortalLayout).

   Design: "the courthouse letterhead" at monumental scale. Besley (a Clarendon
   revival - the letterform of 19th-century county records) for the masthead and
   headings; Source Sans 3 for everything read and operated; Spline Sans Mono
   for parcel/statement/receipt numbers.

   County palette arrives as CSS custom properties injected by _PortalLayout
   (--accent, --accent-deep, --rule, --paper, --ink), contrast-guarded server
   side by PortalTheme. The semantic paid/owed/hold colors are FIXED below on
   purpose: status must mean the same thing in every county, so they are not
   county-configurable.

   WCAG floor: 320px reflow, 4.5:1 text contrast, 44px targets, visible focus,
   no color-only meaning, reduced-motion respected.
   ========================================================================== */

:root {
    /* Palette defaults - overridden per county by the inline block in _PortalLayout. */
    --accent: #136A63;
    --accent-deep: #0C4B46;
    --rule: #B98A2F;
    --paper: #F6F5F1;
    --ink: #1C2B33;

    /* Fixed system colors. */
    --ink-soft: #42565E;
    --card: #FFFFFF;
    --line: #DDD9D0;
    --line-soft: #E9E6DF;
    --accent-tint: #E7F0EE;
    --paid: #22633A;
    --paid-tint: #E8F2E9;
    --due: #8A2A1B;
    --due-tint: #F9ECE7;
    --hold: #7A5800;
    --hold-tint: #FBF3DC;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
    background: var(--paper);
    color: var(--ink);
    font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.55;
}

a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }

:focus-visible {
    outline: 3px solid var(--ink);
    outline-offset: 2px;
    border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

.p-wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

.visually-hidden {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skiplink {
    position: absolute; left: -9999px; top: 0; z-index: 100;
    background: var(--ink); color: #FFFFFF; padding: 12px 20px;
    font-weight: 700; text-decoration: none; border-radius: 0 0 8px 0;
}
.skiplink:focus { left: 0; color: #FFFFFF; }

/* --- Alert banner ------------------------------------------------------- */
.p-alert {
    background: var(--hold-tint);
    border-bottom: 1px solid #E4D5A8;
    color: var(--hold);
    font-weight: 600;
}
.p-alert .p-wrap {
    display: flex; align-items: center; gap: 12px;
    padding-top: 10px; padding-bottom: 10px;
}
.p-alert svg { flex: none; }

/* --- Masthead ----------------------------------------------------------- */
.p-masthead { background: var(--card); }
.p-mast-row {
    display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px;
    padding-top: 16px; padding-bottom: 12px;
}
.p-seal { flex: none; width: 80px; height: 80px; }
.p-compact .p-seal { width: 52px; height: 52px; }
.p-mast-names { min-width: 0; }
.p-mast-eyebrow {
    display: block;
    font: 700 clamp(17px, 2.6vw, 24px)/1.25 "Source Sans 3", Arial, sans-serif;
    letter-spacing: .13em; text-transform: uppercase; color: var(--accent);
}
.p-mast-county {
    font: 700 clamp(24px, 4.6vw, 42px)/1.06 "Besley", Georgia, serif;
    color: var(--ink);
    letter-spacing: -.01em;
    text-wrap: balance;
}
.p-compact .p-mast-county { font-size: 22px; }
.p-mast-homelink { color: var(--ink); text-decoration: none; }
.p-mast-homelink:hover { color: var(--accent-deep); text-decoration: underline; }
.p-mast-sub { font-size: 15px; color: var(--ink-soft); margin-top: 2px; }
.p-compact .p-mast-sub { font-size: 13px; }
.p-mast-phone {
    margin-left: auto; flex: none; text-align: right;
    display: flex; flex-direction: column; gap: 2px; align-items: flex-end;
}
.p-tel {
    font-weight: 700; font-size: 24px; color: var(--accent); text-decoration: none;
    display: inline-flex; align-items: center; min-height: 44px;
}
.p-compact .p-tel { font-size: 18px; }
a.p-tel:hover { text-decoration: underline; }
.p-hrs { font-size: 14px; color: var(--ink-soft); }
.p-cartlink { font-weight: 700; font-size: 16px; }
@media (max-width: 560px) {
    .p-seal { width: 64px; height: 64px; }
    .p-mast-phone { flex-basis: 100%; text-align: left; align-items: flex-start; }
}

.p-utilnav { background: var(--card); }
.p-utilnav .p-wrap {
    display: flex; flex-wrap: wrap; gap: 2px 6px;
    padding-top: 2px; padding-bottom: 10px;
}
.p-utilnav a {
    font: 600 15px/1 "Source Sans 3", Arial, sans-serif;
    color: var(--ink-soft); text-decoration: none;
    padding: 12px 12px; border-radius: 8px; min-height: 44px;
    display: inline-flex; align-items: center;
}
.p-utilnav a:hover { background: var(--paper); color: var(--ink); }
.p-utilnav .p-staff {
    margin-left: auto; font-weight: 400; font-size: 14px;
    text-decoration: underline; text-underline-offset: 3px;
}
.p-goldrule {
    height: 3px;
    background: linear-gradient(90deg, var(--rule), var(--rule) 55%, var(--rule));
    opacity: .85;
}

/* --- Contact band ------------------------------------------------------- */
.p-contactband {
    background: var(--card);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line);
}
.p-contact-grid {
    display: grid; gap: 16px 26px; grid-template-columns: 1fr;
    padding-top: 18px; padding-bottom: 18px;
}
@media (min-width: 720px) {
    .p-contact-grid { grid-template-columns: auto 1fr 1fr; align-items: start; }
}
.p-whoblock { display: flex; gap: 14px; align-items: center; }
.p-portrait {
    width: 72px; height: 84px; border-radius: 10px; overflow: hidden; flex: none;
    border: 1px solid var(--line); background: var(--paper);
}
.p-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.p-contact-name { font: 600 22px/1.3 "Besley", Georgia, serif; }
.p-contact-role { font-size: 15px; color: var(--ink-soft); }
.p-contact-h {
    font: 600 13px/1.2 "Source Sans 3", Arial, sans-serif;
    letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft);
    margin-bottom: 6px;
}
.p-contactband p { font-size: 16px; }
.p-feenote { font-size: 15px; color: var(--ink-soft); }

/* --- Search hero -------------------------------------------------------- */
.p-hero { padding: 64px 0 52px; }
.p-hero-inner { max-width: 720px; margin: 0 auto; }
.p-job {
    font: 600 clamp(38px, 8vw, 72px)/1.06 "Besley", Georgia, serif;
    letter-spacing: -.01em;
    text-wrap: balance;
}
.p-rotwrap { display: block; min-height: 1.12em; }
@media (max-width: 680px) { .p-rotwrap { min-height: 2.15em; } }
#rotText { display: inline-block; opacity: 1; transition: opacity .45s ease; }
#rotText.p-fade { opacity: 0; }
.p-job-sub { font-size: 21px; color: var(--ink-soft); margin-top: 12px; max-width: 32em; }
.p-searchform { margin-top: 26px; }
.p-searchlabel { display: block; font-weight: 700; font-size: 18px; margin-bottom: 10px; }
.p-searchrow { display: flex; gap: 10px; flex-wrap: wrap; }
.p-searchrow input[type="search"] {
    flex: 1 1 320px;
    font: 400 23px/1.2 "Source Sans 3", Arial, sans-serif;
    color: var(--ink);
    background: var(--card);
    border: 2.5px solid var(--ink-soft);
    border-radius: 14px;
    padding: 18px 20px;
    min-height: 74px;
    width: 100%;
}
.p-searchrow input[type="search"]::placeholder { color: #6E7E85; }

.p-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font: 700 21px/1 "Source Sans 3", Arial, sans-serif;
    border-radius: 14px; border: 2px solid transparent;
    min-height: 74px; padding: 16px 38px; cursor: pointer;
    text-decoration: none;
}
.p-btn-primary { background: var(--accent); color: #FFFFFF; }
.p-btn-primary:hover { background: var(--accent-deep); color: #FFFFFF; }
.p-btn-quiet {
    background: var(--card); color: var(--accent); border-color: var(--accent);
}
.p-btn-quiet:hover { background: var(--accent-tint); color: var(--accent-deep); }
.p-btn-small { min-height: 48px; font-size: 16px; padding: 10px 20px; border-radius: 10px; }

.p-hints { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.p-hint-lbl { font-size: 16px; color: var(--ink-soft); }
.p-hint {
    font-size: 16px; color: var(--ink);
    background: var(--card); border: 1px solid var(--line);
    border-radius: 999px; padding: 7px 14px;
}
.p-cantfind { margin-top: 18px; font-size: 16px; }

/* --- Announcements ------------------------------------------------------ */
.p-zones { padding: 8px 0 30px; }
.p-zone-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .p-zone-grid { grid-template-columns: 1fr 1fr; } }
.p-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 22px 22px 20px;
    box-shadow: 0 1px 2px rgba(28,43,51,.06), 0 4px 16px rgba(28,43,51,.07);
}
.p-card h2 { font: 600 24px/1.22 "Besley", Georgia, serif; margin-bottom: 6px; text-wrap: balance; }
.p-card p { color: var(--ink-soft); font-size: 16px; margin-top: 6px; }
.p-eyebrow {
    display: block;
    font: 600 12px/1.2 "Source Sans 3", Arial, sans-serif;
    letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
    margin-bottom: 8px;
}
.p-more { display: inline-block; margin-top: 12px; font-weight: 600; font-size: 16px; padding: 8px 0; }
.p-card-senior { border-top: 4px solid var(--rule); }
.p-card-img { max-width: 100%; border-radius: 8px; margin: 8px 0; display: block; }

/* --- FAQ band ----------------------------------------------------------- */
.p-faqband { background: var(--card); border-top: 1px solid var(--line); }
.p-faqband .p-wrap { padding-top: 26px; padding-bottom: 32px; }
.p-faqband h2 { font: 600 24px/1.2 "Besley", Georgia, serif; margin-bottom: 12px; }
.p-faqband-plain { background: transparent; border: 0; margin-top: 26px; }
.p-faqlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px 36px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .p-faqlist { grid-template-columns: 1fr 1fr; } }
.p-faqlist a { font-size: 16px; display: inline-block; padding: 7px 0; }

/* --- Results ------------------------------------------------------------ */
.p-searchagain { padding: 20px 0 6px; }
.p-searchagain input[type="search"] { min-height: 62px; font-size: 20px; }
.p-searchagain .p-btn { min-height: 62px; font-size: 19px; }

.p-results { padding: 10px 0 40px; }
.p-results-summary { font: 400 20px/1.4 "Source Sans 3", Arial, sans-serif; margin: 12px 0 4px; }
.p-note { font-size: 16px; color: var(--ink-soft); margin: 6px 0; }
.p-filterchips { display: flex; gap: 8px; margin: 12px 0 18px; flex-wrap: wrap; }
.p-chip {
    font: 600 15px/1 "Source Sans 3", Arial, sans-serif;
    border: 1.5px solid var(--ink-soft); border-radius: 999px;
    background: var(--card); color: var(--ink);
    padding: 13px 18px; min-height: 44px; text-decoration: none;
    display: inline-flex; align-items: center;
}
.p-chip-on { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }
.p-chip-on:hover { color: #FFFFFF; }

.p-ownercards { display: grid; gap: 14px; }
.p-ownercard {
    display: block;
    background: var(--card);
    border: 1px solid var(--line);
    border-left: 5px solid var(--line);
    border-radius: 12px;
    padding: 18px 20px;
    text-decoration: none; color: var(--ink);
    box-shadow: 0 1px 2px rgba(28,43,51,.06), 0 4px 16px rgba(28,43,51,.07);
}
.p-ownercard:hover { border-color: var(--accent); border-left-color: var(--accent); color: var(--ink); }
.p-oc-due { border-left-color: var(--due); }
.p-oc-paid { border-left-color: var(--paid); }
.p-oc-hold { border-left-color: var(--hold); }
.p-oc-top { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.p-oc-name { font: 600 21px/1.3 "Source Sans 3", Arial, sans-serif; }
.p-oc-type { font-size: 14px; color: var(--ink-soft); }
.p-oc-addr { display: block; font-size: 16px; color: var(--ink-soft); margin-top: 2px; }
.p-oc-addr b { color: var(--ink); font-weight: 600; }
.p-yearline { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.p-pill {
    display: inline-flex; align-items: center; gap: 6px;
    font: 600 16px/1.2 "Source Sans 3", Arial, sans-serif;
    border-radius: 8px; padding: 9px 14px;
    background: var(--line-soft); color: var(--ink-soft);
}
.p-pill-due { background: var(--due-tint); color: var(--due); }
.p-pill-paid { background: var(--paid-tint); color: var(--paid); }
.p-pill-hold { background: var(--hold-tint); color: var(--hold); }
.p-oc-go { display: block; margin-top: 12px; font-weight: 700; color: var(--accent); font-size: 16px; }

.p-helpstrip {
    background: var(--accent-tint);
    border: 1px solid #C6DAD6;
    border-radius: 12px;
    padding: 16px 20px; margin-top: 26px; font-size: 16px;
}

/* --- Empty state / help ------------------------------------------------- */
.p-emptycard {
    background: var(--card); border: 1px solid var(--line); border-radius: 14px;
    padding: 26px; margin-top: 14px; max-width: 760px;
    box-shadow: 0 1px 2px rgba(28,43,51,.06), 0 4px 16px rgba(28,43,51,.07);
}
.p-emptycard h1 { font: 600 28px/1.22 "Besley", Georgia, serif; text-wrap: balance; }
.p-tips { margin: 14px 0 4px; padding: 0; list-style: none; display: grid; gap: 12px; }
.p-tips li { padding-left: 30px; position: relative; font-size: 17px; }
.p-tips li::before {
    content: ""; position: absolute; left: 2px; top: 7px; width: 10px; height: 10px;
    border-radius: 50%; background: var(--accent);
}
.p-callcard {
    margin-top: 20px; background: var(--paper); border: 1px solid var(--line);
    border-radius: 12px; padding: 18px 20px;
}
.p-call-lead { font-weight: 700; font-size: 18px; }
.p-tel-big { font-size: 26px; min-height: 44px; }
.p-callcard p { font-size: 16px; margin-top: 6px; }

/* --- Record page -------------------------------------------------------- */
.p-record { padding: 16px 0 40px; }
.p-backlink {
    display: inline-flex; align-items: center; gap: 6px;
    font-weight: 600; font-size: 16px; min-height: 44px;
}
.p-rec-head { margin: 8px 0 4px; }
.p-rec-owner { font: 600 clamp(26px, 5vw, 40px)/1.12 "Besley", Georgia, serif; }
.p-rec-prop { font-size: 17px; color: var(--ink-soft); margin-top: 4px; }
.p-rec-prop b { color: var(--ink); font-weight: 600; }
.p-idrow {
    display: flex; flex-wrap: wrap; gap: 8px 22px;
    margin: 12px 0 2px; font-size: 15px; color: var(--ink-soft);
}
.p-mono {
    font: 500 15px/1.4 "Spline Sans Mono", Consolas, monospace;
    color: var(--ink); background: var(--card);
    border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px;
}
.p-allyears { margin: 10px 0 18px; font-size: 16px; }

.p-billcard {
    background: var(--card); border: 1px solid var(--line); border-radius: 14px;
    box-shadow: 0 1px 2px rgba(28,43,51,.06), 0 4px 16px rgba(28,43,51,.07);
    margin-top: 18px; overflow: hidden;
}
.p-bill-head {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
    padding: 16px 22px; border-bottom: 1px solid var(--line-soft);
}
.p-billyear { font: 700 32px/1 "Besley", Georgia, serif; }
.p-billkind { font-size: 15px; color: var(--ink-soft); }
.p-bill-status { margin-left: auto; }
.p-bill-body { padding: 8px 22px 20px; }

table.p-levies { width: 100%; border-collapse: collapse; margin-top: 8px; }
table.p-levies caption {
    text-align: left; font-weight: 700; font-size: 16px; padding: 8px 0 6px; color: var(--ink);
}
table.p-levies th {
    text-align: left; font: 600 13px/1.3 "Source Sans 3", Arial, sans-serif;
    letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft);
    border-bottom: 1.5px solid var(--line); padding: 6px 0;
}
table.p-levies th.p-num, table.p-levies td.p-num {
    text-align: right; font-variant-numeric: tabular-nums;
}
table.p-levies td {
    padding: 10px 0; border-bottom: 1px solid var(--line-soft);
    font-size: 17px; vertical-align: top;
}
.p-lev-sub { display: block; font-size: 13px; color: var(--ink-soft); }
tr.p-lev-credit td { color: var(--paid); font-weight: 600; }
tr.p-lev-pen td { color: var(--due); }
tr.p-lev-total td {
    border-bottom: none; border-top: 2.5px solid var(--ink);
    font-weight: 700; font-size: 24px; padding-top: 14px;
}

.p-paywrap { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.p-paynote { font-size: 14px; color: var(--ink-soft); flex-basis: 100%; }
.p-holdnote {
    background: var(--hold-tint); border: 1px solid #E4D5A8; border-radius: 12px;
    padding: 14px 18px; margin-top: 16px; font-size: 16px;
}

.p-stamp {
    display: inline-block;
    transform: rotate(-4deg);
    border: 3px double var(--paid);
    color: var(--paid);
    border-radius: 8px;
    padding: 8px 18px 10px;
    text-align: center;
    margin: 14px 0 4px;
}
.p-stamp-word { display: block; font: 700 36px/1 "Besley", Georgia, serif; letter-spacing: .14em; }
.p-stamp-when {
    display: block; font: 600 13px/1.4 "Source Sans 3", Arial, sans-serif;
    letter-spacing: .06em; text-transform: uppercase;
}
.p-rcptmeta { font-size: 15px; color: var(--ink-soft); margin-top: 8px; }
.p-receiptrow { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

.p-otheryears { margin-top: 24px; }
.p-otheryears h2 { font: 600 24px/1.2 "Besley", Georgia, serif; margin-bottom: 10px; }
.p-yearlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.p-yearlist a {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
    background: var(--card); border: 1px solid var(--line); border-radius: 10px;
    padding: 12px 16px; text-decoration: none; color: var(--ink); min-height: 44px;
}
.p-yearlist a:hover { border-color: var(--accent); }
.p-yl-year { font: 700 20px/1 "Besley", Georgia, serif; }

/* --- Standalone pages --------------------------------------------------- */
.p-pagebody {
    background: var(--card); border: 1px solid var(--line); border-radius: 14px;
    padding: 26px; margin-top: 14px; max-width: 760px;
}
.p-pagebody h1 { font: 600 clamp(26px, 5vw, 36px)/1.15 "Besley", Georgia, serif; margin-bottom: 10px; }
.p-pagebody h2 { font: 600 22px/1.25 "Besley", Georgia, serif; margin: 22px 0 6px; }
.p-pagebody p { font-size: 17px; margin: 10px 0; max-width: 65ch; }
.p-page-img { max-width: 100%; border-radius: 8px; margin: 10px 0; display: block; }

/* --- Footer ------------------------------------------------------------- */
.p-sitefoot { background: var(--paper); }
.p-sitefoot .p-wrap {
    padding-top: 18px; padding-bottom: 26px;
    font-size: 14px; color: var(--ink-soft);
    display: flex; flex-wrap: wrap; gap: 6px 20px;
    border-top: 1px solid var(--line); margin-top: 10px;
}

/* --- Print -------------------------------------------------------------- */
@media print {
    .p-utilnav, .p-searchagain, .p-filterchips, .p-btn, .p-cartlink,
    .p-backlink, .p-helpstrip, .skiplink, .p-sitefoot a { display: none !important; }
    body { background: #FFFFFF; font-size: 12pt; }
    .p-billcard, .p-ownercard, .p-emptycard { box-shadow: none; border: 1px solid #999999; }
    a { color: #000000; text-decoration: none; }
}
