@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@700&display=swap');
/* ============================================================
   Sibility — colour design system (v3)
   Field: warm beige · Ink: brand dark · Accent: muted orange.
   Type: Albert Sans (display) + Barlow (body). Strict editorial:
   no border-radius, no shadows (except the More dropdown lift).
   Single responsive axis handled in CSS; the nav flips to a
   full-screen panel below 900px. Chrome is injected by chrome.js.
   ============================================================ */

:root {
  --field: #efece8;          /* page background (warm beige) */
  --field-rgb: 239, 236, 232;
  --ink: #180908;            /* text, borders, filled buttons, logo */
  --ink-hover: #333331;
  --body: #4a3f3d;           /* paragraphs */
  --muted: #8a807c;          /* captions / IPA / meta */
  --muted-2: #6b7280;        /* secondary muted */
  --accent: #DB8236;         /* eyebrows, icons, keyword, CTAs */
  --hairline: #cfc8bf;       /* dividers on field */
  --hairline-ink: #43302b;   /* dividers inside ink blocks */
  --on-ink: #efece8;         /* text on ink */
  --on-ink-muted: #9c8f89;

  --sans: 'Albert Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --maxw: 1024px;
  /* horizontal gutter that also centres content within a --maxw column
     on wide screens (so nothing renders wider than 1024px) */
  --gutter: max(clamp(20px, 5vw, 56px), calc((100% - var(--maxw)) / 2));
  --nav-bp: 900px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--serif);
  color: var(--ink);
  background: var(--field);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
