/* ============================================================
   PDX Housing Network - shared styles for interior pages
   The home page (index.html) keeps its own inline <style> block.
   This file styles every OTHER page: map.html, sources.html.
   Palette and type here must match index.html.
   ============================================================ */

:root {
  --forest: #183D29;
  --forest-deep: #0F2A1C;
  --lime: #CCFF99;
  --moss: #4A7412;
  --indigo: #4350D6;
  --plum: #A83B87;
  --paper: #F6F5F1;
  --card: #FFFFFF;
  --ink: #1E2B24;
  --ink-soft: #4A564F;
  --line: #DDDAD1;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

.wrap { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 700px; }

.eyebrow {
  font-family: "Roboto Slab", Georgia, serif;
  font-weight: 600; font-size: 12.5px;
  text-transform: uppercase; letter-spacing: .09em;
}
.section-eyebrow { color: var(--moss); }

/* ---------- page header (compact version of the home hero) ---------- */
.pagehead { background: var(--forest); color: var(--paper); padding: 20px 0 56px; }
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0 40px; gap: 16px; flex-wrap: wrap;
}
.wordmark {
  font-family: "Outfit", sans-serif; font-weight: 800; text-transform: uppercase;
  font-size: 17px; color: var(--lime); text-decoration: none;
}
.topbar nav { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar nav a { color: var(--paper); text-decoration: none; font-weight: 600; font-size: 15px; }
.topbar nav a:hover { color: var(--lime); }
.topbar nav a[aria-current="page"] { color: var(--lime); }
.pagehead .eyebrow { color: var(--lime); }
.pagehead h1 {
  font-family: "Outfit", sans-serif; font-weight: 800; text-transform: uppercase;
  font-size: clamp(32px, 5.5vw, 52px); line-height: 1.05;
  margin: 10px 0 18px; text-wrap: balance;
}
.pagehead .lede {
  font-family: "Roboto Slab", Georgia, serif; font-weight: 600;
  font-size: clamp(17px, 2.3vw, 20px); line-height: 1.5;
  max-width: 640px; margin: 0;
}

/* ---------- sections ---------- */
section { padding: 56px 0; }
section h2 {
  font-family: "Outfit", sans-serif; font-weight: 800; text-transform: uppercase;
  font-size: clamp(24px, 3.6vw, 32px); line-height: 1.1;
  color: var(--forest); margin: 8px 0 14px; text-wrap: balance;
}
section h3 {
  font-family: "Outfit", sans-serif; font-weight: 800; text-transform: uppercase;
  font-size: 18px; margin: 0 0 8px; color: var(--forest);
}
.section-intro {
  font-family: "Roboto Slab", Georgia, serif; font-weight: 600;
  font-size: 18.5px; line-height: 1.55; max-width: 680px; margin: 0 0 26px;
}
.alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: "Outfit", sans-serif; font-weight: 600; font-size: 16.5px;
  border-radius: 999px; padding: 13px 28px; border: 2px solid var(--forest);
  background: var(--forest); color: var(--paper);
}
.btn:hover { opacity: .88; }
.btn-lime { background: var(--lime); color: var(--forest-deep); border-color: var(--lime); }
.btn-lime:hover { background: #DEFFB8; opacity: 1; }
.btn:focus-visible { outline: 3px solid var(--indigo); outline-offset: 2px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 26px; }

/* ---------- generic cards ---------- */
.cards { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 26px; }
@media (min-width: 760px) { .cards-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 760px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.alt .card { background: var(--paper); }
.card p { font-size: 15px; color: var(--ink-soft); margin: 0; }
.card .eyebrow { color: var(--plum); }

/* ---------- source list ---------- */
.sourcelist { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.srcitem {
  background: var(--card); border: 1px solid var(--line);
  border-left: 4px solid var(--moss); border-radius: 0 10px 10px 0;
  padding: 16px 20px;
}
.alt .srcitem { background: var(--paper); }
.srcitem .t { font-family: "Outfit", sans-serif; font-weight: 600; font-size: 16.5px; color: var(--forest); }
.srcitem .d { font-size: 15px; color: var(--ink-soft); margin-top: 3px; }
.srcitem a { color: var(--indigo); }
.srcitem .who {
  font-family: "Roboto Slab", Georgia, serif; font-weight: 600; font-size: 11.5px;
  text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft);
  display: block; margin-bottom: 4px;
}

/* ---------- plain checklist ---------- */
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; font-size: 16px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 12px; height: 12px; border-radius: 3px; background: var(--lime);
  border: 2px solid var(--forest);
}

/* ---------- callout ---------- */
.callout {
  margin-top: 26px; padding: 18px 20px; border-left: 4px solid var(--moss);
  background: var(--paper); border-radius: 0 10px 10px 0; font-size: 15.5px;
}
.alt .callout { background: var(--card); }
.callout b { color: var(--forest); }

/* ---------- policy / prose pages ---------- */
.prose { max-width: 700px; }
.prose h2 {
  font-family: "Outfit", sans-serif; font-weight: 800; text-transform: uppercase;
  font-size: 21px; line-height: 1.15; color: var(--forest); margin: 38px 0 10px;
}
.prose h3 {
  font-family: "Outfit", sans-serif; font-weight: 600; text-transform: none;
  font-size: 17.5px; color: var(--forest); margin: 24px 0 6px;
}
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 16px; padding-left: 20px; }
.prose li { margin-bottom: 7px; }
.prose a { color: var(--indigo); }
.prose .lead {
  font-family: "Roboto Slab", Georgia, serif; font-weight: 600;
  font-size: 18.5px; line-height: 1.55; margin: 0 0 26px;
}
.prose .updated {
  font-family: "Roboto Slab", Georgia, serif; font-weight: 600; font-size: 12.5px;
  text-transform: uppercase; letter-spacing: .09em; color: var(--ink-soft);
  margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line);
}

/* ---------- slim footer (full hotline list lives on the home page) ---------- */
footer { background: var(--forest-deep); color: #C9D4CC; padding: 44px 0 52px; font-size: 14.5px; }
footer .wordmark { display: inline-block; margin-bottom: 14px; }
footer p { margin: 0 0 12px; max-width: 760px; }
footer b { color: var(--paper); }
footer a { color: var(--lime); }
.footnav { display: flex; gap: 20px; flex-wrap: wrap; margin: 0 0 16px; padding: 0; list-style: none; }
.footnav a { font-weight: 600; }
