/* ============================================================================
   Albuquerque Housing Authority — website redevelopment concept by Stoa
   A warm, light, fully accessible (WCAG 2.1 AA) housing-authority design system.
   Identity: AHA's own terracotta brand color (#C25227), grounded in the New
   Mexico high desert — Sandia-sunset clay + rose, turquoise, adobe sand.
   Newsreader display + Inter body. Every color pair checked for AA contrast.
   ========================================================================== */

:root {
  --paper:        #fbf7f1;  /* warm adobe cream base            */
  --surface:      #ffffff;  /* cards / raised surfaces           */
  --surface-alt:  #f4ebe0;  /* banded sections (deeper sand)     */
  --ink:          #241c17;  /* primary text (warm brown-black)   */
  --muted:        #5e5249;  /* secondary text (AA on paper)      */
  --head:         #3a1d12;  /* headings (deep clay brown)        */

  --terra:        #b8472a;  /* PRIMARY: terracotta (AHA brand, deepened) */
  --terra-deep:   #8f3119;  /* hover / pressed                   */
  --terra-text:   #9c3a1e;  /* terracotta as text/links (AA)     */
  --terra-soft:   #f7e7df;  /* terracotta tint panel             */

  --turq:         #0f7d8c;  /* secondary: desert turquoise       */
  --turq-deep:    #0b606c;  /* turquoise as text/links (AA)      */
  --turq-soft:    #e1f0f1;

  --sun:          #c98a2b;  /* adobe/harvest gold accent         */
  --sun-text:     #8a5e12;  /* gold as text (AA)                 */
  --sun-bright:   #edbf5e;  /* gold on dark backgrounds          */

  --plum:         #43203a;  /* Sandia-sunset plum (deep bands)   */
  --plum-deep:    #2e1528;  /* darkest plum                      */
  --espresso:     #2a1810;  /* footer / deep warm neutral        */

  --sage:         #3f6b50;  /* cactus/sage green (pass, positive)*/
  --sage-soft:    #e4efe6;
  --crit:         #9a2820;  /* red — error states only           */
  --crit-soft:    #f7e2df;
  --warn-text:    #8a5a00;  /* amber — moderate                  */
  --warn-soft:    #fbf0d8;

  --border:       #e7dccd;
  --border-strong:#d2c2ab;
  --focus:        #0b606c;  /* turquoise focus ring (high-contrast on terra + paper) */

  --shadow:   0 1px 2px rgba(40,24,16,.05), 0 6px 20px rgba(40,24,16,.07);
  --shadow-lg:0 4px 10px rgba(40,24,16,.08), 0 18px 40px rgba(40,24,16,.10);
  --radius:   10px;
  --maxw:     1120px;
  --readw:    720px;
  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(16px, 0.97rem + 0.15vw, 18px);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--display); color: var(--head); line-height: 1.13; font-weight: 600; margin: 0 0 .5rem; letter-spacing: -0.012em; }
