:root {
  --pine: #173f35;
  --pine-deep: #102e27;
  --pine-light: #2f6a57;
  --wheat: #d6a84f;
  --wheat-light: #f2dfb3;
  --sky: #dceaf0;
  --cream: #f7f4ec;
  --paper: #fffdf8;
  --ink: #17231f;
  --muted: #58645f;
  --line: #d8d8ce;
  --white: #fff;
  --shadow: 0 18px 45px rgba(24, 43, 35, .11);
  --radius: 6px;
  --wrap: min(1160px, calc(100% - 40px));
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

a { color: inherit; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }

:focus-visible {
  outline: 3px solid #2d76a4;
  outline-offset: 3px;
}

[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  transform: translateY(-160%);
  padding: 10px 16px;
  color: var(--white);
  background: var(--pine-deep);
}

.skip-link:focus { transform: none; }
.wrap { width: var(--wrap); margin-inline: auto; }

.utility-bar {
  color: #e8f1ed;
  background: var(--pine-deep);
  font-size: .78rem;
  letter-spacing: .01em;
}

.utility-inner,
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.utility-inner { min-height: 34px; }
.utility-inner > div { display: flex; align-items: center; gap: 22px; }
.utility-inner a { text-decoration: none; }

.text-button {
  padding: 0;
  border: 0;
  color: inherit;
  background: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(23, 63, 53, .12);
  background: rgba(255, 253, 248, .96);
  backdrop-filter: blur(12px);
}

.header-inner { min-height: 76px; }

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

.brand-mark {
  width: 42px;
  height: 42px;
  padding: 5px;
  color: var(--wheat);
  border: 2px solid currentColor;
  border-radius: 50%;
}

.brand-mark path:first-child { fill: var(--pine); }
.brand-mark path:last-child { stroke: var(--wheat); stroke-width: 3px; stroke-linecap: round; }
.brand strong, .brand small { display: block; line-height: 1.05; }
.brand strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; }
.brand small { margin-top: 4px; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }

.primary-nav { display: flex; align-items: center; gap: 26px; }
.primary-nav a { color: var(--pine-deep); font-size: .9rem; font-weight: 700; text-decoration: none; }
.primary-nav a:hover { color: var(--pine-light); }

.search-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  color: var(--white);
  border: 0;
  border-radius: 99px;
  background: var(--pine);
  font-size: .9rem;
  font-weight: 700;
}

.menu-button {
  display: none;
  padding: 8px 12px;
  color: var(--pine);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font-weight: 700;
}

.alert-strip { color: var(--white); background: var(--pine); }
.alert-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding-block: 18px; }
.alert-inner h2 { margin: 0; font-size: 1.1rem; }
.alert-inner p { margin: 0; color: #dce9e4; font-size: .9rem; }
.alert-inner .eyebrow { color: var(--wheat-light); font-size: .66rem; }
.alert-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid var(--wheat);
  border-radius: 50%;
  color: var(--wheat-light);
  font-weight: 900;
}

.hero {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  background: var(--sky);
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(16, 46, 39, .94) 0%, rgba(16, 46, 39, .82) 44%, rgba(16, 46, 39, .15) 75%, rgba(16, 46, 39, .05) 100%);
}

.hero-image {
  position: absolute;
  inset: 0;
  background: #80959b url("waconda-lake.png") center / cover no-repeat;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 610px;
  grid-template-columns: 1.35fr .65fr;
  align-items: end;
  gap: 64px;
  padding-block: 95px 72px;
}

