:root {
  --ink: #17323b;
  --muted: #65767b;
  --line: #dce4e5;
  --paper: #fff;
  --bg: #f5f7f7;
  --human: #234d5b;
  --original: #bd7960;
  --scaffold: #76a764;
  --green: #c5e8ac;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}
.share-input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--bg);
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #398aa1;
  outline-offset: 3px;
}
button {
  border: 0;
  background: none;
}
a {
  color: inherit;
  text-underline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.topbar {
  height: 84px;
  background: var(--ink);
  color: white;
  padding: 0 38px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  text-decoration: none;
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -1px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-symbol {
  font:
    italic 37px Georgia,
    serif;
  color: var(--green);
}
.brand-caption {
  font-size: 11px;
  letter-spacing: 2.1px;
  color: #c2d3d7;
}
.topbar nav {
  margin-left: auto;
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 14px;
}
.topbar button {
  padding: 10px 14px;
}
.outline-light {
  border: 1px solid #687d83;
  border-radius: 5px;
}
.demo-banner {
  background: #f3eedb;
  padding: 10px 38px;
  font-size: 13px;
  display: flex;
  gap: 16px;
  color: #5f542d;
  border-bottom: 1px solid #e3dec8;
}
.demo-banner strong {
  white-space: nowrap;
}
.workspace {
  display: grid;
  grid-template-columns: 294px minmax(0, 1fr);
  max-width: 1680px;
  margin: auto;
}
.sidebar {
  background: white;
  border-right: 1px solid var(--line);
  padding: 30px 23px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.7px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.counter {
  font-size: 12px;
  background: #edf2f2;
  padding: 2px 7px;
  border-radius: 4px;
}
.sidebar h2 {
  font-size: 19px;
  letter-spacing: -0.5px;
  margin: 9px 0 17px;
}
.search {
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 9px 10px;
  border-radius: 5px;
  gap: 6px;
  margin-bottom: 10px;
}
.search span {
  font-size: 22px;
  line-height: 1;
}
.search input {
  border: 0;
  min-width: 0;
  width: 100%;
  font-size: 13px;
  background: none;
  outline-offset: 5px;
}
select {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 5px;
  padding: 9px 10px;
  font-size: 14px;
  max-width: 100%;
}
.sidebar select {
  width: 100%;
}
.question-list {
  margin-top: 15px;
  display: grid;
  gap: 7px;
}
.question-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 9px;
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;
}
.question-item:has(input:checked) {
  background: #f0f5f3;
  border-color: #c7d7cf;
}
.question-item input {
  accent-color: var(--ink);
  margin: 5px 0 0;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.question-item strong {
  display: block;
  font-size: 14px;
  font-weight: 550;
}
.question-item small {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-top: 3px;
}
.control-section {
  border-top: 1px solid var(--line);
  margin-top: 23px;
  padding-top: 23px;
}
.text-button {
  font-size: 13px;
  font-weight: 600;
  padding: 0;
  text-decoration: none;
}
.text-button:hover {
  text-decoration: underline;
}
.country-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}
.country-choice {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 5px 8px;
  cursor: pointer;
  font-size: 13px;
  gap: 5px;
}
.country-choice input {
  accent-color: var(--ink);
  margin: 0;
  width: 12px;
  height: 12px;
}
.country-choice:has(input:checked) {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.field-label {
  display: block;
  font-size: 13px;
  margin: 15px 0 6px;
}
.small {
  font-size: 12px;
}
.muted {
  color: var(--muted);
}
.prompt-button {
  margin-top: 12px;
}
.sidebar-footer {
  border-top: 1px solid var(--line);
  margin-top: 30px;
  padding-top: 20px;
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
}
main {
  padding: 36px 40px 0;
  min-width: 0;
}
.intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 28px;
  gap: 20px;
}
.intro .eyebrow {
  color: #668773;
  margin-bottom: 14px;
}
h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 49px;
  letter-spacing: -2px;
  line-height: 1.04;
}
.intro p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 16px;
  line-height: 1.8;
}
.intro-art {
  position: relative;
  display: flex;
  align-items: center;
  height: 150px;
  gap: 7px;
  padding: 0 12px 36px;
}
.intro-art span {
  display: block;
  width: 17px;
  background: var(--human);
  height: 63px;
  border-radius: 2px;
}
.intro-art span:nth-child(2) {
  height: 100px;
  background: #98b1b7;
}
.intro-art span:nth-child(3) {
  height: 78px;
  background: var(--original);
}
.intro-art span:nth-child(4) {
  height: 119px;
  background: #d1b3a5;
}
.intro-art span:nth-child(5) {
  height: 87px;
  background: var(--scaffold);
}
.intro-art span:nth-child(6) {
  height: 106px;
  background: #c8dfbc;
}
.intro-art i {
  position: absolute;
  bottom: 0;
  left: 12px;
  font-size: 11px;
  font-style: normal;
  color: var(--muted);
}
.selection-summary {
  border-top: 1px solid var(--line);
  padding: 17px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  gap: 16px;
}
.selection-summary strong {
  font-weight: 600;
}
.view-bar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 23px;
  align-items: center;
}
.tabs {
  display: flex;
  gap: 24px;
}
.tabs button {
  padding: 13px 0;
  font-size: 14px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  color: var(--muted);
}
.tabs button[aria-selected="true"] {
  border-bottom-color: var(--ink);
  color: var(--ink);
  font-weight: 600;
}
.sort-label {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 6px;
  align-items: center;
}
.sort-label select {
  border: 0;
  background: transparent;
  font-size: 12px;
  padding: 6px 0;
}
.question-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
  margin-bottom: 22px;
  padding: 24px 26px;
}
.card-top {
  display: flex;
  gap: 12px;
  justify-content: space-between;
}
.source-tag {
  font-size: 10px;
  letter-spacing: 1.3px;
  font-weight: 700;
  color: #657a80;
}
.question-card h2 {
  font-size: 20px;
  letter-spacing: -0.5px;
  margin-top: 7px;
  font-weight: 550;
  line-height: 1.4;
}
.question-wording {
  font-size: 13px;
  color: var(--muted);
  margin-top: 7px;
  max-width: 680px;
}
.details-button {
  font-size: 12px;
  white-space: nowrap;
  align-self: flex-start;
  color: var(--muted);
  padding: 2px;
}
.legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 11px;
  margin: 21px 0 19px;
}
.legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.swatch {
  width: 9px;
  height: 9px;
  display: inline-block;
  border-radius: 2px;
}
.human {
  background: var(--human);
}
.original {
  background: var(--original);
}
.scaffold {
  background: var(--scaffold);
}
.chart-axis {
  margin-left: 125px;
  margin-right: 36px;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  padding-bottom: 8px;
}
.chart-row {
  display: grid;
  grid-template-columns: 113px minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 19px;
  align-items: center;
}
.country-name {
  font-size: 13px;
  font-weight: 550;
}
.country-name small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
}
.bar-group {
  display: grid;
  gap: 4px;
  border-left: 1px solid var(--line);
  padding-right: 36px;
  background: repeating-linear-gradient(
    to right,
    transparent 0,
    transparent calc(25% - 1px),
    #eaf0f0 calc(25% - 1px),
    #eaf0f0 25%
  );
  background-origin: content-box;
  background-clip: content-box;
}
.bar-line {
  height: 12px;
  position: relative;
}
.bar {
  height: 100%;
  border-radius: 0 2px 2px 0;
  position: relative;
  min-width: 1px;
  transition: width 0.3s ease;
}
.bar-value {
  position: absolute;
  left: calc(100% + 6px);
  font-size: 10px;
  top: -2px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.chart-footnote {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 13px;
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.metric-label {
  font-size: 12px;
  margin-top: 17px;
  color: var(--muted);
}
.view-title {
  font-family: Georgia, serif;
  font-size: 29px;
  font-weight: 400;
  letter-spacing: -0.7px;
  margin-bottom: 8px;
}
.view-description {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 22px;
  max-width: 750px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
}
td:first-child,
th:first-child {
  padding-left: 0;
}
.gap-cell {
  display: block;
  padding: 8px;
  border-radius: 4px;
  min-width: 83px;
  font-variant-numeric: tabular-nums;
}
.gap-cell small {
  display: block;
  font-size: 10px;
}
.positive {
  color: #437243;
}
.negative {
  color: #a1553a;
}
.composite-options {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  padding: 15px 0 24px;
}
.weight-control {
  display: grid;
  gap: 5px;
  font-size: 12px;
}
.weight-control input {
  border: 1px solid var(--line);
  padding: 6px;
  width: 90px;
  border-radius: 4px;
}
.composite-chart {
  margin-top: 20px;
}
.empty {
  padding: 60px 20px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 6px;
}
.empty h2 {
  font-family: Georgia, serif;
  font-size: 27px;
  font-weight: 400;
}
.empty p {
  font-size: 14px;
  color: var(--muted);
  margin: 10px 0;
}
.main-footer {
  border-top: 1px solid var(--line);
  padding: 23px 0;
  margin-top: 35px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 10px;
  color: var(--muted);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 9px;
  max-width: 740px;
  width: calc(100% - 32px);
  padding: 28px;
  color: var(--ink);
  max-height: 85vh;
  overflow: auto;
}
dialog::backdrop {
  background: #10272cb0;
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 20px;
}
.dialog-head h2 {
  font-family: Georgia, serif;
  font-size: 27px;
  font-weight: 400;
}
.dialog-head button {
  font-size: 26px;
}
dialog h3 {
  font-size: 15px;
  margin: 20px 0 7px;
}
dialog p,
dialog li {
  font-size: 14px;
  color: #536b74;
  margin: 8px 0;
}
dialog pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--bg);
  padding: 18px;
  font-size: 12px;
  line-height: 1.8;
  border-radius: 5px;
}
dialog .metadata {
  font-size: 12px;
  display: grid;
  grid-template-columns: 125px 1fr;
  gap: 8px;
}
#toast:not(:empty) {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  padding: 11px 20px;
  border-radius: 5px;
  font-size: 14px;
  z-index: 10;
  max-width: 90vw;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