h1 { font-size: clamp(2.1rem, 1.35rem + 3.3vw, 3.4rem); font-weight: 600; }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.7vw, 2.15rem); }
h3 { font-size: 1.28rem; }
h4 { font-size: 1.02rem; font-family: var(--body); font-weight: 700; letter-spacing: .01em; }
p { margin: 0 0 1rem; }
a { color: var(--terra-text); text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { color: var(--terra-deep); }
strong { font-weight: 700; }
img { max-width: 100%; height: auto; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }
ul, ol { margin: 0 0 1rem; }

/* Keyboard focus: always-visible outline, never color alone */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--terra); color: #fff; padding: .7rem 1.1rem;
  font-weight: 600; border-radius: 0 0 6px 0; text-decoration: none;
}
.skip-link:focus { left: 0; color: #fff; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.read { max-width: var(--readw); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---- Layout utilities ---- */
.grid-2 { display: grid; gap: 1.5rem; grid-template-columns: 1fr 1fr; align-items: start; }
.grid-2-wide { display: grid; gap: 2rem; grid-template-columns: 1.3fr 1fr; align-items: center; }
.nowrap { white-space: nowrap; }
@media (max-width: 680px) { .grid-2, .grid-2-wide { grid-template-columns: 1fr; } }

/* ---- Prototype disclaimer banner ---- */
.proto-banner {
  background: var(--plum-deep); color: #f6e9e3;
  font-size: .8rem; line-height: 1.45; text-align: center; padding: .5rem 1rem;
}
.proto-banner strong { color: #fff; }
.proto-banner a { color: var(--sun-bright); }

/* ---- Utility (top) bar ---- */
.util-bar { background: var(--espresso); color: #e9ddd2; font-size: .82rem; }
.util-bar .wrap { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; justify-content: space-between; align-items: center; padding: .42rem 1.25rem; }
.util-bar a { color: #fff; text-decoration: none; }
.util-bar a:hover { text-decoration: underline; }
.util-links { display: flex; flex-wrap: wrap; gap: .35rem 1rem; align-items: center; }

/* language toggle */
.lang-toggle { display: inline-flex; align-items: center; gap: .3rem; }
.lang-toggle a, .lang-toggle span {
  font-weight: 600; padding: .1rem .45rem; border-radius: 99px; font-size: .8rem;
}
.lang-toggle a { color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.35); }
.lang-toggle a:hover { background: rgba(255,255,255,.16); }
.lang-toggle [aria-current="true"] { background: var(--sun-bright); color: var(--espresso); border: 1px solid var(--sun-bright); }

/* ---- Header / nav ---- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.header-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 0; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); }
.brand .glyph { width: 46px; height: 46px; flex: none; }
.brand .wordmark { display: flex; flex-direction: column; line-height: 1.06; }
.brand .wordmark .org { font-family: var(--display); font-weight: 700; font-size: 1.16rem; color: var(--head); letter-spacing: -0.01em; }
.brand .wordmark .tag { font-size: .69rem; letter-spacing: .14em; text-transform: uppercase; color: var(--terra-text); font-weight: 700; }
.header-actions { display: flex; align-items: center; gap: .6rem; }
.eho-badge { display: inline-flex; align-items: center; gap: .4rem; font-size: .7rem; color: var(--muted); text-align: right; max-width: 8.5rem; line-height: 1.2; }
.eho-badge svg { width: 22px; height: 22px; flex: none; color: var(--turq-deep); }

.primary-nav { border-top: 1px solid var(--border); }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .15rem; }
.primary-nav a {
  display: block; padding: .8rem .85rem; text-decoration: none; color: var(--ink);
  font-weight: 600; font-size: .93rem; border-bottom: 3px solid transparent;
}
.primary-nav a:hover { color: var(--terra-text); border-bottom-color: var(--sun); }
.primary-nav a[aria-current="page"] { color: var(--terra-text); border-bottom-color: var(--terra); }
.nav-toggle { display: none; }

/* Buttons */
.btn {
  display: inline-block; font-family: var(--body); font-weight: 600; font-size: .95rem;
  padding: .72rem 1.2rem; border-radius: 7px; text-decoration: none; cursor: pointer;
  border: 2px solid var(--terra); background: var(--terra); color: #fff; transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--terra-deep); border-color: var(--terra-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--terra-text); }
.btn-ghost:hover { background: var(--terra); color: #fff; }
.btn-turq { background: var(--turq-deep); border-color: var(--turq-deep); color: #fff; }
.btn-turq:hover { background: #084d57; border-color: #084d57; color: #fff; }
.btn-gold { background: var(--sun-bright); border-color: var(--sun-bright); color: var(--espresso); }
.btn-gold:hover { background: #e0ad42; border-color: #e0ad42; color: var(--espresso); }
.btn-sm { padding: .5rem .85rem; font-size: .85rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.4rem; }

/* ---- Hero (gradient) ---- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 86% -10%, rgba(201,138,43,.16), transparent 60%),
    radial-gradient(680px 360px at 4% 118%, rgba(15,125,140,.12), transparent 55%),
    linear-gradient(180deg, #fdfaf4, #f4eadd 100%);
  border-bottom: 1px solid var(--border);
}
.hero .wrap { padding: clamp(2.5rem, 6vw, 4.2rem) 1.25rem; display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: center; }
.hero .eyebrow { color: var(--terra-text); }
.hero h1 { margin-bottom: .6rem; }
.hero p.lede { font-size: 1.18rem; color: #3c322a; max-width: 38rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }

/* Photo hero: ABQ/Sandia photography under a sunset overlay; white text stays AA */
.hero--photo { position: relative; border-bottom: 0; background: var(--plum-deep); }
.hero--photo::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(180deg, rgba(46,21,40,.62) 0%, rgba(67,32,58,.66) 45%, rgba(143,49,25,.72) 100%),
    var(--hero-img, none);
  background-size: cover; background-position: center 42%;
}
.hero--photo .wrap { position: relative; z-index: 1; }
.hero--photo h1, .hero--photo p.lede { color: #fff; }
.hero--photo .eyebrow { color: var(--sun-bright); }
.hero--photo p.lede { color: #f7ece6; }
.hero--photo .btn-ghost { color: #fff; border-color: rgba(255,255,255,.8); background: transparent; }
.hero--photo .btn-ghost:hover { background: #fff; color: var(--plum-deep); border-color: #fff; }
.hero-credit { position: absolute; right: .55rem; bottom: .35rem; z-index: 1; font-size: .64rem; color: rgba(255,255,255,.62); }

/* meeting / info card in hero */
.info-card { background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--terra); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-lg); }
.info-card .label { font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 700; margin: 0 0 .4rem; }
.info-card h2 { font-size: 1.2rem; margin: 0 0 .25rem; }

/* ---- Section scaffolding ---- */
.section { padding: clamp(2.3rem, 5vw, 3.8rem) 0; }
.section-alt { background: var(--surface-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 60ch; margin-bottom: 1.6rem; }
.section-head p { color: var(--muted); margin: 0; }
.eyebrow { color: var(--terra-text); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; margin: 0 0 .55rem; }

/* ---- Quick-link tiles (top resident tasks) ---- */
.tiles { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; }
.tile {
  display: flex; gap: .85rem; align-items: flex-start; background: var(--surface);
  border: 1px solid var(--border); border-left: 4px solid var(--terra); border-radius: var(--radius);
  padding: 1.05rem 1.2rem; text-decoration: none; color: var(--ink); height: 100%; box-shadow: var(--shadow);
  transition: transform .12s, box-shadow .12s, border-color .12s;
}
.tile:hover, .tile:focus-visible { transform: translateY(-2px); border-left-color: var(--turq); box-shadow: var(--shadow-lg); }
.tile .ico { width: 26px; height: 26px; flex: none; color: var(--terra); margin-top: .15rem; }
.tile strong { display: block; color: var(--head); font-size: 1.06rem; margin-bottom: .15rem; }
.tile span { display: block; color: var(--muted); font-size: .9rem; }

/* ---- Program / generic card grid ---- */
.cards { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.3rem 1.3rem 1.4rem; box-shadow: var(--shadow); display: flex; flex-direction: column;
  color: var(--ink);
}
a.card { text-decoration: none; transition: transform .12s, box-shadow .12s, border-color .12s; }
a.card:hover { transform: translateY(-2px); border-color: var(--border-strong); box-shadow: var(--shadow-lg); }
.card .ico { width: 30px; height: 30px; color: var(--terra); margin-bottom: .7rem; }
.card h3 { font-size: 1.16rem; margin-bottom: .3rem; color: var(--head); }
.card p { color: var(--muted); font-size: .93rem; margin: 0 0 .6rem; }
.card .who { font-size: .85rem; color: var(--ink); margin: 0 0 .8rem; }
.card .who b { color: var(--head); }
.card .more { margin-top: auto; color: var(--terra-text); font-weight: 600; font-size: .9rem; }

/* stat band */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 1.1rem; margin-top: 1.5rem; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem 1rem; text-align: center; box-shadow: var(--shadow); }
.stat .num { font-family: var(--display); font-size: 2.3rem; color: var(--terra-text); font-weight: 700; line-height: 1; }
.stat .cap { display: block; margin-top: .45rem; font-size: .88rem; color: var(--muted); }

.lead-narrow { max-width: 46rem; }

/* ---- Sunset band (Sandia-sunset gradient, light text) ---- */
.band-sunset { position: relative; overflow: hidden; color: #fff; border: 0;
  background: radial-gradient(700px 320px at 88% -10%, rgba(237,191,94,.28), transparent 60%),
              linear-gradient(135deg, var(--plum) 0%, #7a2f33 55%, var(--terra-deep) 100%); }
.band-sunset h2 { color: #fff; }
.band-sunset p { color: #f6e7e1; }
.band-sunset .eyebrow { color: var(--sun-bright); }
.band-sunset a:not(.btn) { color: var(--sun-bright); }
.band-sunset .btn-ghost { color: #fff; border-color: rgba(255,255,255,.8); }
.band-sunset .btn-ghost:hover { background: #fff; color: var(--plum); }

/* ---- Dark band (espresso, for search / trust) ---- */
.band-dark { background: radial-gradient(680px 300px at 90% 0%, rgba(237,191,94,.12), transparent 60%), var(--espresso); color: #efe2d7; border: 0; }
.band-dark h2 { color: #fff; }
.band-dark .gold { color: var(--sun-bright); }
.band-dark a:not(.btn) { color: var(--sun-bright); }
.band-dark .eyebrow { color: var(--sun-bright); }

/* ---- Search / records widgets ---- */
.searchbox { display: flex; gap: .5rem; flex-wrap: wrap; align-items: stretch; margin: 1rem 0 .4rem; }
.searchbox input {
  flex: 1; min-width: 15rem; padding: .8rem .95rem; font-size: 1rem; font-family: var(--body);
  border: 1.5px solid var(--border-strong); border-radius: 7px; background: #fff; color: var(--ink);
}
.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .4rem; }
.chip { background: var(--terra-soft); border: 1px solid var(--terra); color: var(--terra-deep); padding: .35rem .7rem; font-size: .82rem; border-radius: 99px; cursor: pointer; font-family: inherit; }
.chip:hover { background: #f3d8cd; }
.band-dark .chip { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.32); color: #fff; }
.band-dark .chip:hover { background: rgba(255,255,255,.18); }
.band-dark .searchbox input { border-color: rgba(255,255,255,.4); }
.result { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: .95rem 1.1rem; margin-bottom: .7rem; color: var(--ink); }
.result .meta { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.result h3 { font-size: 1.06rem; margin: .2rem 0 .35rem; }
.result h3 a { color: var(--head); text-decoration: none; }
.result h3 a:hover { color: var(--terra-text); }
.result .rel { float: right; font-size: .76rem; color: var(--turq-deep); font-weight: 700; }

/* ---- Document library: facets + list ---- */
.finder { display: grid; grid-template-columns: 230px 1fr; gap: 1.6rem; align-items: start; }
.facets { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.15rem; box-shadow: var(--shadow); }
.facets h2 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--head); font-family: var(--body); margin: 0 0 .7rem; }
.facet-group { margin-bottom: 1.1rem; }
.facet-group > p { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin: 0 0 .45rem; }
.facet { display: flex; align-items: center; gap: .5rem; padding: .25rem 0; font-size: .92rem; cursor: pointer; }
.facet input { width: 1.05rem; height: 1.05rem; accent-color: var(--terra); }
.facet .count { margin-left: auto; font-size: .76rem; color: var(--muted); background: var(--surface-alt); border-radius: 99px; padding: .05rem .5rem; }
.doc-list { list-style: none; margin: 0; padding: 0; }
.doc-item { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--turq); border-radius: var(--radius); padding: .95rem 1.15rem; margin-bottom: .65rem; box-shadow: var(--shadow); }
.doc-item h3 { margin: 0 0 .25rem; font-size: 1.06rem; }
.doc-item h3 a { color: var(--head); text-decoration: none; }
.doc-item h3 a:hover { color: var(--terra-text); }
.doc-item .doc-meta { font-size: .76rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; display: flex; flex-wrap: wrap; gap: .3rem .8rem; }
.doc-item p { margin: .35rem 0 0; font-size: .92rem; color: var(--muted); }
.tag { display: inline-block; background: var(--surface-alt); color: var(--head); padding: .1rem .55rem; border-radius: 99px; font-size: .72rem; font-weight: 600; }
.no-results { color: var(--muted); font-style: italic; padding: 1rem 0; }

/* ---- Steps (apply flow) ---- */
.steps { counter-reset: step; list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: .9rem; }
.steps li { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.2rem 1.1rem 3.6rem; box-shadow: var(--shadow); }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 1rem; top: 1.05rem; width: 1.9rem; height: 1.9rem; background: var(--terra); color: #fff; border-radius: 99px; font-weight: 700; font-family: var(--display); display: grid; place-items: center; }
.steps li h3 { margin: 0 0 .2rem; font-size: 1.1rem; }
.steps li p { margin: 0; color: var(--muted); font-size: .94rem; }

/* FAQ details */
.faq details { border-bottom: 1px solid var(--border); padding: 1rem 0; }
.faq summary { font-weight: 700; cursor: pointer; color: var(--head); font-size: 1.02rem; }
.faq summary::marker { color: var(--terra); }
.faq details p { margin: .7rem 0 0; color: var(--ink); }

/* ---- Prose ---- */
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.5rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .4rem; }
.callout { background: var(--surface-alt); border: 1px solid var(--border-strong); border-radius: 10px; padding: 1.1rem 1.25rem; margin: 1.4rem 0; }
.callout.good { border-left: 4px solid var(--sage); }
.callout.fix { border-left: 4px solid var(--sun); }
table.tidy { width: 100%; border-collapse: collapse; margin: 1rem 0 1.4rem; }
table.tidy th, table.tidy td { border: 1px solid var(--border); padding: .6rem .75rem; text-align: left; vertical-align: top; font-size: .94rem; }
table.tidy thead th { background: var(--surface-alt); color: var(--head); }

/* ---- Accessibility scoreboard ---- */
.demo-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; margin-top: 1.5rem; box-shadow: var(--shadow); }
.controls { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; }
.field { display: flex; flex-direction: column; gap: .3rem; }
.field label { font-size: .8rem; font-weight: 700; color: var(--head); text-transform: uppercase; letter-spacing: .05em; }
.field input, .field select { font: inherit; padding: .6rem .7rem; border: 1.5px solid #6b6157; border-radius: 6px; background: #fff; color: var(--ink); min-width: 12rem; }
.scorecards { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 1rem; margin: 1.3rem 0; }
.scorecard { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1rem; text-align: center; background: var(--paper); }
.scorecard .big { font-family: var(--display); font-size: 2.1rem; font-weight: 700; line-height: 1; }
.scorecard .lbl { display: block; margin-top: .4rem; font-size: .8rem; color: var(--muted); }
.result-count { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; margin: 1rem 0 .5rem; }
table.data { width: 100%; border-collapse: collapse; margin-top: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
table.data caption { text-align: left; color: var(--muted); font-size: .9rem; margin-bottom: .5rem; }
table.data th, table.data td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--border); vertical-align: top; font-size: .92rem; }
table.data thead th { background: var(--surface-alt); color: var(--head); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; }
table.data tr:last-child td { border-bottom: 0; }
.badge { display: inline-block; padding: .12rem .5rem; border-radius: 4px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.badge-crit { background: var(--crit-soft); color: var(--crit); }
.badge-mod { background: var(--warn-soft); color: var(--warn-text); }
.badge-minor { background: var(--surface-alt); color: var(--muted); }
.badge-pass { background: var(--sage-soft); color: var(--sage); }

/* ---- Figures, split, photo band, motif ---- */
.figure { margin: 0; }
.figure img { display: block; width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.figure figcaption { font-size: .8rem; color: var(--muted); margin-top: .5rem; }
.split { display: grid; gap: 2.2rem; grid-template-columns: 1.1fr .9fr; align-items: center; }
.photo-band { position: relative; color: #fff; border: 0; background: var(--plum-deep); overflow: hidden; }
.photo-band::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(180deg, rgba(46,21,40,.74), rgba(143,49,25,.78)), var(--band-img, none); background-size: cover; background-position: center 45%; }
.photo-band .wrap { position: relative; }
.photo-band h2 { color: #fff; }
.photo-band p { color: #f4e6df; }
.motif { display: inline-block; vertical-align: -0.22em; width: 1.3em; height: 1.3em; margin-right: .35rem; color: var(--terra); }

/* ---- Reviewer note: meta-commentary for RFP evaluators (not live-site copy) ---- */
.reviewer-note { background: #f3ece3; border: 1px solid #ddcdb6; border-left: 4px solid var(--turq); border-radius: 10px; padding: .95rem 1.2rem 1.05rem; margin: 1.5rem 0; font-size: .92rem; }
.reviewer-note .rn-tag { display: inline-block; font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--turq-deep); padding: .2rem .55rem; border-radius: 99px; margin-bottom: .55rem; }
.reviewer-note p { margin: 0; color: #3a2f25; }
.reviewer-note p + p { margin-top: .5rem; }
.reviewer-note a { color: var(--turq-deep); }

/* ---- Contact / forms ---- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; margin-top: 1.5rem; }
.kv { margin: 0; }
.kv dt { font-weight: 700; color: var(--head); margin-top: .9rem; }
.kv dd { margin: .1rem 0 0; color: var(--ink); }
form.contact { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
form.contact .field { margin-bottom: 1rem; }
form.contact label { font-weight: 600; color: var(--head); display: block; margin-bottom: .3rem; }
form.contact input, form.contact select, form.contact textarea { width: 100%; font: inherit; padding: .6rem .7rem; border: 1.5px solid #6b6157; border-radius: 6px; background: #fff; }
form.contact textarea { min-height: 7rem; resize: vertical; }
.form-note { font-size: .82rem; color: var(--muted); }
.form-status { margin-top: 1rem; padding: .8rem 1rem; border-radius: 6px; background: var(--sage-soft); color: var(--sage); border: 1px solid #b7d3bd; font-weight: 600; }
[hidden] { display: none !important; }

/* breadcrumb */
.crumb { font-size: .85rem; color: var(--muted); padding: 1rem 0 0; }
.crumb a { color: var(--terra-text); }

/* map */
.map-wrap { height: 380px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
.map-wrap .leaflet-container { height: 100%; font-family: var(--body); }

/* ---- Branded interior masthead: sunset gradient + house/sun watermark ---- */
.pagehead {
  position: relative; overflow: hidden;
  background:
    radial-gradient(560px 320px at 90% -30%, rgba(237,191,94,.22), transparent 60%),
    linear-gradient(150deg, var(--plum) 0%, #7a2f33 50%, var(--terra-deep) 100%);
  color: #fff; padding: clamp(2.1rem,5vw,3.4rem) 0; border-bottom: 3px solid var(--sun);
}
.pagehead::after {
  content: ""; position: absolute; right: -22px; bottom: -46px; width: 220px; height: 220px; z-index: 0; opacity: .12;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12l9-8 9 8'/%3E%3Cpath d='M5 10.5V20h14v-9.5'/%3E%3Cpath d='M10 20v-5h4v5'/%3E%3Ccircle cx='12' cy='6.5' r='1.6' fill='%23ffffff' stroke='none'/%3E%3C/svg%3E") no-repeat center/contain;
}
.pagehead .wrap { position: relative; z-index: 1; }
.pagehead .eyebrow { color: var(--sun-bright) !important; }
.pagehead h1 { color: #fff; margin: 0 0 .45rem; }
.pagehead .lede { color: #f6ece6 !important; font-size: 1.12rem; max-width: 60ch; margin: 0; }

/* ---- Footer ---- */
.site-footer { background: var(--espresso); color: #e3d6cb; margin-top: 0; }
.site-footer a { color: #f3d9b0; }
.footer-grid { display: grid; gap: 1.6rem 2rem; grid-template-columns: 1.5fr 1fr 1fr 1fr; padding: 2.8rem 1.25rem 1.6rem; }
.site-footer h4 { color: #fff; font-family: var(--body); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .7rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .4rem; font-size: .92rem; }
.footer-brand .org { font-family: var(--display); font-size: 1.2rem; color: #fff; font-weight: 700; }
.footer-brand p { color: #c8b6a8; font-size: .9rem; max-width: 34ch; }
.footer-eho { display: inline-flex; align-items: center; gap: .45rem; margin-top: .6rem; font-size: .8rem; color: #c8b6a8; }
.footer-eho svg { width: 26px; height: 26px; color: var(--sun-bright); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding: 1rem 1.25rem; font-size: .82rem; color: #c8b6a8; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; justify-content: space-between; }
.site-footer a:focus-visible, .band-dark a:focus-visible, .band-sunset a:focus-visible, .photo-band a:focus-visible, .pagehead a:focus-visible, .util-bar a:focus-visible { outline-color: var(--sun-bright); }

/* ---- Responsive ---- */
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .finder { grid-template-columns: 1fr; } .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 1.4rem; }
  .eho-badge { display: none; }
  .nav-toggle {
    display: block; width: 100%; text-align: left; background: var(--surface);
    color: var(--head); border: 0; border-top: 1px solid var(--border); font: inherit; font-weight: 700;
    padding: .8rem 1.25rem; cursor: pointer;
  }
  .nav-toggle::after { content: " ▾"; }
  .nav-toggle[aria-expanded="true"]::after { content: " ▴"; }
  .primary-nav ul { display: none; flex-direction: column; }
  .primary-nav ul.open { display: flex; }
  .primary-nav a { padding: .8rem 1.25rem; border-top: 1px solid var(--border); border-bottom: 0; }
  .header-actions .btn { display: none; }
}
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
