:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-soft: #eef0f3;
  --text: #17191d;
  --text-soft: #616771;
  --line: #d9dde3;
  --line-dark: #b9c0c9;
  --accent: #1f4f8a;
  --accent-soft: #e8f0f9;
  --warning: #8a5a16;
  --warning-bg: #fff4d9;
  --good: #25633d;
  --good-bg: #e8f4ec;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(20, 30, 45, 0.07);
  --shell: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

button,
select {
  font: inherit;
}

a {
  color: inherit;
}

.shell {
  width: min(
    calc(100% - 40px),
    var(--shell)
  );
  margin-inline: auto;
}

.narrow {
  max-width: 820px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.05;
}

.brand-main {
  font-size: 1.02rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.brand-sub {
  margin-top: 5px;
  color: var(--text-soft);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}

.header-nav {
  display: flex;
  gap: 22px;
  color: var(--text-soft);
  font-size: 0.86rem;
}

.header-nav a {
  text-decoration: none;
}

.header-nav a:hover {
  color: var(--text);
}

.hero {
  padding: 78px 0 58px;
  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      var(--bg) 100%
    );
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.11em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 18px;
  font-size: clamp(
    2.4rem,
    6vw,
    5rem
  );
  line-height: 0.98;
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(
    1.8rem,
    3vw,
    2.7rem
  );
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.hero-copy {
  max-width: 760px;
  margin-bottom: 30px;
  color: var(--text-soft);
  font-size: 1.08rem;
}

.status-banner {
  margin: 24px 0;
  padding: 15px 17px;
  border: 1px solid #e4c783;
  border-radius: 10px;
  background: var(--warning-bg);
  color: #68420c;
  font-size: 0.9rem;
}

.summary-grid {
  display: grid;
  grid-template-columns:
    repeat(
      4,
      minmax(0, 1fr)
    );
  gap: 14px;
  margin-top: 34px;
}

.summary-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.summary-label {
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.summary-value {
  margin-top: 8px;
  font-size: clamp(
    1.55rem,
    3vw,
    2.2rem
  );
  font-weight: 800;
  letter-spacing: -0.035em;
}

.summary-sub {
  margin-top: 5px;
  color: var(--text-soft);
  font-size: 0.8rem;
}

.updated-at {
  margin-top: 17px;
  color: var(--text-soft);
  font-size: 0.78rem;
}

.section {
  padding: 72px 0;
}

.section-muted {
  border-block: 1px solid var(--line);
  background: var(--surface-soft);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.source-switch {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
}

.source-button {
  border: 0;
  border-radius: 8px;
  padding: 9px 12px;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
}

.source-button.active {
  background: var(--text);
  color: #fff;
}

.phrase-grid {
  display: grid;
  grid-template-columns:
    repeat(
      2,
      minmax(0, 1fr)
    );
  gap: 15px;
}

.phrase-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.phrase-card-button {
  width: 100%;
  border: 0;
  padding: 24px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.phrase-card-button:hover {
  background: #fafbfc;
}

.phrase-card-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.phrase-title {
  margin: 0;
  font-size: 1.03rem;
  font-weight: 830;
  letter-spacing: 0.025em;
}

.phrase-count {
  flex: none;
  font-size: 2rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.04em;
}

.phrase-rate {
  margin-top: 5px;
  color: var(--text-soft);
  font-size: 0.77rem;
  text-align: right;
}

.phrase-bar {
  height: 5px;
  margin: 22px 0 18px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-soft);
}

.phrase-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.phrase-stats {
  display: grid;
  grid-template-columns:
    repeat(
      3,
      minmax(0, 1fr)
    );
  gap: 10px;
}

.mini-stat-label {
  color: var(--text-soft);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mini-stat-value {
  margin-top: 2px;
  font-size: 0.87rem;
  font-weight: 750;
}

.phrase-source-split {
  margin-top: 16px;
  color: var(--text-soft);
  font-size: 0.76rem;
}

.timeline-control {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text-soft);
  font-size: 0.8rem;
}

.timeline-control select {
  min-width: 230px;
  padding: 9px 34px 9px 11px;
  border: 1px solid var(--line-dark);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text);
}

.chart-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

#timeline-chart {
  display: block;
  width: 100%;
  min-height: 260px;
}

.chart-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 14px;
  color: var(--text-soft);
  font-size: 0.76rem;
}

