/* Ban Ads for Gambling — shared styles
 * Style 1 (stark activist): black / white / red */

:root {
  --bg: #FFFFFF;
  --alt: #FAFAF7;
  --text: #141414;
  --muted: #555;
  --soft: #888;
  --accent: #C8102E;
  --accent-dark: #9F0D24;
  --on-accent: #FFFFFF;
  --band-bg: #15151A;
  --band-text: #FFFFFF;
  --band-muted: #B4B4BA;
  --band-accent: #FF5C5C;
  --card-bg: #FFFFFF;
  --card-border: #E6E2D8;
  --input-border: #C9C5B5;
  --footer-bg: #141414;
  --footer-text: #9C9C9C;
  --error-bg: #FCEBEB;
  --error-text: #A30E26;
  --ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
body {
  font-family: var(--ui);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* Sections linked from the Home dropdown scroll clear of the sticky header */
main section[id] { scroll-margin-top: 84px; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }

/* ============ Layout ============ */
.container { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 860px; margin: 0 auto; padding: 0 32px; }
.section { padding: 80px 0; }
.section.tight { padding: 48px 0; }
.section.alt { background: var(--alt); }
.section.band { background: var(--band-bg); color: var(--band-text); }
.section.band p, .section.band .body, .section.band .lead { color: var(--band-muted); }
.section.band h1, .section.band h2, .section.band h3 { color: var(--band-text); }
.section.band .accent { color: var(--band-accent); }
.section.band a { color: var(--band-text); }
.divider { height: 1px; background: var(--card-border); }

/* ============ Typography ============ */
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: inline-block;
}
.section.band .eyebrow { color: var(--band-accent); }
h1, .h1 { font-size: 58px; line-height: 1.04; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 22px; }
h2, .h2 { font-size: 38px; line-height: 1.12; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 18px; }
h3, .h3 { font-size: 22px; line-height: 1.25; font-weight: 700; margin-bottom: 10px; }
h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.lead { font-size: 19px; line-height: 1.55; color: var(--muted); margin-bottom: 28px; max-width: 640px; }
p { font-size: 16px; line-height: 1.7; color: var(--muted); margin-bottom: 16px; }
p strong { color: var(--text); }
.accent { color: var(--accent); }
.text-c { text-align: center; }
.sec-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.sec-head p { color: var(--muted); }

/* ============ Header ============ */
header.site {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--card-border);
}
.nav-row {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 64px;
  /* IMPORTANT: use padding-top/bottom longhand, not shorthand —
   * .nav-row is also .container, and shorthand `padding: 12px 0`
   * would wipe out .container's horizontal padding (0 32px). */
  padding-top: 12px;
  padding-bottom: 12px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex-shrink: 0;
  line-height: 1;
}
.logo .mark {
  font-size: 22px;
  line-height: 1;
  display: inline-block;
  /* keep emoji rendered consistent */
  font-family: "Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji",sans-serif;
}
.nav-links {
  display: flex;
  gap: 26px;
  align-items: center;
  font-size: 14px;
  flex: 1;
}
.nav-links > a,
.nav-has-dropdown > a {
  color: var(--muted);
  white-space: nowrap;
  padding: 6px 0;
  position: relative;
}
.nav-links > a:hover,
.nav-links > a.current,
.nav-has-dropdown > a:hover,
.nav-has-dropdown.current > a { color: var(--text); }
.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.lang-tog { font-size: 14px; display: inline-flex; gap: 6px; align-items: center; margin-right: 4px; }
.lang-tog a { color: var(--muted); opacity: 0.4; cursor: pointer; }
.lang-tog a:hover { opacity: 1; color: var(--text); }
.lang-tog a.on { color: var(--text); opacity: 1; }
.lang-tog .sep { color: var(--muted); opacity: 0.4; }

/* Mobile-only CTA block inside slideout — hidden on desktop */
.mobile-cta { display: none; }

/* Hamburger button (hidden on desktop) */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  width: 40px;
  height: 40px;
  margin-left: auto;
  position: relative;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px auto;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Dropdown menu ============ */
