/* County of Paridocular. One stylesheet, no framework, no web fonts. */

:root {
  --green-950: #102c22;
  --green-900: #163c2e;
  --green-800: #1d4d3b;
  --green-700: #24604a;
  --green-100: #e5eee8;
  --gold-500: #c9962e;
  --gold-200: #f1dfb4;
  --gold-100: #faf3e1;
  --ink: #1b2420;
  --muted: #4a5751;
  --link: #0b5774;
  --link-visited: #5a3d7a;
  --surface: #f6f4ee;
  --border: #d8d4c8;
  --focus: #b8560f;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 1.0625rem/1.6 var(--sans);
}

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

a { color: var(--link); text-underline-offset: 0.15em; }
a:visited { color: var(--link-visited); }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--serif); line-height: 1.2; color: var(--green-900); }
h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem); margin: 0.2em 0 0.5em; }
h2 { font-size: 1.5rem; margin: 1.8em 0 0.6em; }
h3 { font-size: 1.2rem; margin: 1.4em 0 0.4em; }

p, ul, ol, table { margin: 0 0 1rem; }

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

/* --- skip link and header ------------------------------------------------------------ */

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: #fff; color: var(--green-900); padding: 0.6rem 1rem; font-weight: 600;
  border: 2px solid var(--green-900); border-radius: 4px;
}
.skip-link:focus { top: 1rem; }

