/* Deer Park Meadows East — A Homeowner Resource
   Static styles. No external resources. System font stack (no web font is
   loaded, so nothing phones home and there is nothing to self-host). */

:root {
  --accent: #335c67;        /* restrained neutral slate-teal */
  --accent-dark: #284a53;
  --ink: #1f2a2d;           /* body text */
  --ink-muted: #51616a;     /* secondary text (AA on white) */
  --bg: #f6f8f8;
  --card: #ffffff;
  --line: #d3dcdd;
  --maxw: 46rem;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.125rem;     /* large, readable body */
  line-height: 1.6;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 10;
}
.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* Header */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}
.site-name {
  font-weight: 700;
  color: var(--accent-dark);
  letter-spacing: 0.01em;
}
.contact-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--accent);
  border-radius: 4px;
}
.contact-link:hover { background: var(--accent); color: #fff; }

/* Sections */
.section {
  padding: 2.75rem 0;
  border-bottom: 1px solid var(--line);
}
.section--intro {
  background: var(--card);
  padding-top: 3.25rem;
}
.section--contact { background: var(--card); }

h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 0.5rem;
  color: var(--accent-dark);
}
h2 {
  font-size: 1.5rem;
  line-height: 1.25;
  margin: 0 0 0.85rem;
  color: var(--accent-dark);
}
h3 {
  font-size: 1.2rem;
  margin: 0 0 1rem;
  color: var(--accent-dark);
}
.subhead {
  font-size: 1.2rem;
  color: var(--ink-muted);
  margin: 0 0 1.25rem;
}
p { margin: 0 0 1rem; }
strong { font-weight: 700; }
.muted { color: var(--ink-muted); }

/* [DATE] placeholder marker */
.placeholder {
  background: #fff3cd;
  color: #5b4a00;
  padding: 0 0.25rem;
  border-radius: 3px;
  font-weight: 600;
}

/* Year-at-a-glance graphic + legend */
.glance {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  align-items: center;
  margin-top: 1.25rem;
}
.pie-figure { margin: 0; }
.pie {
  width: 220px;
  height: 220px;
  display: block;
}
.glance-text { flex: 1 1 16rem; }
.breakdown {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}
.breakdown li {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin: 0 0 0.5rem;
}
.swatch {
  display: inline-block;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 2px;
  border: 1px solid rgba(0,0,0,0.15);
  flex: 0 0 auto;
  transform: translateY(0.05rem);
}

/* Forms */
.forms {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 1.5rem 0 1rem;
}
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.25rem 1.25rem 1.5rem;
  flex: 1 1 18rem;
}
.field { margin: 0 0 1rem; }
.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.req { color: #9a2a2a; }
.opt { color: var(--ink-muted); font-weight: 400; }
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  padding: 0.6rem 0.7rem;
  border: 1px solid #9aa7aa;
  border-radius: 5px;
  background: #fff;
}
textarea { resize: vertical; }
button {
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent-dark);
  padding: 0.65rem 1.25rem;
  border-radius: 6px;
  cursor: pointer;
}
button:hover { background: var(--accent-dark); }

.privacy {
  color: var(--ink-muted);
  font-size: 1rem;
  margin-top: 0.5rem;
}

/* Honeypot — visually and from-AT hidden, still in the DOM for bots */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Header — portal variant: site-name doubles as a Home link */
.site-name--link {
  text-decoration: none;
}
.site-name--link:hover { text-decoration: underline; }
.nav-link {
  display: inline-block;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  /* Padding gives a >=24px tap target (WCAG 2.2 target-size) and spacing
     from the adjacent Contact button. */
  padding: 0.35rem 0.5rem;
  margin-right: 0.35rem;
}
.nav-link:hover { text-decoration: underline; }