@media (min-width: 1400px) {
  main {
    padding-left: 60px;
    padding-right: 60px;
  }
  .intro-art {
    margin-right: 40px;
  }
  h1 {
    font-size: 57px;
  }
}
@media (max-width: 1050px) {
  main {
    padding: 28px 24px 0;
  }
  .workspace {
    grid-template-columns: 265px minmax(0, 1fr);
  }
  .sidebar {
    padding: 26px 18px;
  }
  .intro-art {
    display: none;
  }
  h1 {
    font-size: 43px;
  }
  .sort-label {
    display: none;
  }
  .tabs {
    gap: 18px;
  }
  .tabs button {
    font-size: 13px;
  }
  .question-card {
    padding: 20px;
  }
  .brand-caption {
    display: none;
  }
}
@media (max-width: 720px) {
  .topbar {
    height: 70px;
    padding: 0 20px;
  }
  .topbar nav {
    gap: 4px;
    font-size: 12px;
  }
  .topbar button {
    padding: 8px;
  }
  .brand {
    font-size: 23px;
  }
  .demo-banner {
    padding: 10px 20px;
    display: block;
    font-size: 12px;
  }
  .demo-banner strong {
    display: block;
    margin-bottom: 3px;
  }
  .workspace {
    display: flex;
    flex-direction: column;
  }
  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 22px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 18px;
  }
  .sidebar > .section-heading,
  .sidebar > h2,
  .sidebar > .search,
  .sidebar > #source-filter,
  .sidebar > .question-list {
    grid-column: 1/-1;
  }
  .sidebar h2 {
    margin: 0 0 5px;
  }
  .question-list {
    grid-template-columns: 1fr 1fr;
    margin: 0;
  }
  .question-item {
    padding: 9px;
  }
  .control-section {
    margin: 5px 0 0;
    padding-top: 18px;
  }
  .control-section:last-of-type {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px 14px;
  }
  .control-section:last-of-type > .eyebrow {
    grid-column: 1/-1;
  }
  .control-section:last-of-type .field-label {
    margin: 5px 0;
    grid-row: 2;
  }
  .control-section:last-of-type select {
    grid-row: 3;
  }
  .control-section:last-of-type .small {
    grid-row: 4;
  }
  .control-section:nth-of-type(1) {
    grid-column: 1/-1;
  }
  .sidebar-footer {
    display: none;
  }
  .prompt-button {
    align-self: start;
    margin-top: 0;
    text-align: left;
  }
  .intro {
    padding-top: 6px;
  }
  .intro p br {
    display: none;
  }
  main {
    padding: 28px 20px 0;
  }
  h1 {
    font-size: 40px;
  }
  .tabs {
    gap: 17px;
    flex-wrap: wrap;
  }
  .tabs button {
    font-size: 12px;
  }
  .question-card {
    padding: 19px 15px;
  }
  .question-card h2 {
    font-size: 19px;
  }
  .chart-row {
    grid-template-columns: 87px minmax(0, 1fr);
    gap: 8px;
  }
  .chart-axis {
    margin-left: 95px;
  }
  .country-name {
    font-size: 12px;
  }
  .legend {
    gap: 11px;
    font-size: 10px;
  }
  .main-footer {
    display: block;
  }
  .selection-summary {
    font-size: 12px;
  }
  .selection-summary button {
    white-space: nowrap;
  }
  .details-button {
    font-size: 11px;
  }
  .dialog-head h2 {
    font-size: 23px;
  }
  .view-title {
    font-size: 26px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
.missing-run {
  font-size: 10px;
  color: #697e86;
  height: 12px;
  line-height: 12px;
  background: var(--paper);
}
.country-list {
  max-height: 225px;
  overflow: auto;
  padding: 3px 2px;
}
.question-list {
  max-height: 360px;
  overflow: auto;
}
.bar-group:has(.missing-run) {
  gap: 5px;
}
.source-tag {
  overflow-wrap: anywhere;
}
#mobile-controls {
  display: none;
}
.intro {
  padding-bottom: 24px;
}
.intro h1 {
  font-size: 42px;
  letter-spacing: -1.5px;
}
.intro p {
  margin-top: 12px;
}
.intro .eyebrow {
  margin-bottom: 10px;
}
.eyebrow,
.source-tag,
.question-item small,
.legend,
.chart-footnote,
.chart-axis,
.bar-value,
.country-name small,
.missing-run,
.main-footer {
  font-size: 12px;
}
.bar-line {
  height: 15px;
}
.bar-value {
  top: -2px;
}
.missing-run {
  height: 15px;
  line-height: 15px;
}
.question-list {
  max-height: 390px;
}
.brand-caption {
  font-size: 12px;
}
.chart-row {
  margin-bottom: 22px;
}
.chart-axis {
  margin-right: 44px;
}
.bar-group {
  padding-right: 44px;
}
.selection-summary {
  font-size: 14px;
}
@media (max-width: 720px) {
  #mobile-controls {
    display: block;
    width: 100%;
    text-align: left;
    padding: 13px 20px;
    border-bottom: 1px solid var(--line);
    background: white;
    font-size: 14px;
    font-weight: 600;
  }
  .sidebar {
    display: none;
  }
  .sidebar.sidebar-open {
    display: grid;
  }
  .intro h1 {
    font-size: 36px;
  }
  .legend {
    gap: 10px;
    font-size: 11px;
  }
  .selection-summary {
    font-size: 12px;
  }
  .chart-axis {
    margin-right: 40px;
  }
  .bar-group {
    padding-right: 40px;
  }
  .question-card h2 {
    font-size: 18px;
  }
  .card-top {
    flex-wrap: wrap;
  }
  .question-wording {
    font-size: 13px;
  }
  .question-list {
    max-height: none;
  }
  .bar-value {
    font-size: 11px;
  }
  .country-name small {
    font-size: 11px;
  }
}
