:root {
  --navy: #153e38;
  --ink: #17231f;
  --muted: #7d847d;
  --line: #e5ded3;
  --mist: #f4f1ea;
  --clay: #d66e50;
  --gold: #d9ad65;
  --deep: #102f2b;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: 'Manrope',sans-serif;
}
.display {
  font-family: 'Newsreader',Georgia,serif;
  font-weight: 600;
}
.brand {
  letter-spacing: -.09em;
  font-family: 'Manrope',sans-serif;
}
.soft-shadow {
  box-shadow: 0 18px 42px rgba(21,62,56,.08);
}
.navy-gradient {
  background: linear-gradient(135deg,#123934 0%,#1d5b50 100%);
}
.cover {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
}
.cover:after {
  content: '';
  position: absolute;
  inset: auto -20% -34% -15%;
  height: 65%;
  background: rgba(255,255,255,.18);
  transform: rotate(-16deg);
}
.cover-gold {
  background: linear-gradient(145deg,#f9df76,#edb52b);
}
.cover-sky {
  background: linear-gradient(145deg,#172995,#6fc1ec);
}
.cover-violet {
  background: linear-gradient(145deg,#2c1c83,#f05f86);
}
.chart-wrap {
  height: 275px;
}
.pill {
  font-size: 11px;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 99px;
}
.fade-up {
  animation: fade .3s ease both;
}
@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
button,
input,
select {
  font: inherit;
}
.scrollbar::-webkit-scrollbar {
  width: 8px;
}
.scrollbar::-webkit-scrollbar-thumb {
  background: #d9deea;
  border-radius: 20px;
}
.heatmap {
  display: grid;
  grid-template-columns: 44px repeat(53,minmax(8px,1fr));
  grid-template-rows: repeat(7,16px);
  gap: 4px 3px;
  align-items: center;
}
.heat-label {
  font-size: 10px;
  color: #8b918a;
}
.heat-cell {
  height: 14px;
  border-radius: 3px;
  background: #e8ece7;
}
.heat-cell.level-1 {
  background: #c4d8cc;
}
.heat-cell.level-2 {
  background: #87b49d;
}
.heat-cell.level-3 {
  background: #4f8d78;
}
.heat-cell.level-4 {
  background: #236252;
}
.artwork {
  object-fit: cover;
  background: #eef1eb;
}
.chart-mode {
  border: 1px solid #e5ded3;
  border-radius: 6px;
  padding: 6px;
  color: #718078;
  background: #fff;
}
.chart-mode.active {
  background: #153e38;
  color: #fff;
  border-color: #153e38;
}
.heatmap {
  grid-template-rows: repeat(7,11px);
  gap: 3px 3px;
}
.heat-cell {
  height: 9px;
  border-radius: 2px;
}
.show-grid[data-layout="large"] {
  grid-template-columns: repeat(4,minmax(0,1fr));
}
.show-grid[data-layout="small"] {
  grid-template-columns: repeat(7,minmax(0,1fr));
}
.show-grid[data-layout="list"] {
  grid-template-columns: 1fr;
}
.show-grid[data-layout="list"] [data-show-card] {
  display: flex;
  align-items: stretch;
}
.show-grid[data-layout="list"] [data-show-art] {
  width: 170px;
  min-width: 170px;
  height: 120px;
}
.show-grid[data-layout="small"] [data-show-art] {
  height: 145px;
}
.show-grid[data-layout="large"] [data-show-art] {
  height: 225px;
}
.show-grid[data-layout="list"] [data-show-meta] {
  flex: 1;
}
.source-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.source-logo-wrap {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f6fa;
}
.demographic-chart {
  height: 330px;
}
.donut-chart {
  height: 300px;
}
.country-bar {
  height: 10px;
  background: #2849c7;
  border-radius: 999px;
  min-width: 2px;
}
.view-toggle {
  border: 1px solid #dfe5ef;
  border-radius: 8px;
  padding: 7px 9px;
  color: #71809a;
  background: #fff;
}
.view-toggle.active {
  background: #10279b;
  color: #fff;
  border-color: #10279b;
}
@media (max-width:1100px) {
  .show-grid[data-layout="small"] {
    grid-template-columns: repeat(4,minmax(0,1fr));
  }
}
@media (max-width:900px) {
  .metric-grid {
    grid-template-columns: repeat(2,minmax(0,1fr))!important;
  }
  .show-grid[data-layout="large"],
  .show-grid[data-layout="small"] {
    grid-template-columns: repeat(2,minmax(0,1fr))!important;
  }
}
@media (max-width:600px) {
  .metric-grid {
    grid-template-columns: 1fr!important;
  }
  .show-grid[data-layout="large"],
  .show-grid[data-layout="small"] {
    grid-template-columns: 1fr!important;
  }
  .chart-wrap {
    height: 230px;
  }
  .heatmap {
    grid-template-columns: repeat(18,minmax(7px,1fr));
  }
  .show-grid[data-layout="list"] [data-show-art] {
    width: 110px;
    min-width: 110px;
  }
}

.text-navy {
  color: var(--navy)!important;
}
.text-blue-500,
.text-blue-600 {
  color: var(--clay)!important;
}
.text-cyan-300 {
  color: #e7bd76!important;
}
.text-blue-100 {
  color: #d8e8df!important;
}
.bg-indigo-50 {
  background: #edf4ef!important;
}
.text-indigo-100 {
  color: #d3e4d9!important;
}
.border-line {
  border-color: var(--line)!important;
}
.bg-mist {
  background: var(--mist)!important;
}
.shadow-indigo-900\/20 {
  --tw-shadow-color: rgba(21,62,56,.2)!important;
}
.country-bar {
  background: var(--clay);
}
.bg-blue-50,
.bg-cyan-50 {
  background: #edf4ef!important;
}
.border-blue-200,
.border-blue-300,
.border-blue-400 {
  border-color: #d7c8bb!important;
}
.focus\:border-blue-400:focus {
  border-color: var(--clay)!important;
}
.focus\:ring-blue-50:focus {
  --tw-ring-color: #f4e3dc!important;
}
.hover\:bg-indigo-50\/30:hover {
  background: #edf4ef!important;
}
.view-toggle {
  border-color: var(--line)!important;
  color: #718078!important;
  background: #fff!important;
}
.view-toggle.active {
  background: var(--navy)!important;
  color: #fff!important;
  border-color: var(--navy)!important;
}
.show-grid [data-show-art] {
  aspect-ratio: 1/1!important;
  height: auto!important;
  display: block;
}
.show-grid[data-layout="list"] [data-show-art] {
  width: 140px!important;
  min-width: 140px!important;
  height: 140px!important;
  aspect-ratio: 1/1!important;
}
.import-placeholder {
  background: linear-gradient(145deg,#e6eee8,#f2e6d9);
  color: var(--navy);
}
.import-spinner {
  display: inline-block;
  width: 28px;
  height: 28px;
  border: 3px solid rgba(21,62,56,.18);
  border-top-color: var(--clay);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.country-map {
  min-height: 250px;
  height: 360px;
  position: relative;
  background: #fff!important;
}
.country-map canvas {
  display: block;
  width: 100%!important;
  height: 100%!important;
}
.landing-shell {
  background: #f6f2eb;
  color: var(--ink);
  overflow: hidden;
}
.landing-nav {
  border-bottom: 1px solid rgba(229,222,211,.8);
  background: rgba(246,242,235,.88);
  backdrop-filter: blur(16px);
}
.landing-nav a {
  color: #63706a;
}
.landing-nav a:hover {
  color: var(--navy);
}
.landing-kicker {
  font-family: 'DM Mono',monospace;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #a05b48;
}
.landing-hero {
  position: relative;
  background: #f6f2eb;
}
.landing-hero:before {
  content: '';
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  right: -160px;
  top: -180px;
  background: radial-gradient(circle,#e6c987 0%,rgba(230,201,135,0) 68%);
  opacity: .42;
  pointer-events: none;
}
.landing-hero-grid {
  position: relative;
}
.landing-hero-title {
  font-size: clamp(3.7rem,7vw,7.7rem);
  line-height: .9;
  letter-spacing: -.07em;
}
.landing-hero-title em {
  color: var(--clay);
  font-style: normal;
}
.landing-button-dark {
  background: var(--navy);
  color: #fff;
  border-radius: 999px;
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 700;
  transition: transform .2s,background .2s;
}
.landing-button-dark:hover {
  background: #0e302b;
  transform: translateY(-2px);
}
.landing-button-light {
  border: 1px solid #cfc8bc;
  color: var(--navy);
  border-radius: 999px;
  padding: 13px 20px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(255,255,255,.35);
}
.landing-button-light:hover {
  background: #fff;
}
.landing-proof-card {
  background: var(--navy);
  border-radius: 28px;
  min-height: 535px;
  position: relative;
  overflow: hidden;
  color: #f4f1ea;
  box-shadow: 0 28px 70px rgba(21,62,56,.2);
}
.landing-proof-card:before {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(230,201,135,.3);
  border-radius: 50%;
  right: -170px;
  top: -160px;
}
.landing-proof-card:after {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(230,201,135,.18);
  border-radius: 50%;
  right: -80px;
  top: -85px;
}
.landing-proof-top {
  font-family: 'DM Mono',monospace;
  font-size: 10px;
  letter-spacing: .12em;
  color: #b9d4c5;
}
.landing-proof-score {
  font-family: 'Newsreader',Georgia,serif;
  font-size: 6rem;
  line-height: .85;
  letter-spacing: -.08em;
}
.landing-proof-line {
  height: 1px;
  background: rgba(232,239,231,.16);
}
.landing-proof-bars {
  height: 150px;
  display: flex;
  align-items: end;
  gap: 8px;
}
.landing-proof-bars span {
  display: block;
  flex: 1;
  background: linear-gradient(to top,#d66e50,#e4b878);
  border-radius: 5px 5px 0 0;
}
.landing-proof-bars span:nth-child(1) {
  height: 44%;
}
.landing-proof-bars span:nth-child(2) {
  height: 64%;
}
.landing-proof-bars span:nth-child(3) {
  height: 52%;
}
.landing-proof-bars span:nth-child(4) {
  height: 82%;
}
.landing-proof-bars span:nth-child(5) {
  height: 70%;
}
.landing-proof-bars span:nth-child(6) {
  height: 94%;
}
.landing-proof-bars span:nth-child(7) {
  height: 88%;
}
.landing-source-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f9f6f0;
}
.landing-source-name {
  font-family: 'DM Mono',monospace;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #68746e;
}
.landing-section-dark {
  background: var(--deep);
  color: #f5f1e9;
}
.landing-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
}
.landing-card-dark {
  border: 1px solid rgba(226,229,216,.14);
  border-radius: 22px;
  background: rgba(255,255,255,.05);
}
.landing-number {
  font-family: 'DM Mono',monospace;
  color: var(--clay);
  font-size: 11px;
  letter-spacing: .12em;
}
.landing-serif {
  font-family: 'Newsreader',Georgia,serif;
}
.landing-quote {
  font-family: 'Newsreader',Georgia,serif;
  font-size: clamp(2rem,3.8vw,4rem);
  line-height: .98;
  letter-spacing: -.045em;
}
.landing-footer {
  background: #f6f2eb;
  border-top: 1px solid var(--line);
}
.score-mobile-workspace-nav {
  display: none;
}
.score-show-tabs {
  display: none;
}
.score-show-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}
.score-show-tab-icon {
  display: inline-flex;
}
.score-period-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}
.score-period-ranges {
  display: flex;
  align-items: center;
  gap: 6px;
}
.score-period-range-short {
  display: none;
}
.score-period-frequency {
  display: flex;
  align-items: center;
  gap: 8px;
}
.score-period-frequency select {
  min-width: 92px;
}
@media (max-width:767px) {
  .score-mobile-workspace-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    padding: 7px 12px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }
  .score-mobile-workspace-nav button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1 0 auto;
    border-radius: 9px;
    padding: 8px 12px;
    color: #66756e;
    font-size: 12px;
    font-weight: 700;
  }
  .score-mobile-workspace-nav button.active {
    background: #edf4ef;
    color: var(--navy);
  }
  .score-show-tabs {
    display: flex;
    align-items: stretch;
    gap: 3px;
    overflow-x: auto;
    margin-top: 0;
    padding: 0 12px;
    border-top: 1px solid var(--line);
    background: #fff;
  }
  .score-show-tab {
    flex: 1 0 48px;
    min-height: 52px;
    padding: 10px 6px;
    color: #66756e;
    font-size: 11px;
  }
  .score-show-tab.active {
    color: var(--navy);
    border-bottom: 3px solid var(--clay);
  }
  .score-show-tab-label {
    display: none;
  }
  .score-period-controls {
    padding: 10px!important;
    border-radius: 16px!important;
    gap: 8px!important;
    margin-bottom: 16px!important;
  }
  .score-period-heading {
    width: 100%;
    justify-content: space-between;
  }
  .score-period-heading .score-period-current {
    font-size: 11px;
    color: #7d847d;
  }
  .score-period-ranges {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 6px;
  }
  .score-period-range {
    padding: 9px 4px!important;
    font-size: 11px!important;
    text-align: center;
  }
  .score-period-range-full {
    display: none;
  }
  .score-period-range-short {
    display: inline;
  }
  .score-period-frequency {
    width: 100%;
    justify-content: space-between;
  }
  .score-period-frequency select {
    flex: 1;
    max-width: 150px;
  }
}
@media (min-width:768px) {
  .score-mobile-workspace-nav {
    display: none;
  }
  .score-show-tabs {
    display: none;
  }
  .score-period-range-short {
    display: none;
  }
}
.legal-shell {
  background: #f6f2eb;
  min-height: 100vh;
}
.legal-header {
  background: var(--navy);
  color: #f6f2eb;
}
.legal-prose h2 {
  font-family: 'Newsreader',Georgia,serif;
  font-size: clamp(1.45rem,2.4vw,2rem);
  line-height: 1.1;
  letter-spacing: -.025em;
  color: var(--navy);
  margin: 2.5rem 0 .8rem;
}
.legal-prose h2:first-child {
  margin-top: 0;
}
.legal-prose p,
.legal-prose li {
  font-size: .94rem;
  line-height: 1.8;
  color: #5f6c65;
}
.legal-prose ul {
  padding-left: 1.35rem;
  list-style: disc;
}
.legal-prose a {
  color: var(--clay);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-meta {
  font-family: 'DM Mono',monospace;
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #a05b48;
}
