/* =========================
   Base & Header Navigation
========================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #0a0e1a;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  z-index: 1000;
  padding: 12px 24px;
}

:root{
  --pp-bg: #f6f7f9;
  --pp-text: #0b1220;
  --pp-muted: rgba(11,18,32,0.72);
  --pp-accent: #2f9cff;   /* your blue */
  --pp-accent-soft: #5dd3ff;
  --pp-border: rgba(11,18,32,0.12);
}


/* POLITICO-Pro style band */
.pp-band{
  background: linear-gradient(rgba(246, 247, 249, 0.85), rgba(246, 247, 249, 0.85)), url('images/party.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--pp-text);
  padding: 70px 24px;
  margin-top: 36px;
}

.pp-wrap{
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: start;
}

.pp-kicker{
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(11,18,32,0.6);
  margin-bottom: 10px;
}

.pp-title{
  font-family: "Source Serif 4", serif;
  font-size: clamp(2.1rem, 3.2vw, 3.1rem);
  line-height: 1.06;
  margin: 0 0 16px 0;
  font-weight: 700;
}



.pp-lede{
  font-family: "Source Sans 3", sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 0 14px 0;
  color: var(--pp-muted);
  max-width: 62ch;
}

.pp-cta-row{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.pp-btn{
  display: inline-block;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-family: "Source Sans 3", sans-serif;
  background: var(--pp-accent);
border-color: var(--pp-accent);
color: var(--pp-accent);
  transition: transform 160ms ease, filter 160ms ease;
}
.pp-btn:hover{ transform: translateY(-2px); filter: brightness(0.96); }

.pp-btn--ghost{
  background: transparent;
  color: var(--pp-text);
  border: 1px solid var(--pp-border);
}
.pp-btn--ghost:hover{ filter: none; background: rgba(11,18,32,0.04); }

/* Metrics grid */
.pp-metrics{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 24px 10px;
}

.pp-metric{
  border-left: 1px solid var(--pp-border);
  padding-left: 16px;
}

.pp-num{
  font-family: "Source Sans 3", sans-serif;
  font-weight: 900;
  color: var(--pp-red);
  font-size: clamp(2.6rem, 4.6vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.pp-label{
  font-family: "Source Sans 3", sans-serif;
  font-size: 1.05rem;
  font-weight: 650;
  color: #2f9cff; /* BLUE accent */

}

/* Responsive */
@media (max-width: 980px){
  .pp-wrap{ grid-template-columns: 1fr; }
  .pp-metrics{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px){
  .pp-metrics{ grid-template-columns: 1fr; }
}

.site-header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.brand {
  text-decoration: none;
  color: #8fd3ff;
  font-size: 1.4rem;
  font-weight: 900;
}

.brand-main {
  font-family: "Source Serif 4", serif;
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: #eef4ff;
}

.nav-links {
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: center;
}

.site-header .nav-links a{
  font-family: "Source Sans 3", sans-serif; /* fix font name */
  color: #cfe9ff;
  text-decoration: none;
  font-size: 1.2rem;   /* pick your size */
  font-weight: 600;
  opacity: 0.88;
  transition: color 0.2s ease, opacity 0.2s ease;
}


.nav-links a:hover,
.nav-links a.active {
  color: #8fd3ff;
}

body {
    margin: 0;
    padding: 90px 20px 40px;
    background-color: #0a0e27;
    color: #e0e0e0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
}

h1 {
  text-align: center;
}

.main-content {
    max-width: 80vw;
    margin: 0 auto;
}

html {
  scroll-behavior: smooth;
}

/* Hero / Landing styles */
.hero-container {
    display: flex;
    gap: 24px;
    max-width: 80vw;
    margin: 22px auto 36px auto;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-container-data {
    display: flex;
    gap: 24px;
    max-width: 80vw;
    margin: 22px auto 36px auto;
    flex-wrap: wrap;
    justify-content: center;
}

.hero {
    position: relative;
    max-width: 80vw;
    height: 500px;
    margin: 70px auto 36px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(2,6,23,0.5);
    background: linear-gradient(180deg, rgba(10,14,39,0.6), rgba(10,14,39,0.75));
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-card {
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    margin: 0;
    min-height: 450px;
}

.hero-card-data {
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    margin: 0;
    min-height: 450px;
}

.hero-buttons {
  margin-top: 12px;
}

.hero-buttons-data {
  margin-top: 12px;
}

.hero-bg-wrap { position: absolute; inset: 0; z-index: 0; }
.hero-bg { width: 100%; height: 100%; object-fit: cover; object-position: center 10%; display: block; filter: brightness(0.6) contrast(1.05); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,12,36,0.45) 10%, rgba(8,12,36,0.7) 65%); }

.hero-bg-wrap-data { position: absolute; inset: 0; z-index: 0; }
.hero-bg-data { width: 100%; height: 100%; object-fit: cover; object-position: center 10%; display: block; filter: brightness(0.6) contrast(1.05); }
.hero-overlay-data { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,12,36,0.45) 10%, rgba(8,12,36,0.7) 65%); }

.hero-inner {
    position: relative;
    z-index: 1;
    padding: 60px 30px;
    color: #e9eef8;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.hero-inner-data {
    position: relative;
    z-index: 1;
    padding: 40px 30px;
    color: #e9eef8;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.hero-eyebrow { color: #9fb0d9; font-size: 0.85rem; letter-spacing: 1px; margin-bottom: 10px; } 
.hero-title { font-family: "Source Serif 4", serif; font-size: 3rem; line-height: 1.08; margin: 0 0 12px 0; font-weight: 800; color: #ffffff; word-wrap: break-word; overflow-wrap: break-word; }
.hero-desc {
  color: rgba(255,255,255,0.9);
  font-family: "Source Serif 4", serif;
  font-size: 1.35rem;     /* bigger */
  line-height: 1.55;      /* more readable */
  max-width: 100%;        /* spread across the hero */
  margin: 45px 0 0;
  font-weight: 500;
}

/* Data page hero variants - smaller fonts */
.hero-eyebrow-data { color: #9fb0d9; font-size: 0.85rem; letter-spacing: 1px; margin-bottom: 10px; }
.hero-title-data { font-family: "Source Serif 4", serif; font-size: 2rem; line-height: 1.08; margin: 0 0 12px 0; font-weight: 800; color: #ffffff; word-wrap: break-word; overflow-wrap: break-word; }
.hero-desc-data {
  color: rgba(255,255,255,0.9);
  font-family: "Source Serif 4", serif;
  font-size: 1rem;
  line-height: 1.55;
  max-width: 100%;
  margin: 45px 0 0;
  font-weight: 500;
}
/* HERO CTA — same size, bigger */
.hero-ctas{
  display: flex;
  gap: 24px;
  margin-top: 140px;
  align-items: center;
}

.hero-ctas-data {
  display: flex;
  gap: 24px;
  margin-top: 140px;
  align-items: center;
}

/* shared size for BOTH buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 18px 34px;      /* bigger */
  font-size: 1.1rem;       /* bigger text */
  font-weight: 700;

  border-radius: 999px;
  line-height: 1;
  text-decoration: none;

  transition: transform 160ms ease, filter 160ms ease, background 160ms ease, border-color 160ms ease;
}

/* Primary (filled) */
.btn.primary{
  background: linear-gradient(90deg, #2f9cff, #5dd3ff);
  color: #042033;
  border: none;
  box-shadow: 0 8px 22px rgba(47,156,255,0.25);
}

/* Secondary (outlined, same size) */
.btn.ghost{
  background: transparent;
  border: 2px solid rgba(143, 211, 255, 0.55);
  color: #8fd3ff;
}

.btn:hover{
  transform: translateY(-2px);
}


.hero-downloads {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
}

.hero-downloads-data {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

.hero-download-link {
    display: inline-block;
    padding: 8px 12px;
    background: rgba(47, 156, 255, 0.15);
    border: 1px solid rgba(47, 156, 255, 0.3);
    border-radius: 6px;
    color: #5dd3ff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    width: fit-content;
}

.hero-download-link:hover {
    background: rgba(47, 156, 255, 0.25);
    border-color: rgba(47, 156, 255, 0.5);
    transform: translateX(2px);
}

.hero-download-link-data {
    display: inline-block;
    padding: 8px 12px;
    background: rgba(47, 156, 255, 0.15);
    border: 1px solid rgba(47, 156, 255, 0.3);
    border-radius: 6px;
    color: #5dd3ff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    width: fit-content;
}

.hero-download-link-data:hover {
    background: rgba(47, 156, 255, 0.25);
    border-color: rgba(47, 156, 255, 0.5);
    transform: translateX(2px);
}



.team-member h3 {
    color: #ffffff;
    margin-top: 20px;
    margin-bottom: 15px;
    font-size: 1.3em;
    font-weight: 600;
}

.data-page-header {
    max-width: 800px;
    margin: 40px auto 32px auto;
    text-align: center;
}

.data-page-title {
    color: #2f9cff;
    font-size: 2.3rem;
    margin-bottom: 10px;
}

.data-page-title a {
    color: #2f9cff;
    text-decoration: none;
}

.data-overview {
    max-width: 80vw !important;
    margin: 30px auto !important;
}

.data-dictionary-link {
    color: #ffffff !important;
    font-weight: 600;
    text-decoration: underline;
}

.data-dictionary-link:hover {
    color: #8fd3ff !important;
    text-decoration: underline;
}

.section-underline {
  width: 48px;
  height: 4px;
  background: #1f6fe5;
  margin: 14px 0 22px;
}
.data-dictionary-section {
    position: relative;
    max-width: 1200px;
    margin: 22px auto 36px auto;
    padding: 40px 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(2,6,23,0.5);
    background: linear-gradient(180deg, rgba(10,14,39,0.6), rgba(10,14,39,0.75));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 15px;
}

.data-dictionary-section h2 {
    margin: 0;
    font-size: 2rem;
    color: #ffffff;
    font-weight: 800;
}

.data-dictionary-section p {
    margin: 0;
    color: #c9d6ee;
    font-size: 0.98rem;
}

.data-preview-container {
    overflow-x: auto;
    margin: 20px auto;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 1200px;
    width: 100%;
    background: rgba(47, 156, 255, 0.12);
    border: 1px solid rgba(47, 156, 255, 0.35);
    border-radius: 14px;
    padding: 10px;
    margin-top: 24px;
}

.data-preview-table {
    width: 100%;
    border-collapse: collapse;
    background-color: rgba(26, 31, 58, 0.5);
    font-size: 0.9em;
}

.data-preview-table thead {
    background-color: rgba(47, 156, 255, 0.15);
    border-bottom: 2px solid rgba(47, 156, 255, 0.3);
}

.data-preview-table thead tr {
    background: rgba(47, 156, 255, 0.15);
}

.data-preview-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #8fd3ff;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.data-preview-table th:last-child {
    text-align: right;
    border-right: none;
}

.data-preview-table tbody tr {
    background: rgba(47, 156, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.data-preview-table tbody tr + tr {
    border-top: 1px solid rgba(47, 156, 255, 0.15);
}

.data-preview-table tbody tr:hover {
    background-color: rgba(47, 156, 255, 0.14);
    transition: background-color 0.2s ease;
}

.data-preview-table td {
    padding: 10px 15px;
    color: #c9d6ee;
    word-wrap: break-word;
    max-width: 300px;
    border-right: 1px solid rgba(255,255,255,0.05);
}

.data-preview-table td:last-child {
    text-align: right;
    border-right: none;
}


@media (max-width: 900px) {
    .hero-inner { padding: 28px 20px; }
    .hero-title { font-size: 1.6rem; }
    .hero { min-height: 280px; max-width: 94%; }
    .hero-container { flex-direction: column; gap: 20px; }
    .hero-card { max-width: 100%; min-width: auto; }
}

@media (max-width: 520px) {
    .hero-inner { padding: 40px 18px; }
    .hero-title { font-size: 1.6rem; }
    .hero-desc { font-size: 0.95rem; }
}

a {
    color: #6ec8ff;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

a:hover {
    color: #a0e7ff;
    text-decoration: underline;
}




.muted{
  margin: 0 auto;
  opacity: 0.85;
  text-align: center;
}

.glance-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 18px auto 28px auto;
  max-width: 90vw;
}

.chart-section {
  max-width: 80vw;
  margin: 0 auto 30px auto;
}

.glance-card{
  display: block;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 18px 18px 16px 18px;
  backdrop-filter: blur(10px);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
  color: inherit;
}

.glance-card:hover{
  transform: translateY(-3px);
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.22);
}

.glance-card-full {
  grid-column: 1 / -1;
}

.whats-inside-content {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.whats-inside-content p {
  margin: 0;
  line-height: 1.4;
  display: inline;
}

.inside-text {
  font-weight: 700;
  color: #ffffff;
  font-size: 1.15rem;
  display: inline;
}

.inside-text-medium {
  font-size: 1.15rem;
}

.inside-text-large {
  font-size: 1.15rem;
}

.inside-text-largest {
  font-size: 1.15rem;
}

.glance-number{
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.glance-label{
  font-size: 1.05rem;
  font-weight: 650;
  margin-bottom: 6px;
}

.glance-sub{
  font-size: 0.95rem;
  opacity: 0.9;
  line-height: 1.35;
}

/* Info cards for sections 2–4 */
.info-card{
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  border-radius: 18px;
  padding: 22px;
  margin: 14px 0;
  backdrop-filter: blur(10px);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.info-card:hover{
  transform: translateY(-3px);
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.22);
}

.info-card h2{
  margin: 0 0 10px 0;
  font-size: 1.35rem;
}

.info-card p{
  margin: 0;
  line-height: 1.6;
  opacity: 0.92;
  color: #cfe9ff;
  font-size: 1.05rem;
}

/* Screenshot container */
.screenshot-container {
  max-width: 90vw;
  margin: 28px auto;
  border: 4px solid rgba(74, 155, 167, 0.6);
  border-radius: 16px;
  overflow: hidden;
  background: #1a3a4a;
  backdrop-filter: blur(20px);
  min-height: 500px;
  display: flex;
  flex-direction: column;
}

.screenshot-image {
  width: 100%;
  height: auto;
  flex-grow: 1;
  display: block;
}

.screenshot-description {
  padding: 24px;
  background: rgba(26, 31, 58, 0.7);
  border-top: 1px solid rgba(74, 155, 167, 0.4);
}

.screenshot-description p {
  margin: 0;
  line-height: 1.6;
  opacity: 0.92;
  color: #cfe9ff;
}

/* CTA buttons */
.cta-row{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.cta-btn{
  display: inline-block;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.12);
  color: inherit;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.cta-btn:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.25);
}

.cta-btn.ghost{
  background: rgba(255,255,255,0.06);
}

/* Insights Page - Keyword Visualization */
.explorations-grid {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  align-items: flex-start;
}

.exploration-card {
  flex: 1;
  background: #4794ba;
  border: 15px solid #4a9ba700;
  border-radius: 15px;
  overflow: hidden;
}

.exploration-label {
  color: #aaa;
  font-size: 0.9em;
  margin: 8px 0;
}

.exploration-desc {
  color: #cfe9ff;
  line-height: 1.6;
  margin: 0;
}

.mode-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  justify-content: center;
}

.mode-btn {
  padding: 8px 16px;
  background: #2f9cff;
  color: #042033;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}

.mode-btn.inactive {
  background: #3a4a5f;
  color: #cfe9ff;
  opacity: 0.6;
}

.country-label {
  font-size: 0.85rem;
  color: #aaa;
  margin-bottom: 8px;
}

.country-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.country-btn {
  flex: 1;
  padding: 8px 12px;
  background: #2f9cff;
  color: #042033;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}

.country-btn.inactive {
  background: #3a4a5f;
  color: #cfe9ff;
  opacity: 0.6;
}

.deselect-btn {
  width: 100%;
  padding: 8px 12px;
  background: #d63030a0;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
  font-size: 14px;
}

.deselect-btn:hover {
  background: #c23030;
}

.year-range-inputs {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.year-input-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.year-input-group label {
  font-size: 0.85rem;
  color: #aaa;
  font-weight: 500;
}

.year-input {
  padding: 6px 8px;
  background: #2a3f5f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: #cfe9ff;
  font-weight: 500;
  font-size: 0.95rem;
}

.year-input:focus {
  outline: none;
  border-color: #2f9cff;
  background: #1a2a4a;
}

.details-section {
  margin-bottom: 12px;
}

.details-summary {
  cursor: pointer;
  font-weight: 600;
  color: #cfe9ff;
  user-select: none;
  padding: 8px 12px;
  background: #2a3f5f;
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.details-summary-text {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.details-summary-count {
  font-size: 0.9em;
  color: #aaa;
}

.details-content {
  margin-left: 12px;
  margin-top: 6px;
}

.checkbox-row {
  margin-bottom: 6px;
}

.checkbox-row input[type="checkbox"] {
  vertical-align: middle;
}

.checkbox-row label {
  margin-left: 6px;
  vertical-align: middle;
}

.usage-notes {
  padding: 12px 14px;
  background: #1a3a4a;
  border-left: 4px solid #4a9ba7;
  margin-top: 16px;
  font-size: 0.85rem;
  color: #aee;
  border-radius: 2px;
}

.usage-notes strong {
  display: block;
  margin-bottom: 8px;
}

.usage-notes br {
  display: block;
  content: "";
  margin: 6px 0;
}

.kw-viz-note { 
  color: #cfe9ff; 
  padding: 20px; 
}

#kw-chart { 
  flex: 1 1 auto; 
  min-width: 520px; 
  height: 520px; 
}

.viz-controls { 
  width: 320px; 
  flex: 0 0 320px; 
  background: rgba(10,14,26,0.3); 
  padding: 14px; 
  border-radius: 10px; 
  border: 1px solid rgba(255,255,255,0.06); 
  box-sizing: border-box; 
}

.viz-controls .control-row { 
  margin-bottom: 12px; 
}

.keywords-list { 
  max-height: 380px; 
  overflow: auto; 
  padding: 6px; 
  border-radius: 6px; 
  border: 1px solid rgba(255,255,255,0.04); 
  background: rgba(0,0,0,0.06); 
}

.viz-card { 
  display: block; 
}

/* Visualization split layout with overlapping glass box */
.viz-split-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 40px auto;
  width: calc(100% - 40px);
  max-width: calc(80vw - 40px);
  padding: 20px;
  border-radius: 40px;
}

.viz-split-container.reversed {
  flex-direction: row-reverse;
}

.viz-chart-wrapper {
  flex: 10;
  width: relative;
}

.viz-chart-wrapper #kw-chart {
  width: 100%;
  height: 500px;
}

.chart1 {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.viz-controls-glass {
  flex: 0 0 360px;
  position: relative;
  z-index: 10;
  margin-left: -80px;
  margin-right: 20px;
  margin-top: 80px;
  right: 100px;
  top: 80px;
}

.viz-split-container.reversed .viz-controls-glass {
  margin-left: auto;
  margin-right: 20px;
}

.glass-box {
  background: #1a3a4a;
  backdrop-filter: blur(20px);
  border: 2px solid rgba(74, 155, 167, 0.6);
  border-radius: 16px;
  padding: 24px;
  min-height: 450px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.glass-box .control-row {
  margin-bottom: 0;
}

.glass-box .control-row:first-child {
  padding-top: 0;
}

.glass-box label {
  display: block;
  font-weight: 600;
  color: #cfe9ff;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

/* Exploration cards glass box styling */
.exploration-glass {
  min-height: auto;
  padding: 20px;
  background: rgba(26, 31, 58, 0.7);
}

/* First glass box - ASEAN Comparative Analysis */
.glass-box-1 {
  /* Customize positioning and styling for first glass box */
  display: block;
}

/* Second glass box - Reunification Per-Country Analysis */
.glass-box-2 {
  /* Customize positioning and styling for second glass box */
  position: relative;
  left: 120px;
}

.exploration-glass .chart-card {
  margin: 0;
  padding: 16px;
  background: #10535d;
  border: 2px solid #2d5f66;
}

@media (max-width: 1000px) {
  #kw-chart { min-width: auto; width: 100%; height: 420px; }
  .viz-controls { width: 100%; flex: none; order: 2; margin-top: 12px; }
}

.tooltip{
  position: relative;
  display: inline-block;
  width: fit-content;
}

.tooltip-text{
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  min-width: 220px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 160ms ease, transform 160ms ease;
  font-size: 0.9rem;
  line-height: 1.35;
}

.glance-card:hover .tooltip-text{
  opacity: 1;
  transform: translateY(0);
}

/* Split layout: left image and right overlapping card */
.split-section {
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 80vw;
    margin: 30px auto;
    position: relative;
}
.split-image { flex: 0 0 48%; }
.split-image img { width: 140%; height: auto; border-radius: 12px; display: block; filter: brightness(0.98); }
.split-content { flex: 0 0 52%; display: flex; align-items: center; }
    
/* reversed variant: image on right, card overlaps from the left */
.split-section.reverse { flex-direction: row-reverse; }
.split-section.reverse .team-member.floating { margin-left: 0; margin-right: -80px; }

@media (max-width: 900px) {
  .split-section { flex-direction: column; gap: 18px; padding: 0 12px; }
  .split-image, .split-content { flex-basis: 100%; }
}

.visualization-section {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 30px auto;
    max-width: 80vw;
    padding: 0 10px;
    width: 100%;
}

.viz-container {
    background-color: #1a1f3a;
    border: 1px solid #2d3561;
    padding: 50px;
    border-radius: 4px;
    flex: 1;
    min-width: 250px;
    max-width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
}

.viz-container:hover {
    border-color: #4a5a8f;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.viz-keyword {
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.3em;
    font-weight: 600;
}

.metrics-section {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 30px auto;
    max-width: 80vw;
}

.metric-container {
    background-color: #1a1f3a;
    border: 1px solid #2d3561;
    padding: 30px;
    border-radius: 4px;
    flex: 1;
    min-width: 350px;
    max-width: 500px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.metric-container:hover {
    border-color: #4a5a8f;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.metric-title {
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.3em;
    font-weight: 600;
}

.metric-description {
    color: #b0b8d4;
    font-size: 0.95em;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

/* =========================
   Data Page Styles
========================= */
.data-header-section {
  max-width: 80vw;
  margin: 40px auto 32px auto;
  text-align: center;
}

.data-header-title {
  color: #2f9cff;
  font-size: 2.3rem;
  margin-bottom: 10px;
}

/* =========================
   Data page layout fixes
========================= */

.data-page .data-overview{
  width: min(1200px, 92vw) !important;
  max-width: none !important;
  height: auto !important;
  margin: 30px auto !important;
}

/* Optional: make preview not dominate the page */
.data-page .data-preview-container{
  max-height: 260px;
  overflow: auto;
}

.data-header-link {
  color: #2f9cff;
  text-decoration: none;
}

.data-subheading {
  color: #ffffff;
  margin-top: 20px;
  margin-bottom: 15px;
  font-size: 1.3em;
  font-weight: 600;
}

/* =========================
   FAQ Page Styles
========================= */
.faq-link {
  color: #2f9cff;
  font-weight: 600;
}

.faq-citation {
  opacity: 0.85;
}

.faq-footer {
  text-align: center;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid #2d3561;
}

/* =========================
   Our Team Page Styles
========================= */
.team-main {
  padding-top: 24px;
}

.team-title {
  text-align: center;
  color: #2f9cff;
  font-size: 2.8em;
  font-weight: 800;
  margin: 40px 0 18px 0;
  letter-spacing: -1px;
}

.team-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 24px auto;
  color: #b0b8d4;
  font-size: 1.05em;
}

.team-heart {
  color: #e25555;
  font-size: 1.2em;
}

.team-divider {
  border: none;
  border-top: 2px solid #2f9cff;
  width: 60px;
  margin: 24px auto 32px auto;
}

.team-member-img {
  max-width: 180px;
  margin: 0 auto 18px auto;
  display: block;
}

.team-member-name {
  color: #2f9cff;
}

.team-member-contact {
  margin: 8px 0 0 0;
}

.team-member-contact-secondary {
  margin: 4px 0 0 0;
}

.team-member-link {
  color: #2f9cff;
}

.team-footer-cta {
  text-align: center;
  margin: 40px auto 0 auto;
}

.team-cta-button {
  display: inline-block;
  background: linear-gradient(90deg, #2f9cff, #5dd3ff);
  color: #042033;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: 40px;
  font-size: 1.2em;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(47, 156, 255, 0.13);
}

.team-cta-button:hover {
  transform: translateY(-2px);
}

/* Team page specific styles */
.team-container {
  display: flex;
  justify-content: center;
  align-items: stretch;  /* ✅ makes card heights line up */
  gap: 32px;
  flex-wrap: wrap;
  width: 100%;
  margin: 0 auto;
  max-width: 80vw;
}


.team-member{
  background-color: rgba(26, 31, 58, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 22px;

  width: 340px;          /* 🔒 same width */
  height: 520px;         /* 🔒 same height */

  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(2, 6, 23, 0.35);
  transition: all 0.3s ease;

  /* layout inside card */
  display: flex;
  flex-direction: column;
}

.team-member:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(2, 6, 23, 0.45);
}

.team-member img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  margin: 0 auto 18px auto;
  display: block;
  object-fit: cover;
  border: 3px solid rgba(143, 211, 255, 0.5);
}

.team-member h2 {
  color: #ffffff;
  margin-top: 0;
  font-size: 1.45em;
  font-weight: 700;
  text-align: center;
}

.team-member p {
  color: #eaf4ff;
  line-height: 1.6;
  text-align: left;
}

.mandy-img {
  width: 200px;
  height: 200px;
}
/* =========================
   Search and Filter Styles
========================= */

.search-filter-container {
  background: #0f1419;
  border: 1px solid rgba(143, 211, 255, 0.2);
  border-radius: 8px;
  padding: 24px;
  margin: 32px 0;
}

.search-input-group {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.keyword-search-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid rgba(143, 211, 255, 0.3);
  border-radius: 4px;
  background: #1a1f2e;
  color: #eaf4ff;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.keyword-search-input:focus {
  outline: none;
  border-color: #8fd3ff;
  box-shadow: 0 0 8px rgba(143, 211, 255, 0.2);
}

.keyword-search-input::placeholder {
  color: rgba(234, 244, 255, 0.5);
}

.clear-search-btn {
  padding: 12px 20px;
  background: #8fd3ff;
  color: #0f1419;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.clear-search-btn:hover {
  background: #7bc0e8;
}

.filter-controls {
  display: flex;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-controls label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #eaf4ff;
  cursor: pointer;
  font-size: 0.95rem;
}

.filter-controls input[type="checkbox"] {
  cursor: pointer;
  width: 16px;
  height: 16px;
}

.country-filter {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.country-filter label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #eaf4ff;
  cursor: pointer;
  font-size: 0.95rem;
}

.country-filter input[type="radio"] {
  cursor: pointer;
  width: 16px;
  height: 16px;
}

.search-results-container {
  margin-top: 20px;
}

.no-results {
  color: #999;
  font-style: italic;
  padding: 16px 0;
}

.error-message {
  color: #ff6b6b;
  padding: 16px;
  background: rgba(255, 107, 107, 0.1);
  border-radius: 4px;
}

.results-count {
  color: #ffffff;
  margin-bottom: 20px;
  font-size: 0.85rem;
  font-weight: normal;
}

.results-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.result-item {
  background: #1a1f2e;
  border-left: 4px solid #555;
  padding: 16px;
  border-radius: 4px;
  transition: box-shadow 0.3s ease;
}

.result-item:hover {
  box-shadow: 0 4px 12px rgba(143, 211, 255, 0.15);
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 8px;
}

.result-title {
  color: #ffffff;
  margin: 0;
  font-size: 0.85rem;
  font-weight: normal;
  flex: 1;
}

.result-country {
  background: transparent;
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.result-date {
  color: #ffffff;
  font-size: 0.75rem;
  margin: 4px 0;
  font-weight: normal;
}

.result-country {
  color: #ffffff;
  font-size: 0.75rem;
  margin: 4px 0 12px 0;
  font-weight: normal;
}

.result-preview {
  cursor: pointer;
}

.result-preview summary {
  color: #ffffff;
  font-weight: normal;
  padding: 8px 0;
  user-select: none;
  transition: color 0.3s ease;
  font-size: 0.8rem;
  cursor: pointer;
}

.result-preview summary:hover {
  color: #7bc0e8;
}

.preview-content {
  color: #ffffff;
  padding: 12px;
  border-radius: 4px;
  margin-top: 8px;
  line-height: 1.6;
  font-size: 0.75rem;
  max-height: 200px;
  overflow-y: auto;
  font-weight: normal;
}

.preview-content mark {
  background: transparent;
  color: #ffffff;
  padding: 2px 4px;
  border-radius: 2px;
  font-weight: normal;
  text-decoration: underline;
}

.pagination-info {
  color: #ffffff;
  font-size: 0.8rem;
  margin: 8px 0 16px 0;
  font-weight: normal;
}

.pagination-controls {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  justify-content: center;
}

.pagination-btn {
  padding: 10px 16px;
  background: #555;
  color: #ffffff;
  border: 1px solid #666;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: normal;
  cursor: pointer;
  transition: background 0.3s ease;
  min-width: 40px;
  text-align: center;
}

.pagination-btn:hover {
  background: #666;
}

.pagination-btn-active {
  background: #8fd3ff;
  color: #0f1419;
  border-color: #8fd3ff;
  cursor: default;
  font-weight: 600;
}

.pagination-btn-active:hover {
  background: #8fd3ff;
}

@media (max-width: 768px) {
  .search-input-group {
    flex-direction: column;
  }

  .result-header {
    flex-direction: column;
  }

  .result-country {
    align-self: flex-start;
  }

  .filter-controls {
    flex-direction: column;
    gap: 12px;
  }
}
/* =========================
   FAQ page overrides
   (prevents Team/About styles from breaking FAQ)
========================= */
.faq-page .faq-container{
  width: min(900px, 92vw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px 0 70px;
}

/* Make FAQ cards full width and centered */
.faq-page .faq-container .team-member{
  width: 100%;
  max-width: none;     /* overrides team card max-width */
  margin: 0;           /* overrides team card margins */
}

/* FAQ text formatting */
.faq-page .faq-container .team-member h2{
  text-align: left;
}

.faq-page .faq-container .team-member p{
  text-align: left;    /* readable FAQ answers */
}
/* =========================
   FAQ card sizing cleanup
========================= */

/* Make FAQ cards more compact */
.faq-page .team-member{
  padding: 18px 20px;          /* reduce padding */
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(2, 6, 23, 0.25);  /* lighter shadow */
}

/* Tighten question spacing */
.faq-page .team-member h2{
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.2rem;
}

/* Tighten paragraph spacing */
.faq-page .team-member p{
  margin: 6px 0;
  line-height: 1.55;
}

/* Tighten list spacing */
.faq-page .team-member ul{
  margin: 6px 0 6px 20px;
}

.faq-page .team-member li{
  margin: 2px 0;
}
.faq-page .team-member{
  background-color: rgba(26, 31, 58, 0.8);
}
/* =========================
   FAQ: REMOVE CARD HEIGHT
========================= */

.faq-page .team-member{
  height: auto !important;
  min-height: unset !important;
  flex: unset !important;
  align-self: stretch;

  padding: 16px 18px;     /* compact */
}

/* Tighten vertical spacing inside FAQ cards */
.faq-page .team-member h2{
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.faq-page .team-member p{
  margin: 4px 0;
  line-height: 1.5;
}

.faq-page .team-member ul{
  margin: 6px 0 6px 18px;
}

.faq-page .team-member li{
  margin: 2px 0;
}

/* =========================
   HOMEPAGE "BANDS" SYSTEM (POLITICO-style)
   Paste this at the END of style.css
========================= */

:root{
  --bg-main: #0a0e27;
  --bg-band: rgba(255,255,255,0.04);
  --bg-panel: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.12);

  --text-heading: #eef4ff;
  --text-body: rgba(234,244,255,0.86);
  --text-muted: rgba(234,244,255,0.65);

  --accent: #2f9cff;
  --accent-soft: rgba(47,156,255,0.14);

  --band-max: 1100px;
}

/* Band wrapper */
.band{
  padding: 54px 20px;
}

.band-inner{
  width: min(var(--band-max), 92vw);
  margin: 0 auto;
}

/* Alternate subtle backgrounds to create rhythm */
.band:nth-of-type(odd){
  background: transparent;
}

.band:nth-of-type(even){
  background: var(--bg-band);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Typography */
.band-kicker{
  margin: 0 0 10px 0;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.band-title{
  margin: 0 0 14px 0;
  font-family: "Source Serif 4", serif;
  font-size: 2.05rem;
  line-height: 1.18;
  font-weight: 700;
  color: var(--text-heading);
}

.band-lede{
  margin: 0 0 14px 0;
  font-family: "Source Sans 3", sans-serif;
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--text-body);
  max-width: 74ch;
}

.band-footnote{
  margin: 14px 0 0 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Split layout for Overview + Stats */
.band-split{
  display: grid;
  grid-template-columns: 1.6fr 0.9fr;
  gap: 28px;
  align-items: start;
}

/* Stats stack (right column) */
.stats-stack{
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 22px rgba(2, 6, 23, 0.28);
}

.stat{
  padding: 14px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.stat:last-child{
  border-bottom: none;
}

.stat-number{
  font-family: "Source Sans 3", sans-serif;
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: var(--text-heading);
  line-height: 1.05;
}

.stat-label{
  margin-top: 6px;
  font-size: 0.98rem;
  color: var(--text-muted);
}

/* Bullets */
.band-bullets{
  margin: 14px 0 0 0;
  padding-left: 18px;
  color: var(--text-body);
  line-height: 1.7;
  font-size: 1.05rem;
}

.band-bullets li{
  margin: 6px 0;
}

/* Keyword visual block */
.keyword-visual{
  margin-top: 18px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(2, 6, 23, 0.25);
}

.keyword-visual-img{
  width: 100%;
  height: auto;
  display: block;
}

/* Make sure hero + first band align nicely */
.hero{
  margin-bottom: 24px;
}

/* Responsive */
@media (max-width: 900px){
  .band{
    padding: 42px 16px;
  }
  .band-title{
    font-size: 1.7rem;
  }
  .band-lede{
    font-size: 1.02rem;
  }
  .band-split{
    grid-template-columns: 1fr;
  }
}
/* ===== POLITICO-style Audience Section ===== */

.audience-pro{
  background: linear-gradient(rgba(255, 255, 255, 0.285), rgba(255, 255, 255, 0.75)), url('images/text.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #0b1220;
  text-align: center;
  padding: 60px 20px 60px;
}

.audience-eyebrow{
  font-size: 1.2rem;
  letter-spacing: 3px;
  font-weight: 700;
  color: #164c7f; /* BLUE accent */
  margin-bottom: -30px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 8px 16px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.audience-title{
  font-family: "Source Serif 4", serif;
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  margin: 0;
}

.accent-bar{
  width: 180px;
  height: 6px;
  background: #2f9cff; /* BLUE underline */
  margin: 12px auto 18px;
  border-radius: 4px;
}

.audience-desc{
  max-width: 820px;
  margin: 0 auto;
  font-size: 1.15rem;
  line-height: 1.65;
  color: #1f2937;
}

/* Three-box grid for "What this makes possible" */
.three-box-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1300px;
  margin: 18px auto 0;
  padding: 0 20px;
}

.three-box{
  background: rgba(1, 1, 79, 0.201);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(35, 30, 114, 0.15);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.three-box-title{
  margin: 0;
  font-family: "Source Sans 3", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #131681;
}

.box-link {
  color: #131681;
  text-decoration: none;
  transition: color 0.2s ease;
}

.box-link:hover {
  color: #0f12a0;
}

.three-box-desc{
  margin: 0;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #000000;
}

@media (max-width: 1100px){
  .three-box-grid{
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

@media (max-width: 600px){
  .three-box-grid{
    grid-template-columns: 1fr;
    gap: 18px;
  }
}
/* =========================
   POLITICO-style dataset banner
========================= */
:root{
  --accent: #2f9cff;          /* your blue accent */
  --accent-soft: #5dd3ff;
  --pro-ink: #0b1020;
  --pro-ink-2: #0a0e1a;
  --pro-paper: #0f162d;
}

.pro-banner{
  margin: 42px auto 22px;
  width: min(1200px, 92vw);
  border-radius: 18px;
  overflow: hidden;
  position: relative;

  /* deep editorial gradient (not “tourism”) */
  background: radial-gradient(1200px 420px at 50% 20%, rgba(255,255,255,0.06), rgba(255,255,255,0) 60%),
              linear-gradient(180deg, rgba(8,12,24,0.96), rgba(8,12,24,0.86));

  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 18px 40px rgba(2,6,23,0.55);
}

/* subtle “grain” overlay */
.pro-banner::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:0.20;
  mix-blend-mode: overlay;
  background-image:
    radial-gradient(circle at 10% 10%, rgba(255,255,255,0.06), transparent 35%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.04), transparent 40%),
    radial-gradient(circle at 30% 90%, rgba(255,255,255,0.03), transparent 45%);
}

.pro-banner__inner{
  position: relative;
  z-index: 1;
  padding: 44px 48px;
  text-align: center;
}

.pro-banner__eyebrow{
  margin: 0 0 16px;
  font-family: "Source Sans 3", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 0.80;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.78);
}

.pro-banner__headline{
  margin: 0 auto;
  max-width: 980px;
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.55rem, 2.2vw, 2.15rem);
  line-height: 1.25;
  color: #ffffff;
}


.u-underline{
  text-decoration-line: underline;
  text-decoration-color: #2f9cff;
  text-decoration-thickness: 4px;
  text-underline-offset: 0.18em;
}



.pro-banner__cta{
  margin-top: 26px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.pro-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-family: "Source Sans 3", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.pro-btn--primary{
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  color: #061423;
  box-shadow: 0 10px 22px rgba(47,156,255,0.22);
  border: 1px solid rgba(255,255,255,0.0);
}


.pro-btn:hover{
  transform: translateY(-2px);
}

@media (max-width: 680px){
  .pro-banner__inner{ padding: 32px 18px; }
  .pro-banner__eyebrow{ letter-spacing: 0.18em; }
}

/* =========================
   ENTITIES VISUALIZATION (Ultra-compact, 10 rows, no scroll)
========================= */
.entities-section{
  background: rgba(26, 31, 58, 0.95);
  backdrop-filter: blur(10px);
  padding: 24px;
  margin: 42px auto 0;
  max-width: 80vw;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* 2-column grid */
.entities-section .entities-container{
  max-width: 1260px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 22px;
  row-gap: 10px;
  align-items: start;
}

/* Header row */
.entities-section .entities-header{
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 0 16px 0;
  padding: 0;
  width: 100%;
}

.entities-section .entities-title{
  margin: 0;
  font-family: "Source Sans 3", sans-serif;
  font-size: 1.2rem;
  font-weight: 750;
  color: #ffffff;
  display: inline;
}

/* Dropdown */
.entities-section .entities-control{
  display: inline-flex;
  align-items: center;
  gap: 0px;
}

.entities-section .entities-control-label{
  margin: 0;
  font-family: "Source Sans 3", sans-serif;
  font-size: 1.05rem;
  font-weight: 750;
  color: #0b1220;
  display: inline;
}

.entities-section .entities-select{
  font-family: "Source Sans 3", sans-serif;
  font-size: 1rem;
  font-weight: 650;
  color: #0b1220;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(11, 18, 32, 0.18);
  background: #fff;
  outline: none;
  display: inline;
  margin: 0 4px;
}

.entities-section .entities-select:focus{
  border-color: rgba(47,156,255,0.55);
  box-shadow: 0 0 0 3px rgba(47,156,255,0.14);
}

/* Country columns */
.entities-section .entities-country{
  display:flex;
  flex-direction:column;
  gap: 6px;
}

.entities-section .entities-country[data-country="china"]{
  border-right: 1px solid rgba(11, 18, 32, 0.15);
  padding-right: 22px;
}

.entities-section .country-title{
  margin: 0;
  font-family: "Source Sans 3", sans-serif;
  font-size: 01rem;
  font-weight: 750;
  color: rgba(190, 190, 190, 0.78);
}

/* Bars list */
.entities-section .entity-bars{
  display:flex;
  flex-direction:column;
  gap: 0;              /* no extra spacing */
}

/* Each row: force compact row height */
.entities-section .entity-bar{
  display:grid;
  grid-template-columns: 120px 1fr 52px; /* tighter columns */
  gap: 8px;
  align-items:center;
  padding: 2px 0;      /* minimal row padding */
}

/* Make label text dense */
.entities-section .entity-label{
  margin: 0;
  font-family: "Source Sans 3", sans-serif;
  font-size: .9rem;
  font-weight: 550;
  color: #ffffff;
  line-height: 1.1;
  text-transform: capitalize;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Thin bars */
.entities-section .bar-wrapper{
  height: 25px;        /* key lever */
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow:hidden;
}

.entities-section .bar{
  height:100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2f9cff, #5dd3ff);
}

/* IMPORTANT: override your global .entity-count */
.entities-section .entity-count{
  margin: 0;           /* cancels your global 20px margins */
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.78rem;  /* cancels global 3em */
  font-weight: 700;
  line-height: 1.1;
  text-align:right;    /* cancels global center */
  color: rgba(255, 255, 255, 0.7);
}

/* Data note under charts */
.entities-data-note {
  grid-column: 1 / -1;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
}

/* Responsive */
@media (max-width: 900px){
  .entities-section .entities-container{
    grid-template-columns: 1fr;
    row-gap: 12px;
  }

  .entities-section .entities-header{
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================
   Back to Top Button
========================= */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(90deg, #2f9cff, #5dd3ff);
  color: #042033;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(47, 156, 255, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  box-shadow: 0 6px 20px rgba(47, 156, 255, 0.4);
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    padding: 10px 14px;
    font-size: 0.85rem;
  }
}

/* =========================
   Section Navigation (Left Side)
========================= */
.section-nav {
  position: fixed;
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-50%) translateX(-20px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.section-nav.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 10px 16px;
  background: linear-gradient(90deg, #2f9cff, #5dd3ff);
  color: #042033;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(47, 156, 255, 0.3);
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.nav-item:hover {
  box-shadow: 0 6px 20px rgba(47, 156, 255, 0.4);
  transform: translateX(-3px);
}

.nav-item.active {
  border-left: 3px solid #042033;
  background: linear-gradient(90deg, #5dd3ff, #2f9cff);
  box-shadow: 0 6px 20px rgba(47, 156, 255, 0.4);
}

.nav-label {
  white-space: nowrap;
}

@media (max-width: 900px) {
  .section-nav {
    left: 15px;
    gap: 10px;
  }

  .nav-item {
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  .nav-label {
    display: none;
  }

  .nav-item::before {
    content: attr(data-section);
    display: none;
  }
}

@media (max-width: 600px) {
  .section-nav {
    left: 10px;
    top: auto;
    bottom: 100px;
    transform: translateY(0) translateX(-20px);
    flex-direction: row;
    gap: 8px;
  }

  .section-nav.show {
    transform: translateY(0) translateX(0);
  }

  .nav-item {
    padding: 8px 10px;
    font-size: 0.8rem;
  }

  .nav-item:hover {
    transform: translateY(-3px);
  }

  .nav-label {
    display: inline;
  }
}

/* =========================
   TF-IDF Table Styles
========================= */
.tfidf-tables-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 20px 0;
}

.tfidf-table-wrapper h3 {
  text-align: center;
  color: #2f9cff;
  margin-bottom: 15px;
}

/* =========================
   Section Header Styles
========================= */
.section-header {
  max-width: 80vw;
  margin: 0 auto;
  text-align: center;
}

.section-header h2{
  margin: 0 0 8px 0;
  font-size: 2rem;
  text-decoration: underline;
}

