/* West Glenn Homeowner Information
   Calm navy and green, large type, built for neighbors to read on a phone or at a desk.
*/

@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("../fonts/AtkinsonHyperlegible-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("../fonts/AtkinsonHyperlegible-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("../fonts/AtkinsonHyperlegible-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("../fonts/AtkinsonHyperlegible-BoldItalic.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --navy: #1b365d;
  --navy-dark: #12243f;
  --green: #2c5a45;
  --green-dark: #1e4031;
  --cream: #f6f3ee;
  --paper: #fffcf7;
  --ink: #1c2330;
  --muted: #3e4a59;
  --line: #d6d0c6;
  --highlight: #e7f0ea;
  --warm: #f4eee3;
  --warn: #f3e6c8;
  --white: #ffffff;
  --max: 72rem;
  --read: 46rem;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(18, 36, 63, 0.08);
  --focus: 3px solid #c4a35a;
}

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

html {
  font-size: 112.5%; /* 18px */
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Atkinson Hyperlegible", "Liberation Sans", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
}

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

a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}
a:hover { color: var(--green); }
a:focus-visible,
button:focus-visible,
.nav-toggle:focus-visible,
.btn:focus-visible,
summary:focus-visible {
  outline: var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  background: var(--navy);
  color: var(--white);
  padding: 0.5rem 0.9rem;
  z-index: 100;
  border-radius: 0 0 8px 8px;
}
.skip:focus { top: 0; }

/* Header */
.site-header {
  background: var(--navy-dark);
  color: var(--white);
  border-bottom: 4px solid var(--green);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand {
  color: var(--white);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 12rem;
}
.brand:hover { color: var(--white); }
.brand-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d5e3d9;
  font-weight: 700;
}
.brand-name {
  font-size: 1.35rem;
  font-weight: 700;
}
.brand-place {
  font-size: 0.85rem;
  color: #c9d0da;
  font-weight: 400;
}

.nav-toggle {
  display: none;
}
.nav-btn {
  display: none;
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.55);
  border-radius: 8px;
  padding: 0.45rem 0.85rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.nav-btn:hover { background: rgba(255,255,255,0.08); }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.15rem;
  justify-content: flex-end;
}
.site-nav a {
  color: var(--white);
  text-decoration: none;
  display: block;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(255,255,255,0.12);
  color: var(--white);
}
.site-nav a[aria-current="page"] {
  box-shadow: inset 0 -3px 0 var(--green);
}

@media (max-width: 860px) {
  .nav-btn { display: inline-flex; align-items: center; gap: 0.4rem; }
  .site-nav {
    display: none;
    width: 100%;
    padding: 0 0 0.75rem;
  }
  .nav-toggle:checked ~ .site-nav { display: block; }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }
  .site-nav a {
    padding: 0.75rem 0.85rem;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    border-radius: 0;
  }
}

/* Main layout */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3rem;
}
.prose { max-width: var(--read); }
.prose.wide,
.wide { max-width: 58rem; }

main h1 {
  font-size: 2rem;
  line-height: 1.25;
  margin: 0 0 0.75rem;
  color: var(--navy-dark);
  letter-spacing: -0.02em;
}
main h2 {
  font-size: 1.45rem;
  line-height: 1.3;
  margin: 2rem 0 0.7rem;
  color: var(--navy);
}
main h3 {
  font-size: 1.15rem;
  margin: 1.4rem 0 0.45rem;
  color: var(--green-dark);
}
main p { margin: 0 0 1rem; }
main ul, main ol { margin: 0 0 1rem; padding-left: 1.3rem; }
main li { margin: 0.35rem 0; }
main li + li { margin-top: 0.45rem; }

