/* ==========================================================================
   TX Data Center Watch — design system v3
   Modeled on the whitehouse.gov visual language: Instrument Serif (400) for
   all headings and display type, Instrument Sans for body/UI, deep navy +
   amber palette, uppercase letter-spaced micro-labels, full-bleed photo
   toppers, centered institutional layout.
   ========================================================================== */

:root {
  --navy: #0D132D;
  --navy-2: #151A30;
  --navy-accent: #141F4D;
  --charcoal: #293340;
  --amber: #FFBD00;
  --stone: #E8E6E0;
  --pale: #D9DEE8;
  --light: #F3F3F3;
  --gray: #8A8A8A;
  --red: #B50000;
  --white: #FFFFFF;
  --shadow: 0 6px 24px rgba(13, 19, 45, 0.12);
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-sans: "Instrument Sans", -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.2px;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* Instrument Serif ships only at weight 400 — headings are set light and large. */
h1, h2, h3 { font-family: var(--font-serif); font-weight: 400; color: var(--navy); margin: 0 0 0.45em; }
h1 { font-size: clamp(2.5rem, 5.5vw, 4.2rem); line-height: 1.08; letter-spacing: 1.2px; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.18; letter-spacing: 0.76px; }
h3 { font-size: 1.45rem; line-height: 1.22; letter-spacing: 0.56px; }
h1 em, h2 em { font-style: italic; }
p { margin: 0 0 1em; }
a { color: var(--navy-accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
img { max-width: 100%; }

/* Big uppercase serif display type — the signature headline style */
.display {
  text-transform: uppercase;
  letter-spacing: 0.055em;
  font-size: clamp(1.9rem, 4.6vw, 3.5rem);
  line-height: 1.08;
}
.display-sm {
  text-transform: uppercase;
  letter-spacing: 0.055em;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 780px; }
.center { text-align: center; }
.muted { color: var(--gray); }

.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;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff;
  padding: 10px 16px; z-index: 200;
}
.skip-link:focus { left: 0; }

/* Uppercase micro-label */
.kicker {
  font-family: var(--font-sans);
  font-size: 12px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gray); margin-bottom: 1.4em;
}
.kicker-light { color: var(--amber); }
.kicker a.crumb, .kicker .crumb { color: inherit; text-decoration: none; }
.kicker a.crumb:hover { text-decoration: underline; }

/* Centered section headers */
.section-head { text-align: center; max-width: 860px; margin: 0 auto 3.2rem; }
.section-head .kicker { margin-bottom: 1.2em; }
.section-lead { color: var(--gray); font-size: 1.05rem; margin: 0.6em auto 0; max-width: 560px; }
.prose-center { max-width: 720px; margin: 0 auto; font-size: 1.12rem; line-height: 1.7; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 15px 30px; border: 1px solid transparent; border-radius: 0;
  font-family: var(--font-sans); font-weight: 600; font-size: 12px; cursor: pointer;
  text-decoration: none; letter-spacing: 0.15em; text-transform: uppercase; line-height: 1.2;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-amber { background: var(--amber); color: var(--navy); }
.btn-amber:hover { background: #FED393; color: var(--navy); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-accent); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-outline-light:hover { border-color: var(--amber); color: var(--amber); }
.btn-lg { padding: 17px 38px; }
.btn-block { display: block; text-align: center; }
.btn[disabled] { opacity: 0.55; cursor: wait; }

/* ==========================================================================
   Header — menu left, centered wordmark, uppercase nav row beneath
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--white); }
.header-main { border-bottom: 1px solid var(--pale); }
.header-main-row {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 84px;
}
.nav-toggle { display: none; justify-self: start; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: 0.2s; }

.brand {
  grid-column: 2; display: flex; flex-direction: column; align-items: center; gap: 2px;
  justify-content: center; text-decoration: none; color: var(--navy); min-width: 0;
}
.brand:hover { color: var(--navy); }
.brand-lockup { display: flex; align-items: center; gap: 10px; }
.brand-star { width: 20px; height: 20px; fill: var(--navy); flex: none; }
.brand-text {
  font-family: var(--font-serif); font-weight: 400; font-size: 1.5rem;
  letter-spacing: 0.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand-sub {
  font-family: var(--font-sans); font-size: 10px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--gray);
}
.header-cta { grid-column: 3; justify-self: end; padding: 12px 22px; }

.site-nav { background: var(--white); border-bottom: 1px solid var(--pale); }
.site-nav ul {
  display: flex; align-items: stretch; justify-content: center; gap: 8px;
  list-style: none; margin: 0; padding: 0;
}
.site-nav > .container > ul > li > a {
  display: flex; align-items: center; gap: 7px; padding: 17px 18px;
  color: var(--charcoal); text-decoration: none; font-weight: 600; font-size: 12px;
  letter-spacing: 0.15em; text-transform: uppercase;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.site-nav > .container > ul > li > a:hover { color: var(--navy); border-bottom-color: var(--amber); }
.site-nav > .container > ul > li > a.active { color: var(--navy); border-bottom-color: var(--navy); }
.caret { width: 9px; height: 6px; stroke: currentColor; stroke-width: 2; fill: none; }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%); min-width: 300px;
  background: var(--white); border: 1px solid var(--pale); border-top: 2px solid var(--navy);
  box-shadow: 0 14px 34px rgba(13, 19, 45, 0.12); padding: 6px 0; display: flex; flex-direction: column;
  z-index: 20;
}
/* Visibility is controlled by the [hidden] attribute (toggled in main.js), so
   the menu can never be stuck open — even with no CSS or no JS at all. */
.dropdown[hidden] { display: none !important; }
.has-dropdown.open .caret { transform: rotate(180deg); }
.caret { transition: transform 0.15s ease; }
.dropdown li { list-style: none; }
.dropdown a {
  display: block; padding: 12px 22px;
  color: var(--charcoal); text-decoration: none; font-weight: 500; font-size: 0.95rem;
}
.dropdown a:hover { background: var(--light); color: var(--navy); }
.dropdown-all {
  font-weight: 600 !important; font-size: 12px !important; letter-spacing: 0.15em;
  text-transform: uppercase; border-bottom: 1px solid var(--pale); color: var(--navy) !important;
}

@media (max-width: 1080px) {
  .brand-text { font-size: 1.2rem; }
  .site-nav > .container > ul > li > a { padding: 15px 12px; }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .header-main-row { height: 68px; }
  .site-nav {
    display: none; position: absolute; top: 69px; left: 0; right: 0;
    border-bottom: 1px solid var(--pale); box-shadow: 0 14px 34px rgba(13, 19, 45, 0.12);
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 8px 0 16px; gap: 0; }
  .site-nav > .container > ul > li > a { padding: 14px 8px; border-bottom: 1px solid var(--light); margin: 0; }
  .dropdown { position: static; transform: none; box-shadow: none; border: 0; border-left: 2px solid var(--amber); background: var(--light); margin: 0 0 8px; }
}

/* ==========================================================================
   Topper — full-bleed photograph, centered display type
   ========================================================================== */
.topper {
  position: relative; overflow: hidden;
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: #fff;
  padding: 110px 0;
}
/* On desktop the header is fixed and transparent over the hero, so push the
   hero's centered content down enough to clear it (prevents the nav overlapping
   the kicker). */
@media (min-width: 901px) {
  .is-home .topper { min-height: 100vh; padding-top: 170px; padding-bottom: 70px; }
}
.topper-media { position: absolute; inset: 0; z-index: 0; }
.topper-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 32%;
}
/* Neutral (not blue) scrim, just enough to keep white text legible over a
   full-color photo. Darker top/bottom where text sits, clear in the middle. */
.topper-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.42) 0%, rgba(0,0,0,0.12) 42%, rgba(0,0,0,0.55) 100%);
}
.topper-content { position: relative; z-index: 1; max-width: 900px; }
.topper .display { color: #fff; margin-bottom: 0.35em; text-shadow: 0 2px 14px rgba(0,0,0,0.5); }
.hl-underline {
  text-decoration: underline;
  text-decoration-thickness: 4px;
  text-underline-offset: 10px;
}
.topper-lead {
  font-family: var(--font-sans); font-weight: 500;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  font-style: normal; color: #fff; line-height: 1.55; text-shadow: 0 1px 10px rgba(0,0,0,0.55);
}
.topper-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; margin-top: 34px; }
.topper-secondary {
  display: inline-block; margin-top: 26px; color: rgba(255,255,255,0.85);
  font-size: 12px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase;
  text-decoration: underline; text-underline-offset: 5px;
}
.topper-secondary:hover { color: var(--amber); }

.zip-mini { display: flex; background: var(--white); padding: 0; }
.zip-mini input {
  border: 0; outline: none; padding: 15px 20px; font-size: 1rem; width: 200px;
  font-family: var(--font-sans); background: transparent; color: var(--navy);
}