.coverage-grid {
  display: grid;
  grid-template-columns:
    repeat(
      2,
      minmax(0, 1fr)
    );
  gap: 16px;
  margin-top: 30px;
}

.coverage-card {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.coverage-card h3 {
  margin-bottom: 6px;
}

.coverage-description {
  margin-bottom: 20px;
  color: var(--text-soft);
  font-size: 0.86rem;
}

.coverage-metrics {
  display: grid;
  grid-template-columns:
    repeat(
      3,
      minmax(0, 1fr)
    );
  gap: 12px;
}

.coverage-number {
  font-size: 1.15rem;
  font-weight: 800;
}

.coverage-label {
  color: var(--text-soft);
  font-size: 0.7rem;
}

.coverage-range {
  margin-top: 18px;
  color: var(--text-soft);
  font-size: 0.77rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  margin-left: 7px;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  vertical-align: middle;
}

.badge-partial {
  background: var(--warning-bg);
  color: var(--warning);
}

.badge-complete {
  background: var(--good-bg);
  color: var(--good);
}

.methodology {
  color: #3c4149;
  font-size: 0.96rem;
}

.methodology p {
  margin-bottom: 17px;
}

.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.footer-inner p {
  margin: 4px 0 0;
  color: var(--text-soft);
  font-size: 0.8rem;
}

.footer-note {
  max-width: 450px;
  color: var(--text-soft);
  font-size: 0.77rem;
  text-align: right;
}

.occurrence-dialog {
  width: min(
    900px,
    calc(100vw - 30px)
  );
  max-height: min(
    860px,
    calc(100vh - 30px)
  );
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 30px 100px rgba(0,0,0,0.25);
}

.occurrence-dialog::backdrop {
  background: rgba(20,25,32,0.58);
}

.dialog-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  padding: 23px 25px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.97);
}

.dialog-header h2 {
  margin-bottom: 4px;
  font-size: 1.7rem;
}

.dialog-count {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.8rem;
}

.dialog-close {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}

.dialog-body {
  padding: 0 25px;
}

.occurrence-row {
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
}

.occurrence-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 13px;
  margin-bottom: 10px;
  color: var(--text-soft);
  font-size: 0.72rem;
}

.occurrence-context {
  margin: 0;
  line-height: 1.62;
}

.occurrence-context mark {
  padding: 1px 3px;
  border-radius: 3px;
  background: #fff0a8;
  color: inherit;
  font-weight: 750;
}

.occurrence-source {
  display: inline-block;
  margin-top: 10px;
  color: var(--accent);
  font-size: 0.75rem;
}

.dialog-footer {
  padding: 18px 25px 24px;
}

.load-more {
  width: 100%;
  padding: 11px;
  border: 1px solid var(--line-dark);
  border-radius: 9px;
  background: var(--surface);
  cursor: pointer;
  font-weight: 700;
}

.empty-state {
  padding: 35px 0;
  color: var(--text-soft);
}

@media (max-width: 900px) {
  .summary-grid {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );
  }

  .phrase-grid {
    grid-template-columns: 1fr;
  }

  .coverage-grid {
    grid-template-columns: 1fr;
  }

  .header-nav {
    display: none;
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(
      calc(100% - 28px),
      var(--shell)
    );
  }

  .hero {
    padding-top: 50px;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .source-switch {
    width: 100%;
  }

  .source-button {
    flex: 1;
  }

  .timeline-control {
    align-items: stretch;
    flex-direction: column;
  }

  .timeline-control select {
    width: 100%;
    min-width: 0;
  }

  .phrase-stats {
    grid-template-columns: 1fr 1fr;
  }

  .coverage-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-note {
    text-align: left;
  }
}


/* ==========================================================
   TRUMP WORDS V2 - PUBLIC TOPICS
   ========================================================== */

.section-copy {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--text-muted, #666);
  line-height: 1.6;
}

