/* ============================================================================
   City of Carlyle, Illinois — website redesign concept by Stoa
   A light, warm, fully accessible (WCAG 2.1 AA) municipal design system.
   Identity: drawn from the City seal — Carlyle teal (the sailboat and wordmark),
   the charcoal of the General Dean Suspension Bridge silhouette, and a sunset
   gold for warmth, on a sailcloth-white ground. Source Serif display + Inter body.
   Every color pair checked for AA contrast.
   ========================================================================== */

:root {
  --paper:        #f2f7f6;  /* sailcloth white (cool)            */
  --surface:      #ffffff;  /* cards / raised surfaces           */
  --surface-alt:  #e4efed;  /* banded sections (cool mist)       */
  --ink:          #15282b;  /* primary text (bridge slate)       */
  --muted:        #42585c;  /* secondary text (AA on paper)      */
  --head:         #0f2d31;  /* headings (deep teal-charcoal)     */

  --teal:         #127d74;  /* PRIMARY: Carlyle teal (white text AA) */
  --teal-deep:    #0c6a62;  /* hover / pressed                   */
  --teal-text:    #0e6e66;  /* teal as text/links (AA on paper)  */
  --teal-bright:  #2bb3a6;  /* logo teal — marks / on dark bg    */
  --teal-soft:    #d7ebe8;  /* teal tint panel                   */

  --gold:         #d99a2e;  /* accent: sunset-over-the-lake gold */
  --gold-text:    #8a5512;  /* gold as text (AA on paper)        */
  --gold-bright:  #f0b94e;  /* gold on dark backgrounds          */
  --gold-soft:    #fbf0d8;

  --harbor:       #0c2a2c;  /* deep band / footer (teal-charcoal) */
  --harbor-deep:  #07201f;  /* darkest                           */
  --pewter:       #5f7378;  /* driftwood neutral metal           */

  --sage:         #2f6043;  /* pass / positive (pine green)      */
  --sage-soft:    #e0ece3;
  --crit:         #9a2820;  /* red — error states only           */
  --crit-soft:    #f6e1de;
  --warn-text:    #8a5a00;  /* amber — moderate                  */
  --warn-soft:    #fbf0d8;

  --border:       #d3e0de;
  --border-strong:#b6c8c5;
  --focus:        #0e6e66;  /* teal focus ring (high-contrast)   */

  --shadow:   0 1px 2px rgba(12,42,44,.05), 0 6px 20px rgba(12,42,44,.07);
  --shadow-lg:0 4px 10px rgba(12,42,44,.08), 0 18px 40px rgba(12,42,44,.10);
  --radius:   10px;
  --maxw:     1180px;
  --readw:    720px;
  --display: "Source Serif 4", 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.12; font-weight: 650; margin: 0 0 .5rem; letter-spacing: 0; text-wrap: balance; }
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; text-wrap: pretty; }
a { color: var(--teal-text); text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { color: var(--teal-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 {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--teal); 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.35rem; }
.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(--harbor-deep); color: #d7e7e4;
  font-size: .8rem; line-height: 1.45; text-align: center; padding: .5rem 1rem;
}
.proto-banner strong { color: #fff; }
.proto-banner a { color: var(--gold-bright); }

/* ---- Utility (top) bar ---- */
.util-bar { background: var(--harbor); color: #d6e6e3; 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; }

/* ---- 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 1.35rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); }
.brand .glyph { width: 50px; height: 46px; flex: none; color: var(--teal); }
.brand .wordmark { display: flex; flex-direction: column; line-height: 1.06; }
.brand .wordmark .org { font-family: var(--display); font-weight: 700; font-size: 1.22rem; color: var(--head); letter-spacing: 0; }
.brand .wordmark .tag { align-self: flex-start; margin-top: .12rem; font-size: .66rem; letter-spacing: .13em; text-transform: uppercase; color: var(--teal-text); font-weight: 700; background: var(--teal-soft); border-radius: 999px; padding: .12rem .55rem .1rem; }
.header-actions { display: flex; align-items: center; gap: .6rem; }

.primary-nav { border-top: 1px solid var(--border); }
.primary-nav ul { list-style: none; margin: 0 auto; padding: 0 1.35rem; display: flex; flex-wrap: wrap; gap: .15rem; }
.primary-nav a {
  display: block; padding: .8rem .82rem; text-decoration: none; color: var(--ink);
  font-weight: 600; font-size: .92rem; border-bottom: 3px solid transparent;
}
.primary-nav a:hover { color: var(--teal-text); border-bottom-color: var(--gold); }
.primary-nav a[aria-current="page"] { color: var(--teal-text); border-bottom-color: var(--teal); }
.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(--teal); background: var(--teal); color: #fff; transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--teal-text); }
.btn-ghost:hover { background: var(--teal); color: #fff; }
.btn-gold { background: var(--gold-bright); border-color: var(--gold-bright); color: var(--harbor); }
.btn-gold:hover { background: #e3a83a; border-color: #e3a83a; color: var(--harbor); }
.btn-sm { padding: .5rem .85rem; font-size: .85rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.4rem; }

/* ---- Hero ---- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 86% -10%, rgba(217,154,46,.15), transparent 60%),
    radial-gradient(680px 360px at 4% 118%, rgba(18,125,116,.12), transparent 55%),
    linear-gradient(180deg, #fbfdfc, #e4efed 100%);
  border-bottom: 1px solid var(--border);
}
.hero .wrap { min-height: min(650px, calc(100vh - 165px)); padding: clamp(3.4rem, 7vw, 6rem) 1.35rem; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(280px, .72fr); gap: 2.5rem; align-items: center; }
.hero .eyebrow { color: var(--teal-text); }
.hero h1 { margin-bottom: .6rem; }
.hero p.lede { font-size: 1.18rem; color: #2c3c40; max-width: 38rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }

/* Photo hero: bridge/lake photography under a teal-charcoal overlay; white text stays AA */
.hero--photo { position: relative; border-bottom: 0; background: var(--harbor-deep); }
.hero--photo::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(180deg, rgba(7,32,31,.58) 0%, rgba(12,42,44,.66) 45%, rgba(18,90,84,.74) 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 h1 { font-size: clamp(2.7rem, 1.35rem + 5vw, 5rem); max-width: 13ch; }
.hero--photo .eyebrow { color: var(--gold-bright); }
.hero--photo p.lede { color: #eaf3f1; }
.hero--photo .btn-ghost { color: #fff; border-color: rgba(255,255,255,.8); background: transparent; }
.hero--photo .btn-ghost:hover { background: #fff; color: var(--harbor-deep); border-color: #fff; }
.hero-credit { position: absolute; right: .55rem; bottom: .35rem; z-index: 1; font-size: .64rem; color: rgba(255,255,255,.66); }

/* meeting / info card */
.info-card { background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--teal); 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, .info-card h3 { font-size: 1.2rem; margin: 0 0 .25rem; }

/* ---- Section scaffolding ---- */
.section { padding: clamp(2.5rem, 5vw, 4.2rem) 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(--teal-text); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; margin: 0 0 .55rem; }

/* ---- Quick-link tiles ---- */
.tiles { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 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(--teal); 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(--gold); box-shadow: var(--shadow-lg); }
.tile .ico { width: 26px; height: 26px; flex: none; color: var(--teal); 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; }

/* ---- Card grid ---- */
.cards { display: grid; gap: 1.1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards.cards-5 { grid-template-columns: repeat(5, minmax(0, 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(--teal); 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(--teal-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(--teal-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; }

.feature-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 1.4rem; align-items: stretch; margin-top: 1.4rem; }
.feature-card { position: relative; overflow: hidden; min-height: 330px; border-radius: var(--radius); background: var(--harbor); box-shadow: var(--shadow-lg); color: #fff; }
.feature-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,32,31,.08) 0%, rgba(7,32,31,.72) 100%); }
.feature-card figcaption { position: absolute; left: 1rem; right: 1rem; bottom: .9rem; z-index: 1; color: rgba(255,255,255,.88); font-size: .82rem; }
.feature-stack { display: grid; gap: 1.4rem; }
.feature-stack .feature-card { min-height: 160px; }

.event-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; margin-top: 1.4rem; }
.event-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
a.event-card { display: block; color: var(--ink); text-decoration: none; transition: transform .12s, box-shadow .12s, border-color .12s; }
a.event-card:hover { transform: translateY(-2px); border-color: var(--border-strong); box-shadow: var(--shadow-lg); }
.event-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.event-card-body { padding: 1rem 1.05rem 1.15rem; }
.event-date { display: inline-block; margin-bottom: .55rem; padding: .18rem .55rem; border-radius: 99px; background: var(--teal-soft); color: var(--teal-text); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.event-card h3 { font-size: 1.12rem; margin-bottom: .3rem; }
.event-card p { color: var(--muted); font-size: .93rem; margin: 0; }
.source-note { margin-top: .9rem; color: var(--muted); font-size: .82rem; }

/* ---- Lake band (teal gradient, light text) ---- */
.band-lake { position: relative; overflow: hidden; color: #fff; border: 0;
  background: radial-gradient(700px 320px at 88% -10%, rgba(240,185,78,.24), transparent 60%),
              linear-gradient(135deg, var(--harbor) 0%, #11675f 55%, #0c5048 100%); }
.band-lake h2 { color: #fff; }
.band-lake p { color: #e3f1ef; }
.band-lake .eyebrow { color: var(--gold-bright); }
.band-lake a:not(.btn) { color: var(--gold-bright); }
.band-lake .btn-ghost { color: #fff; border-color: rgba(255,255,255,.8); }
.band-lake .btn-ghost:hover { background: #fff; color: var(--harbor); }

/* ---- Dark band (harbor, for search / trust) ---- */
.band-dark { background: radial-gradient(680px 300px at 90% 0%, rgba(240,185,78,.12), transparent 60%), var(--harbor); color: #e2efed; border: 0; }
.band-dark h2 { color: #fff; }
.band-dark .gold { color: var(--gold-bright); }
.band-dark a:not(.btn) { color: var(--gold-bright); }
.band-dark .eyebrow { color: var(--gold-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(--teal-soft); border: 1px solid var(--teal); color: var(--teal-deep); padding: .35rem .7rem; font-size: .82rem; border-radius: 99px; cursor: pointer; font-family: inherit; }
.chip:hover { background: #c7e3df; }
.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(--teal-text); }
.result .rel { float: right; font-size: .76rem; color: var(--teal-text); font-weight: 700; }

/* ---- Document library: facets + list ---- */
.finder { display: grid; grid-template-columns: 240px 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(--teal); }
.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(--gold); 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(--teal-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 / how-to flows) ---- */
.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(--teal); 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(--teal); }
.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(--gold); }
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); }
.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(--harbor-deep); overflow: hidden; }
.photo-band::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(180deg, rgba(7,32,31,.72), rgba(18,90,84,.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: #e6f1ef; }
.photo-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; margin-top: 1.5rem; }
.photo-row .figure img { aspect-ratio: 4 / 3; object-fit: cover; }
.motif { display: inline-block; vertical-align: -0.22em; width: 1.3em; height: 1.3em; margin-right: .35rem; color: var(--teal); }

/* ---- Reviewer note: meta-commentary for RFP evaluators (not live-site copy) ---- */
.reviewer-note { background: #e7f1ef; border: 1px solid #c2d6d2; border-left: 4px solid var(--gold); 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(--teal-deep); padding: .2rem .55rem; border-radius: 99px; margin-bottom: .55rem; }
.reviewer-note p { margin: 0; color: #1f2f32; }
.reviewer-note p + p { margin-top: .5rem; }
.reviewer-note a { color: var(--teal-text); }

/* ---- 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 #58686c; border-radius: 6px; background: #fff; color: var(--ink); }
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 #b4d3bd; font-weight: 600; }
[hidden] { display: none !important; }

/* breadcrumb */
.crumb { font-size: .85rem; color: var(--muted); padding: 1rem 0 0; }
.crumb a { color: var(--teal-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); }
/* a11y: keep Leaflet attribution links distinguishable without relying on color (link-in-text-block) */
.leaflet-control-attribution a { text-decoration: underline; }

/* ---- Branded interior masthead: teal-charcoal gradient + bridge watermark ---- */
.pagehead {
  position: relative; overflow: hidden;
  background:
    radial-gradient(560px 320px at 90% -30%, rgba(240,185,78,.20), transparent 60%),
    linear-gradient(150deg, var(--harbor) 0%, #11675f 52%, #0c5048 100%);
  color: #fff; padding: clamp(2.4rem,5vw,4rem) 0; border-bottom: 3px solid var(--gold);
}
.pagehead::after {
  content: ""; position: absolute; right: max(0px, calc((100vw - var(--maxw)) / 2 - 18px)); bottom: -22px; width: min(46vw, 440px); height: 176px; z-index: 0; opacity: .16;
  background: url("/carlyle/assets/mark-watermark.svg") no-repeat center/contain;
}
.pagehead .wrap { position: relative; z-index: 1; }
.pagehead .eyebrow { color: var(--gold-bright) !important; }
.pagehead h1 { color: #fff; margin: 0 0 .45rem; max-width: 12ch; font-size: clamp(2.25rem, 1.35rem + 4vw, 4.4rem); }
.pagehead .lede { color: #eaf3f1 !important; font-size: 1.12rem; max-width: 60ch; margin: 0; }

/* ---- Footer ---- */
.site-footer { background: var(--harbor); color: #d6e6e3; margin-top: 0; }
.site-footer a { color: #bde0d9; }
.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 { display: flex; flex-direction: column; }
.footer-brand .org { font-family: var(--display); font-size: 1.2rem; color: #fff; font-weight: 700; }
.footer-brand p { color: #b2c5c2; font-size: .9rem; max-width: 34ch; }
.footer-seal { display: inline-flex; align-items: center; gap: .5rem; margin-top: .7rem; font-size: .78rem; color: #b2c5c2; }
.footer-seal .glyph { width: 30px; height: 28px; color: var(--teal-bright); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding: 1rem 1.25rem; font-size: .82rem; color: #b2c5c2; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; justify-content: space-between; }
.site-footer a:focus-visible, .band-dark a:focus-visible, .band-lake a:focus-visible, .photo-band a:focus-visible, .pagehead a:focus-visible, .util-bar a:focus-visible { outline-color: var(--gold-bright); }

/* ---- Responsive ---- */
@media (max-width: 1080px) { .cards.cards-4, .cards.cards-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; min-height: 560px; } .tiles, .cards, .event-grid, .photo-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .feature-grid { 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; }
  .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; padding: 0; }
  .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, .tiles, .cards, .cards.cards-2, .cards.cards-4, .cards.cards-5, .event-grid, .photo-row { grid-template-columns: 1fr; } .header-top { padding-left: 1.25rem; padding-right: 1.25rem; } .hero--photo h1, .pagehead h1 { max-width: 100%; } }
@media (max-width: 540px) { .pagehead::after { right: -70px; bottom: -34px; width: 330px; opacity: .10; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