/* Inner-page hero — navy band, centered serif title */
.page-hero {
  background: var(--navy); color: #fff;
  padding: 76px 0 64px; text-align: center;
}
/* Photo variant: topical Texas image behind a dark scrim (used on the reading
   category pages — environmental, water, energy, etc.). */
.page-hero--photo { position: relative; overflow: hidden; }
.page-hero-media { position: absolute; inset: 0; z-index: 0; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
/* Keep the photo bright: only a faint darkening toward the very bottom (where
   the description text sits). Legibility comes from the text-shadows, not a
   full-image film. */
.page-hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 45%, rgba(0,0,0,0.28) 100%);
}
.page-hero--photo h1 { text-shadow: 0 2px 4px rgba(0,0,0,0.55), 0 2px 22px rgba(0,0,0,0.7); }
.page-hero--photo .hero-lead { text-shadow: 0 1px 3px rgba(0,0,0,0.7), 0 1px 16px rgba(0,0,0,0.85); }
.page-hero--photo .container { position: relative; z-index: 1; }
.page-hero--photo h1 { text-shadow: 0 2px 14px rgba(0,0,0,0.45); }
.page-hero h1 { color: #fff; }
.page-hero .kicker { color: var(--amber); }
.page-hero .hero-lead {
  color: rgba(255,255,255,0.88); font-size: 1.08rem; max-width: 720px; margin: 0 auto;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}
.page-hero .dc-facts { justify-content: center; }
.page-hero .updated { color: rgba(255,255,255,0.55); }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: 96px 0; }
.section-flush { padding: 40px 0 24px; }
.section-tint { background: var(--light); border-top: 1px solid var(--pale); border-bottom: 1px solid var(--pale); }

.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--pale); background: var(--white); }
.why-card { padding: 44px 38px; border-right: 1px solid var(--pale); text-align: center; }
.why-card:last-child { border-right: 0; }
.why-card h3 { margin-bottom: 0.7em; }
.why-card p { color: var(--charcoal); margin: 0; font-size: 0.97rem; text-align: left; }
@media (max-width: 800px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-card { border-right: 0; border-bottom: 1px solid var(--pale); }
  .why-card:last-child { border-bottom: 0; }
}

/* ---------- category cards ---------- */
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .category-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .category-grid { grid-template-columns: 1fr; } }

.category-card {
  display: flex; flex-direction: column; position: relative; overflow: hidden;
  background: var(--white); border: 1px solid var(--pale);
  text-align: center; color: var(--charcoal); text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
/* Section photo as a top thumbnail */
.cat-card-media { display: block; height: 150px; overflow: hidden; border-bottom: 3px solid var(--accent, var(--navy)); }
.cat-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.category-card:hover .cat-card-media img { transform: scale(1.04); }
.cat-card-body {
  display: flex; flex-direction: column; gap: 10px; align-items: center; flex: 1;
  padding: 26px 30px 28px;
}
.category-card:hover { border-color: var(--navy); box-shadow: var(--shadow); color: var(--charcoal); }
.category-card:hover h3 { color: var(--navy-accent); }
.category-card h3 { margin: 0 0 2px; }
.category-card p { color: var(--gray); font-size: 0.94rem; margin: 0; flex: 1; }
.card-cta {
  color: var(--navy); font-weight: 600; font-size: 12px; margin-top: 8px;
  letter-spacing: 0.15em; text-transform: uppercase;
  text-decoration: underline; text-underline-offset: 5px;
}
.card-meta { color: var(--gray); font-size: 0.85rem; }

/* ---------- CTA band (photo) ---------- */
.cta-band {
  position: relative; overflow: hidden; color: #fff; padding: 110px 0; text-align: center;
}
.cta-media { position: absolute; inset: 0; z-index: 0; }
.cta-media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.4) contrast(1.05);
}
.cta-media::after {
  content: ""; position: absolute; inset: 0; background: rgba(13, 19, 45, 0.85);
}
.cta-inner { position: relative; z-index: 1; max-width: 820px; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.82); font-size: 1.1rem; }
.cta-count { color: var(--amber); }
.cta-count:hover { color: #FED393; }
.cta-inline { display: flex; gap: 12px; margin-top: 28px; }

/* ==========================================================================
   Article search / list / pagination
   ========================================================================== */
.search-bar {
  display: flex; align-items: center; gap: 10px;
  background: var(--white); border: 1px solid var(--pale);
  padding: 4px 4px 4px 18px; margin-bottom: 18px;
}
.search-bar:focus-within { border-color: var(--navy); }
.search-icon { width: 18px; height: 18px; stroke: var(--gray); stroke-width: 2; fill: none; flex: none; }
.search-bar input {
  flex: 1; border: 0; outline: none; font-size: 1rem; font-family: var(--font-sans);
  background: transparent; color: var(--navy); min-width: 0; padding: 11px 0;
}
.search-sep { width: 1px; align-self: stretch; background: var(--pale); margin: 6px 4px; }
.search-zip { flex: 0 0 130px !important; padding-left: 14px !important; }
.search-zip::placeholder { color: var(--gray); }
@media (max-width: 620px) {
  .search-bar { flex-wrap: wrap; }
  .search-sep { display: none; }
  .search-zip { flex-basis: 100% !important; border-top: 1px solid var(--pale) !important; padding: 11px 0 !important; }
}
.search-bar .btn { padding: 13px 24px; }
.results-meta { color: var(--gray); font-size: 0.88rem; min-height: 1.4em; }

.article-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--pale); }
.article-card { background: var(--white); border-bottom: 1px solid var(--pale); padding: 34px 4px; }
.article-card h3 { margin-bottom: 0.4em; font-size: 1.6rem; }
.article-card h3 a { color: var(--navy); text-decoration: none; }
.article-card h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.article-card .summary { color: var(--charcoal); font-size: 0.98rem; }
.byline { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 0.85rem; color: var(--gray); flex-wrap: wrap; }
.byline .author-avatar { width: 32px; height: 32px; font-size: 0.72rem; }
.loading { color: var(--gray); padding: 30px 0; text-align: center; }