.nav-has-dropdown { position: relative; display: inline-flex; align-items: center; }
.nav-dd-trigger {
  background: transparent;
  border: 0;
  padding: 6px 0;
  font: inherit;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.nav-dd-trigger:hover,
.nav-dd-trigger:focus-visible,
.nav-has-dropdown.current .nav-dd-trigger { color: var(--text); }
.nav-dd-trigger::after {
  content: "";
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  margin-left: 4px;
  opacity: 0.6;
}
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: -16px;
  background: var(--bg);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 8px 0;
  min-width: 240px;
  box-shadow: 0 10px 32px rgba(0,0,0,0.10);
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, visibility 0s linear .18s;
  z-index: 110;
}
/* Single source of truth: the .open class controls visibility on desktop.
 * JS adds .open on hover/click, removes it on hover-leave/click-out. */
.nav-has-dropdown.open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transition: opacity .18s ease;
}
.nav-dropdown a {
  display: block;
  padding: 10px 18px;
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
  font-weight: 500;
}
.nav-dropdown a:hover { background: var(--alt); color: var(--accent); }
.nav-dropdown a.current { color: var(--accent); }

/* Nested submenu inside a dropdown (e.g. Resources → Our Publications).
 * Flies out to the RIGHT of the parent menu on desktop. */
.dd-has-sub { position: relative; }
.dd-sub-trigger {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 10px 34px 10px 18px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
}
.dd-sub-trigger::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 17px;
  width: 0; height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 4px solid currentColor;
  opacity: 0.6;
}
.dd-sub-trigger:hover,
.dd-has-sub.open > .dd-sub-trigger { background: var(--alt); color: var(--accent); }
.dd-has-sub.current > .dd-sub-trigger { color: var(--accent); }
.dd-submenu {
  position: absolute;
  left: 100%;
  top: -9px;
  min-width: 200px;
  background: var(--bg);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 8px 0;
  box-shadow: 0 10px 32px rgba(0,0,0,0.10);
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, visibility 0s linear .18s;
  z-index: 111;
}
.dd-has-sub.open > .dd-submenu {
  opacity: 1;
  visibility: visible;
  transition: opacity .18s ease;
}
.nav-dropdown .dd-desc {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 2px;
  line-height: 1.4;
  white-space: normal;
  max-width: 280px;
}

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  padding: 13px 22px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  text-align: center;
  border: 1px solid transparent;
  transition: background-color .15s, color .15s, border-color .15s;
  text-decoration: none;
  cursor: pointer;
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn-primary:hover:not(:disabled) { background: var(--accent-dark); border-color: var(--accent-dark); color: #FFF; }
.btn-outline { background: var(--bg); color: var(--text); border-color: var(--text); }
.btn-outline:hover:not(:disabled) { background: var(--text); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--alt); }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-lg { padding: 16px 28px; font-size: 15px; }
.btn-block { display: block; width: 100%; }
.section.band .btn-outline { color: var(--band-text); border-color: var(--band-text); background: transparent; }
.section.band .btn-outline:hover { background: var(--band-text); color: var(--band-bg); }