.hero-copy { max-width: 670px; color: var(--white); }
.eyebrow { margin: 0 0 8px; color: var(--pine-light); font-size: .75rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.hero .eyebrow { color: var(--wheat-light); }

h1, h2, h3 {
  margin-top: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.08;
}

h1 { margin-bottom: 20px; font-size: clamp(3.2rem, 7vw, 6rem); letter-spacing: -.045em; }
h2 { margin-bottom: 14px; font-size: clamp(2.1rem, 4vw, 3.55rem); letter-spacing: -.03em; }
h3 { margin-bottom: 10px; font-size: 1.35rem; }
.lead { font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.55; }
.hero-copy .lead { max-width: 620px; color: #f4f3eb; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  color: var(--white);
  border: 2px solid var(--pine);
  border-radius: 3px;
  background: var(--pine);
  font-size: .9rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.button:hover { color: var(--white); background: var(--pine-light); border-color: var(--pine-light); }
.button-light { color: var(--pine-deep); border-color: var(--white); background: var(--white); }
.button-light:hover { color: var(--pine-deep); border-color: var(--wheat-light); background: var(--wheat-light); }
.button-quiet { color: var(--white); border-color: rgba(255,255,255,.65); background: rgba(255,255,255,.06); }
.button-quiet:hover { border-color: var(--white); background: rgba(255,255,255,.15); }
.button-outline { color: var(--pine); background: transparent; }
.button-outline:hover { color: var(--white); }

.quick-card {
  padding: 30px;
  color: var(--ink);
  border-top: 5px solid var(--wheat);
  background: rgba(255,253,248,.96);
  box-shadow: var(--shadow);
}

.quick-card h2 { font-size: 2rem; }
.arrow-list { padding: 0; margin: 18px 0 0; list-style: none; }
.arrow-list li { border-top: 1px solid var(--line); }
.arrow-list a { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; color: var(--pine); font-size: .92rem; font-weight: 750; text-decoration: none; }
.arrow-list a:hover { color: var(--pine-light); }

.section { padding-block: 94px; }
.section-tint { background: var(--cream); }
.section-dark { color: var(--white); background: var(--pine-deep); }
.section-dark .eyebrow { color: var(--wheat-light); }
.section-dark .section-heading p { color: #ccd9d4; }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 40px;
}

.section-heading > div:first-child { max-width: 760px; }
.section-heading p { margin: 0; color: var(--muted); }
.section-heading h2 + p { max-width: 720px; font-size: 1.05rem; }
.office-finder-link { max-width: 300px; padding: 0; color: var(--pine); border: 0; background: transparent; font-weight: 800; text-align: right; text-decoration: underline; text-underline-offset: 4px; }

.task-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.task-card {
  position: relative;
  min-height: 390px;
  padding: 34px 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.task-card::after {
  position: absolute;
  right: -50px;
  bottom: -80px;
  width: 180px;
  height: 180px;
  content: "";
  border: 28px solid var(--wheat-light);
  border-radius: 50%;
  opacity: .45;
}

.task-card:nth-child(2)::after { border-color: var(--sky); }
.task-card:nth-child(3)::after { border-color: #d4e3d8; }
.task-number { color: var(--wheat); font-family: Georgia, "Times New Roman", serif; font-size: 1.05rem; font-style: italic; }
.task-card h3 { margin-top: 28px; font-size: 2rem; }
.task-card p { color: var(--muted); }
.task-card ul { position: relative; z-index: 1; padding: 0; margin: 24px 0 0; list-style: none; }
.task-card li { padding-block: 7px; }
.task-card a { color: var(--pine); font-weight: 750; }

.filter-field, .document-tools label, .finder-dialog label, .login-card label, .editor-controls label { display: grid; gap: 6px; }
.filter-field span, .document-tools label span, .finder-dialog label span, .login-card label span, .editor-controls label span { color: var(--muted); font-size: .75rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
input, select, textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--ink);
  border: 1px solid #aeb6b1;
  border-radius: 3px;
  background: var(--white);
}

.filter-field { min-width: 310px; }
.department-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.department-card { display: flex; min-height: 330px; flex-direction: column; padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.card-label, .format { margin: 0 0 11px; color: var(--pine-light); font-size: .68rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.department-card h3 { font-size: 1.55rem; }
.department-card > p:not(.card-label) { color: var(--muted); }
.department-card dl { margin: auto 0 18px; font-size: .85rem; }
.department-card dl div { display: grid; grid-template-columns: 60px 1fr; padding-block: 6px; border-top: 1px solid var(--line); }
.department-card dt { color: var(--muted); font-weight: 700; }
.department-card dd { margin: 0; }
.card-link { color: var(--pine); font-size: .86rem; font-weight: 800; }
.empty-state { padding: 24px; border: 1px solid var(--line); background: var(--white); text-align: center; }

.document-tools { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; padding: 18px; margin-bottom: 18px; background: var(--cream); }
.document-list { border-top: 1px solid var(--line); }
.document-row { display: grid; grid-template-columns: 68px 1fr auto; align-items: center; gap: 24px; padding: 20px 12px; border-bottom: 1px solid var(--line); }
.document-row:hover { background: var(--cream); }
.document-row h3 { margin-bottom: 5px; font-size: 1.2rem; }
.document-row p { margin: 0; color: var(--muted); font-size: .88rem; }
.document-row .card-label { color: var(--pine-light); }
.document-row > a { color: var(--pine); font-weight: 800; white-space: nowrap; }
.date-tile { display: grid; justify-items: center; padding: 7px 5px; color: var(--pine); border: 1px solid var(--line); background: var(--white); line-height: 1; }
.date-tile strong, .date-tile small { font-size: .62rem; letter-spacing: .08em; }
.date-tile span { margin-block: 5px; font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; }

.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.form-grid article { display: flex; min-height: 235px; flex-direction: column; padding: 27px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06); }
.form-grid .format { color: var(--wheat-light); }
.form-grid p { color: #ccd9d4; }
.form-grid a { margin-top: auto; color: var(--white); font-weight: 800; }

.contact-section {
  position: relative;
  overflow: hidden;
  background: var(--wheat-light);
}

.contact-section::before {
  position: absolute;
  right: -100px;
  bottom: -180px;
  width: 520px;
  height: 520px;
  content: "";
  border: 70px solid rgba(255,255,255,.42);
  border-radius: 50%;
}

.contact-grid { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 80px; }
.contact-grid h2 { max-width: 660px; }
.help-card { padding: 34px; border-top: 5px solid var(--pine); background: var(--paper); box-shadow: var(--shadow); }
.help-card h3 { font-size: 2rem; }

.site-footer { padding-block: 55px 26px; color: #dce6e2; background: #0b2520; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-grid strong { color: var(--white); font-family: Georgia, "Times New Roman", serif; font-size: 1.1rem; }
.footer-grid p { color: #b9c8c2; font-size: .88rem; }
.footer-base { display: flex; justify-content: space-between; gap: 20px; padding-top: 28px; margin-top: 30px; border-top: 1px solid rgba(255,255,255,.15); color: #98aaa3; font-size: .72rem; }

.site-dialog {
  width: min(720px, calc(100% - 32px));
  max-height: min(740px, calc(100dvh - 32px));
  padding: 0;
  overflow: auto;
  border: 0;
  border-top: 7px solid var(--wheat);
  border-radius: var(--radius);
  box-shadow: 0 30px 90px rgba(0,0,0,.35);
}

.site-dialog::backdrop { background: rgba(7, 27, 23, .76); backdrop-filter: blur(4px); }
.site-dialog > div { padding: 44px; }
.site-dialog h2 { font-size: 2.4rem; }
.dialog-close { position: sticky; z-index: 2; top: 10px; height: 0; text-align: right; }
.dialog-close button { width: 40px; height: 40px; margin: 5px 10px 0 0; color: var(--pine); border: 1px solid var(--line); border-radius: 50%; background: var(--white); font-size: 1.5rem; }
.search-field input { min-height: 56px; font-size: 1.05rem; }
.search-results { display: grid; gap: 8px; margin-top: 16px; }
.search-results > p { color: var(--muted); }
.search-results a { display: grid; gap: 3px; padding: 13px 15px; color: var(--ink); border: 1px solid var(--line); background: var(--cream); text-decoration: none; }
.search-results a:hover { border-color: var(--pine-light); }
.search-results a strong { color: var(--pine); }
.search-results a span { color: var(--muted); font-size: .84rem; }
.finder-dialog form:not(.dialog-close) { display: grid; gap: 16px; }
.finder-result { padding: 20px; margin-top: 20px; border-left: 5px solid var(--wheat); background: var(--cream); }
.finder-result h3 { margin-bottom: 8px; }
.finder-result p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 980px) {
  .menu-button { display: inline-flex; align-items: center; gap: 7px; }
  .primary-nav {
    position: absolute;
    top: 76px;
    right: 20px;
    left: 20px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    background: var(--paper);
    box-shadow: var(--shadow);
  }
  .primary-nav.open { display: flex; }
  .primary-nav a { padding: 13px 10px; border-bottom: 1px solid var(--line); }
  .search-button { justify-content: center; margin-top: 10px; }
  .hero-grid { grid-template-columns: 1fr; gap: 38px; }
  .quick-card { max-width: 560px; }
  .department-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  :root { --wrap: min(100% - 28px, 1160px); }
  .utility-inner > span { display: none; }
  .utility-inner { justify-content: flex-end; }
  .utility-inner > div { width: 100%; justify-content: space-between; }
  .header-inner { min-height: 68px; }
  .primary-nav { top: 68px; right: 14px; left: 14px; }
  .brand strong { font-size: 1.08rem; }
  .brand-mark { width: 38px; height: 38px; }
  .alert-inner { grid-template-columns: auto 1fr; gap: 12px; }
  .alert-inner .button { grid-column: 1 / -1; }
  .hero, .hero-grid { min-height: 690px; }
  .hero::after { background: linear-gradient(0deg, rgba(16,46,39,.97), rgba(16,46,39,.68)); }
  .hero-grid { align-content: end; padding-block: 80px 44px; }
  .hero-copy h1 { font-size: clamp(3rem, 15vw, 4.4rem); }
  .quick-card { display: none; }
  .section { padding-block: 68px; }
  .section-heading { align-items: stretch; flex-direction: column; margin-bottom: 30px; }
  .office-finder-link { max-width: none; text-align: left; }
  .task-grid, .department-grid, .form-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .task-card { min-height: 330px; }
  .filter-field { min-width: 0; }
  .department-card { min-height: 300px; }
  .document-tools { grid-template-columns: 1fr; }
  .document-row { grid-template-columns: 58px 1fr; gap: 14px; padding-inline: 0; }
  .document-row > a { grid-column: 2; }
  .contact-grid { gap: 40px; }
  .footer-base { align-items: flex-start; flex-direction: column; }
  .site-dialog > div { padding: 38px 22px 28px; }
  .site-dialog h2 { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

.editor-preview [data-content] {
  border-radius: 0.15rem;
  cursor: text;
  outline: 2px dashed rgba(20, 91, 67, 0.7);
  outline-offset: 3px;
}

.editor-preview [data-content]:focus {
  outline: 3px solid #145b43;
}
