/* =========================================================
   North Village Green I Association — site stylesheet
   Color palette modeled on the VA.gov / U.S. Web Design System
   palette. No VA logos, seals or branding are used.
   ========================================================= */

:root {
  --navy:        #112e51;  /* header / footer background   */
  --blue:        #005ea2;  /* links, primary accents        */
  --blue-dark:   #1a4480;  /* link hover                    */
  --gold:        #fdb81e;  /* accent bar, focus outline     */
  --visited:     #4c2c92;  /* visited links                 */
  --ink:         #1b1b1b;  /* body text                     */
  --gray-dark:   #565c65;  /* secondary text                */
  --gray-light:  #dfe1e2;  /* borders                       */
  --gray-bg:     #f1f1f1;  /* panels, table headers         */
  --cool-bg:     #e1f3f8;  /* informational notices         */
  --warn-bg:     #faf3d1;  /* placeholder notices           */
  --white:       #ffffff;
  --max:         64rem;
}

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

html { font-size: 100%; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Source Sans Pro", "Source Sans 3", -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: Bitter, Georgia, "Times New Roman", serif;
  line-height: 1.25;
  color: var(--ink);
}
h1 { font-size: 2rem; margin: 0 0 1rem; }
h2 { font-size: 1.5rem; margin: 2.25rem 0 0.75rem; }
h3 { font-size: 1.2rem; margin: 1.5rem 0 0.5rem; }

a { color: var(--blue); text-decoration: underline; }
a:visited { color: var(--visited); }
a:hover { color: var(--blue-dark); }
a:focus, button:focus { outline: 3px solid var(--gold); outline-offset: 2px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1rem; }

/* Skip link */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--white); color: var(--blue); padding: 0.5rem 1rem; z-index: 10;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* Header */
.site-header { background: var(--navy); color: var(--white); border-bottom: 4px solid var(--gold); }
.site-header .wrap { padding-top: 1rem; padding-bottom: 0.75rem; }
.site-name {
  display: inline-block;
  font-family: Bitter, Georgia, serif;
  font-size: 1.4rem; font-weight: 700;
  color: var(--white); text-decoration: none;
}
.site-name:visited, .site-name:hover { color: var(--white); }
.site-tagline { margin: 0.15rem 0 0; font-size: 0.95rem; color: #d9e8f6; }

/* Navigation (wraps naturally on small screens; no JavaScript) */
.site-nav { background: var(--blue-dark); }
.site-nav ul { list-style: none; margin: 0 auto; padding: 0 0.5rem; display: flex; flex-wrap: wrap; max-width: var(--max); }
.site-nav a {
  display: block; padding: 0.7rem 0.75rem;
  color: var(--white); text-decoration: none; font-weight: 600;
}
.site-nav a:visited { color: var(--white); }
.site-nav a:hover { background: var(--navy); color: var(--white); text-decoration: underline; }
.site-nav a[aria-current="page"] { background: var(--navy); box-shadow: inset 0 -4px 0 var(--gold); }

/* Main */
main { padding: 2rem 0 3rem; }
.lead { font-size: 1.2rem; color: var(--gray-dark); margin-top: 0; }

/* Notices */
.notice { border-left: 6px solid var(--blue); background: var(--cool-bg); padding: 1rem 1.25rem; margin: 1.5rem 0; }
.notice p:first-child { margin-top: 0; }
.notice p:last-child { margin-bottom: 0; }
.notice--placeholder { border-left-color: var(--gold); background: var(--warn-bg); }

/* Placeholder text — deliberately conspicuous so nothing ships unfilled */
.ph { background: var(--warn-bg); outline: 1px dashed #b38c00; padding: 0 0.2em; font-weight: 600; }

/* Link cards on the home page */
.card-list { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 40em) { .card-list { grid-template-columns: 1fr 1fr; } }
.card-list li { border: 1px solid var(--gray-light); border-top: 4px solid var(--blue); padding: 1rem 1.25rem; }
.card-list h2 { font-size: 1.2rem; margin: 0 0 0.35rem; }
.card-list p { margin: 0; color: var(--gray-dark); }

/* Definition-style info table */
.info-table, .doc-table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; }
.info-table th, .info-table td,
.doc-table th, .doc-table td { text-align: left; vertical-align: top; padding: 0.65rem 0.75rem; border: 1px solid var(--gray-light); }
.info-table th { width: 38%; background: var(--gray-bg); font-weight: 600; }
.doc-table thead th { background: var(--gray-bg); }
.doc-table caption { text-align: left; font-weight: 700; padding-bottom: 0.4rem; }

/* Stack tables on narrow screens */
@media (max-width: 40em) {
  .info-table th, .info-table td { display: block; width: 100%; }
  .info-table td { border-top: 0; }
  .doc-table thead { position: absolute; left: -9999px; }
  .doc-table tr { display: block; border: 1px solid var(--gray-light); margin-bottom: 0.75rem; }
  .doc-table td { display: block; border: 0; border-bottom: 1px solid var(--gray-light); }
  .doc-table td:last-child { border-bottom: 0; }
  .doc-table td::before { content: attr(data-label); display: block; font-weight: 700; font-size: 0.85rem; color: var(--gray-dark); }
}

.pdf-link::after { content: " (PDF)"; font-size: 0.9em; color: var(--gray-dark); }

.small { font-size: 0.9rem; color: var(--gray-dark); }

/* Footer */
.site-footer { background: var(--navy); color: var(--white); border-top: 4px solid var(--gold); padding: 1.75rem 0; font-size: 0.95rem; }
.site-footer a, .site-footer a:visited { color: var(--white); }
.site-footer .footer-name { font-weight: 700; font-size: 1.05rem; margin: 0 0 0.35rem; }
.site-footer p { margin: 0.2rem 0; }
.site-footer .ph { background: #3d4551; outline-color: var(--gold); color: var(--white); }
.site-footer .updated { margin-top: 1rem; color: #c5d4e3; }

@media print {
  .site-nav, .skip-link { display: none; }
  .site-header, .site-footer { background: none; color: #000; border: 0; }
  .site-name, .site-footer a { color: #000; }
}