.section-topics {
  border-top: 1px solid var(--border, #e2e2e2);
}

.topic-grid {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.topic-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--border, #ddd);
  border-radius: 16px;
  background: var(--surface, #fff);
}

.topic-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.topic-label {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
}

.topic-open,
.topic-back {
  color: inherit;
  font-weight: 650;
  text-decoration: none;
}

.topic-open:hover,
.topic-back:hover {
  text-decoration: underline;
}

.topic-description {
  min-height: 72px;
  margin: 0;
  color: var(--text-muted, #666);
  line-height: 1.55;
}

.topic-metrics {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.topic-metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.topic-metric-value {
  font-size: clamp(
    1.35rem,
    2vw,
    1.8rem
  );
  font-weight: 760;
  line-height: 1;
}

.topic-metric-label {
  color: var(--text-muted, #666);
  font-size: 12px;
  line-height: 1.25;
}

.topic-source-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding-top: 14px;
  border-top:
    1px solid var(--border, #ddd);
  color: var(--text-muted, #666);
  font-size: 13px;
}

.topic-source-summary strong {
  margin-left: 4px;
  color: var(--text, #111);
}

.topic-method-note {
  margin: 20px 0 0;
  color: var(--text-muted, #666);
  font-size: 12px;
}


/* Topic page */

.topic-hero h1 {
  text-transform: none;
}

.topic-page-summary {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 760px;
  margin-top: 28px;
}

.topic-page-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--border, #ddd);
  border-radius: 14px;
  background: var(--surface, #fff);
}

.topic-page-stat-value {
  font-size: clamp(
    1.8rem,
    4vw,
    2.8rem
  );
  font-weight: 780;
  line-height: 1;
}

.topic-page-stat-label {
  color: var(--text-muted, #666);
  font-size: 13px;
}

.topic-source-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.topic-source-card {
  padding: 24px;
  border: 1px solid var(--border, #ddd);
  border-radius: 16px;
  background: var(--surface, #fff);
}

.topic-source-card > strong {
  display: block;
  margin-top: 16px;
  font-size: clamp(
    2rem,
    5vw,
    3.4rem
  );
  line-height: 1;
}

.topic-source-card > span,
.topic-source-card > p:last-child {
  color: var(--text-muted, #666);
}

.topic-chart-panel {
  min-height: 340px;
}

#topic-timeline-chart {
  display: block;
  width: 100%;
  max-width: 100%;
}

.chart-empty {
  color: var(--text-muted, #666);
}

.methodology-card {
  max-width: 840px;
  padding: 24px;
  border: 1px solid var(--border, #ddd);
  border-radius: 16px;
  background: var(--surface, #fff);
}

.methodology-card p {
  margin: 0 0 16px;
  line-height: 1.7;
}

.methodology-card p:last-child {
  margin-bottom: 0;
}

.site-footer {
  border-top: 1px solid var(--border, #ddd);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--text-muted, #666);
  font-size: 13px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: inherit;
}


@media (max-width: 900px) {

  .topic-grid {
    grid-template-columns: 1fr;
  }

  .topic-description {
    min-height: 0;
  }

}


@media (max-width: 640px) {

  .topic-card {
    padding: 20px;
  }

  .topic-metrics {
    grid-template-columns: 1fr;
  }

  .topic-page-summary {
    grid-template-columns: 1fr;
  }

  .topic-source-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
  }

}

/* ==========================================================
   TOPIC ANALYTICS V2
   ========================================================== */

.analytics-topic-hero {
  padding-bottom: 3rem;
}

.analytics-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
}

.analytics-window-switch,
.analytics-control-group {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.analytics-window-switch button,
.analytics-control-group button {
  border: 1px solid var(--border, #d9dde3);
  background: transparent;
  color: inherit;
  border-radius: 999px;
  padding: .55rem .9rem;
  font: inherit;
  font-size: .86rem;
  cursor: pointer;
}

.analytics-window-switch button:hover,
.analytics-control-group button:hover {
  border-color: currentColor;
}

.analytics-window-switch button.active,
.analytics-control-group button.active {
  background: var(--text, #111827);
  color: var(--background, #fff);
  border-color: var(--text, #111827);
}

.analytics-activity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.analytics-activity-card {
  border: 1px solid var(--border, #d9dde3);
  border-radius: 18px;
  padding: 1.25rem;
  background: var(--background, #fff);
  min-width: 0;
}

.analytics-card-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.analytics-card-subtitle {
  margin: .25rem 0 0;
  color: var(--text-muted, #667085);
  font-size: .9rem;
}

.analytics-through {
  color: var(--text-muted, #667085);
  font-size: .78rem;
  white-space: nowrap;
}

.analytics-primary-number {
  display: flex;
  flex-direction: column;
  margin: 1.3rem 0;
}

.analytics-primary-number strong {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -.04em;
}

.analytics-primary-number span {
  margin-top: .4rem;
  color: var(--text-muted, #667085);
  font-size: .84rem;
}

.analytics-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
}

.analytics-card-grid > div {
  padding-top: .75rem;
  border-top: 1px solid var(--border, #e4e7ec);
}

.analytics-card-grid strong,
.analytics-card-grid span {
  display: block;
}

.analytics-card-grid strong {
  font-size: 1.05rem;
}

.analytics-card-grid span {
  margin-top: .15rem;
  color: var(--text-muted, #667085);
  font-size: .75rem;
  line-height: 1.3;
}

.analytics-change {
  font-variant-numeric: tabular-nums;
}

.analytics-cutoff-note {
  margin-top: 1rem;
  border-left: 3px solid var(--border-strong, #98a2b3);
  padding: .85rem 1rem;
  background: rgba(127, 127, 127, .05);
  color: var(--text-muted, #667085);
  font-size: .86rem;
  line-height: 1.55;
}

.analytics-control-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .85rem;
  margin-bottom: 1rem;
}

.analytics-local-mode {
  margin: -.15rem 0 1.15rem;
}

.analytics-chart-panel {
  min-height: 390px;
}

.analytics-chart-panel canvas {
  display: block;
  width: 100%;
  height: 320px;
}

.analytics-chart-meta {
  min-height: 1.4rem;
  margin-bottom: .5rem;
  color: var(--text-muted, #667085);
  font-size: .84rem;
}

.analytics-accessible-summary {
  margin: .65rem 0 0;
  color: var(--text-muted, #667085);
  font-size: .78rem;
}

.analytics-two-column {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 2rem;
}

.analytics-peak-list {
  display: grid;
  gap: .65rem;
}

.analytics-peak-card {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: .8rem;
  align-items: center;
  padding: .85rem 0;
  border-bottom: 1px solid var(--border, #d9dde3);
}

.analytics-peak-card h3,
.analytics-peak-card p {
  margin: 0;
}

.analytics-peak-card h3 {
  font-size: .95rem;
}

.analytics-peak-card p {
  margin-top: .2rem;
  color: var(--text-muted, #667085);
  font-size: .82rem;
}

.analytics-peak-rank {
  font-size: 1.2rem;
  font-variant-numeric: tabular-nums;
}

.analytics-source-mix {
  display: grid;
  gap: 1rem;
}

.analytics-source-mix-card {
  border: 1px solid var(--border, #d9dde3);
  border-radius: 14px;
  padding: 1rem;
  background: var(--background, #fff);
}

.analytics-source-mix-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.analytics-source-bar {
  height: 8px;
  margin: .7rem 0;
  border-radius: 999px;
  background: rgba(127, 127, 127, .12);
  overflow: hidden;
}

.analytics-source-bar span {
  display: block;
  height: 100%;
  background: currentColor;
  border-radius: inherit;
}

.analytics-source-mix-card p {
  margin: 0;
  color: var(--text-muted, #667085);
  font-size: .82rem;
}

.analytics-heatmap-scroll {
  max-width: 100%;
  overflow-x: auto;
  padding: .5rem 0 1rem;
}

.analytics-heatmap {
  display: grid;
  grid-template-rows: repeat(7, 12px);
  grid-auto-columns: 12px;
  gap: 4px;
  min-height: 108px;
  width: max-content;
}

.analytics-heat-cell,
.analytics-heatmap-legend i {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: rgba(127, 127, 127, .08);
}

.analytics-heat-cell[data-level="1"],
.analytics-heatmap-legend i[data-level="1"] {
  background: rgba(17, 24, 39, .20);
}

.analytics-heat-cell[data-level="2"],
.analytics-heatmap-legend i[data-level="2"] {
  background: rgba(17, 24, 39, .40);
}

.analytics-heat-cell[data-level="3"],
.analytics-heatmap-legend i[data-level="3"] {
  background: rgba(17, 24, 39, .65);
}

.analytics-heat-cell[data-level="4"],
.analytics-heatmap-legend i[data-level="4"] {
  background: rgba(17, 24, 39, .92);
}

.analytics-heatmap-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  color: var(--text-muted, #667085);
  font-size: .75rem;
}

.analytics-reference-list {
  display: grid;
  gap: 1rem;
}

.analytics-reference {
  border: 1px solid var(--border, #d9dde3);
  border-radius: 16px;
  padding: 1.2rem;
  background: var(--background, #fff);
}

.analytics-reference-latest {
  padding: 1.4rem;
}

.analytics-reference-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
  color: var(--text-muted, #667085);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.analytics-reference-meta > *:not(:last-child)::after {
  content: "·";
  margin-left: .45rem;
}

.analytics-reference-kind {
  font-weight: 700;
}

.analytics-reference-attribution {
  margin: .65rem 0 0;
  color: var(--text-muted, #667085);
  font-size: .82rem;
  line-height: 1.45;
}

.analytics-reference-attribution strong {
  color: var(--text, #111827);
}

.analytics-reference h3 {
  margin: .65rem 0 .45rem;
  font-size: 1.05rem;
  line-height: 1.35;
}

.analytics-reference p {
  margin: 0;
  max-width: 78ch;
  color: var(--text-muted, #667085);
  line-height: 1.6;
}

.analytics-reference-link {
  display: inline-block;
  margin-top: .75rem;
  font-weight: 700;
}

.analytics-method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.analytics-method-grid .methodology-card h3 {
  margin-top: 0;
}

.analytics-method-grid .methodology-card p {
  margin-bottom: 0;
}

@media (max-width: 920px) {
  .analytics-activity-grid {
    grid-template-columns: 1fr;
  }

  .analytics-two-column {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .analytics-heading-row {
    display: block;
  }

  .analytics-window-switch {
    margin-top: 1rem;
  }

  .analytics-control-row {
    display: grid;
    justify-content: stretch;
  }

  .analytics-control-group {
    width: 100%;
  }

  .analytics-control-group button {
    flex: 1 1 auto;
  }

  .analytics-card-top {
    display: block;
  }

  .analytics-through {
    display: inline-block;
    margin-top: .5rem;
  }

  .analytics-method-grid {
    grid-template-columns: 1fr;
  }

  .analytics-chart-panel {
    min-height: 360px;
  }

  .analytics-chart-panel canvas {
    height: 300px;
  }
}

@media (max-width: 430px) {
  .analytics-card-grid {
    grid-template-columns: 1fr 1fr;
  }

  .analytics-activity-card {
    padding: 1rem;
  }

  .analytics-control-group button {
    padding: .5rem .65rem;
    font-size: .78rem;
  }

  .analytics-reference {
    padding: 1rem;
  }

  .analytics-primary-number strong {
    font-size: 2.25rem;
  }
}


/* =========================================================
   TRUMP_WORDS_V333_CANONICAL_HOME_FOOTER
   Canonical footer = homepage footer everywhere
   ========================================================= */

.v3-footer {
    border-top: 1px solid var(--border, #d9dde3);
    padding: 2rem 0;
}

.v3-footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.v3-footer-brand {
    max-width: 540px;
}

.v3-footer-brand strong {
    display: block;
}

.v3-footer p {
    max-width: 540px;
    margin: .45rem 0 0;
    color: var(--text-muted, #667085);
    line-height: 1.55;
}

.v3-footer-contact {
    display: inline-block;
    margin-top: .9rem;
    color: inherit;
    text-decoration: underline;
    text-underline-offset: .18em;
}

.v3-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .7rem 1rem;
}

.v3-footer-links a {
    color: inherit;
}

@media (max-width: 720px) {

    .v3-footer-grid {
        display: block;
    }

    .v3-footer-links {
        justify-content: flex-start;
        margin-top: 1.5rem;
    }
}