.lede {
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

/* Cards, callouts */
.hero {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 6px solid var(--green);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem 1.2rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.callout {
  background: var(--highlight);
  border: 1px solid #c9dccf;
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin: 1.25rem 0;
}
.callout.warm {
  background: var(--warm);
  border-color: #e0d4bf;
}
.callout.warn {
  background: var(--warn);
  border-color: #e0c98a;
}
.callout h2,
.callout h3 { margin-top: 0; }

.opinion {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 6px solid var(--navy);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin: 1.25rem 0;
}
.opinion .label {
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 0.35rem;
}

.disclaimer {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  color: var(--muted);
  margin: 1rem 0 1.5rem;
  font-size: 0.98rem;
}

/* Hub cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
  gap: 1rem;
  margin: 1.25rem 0 2rem;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem 1.2rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
a.card:hover {
  border-color: var(--green);
  box-shadow: 0 2px 8px rgba(18, 36, 63, 0.12);
  color: inherit;
}
.card h2,
.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  color: var(--navy);
}
.card p { margin: 0; color: var(--muted); flex: 1; }
.card .more {
  margin-top: 0.8rem;
  font-weight: 700;
  color: var(--green-dark);
}

/* Document library */
.doc-list { display: flex; flex-direction: column; gap: 1rem; margin: 1.25rem 0; }
.doc {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem 1.25rem;
  align-items: center;
}
.doc h3 { margin: 0 0 0.35rem; color: var(--navy); font-size: 1.15rem; }
.doc .meta {
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.doc p { margin: 0; }
.btn {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  white-space: nowrap;
  text-align: center;
  min-width: 7.5rem;
}
.btn:hover { background: var(--green-dark); color: var(--white); }
.btn.secondary {
  background: var(--navy);
}
.btn.secondary:hover { background: var(--navy-dark); }

@media (max-width: 640px) {
  .doc { grid-template-columns: 1fr; }
  .btn { width: 100%; }
}

/* News / meetings archive */
.update-list,
.archive-list { list-style: none; padding: 0; margin: 1rem 0 2rem; }
.update,
.archive-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  margin: 0 0 1rem;
  box-shadow: var(--shadow);
}
.update time,
.when {
  display: block;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 0.3rem;
}
.update h2,
.update h3 { margin: 0 0 0.4rem; font-size: 1.2rem; }

.empty {
  background: var(--warm);
  border: 1px dashed #c9b99a;
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem;
  color: var(--muted);
}

/* Board list */
.board-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 1rem;
}
.board-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
}
.board-list .name { font-weight: 700; }
.board-list .role { color: var(--muted); }

/* Tables / definition-ish */
.toc {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin: 1rem 0 1.5rem;
}
.toc h2 { margin-top: 0; font-size: 1.15rem; }
.toc ul { margin-bottom: 0; }
.toc ol { margin-bottom: 0; }

.placeholder {
  display: inline;
  background: #fff3bf;
  border: 1px solid #e0c98a;
  border-radius: 4px;
  padding: 0 0.3em;
  font-weight: 700;
  color: var(--navy-dark);
  white-space: nowrap;
}

.contacts dt {
  font-weight: 700;
  margin-top: 1rem;
  color: var(--navy);
}
.contacts dd { margin: 0.2rem 0 0; }

.howto {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin: 1.25rem 0;
}
.howto h2 { margin-top: 0; }

.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  margin: 0 0 1.25rem;
  font-size: 0.98rem;
}

.note-small { font-size: 0.95rem; color: var(--muted); }

