/* Wheatlands HOA — site styles */
:root {
  --wheat-50: #faf6ec;
  --wheat-100: #f1e8d2;
  --wheat-300: #dcc68f;
  --wheat-500: #b98a2e;
  --wheat-700: #7d5a1c;
  --prairie-900: #1d2d24;
  --prairie-800: #24392d;
  --prairie-700: #2f4a3a;
  --prairie-500: #4f7a5f;
  --prairie-100: #e7eee9;
  --ink: #222622;
  --ink-soft: #545b55;
  --line: #ddd5c3;
  --bg: #fdfcf8;
  --card: #ffffff;
  --radius: 4px;
  --shadow: none;
  --max: 1080px;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--prairie-700); text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { color: var(--wheat-700); }
h1, h2, h3 { font-family: var(--serif); color: var(--prairie-900); line-height: 1.2; font-weight: 600; }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 .35em; }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.8rem); margin: 0 0 .5em; }
h3 { font-size: 1.2rem; margin: 0 0 .35em; }
p { margin: 0 0 1em; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--prairie-900); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 2px solid var(--wheat-500); outline-offset: 2px; }

/* Header */
.site-header { position: relative; z-index: 50; background: var(--bg); border-top: 5px solid var(--prairie-700); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--prairie-900); }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; }
.brand-sub { font-size: .85rem; color: var(--ink-soft); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav a { display: block; padding: 8px 11px; text-decoration: none; color: var(--ink); font-size: .98rem; white-space: nowrap; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--prairie-700); text-decoration: underline; }
.nav a[aria-current="page"] { color: var(--prairie-900); font-weight: 600; border-bottom-color: var(--wheat-500); }
.nav .nav-cta { margin-left: 10px; border: 1px solid var(--prairie-700); border-radius: var(--radius); color: var(--prairie-700); font-weight: 600; padding: 6px 12px; }
.nav .nav-cta:hover, .nav .nav-cta[aria-current="page"] { background: var(--prairie-700); color: #fff; text-decoration: none; border-bottom-color: var(--prairie-700); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 9px 11px; color: var(--prairie-900); cursor: pointer; }
.menu-btn svg { display: block; }

@media (max-width: 960px) {
  .menu-btn { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 6px 20px 16px; gap: 0; }
  .nav a { padding: 12px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); }
  .nav .nav-cta { margin: 12px 0 0; text-align: center; padding: 11px; }
}
@media (max-width: 1100px) and (min-width: 961px) { .nav a { padding: 8px 8px; font-size: .94rem; } .brand-sub { display: none; } }