/* ============ Hero ============ */
.hero { padding: 64px 0; border-bottom: 4px solid var(--accent); }
.hero .h1 { max-width: 880px; }
.hero .lead { max-width: 660px; font-size: 20px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.hero-actions .note { font-size: 13px; color: var(--muted); }

/* ============ Grids ============ */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.row { display: flex; gap: 40px; flex-wrap: wrap; align-items: center; }
.row > .col { flex: 1 1 320px; min-width: 0; }

/* ============ Stat cards ============ */
.stat-card {
  background: var(--bg);
  border: 1px solid var(--card-border);
  padding: 24px;
  border-radius: 6px;
}
.stat-card .n {
  font-size: 36px; font-weight: 700;
  color: var(--accent); line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.stat-card .l { font-size: 14px; color: var(--muted); line-height: 1.5; }

/* ============ Steps ============ */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.step {
  background: var(--bg);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 24px;
}
.step-n {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 14px; margin: 0; }

/* ============ Asks list ============ */
.asks {
  background: var(--bg);
  border-left: 4px solid var(--accent);
  padding: 28px 32px;
  max-width: 720px;
}
.asks ul { list-style: none; padding: 0; }
.asks li {
  padding: 14px 0 14px 30px;
  border-bottom: 1px solid var(--card-border);
  position: relative;
  font-size: 16px; color: var(--text); line-height: 1.55;
}
.asks li:last-child { border-bottom: none; }
.asks li::before {
  content: '→'; color: var(--accent); font-weight: 700;
  position: absolute; left: 0; top: 14px; line-height: 1.55;
}
/* Footnote markers inside these lists stay small and inline. */
.asks li sup.cite { font-size: 10px; font-weight: 600; }

/* ============ Consequences ============ */
.cons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  max-width: 880px;
  margin: 24px 0;
}
.cons div {
  background: var(--alt);
  border-left: 3px solid var(--accent);
  padding: 14px 18px;
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
}

/* ============ Timeline / Bill tracker ============
 * Inspired by originui-vue.com/timeline patterns.
 * Desktop: horizontal stepper with connecting line.
 * Mobile: vertical timeline with dots on a left rail. */
.tracker {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 32px 0 16px;
}
.t-stage {
  text-align: center;
  padding: 0 8px;
  position: relative;
}
.t-stage .dot {
  width: 18px; height: 18px; border-radius: 50%;
  margin: 0 auto 16px;
  background: var(--card-border);
  position: relative; z-index: 2;
  border: 3px solid var(--bg);
  transition: background-color .2s;
}
.section.band .t-stage .dot { border-color: var(--band-bg); }
.t-stage::after {
  content: '';
  position: absolute;
  top: 7px;
  left: 50%;
  width: 100%;
  height: 4px;
  background: var(--card-border);
  z-index: 1;
}
.t-stage:last-child::after { display: none; }
.t-stage.done .dot,
.t-stage.current .dot { background: var(--accent); }
.t-stage.done::after { background: var(--accent); }
.t-stage .lbl {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.section.band .t-stage .lbl { color: var(--band-text); }
.t-stage.current .lbl { color: var(--accent); }
.section.band .t-stage.current .lbl { color: var(--band-accent); }
.t-stage .sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.section.band .t-stage .sub { color: var(--band-muted); }

/* ============ Form / Letter tool ============ */
.form-card {
  background: var(--bg);
  border: 1px solid var(--text);
  border-radius: 6px;
  padding: 28px;
  max-width: 460px;
}
.form-card-wide {
  max-width: 600px;
}
.form-card .step-ind {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.form-card label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}
.form-card input[type=text],
.form-card input[type=email],
.form-card textarea {
  width: 100%;
  border: 1px solid var(--input-border);
  padding: 12px 14px;
  font-size: 15px; font-family: inherit;
  border-radius: 4px;
  margin-bottom: 14px;
  background: var(--bg); color: var(--text);
}
.form-card input:focus,
.form-card textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.form-card input.is-invalid,
.form-card textarea.is-invalid { border-color: var(--accent); background: var(--error-bg); }
.form-card textarea { min-height: 360px; resize: vertical; font-size: 14px; line-height: 1.7; }
.form-card .note {
  font-size: 12px; color: var(--muted);
  text-align: center; margin-top: 12px;
}
.form-row {
  display: flex; gap: 8px; margin-bottom: 14px;
}
.form-row input { margin-bottom: 0 !important; }
.form-card .form-error {
  background: var(--error-bg);
  color: var(--error-text);
  border: 1px solid var(--accent);
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 13px;
  margin-bottom: 12px;
}
.form-card .checkbox-row {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 14px 0 0;
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.5;
  cursor: pointer;
}
.form-card .checkbox-row input[type=checkbox] {
  width: 18px; height: 18px;
  accent-color: var(--accent);
  margin-top: 2px;
  flex-shrink: 0;
}
.mp-info {
  background: var(--alt);
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--accent);
  padding: 14px 18px;
  border-radius: 4px;
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.55;
  color: var(--text);
}
.mp-info strong { font-size: 16px; }
.thanks-card {
  text-align: center;
  background: var(--bg);
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 36px 28px;
  max-width: 520px;
  margin: 0 auto;
}
.thanks-card .check {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 16px;
}
.thanks-card h3 { font-size: 24px; margin-bottom: 10px; }

/* progress */
.progress-line {
  display: flex; justify-content: space-between;
  font-size: 13px; color: var(--muted); margin-bottom: 8px;
}
.progress-line strong { color: var(--text); font-weight: 700; }
.progress-bar {
  height: 8px; border-radius: 999px;
  background: var(--card-border); overflow: hidden;
}
.progress-bar .fill { height: 100%; background: var(--accent); }

/* ============ Quotes / Voices ============ */
.big-quote {
  font-size: 28px; line-height: 1.4;
  max-width: 800px; margin: 0 auto;
  text-align: center; font-weight: 500;
}
.big-quote-attr {
  text-align: center; margin-top: 16px;
  font-size: 14px; color: var(--muted);
}
.voice {
  background: var(--bg);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 26px;
  display: flex; flex-direction: column;
  height: 100%;
}
.voice .q { font-size: 17px; line-height: 1.55; color: var(--text); margin-bottom: 16px; flex: 1; }
.voice .who { font-size: 13px; color: var(--accent); font-weight: 700; letter-spacing: 0.04em; }

/* ============ News / bulletin cards ============ */
.news-card {
  background: var(--bg);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.news-card .thumb { height: 8px; background: var(--accent); }
.news-card .body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.news-card .meta {
  font-size: 12px; color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.news-card h3 { font-size: 18px; margin-bottom: 8px; line-height: 1.3; }
.news-card p { font-size: 14px; margin-bottom: 14px; flex: 1; }
.news-card .more { font-size: 13px; font-weight: 600; color: var(--accent); }

/* ============ FAQ ============ */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  border-top: 1px solid var(--card-border);
  padding: 26px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--card-border); }
.faq-q {
  font-size: 19px; font-weight: 700;
  margin-bottom: 12px; color: var(--text);
  line-height: 1.4;
}
.faq-a { font-size: 15px; color: var(--muted); line-height: 1.75; }
.faq-a p { color: var(--muted); }
.faq-a p:last-child { margin-bottom: 0; }

/* ============ Resources list ============ */
/* ============ Letter documents (Our Letters pages) ============ */
.letter-doc a { color: var(--accent); font-weight: 600; }
.letter-doc a:hover { text-decoration: underline; }

/* ============ Comparison table (International Comparison page) ============ */
.cmp-wrap { overflow-x: auto; margin-top: 28px; }
.cmp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 640px;
}
.cmp-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 14px;
  border-bottom: 2px solid var(--accent);
}
.cmp-table td {
  padding: 14px;
  border-bottom: 1px solid var(--card-border);
  vertical-align: top;
  line-height: 1.55;
  color: var(--muted);
}
.cmp-table td:first-child {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.cmp-table tr.is-canada td { background: var(--alt); }

.res-group { margin-bottom: 48px; }
.res-group h3 { font-size: 22px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--accent); }
.res-items { display: grid; gap: 12px; }
.res-item {
  background: var(--bg);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 18px 22px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  transition: border-color .15s;
}
.res-item:hover { border-color: var(--accent); }
.res-item .t { font-weight: 600; color: var(--text); font-size: 15px; }
.res-item .m { font-size: 13px; color: var(--muted); margin-top: 4px; }
.res-item .arrow { color: var(--accent); font-weight: 700; flex-shrink: 0; }

