/* ORCHARDS NO. 2 POA */

:root {
  --paper: #f4efe4;
  --paper-raised: #fbf7ef;
  --ink: #241f18;
  --muted: #5c564c;
  --rule: #d9ccb4;
  --sage: #3c5a44;
  --sage-dark: #2c4333;
  --clay: #b5522a;
  --danger: #8b2e1f;
  --max: 42rem;
  --max-wide: 74rem;
}

* { box-sizing: border-box; }

html {
  font-size: 18px;
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  line-height: 1.55;
}

a {
  color: var(--sage-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover { color: var(--clay); }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 0.5rem;
  top: 0.5rem;
  background: var(--paper-raised);
  padding: 0.4rem 0.7rem;
  z-index: 20;
}

.site-header {
  border-bottom: 1px solid var(--rule);
  padding: 0.85rem 1.1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem 1.25rem;
  background: var(--paper-raised);
}

.mark {
  font-size: 0.92rem;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--sage-dark);
  text-decoration: none;
}
.mark:hover { color: var(--sage-dark); }

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 0.92rem;
}
.site-header nav a {
  text-decoration: none;
  color: var(--muted);
}
.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
}

main { padding: 1.6rem 1.1rem 3rem; }
main.wide { max-width: var(--max-wide); margin: 0 auto; }
main.narrow { max-width: var(--max); margin: 0 auto; }

h1 {
  font-weight: 700;
  font-size: 1.85rem;
  line-height: 1.2;
  margin: 0 0 0.55rem;
}
h2 {
  font-size: 1.2rem;
  margin: 1.8rem 0 0.5rem;
}

.lede {
  font-size: 1.12rem;
  margin: 0 0 1rem;
}
.muted { color: var(--muted); }

.facts {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}
.facts li {
  border-top: 1px solid var(--rule);
  padding: 0.7rem 0;
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 0.45rem;
}
.facts li:last-child { border-bottom: 1px solid var(--rule); }
.facts .k {
  color: var(--muted);
  font-size: 0.85rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.4rem 0 0.4rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}


.back-top {
  align-self: center;
  margin-left: auto;
  color: var(--muted);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 0.95rem;
  text-decoration: none;
}
.back-top:hover { text-decoration: underline; }


.btn {
  display: inline-block;
  background: var(--sage);
  color: #fbf7ef;
  text-decoration: none;
  padding: 0.55rem 0.95rem;
  border-radius: 4px;
  border: 0;
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}
.btn:hover {
  background: var(--sage-dark);
  color: #fff;
}
.btn.secondary {
  background: transparent;
  color: var(--sage-dark);
  box-shadow: inset 0 0 0 1px var(--sage);
}
.btn.secondary:hover { color: var(--clay); }

.site-footer {
  text-align: center;
  border-top: 1px solid var(--rule);
  padding: 1rem 1.1rem 1.7rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}
.site-footer p { margin: 0.22rem 0; }

.map-page main { padding-bottom: 1.5rem; }

.map-wrap {
  position: relative;
  height: min(78vh, 720px);
  min-height: 320px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
  background: #d5d0c6;
}
.map-wrap.short {
  height: min(78vh, 720px);
  min-height: 480px;
}
.map-el { height: 100%; width: 100%; touch-action: pan-x pan-y pinch-zoom; }