hr.soft {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: #d7dde5;
  padding: 2rem 1.25rem 2.5rem;
  margin-top: auto;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.site-footer a { color: #e8eef6; }
.site-footer a:hover { color: #fff; }
.footer-disclaimer {
  margin: 0 0 0.75rem;
  max-width: 50rem;
}
.footer-contact {
  margin: 0 0 0.5rem;
}
.footer-contact a {
  font-weight: 700;
}
.last-updated {
  margin: 0;
  color: #b7c0cc;
  font-size: 0.95rem;
}

body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

/* Print */
@media print {
  .site-header, .nav-btn, .skip { position: static; }
  .site-nav, .nav-btn { display: none !important; }
  .site-header { border-bottom: 2px solid #000; background: #fff; color: #000; }
  .brand, .brand-kicker, .brand-place, .brand-name { color: #000; }
  .btn { border: 1px solid #000; color: #000; background: #fff; }
  .site-footer { background: #fff; color: #000; }
  .site-footer a { color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; word-break: break-all; }
  a[href^="docs/"]::after { content: " (" attr(href) ")"; font-size: 0.85em; }
  body { background: #fff; font-size: 12pt; }
}

/* Slightly larger type on very small phones for readability */
@media (max-width: 400px) {
  html { font-size: 106.25%; }
  main h1 { font-size: 1.7rem; }
}

/* Cleaned and plain-English document versions */
.doc-versions { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 0.75rem; }
.doc-versions p { margin: 0.25rem 0; }
.doc-versions .ver-label { font-weight: 700; color: var(--navy); }
.trio { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.9rem 1.1rem; margin: 1rem 0 1.5rem; }
.trio .trio-title { font-weight: 700; color: var(--navy); margin: 0 0 0.5rem; }
.trio ul { list-style: none; padding: 0; margin: 0 0 0.5rem; }
.trio li { margin: 0.35rem 0; }
.trio .trio-k { display: inline-block; min-width: 12.5rem; font-weight: 700; color: var(--green-dark); }
.trio .trio-back { margin: 0; }
.legend { color: var(--muted); font-size: 0.95rem; }
.clean-doc p { overflow-wrap: anywhere; }
.clean-doc u { text-decoration-thickness: 2px; text-decoration-color: var(--green); }
.clean-doc del { color: #8a1c1c; }
.clean-doc .page-marker { margin: 1.75rem 0 0.5rem; padding-top: 0.5rem; border-top: 1px dashed var(--line); color: var(--muted); font-size: 0.9rem; }
.clean-doc h2, .plain-doc h2 { overflow-wrap: anywhere; }
.table-wrap { overflow-x: auto; margin: 0 0 1rem; }
table.ref { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
table.ref td { border: 1px solid var(--line); padding: 0.4rem 0.6rem; vertical-align: top; }
@media (max-width: 640px) { .trio .trio-k { display: block; min-width: 0; } }

/* Stay Connected signup form */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.signup-form, #stay-connected-form {
  margin: 1rem 0 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem 1rem;
  box-shadow: var(--shadow);
}
#stay-connected-form .field { margin: 0 0 1rem; }
#stay-connected-form label { display: block; font-weight: 700; color: var(--navy); margin: 0 0 0.3rem; }
#stay-connected-form .req { color: var(--green-dark); font-weight: 700; font-size: 0.9rem; }
#stay-connected-form .opt { color: var(--muted); font-weight: 400; font-size: 0.9rem; }
#stay-connected-form input[type="text"],
#stay-connected-form input[type="tel"],
#stay-connected-form input[type="email"] {
  display: block;
  width: 100%;
  max-width: 28rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  background: #fff;
}
#stay-connected-form input:focus {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}
#stay-connected-form .check {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}
#stay-connected-form .check input {
  margin-top: 0.28rem;
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
}
#stay-connected-form .check label { font-weight: 400; color: inherit; margin: 0; }
#stay-connected-form .privacy { color: var(--muted); font-size: 0.95rem; }
#stay-connected-form button.btn { border: 0; cursor: pointer; font: inherit; }
.stay-cta .btn { margin-top: 0.25rem; }
#stay-connected-form .btn + .btn,
.prose .btn + .btn { margin-left: 0.5rem; }
@media (max-width: 640px) {
  #stay-connected-form input[type="text"],
  #stay-connected-form input[type="tel"],
  #stay-connected-form input[type="email"] { max-width: none; }
  .prose .btn + .btn { margin-left: 0; margin-top: 0.5rem; display: block; }
}