/* ============ Stat citations ============
 * Small superscript markers that link to a per-page Sources list. */
sup.cite {
  font-size: 10px;
  font-weight: 700;
  line-height: 0;
  vertical-align: super;
  margin-left: 1px;
  white-space: nowrap;
}
sup.cite a { color: var(--accent); text-decoration: none; }
sup.cite a:hover { text-decoration: underline; }
.stat-card .l sup.cite { margin-left: 2px; }
.section.band sup.cite a { color: var(--band-accent); }
.voice sup.cite a { color: var(--band-accent); }

.page-sources {
  max-width: 820px;
  margin: 40px auto 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--card-border);
}
.page-sources h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--soft);
  margin: 0 0 12px;
}
.page-sources ol { margin: 0; padding-left: 20px; }
.page-sources li {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin: 6px 0;
}
.page-sources li[id] { scroll-margin-top: 90px; }
.page-sources a { color: var(--muted); text-decoration: underline; }
.page-sources a:hover { color: var(--accent); }
.page-sources .pending { color: var(--soft); font-style: italic; }

/* Section-local sources note (sits at the foot of the section that cites it) */
.src-note {
  max-width: 860px;
  margin: 30px auto 0;
  padding-top: 14px;
  border-top: 1px solid var(--card-border);
}
.src-note h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--soft);
  margin: 0 0 8px;
}
.src-note ol { margin: 0; padding-left: 18px; }
.src-note li {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin: 4px 0;
}
.src-note li[id] { scroll-margin-top: 90px; }
.src-note a { color: var(--muted); text-decoration: underline; }
.src-note a:hover { color: var(--accent); }
.src-note .pending { color: var(--soft); font-style: italic; }
.section.band .src-note { border-color: rgba(255,255,255,.18); }
.section.band .src-note li,
.section.band .src-note a { color: var(--band-muted); }

