/* SydWest MS — mid-fi layout wireframe
   Single stylesheet. System fonts. Neutral palette (no brand).
   Purpose: show layout, component hierarchy, navigation, and reading flow.
   Brand colour, typography, and imagery come in the design phase. */

:root {
  --text: #1a1a1a;
  --muted: #5b6168;
  --rule: #d8dadd;
  --rule-strong: #b8bcc1;
  --surface: #ffffff;
  --surface-sunk: #f5f6f7;
  --surface-deep: #2a2e33;
  --accent: #1d5fbf;
  --gap-bg: #fffbe6;
  --gap-border: #d4a900;
  --review-bg: #fff0e6;
  --review-border: #c45a00;
  --measure: 65ch;
  --layout-max: 1200px;
  --sidebar-w: 240px;
}

* { box-sizing: border-box; }

html {
  font-size: 17px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* Layout: header + page-wrap (sidebar + main) + footer */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--rule-strong);
}

.site-header-inner {
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}

.site-brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
  line-height: 1.2;
}
.site-brand span {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 0.1em;
}

.site-nav {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.4em 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--rule-strong); }
.site-nav a.current { border-bottom-color: var(--text); }

.site-utility {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.site-utility .phone-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.site-utility .donate-btn {
  background: var(--text);
  color: var(--surface);
  padding: 0.45em 1em;
  border-radius: 3px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}
.site-utility .donate-btn:hover { background: var(--surface-deep); }

@media (max-width: 800px) {
  .site-header-inner { gap: 0.75rem; }
  .site-nav { order: 3; width: 100%; }
}

/* Page wrap (sidebar + main) */

.page-wrap {
  max-width: var(--layout-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  gap: 3rem;
  padding: 2rem 1.5rem 4rem;
}

.page-wrap.no-sidebar {
  grid-template-columns: 1fr;
  max-width: var(--layout-max);
}

.page-wrap.no-sidebar > main {
  max-width: var(--measure);
  margin: 0 auto;
  width: 100%;
}

@media (max-width: 800px) {
  .page-wrap {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.page-sidebar {
  font-size: 0.92rem;
}

.page-sidebar h2 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0.5rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule);
}

.page-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-sidebar li {
  margin: 0;
  padding: 0.4em 0;
  border-bottom: 1px dotted var(--rule);
}

.page-sidebar a {
  text-decoration: none;
  color: var(--text);
}
.page-sidebar a:hover { color: var(--accent); }

.page-sidebar li.current {
  font-weight: 700;
}
.page-sidebar li.current::before {
  content: "▸ ";
  color: var(--muted);
}

.page-sidebar .sidebar-section + .sidebar-section { margin-top: 1.5rem; }

main.page-main {
  min-width: 0; /* prevent grid blowout from long words */
}

main.page-main > article {
  max-width: var(--measure);
}

/* Hero — implicit treatment of the first H1 + first intent */

.page-main > article > h1:first-child {
  font-size: 2.4rem;
  line-height: 1.15;
  margin: 0 0 0.5rem;
}

.page-main > article > h1:first-child + .intent {
  font-size: 1.25rem;
  color: var(--text);
  margin: 0 0 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
  max-width: 60ch;
}

/* Legacy single-column (used by /index.html — the wireframe index page) */

main:not(.page-main), .wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2rem 1.5rem 6rem;
}

/* Typography */

h1, h2, h3, h4 {
  line-height: 1.25;
  margin-top: 2em;
  margin-bottom: 0.5em;
  font-weight: 600;
}

h1 { font-size: 2.1rem; margin-top: 0.5em; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }

p, ul, ol, blockquote {
  margin: 0 0 1em;
}

ul, ol { padding-left: 1.4em; }
li { margin-bottom: 0.25em; }

blockquote {
  border-left: 3px solid var(--rule);
  padding: 0.25em 0 0.25em 1em;
  color: var(--muted);
  font-style: italic;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
a:hover { text-decoration-thickness: 2px; }

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2.5em 0;
}

code, pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.92em;
}

pre {
  background: var(--surface-sunk);
  padding: 1em;
  overflow-x: auto;
  border-radius: 4px;
}

/* Top nav strip */

.nav-strip {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid var(--rule);
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: baseline;
}

.nav-strip a { color: var(--muted); }
.nav-strip .crumbs { flex: 1; }
.nav-strip .crumbs a:not(:last-child)::after {
  content: " / ";
  color: var(--rule);
  text-decoration: none;
  display: inline-block;
  margin: 0 0.4em;
}

.nav-strip .home-link {
  font-weight: 600;
  color: var(--text);
}

/* Intent line — one-liner promise under H1 */

.intent {
  font-size: 1.2rem;
  color: var(--muted);
  margin: 0 0 2em;
  max-width: 50ch;
}

/* Service-page sections */

main > section {
  margin-bottom: 2.5em;
  padding-bottom: 1.5em;
  border-bottom: 1px dashed var(--rule);
}
main > section:last-child { border-bottom: none; }

section h2 { margin-top: 0; }

/* Cards (used in "What we offer", hub grids, related lists) */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
}