.sat-toggle {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 2;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 0.85rem;
  background: var(--paper-raised);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.sat-toggle[aria-pressed="true"] {
  background: var(--sage);
  color: #fbf7ef;
  border-color: var(--sage);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.map-search {
  position: absolute;
  left: 48px;
  top: 10px;
  z-index: 2;
  width: min(18rem, calc(100% - 8.5rem));
}
.map-search-input {
  width: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.3;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--paper-raised);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.map-search-suggestions {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: 4px;
  max-height: 18rem;
  overflow: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.map-search-suggestions [role="option"] {
  padding: 0.45rem 0.65rem;
  cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 0.88rem;
}
.map-search-suggestions [role="option"]:hover,
.map-search-suggestions [role="option"][aria-selected="true"] {
  background: #efe6d3;
}
.map-search-suggestions .addr {
  color: var(--ink);
  font-weight: 650;
}
.map-search-suggestions .parcel {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 0.05rem;
}

.map-wrap .maplibregl-popup {
  max-width: calc(100% - 28px);
}
.maplibregl-popup-content {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 0.9rem;
  padding: 0.75rem 0.9rem;
  color: var(--ink);
  max-width: 16rem;
  overflow-wrap: anywhere;
}
.maplibregl-popup-close-button {
  font-size: 1.1rem;
}
.map-popup .addr { font-weight: 650; margin: 0 0 0.15rem; }
.map-popup .parcel { color: var(--muted); font-size: 0.82rem; margin: 0; }
.map-popup .owner { margin: 0.5rem 0 0.1rem; }
.map-popup .contact { margin: 0.15rem 0 0; font-size: 0.85rem; white-space: pre-wrap; }
.map-popup a { display: inline-block; margin-top: 0.4rem; margin-right: 0.6rem; }

.map-note {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

form.login {
  max-width: 22rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}
label { display: block; margin-bottom: 0.35rem; font-size: 0.9rem; }
input[type="password"] {
  width: 100%;
  font-size: 1rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--paper-raised);
  margin-bottom: 0.8rem;
  user-select: text;
  -webkit-user-select: text;
}
.err {
  color: var(--danger);
  font-size: 0.9rem;
  margin: 0 0 0.8rem;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--paper-raised);
}
table.roster {
  width: 100%;
  border-collapse: collapse;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 0.88rem;
  min-width: 70rem;
}
table.roster th,
table.roster td {
  text-align: left;
  padding: 0.5rem 0.65rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
table.roster th {
  background: #efe6d3;
  font-weight: 600;
  white-space: nowrap;
}
table.roster tr:last-child td { border-bottom: 0; }
table.roster .pre {
  white-space: pre-wrap;
  word-break: break-word;
}
.vcf-link { white-space: nowrap; }

.notice {
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  padding: 0.9rem 1rem;
  border-radius: 6px;
  margin: 1rem 0 1.4rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 0.95rem;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 0 0.9rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 0.9rem;
}

[hidden] { display: none !important; }

@media (max-width: 640px) {
  html { font-size: 17px; }
  .facts li { grid-template-columns: 1fr; gap: 0.12rem; }
  h1 { font-size: 1.55rem; }
}

.pdf-embed-wrap {
  margin: 1rem 0 1.2rem;
  width: 100%;
}
.pdf-viewer {
  width: 100%;
  max-height: 70vh;
  overflow-x: hidden;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--paper-raised);
}
.pdf-pages {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.pdf-page {
  display: block;
  width: 100%;
  height: auto;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: 4px;
}
.pdf-status,
.pdf-fallback {
  margin: 0;
  padding: 1rem 0.9rem;
  color: var(--muted);
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: 6px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 0.95rem;
}
.people {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 1.5rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}
.people li {
  border-top: 1px solid var(--rule);
  padding: 0.55rem 0;
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 0.4rem;
}
.people li:last-child { border-bottom: 1px solid var(--rule); }
.people .role { color: var(--muted); font-size: 0.85rem; }
.people.flat li { grid-template-columns: 1fr; }
h2 + .muted { margin-top: -0.15rem; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.75rem;
  margin: 0.85rem 0 1rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}
.pills {
  border: 0;
  margin: 0;
  padding: 0;
  min-inline-size: 0;
}
.pills legend {
  padding: 0;
  margin: 0 0 0.28rem;
  color: var(--muted);
  font-size: 0.82rem;
}
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.pill {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
  background: var(--paper-raised);
  font-size: 0.85rem;
  color: var(--ink);
}
.pill input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.pill:has(input:checked) {
  background: var(--sage);
  color: #fbf7ef;
  border-color: var(--sage);
}
.pill:has(input:focus-visible) {
  outline: 2px solid var(--sage);
  outline-offset: 2px;
}
table.roster .check {
  text-align: center;
  color: var(--sage-dark);
  font-size: 1rem;
  width: 3.2rem;
}


.page-toc {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.1rem 0;
  margin: 0.35rem 0 1.1rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 0.95rem;
  line-height: 1.75;
}

.page-toc .toc-label {
  color: var(--muted);
  white-space: nowrap;
  margin-right: 0.55rem;
}
.page-toc a {
  text-decoration: none;
  white-space: nowrap;
}
.page-toc a:hover { text-decoration: underline; }
.page-toc .sep {
  color: var(--muted);
  padding: 0 0.15rem;
}

.draft-note {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 1rem;
  padding: 0.55rem 0.75rem;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: 4px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

.minutes-list {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  margin: 0.5rem 0 1.6rem;
}
.minutes-list h3,
.minutes-year {
  font-size: 1rem;
  font-weight: 650;
  margin: 1.15rem 0 0.3rem;
  color: var(--sage-dark);
  font-family: inherit;
}
.minutes-rows {
  list-style: none;
  padding: 0;
  margin: 0;
}
.minutes-row {
  border-top: 1px solid var(--rule);
  padding: 0.55rem 0;
  font-size: 0.95rem;
}
.minutes-rows .minutes-row:last-child { border-bottom: 1px solid var(--rule); }
.minutes-date { color: var(--muted); }

main.narrow ul {
  margin: 0.35rem 0 1.2rem;
  padding-left: 1.2rem;
}
main.narrow li { margin: 0.4rem 0; }
main.narrow .minutes-rows {
  list-style: none;
  padding: 0;
  margin: 0;
}
main.narrow .minutes-row { margin: 0; }

.members-area {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1rem;
  margin: 0.55rem 1.1rem 0;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--rule);
  background: var(--paper-raised);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 0.92rem;
}
.members-area-label {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--sage-dark);
}
.members-area a {
  text-decoration: none;
  color: var(--muted);
}
.members-area a:hover,
.members-area a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
}

table.history {
  width: 100%;
  border-collapse: collapse;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 0.86rem;
  min-width: 40rem;
}
table.history th,
table.history td {
  text-align: left;
  padding: 0.45rem 0.55rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
table.history th {
  background: #efe6d3;
  font-weight: 600;
}
table.history tr:last-child td { border-bottom: 0; }
table.history .src {
  color: var(--muted);
  font-size: 0.8rem;
}

table.meetings {
  width: 100%;
  border-collapse: collapse;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 0.88rem;
}
table.meetings th,
table.meetings td {
  text-align: left;
  padding: 0.5rem 0.65rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
table.meetings th {
  background: #efe6d3;
  font-weight: 600;
}
table.meetings tr:last-child td { border-bottom: 0; }
@media (max-width: 640px) {
  table.meetings thead { position: absolute; left: -9999px; }
  table.meetings tr {
    display: block;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--rule);
  }
  table.meetings tr:last-child { border-bottom: 0; }
  table.meetings td {
    display: block;
    padding: 0.2rem 0.65rem;
    border: 0;
  }
  table.meetings td::before {
    content: attr(data-label);
    display: block;
    font-weight: 600;
    margin-bottom: 0.1rem;
  }
}