/* Resources hub - persona cards */
.persona-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.persona {
  background: var(--bg);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 28px;
  display: flex; flex-direction: column;
  transition: border-color .15s;
}
.persona:hover { border-color: var(--accent); }
.persona .p-tag {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}
.persona h3 { font-size: 20px; margin-bottom: 10px; }
.persona p { font-size: 14px; margin-bottom: 18px; flex: 1; }
.persona .more { font-size: 14px; color: var(--accent); font-weight: 600; }

/* Help / addiction crisis box */
.crisis-box {
  background: var(--text);
  color: #FFF;
  border-radius: 6px;
  padding: 28px 32px;
  margin: 32px 0;
}
.crisis-box h3 { color: #FFF; margin-bottom: 8px; }
.crisis-box p { color: #B4B4BA; margin-bottom: 6px; font-size: 15px; }
.crisis-box p strong { color: #FFF; }
.crisis-box .number { font-size: 28px; font-weight: 700; color: #FFF; }
.crisis-box a { color: var(--accent); font-weight: 600; }

/* ============ Committee ============ */
.committee-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.member {
  background: var(--bg);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 18px 20px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}
.member .accolade {
  display: block;
  margin-top: 5px;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
}
.member .accolade.pending { font-style: italic; color: var(--soft); }

/* ============ Letter preview ============ */
.letter-preview {
  background: var(--bg);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 32px 36px;
  max-width: 720px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
}
.letter-preview p { color: var(--text); font-size: 15px; margin-bottom: 14px; }
.letter-preview .sign { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--card-border); font-style: italic; color: var(--muted); font-size: 14px; }

/* ============ Footer ============ */
footer.site {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 64px 0 28px;
}
footer.site h4 {
  color: #FFF; font-size: 13px; font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.1em; text-transform: uppercase;
}
footer.site a { color: var(--footer-text); display: block; padding: 5px 0; font-size: 14px; }
footer.site a:hover { color: #FFF; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid #2C2C2A;
  margin-bottom: 24px;
}
.footer-brand .tagline {
  font-size: 19px; font-weight: 700;
  color: #FFF; margin-bottom: 12px;
  line-height: 1.3;
}
.footer-brand p {
  color: var(--footer-text);
  font-size: 13px; line-height: 1.6;
  margin-bottom: 14px;
}
.footer-brand .ftr-cta {
  display: inline-block;
  background: var(--accent);
  color: #FFF;
  padding: 10px 18px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  margin-top: 4px;
}
.footer-bottom {
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  font-size: 12px;
  align-items: center;
}
.footer-bottom .socials { display: flex; gap: 18px; }
.footer-bottom .socials a { display: inline; padding: 0; }

/* ============ Page header (non-home) ============ */
.page-hero {
  background: var(--alt);
  padding: 64px 0 56px;
  border-bottom: 4px solid var(--accent);
}
.page-hero .eyebrow { color: var(--accent); }
.page-hero .h1 { max-width: 820px; margin-bottom: 18px; }
.page-hero .lead { max-width: 680px; }
.breadcrumb {
  font-size: 13px; color: var(--muted);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 8px; opacity: 0.5; }

/* ============ Closing CTA band ============ */
.closing {
  background: var(--text);
  color: #FFF;
  padding: 72px 0;
  text-align: center;
}
.closing h2 { color: #FFF; max-width: 720px; margin: 0 auto 18px; }
.closing p { color: #B4B4BA; max-width: 600px; margin: 0 auto 28px; }
.closing .accent { color: var(--accent); }

/* ============ Utilities ============ */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }
.center { text-align: center; }
.max-680 { max-width: 680px; }
.max-720 { max-width: 720px; }
.max-820 { max-width: 820px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.hidden { display: none !important; }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  /* Belt-and-suspenders: prevent any 100vw / scrollbar overflow */
  html, body { overflow-x: hidden; }

  /* Generous container padding on tablet so the header has clear breathing room.
   * At 800–1024px viewport widths, the container fills the screen, so this
   * padding IS the visual gutter from the edge of the device. */
  .container, .container-narrow { padding: 0 64px; }

  /* ----- Top bar: just logo + hamburger ----- */
  .nav-row {
    flex-wrap: nowrap;
    gap: 12px;
    min-height: 72px;
    /* Longhand only — see base .nav-row note. Shorthand here would
     * also kill the container's horizontal padding. */
    padding-top: 16px;
    padding-bottom: 16px;
    align-items: center;
  }
  .logo {
    flex: 1 1 auto;
    min-width: 0;
    height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
  }
  .logo .mark {
    font-size: 24px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    height: 28px;
  }
  /* Hamburger / close icon.
   * IMPORTANT: must be display:block (not flex) so the span margins
   * collapse vertically — the rotate(45deg) + translateY(7px) on the
   * outer spans only crosses at center when consecutive span centers
   * are 7px apart, which requires margin collapse. With display:flex
   * the margins don't collapse and the X renders as two parallel bars
   * instead of a proper X (looks like a half-clipped icon). */
  .nav-toggle {
    display: block;
    flex-shrink: 0;
    margin-left: auto;
    width: 44px;
    height: 44px;
    padding: 9px 11px;
  }
  /* Hide desktop CTAs from the top bar — they live inside the slideout */
  .nav-cta { display: none; }

  /* ----- Slideout: positioned absolute against .site (its sticky
   * positioning context). Using left:0 right:0 — NOT 100vw — so the
   * slideout matches body width exactly (no scrollbar overflow). ----- */
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    z-index: 90;
    display: block;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    border-top: 0;
    transition: max-height .35s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow .25s ease;
  }
  .nav-links.open {
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    padding: 16px 64px 40px;
    border-top: 1px solid var(--card-border);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.08);
  }

  /* Single-column top-level items — comfortable, not cavernous */
  .nav-links > a {
    display: block;
    padding: 20px 4px;
    border-bottom: 1px solid var(--card-border);
    font-size: 17px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.3;
  }
  .nav-links > a.current { color: var(--accent); }

  /* Dropdown groups become accordion sections */
  .nav-has-dropdown {
    display: block;
    width: 100%;
    border-bottom: 1px solid var(--card-border);
  }
  .nav-dd-trigger {
    padding: 20px 4px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 17px;
    font-weight: 500;
    color: var(--text);
    background: transparent;
    border: 0;
    text-align: left;
    line-height: 1.3;
    cursor: pointer;
  }
  .nav-dd-trigger::after {
    margin-left: auto;
    border-top: 5px solid currentColor;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    opacity: 0.55;
    transition: transform .25s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .nav-has-dropdown.open .nav-dd-trigger::after {
    transform: rotate(180deg);
    opacity: 1;
  }

  /* Submenu — slide-down with easing */
  .nav-dropdown {
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
  }
  .nav-has-dropdown.open .nav-dropdown {
    /* Tall enough for the Home section list and the Resources menu with
     * its Publications submenu expanded */
    max-height: 1200px;
    transition: max-height .35s cubic-bezier(0.4, 0, 0.2, 1);
    padding-bottom: 8px;
  }
  .nav-dropdown a {
    display: block;
    padding: 16px 4px 16px 24px;
    font-size: 15px;
    color: var(--muted);
    background: transparent;
    border-top: 1px solid var(--card-border);
    font-weight: 400;
    line-height: 1.4;
  }
  .nav-dropdown a:first-of-type { border-top: 1px solid var(--card-border); }
  .nav-dropdown a.current { color: var(--accent); }
  .nav-dropdown .dd-desc { display: none; }

  /* Nested submenu becomes a second-level accordion */
  .dd-has-sub { position: static; width: 100%; }
  .dd-sub-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 4px 16px 24px;
    font-size: 15px;
    font-weight: 400;
    color: var(--muted);
    background: transparent;
    border: 0;
    border-top: 1px solid var(--card-border);
    text-align: left;
    line-height: 1.4;
    cursor: pointer;
  }
  .dd-sub-trigger:hover { background: transparent; }
  .dd-has-sub.current > .dd-sub-trigger { color: var(--accent); }
  .dd-sub-trigger::after {
    position: static;
    margin-left: auto;
    border-top: 5px solid currentColor;
    border-bottom: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    opacity: 0.55;
    transition: transform .25s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .dd-has-sub.open > .dd-sub-trigger::after { transform: rotate(180deg); opacity: 1; }
  .dd-submenu {
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0;
    background: transparent;
    opacity: 1;
    visibility: visible;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 0;
    width: 100%;
  }
  .dd-has-sub.open > .dd-submenu { max-height: 400px; }
  .dd-submenu a { padding-left: 44px; }

  /* ----- Mobile CTA section (inside slideout) ----- */
  .mobile-cta {
    display: block;
    padding: 36px 4px 8px;
  }
  .mobile-cta .btn {
    display: block;
    width: 100%;
    margin-bottom: 12px;
    padding: 16px 22px;
    font-size: 15px;
    text-align: center;
  }
  .mobile-cta .lang-tog {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 28px 0 8px;
    font-size: 15px;
    margin: 0;
  }

  /* Typography */
  h1, .h1 { font-size: 42px; }
  h2, .h2 { font-size: 30px; }
  .lead { font-size: 17px; }
  .section { padding: 56px 0; }
  .hero { padding: 44px 0; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .big-quote { font-size: 22px; }

  /* Timeline: switch to vertical layout */
  .tracker {
    grid-template-columns: 1fr;
    row-gap: 0;
    max-width: 480px;
    margin: 24px auto;
  }
  .t-stage {
    display: grid;
    grid-template-columns: 32px 1fr;
    grid-template-rows: auto auto;
    column-gap: 18px;
    row-gap: 4px;
    text-align: left;
    padding: 0 0 28px 0;
  }
  .t-stage:last-child { padding-bottom: 0; }
  .t-stage .dot {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 16px;
    height: 16px;
    margin: 6px auto 0;
    align-self: start;
  }
  .t-stage::after {
    content: '';
    position: absolute;
    top: 26px;
    left: 16px;
    transform: translateX(-50%);
    width: 3px;
    height: calc(100% - 22px);
    background: var(--card-border);
    z-index: 1;
    display: block;
  }
  .t-stage:last-child::after { display: none; }
  .t-stage.done::after { background: var(--accent); }
  .t-stage .lbl {
    grid-column: 2;
    grid-row: 1;
    font-size: 16px;
    line-height: 1.3;
  }
  .t-stage .sub {
    grid-column: 2;
    grid-row: 2;
    font-size: 13px;
    margin-top: 0;
  }
}

@media (max-width: 560px) {
  .container, .container-narrow { padding: 0 24px; }
  .nav-links.open { padding: 16px 24px 40px; }
  h1, .h1 { font-size: 34px; }
  h2, .h2 { font-size: 26px; }
  .section { padding: 44px 0; }
  .hero { padding: 36px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-cta .btn-sm { padding: 8px 12px; font-size: 12px; }
  .nav-cta { gap: 6px; }
  .lang-tog { display: none; }
  .closing { padding: 56px 0; }
  .asks { padding: 22px 22px; }
  .form-card { padding: 22px; }
  .letter-preview { padding: 22px 22px; }
}

/* ============ Letter form language toggle ============ */
.letter-lang {
  display: inline-flex;
  gap: 0;
  border: 1px solid var(--input-border);
  border-radius: 999px;
  padding: 3px;
  margin-bottom: 16px;
}
.ll-btn {
  border: 0;
  background: transparent;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  color: var(--muted);
  line-height: 1.2;
}
.ll-btn.on { background: var(--text); color: #FFF; }
.ll-btn:not(.on):hover { color: var(--text); }

/* ============ Home — "What you can do" ============ */
.do-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.do-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-top: 4px solid var(--accent);
  border-radius: 6px;
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.do-card .do-n {
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.12em; color: var(--accent);
  margin-bottom: 12px;
}
.do-card h3 { font-size: 24px; margin-bottom: 10px; }
.do-card p { flex: 1; margin-bottom: 20px; }

/* ============ In-the-news cards (on dark band) ============ */
.news-card-dark { background: #1F1F26; border-color: #2C2C32; }
.news-card-dark h3 { color: #FFF; }
.news-card-dark p { color: var(--band-muted); }
.section.band .news-card-dark .meta { color: var(--band-accent); }
.section.band .news-card-dark .more { color: var(--band-accent); }
.section.band .news-card-dark .more:hover { color: #FFF; }

/* ============ One-pagers ============ */
.op-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.op-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
}
.op-card h3 { font-size: 17px; margin-bottom: 8px; line-height: 1.3; }
.op-card p { font-size: 14px; margin-bottom: 14px; flex: 1; }
.op-soon {
  align-self: flex-start;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
  background: var(--alt);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 4px 10px;
}

/* ============ Director / officer bios ============ */
.bio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.bio {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 28px;
}
.bio h3 { font-size: 20px; margin-bottom: 2px; }
.bio .bio-role {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.bio p { font-size: 14px; margin-bottom: 0; }

/* ============ Crisis helpline numbers ============ */
.crisis-lines {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 6px;
}
.crisis-lines a {
  display: flex; flex-direction: column; gap: 3px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 6px;
  padding: 14px 16px;
}
.crisis-lines a:hover { border-color: var(--accent); }
.crisis-lines .number { font-size: 26px; font-weight: 700; color: #FFF; line-height: 1.1; }
.crisis-lines .lbl { font-size: 13px; color: #B4B4BA; }

/* ============ History — vertical timeline ============
 * Inspired by originui-vue.com/timeline: a left rail with dots
 * and a content block per entry. */
.timeline { list-style: none; position: relative; padding: 0; margin: 0; }
.timeline::before {
  content: '';
  position: absolute;
  left: 7px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--card-border);
}
.tl-item { position: relative; padding: 0 0 40px 40px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-marker {
  position: absolute;
  left: 0; top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
  z-index: 1;
}
.tl-item.tl-current .tl-marker {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(200,16,46,0.15);
}
.tl-date {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.tl-content h3 { font-size: 22px; margin-bottom: 10px; line-height: 1.25; }
.tl-content > p:last-child { margin-bottom: 0; }

@media (max-width: 560px) {
  .do-card { padding: 24px; }
  .bio { padding: 22px; }
  .tl-content h3 { font-size: 19px; }
}

/* One-pager clusters (The Issue) — grouped to match the header nav */
.op-cluster { margin-top: 36px; }
.op-cluster:first-of-type { margin-top: 0; }
.op-cluster-title { font-size: 20px; margin-bottom: 16px; }
.op-cluster-title a { color: inherit; text-decoration: none; }
.op-cluster-title a:hover { color: var(--accent); }