::selection { background: var(--accent); color: #fff; }
h1, h2, h3, h4 { font-family: var(--sans); margin: 0; }
p { margin: 0; }

/* centred content column — the --gutter now handles the 1024 cap,
   so .container just needs to not fight it */
.container { width: 100%; margin: 0 auto; }

/* ---------- shared text primitives ---------- */
.eyebrow {
  font-family: var(--sans); font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
}
.eyebrow--sm { font-size: 11px; }
.section-eyebrow {
  font-family: var(--sans); font-size: 13px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
  margin: 0 0 12px;
}

/* underline "Learn more →" text link */
.arrow-link {
  display: inline-block; font-family: var(--sans);
  font-size: 15px; font-weight: 600; color: var(--ink);
  border-bottom: 1.5px solid var(--ink); padding-bottom: 3px;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.arrow-link:hover { color: var(--accent); border-color: var(--accent); }
.arrow-link .arw { display: inline-block; transition: transform 0.28s cubic-bezier(0.4,0,0.2,1); }
.arrow-link:hover .arw { transform: translateX(6px); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-size: 13px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 13px 26px; border: 1.5px solid var(--ink); cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
  white-space: nowrap; background: transparent; color: var(--ink);
}
.btn--fill { background: var(--ink); color: var(--field); }
.btn--fill:hover { background: var(--ink-hover); color: var(--field); border-color: var(--ink-hover); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn--accent:hover { background: var(--ink); border-color: var(--ink); color: var(--field); }
.btn--outline:hover { background: var(--ink); color: var(--field); }
.btn .arw { display: inline-block; transition: transform 0.28s cubic-bezier(0.4,0,0.2,1); }
.btn:hover .arw { transform: translateX(6px); }
/* outline-on-ink (Shelters button on ink band): hover only dims */
.btn--on-ink { border-color: var(--on-ink); color: var(--on-ink); }
.btn--on-ink:hover { background: transparent; border-color: var(--muted); color: #d6d6d2; }

/* ---------- motifs ---------- */
.ink-square { width: 12px; height: 12px; background: var(--accent); display: block; }
.ghost-word {
  position: absolute; bottom: -0.18em; right: -0.02em; z-index: 0;
  font-family: var(--sans); font-weight: 800; letter-spacing: -0.05em;
  font-size: clamp(100px, 22vw, 220px); line-height: 1;
  color: rgba(24,9,8,0.05); pointer-events: none; user-select: none;
}

/* ---------- section / hero scaffolding ---------- */
.section { padding: clamp(56px, 8vw, 96px) var(--gutter); }
.section-pad { padding-left: var(--gutter); padding-right: var(--gutter); }
.hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 112px) var(--gutter) clamp(40px, 6vw, 72px); }
.hero .container { position: relative; z-index: 1; }

/* editorial two-column row (icon/label + content) */
.edi-row {
  display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 80px);
  align-items: flex-start;
}
.edi-aside { flex: 1 1 240px; max-width: 340px; }
.edi-main { flex: 3 1 480px; }

/* ---------- ink band ---------- */
.ink-band {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--on-ink);
  padding: clamp(40px, 6vw, 72px) clamp(28px, 4vw, 56px);
}
.ink-band p { color: #d6d6d2; }

/* ============================================================
   HEADER (injected)
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: clamp(22px, 3vw, 34px) var(--gutter);
  background: rgba(var(--field-rgb), 0.6);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid rgba(24,9,8,0);
  transition: padding 0.4s cubic-bezier(0.4,0,0.2,1), background 0.4s ease, border-color 0.4s ease;
  font-family: var(--serif);
}
.site-header.scrolled {
  padding: clamp(11px, 1.4vw, 15px) var(--gutter);
  background: rgba(var(--field-rgb), 0.85);
  border-bottom-color: rgba(24,9,8,0.1);
}
.hd-brand { display: flex; align-items: baseline; gap: 4px; color: var(--ink); }
.hd-logo { height: 22px; width: auto; display: block; transition: height 0.4s cubic-bezier(0.4,0,0.2,1); }
.site-header.scrolled .hd-logo { height: 18px; }

.hd-nav { display: flex; gap: clamp(18px, 2.6vw, 38px); align-items: center; flex-wrap: nowrap; }
.hd-link {
  position: relative; font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); white-space: nowrap;
}
.hd-link:not([data-drop])::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px;
  background: var(--ink); transform: scaleX(0); transform-origin: left center;
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
}
/* nav text stays ink in every state — only the underline sweeps.
   (explicit ink:hover overrides the global a:hover accent rule) */
/* keep mixed case for names like #ThisWasViolence (no all-caps) */
.hd-link--cased { text-transform: none; letter-spacing: 0.01em; }
.hd-link:hover { color: var(--ink); }
.hd-link:not([data-drop]):hover::after,
.hd-link.hd-active:not([data-drop])::after { transform: scaleX(1); }
.hd-smiley { height: 1.25em; width: auto; vertical-align: -0.28em; display: inline-block; }

/* More dropdown */
.hd-more { position: relative; }
.hd-more-btn {
  font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink); cursor: pointer; white-space: nowrap;
  display: flex; align-items: center; gap: 6px; padding-bottom: 16px; margin-bottom: -16px;
  transition: color 0.2s ease;
}
.hd-more.open .hd-more-btn { color: var(--accent); }
.hd-more-arrow { font-size: 9px; transition: transform 0.25s ease; }
.hd-more.open .hd-more-arrow { transform: rotate(180deg); }
.hd-more-menu {
  position: absolute; top: 100%; right: 0; width: max-content;
  background: var(--field); border: 1px solid var(--ink); padding: 6px;
  display: flex; flex-direction: column; gap: 2px;
  box-shadow: 0 10px 30px rgba(24,9,8,0.1); z-index: 120;
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity 0.2s ease, transform 0.26s cubic-bezier(0.4,0,0.2,1);
}
.hd-more.open .hd-more-menu { opacity: 1; transform: translateY(0); pointer-events: auto; }
.hd-more-menu .hd-link { padding: 10px 16px; transition: background 0.15s ease; }
.hd-more-menu .hd-link:hover { background: rgba(24,9,8,0.08); }

