/* Screen typography for the public investigation, maps, readers and forms. */
:root {
  --type-title: clamp(2.375rem, 4.1vw, 4rem);
  --type-section: clamp(1.82rem, 3.5vw, 3rem);
  --type-card: clamp(1.45rem, 2.2vw, 2rem);
  --type-lead: clamp(1rem, 1.15vw, 1.125rem);
  --type-body: 1rem;
  --type-data: .9375rem;
  --type-caption: .875rem;
}

.ref-main, .field-atlas main, .view {
  font-size: var(--type-body);
  line-height: 1.58;
}

/* Section headings sit below the first heading on each route. */
.view .band .wrap > :is(.ph1, .ph2), #view-home #bag-weight .ph1,
.ref-main h2, .field-atlas #explore-map-title {
  font-size: var(--type-section);
  line-height: 1.1;
}
#view-home .hero h1, .view .band .ph1.page-title,
.ref-main h1, .field-atlas .introduction h1 {
  font-family: var(--serif);
  font-size: var(--type-title);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.045em;
}
#view-home .hero .hs, .view .band p.lede, .ref-main .ref-lead,
.field-atlas .introduction p {
  font-size: var(--type-lead);
  line-height: 1.5;
}

/* Headings inside a card or a form step use the same scale across routes. */
#bag-weight .handling-context h3, .view .reading-card h3,
#view-law .grid2 h3, #view-law .card.pad h3, #view-evidence .wrap > h3,
#view-map .map-pane-detail .ph h2, .field-atlas #detail h2,
.ref-main .ref-card h3, .ref-main .ref-card h2, .ref-main .privacy-topic h3,
.survey-panel #section-title, .buyer-page #received h2,
.buyer-page .survey-main form > fieldset > legend, .reply-form legend {
  font-size: var(--type-card);
  line-height: 1.15;
  letter-spacing: -.025em;
}

#view-map #country-search label, #view-map .atlas-controls label,
#view-map .atlas-actions label, #view-map #list-wrap label,
.field-atlas .controls legend, .field-atlas .country-control > label {
  font: 600 var(--type-caption)/1.4 var(--sans);
}
#view-map :is(input, select), .ref-main :is(input, select, textarea),
.survey-page .survey-language select {
  font-size: var(--type-body);
  font-weight: 400;
}
#view-map .map-pair button, #view-map .atlas-controls button,
#view-map .atlas-filters > summary, .map-switch a,
.field-atlas .map-tools button, .field-atlas .detail-action,
.field-atlas #layers span {
  font-size: var(--type-data);
  line-height: 1.4;
}
#view-map .map-zoom button[data-zoom] {
  font-size: var(--type-body);
}

#view-map .map-pane-detail .country-lead, #view-map .map-pane-detail .map-finding,
#view-map .atlas-section summary, #view-map .country-protection summary,
.field-atlas #detail-intro {
  font-size: var(--type-body);
  line-height: 1.5;
}
#view-map .map-pane-detail .map-finding {
  font-weight: 600;
}
#view-map #map-layer-title, .field-atlas .figure-head .caption,
#view-map .country-task-chart figcaption, .field-atlas #detail-data h4 {
  font: 600 var(--type-body)/1.4 var(--sans);
}
.field-atlas #detail-data h3 {
  font-size: 1.125rem;
  line-height: 1.25;
}
#view-map .map-pane-detail dl, #view-map .map-pane-detail table,
#view-map .map-pane-detail .src, .field-atlas #detail dl, .field-atlas .metric {
  font-size: var(--type-data);
  line-height: 1.45;
}
#view-map .map-pane-visual .lg, .field-atlas .key,
#view-map .map-pane-detail :is(.reg, .bag-label, .tk small),
#view-map .research-source small, .field-atlas :is(.layer-note, .source-meta, .count-note) {
  font-size: var(--type-caption);
  line-height: 1.45;
}
#view-map .bag .bag-value {
  font-size: var(--type-body);
  font-weight: 600;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
  white-space: normal;
}
#view-map .bag .bag-status {
  font-size: var(--type-data);
  font-weight: 400;
  line-height: 1.4;
}