/* Transparency portal — jump-nav (the spine) */
.jump-nav {
  margin-top: 1.5rem;
}
.jump-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.85rem;
}
.jump-nav a {
  display: inline-block;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--accent);
  border-radius: 5px;
  background: var(--card);
}
.jump-nav a:hover { background: var(--accent); color: #fff; }
.jump-nav a:hover .soon-tag { color: #e7eeef; }
.soon-tag {
  color: var(--ink-muted);
  font-weight: 400;
  font-size: 0.9em;
}

/* Governing-documents tier */
.doc-disclaimer,
.doc-naming-note {
  color: var(--ink-muted);
  font-size: 1rem;
}
.doc-list {
  list-style: none;
  margin: 1.5rem 0 1.5rem;
  padding: 0;
}
.doc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.25rem 1.25rem 1.35rem;
  margin: 0 0 1.25rem;
}
.doc h3 { margin: 0 0 0.35rem; }
.doc-meta {
  color: var(--ink-muted);
  font-size: 0.95rem;
  font-style: italic;
  margin: 0 0 0.85rem;
}
.doc-summary { margin: 0 0 0.85rem; }
.doc-points {
  margin: 0 0 0.85rem;
  padding-left: 1.25rem;
}
.doc-points li { margin: 0 0 0.5rem; }

/* Naming-note callout */
.doc-note {
  background: var(--card);
  border-left: 4px solid var(--accent);
  border-radius: 0 6px 6px 0;
  padding: 0.9rem 1.1rem;
  margin: 0 0 1.75rem;
}
.doc-note p { margin: 0; }
.doc-file {
  margin: 0.35rem 0 0;
  font-size: 1rem;
}
.doc-file a {
  color: var(--accent);
  font-weight: 600;
}
/* Awaiting placement — never a broken link, a clear notice instead */
.doc-file--pending {
  color: var(--ink-muted);
  font-style: italic;
}
.doc-feedback {
  margin-top: 1.25rem;
}

/* Coming-soon tiers */
.coming-soon {
  color: var(--ink-muted);
}

/* Gated financial-statements landing page */
.stmt-year { margin: 0 0 1.75rem; }
.stmt-year h2 { margin: 0 0 0.6rem; }
.stmt-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  gap: 0.4rem 1.25rem;
}
.stmt-list a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  padding: 0.2rem 0;
}
.stmt-list a:hover { text-decoration: underline; }
.stmt-pdf { color: var(--ink-muted); font-weight: 400; font-size: 0.9em; }
.stmt-gap { color: var(--ink-muted); font-size: 1rem; margin: 0.6rem 0 0; }

/* Where-the-money-goes — finance tables.
   Wrapped in a focusable, labelled region so wide tables scroll horizontally
   on narrow screens without breaking the figures apart. */
.fin-table-wrap {
  overflow-x: auto;
  margin: 0 0 1.5rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card);
}
.fin-table-wrap:focus-visible {
  outline: 3px solid #b8860b;
  outline-offset: 2px;
}
table.fin {
  border-collapse: collapse;
  width: 100%;
  font-size: 1rem;
}
table.fin caption {
  text-align: left;
  font-weight: 700;
  color: var(--accent-dark);
  padding: 0.6rem 0.75rem;
}
table.fin th,
table.fin td {
  padding: 0.5rem 0.75rem;
  text-align: right;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
table.fin thead th {
  background: var(--bg);
  border-bottom: 2px solid var(--accent);
}
table.fin thead th:first-child,
table.fin th[scope="row"] {
  text-align: left;
}
table.fin th[scope="row"] { font-weight: 600; }
table.fin tbody tr:nth-child(even) { background: rgba(51, 92, 103, 0.045); }
table.fin tbody tr:last-child td,
table.fin tbody tr:last-child th { border-bottom: 0; }
.fin-footnote {
  font-size: 0.95rem;
  color: var(--ink-muted);
  margin: -0.75rem 0 1.5rem;
}
.fin-footnote sup { font-weight: 700; }

/* Footer */
.site-footer {
  background: var(--accent-dark);
  color: #e7eeef;
  padding: 1.75rem 0;
}
.site-footer p { margin: 0; font-size: 1rem; }

/* Visible keyboard focus everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #b8860b;
  outline-offset: 2px;
}
/* Fallback for browsers without :focus-visible */
a:focus, button:focus, input:focus, textarea:focus {
  outline: 3px solid #b8860b;
  outline-offset: 2px;
}

@media (min-width: 40rem) {
  h1 { font-size: 2.4rem; }
  .section { padding: 3.25rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
}