/* burger + mobile panel */
.hd-burger {
  display: none; position: relative; z-index: 110; font-size: 26px; line-height: 1;
  cursor: pointer; user-select: none; padding: 4px 2px; color: var(--ink);
  transition: transform 0.3s ease; background: none; border: 0;
}
.nav-open .hd-burger { transform: rotate(90deg); }
.hd-panel {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; min-height: 100vh;
  background: var(--field); display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start; gap: 18px;
  padding: 0 clamp(28px, 8vw, 56px); z-index: 90;
  opacity: 0; transform: translateY(-8px); pointer-events: none;
  transition: opacity 0.32s ease, transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.nav-open .hd-panel { opacity: 1; transform: translateY(0); pointer-events: auto; }
.hd-panel a {
  font-family: var(--sans); font-weight: 700; letter-spacing: -0.025em; line-height: 1.0;
  font-size: clamp(30px, 8vw, 46px); color: var(--ink); display: inline-flex; align-items: center; gap: 0.3em;
}
.hd-panel .hd-panel-sub {
  font-size: clamp(19px, 5.2vw, 25px); font-weight: 600; letter-spacing: 0.01em; line-height: 1.1; color: var(--ink);
  padding: 8px 0;
}
.hd-panel .hd-smiley { height: 0.78em; vertical-align: baseline; }
.hd-panel-rule { width: 56px; height: 1px; background: rgba(24,9,8,0.18); margin: clamp(10px, 2vw, 18px) 0; }

@media (max-width: 899.98px) {
  .hd-nav { display: none; }
  .hd-burger { display: block; }
}
@media (min-width: 900px) {
  .hd-panel { display: none; }
}

/* ============================================================
   FOOTER (injected)
   ============================================================ */
.site-footer { background: var(--ink); color: var(--on-ink); font-family: var(--serif); }
.site-footer .container { padding: clamp(52px, 5.5vw, 80px) var(--gutter) 40px; }
.ft-top { display: flex; flex-wrap: wrap; gap: clamp(36px, 5vw, 80px); justify-content: space-between; align-items: flex-start; }
.ft-logo { height: 28px; width: auto; margin-bottom: 24px; }
.ft-tagline { font-family: var(--sans); font-size: clamp(22px, 2.2vw, 30px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.ft-tagline span { color: var(--accent); }
.ft-cols { display: flex; gap: clamp(40px, 5vw, 80px); flex-wrap: wrap; }
.ft-lbl { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.ft-links { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.ftl { color: #c9beb8; position: relative; width: fit-content; transition: color 0.18s ease; }
.ftl:hover { color: var(--accent); }
.ftl::after { content: ''; position: absolute; left: 0; bottom: -3px; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.24s ease; }
.ftl:hover::after { transform: scaleX(1); }
.ft-bottom { margin-top: clamp(48px, 5vw, 68px); padding-top: 26px; border-top: 1px solid rgba(239,236,232,0.16); display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; align-items: baseline; }
.ft-legal { font-size: 13px; line-height: 1.65; color: var(--on-ink-muted); margin: 0; max-width: 760px; }
.ft-copy { font-size: 13px; color: var(--on-ink-muted); white-space: nowrap; }

/* ============================================================
   AIGuide floating chat widget (injected by chrome.js)
   ============================================================ */
.aig-launch {
  position: fixed; right: clamp(16px, 3vw, 28px); bottom: clamp(16px, 3vw, 28px); z-index: 9999;
  cursor: pointer; background: var(--ink); color: var(--on-ink); display: flex; align-items: center; gap: 11px;
  padding: 14px 20px 14px 16px; box-shadow: 0 10px 28px rgba(24,9,8,0.26); user-select: none;
  transition: box-shadow 0.25s ease;
}
.aig-launch:hover { box-shadow: 0 16px 38px rgba(24,9,8,0.34); }
.aig-launch .aig-orb { position: relative; width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; }
.aig-core { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); display: inline-block; animation: aig-core 2.4s ease-in-out infinite; }
.aig-launch:hover .aig-core { animation-duration: 1s; }
.aig-ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--accent); animation: aig-ring 2.4s ease-out infinite; }
.aig-launch-lbl { font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; }
@keyframes aig-core { 0%,100% { transform: scale(1); } 50% { transform: scale(1.28); } }
@keyframes aig-ring { 0% { transform: scale(0.7); opacity: 0.55; } 70%,100% { transform: scale(1.7); opacity: 0; } }

.aig-panel {
  position: fixed; right: clamp(16px, 3vw, 28px); bottom: clamp(16px, 3vw, 28px); z-index: 9999;
  width: min(calc(100vw - 32px), 440px); height: min(calc(100vh - 100px), 680px);
  background: var(--field); border: 1px solid var(--ink); box-shadow: 0 24px 60px rgba(24,9,8,0.28);
  display: flex; flex-direction: column; overflow: hidden; animation: aig-pop 0.28s cubic-bezier(0.2,0.7,0.2,1);
}
@keyframes aig-pop { from { opacity: 0; transform: translateY(16px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
.aig-head { background: var(--ink); color: var(--on-ink); padding: 18px 20px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.aig-head-title { display: flex; align-items: center; gap: 9px; font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.aig-head-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; }
.aig-head-sub { font-size: 13px; color: #b8ada6; margin-top: 6px; line-height: 1.4; }
.aig-x { cursor: pointer; font-size: 22px; line-height: 1; color: #b8ada6; user-select: none; padding: 2px 4px; background: none; border: none; transition: color 0.18s ease; }
.aig-x:hover { color: var(--on-ink); }
.aig-thread { flex: 1 1 auto; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.aig-thread::-webkit-scrollbar { width: 8px; }
.aig-thread::-webkit-scrollbar-thumb { background: #d8d2ca; border-radius: 8px; }
.aig-row { display: flex; }
.aig-row.user { justify-content: flex-end; }
.aig-row.bot { justify-content: flex-start; }
.aig-bubble { max-width: 88%; font-size: 15px; line-height: 1.55; padding: 12px 15px; overflow-wrap: anywhere; font-weight: 500; }
.aig-bubble p { margin: 0 0 10px; } .aig-bubble p:last-child { margin-bottom: 0; }
.aig-bubble ul { margin: 4px 0 10px; padding-left: 18px; } .aig-bubble li { margin: 3px 0; } .aig-bubble ul:last-child { margin-bottom: 0; }
.aig-bubble strong { font-weight: 700; color: #180908; }
.aig-row.bot .aig-bubble { color: #180908; }
.aig-bubble a { color: #DB8236; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.aig-row.user .aig-bubble a { color: #f2d9bd; }
.aig-row.user .aig-bubble { background: var(--ink); color: var(--on-ink); border: 1px solid var(--ink); border-radius: 12px 12px 2px 12px; }
.aig-row.bot .aig-bubble { background: #fff; color: #180908; border: 1px solid #e4ded5; border-radius: 12px 12px 12px 2px; }
.aig-typing { align-self: flex-start; background: #fff; border: 1px solid #e4ded5; padding: 12px 16px; display: flex; gap: 5px; }
.aig-typing span { width: 6px; height: 6px; border-radius: 50%; background: #b3aaa2; animation: aig-dot 1.2s infinite; }
.aig-typing span:nth-child(2) { animation-delay: 0.2s; }
.aig-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes aig-dot { 0%,60%,100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-4px); opacity: 1; } }
.aig-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.aig-chip { font-family: var(--sans); font-size: 12px; font-weight: 600; border: 1px solid var(--hairline); color: #6b625d; padding: 7px 12px; cursor: pointer; transition: border-color 0.18s ease, color 0.18s ease; }
.aig-chip:hover { border-color: var(--ink); color: var(--ink); }
.aig-input { border-top: 1px solid #ddd6cd; padding: 12px 14px; display: flex; align-items: center; gap: 10px; background: var(--field); }
.aig-input input { flex: 1 1 auto; min-width: 0; font-family: var(--serif); font-size: 15px; color: var(--ink); background: transparent; border: none; outline: none; padding: 8px 4px; }
.aig-send { flex: 0 0 auto; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; font-size: 18px; cursor: default; user-select: none; background: #e0d9d0; color: #b3aaa2; border: none; transition: background 0.18s ease, color 0.18s ease; }
.aig-send.on { background: var(--accent); color: #fff; cursor: pointer; }
/* hide the guide launcher while the mobile menu is open */
body.nav-lock #aig-root { display: none; }

/* ============================================================
   Small shared form controls (Apply / Contact / Newsletter)
   ============================================================ */
.field-label { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; display: block; }
.input, .textarea, select.input {
  width: 100%; font-family: var(--serif); font-size: 16px; color: var(--ink);
  background: #fff; border: 1.5px solid var(--ink); padding: 13px 14px;
  outline: none; transition: border-color 0.18s ease;
}
.input:focus, .textarea:focus { border-color: var(--accent); }
.textarea { resize: vertical; min-height: 130px; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: #a49a94; }

/* filter chips (Current / directories) */
.chip {
  font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
  padding: 6px 12px; border: 1px solid #C9C9C4; background: transparent; color: var(--body);
  cursor: pointer; user-select: none; transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--field); }

/* generic responsive collapse helper: bordered cell grid */
.cell-grid { border: 1.5px solid var(--ink); display: grid; }
.cell-grid .cell { padding: clamp(24px, 3vw, 40px); }

/* ============================================================
   DONATE band + modal
   ============================================================ */
.dn-band {
  background: var(--ink); color: var(--on-ink);
  padding: clamp(44px, 5vw, 68px) clamp(24px, 5vw, 56px);
  display: flex; flex-wrap: wrap; gap: clamp(28px, 4vw, 48px);
  align-items: center; justify-content: space-between;
}
.dn-band-copy { max-width: 560px; }
.dn-band-h { font-size: clamp(26px, 2.9vw, 38px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 12px; }
.dn-band-p { font-size: 16px; line-height: 1.55; color: #c9beb8; margin: 0; max-width: 460px; }
.dn-cta {
  flex: 0 0 auto; font-family: var(--sans); font-size: 15px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink);
  background: var(--accent); border: none; padding: 17px 36px; cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease;
}
.dn-cta:hover { background: var(--field); color: var(--ink); }

.dn-scrim {
  position: fixed; inset: 0; z-index: 1000; background: rgba(24,9,8,0.62);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.dn-scrim.open { display: flex; animation: dn-fade 0.22s ease; }
.dn-modal {
  width: 100%; max-width: 460px; background: var(--field); color: var(--ink);
  padding: clamp(28px, 4vw, 40px); position: relative; font-family: var(--serif);
  animation: dn-rise 0.3s cubic-bezier(0.4,0,0.2,1);
}
.dn-x { position: absolute; top: 18px; right: 20px; font-family: var(--sans); font-size: 22px; line-height: 1; color: var(--muted); background: none; border: none; cursor: pointer; padding: 4px; transition: color 0.18s ease; }
.dn-x:hover { color: var(--accent); }
.dn-title { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; margin: 0 0 22px; }
.dn-freq { display: inline-flex; border: 1px solid var(--ink); margin-bottom: 22px; }
.dn-seg { font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 10px 20px; cursor: pointer; border: none; background: transparent; color: var(--ink); transition: background 0.16s ease, color 0.16s ease; }
.dn-seg.on { background: var(--ink); color: var(--field); }
.dn-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.dn-tile { font-family: var(--sans); font-size: 15px; font-weight: 700; letter-spacing: 0.02em; padding: 13px 8px; cursor: pointer; border: 1px solid var(--ink); background: transparent; color: var(--ink); transition: background 0.16s ease, color 0.16s ease; }
.dn-tile.on { background: var(--ink); color: var(--field); }
.dn-custom { display: flex; align-items: center; gap: 8px; border: 1px solid var(--ink); padding: 0 14px; margin-bottom: 22px; }
.dn-cur { font-family: var(--sans); font-size: 17px; font-weight: 700; color: var(--muted); }
.dn-custom input { flex: 1; min-width: 0; font-family: var(--serif); font-size: 16px; color: var(--ink); background: transparent; border: none; padding: 13px 0; outline: none; }
.dn-submit { width: 100%; font-family: var(--sans); font-size: 15px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--field); background: var(--ink); border: none; padding: 16px; cursor: pointer; transition: background 0.2s ease; }
.dn-submit:hover { background: var(--ink-hover); }
.dn-err { font-size: 13px; color: #b8542e; margin-top: 10px; }
.dn-note { font-size: 12px; color: var(--muted); margin: 16px 0 0; text-align: center; }
.dn-stage-mid { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 40px 0; text-align: center; }
.dn-spinner { width: 40px; height: 40px; border: 3px solid var(--hairline); border-top-color: var(--accent); border-radius: 50%; animation: dn-spin 0.8s linear infinite; }
.dn-connecting { font-family: var(--sans); font-size: 16px; font-weight: 600; color: var(--ink); }
.dn-stage-done { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 8px 0; }
.dn-done-note { font-size: 15px; line-height: 1.55; color: var(--ink); font-weight: 600; margin: 0; }
/* warm closing paragraph under a short accent rule */
.dn-done-rule { width: 44px; height: 3px; background: var(--accent); margin: 4px 0 0; }
.dn-done-extra { font-size: 15px; line-height: 1.6; color: var(--ink); margin: 0; }
.dn-done-btn { width: auto; margin-top: 6px; padding: 14px 28px; }
@keyframes dn-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes dn-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes dn-spin { to { transform: rotate(360deg); } }

/* ============================================================
   NEWSLETTER band + toast
   ============================================================ */
.nl-band {
  padding: clamp(72px, 9vw, 114px) clamp(24px, 5vw, 56px);
  display: flex; flex-wrap: wrap; gap: clamp(28px, 4vw, 56px);
  align-items: center; justify-content: space-between;
}
.nl-copy { flex: 1 1 360px; min-width: 0; max-width: 520px; }
.nl-h { font-size: clamp(23px, 2.3vw, 29px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.14; margin: 0; }
.nl-formwrap { flex: 1 1 300px; min-width: 0; max-width: 480px; }
/* stay two-column down to 720px, then stack full-width */
@media (max-width: 719.98px) { .nl-copy, .nl-formwrap { flex-basis: 100%; max-width: 100%; } }
.nl-form { display: flex; align-items: center; gap: 14px; border-bottom: 1.5px solid var(--ink); padding-bottom: 10px; transition: border-color 0.25s ease; }
.nl-form.nl-err { border-color: var(--accent); }
.nl-input { flex: 1; min-width: 0; font-family: var(--serif); font-size: 17px; color: var(--ink); background: transparent; border: none; padding: 4px 0; outline: none; }
.nl-sub { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); background: none; border: none; cursor: pointer; white-space: nowrap; }
/* stays orange on hover — only the arrow moves */
.nl-arrow { display: inline-block; transition: transform 0.26s cubic-bezier(0.4,0,0.2,1); }
.nl-sub:hover .nl-arrow { transform: translateX(6px); }
.nl-toast { position: fixed; right: clamp(16px, 3vw, 28px); bottom: clamp(16px, 3vw, 28px); z-index: 2000; display: flex; align-items: center; gap: 14px; background: var(--ink); color: var(--on-ink); padding: 16px 20px; max-width: 380px; box-shadow: 0 16px 44px rgba(24,9,8,0.28); cursor: pointer; font-family: var(--serif); animation: nl-toast-in 0.42s cubic-bezier(0.34,1.2,0.64,1); }
.nl-toast-ic { height: 30px; width: 30px; flex: 0 0 auto; }
.nl-toast-msg { font-size: 15px; line-height: 1.4; }
@keyframes nl-toast-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   Solid ink button (hero CTAs)
   ============================================================ */
.btn-solid {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 14px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--field);
  background: var(--ink); border: none; cursor: pointer; padding: 17px 26px;
  transition: background 0.22s ease;
}
.btn-solid:hover { background: #2c1a13; color: var(--field); }
.btn-solid.orange { background: var(--accent); color: var(--ink); }
.btn-solid.orange:hover { background: #cb7629; color: var(--ink); }
.btn-solid .arw { display: inline-block; transition: transform 0.26s cubic-bezier(0.4,0,0.2,1); }
.btn-solid:hover .arw { transform: translateX(6px); }

/* ============================================================
   APPLY modal (Flow / Delta) + underline form fields
   ============================================================ */
.apply-overlay {
  position: fixed; inset: 0; z-index: 1000; display: none;
  align-items: center; justify-content: center; padding: clamp(16px, 4vh, 48px) 16px;
  background: rgba(24,9,8,0.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  overflow-y: auto;
}
.apply-overlay.open { display: flex; animation: ov-in 0.2s ease; }
.apply-card {
  position: relative; width: 100%; max-width: 620px; background: var(--field);
  padding: clamp(28px, 4vw, 48px); box-shadow: 0 30px 80px rgba(24,9,8,0.35);
  animation: card-in 0.32s cubic-bezier(0.4,0,0.2,1);
}
.apply-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.apply-title { font-size: clamp(26px, 3vw, 36px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; margin: 0; }
.apply-x { flex: 0 0 auto; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; background: transparent; border: 1px solid #d8d2ca; color: var(--ink); font-size: 18px; cursor: pointer; transition: background 0.18s ease, color 0.18s ease; }
.apply-x:hover { background: var(--ink); color: var(--field); }
.apply-form { display: flex; flex-direction: column; gap: 18px; }
.apply-row { display: flex; flex-wrap: wrap; gap: 22px; }
.apply-col { flex: 1 1 220px; }
.fld-label { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; display: block; }
.fld { width: 100%; box-sizing: border-box; font-family: var(--serif); font-size: 16px; color: var(--ink); background: transparent; border: none; border-bottom: 1.5px solid var(--hairline); padding: 12px 0; outline: none; transition: border-color 0.2s ease; }
.fld:focus { border-bottom-color: var(--ink); }
.fld::placeholder { color: #a49a94; }
textarea.fld { resize: vertical; min-height: 96px; line-height: 1.5; }
.apply-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 14px; }
.apply-hint { font-family: var(--serif); font-size: 13.5px; color: var(--muted); }
.apply-err { font-family: var(--serif); font-size: 13.5px; color: #b8542e; }
.apply-submit { display: inline-flex; align-items: center; gap: 10px; font-family: var(--sans); font-size: 15px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--field); background: var(--ink); border: none; padding: 16px 34px; cursor: pointer; transition: background 0.22s ease; }
.apply-submit:hover { background: var(--ink-hover); }
.apply-submit .arw { display: inline-block; transition: transform 0.26s cubic-bezier(0.4,0,0.2,1); }
.apply-submit:hover .arw { transform: translateX(6px); }
.apply-done { padding: 18px 0 8px; }
.apply-done h3 { font-size: clamp(22px, 2.3vw, 28px); font-weight: 700; letter-spacing: -0.01em; margin: 0 0 10px; }
.apply-done p { font-size: 16px; line-height: 1.55; color: var(--body); margin: 0 0 28px; max-width: 460px; }
@keyframes ov-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes card-in { from { opacity: 0; transform: translateY(24px) scale(0.98); } to { opacity: 1; transform: none; } }

/* ============================================================
   DIRECTORY (Hotlines / Shelters)
   ============================================================ */
.dir-hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 72px) var(--gutter) clamp(28px, 5vw, 48px); }
.dir-ghost { position: absolute; right: -0.1em; bottom: -0.28em; font-family: var(--sans); font-size: clamp(100px, 22vw, 200px); font-weight: 800; letter-spacing: -0.05em; color: rgba(24,9,8,0.05); line-height: 1; pointer-events: none; user-select: none; }
.dir-hero-inner { position: relative; }
.dir-hero h1 { font-size: clamp(40px, 5.5vw, 64px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.0; margin: 0 0 24px; }
.dir-hero p { font-size: 17px; line-height: 1.6; color: var(--body); max-width: 620px; margin: 0; }
.dir-emergency-wrap { padding: 0 var(--gutter) 32px; }
.dir-emergency { max-width: 860px; background: var(--ink); color: var(--on-ink); padding: 18px 24px; display: flex; gap: 16px; align-items: baseline; flex-wrap: wrap; }
.dir-emergency .lead { font-size: 15px; font-weight: 700; }
.dir-emergency .rest { font-size: 15px; color: #d6d6d2; }
.dir-emergency a { color: var(--on-ink); text-decoration: underline; text-underline-offset: 4px; }
.dir-emergency a:hover { color: var(--accent); }
.dir-wrap { padding: 0 var(--gutter) clamp(56px, 9vw, 96px); }
.dir-inner { max-width: 860px; }
.dir-filters { display: flex; flex-wrap: wrap; gap: 24px 48px; margin-bottom: 28px; }
.dir-axis { display: flex; flex-direction: column; gap: 10px; }
.dir-axis-lbl { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); }
.dir-chips { display: flex; flex-wrap: wrap; gap: 6px; max-width: 500px; }
.dir-chip { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; padding: 5px 10px; cursor: pointer; user-select: none; white-space: nowrap; border: 1px solid #C9C9C4; background: transparent; color: var(--body); transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease; }
.dir-chip:hover { border-color: var(--ink); }
.dir-chip.on { border-color: var(--ink); background: var(--ink); color: var(--field); }
.dir-count { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.dir-count-line { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--muted-2); }
.dir-clear { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; user-select: none; }
.dir-list { display: flex; flex-direction: column; gap: 12px; }
.dir-item { border: 1.5px solid var(--ink); background: var(--field); padding: 20px 24px; }
.dir-item-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.dir-name { font-family: var(--sans); font-size: 17px; font-weight: 700; letter-spacing: -0.01em; margin: 0; }
.dir-phone { font-family: var(--mono); font-size: 15px; font-weight: 700; white-space: nowrap; }
.dir-desc { font-size: 14px; line-height: 1.6; color: var(--body); margin: 0 0 12px; max-width: 640px; }
.dir-meta { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: var(--muted-2); }
.dir-empty { background: rgba(24,9,8,0.05); padding: 48px; text-align: center; }
.dir-empty p { font-family: var(--mono); font-size: 13px; color: var(--muted-2); margin: 0; }
.dir-foot { font-family: var(--mono); font-size: 11px; color: var(--muted-2); margin: 24px 0 0; }

/* hero with faint gradient watermark icon (center pages) */
.page-hero { position: relative; overflow: hidden; padding: clamp(64px, 9vw, 150px) var(--gutter) clamp(112px, 14vw, 208px); }
.page-hero-mark { position: absolute; top: 50%; right: -5%; transform: translateY(-50%); width: min(46%, 480px); pointer-events: none; }
.page-hero-mark svg { width: 100%; height: auto; display: block; opacity: 0.15; }
.page-hero-inner { position: relative; max-width: 760px; }
.page-hero h1 { font-size: clamp(46px, 6.6vw, 96px); font-weight: 700; letter-spacing: -0.03em; line-height: 0.97; margin: 0; }
.page-hero .lead { font-size: clamp(18px, 1.7vw, 22px); line-height: 1.55; color: var(--body); margin: 30px 0 0; max-width: 540px; }

/* guide: streaming status line inside the bot bubble */
.aig-bubble.status { color: #8a807c; font-style: italic; }

/* guide: full-screen chat on phones */
@media (max-width: 599.98px) {
  .aig-panel { right: 0; bottom: 0; width: 100vw; height: 100dvh; border: none; }
}

/* guide: streaming cursor, copy buttons, follow-up chips after replies */
@keyframes aigBlink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.aig-cursor { display: inline-block; width: 2px; height: 1em; background: #DB8236; margin-left: 2px; vertical-align: -0.15em; animation: aigBlink 1s steps(1) infinite; }
.aig-copy { display: inline-block; margin-left: 6px; padding: 0 5px; font-size: 13px; line-height: 1.3; color: #8a807c; background: transparent; border: 1px solid #d8d2ca; border-radius: 4px; cursor: pointer; vertical-align: 1px; }
.aig-copy:hover { color: #180908; border-color: #180908; }
.aig-copy.done { color: #DB8236; border-color: #DB8236; }