.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 34px; flex-wrap: wrap; }
.pagination button {
  min-width: 42px; padding: 10px 14px; border: 1px solid var(--pale); background: var(--white);
  font-family: var(--font-sans); font-weight: 600; cursor: pointer; color: var(--navy); font-size: 0.9rem;
}
.pagination button:hover { border-color: var(--navy); }
.pagination button.current { background: var(--navy); color: #fff; border-color: var(--navy); }
.pagination button[disabled] { opacity: 0.4; cursor: default; }

/* ---------- article page ---------- */
.article-title { max-width: 780px; margin-left: auto; margin-right: auto; }
.article-meta { color: var(--gray); font-size: 0.9rem; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tag {
  display: inline-block; padding: 6px 16px; font-size: 11px; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  background: var(--light); color: var(--navy); border: 1px solid var(--pale);
}
.tag-plain { color: var(--gray); }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 32px; }

.article-body { font-size: 1.12rem; margin-top: 34px; }
.article-body p { line-height: 1.75; }
.article-body h2 { margin-top: 1.7em; }
.article-body code { font-size: 0.85em; background: var(--light); padding: 2px 6px; }
.article-body blockquote {
  margin: 2em 0; padding: 0;
  font-family: var(--font-serif); font-style: italic; text-align: center;
  font-size: 1.6rem; line-height: 1.4; color: var(--navy);
}
.article-body blockquote::before { content: ""; display: block; width: 44px; height: 1px; background: var(--amber); margin: 0 auto 22px; }
.article-body blockquote::after { content: ""; display: block; width: 44px; height: 1px; background: var(--amber); margin: 22px auto 0; }

.author-box {
  display: flex; gap: 22px; align-items: flex-start; margin-top: 48px;
  background: var(--light); border: 1px solid var(--pale);
  padding: 30px 32px;
}
.author-avatar {
  width: 54px; height: 54px; border-radius: 50%; flex: none;
  background: var(--navy); color: #fff; font-weight: 400; font-size: 1.15rem;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-serif);
}
.author-name { margin-bottom: 2px; }
.author-title {
  color: var(--gray); font-size: 11px; font-weight: 600; margin-bottom: 8px;
  letter-spacing: 0.15em; text-transform: uppercase;
}
.author-bio { color: var(--charcoal); font-size: 0.93rem; margin: 0; }

.related { margin-top: 56px; border-top: 1px solid var(--pale); padding-top: 32px; }
.related ul { padding-left: 1.2em; }
.related li { margin-bottom: 0.5em; }

/* ==========================================================================
   Get involved — rep lookup + chat
   ========================================================================== */
.card { background: var(--white); border: 1px solid var(--pale); padding: 28px; }
.rep-form-row { display: flex; gap: 18px; align-items: flex-end; flex-wrap: wrap; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.grow { flex: 1; min-width: 220px; }
.field label {
  font-size: 11px; font-weight: 600; color: var(--navy);
  letter-spacing: 0.15em; text-transform: uppercase;
}
.field input, .field select {
  padding: 13px 15px; border: 1px solid var(--pale); border-radius: 0;
  font-size: 1rem; font-family: var(--font-sans); background: var(--white); color: var(--navy);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }
#zip { width: 140px; }

.notes { margin: 18px 0 0; }
.note {
  background: #FFF8E4; border: 1px solid #EAD9A0; border-left: 2px solid var(--amber);
  padding: 14px 18px; font-size: 0.92rem; margin-bottom: 10px;
}
.note-error { background: #FAEDED; border-color: #DFB9B9; border-left-color: var(--red); }

.rep-results { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.rep-card { background: var(--white); border: 1px solid var(--pale); padding: 30px 32px; }
.rep-card-top { border-color: var(--navy); border-top: 3px solid var(--amber); }
.rep-rank-row { margin-bottom: 14px; }
.rep-rank {
  display: inline-block; font-size: 10px; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--gray);
}
.rep-rank-top { color: var(--navy); background: var(--amber); padding: 5px 12px; }
.rep-top { display: flex; gap: 20px; align-items: flex-start; }
.rep-photo { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; flex: none; background: var(--light); }
.rep-photo-fallback {
  width: 62px; height: 62px; border-radius: 50%; flex: none; display: flex; align-items: center;
  justify-content: center; background: var(--navy); color: #fff; font-family: var(--font-serif);
  font-weight: 400; font-size: 1.25rem;
}
.rep-name { font-size: 1.6rem; margin: 0; }
.rep-office {
  color: var(--gray); font-weight: 600; font-size: 11px;
  letter-spacing: 0.15em; text-transform: uppercase; margin-top: 4px;
}
.level-badge {
  display: inline-block; font-size: 10px; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; padding: 4px 10px; margin-left: 12px; vertical-align: 4px;
  border: 1px solid;
}
.level-federal { color: var(--navy); border-color: var(--navy); }
.level-state { color: var(--red); border-color: var(--red); }
.level-local { color: #3E6C50; border-color: #3E6C50; }

.relevance {
  margin: 18px 0; padding: 14px 18px; border-left: 2px solid var(--amber);
  background: var(--light); font-size: 0.93rem;
}
.relevance strong { color: var(--navy); }
.rep-desc { color: var(--charcoal); font-size: 0.96rem; }
.rep-contacts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 14px 0 4px; font-size: 0.93rem; }
.rep-contacts strong {
  font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gray); font-weight: 600; margin-right: 5px;
}
.rep-actions { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.btn-chat { background: transparent; color: var(--navy); border: 1px solid var(--navy); }
.btn-chat:hover { background: var(--navy); color: #fff; }
.rep-source { font-size: 0.78rem; color: var(--gray); margin-top: 16px; border-top: 1px solid var(--light); padding-top: 12px; }

/* ---------- chat overlay ---------- */
.chat-overlay {
  position: fixed; inset: 0; background: rgba(13, 19, 45, 0.6); z-index: 300;
  display: flex; align-items: flex-end; justify-content: center; padding: 20px;
}
/* The [hidden] attribute is the on/off switch (toggled in get-involved.js) —
   it must always win over the display:flex above. */
.chat-overlay[hidden] { display: none !important; }
@media (min-width: 700px) { .chat-overlay { align-items: center; } }
.chat-panel {
  background: var(--white); width: 100%; max-width: 680px;
  max-height: min(85vh, 760px); display: flex; flex-direction: column;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35); overflow: hidden;
}
.chat-header {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  padding: 22px 26px; background: var(--navy); color: #fff;
}
.chat-header h2 { color: #fff; font-size: 1.4rem; margin: 0; }
.chat-subtitle { color: var(--amber); font-size: 11px; margin: 6px 0 0; letter-spacing: 0.15em; text-transform: uppercase; }
.chat-close {
  background: none; border: 1px solid rgba(255,255,255,0.4); color: #fff; cursor: pointer;
  padding: 7px 15px; font-size: 11px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase;
  font-family: var(--font-sans);
}
.chat-close:hover { border-color: var(--amber); color: var(--amber); }
.chat-messages { flex: 1; overflow-y: auto; padding: 24px 26px; display: flex; flex-direction: column; gap: 14px; background: var(--light); }
.chat-msg { max-width: 92%; padding: 16px 20px; font-size: 0.95rem; }
.chat-msg p { margin: 0 0 0.7em; } .chat-msg p:last-child { margin-bottom: 0; }
.chat-msg-user { align-self: flex-end; background: var(--navy); color: #fff; }
.chat-msg-assistant { align-self: flex-start; background: var(--white); border: 1px solid var(--pale); }
.chat-msg-assistant .chat-hint { color: var(--gray); font-size: 0.86rem; }
.chat-sources { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--pale); font-size: 0.84rem; }
.chat-sources p { font-weight: 600; margin-bottom: 4px; font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gray); }
.chat-sources ol { margin: 0; padding-left: 1.3em; }
.chat-typing { color: var(--gray); font-style: italic; }
.chat-input-row { display: flex; gap: 10px; padding: 18px 26px 8px; align-items: flex-end; background: var(--white); }
.chat-input-row textarea {
  flex: 1; resize: none; border: 1px solid var(--pale); border-radius: 0;
  padding: 12px 15px; font-family: var(--font-sans); font-size: 0.95rem; background: var(--white);
}
.chat-input-row textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }
.chat-input-row .btn { padding: 13px 26px; }
.chat-disclaimer { font-size: 0.74rem; color: var(--gray); padding: 8px 26px 20px; margin: 0; background: var(--white); }

/* ==========================================================================
   Data centers — map + cards + detail
   ========================================================================== */
.dc-map { height: 540px; border: 1px solid var(--pale); z-index: 1; }
.map-legend {
  display: flex; flex-wrap: wrap; gap: 26px; margin-bottom: 16px; justify-content: center;
  font-size: 11px; color: var(--gray); letter-spacing: 0.15em; text-transform: uppercase; font-weight: 600;
}
.legend-item { display: flex; align-items: center; gap: 8px; }
.dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.dot-proposed { background: #C9A227; }
.dot-permitting { background: #A66A2E; }
.dot-construction { background: var(--red); }
.dot-operational { background: var(--charcoal); }
.dot-unverified { background: #9AA1AC; }

.dc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 30px; }
@media (max-width: 900px) { .dc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .dc-grid { grid-template-columns: 1fr; } }
.dc-card {
  display: flex; flex-direction: column; gap: 10px; background: var(--white);
  border: 1px solid var(--pale); padding: 30px;
  color: var(--charcoal); text-decoration: none;
  transition: border-color 0.15s ease;
}
.dc-card:hover { border-color: var(--navy); color: var(--charcoal); }
.dc-card h3 { margin: 0; font-size: 1.3rem; }
.dc-card p { color: var(--gray); font-size: 0.93rem; margin: 0; }
.dc-loc {
  font-weight: 600; color: var(--charcoal) !important; font-size: 11px !important;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.dc-card .card-cta { margin-top: 12px; }

.status-badge {
  display: inline-block; align-self: flex-start; font-size: 10px; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase; padding: 5px 12px; border: 1px solid;
}
.status-proposed { color: #7d6524; border-color: #C4AD6A; background: #FBF6E4; }
.status-permitting { color: #7d4c17; border-color: #C79A63; background: #FAF1E6; }
.status-under-construction { color: var(--red); border-color: #D8A3A3; background: #FAEDED; }
.status-operational { color: var(--charcoal); border-color: #B9C0CB; background: var(--light); }
.status-unverified { color: #5C6470; border-color: #C6CBD2; background: #F1F3F5; }
.page-hero .status-badge { background: transparent; }
.page-hero .status-proposed { color: var(--amber); border-color: var(--amber); }
.page-hero .status-permitting { color: #E8A664; border-color: #E8A664; }
.page-hero .status-under-construction { color: #F08080; border-color: #F08080; }
.page-hero .status-operational { color: var(--pale); border-color: var(--pale); }
.page-hero .status-unverified { color: #C6CBD2; border-color: #C6CBD2; }

/* Data-center detail: approximate-location note, sources list */
.location-note {
  margin: 14px 0 0; max-width: 62ch; font-size: 0.86rem; line-height: 1.55;
  color: var(--pale); border-left: 2px solid rgba(255,255,255,0.35); padding-left: 14px;
}
.source-list { list-style: none; margin: 6px 0 0; padding: 0; }
.source-list li { margin: 0 0 6px; font-size: 0.9rem; word-break: break-word; }
.source-disclaimer { margin-top: 16px; font-size: 0.85rem; max-width: 62ch; }

.dc-facts { display: flex; flex-wrap: wrap; gap: 12px 30px; align-items: center; margin-top: 20px; }
.page-hero .fact { color: rgba(255,255,255,0.9); }
.fact { font-size: 0.95rem; }
.fact strong {
  font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gray); font-weight: 600; margin-right: 6px;
}
.page-hero .fact strong { color: rgba(255,255,255,0.55); }
.updated { font-size: 0.78rem; color: var(--gray); margin-top: 12px; }

.dc-detail-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .dc-detail-grid { grid-template-columns: 1fr; } }

.hearing-alert {
  background: #FFF8E4; border: 1px solid #EAD9A0; border-left: 2px solid var(--amber);
  padding: 28px 30px; margin-bottom: 44px;
}
.hearing-alert h2 { font-size: 1.5rem; }
.hearing { padding: 14px 0; border-top: 1px solid #EAD9A0; }
.hearing:first-of-type { border-top: 0; }
.hearing p { margin: 0 0 3px; }
.hearing-when { font-size: 1rem; }
.hearing-topic { color: var(--charcoal); }
.hearing-where { font-size: 0.87rem; color: var(--gray); }

.timeline { list-style: none; margin: 0 0 48px; padding: 0 0 0 24px; border-left: 1px solid var(--pale); }
.timeline li { position: relative; padding: 0 0 28px 22px; }
.timeline li::before {
  content: ""; position: absolute; left: -28px; top: 7px; width: 9px; height: 9px;
  background: var(--navy); border-radius: 50%;
}
.timeline time { font-size: 11px; font-weight: 600; color: var(--gray); letter-spacing: 0.15em; text-transform: uppercase; }
.timeline h3 { margin: 4px 0 4px; font-size: 1.25rem; }
.timeline p { color: var(--charcoal); font-size: 0.95rem; margin: 0; }

.news-list { list-style: none; padding: 0; margin: 0 0 30px; }
.news-list li { padding: 15px 0; border-bottom: 1px solid var(--pale); }
.news-list time { font-size: 11px; color: var(--gray); display: block; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; }
.news-source { color: var(--gray); font-size: 0.88rem; }

.involve-card { position: sticky; top: 160px; border-top: 2px solid var(--navy); }
.involve-card h2 { font-size: 1.4rem; }
.check-list { list-style: none; padding: 0; margin: 0 0 22px; }
.check-list li { padding: 11px 0 11px 22px; position: relative; font-size: 0.93rem; border-bottom: 1px solid var(--light); }
.check-list li:last-child { border-bottom: 0; }
.check-list li::before {
  content: ""; position: absolute; left: 2px; top: 19px; width: 7px; height: 7px; background: var(--amber);
}

/* Leaflet popup styling */
.leaflet-popup-content-wrapper { border-radius: 0; font-family: var(--font-sans); }
.dc-popup h3 { margin: 0 0 4px; font-size: 1.1rem; font-family: var(--font-serif); font-weight: 400; }
.dc-popup p { margin: 0 0 8px; font-size: 0.84rem; color: var(--gray); }
.dc-popup a { font-weight: 600; color: var(--navy); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }

/* ==========================================================================
   Footer — deep navy, centered wordmark, columns
   ========================================================================== */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.72); }
.footer-top {
  text-align: center; padding: 64px 24px 34px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.brand-footer { color: #fff; }
.brand-footer .brand-star { fill: var(--amber); }
.brand-footer .brand-text { font-size: 1.7rem; }
.footer-tagline { font-family: var(--font-sans); font-size: 1rem; color: rgba(255,255,255,0.7); margin: 0; }

.footer-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px; padding: 44px 24px 28px;
  text-align: center;
}
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-links h3 {
  color: #fff; font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em;
  font-family: var(--font-sans); font-weight: 600;
}
.footer-links a { display: block; color: rgba(255,255,255,0.7); text-decoration: none; padding: 5px 0; font-size: 0.92rem; }
.footer-links a:hover { color: var(--amber); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); padding-top: 24px; padding-bottom: 30px;
  font-size: 0.78rem; text-align: center; color: rgba(255,255,255,0.5);
}
.footer-bottom p { margin: 0 0 4px; }

.big-404 { font-size: 7rem; color: var(--navy); margin-bottom: 0; }

/* ==========================================================================
   Admin area
   ========================================================================== */
.admin-bar { background: var(--navy); color: #fff; }
.admin-bar-row { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.admin-brand {
  color: #fff; text-decoration: none; font-family: var(--font-serif); font-size: 1.3rem;
}
.admin-bar-right { display: flex; align-items: center; gap: 20px; }
.admin-bar-right a { color: rgba(255,255,255,0.8); text-decoration: none; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; }
.admin-bar-right a:hover { color: var(--amber); }
.admin-logout-form { margin: 0; }
.admin-logout {
  background: none; border: 1px solid rgba(255,255,255,0.4); color: #fff; cursor: pointer;
  padding: 7px 15px; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  font-family: var(--font-sans);
}
.admin-logout:hover { border-color: var(--amber); color: var(--amber); }
.admin-main { padding: 44px 0 90px; background: var(--light); min-height: calc(100vh - 60px); }
.admin-main > .container { max-width: 900px; }

.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.admin-head h1 { margin: 0; }
.admin-head .muted { margin: 4px 0 0; font-size: 0.9rem; }

.admin-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--pale); }
.admin-table th {
  text-align: left; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gray); font-weight: 600; padding: 14px 16px; border-bottom: 1px solid var(--pale);
}
.admin-table td { padding: 14px 16px; border-bottom: 1px solid var(--light); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-title-link { font-family: var(--font-serif); font-size: 1.15rem; color: var(--navy); text-decoration: none; }
.admin-title-link:hover { text-decoration: underline; }
.admin-view { font-size: 0.78rem; margin-left: 10px; color: var(--gray); }
.admin-date { color: var(--gray); font-size: 0.88rem; white-space: nowrap; }
.admin-row-actions { display: flex; align-items: center; gap: 14px; justify-content: flex-end; }
.admin-row-actions a { font-size: 0.85rem; font-weight: 600; }
.admin-row-actions form { margin: 0; }
.admin-delete { background: none; border: 0; color: var(--red); cursor: pointer; font-size: 0.85rem; font-weight: 600; font-family: var(--font-sans); padding: 0; }
.admin-delete:hover { text-decoration: underline; }

.pill { display: inline-block; font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; padding: 4px 10px; border: 1px solid; }
.pill-live { color: #2f6b47; border-color: #9ac2ab; background: #eef6f1; }
.pill-draft { color: #8a6d10; border-color: #d8c589; background: #fbf6e4; }

/* Admin forms */
.admin-form { background: var(--white); border: 1px solid var(--pale); padding: 32px; max-width: 780px; }
.admin-form .field { margin-bottom: 22px; }
.admin-form-row { display: flex; gap: 18px; flex-wrap: wrap; }
.admin-form textarea, .admin-form input[type=text], .admin-form input[type=date],
.admin-form input[type=number], .admin-form select {
  padding: 12px 14px; border: 1px solid var(--pale); border-radius: 0; width: 100%;
  font-size: 1rem; font-family: var(--font-sans); background: var(--white); color: var(--navy);
}
.admin-form textarea { resize: vertical; line-height: 1.6; }
.admin-body { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.95rem; }
.admin-form input:focus, .admin-form textarea:focus, .admin-form select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }
.admin-form input:disabled { background: var(--light); color: var(--gray); }
.field-hint { font-size: 0.82rem; color: var(--gray); margin: 6px 0 0; }
.field-hint code { background: var(--light); padding: 1px 5px; font-size: 0.9em; }
.admin-fieldset { border: 1px solid var(--pale); padding: 20px 22px 4px; margin: 0 0 22px; }
.admin-fieldset legend { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy); font-weight: 600; padding: 0 8px; }
.admin-publish { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 26px; font-size: 0.95rem; cursor: pointer; }
.admin-publish input { margin-top: 4px; }
.admin-form-actions { display: flex; gap: 12px; align-items: center; }

/* Admin auth (login / disabled) */
.admin-auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--navy); padding: 24px; }
.admin-auth-card { background: var(--white); border-top: 3px solid var(--amber); padding: 44px 40px; width: 100%; max-width: 420px; text-align: center; }
.admin-auth-card h1 { font-size: 2rem; margin-bottom: 6px; }
.admin-auth-sub { color: var(--gray); margin-bottom: 22px; }
.admin-auth-card .field { text-align: left; }
.brand-auth { display: inline-flex; justify-content: center; margin-bottom: 14px; }
.brand-auth .brand-star { width: 34px; height: 34px; fill: var(--navy); }
.admin-code { background: var(--navy); color: #fff; padding: 12px 16px; text-align: left; overflow-x: auto; font-size: 0.9rem; }

/* ---------- sample-message templates ---------- */
.btn-tmpl { background: var(--amber); color: var(--navy); border: 1px solid var(--amber); }
.btn-tmpl:hover { background: #FED393; border-color: #FED393; color: var(--navy); }

.tmpl-overlay {
  position: fixed; inset: 0; background: rgba(13, 19, 45, 0.6); z-index: 300;
  display: flex; align-items: flex-end; justify-content: center; padding: 20px;
}
@media (min-width: 700px) { .tmpl-overlay { align-items: center; } }
.tmpl-overlay[hidden] { display: none !important; }
.tmpl-panel {
  background: var(--white); width: 100%; max-width: 720px;
  max-height: min(88vh, 820px); display: flex; flex-direction: column;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35); overflow: hidden; border-top: 4px solid var(--amber);
}
.tmpl-body { flex: 1; overflow-y: auto; padding: 24px 26px; background: var(--paper-tint); }
.tmpl-section { background: var(--white); border: 1px solid var(--pale); padding: 22px 24px; margin-bottom: 16px; }
.tmpl-section:last-child { margin-bottom: 0; }
.tmpl-section h3 { font-size: 1.15rem; margin: 0 0 14px; }
.tmpl-label {
  display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gray); margin: 0 0 6px;
}
.tmpl-subject, .tmpl-email {
  width: 100%; border: 1px solid var(--pale); border-radius: 0; padding: 11px 14px; margin-bottom: 16px;
  font-family: var(--font-sans); font-size: 0.95rem; background: var(--white); color: var(--ink);
}
.tmpl-email { resize: vertical; line-height: 1.6; }
.tmpl-subject:focus, .tmpl-email:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }
.tmpl-actions { display: flex; align-items: center; gap: 14px; }
.tmpl-copied { font-size: 0.85rem; color: #2f6b47; font-weight: 600; }
.tmpl-copied[hidden] { display: none; }
.tmpl-note { color: var(--gray); font-size: 0.9rem; margin: 0 0 10px; }
.tmpl-points { margin: 0; padding-left: 1.2em; }
.tmpl-points li { margin-bottom: 10px; line-height: 1.55; }

/* ---------- external (curated) links in category lists ---------- */
.article-external { background: #FbFbF9; }
.ext-row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.ext-badge {
  display: inline-block; font-size: 10px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--navy); background: var(--amber); padding: 4px 10px;
}
.ext-source { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray); }
.ext-arrow { font-size: 0.85em; color: var(--gray); }
.article-external h3 a:hover .ext-arrow { color: var(--navy); }

/* admin: link fields + list pill */
.link-fields { border-left: 2px solid var(--amber); padding: 4px 0 4px 18px; margin: 0 0 22px; background: #FbF7EC; }
.link-fields .field { margin-bottom: 16px; }
.pill-link { color: #6b4d8a; border-color: #c3aede; background: #f3edf8; }

/* admin: multi-category checkboxes */
.cat-checks { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 4px 0; }
.cat-check { display: flex; align-items: center; gap: 8px; font-size: 0.95rem; cursor: pointer; }
.cat-check input { margin: 0; }

/* ---------- nearby-authors section on category pages ---------- */
.near-divider {
  display: flex; align-items: center; text-align: center; gap: 16px;
  margin: 36px 0 8px; color: var(--navy);
}
.near-divider::before, .near-divider::after {
  content: ""; flex: 1; height: 2px; background: var(--amber);
}
.near-divider span {
  font-family: var(--font-serif); font-size: 1.15rem; white-space: normal;
}
.near-dist {
  display: inline-block; font-size: 10px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gray); border: 1px solid var(--pale); padding: 3px 9px;
}

/* ==========================================================================
   Home page: transparent header over the hero, fading to white on scroll
   (desktop only — mobile keeps the solid header for a readable menu)
   ========================================================================== */
@media (min-width: 901px) {
  .is-home .site-header {
    position: fixed; left: 0; right: 0; top: 0;
    background: transparent;
    transition: background 0.35s ease, box-shadow 0.35s ease;
  }
  .is-home .site-header::after { opacity: 0; transition: opacity 0.35s ease; }
  .is-home .header-main { border-bottom-color: rgba(255, 255, 255, 0.28); transition: border-color 0.35s ease; }
  .is-home .site-nav { background: transparent; border-bottom-color: transparent; transition: background 0.35s ease, border-color 0.35s ease; }

  /* White text/marks while transparent */
  .is-home .site-header .brand,
  .is-home .site-header .brand-text { color: #fff; }
  .is-home .site-header .brand-sub { color: rgba(255, 255, 255, 0.82); }
  .is-home .site-header.scrolled .brand-sub { color: var(--gray); }
  .is-home .site-header .brand-star { fill: #fff; }
  .is-home .site-header .site-nav > .container > ul > li > a { color: #fff; }
  .is-home .site-header .site-nav > .container > ul > li > a:hover { color: #fff; border-bottom-color: var(--amber); }
  .is-home .site-header .site-nav > .container > ul > li > a.active { color: #fff; border-bottom-color: #fff; }

  /* Scrolled: solid white header, dark text (matches the rest of the site) */
  .is-home .site-header.scrolled { background: var(--white); box-shadow: 0 1px 0 var(--pale); }
  .is-home .site-header.scrolled::after { opacity: 1; }
  .is-home .site-header.scrolled .header-main { border-bottom-color: var(--pale); }
  .is-home .site-header.scrolled .site-nav { background: var(--white); border-bottom-color: var(--pale); }
  .is-home .site-header.scrolled .brand,
  .is-home .site-header.scrolled .brand-text { color: var(--navy); }
  .is-home .site-header.scrolled .brand-star { fill: var(--navy); }
  .is-home .site-header.scrolled .site-nav > .container > ul > li > a { color: var(--charcoal); }
  .is-home .site-header.scrolled .site-nav > .container > ul > li > a.active { color: var(--navy); border-bottom-color: var(--navy); }
}

/* Author + location shown bold above the article title */
.card-author { font-size: 0.95rem; color: var(--navy); margin-bottom: 8px; line-height: 1.4; }
.card-author strong { font-weight: 700; }
.card-author .sep { color: var(--gray); font-weight: 400; }
/* Preserve intentional line breaks in summaries so they can be spaced out */
.article-card .summary { white-space: pre-line; }

/* ---------- data center map markers & controls ---------- */
.dc-dot {
  display: block; width: 16px; height: 16px; border-radius: 50%;
  border: 2.5px solid #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.2), 0 2px 6px rgba(0,0,0,0.35);
}
.dc-legend-dot {
  display: inline-block; width: 11px; height: 11px; border-radius: 50%;
  margin-right: 7px; vertical-align: middle; border: 1px solid rgba(0,0,0,0.15);
}
.dc-popup-status {
  display: inline-block; font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 4px;
}
.leaflet-control-layers {
  font-family: var(--font-sans); border-radius: 0 !important;
  border: 1px solid var(--pale) !important; box-shadow: 0 6px 20px rgba(13,19,45,0.14) !important;
  padding: 6px 8px !important;
}
.leaflet-control-layers label { font-size: 0.85rem; margin: 2px 0; }

/* ---------- grouped rep cards (city council / commissioners court) ---------- */
.rep-card-group .rep-photo-fallback { background: var(--navy-accent); font-size: 0.95rem; }
.group-toggle {
  margin-top: 14px; width: 100%; background: transparent; border: 1px solid var(--pale);
  color: var(--navy); padding: 11px 16px; cursor: pointer; font-family: var(--font-sans);
  font-weight: 600; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.group-toggle:hover { border-color: var(--navy); background: var(--light); }
.gt-caret { transition: transform 0.15s ease; }
.group-toggle.open .gt-caret { transform: rotate(180deg); }
.group-members { margin-top: 4px; }
.group-members[hidden] { display: none; }
.group-member { padding: 16px 0; border-top: 1px solid var(--pale); }
.group-member:first-child { border-top: 0; }
.group-member-name { margin: 0 0 6px; font-size: 1rem; }
.group-member-office { color: var(--gray); font-weight: 400; font-size: 0.9rem; }
.group-member .rep-actions { margin-top: 10px; }
.group-member .btn { padding: 9px 16px; font-size: 11px; }

/* ============================================================
   Share-a-Story form, admin nav, and data-center editor
   ============================================================ */

.container-narrow { max-width: 760px; }

/* Admin section nav (Articles / Data Centers / Submissions) */
.admin-nav { display: flex; gap: 4px; margin-left: 28px; flex: 1; }
.admin-nav a {
  color: var(--pale); text-decoration: none; font-size: 0.9rem; font-weight: 600;
  padding: 6px 12px; border-radius: 4px; white-space: nowrap;
}
.admin-nav a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.admin-nav a.active { color: var(--navy); background: var(--amber); }
.admin-badge {
  display: inline-block; min-width: 18px; text-align: center; background: var(--red);
  color: #fff; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 999px; margin-left: 4px;
}
@media (max-width: 720px) {
  .admin-bar-row { flex-wrap: wrap; }
  .admin-nav { order: 3; margin: 10px 0 0; width: 100%; flex-basis: 100%; }
}

/* Required-field marker + success note */
.req { color: var(--red); }
.note-success { border-left: 4px solid #3E7A4E; background: #EFF6F0; padding: 22px 26px; }
.note-success h2 { margin-top: 0; }
.submit-thanks p { margin-bottom: 12px; }

/* Public submission form */
.submit-form .field, .submit-contact .field { margin-bottom: 20px; }
.submit-form label,
.submit-contact legend { font-weight: 600; display: block; margin-bottom: 6px; }
.submit-form input[type=text], .submit-form input[type=url], .submit-form input[type=email],
.submit-form select, .submit-form textarea,
.submit-contact input[type=text], .submit-contact input[type=email] {
  width: 100%; padding: 11px 13px; border: 1px solid var(--pale); background: var(--white);
  font: inherit; color: var(--charcoal); border-radius: 3px;
}
.submit-form textarea { resize: vertical; line-height: 1.55; }
.submit-form input:focus, .submit-form select:focus, .submit-form textarea:focus {
  outline: 2px solid var(--amber); outline-offset: 1px; border-color: var(--amber);
}
.submit-contact {
  border: 1px solid var(--pale); padding: 22px 24px; margin: 6px 0 20px; border-radius: 4px;
}
.submit-form-row { display: flex; gap: 18px; flex-wrap: wrap; }
.submit-form-row .grow { flex: 1 1 180px; }
.submit-consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; margin-top: 6px; }
.submit-consent input { margin-top: 3px; }
.submit-actions { margin-top: 26px; }
/* Honeypot — visually and physically removed from the layout for humans */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Submission detail (admin) */
.sub-meta { border-collapse: collapse; margin-bottom: 24px; width: 100%; }
.sub-meta th {
  text-align: left; vertical-align: top; padding: 7px 16px 7px 0; color: var(--gray);
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap; width: 150px;
}
.sub-meta td { padding: 7px 0; border-bottom: 1px solid var(--light); }
.sub-body {
  white-space: pre-wrap; line-height: 1.65; background: var(--light);
  border: 1px solid var(--pale); padding: 20px 22px; border-radius: 4px;
}

/* Data-center editor: repeating rows */
.field.grow2 { flex: 2 1 220px; }
.repeater { margin-top: 6px; }
.repeat-rows { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.repeat-row {
  display: flex; gap: 12px; align-items: flex-end; background: var(--light);
  border: 1px solid var(--pale); padding: 12px 14px; border-radius: 4px;
}
.repeat-row .field { margin-bottom: 0; }
.repeat-row-block { display: block; }
.repeat-row-block .admin-form-row { margin-bottom: 10px; }
.repeat-remove {
  flex: 0 0 auto; width: 32px; height: 32px; border: 1px solid var(--pale); background: var(--white);
  color: var(--red); font-size: 20px; line-height: 1; border-radius: 4px; cursor: pointer;
}
.repeat-remove:hover { background: #FAEDED; border-color: #D8A3A3; }
.repeat-remove-block {
  width: auto; height: auto; padding: 6px 12px; font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em; margin-top: 8px;
}
.repeat-add { margin-top: 2px; }
@media (max-width: 640px) {
  .repeat-row { flex-wrap: wrap; align-items: stretch; }
  .repeat-row .field { flex-basis: 100%; }
  .repeat-remove { align-self: flex-end; }
}

/* ---------- rich article body: subheads, lists, tables, figures ---------- */
.article-body h3 {
  font-size: 1.22rem; margin-top: 1.6em; margin-bottom: 0.5em; color: var(--navy);
}
/* Override the category-page .article-list (a flex container) when the class
   appears as a real <ul>/<ol> inside an article body. */
.article-body ul.article-list,
.article-body ol.article-list {
  display: block; border-top: 0; gap: 0; margin: 1.1em 0 1.5em; padding-left: 1.5em;
}
.article-body ul.article-list { list-style: disc; }
.article-body ol.article-list { list-style: decimal; }
.article-body .article-list > li { margin: 0 0 0.55em; line-height: 1.7; padding: 0; }
.article-body .article-list-detailed > li { margin-bottom: 1.25em; }
.article-body .article-list-detailed > li::marker { font-weight: 700; color: var(--navy); }
.article-body .li-head { font-weight: 700; color: var(--navy); }
.article-body .article-sublist {
  list-style: disc; margin: 0.4em 0 0; padding-left: 1.35em;
}
.article-body .article-sublist li { margin: 0 0 0.3em; line-height: 1.6; }

.article-body .table-wrap { margin: 1.6em 0; overflow-x: auto; }
.article-body .article-table {
  width: 100%; border-collapse: collapse; font-size: 0.98rem; min-width: 560px;
}
.article-body .article-table thead th {
  background: var(--navy); color: #fff; text-align: left; font-family: var(--font-sans);
  font-weight: 600; font-size: 0.82rem; letter-spacing: 0.04em; padding: 12px 14px; vertical-align: bottom;
}
.article-body .article-table tbody th {
  text-align: left; font-family: var(--font-sans); font-weight: 700; color: var(--navy);
  background: var(--light); padding: 11px 14px; vertical-align: top; width: 30%;
}
.article-body .article-table td {
  padding: 11px 14px; vertical-align: top; border-bottom: 1px solid var(--pale);
}
.article-body .article-table tbody tr { border-bottom: 1px solid var(--pale); }
.article-body .article-table tbody tr:last-child th,
.article-body .article-table tbody tr:last-child td { border-bottom: 0; }
.article-body .article-table tbody tr:nth-child(even) td { background: #FAFAFB; }

.article-body .article-figure { margin: 1.8em 0; }
.article-body .article-figure img {
  display: block; width: 100%; height: auto; border: 1px solid var(--pale); border-radius: 4px; background: #fff;
}
.article-body .article-figure figcaption {
  margin-top: 10px; font-size: 0.85rem; color: var(--gray); font-style: italic; line-height: 1.5;
}

/* ==========================================================================
   Email subscriptions — public signup form (footer, project sidebar, /subscribe)
   ========================================================================== */

.subscribe-heading { font-family: var(--font-serif); font-weight: 400; margin: 0 0 0.3em; }
.subscribe-blurb { color: var(--gray); font-size: 0.92rem; margin: 0 0 18px; line-height: 1.55; }
.subscribe-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.subscribe-row .field { margin-bottom: 0; }
.subscribe-row .btn { white-space: nowrap; }
.subscribe-fineprint { font-size: 0.78rem; color: var(--gray); margin: 12px 0 0; line-height: 1.5; }
.subscribe-fineprint a { color: inherit; }

/* Honeypot: off-screen rather than display:none, which some bots skip. */
.subscribe-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.subscribe-msg { margin: 12px 0 0; font-size: 0.92rem; line-height: 1.5; display: none; }
.subscribe-msg.is-shown { display: block; }
.subscribe-msg.is-ok { color: #1d6b41; }
.subscribe-msg.is-error { color: var(--red); }

.subscribe-fieldset { border: 0; padding: 20px 0 0; margin: 20px 0 0; border-top: 1px solid var(--pale); }
.subscribe-fieldset legend {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--navy); padding: 0;
}
.subscribe-radio, .subscribe-check { display: block; margin: 10px 0 0; font-size: 0.95rem; cursor: pointer; }
.subscribe-checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 2px 20px; margin-top: 6px; }

/* Footer variant sits on the dark background. */
.footer-subscribe { padding: 32px 0 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); margin-bottom: 8px; }
.footer-subscribe .subscribe h3 {
  font-family: var(--font-serif); font-weight: 400; font-size: 1.5rem; color: #fff; margin: 0 0 0.25em;
}
.footer-subscribe .subscribe-blurb { color: rgba(255, 255, 255, 0.72); max-width: 46ch; }
.footer-subscribe label { color: rgba(255, 255, 255, 0.85); }
.footer-subscribe .field input {
  background: rgba(255, 255, 255, 0.96); border-color: transparent; min-width: 260px;
}
.footer-subscribe .subscribe-fineprint { color: rgba(255, 255, 255, 0.55); }
.footer-subscribe .subscribe-msg.is-ok { color: #9fe3bd; }
.footer-subscribe .subscribe-msg.is-error { color: #ffb3b3; }

.subscribe-card { margin-top: 20px; }
.subscribe-promises { margin-top: 40px; }
.subscribe-promises h2 { font-family: var(--font-serif); font-weight: 400; margin: 28px 0 0.5em; }
.subscribe-promises ul { margin: 0; padding-left: 1.2em; }
.subscribe-promises li { margin-bottom: 0.6em; line-height: 1.6; }

/* Confirmation / unsubscribe result pages */
.status-card { border-left: 4px solid var(--navy); }
.status-card.status-ok { border-left-color: #2f6b47; }
.status-card.status-warn { border-left-color: var(--amber); }
.status-card h1 { font-family: var(--font-serif); font-weight: 400; margin: 0.2em 0 0.4em; }
.status-message { font-size: 1.05rem; line-height: 1.6; margin: 0 0 1em; }
.status-undo { font-size: 0.92rem; color: var(--gray); margin: 0 0 1.2em; }

/* ==========================================================================
   Admin — subscribers & email
   ========================================================================== */

.admin-head-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.admin-subhead { font-family: var(--font-serif); font-weight: 400; margin: 44px 0 16px; }
.admin-count { margin: 0 0 10px; font-size: 0.85rem; }

.admin-filters {
  display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap;
  background: var(--light); border: 1px solid var(--pale); padding: 16px 18px; margin-bottom: 22px;
}
.admin-filters .field { margin-bottom: 0; }
.admin-clear { font-size: 0.85rem; color: var(--gray); align-self: center; }

.admin-warn {
  background: #fbf6e4; border: 1px solid #d8c589; color: #7a5f0d;
  padding: 14px 18px; margin: 0 0 22px; font-size: 0.92rem; line-height: 1.55;
}
.admin-notice {
  background: #eef6f1; border: 1px solid #9ac2ab; color: #2f6b47;
  padding: 14px 18px; margin: 0 0 22px; font-size: 0.92rem; line-height: 1.55;
}
.admin-warn code, .admin-notice code { background: rgba(0, 0, 0, 0.06); padding: 1px 5px; }

.admin-interests { max-width: 320px; }
.admin-interests .pill { margin: 0 4px 4px 0; }
.admin-inline-form { display: inline; }
.admin-linkbtn {
  background: none; border: 0; padding: 0; margin: 0 10px 0 0; cursor: pointer;
  font: inherit; font-size: 0.88rem; color: var(--navy); text-decoration: underline;
}
.admin-linkbtn.admin-delete { color: var(--red); }

.admin-danger { border-top-color: var(--red); }
.admin-stats { display: flex; gap: 28px; flex-wrap: wrap; margin: 4px 0 8px; }
.admin-stats div { background: var(--light); border: 1px solid var(--pale); padding: 16px 22px; min-width: 150px; }
.admin-stats strong { display: block; font-family: var(--font-serif); font-size: 2rem; line-height: 1.1; color: var(--navy); }
.admin-stats span { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray); }
.admin-errors { color: var(--red); font-size: 0.9rem; line-height: 1.6; }

@media (max-width: 620px) {
  .subscribe-row { flex-direction: column; align-items: stretch; }
  .subscribe-row .btn { width: 100%; }
  .footer-subscribe .field input { min-width: 0; width: 100%; }
}

/* ==========================================================================
   Upcoming events
   ========================================================================== */
.event-form { padding: 26px 28px; margin-bottom: 30px; }
.event-form-row { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.event-form-row-2 { margin-top: 16px; }
.event-form .field { margin-bottom: 0; }
.event-form .field.grow { flex: 1 1 200px; }
.event-form label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 6px; color: var(--navy); }
.event-form input, .event-form select {
  padding: 11px 13px; border: 1px solid var(--pale); background: var(--white);
  font: inherit; color: var(--charcoal); border-radius: 3px; width: 100%;
}
.event-form input:focus, .event-form select:focus {
  outline: 2px solid var(--amber); outline-offset: 1px; border-color: var(--amber);
}
.event-form #ev-zip { width: 130px; }
.event-form #ev-radius { width: 140px; }

.event-month {
  font-size: 1.1rem; font-family: var(--font-sans); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--gray); margin: 34px 0 14px; padding-bottom: 10px;
  border-bottom: 1px solid var(--pale);
}
.event-month:first-child { margin-top: 10px; }

.event-card {
  display: flex; gap: 22px; background: var(--white); border: 1px solid var(--pale);
  border-left: 3px solid var(--navy); padding: 22px 24px; margin-bottom: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.event-card:hover { box-shadow: var(--shadow); }
.event-card-today { border-left-color: var(--amber); background: #FFFDF5; }

.event-date {
  flex: 0 0 58px; text-align: center; border: 1px solid var(--pale);
  border-radius: 4px; overflow: hidden; align-self: flex-start; background: var(--light);
}
.ev-mon {
  display: block; background: var(--navy); color: #fff; font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 0;
}
.event-card-today .ev-mon { background: var(--amber); color: var(--navy); }
.ev-day { display: block; font-size: 1.55rem; font-weight: 700; color: var(--navy); padding: 6px 0 8px; line-height: 1; }

.event-body { flex: 1; min-width: 0; }
.event-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 9px; }
.ev-type, .ev-countdown, .ev-dist {
  display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 4px 10px; border: 1px solid;
}
.ev-type-hearing   { color: #7d4c17; border-color: #C79A63; background: #FAF1E6; }
.ev-type-meeting   { color: var(--navy); border-color: #B9C0CB; background: var(--light); }
.ev-type-deadline  { color: var(--red); border-color: #D8A3A3; background: #FAEDED; }
.ev-type-town-hall { color: #2E5E46; border-color: #9CC0AC; background: #EFF6F1; }
.ev-type-community { color: #4A3B7A; border-color: #B3A6D6; background: #F3F0FA; }
.ev-countdown { color: var(--navy); border-color: var(--amber); background: #FFF8E1; }
.ev-dist { color: var(--gray); border-color: var(--pale); background: transparent; }

.event-card h3 { font-size: 1.3rem; margin: 0 0 6px; line-height: 1.25; }
.ev-host { font-weight: 600; color: var(--charcoal); margin: 0 0 8px; font-size: 0.95rem; }
.ev-when { font-weight: 600; color: var(--navy); margin: 0 0 4px; font-size: 0.95rem; }
.ev-where { color: var(--gray); margin: 0 0 2px; font-size: 0.92rem; }
.ev-where-sub { font-size: 0.86rem; }
.ev-desc { color: var(--charcoal); margin: 10px 0 0; font-size: 0.95rem; line-height: 1.6; }

.ev-steps { margin-top: 12px; }
.ev-steps summary {
  cursor: pointer; font-weight: 600; font-size: 0.9rem; color: var(--navy-accent);
  padding: 6px 0; list-style: none;
}
.ev-steps summary::-webkit-details-marker { display: none; }
.ev-steps summary::before { content: "▸ "; display: inline-block; transition: transform 0.15s ease; }
.ev-steps[open] summary::before { content: "▾ "; }
.ev-steps ul { margin: 6px 0 0; padding-left: 1.3em; }
.ev-steps li { margin-bottom: 5px; font-size: 0.93rem; line-height: 1.55; }

.ev-links { margin: 14px 0 0; font-size: 0.9rem; font-weight: 600; }
.ev-links a { color: var(--navy-accent); }
.ev-sep { color: var(--pale); margin: 0 9px; }

.event-empty {
  background: var(--light); border: 1px solid var(--pale); padding: 40px 34px;
  text-align: center; border-radius: 4px;
}
.event-empty h3 { margin-top: 0; }
.event-empty p { color: var(--gray); max-width: 46ch; margin-left: auto; margin-right: auto; }
.event-outofrange {
  margin-top: 20px; padding: 14px 18px; background: var(--light);
  border-left: 3px solid var(--amber); color: var(--charcoal); font-size: 0.92rem;
}

@media (max-width: 600px) {
  .event-card { gap: 14px; padding: 18px 16px; }
  .event-date { flex-basis: 48px; }
  .ev-day { font-size: 1.3rem; }
  .event-form #ev-zip, .event-form #ev-radius { width: 100%; }
  .event-form .field { flex: 1 1 100%; }
}
/* Admin events list: de-emphasised "past events" table */
.admin-table-muted { opacity: 0.72; }
.admin-table-muted .admin-title-link { font-weight: 500; }
/* Event type chips render inside admin tables too — keep them from stretching */
.admin-table .ev-type { white-space: nowrap; }

/* Share-with-us: conditional event fields + events-page tip-off box */
.submit-event-fields {
  border: 1px solid var(--pale); border-left: 3px solid var(--amber);
  padding: 22px 24px; margin: 0 0 20px; border-radius: 4px; background: #FFFDF5;
}
.submit-event-fields legend {
  font-weight: 600; padding: 0 8px; color: var(--navy);
}
.submit-event-fields[hidden] { display: none !important; }
#topics-field[hidden], #consent-row[hidden], #contact-note[hidden] { display: none !important; }

.event-tipoff {
  margin-top: 46px; padding: 30px 32px; background: var(--light);
  border: 1px solid var(--pale); border-top: 3px solid var(--navy); border-radius: 4px;
}
.event-tipoff h2 { margin-top: 0; font-size: 1.5rem; }
.event-tipoff p { color: var(--charcoal); max-width: 58ch; }
.sub-meta-event th { width: 130px; }

/* Admin: email-notification status banner (see LAUNCH-CHECKLIST.md) */
.notify-banner { padding: 18px 22px; margin: 0 0 24px; border-radius: 4px; font-size: 0.94rem; }
.notify-banner-off { background: #FFF6E5; border: 1px solid #E8C372; border-left: 4px solid #D9901A; }
.notify-banner-off p { margin: 0 0 8px; }
.notify-banner-off p:last-child { margin-bottom: 0; }
.notify-banner .nb-title { font-weight: 700; color: #7A4E06; font-size: 1rem; }
.notify-banner .nb-reason { color: var(--gray); font-size: 0.88rem; }
.notify-banner .nb-fix { font-size: 0.88rem; }
.notify-banner code { background: rgba(0,0,0,0.06); padding: 2px 6px; font-size: 0.85em; border-radius: 3px; }
.notify-banner-on { background: #EFF6F0; border: 1px solid #A9CDB3; border-left: 4px solid #3E7A4E; color: #2C5738; }

/* Map basemap fallback: desaturate OpenStreetMap's colourful tiles so the
   fallback still matches the site's muted palette. Only the tile pane is
   filtered — markers and popups keep their full colour. */
.dc-map-fallback .leaflet-tile-pane { filter: grayscale(0.85) brightness(1.06); }

/* ---------- Learn landing: search across all topics ---------- */
.learn-search { margin: 0 0 34px; }
.learn-search-row { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; }
.learn-search input[type="search"] {
  flex: 1 1 320px; padding: 15px 18px; border: 1px solid var(--pale);
  background: var(--white); font: inherit; font-size: 1.02rem; color: var(--charcoal); border-radius: 3px;
}
.learn-search input[type="search"]:focus {
  outline: 2px solid var(--amber); outline-offset: 1px; border-color: var(--amber);
}
.learn-search .btn { flex: 0 0 auto; }
.learn-search .results-meta { margin: 12px 0 0; }
.learn-search [hidden] { display: none !important; }
#learn-results[hidden], #learn-grid[hidden] { display: none !important; }

/* Topic chips on a cross-topic result */
.result-topics { display: flex; gap: 7px; flex-wrap: wrap; margin: 10px 0 0; }
.topic-chip {
  display: inline-block; font-size: 10px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 4px 11px; text-decoration: none;
  color: var(--charcoal); background: var(--light);
  border: 1px solid var(--pale); border-left: 3px solid var(--accent, var(--navy));
}
.topic-chip:hover { background: var(--white); border-color: var(--navy); color: var(--navy); }

.learn-empty {
  background: var(--light); border: 1px solid var(--pale); border-radius: 4px;
  padding: 44px 34px; text-align: center;
}
.learn-empty h3 { margin-top: 0; }
.learn-empty p { color: var(--gray); }

/* ==========================================================================
   Data center detail — left-aligned hero, facts as label/value rows
   ========================================================================== */
.page-hero--left { text-align: left; }
.page-hero--left .container { max-width: 1180px; }
.page-hero--left .hero-lead { margin-left: 0; margin-right: 0; max-width: 68ch; }
.page-hero--left .kicker { margin-bottom: 1em; }

.dc-hero .status-badge { margin-bottom: 14px; }
.dc-hero h1 { font-size: clamp(2rem, 4vw, 3.1rem); margin-bottom: 0.25em; max-width: 20ch; }
.dc-hero-where {
  font-size: 12px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(255,255,255,0.6); margin: 0 0 22px;
}

/* Key facts: a definition list, so long values (water, developer) wrap
   properly instead of being squeezed into an inline chip row. */
.dc-facts-list { margin: 0 0 20px; padding: 0; border-top: 1px solid var(--pale); }
.dc-fact-row {
  display: grid; grid-template-columns: 140px 1fr; gap: 18px;
  padding: 14px 0; border-bottom: 1px solid var(--pale);
}
.dc-fact-row dt {
  font-size: 10px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gray); padding-top: 3px;
}
.dc-fact-row dd { margin: 0; font-size: 0.97rem; line-height: 1.6; color: var(--charcoal); }
@media (max-width: 600px) {
  .dc-fact-row { grid-template-columns: 1fr; gap: 4px; }
}

/* Location caveat now sits with the facts, not stacked in the hero */
.dc-main .location-note {
  margin: 0 0 40px; max-width: 68ch; font-size: 0.88rem; line-height: 1.6;
  color: var(--gray); border-left: 2px solid var(--pale); padding: 2px 0 2px 14px;
  text-shadow: none;
}
.dc-main .location-note strong { color: var(--charcoal); }

.dc-main h2 { margin-top: 2.2em; }
.dc-main h2:first-child, .dc-main .hearing-alert + h2 { margin-top: 0; }
.dc-main .source-disclaimer {
  margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--pale);
  font-size: 0.85rem; max-width: 68ch;
}

/* Footer brand: .brand:hover sets color:var(--navy), which on the navy footer
   made the wordmark vanish. Amber matches the star and the footer link hover. */
.brand-footer:hover,
.brand-footer:focus-visible { color: var(--amber); }
.brand-footer:hover .brand-star { fill: var(--amber); }

/* Same trap anywhere else a link sits on the dark footer (e.g. the photo
   credits and the Wikimedia link in footer-bottom). */
.site-footer a:hover { color: var(--amber); }
.footer-bottom a { color: rgba(255,255,255,0.72); }
.footer-bottom a:hover { color: var(--amber); }

/* Admin: who's signed in, role badge, user-management table */
.admin-whoami {
  color: var(--pale); text-decoration: none; font-size: 0.86rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
}
.admin-whoami:hover { color: #fff; }
.admin-role {
  background: rgba(255,255,255,0.14); color: var(--pale); font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; padding: 2px 7px; border-radius: 3px;
}
.inline-form { display: inline; }
.linkish {
  background: none; border: 0; padding: 0; font: inherit; color: var(--navy-accent);
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.linkish:hover { color: var(--navy); }
.pw-reveal {
  display: inline-block; background: var(--light); border: 1px solid var(--pale);
  padding: 4px 10px; font-size: 1rem; letter-spacing: 0.04em; user-select: all;
}
.perms-table td:not(:first-child), .perms-table th:not(:first-child) { text-align: center; width: 110px; }
.admin-table select { padding: 5px 8px; font: inherit; border: 1px solid var(--pale); border-radius: 3px; }

/* Admin: per-user capability editor */
.user-card {
  border: 1px solid var(--pale); border-top: 2px solid var(--navy);
  background: var(--white); padding: 22px 24px; margin-bottom: 26px; border-radius: 4px;
}
.user-card-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 20px; flex-wrap: wrap; margin-bottom: 16px;
}
.user-card-head h3 { margin: 0 0 4px; font-size: 1.3rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.user-card-head p { margin: 0; font-size: 0.85rem; }
.user-card-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.owner-note {
  background: var(--light); border-left: 3px solid var(--amber);
  padding: 12px 16px; margin: 0; font-size: 0.9rem; color: var(--charcoal);
}
.caps-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px; margin-bottom: 18px;
}
.caps-section {
  border: 1px solid var(--pale); border-radius: 4px; padding: 12px 14px 10px; margin: 0;
  background: #FCFCFD;
}
.caps-section legend {
  font-weight: 700; font-size: 0.9rem; color: var(--navy); padding: 0 6px;
  display: flex; align-items: center; gap: 7px;
}
.caps-sensitive { border-color: #E8C372; background: #FFFCF4; }
.caps-warn {
  font-size: 9px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: #7A4E06; background: #FFF0CC; border: 1px solid #E8C372; padding: 1px 6px; border-radius: 3px;
}
.caps-blurb { font-size: 0.8rem; color: var(--gray); margin: 2px 0 9px; line-height: 1.45; }
.caps-check {
  display: flex; align-items: center; gap: 8px; padding: 4px 0;
  font-size: 0.9rem; cursor: help;
}
.caps-check input { flex: none; }
.caps-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.caps-actions .field-hint { margin: 0; }