.demo-banner { background: #222826; color: #f2f2f0; font-size: 0.875rem; }
.demo-banner p { margin: 0; padding: 0.45rem 0; }
.demo-banner a, .demo-banner a:visited { color: #ffe3a1; }

.utility-bar { background: var(--green-950); color: #e3ece6; font-size: 0.875rem; }
.utility-bar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.25rem 1.5rem; }
.utility-bar p { margin: 0; padding: 0.4rem 0; }
.utility-bar ul { display: flex; flex-wrap: wrap; gap: 0 1.25rem; list-style: none; margin: 0; padding: 0.4rem 0; }
.utility-bar a, .utility-bar a:visited { color: #fff; text-decoration: none; }
.utility-bar a:hover { text-decoration: underline; }

.masthead { background: var(--green-900); color: #fff; border-bottom: 4px solid var(--gold-500); }
.masthead .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 2rem; padding-top: 1rem; padding-bottom: 1rem; }
.brand, .brand:visited { display: flex; align-items: center; gap: 0.9rem; color: #fff; text-decoration: none; }
.brand img { flex: none; }
.brand-name { display: flex; flex-direction: column; }
.brand-county { font: 600 clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem)/1.1 var(--serif); letter-spacing: 0.01em; }
.brand-state { font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-200); }
.masthead-tagline { margin: 0; font-family: var(--serif); font-style: italic; color: #d7e4dc; }

.main-nav { background: var(--green-800); }
.main-nav ul { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.main-nav a, .main-nav a:visited {
  display: block; padding: 0.75rem 1rem; color: #fff; text-decoration: none; font-weight: 600;
  border-bottom: 3px solid transparent;
}
.main-nav li:first-child a { padding-left: 0; }
.main-nav a:hover { border-bottom-color: var(--gold-200); }
.main-nav a[aria-current] { border-bottom-color: var(--gold-500); }

/* --- page structure ------------------------------------------------------------------ */

main { display: block; padding-bottom: 3rem; }
main:focus { outline: none; }

.breadcrumbs { font-size: 0.9rem; color: var(--muted); padding-top: 1rem; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.breadcrumbs li + li::before { content: "›"; padding: 0 0.5rem; color: var(--muted); }
.breadcrumbs [aria-current] { color: var(--ink); }

.page-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
@media (min-width: 60rem) {
  .page-layout { grid-template-columns: 15rem minmax(0, 1fr) 17rem; }
  .page-layout.no-subnav { grid-template-columns: minmax(0, 1fr) 17rem; }
  .page-layout.no-aside { grid-template-columns: 15rem minmax(0, 1fr); }
  .page-layout.no-subnav.no-aside { grid-template-columns: minmax(0, 1fr); }
}
.content { min-width: 0; }
.lead { font-size: 1.2rem; color: var(--muted); }

.subnav { font-size: 0.95rem; }
.subnav-title { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; margin: 1.2rem 0 0.5rem; }
.subnav ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.subnav li { border-bottom: 1px solid var(--border); }
.subnav a { display: block; padding: 0.5rem 0.25rem; text-decoration: none; }
.subnav a[aria-current] { font-weight: 700; color: var(--green-900); border-left: 4px solid var(--gold-500); padding-left: 0.6rem; }

.contact-card { background: var(--surface); border-top: 4px solid var(--green-700); padding: 1rem 1.25rem; margin-top: 1.2rem; font-size: 0.95rem; }
.contact-card h2 { font-size: 1.1rem; margin: 0 0 0.5rem; }
.contact-card p { margin: 0 0 0.6rem; }

/* --- document links ------------------------------------------------------------------ */

.doc-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.doc-list li { padding: 0.55rem 0 0.55rem 1.9rem; border-bottom: 1px solid var(--border); position: relative; }
.doc-list li::before {
  content: ""; position: absolute; left: 0.2rem; top: 0.75rem; width: 1.05rem; height: 1.3rem;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 24'%3E%3Cpath d='M2 1h11l5 5v17H2z' fill='%23fff' stroke='%2324604a' stroke-width='1.6'/%3E%3Cpath d='M13 1v5h5' fill='none' stroke='%2324604a' stroke-width='1.6'/%3E%3Cpath d='M5 12h10M5 15.5h10M5 19h7' stroke='%23c9962e' stroke-width='1.6'/%3E%3C/svg%3E");
}
.doc-meta { color: var(--muted); font-size: 0.9em; white-space: nowrap; }
.doc-list.columns { columns: 14rem auto; column-gap: 2rem; }
.doc-list.columns li { break-inside: avoid; }

.doc-table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.doc-table caption { text-align: left; font-weight: 600; padding: 0 0 0.5rem; }
.doc-table th, .doc-table td { text-align: left; padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.doc-table thead th { background: var(--green-100); color: var(--green-900); }

.notice { background: var(--gold-100); border-left: 5px solid var(--gold-500); padding: 0.9rem 1.1rem; margin: 0 0 1.5rem; }
.notice p:last-child { margin-bottom: 0; }

.official-record { border: 1px solid var(--border); background: var(--surface); padding: 0.9rem 1.1rem 0.2rem; margin: 0 0 1.5rem; }
.official-record h3 { margin-top: 0; }

.embed-frame { width: 100%; height: min(46rem, 85vh); border: 1px solid var(--border); background: var(--surface); }
/* An embedded document is read in place, and the reader needs the room: the page gives it the contact
   column's width, and the contact box moves under the content. */
@media (min-width: 60rem) {
  .page-layout:not(.no-subnav):not(.no-aside):has(.embed-frame) { grid-template-columns: 15rem minmax(0, 1fr); }
  .page-layout:not(.no-subnav):not(.no-aside):has(.embed-frame) > :last-child { grid-column: 2; }
}

/* --- home ---------------------------------------------------------------------------- */

.alert-bar { background: var(--gold-100); border-bottom: 1px solid var(--gold-200); }
.alert-bar p { margin: 0; padding: 0.7rem 0; }
.alert-bar strong { color: #6b4700; }

.hero { position: relative; background: var(--green-900); overflow: hidden; }
.hero-art { display: block; width: 100%; height: clamp(16rem, 32vw, 26rem); object-fit: cover; }
.hero-text {
  position: absolute; left: 50%; bottom: 1.5rem; transform: translateX(-50%);
  width: min(var(--wrap), 100%); padding: 0 1rem;
}
.hero-text > div { background: rgba(16, 44, 34, 0.9); color: #fff; padding: 1.1rem 1.4rem; max-width: 36rem; border-left: 5px solid var(--gold-500); }
.hero-text h1 { color: #fff; margin: 0 0 0.3rem; }
.hero-text p { margin: 0; color: #e6efe9; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.tiles a, .tiles a:visited {
  display: flex; align-items: center; gap: 0.75rem; height: 100%;
  padding: 1rem; background: #fff; border: 1px solid var(--border); border-bottom: 4px solid var(--green-700);
  color: var(--green-900); font-weight: 600; text-decoration: none;
}
.tiles a:hover { background: var(--green-100); }
.tiles svg { flex: none; width: 2rem; height: 2rem; }

.home-columns { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
@media (min-width: 56rem) { .home-columns { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } }

.news-list { list-style: none; padding: 0; margin: 0; }
.news-list li { padding: 0.8rem 0; border-bottom: 1px solid var(--border); }
.news-list time { display: block; color: var(--muted); font-size: 0.9rem; }

.meetings { list-style: none; padding: 0; margin: 0; }
.meetings li { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr); gap: 0.9rem; padding: 0.7rem 0; border-bottom: 1px solid var(--border); }
.meeting-date { background: var(--green-900); color: #fff; text-align: center; padding: 0.35rem 0; line-height: 1.15; font-weight: 600; }
.meeting-date span { display: block; font-size: 1.5rem; font-family: var(--serif); }

.recent-docs[aria-busy="true"] { color: var(--muted); }

.card-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1rem; }
.card-list li { border: 1px solid var(--border); border-top: 4px solid var(--green-700); padding: 0.9rem 1rem; }
.card-list a { font-weight: 600; font-family: var(--serif); font-size: 1.15rem; }
.card-list p { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.95rem; }

.people { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 1rem; }
.people li { border: 1px solid var(--border); padding: 1rem; text-align: center; }
.people .avatar { width: 4.5rem; height: 4.5rem; margin: 0 auto 0.6rem; border-radius: 50%; background: var(--green-100); color: var(--green-900); display: grid; place-items: center; font: 600 1.5rem var(--serif); }
.people strong { display: block; }
.people span { color: var(--muted); font-size: 0.95rem; }

.az { columns: 16rem auto; column-gap: 2rem; padding-left: 1.1rem; }
.az li { margin-bottom: 0.4rem; break-inside: avoid; }

/* --- footer -------------------------------------------------------------------------- */

.site-footer { background: var(--green-950); color: #e3ece6; font-size: 0.95rem; }
.site-footer a, .site-footer a:visited { color: #fff; }
.site-footer h2 { color: #fff; font-size: 1.1rem; margin: 0 0 0.6rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 2rem; padding-top: 2rem; padding-bottom: 1.5rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.35rem; }
.footer-base { border-top: 1px solid #2f5545; }
.footer-base p { margin: 0; padding: 0.9rem 0; color: #c5d5cb; font-size: 0.875rem; }

/* --- the passcode gate (served by edge/viewer-request.js) ---------------------------- */

body.gate { background: var(--green-900); min-height: 100vh; display: grid; place-items: center; padding: 1.5rem 1rem; }
.gate-card { background: #fff; max-width: 28rem; width: 100%; padding: 2rem 1.75rem 1.5rem; border-top: 6px solid var(--gold-500); text-align: center; }
.gate-card h1 { font-size: 1.9rem; margin: 0.6rem 0 0.5rem; }
.gate-card form { display: grid; gap: 0.5rem; text-align: left; margin: 1.2rem 0 1rem; }
.gate-card label { font-weight: 600; }
.gate-card input[type="password"] { font: inherit; padding: 0.6rem 0.7rem; border: 2px solid var(--muted); border-radius: 4px; }
.gate-card input[aria-invalid="true"] { border-color: #a4161a; }
.gate-card button { font: inherit; font-weight: 600; padding: 0.65rem 1rem; margin-top: 0.4rem; background: var(--green-800); color: #fff; border: 0; border-radius: 4px; cursor: pointer; }
.gate-card button:hover { background: var(--green-700); }
.gate-error { color: #a4161a; font-weight: 600; text-align: left; margin: 0; }
.gate-note { font-size: 0.875rem; color: var(--muted); margin: 0; }

/* --- Paridoc's marks ----------------------------------------------------------------- */
/* The script only adds classes to document links (script design S8); a site styles them, as a
   customer would. Generated text is read as part of the link, so the badge is announced too. */
a.paridoc-enabled::after, a.paridoc-processing::after {
  display: inline-block; margin-left: 0.45rem; padding: 0.05rem 0.45rem; border-radius: 999px;
  font-size: 0.78rem; font-weight: 600; line-height: 1.5; vertical-align: 0.08em; text-decoration: none;
}
a.paridoc-enabled::after { content: "Accessible version"; background: var(--green-700); color: #fff; }
a.paridoc-processing::after { content: "Being made accessible"; background: var(--gold-100); color: #6b4700; border: 1px solid var(--gold-500); }