/* Hero: photo with a plain caption block underneath */
.hero { background: var(--prairie-800); color: #fff; }
.hero img.hero-bg { width: 100%; height: clamp(220px, 34vw, 400px); object-fit: cover; object-position: 60% 50%; }
.hero .container { padding-top: 32px; padding-bottom: 34px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px 40px; align-items: end; }
.hero h1 { color: #fff; margin: 0; grid-column: 1; }
.hero .lede { grid-column: 1; margin: 0; color: rgba(255,255,255,.85); max-width: 52ch; }
.hero .btn-row { grid-column: 2; grid-row: 1 / span 2; margin: 0; justify-content: flex-end; }
.hero .eyebrow { display: none; }
@media (max-width: 760px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero .btn-row { grid-column: 1; grid-row: auto; justify-content: flex-start; margin-top: 10px; }
}

.eyebrow { font-size: .95rem; font-weight: 600; color: var(--wheat-700); margin-bottom: 6px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius); font-weight: 600; text-decoration: none;
  background: var(--wheat-500); color: #1d1a12; border: 1px solid var(--wheat-500);
  font-size: .98rem; line-height: 1.2; cursor: pointer; font-family: var(--sans);
}
.btn:hover { background: var(--wheat-300); border-color: var(--wheat-300); color: #1d1a12; }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn.ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn.dark { background: var(--prairie-700); border-color: var(--prairie-700); color: #fff; }
.btn.dark:hover { background: var(--prairie-900); border-color: var(--prairie-900); color: #fff; }
.btn.outline { background: transparent; color: var(--prairie-700); border-color: var(--prairie-700); }
.btn.outline:hover { background: var(--prairie-100); color: var(--prairie-900); }

/* Page header (inner pages) */
.page-head { background: var(--wheat-50); border-bottom: 1px solid var(--line); }
.page-head .container { padding-top: 40px; padding-bottom: 32px; }
.page-head h1 { margin-bottom: .15em; }
.page-head p { color: var(--ink-soft); max-width: 62ch; margin: 0; font-size: 1.08rem; }

/* Sections */
.section { padding: clamp(40px, 6vw, 64px) 0; }
.section.alt { background: var(--wheat-50); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 24px; }
.section-head p { color: var(--ink-soft); }

.grid { display: grid; gap: 20px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

/* Quick links (home page): a plain row of links, not floating cards */
/* Home-page notice banner (news posts with "Show on home page until") */
.notice { background: var(--wheat-500); color: #1d1a12; }
.notice + .notice { border-top: 1px solid rgba(29,26,18,.25); }
.notice a { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 14px 0; color: #1d1a12; text-decoration: none; }
.notice .label { flex: 0 0 auto; background: #1d1a12; color: var(--wheat-100); font-size: .8rem; font-weight: 700; letter-spacing: .02em; padding: 2px 8px; }
.notice b { font-family: var(--serif); font-size: 1.15rem; font-weight: 700; }
.notice .text { font-size: .95rem; flex: 1 1 320px; }
.notice .go { flex: 0 0 auto; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.notice a:hover { background: transparent; }
.notice a:hover .go { text-decoration-thickness: 2px; }
/* Brief attention pulse on page load (twice, then still); off for reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .notice { animation: notice-pulse 1.4s ease-in-out .6s 2; }
}
@keyframes notice-pulse { 0%, 100% { background: var(--wheat-500); } 50% { background: var(--wheat-300); } }

.quick { background: var(--bg); border-bottom: 1px solid var(--line); }
.quick .grid { gap: 0; }
.tile { display: block; padding: 22px 22px 22px 0; text-decoration: none; color: var(--ink); background: none; border: 0; border-radius: 0; box-shadow: none; }
.quick .tile + .tile { padding-left: 22px; border-left: 1px solid var(--line); }
.tile .ico { display: none; }
.tile strong { display: block; font-family: var(--serif); font-size: 1.15rem; color: var(--prairie-700); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; margin-bottom: 4px; }
.tile:hover strong { color: var(--wheat-700); }
.tile span { display: block; color: var(--ink-soft); font-size: .93rem; }
.tile .go { display: none; }
@media (max-width: 960px) {
  .quick .tile, .quick .tile + .tile { padding: 16px 0; border-left: 0; border-top: 1px solid var(--line); }
  .quick .tile:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line); }
  .quick .tile:nth-child(-n+2) { border-top: 0; }
}
@media (max-width: 640px) {
  .quick .tile:nth-child(even) { padding-left: 0; border-left: 0; }
  .quick .tile:nth-child(2) { border-top: 1px solid var(--line); }
}

/* Next meeting */
.next-meeting { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--prairie-700); border-radius: var(--radius); padding: 22px; }
.next-meeting .eyebrow { color: var(--ink-soft); font-weight: 500; font-size: .9rem; }
.next-meeting .btn.outline { color: var(--prairie-700); border-color: var(--prairie-700); }
.next-meeting a:not(.btn) { color: var(--prairie-700); }
.next-meeting[hidden] { display: none; }
.date-badge { width: 72px; text-align: center; border: 1px solid var(--line); border-radius: var(--radius); background: var(--wheat-50); line-height: 1; overflow: hidden; }
.date-badge .m { font-size: .8rem; font-weight: 700; text-transform: uppercase; background: var(--prairie-700); color: #fff; padding: 5px 0; }
.date-badge .d { font-family: var(--serif); font-size: 2rem; font-weight: 600; color: var(--prairie-900); padding: 8px 0 10px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .95rem; margin: 4px 0 12px; }
.meta b { font-weight: 600; }
.meta svg { vertical-align: -3px; }
@media (max-width: 560px) { .next-meeting { grid-template-columns: 1fr; } }

/* Schedule list */
.schedule { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--prairie-700); }
.schedule li { display: grid; grid-template-columns: 110px 1fr auto; gap: 16px; align-items: center; padding: 13px 6px; border-bottom: 1px solid var(--line); }
.schedule .when { font-weight: 600; color: var(--prairie-900); }
.schedule .what small { display: block; color: var(--ink-soft); font-size: .9rem; }
.schedule li.past, .schedule li.past .when { color: var(--ink-soft); }
.schedule li.next { background: var(--wheat-50); }
@media (max-width: 640px) { .schedule li { grid-template-columns: 1fr; gap: 4px; } }

.tag { display: inline-block; font-size: .8rem; font-weight: 600; padding: 1px 8px; border-radius: 3px; background: var(--prairie-100); color: var(--prairie-700); white-space: nowrap; vertical-align: 1px; }
.tag.open { background: var(--wheat-100); color: var(--wheat-700); }
.tag.muted, .tag.done { background: #ecebe6; color: #5f645f; }

/* Document lists */
.doc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.doc { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.doc:hover { background: var(--wheat-50); color: var(--ink); }
.doc:hover .t b { text-decoration: underline; }
.doc .ft { flex: none; width: 42px; font-size: .72rem; font-weight: 700; text-align: center; padding: 2px 0; border: 1px solid currentColor; border-radius: 3px; color: #a8463a; background: none; }
.doc .ft.docx, .doc .ft.doc { color: #2f5fa7; }
.doc .ft.xlsx { color: #2f7a4a; }
.doc .t { display: flex; flex-direction: column; min-width: 0; }
.doc .t b { font-weight: 600; color: var(--prairie-700); }
.doc .t small { color: var(--ink-soft); font-size: .88rem; }
.doc .dl { margin-left: auto; color: var(--ink-soft); flex: none; }

/* Minutes archive */
.year-block { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); margin-bottom: 8px; }
.year-block summary { list-style: none; cursor: pointer; padding: 13px 18px; display: flex; align-items: center; justify-content: space-between; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--prairie-900); }
.year-block summary::-webkit-details-marker { display: none; }
.year-block summary .count { font-family: var(--sans); font-size: .88rem; font-weight: 400; color: var(--ink-soft); margin-left: auto; margin-right: 12px; }
.year-block[open] summary .chev { transform: rotate(180deg); }
.year-block .months { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0 20px; padding: 0 18px 16px; }
.month { padding: 8px 0; border-bottom: 1px dotted var(--line); font-size: .95rem; }
.month a { display: flex; justify-content: space-between; gap: 8px; }
.month.none { color: #858a85; }
.month small { display: block; color: var(--ink-soft); font-size: .82rem; }

/* Callouts */
.callout { border-left: 3px solid var(--wheat-500); background: var(--wheat-50); padding: 12px 16px; margin: 0 0 20px; }
.callout p:last-child { margin: 0; }
.callout.green { border-color: var(--prairie-500); background: var(--prairie-100); }

/* Steps */
.steps { padding-left: 1.4em; margin: 0 0 1em; }
.steps li { margin-bottom: 10px; padding-left: 4px; }
.steps li::marker { font-weight: 700; color: var(--prairie-700); }

/* People */
.person { display: flex; gap: 14px; align-items: center; }
.avatar { width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--wheat-100); color: var(--wheat-700); font-weight: 600; font-size: 1rem; }
.person b { display: block; }
.person small { color: var(--ink-soft); font-size: .9rem; }
.role-lead .avatar { background: var(--prairie-700); color: #fff; }

/* Updates */
.update-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.update-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.update-list .dot { display: none; }
.update-list .body { margin-top: 2px; }
.update-list .body p { margin: 0; }

/* Prose / legal text */
.prose { max-width: 70ch; }
.prose h3 { margin-top: 1.4em; }
details.legal { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 0 18px; margin-top: 10px; }
details.legal summary { cursor: pointer; padding: 13px 0; font-weight: 600; color: var(--prairie-700); }
details.legal[open] { padding-bottom: 10px; }
details.legal p { font-size: .97rem; color: var(--ink-soft); }
.spec { list-style: none; padding: 0; margin: 0 0 1em; }
.spec li { padding: 9px 0; border-bottom: 1px dotted var(--line); display: grid; grid-template-columns: 120px 1fr; gap: 12px; }
.spec li b { color: var(--prairie-900); }
@media (max-width: 560px) { .spec li { grid-template-columns: 1fr; gap: 0; } }

/* Forms */
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.form label { display: grid; gap: 5px; font-weight: 600; font-size: .95rem; }
.form input, .form textarea, .form select { font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid #c4bca8; border-radius: var(--radius); background: #fff; color: var(--ink); width: 100%; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--wheat-500); outline-offset: 0; }
.form textarea { min-height: 150px; resize: vertical; }
.form .hint { font-weight: 400; color: var(--ink-soft); font-size: .85rem; }

.map { border: 1px solid var(--line); width: 100%; height: 380px; display: block; }

/* Footer */
.site-footer { background: var(--prairie-900); color: rgba(255,255,255,.78); padding: 44px 0 24px; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--wheat-300); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { color: #fff; font-size: .95rem; font-weight: 700; margin: 0 0 10px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 32px; padding-top: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: rgba(255,255,255,.55); }
.site-footer .brand { color: #fff; margin-bottom: 12px; text-decoration: none; }
.site-footer .brand-sub { color: rgba(255,255,255,.6); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: center; }
.split img { border: 1px solid var(--line); padding: 6px; background: #fff; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }
/* Home-count figures read as one plain line */
.stats { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 4px 0 18px; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat b { font-family: var(--serif); font-size: 1.35rem; color: var(--prairie-900); font-weight: 600; margin-right: 5px; }
.stat span { color: var(--ink-soft); }
.muted { color: var(--ink-soft); }
.small { font-size: .9rem; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 20px; }
code.pass { font-family: ui-monospace, Consolas, monospace; background: var(--wheat-100); padding: 1px 5px; border-radius: 3px; }
.anchor { scroll-margin-top: 20px; }
.prose-inline p { margin: 0 0 1em; }
.prose-inline p:last-child { margin-bottom: 0; }

/* Add-to-calendar links */
.cal-links { margin: 14px 0 0; color: var(--ink-soft); }
.cal-links svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 2px; }

/* Share buttons on news posts */
.share-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.share-row .btn { padding: 7px 14px; font-size: .92rem; }
.share-row svg { vertical-align: -2px; }