.card-grid li, .card-grid > article {
  border: 1px solid var(--rule);
  padding: 1rem;
  border-radius: 4px;
  background: var(--surface);
}

.card-grid h3 {
  margin-top: 0;
  font-size: 1rem;
}

.card-grid p {
  margin: 0.25em 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.card-grid a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}
.card-grid a:hover { color: var(--accent); }

/* CTA block */

.cta {
  background: var(--surface-sunk);
  border-left: 3px solid var(--accent);
  padding: 1.25em 1.5em;
  border-radius: 4px;
}

.cta h2 { margin-top: 0; }

.cta-action {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 0.6em 1.2em;
  text-decoration: none;
  border-radius: 4px;
  margin-top: 0.5em;
  font-weight: 600;
}

/* Content-gap block (highly visible) */

.gap {
  background: var(--gap-bg);
  border-left: 4px solid var(--gap-border);
  padding: 1.25em 1.5em;
  border-radius: 4px;
  margin: 1.5em 0;
}

.gap-label {
  display: inline-block;
  background: var(--gap-border);
  color: #1a1a1a;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2em 0.6em;
  border-radius: 3px;
  margin: 0 0 0.75em;
}

.gap h2 { margin-top: 0; }

/* Review block (Participate bios etc. — currently excluded from wireframe but if surfaced, use this) */

.review {
  background: var(--review-bg);
  border-left: 4px solid var(--review-border);
  padding: 1em 1.25em;
  border-radius: 4px;
  margin: 1.5em 0;
}

.review-label {
  display: inline-block;
  background: var(--review-border);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2em 0.6em;
  border-radius: 3px;
  margin: 0 0 0.75em;
}

/* Source-pool — collapsed reference content during Phase C rewrite */

.source-pool {
  margin: 3em 0 0;
  padding-top: 1.5em;
  border-top: 2px dashed var(--rule);
  font-size: 0.92rem;
  color: var(--muted);
}

.source-pool summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--muted);
  padding: 0.5em 0;
}

.source-pool article {
  margin: 1.5em 0;
  padding: 1em;
  background: var(--surface-sunk);
  border-radius: 4px;
}

.source-pool article header {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.75em;
  padding-bottom: 0.5em;
  border-bottom: 1px solid var(--rule);
}

.source-pool .source-meta {
  font-family: monospace;
  font-size: 0.85em;
}

/* Inert link — wireframe pages don't navigate out to the old sites */

.inert-link {
  color: var(--muted);
  text-decoration: underline dotted;
  cursor: help;
}

/* Status badges (index.html) */

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.15em 0.5em;
  border-radius: 3px;
  vertical-align: middle;
  margin-left: 0.5em;
}

.badge-draft     { background: var(--surface-sunk); color: var(--muted); border: 1px solid var(--rule); }
.badge-gap       { background: var(--gap-border); color: #1a1a1a; }
.badge-migrate   { background: #e6f2ff; color: #0a3e85; border: 1px solid #b6d3f0; }
.badge-done      { background: #e6f7ed; color: #1d6b3d; border: 1px solid #b8e0c6; }

/* Index page */

.index-section {
  margin-bottom: 2.5em;
}

.index-section h2 {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.3em;
}

.index-list {
  list-style: none;
  padding: 0;
}

.index-list li {
  padding: 0.5em 0;
  border-bottom: 1px dotted var(--rule);
}

.index-list a {
  text-decoration: none;
  font-weight: 600;
}
.index-list a:hover { text-decoration: underline; }

.index-list .leaf-meta {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 0.15em;
}

.summary-counts {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1em 1.25em;
  background: var(--surface-sunk);
  border-radius: 4px;
  margin-bottom: 2em;
}

.summary-counts dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.summary-counts dd {
  margin: 0.1em 0 0;
  font-size: 1.6rem;
  font-weight: 600;
}

/* Footnote at page bottom — what this wireframe is and isn't */

.wireframe-footnote {
  margin-top: 4em;
  padding-top: 1.5em;
  border-top: 1px solid var(--rule);
  font-size: 0.85rem;
  color: var(--muted);
}

/* Site footer */

.site-footer {
  background: var(--surface-deep);
  color: #d7dbe0;
  margin-top: 4rem;
}

.site-footer a {
  color: #d7dbe0;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.site-footer a:hover { border-bottom-color: #d7dbe0; }

.site-footer-inner {
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 3rem 1.5rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
}

.site-footer h3 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #4a4f55;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.7;
}

.site-footer p {
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0 0 0.5rem;
}

.acknowledgement {
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 0;
  font-size: 0.88rem;
  font-style: italic;
  color: #9ba1a8;
  border-top: 1px solid #3a3f45;
}

.site-footer-legal {
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 1rem 1.5rem 1.5rem;
  font-size: 0.82rem;
  color: #9ba1a8;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

.site-footer-legal nav { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Profile cards — used on Our board, Our people */

.profile-list article {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
}
.profile-list article:last-child { border-bottom: none; }
.profile-list h3 { margin-top: 0; margin-bottom: 0.25em; }
.profile-list h3 + p { margin-top: 0; color: var(--muted); }
