/*
  Structure redesign prototype.
  Functional DOM hooks and live data remain owned by /assets/structure.js.
*/

body.structure-redesign {
  --structure-rd-ink: #101917;
  --structure-rd-muted: #66716e;
  --structure-rd-muted-2: #87918e;
  --structure-rd-accent: #087665;
  --structure-rd-accent-soft: #dff2ed;
  --structure-rd-line: #dce4e1;
  --structure-rd-line-strong: #aab8b3;
  --structure-rd-surface: #ffffff;
  --structure-rd-warm: #a8781d;
  --structure-rd-danger: #b65346;
  --structure-rd-content: 1460px;
  color: var(--structure-rd-ink);
  background: var(--structure-rd-surface);
}

html[data-theme="dark"] body.structure-redesign {
  --structure-rd-ink: #edf5f2;
  --structure-rd-muted: #a7b6b1;
  --structure-rd-muted-2: #81928c;
  --structure-rd-accent: #63cdb9;
  --structure-rd-accent-soft: rgba(68, 175, 156, 0.13);
  --structure-rd-line: #30413b;
  --structure-rd-line-strong: #536b63;
  --structure-rd-surface: #101b17;
  --structure-rd-warm: #e2b849;
  --structure-rd-danger: #ef8d7e;
}

.structure-redesign,
.structure-redesign button,
.structure-redesign input,
.structure-redesign select {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.structure-redesign .page-shell.structure-page {
  display: grid;
  gap: 0;
  width: min(var(--structure-rd-content), calc(100% - 64px));
  max-width: none;
  margin: 0 auto;
  padding: 46px 0 86px;
  color: var(--structure-rd-ink);
  background: transparent;
}

/* Controls */

.structure-redesign .structure-toolbar {
  display: grid;
  grid-template-columns: minmax(320px, 1.8fr) minmax(130px, 0.46fr) minmax(180px, 0.62fr);
  gap: 34px;
  align-items: end;
  margin: 0 0 58px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.structure-redesign .structure-toolbar > * {
  min-width: 0;
}

.structure-redesign .structure-toolbar > :is(.single-picker, .year-field),
.structure-redesign .structure-toolbar .toolbar-metrics > div {
  display: grid;
  grid-template-rows: 11px 48px;
  gap: 8px;
  align-items: stretch;
}

.structure-redesign .structure-toolbar label,
.structure-redesign .structure-toolbar .metric-label {
  display: block;
  height: 11px;
  min-height: 0 !important;
  margin: 0;
  color: var(--structure-rd-muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.16em;
  line-height: 11px;
  text-transform: uppercase;
}

.structure-redesign .structure-toolbar .select-field,
.structure-redesign .structure-toolbar .country-combobox {
  min-height: 48px;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--structure-rd-line-strong) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.structure-redesign .structure-toolbar .select-field:hover,
.structure-redesign .structure-toolbar .country-combobox:hover,
.structure-redesign .structure-toolbar .select-field:focus-within,
.structure-redesign .structure-toolbar .country-combobox:focus-within {
  border-bottom-color: var(--structure-rd-accent) !important;
  box-shadow: none !important;
}

.structure-redesign .structure-toolbar :is(select, input[type="search"]) {
  min-height: 47px !important;
  padding: 0 42px 0 0 !important;
  color: var(--structure-rd-ink) !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  font-size: 19px;
  font-weight: 760;
}

.structure-redesign .structure-toolbar .combo-toggle {
  right: -6px;
  color: var(--structure-rd-ink);
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.structure-redesign .structure-toolbar .toolbar-metrics {
  display: block;
}

.structure-redesign .structure-toolbar .toolbar-metrics > div {
  min-height: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0;
}

.structure-redesign .structure-toolbar .toolbar-metrics strong {
  display: flex;
  align-items: center;
  overflow: hidden;
  min-height: 48px;
  margin: 0;
  padding: 0;
  color: var(--structure-rd-ink);
  border-bottom: 1px solid var(--structure-rd-line-strong);
  font-size: 19px;
  font-weight: 760;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.structure-redesign .loading-panel {
  margin: -26px 0 34px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.structure-redesign .loading-copy {
  justify-content: flex-start;
}

.structure-redesign .loading-copy #structureLoadingText {
  display: none;
}

.structure-redesign .progress-track {
  height: 2px;
  background: var(--structure-rd-line);
}

/* Hero */

.structure-redesign .structure-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(560px, 0.92fr);
  gap: clamp(56px, 7vw, 112px);
  align-items: start;
  margin: 0 0 76px;
}

.structure-redesign .structure-intro-card,
.structure-redesign .structure-type-card,
.structure-redesign .structure-trade-card,
.structure-redesign .structure-concentration-card,
.structure-redesign .structure-panel {
  min-width: 0;
  padding: 0;
  background: transparent !important;
  border: 0;
  border-radius: 0;
  box-shadow: none !important;
}

.structure-redesign .structure-intro-card {
  display: grid;
  align-content: start;
}

.structure-redesign .structure-kicker,
.structure-redesign .structure-section-heading > div > span {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  color: var(--structure-rd-accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-transform: uppercase;
}

.structure-redesign .structure-kicker::before,
.structure-redesign .structure-section-heading > div > span::before {
  flex: 0 0 auto;
  width: 34px;
  height: 1px;
  background: currentColor;
  content: "";
}

.structure-redesign .structure-intro-card h1 {
  margin: 0;
  color: var(--structure-rd-ink);
  font-size: clamp(58px, 6.5vw, 104px);
  font-weight: 770;
  letter-spacing: -0.065em;
  line-height: 0.92;
}

.structure-redesign .structure-headline {
  display: block;
  overflow: visible;
  max-width: 700px;
  margin: 26px 0 0;
  color: var(--structure-rd-muted);
  font-size: clamp(18px, 1.55vw, 24px);
  font-weight: 450;
  letter-spacing: -0.018em;
  line-height: 1.4;
  -webkit-line-clamp: unset;
}

.structure-redesign .structure-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 34px;
  margin: 30px 0 0;
}

.structure-redesign .structure-meta-pill {
  min-height: 0;
  padding: 0;
  color: var(--structure-rd-muted);
  background: transparent !important;
  border: 0;
  border-radius: 0;
  box-shadow: none !important;
}

.structure-redesign .structure-meta-row strong {
  color: var(--structure-rd-muted);
  font-size: 13px;
  font-weight: 620;
}

.structure-redesign .structure-hero-facts {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(190px, 0.65fr);
  gap: 34px 42px;
  align-items: start;
  padding-top: 28px;
}

.structure-redesign .structure-type-card,
.structure-redesign .structure-trade-card,
.structure-redesign .structure-concentration-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0;
  min-height: 150px;
  padding-top: 18px;
  border-top: 1px solid var(--structure-rd-line);
}

.structure-redesign .structure-concentration-card {
  grid-column: 1 / -1;
  min-height: 0;
}

.structure-redesign .structure-type-card > span:first-child,
.structure-redesign .structure-trade-card > span:first-child,
.structure-redesign .structure-concentration-card > span:first-child {
  color: var(--structure-rd-muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.structure-redesign .structure-type-card > strong,
.structure-redesign .structure-trade-card > strong,
.structure-redesign .structure-concentration-card > strong {
  display: block;
  min-width: 0;
  margin: 13px 0 0;
  color: var(--structure-rd-ink);
  font-size: clamp(23px, 1.55vw, 30px);
  font-weight: 660;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.structure-redesign .structure-type-card > strong {
  overflow-wrap: break-word;
  hyphens: auto;
}

.structure-redesign .structure-trade-card > strong {
  font-size: clamp(22px, 1.45vw, 28px);
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.structure-redesign .structure-type-card > small,
.structure-redesign .structure-trade-card > small {
  display: block;
  margin: 10px 0 0;
  color: var(--structure-rd-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.structure-redesign .structure-concentration-card .structure-concentration {
  display: grid;
  grid-template-columns: minmax(180px, 0.72fr) minmax(0, 1.28fr);
  gap: 28px;
  margin-top: 22px;
}

.structure-redesign .structure-concentration-card .structure-concentration-main {
  display: grid;
  gap: 8px;
  align-content: start;
  justify-content: start;
  padding: 0;
  background: transparent !important;
  border: 0;
  border-radius: 0;
}

.structure-redesign .structure-concentration-card .structure-concentration-main span {
  color: var(--structure-rd-muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

.structure-redesign .structure-concentration-card .structure-concentration-main strong {
  color: var(--structure-rd-accent);
  font-size: clamp(24px, 2vw, 32px);
  font-weight: 650;
  text-align: left;
}

.structure-redesign .structure-concentration-card .structure-concentration-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.structure-redesign .structure-concentration-card .structure-concentration-grid div {
  min-width: 0;
  padding: 0 0 0 22px;
  background: transparent !important;
  border: 0;
  border-left: 1px solid var(--structure-rd-line);
  border-radius: 0;
  box-shadow: none !important;
}

.structure-redesign .structure-concentration-card .structure-concentration-grid span {
  color: var(--structure-rd-muted);
  font-size: 11px;
  font-weight: 650;
}

.structure-redesign .structure-concentration-card .structure-concentration-grid strong {
  display: block;
  margin-top: 6px;
  color: var(--structure-rd-ink);
  font-size: 20px;
  font-weight: 650;
}

/* Help moves from question buttons to headings. */

.structure-redesign .structure-help-button {
  display: none !important;
}

.structure-redesign .structure-map-detail > .structure-partner-help-button {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-grid !important;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  color: var(--structure-rd-accent);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
}

.structure-redesign .structure-partner-help-icon {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.structure-redesign .structure-map-detail > .structure-partner-help-button:hover,
.structure-redesign .structure-map-detail > .structure-partner-help-button:focus-visible,
.structure-redesign .structure-map-detail > .structure-partner-help-button[aria-expanded="true"] {
  color: var(--structure-rd-ink);
  background: transparent;
  outline: 0;
}

.structure-redesign .structure-help-trigger {
  width: fit-content;
  cursor: pointer;
}

.structure-redesign .structure-help-trigger:focus-visible {
  outline: 1px solid var(--structure-rd-accent);
  outline-offset: 5px;
}

.structure-redesign .structure-help-popover {
  position: fixed !important;
  z-index: 1000 !important;
  width: min(320px, calc(100vw - 24px));
  max-width: none;
  padding: 16px 18px;
  color: var(--structure-rd-ink);
  background: color-mix(in srgb, var(--structure-rd-surface) 96%, transparent);
  border: 1px solid var(--structure-rd-line);
  border-radius: 4px;
  box-shadow: 0 20px 54px rgba(13, 35, 29, 0.17);
  backdrop-filter: blur(12px);
}

.structure-redesign .structure-help-popover strong {
  color: var(--structure-rd-ink);
  font-size: 14px;
  font-weight: 720;
}

.structure-redesign .structure-help-popover p {
  margin: 7px 0 0;
  color: var(--structure-rd-muted);
  font-size: 13px;
  font-weight: 450;
  line-height: 1.45;
}

/* Structural sections */

.structure-redesign .structure-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 68px;
  align-items: start;
}

.structure-redesign .structure-panel {
  position: relative;
  min-width: 0;
  padding: 48px 0 58px;
  border-top: 1px solid var(--structure-rd-line);
  scroll-margin-top: 96px;
}

.structure-redesign .structure-panel-wide,
.structure-redesign .structure-trade-panel {
  grid-column: 1 / -1;
}

.structure-redesign .structure-gdp-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1.45fr);
  gap: 44px 70px;
}

.structure-redesign .structure-gdp-panel .structure-section-heading {
  grid-row: 1 / span 2;
  align-self: start;
}

.structure-redesign .structure-gdp-panel .structure-sector-bars {
  align-self: end;
}

.structure-redesign .structure-section-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 30px;
}

.structure-redesign .structure-section-heading > div > span {
  margin-bottom: 14px;
}

.structure-redesign .structure-section-heading h2 {
  margin: 0;
  color: var(--structure-rd-ink);
  font-size: clamp(34px, 3.4vw, 56px);
  font-weight: 720;
  letter-spacing: -0.052em;
  line-height: 0.98;
}

.structure-redesign .structure-sector-bars,
.structure-redesign .structure-bar-list {
  display: grid;
  gap: 20px;
}

.structure-redesign .structure-share-row {
  display: grid;
  gap: 9px;
}

.structure-redesign .structure-share-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}

.structure-redesign .structure-share-label strong {
  color: var(--structure-rd-ink);
  font-size: 15px;
  font-weight: 570;
  line-height: 1.25;
}

.structure-redesign .structure-share-label span {
  color: var(--structure-rd-ink);
  font-size: 18px;
  font-weight: 650;
  white-space: nowrap;
}

.structure-redesign .structure-share-track {
  height: 3px;
  overflow: visible;
  background: var(--structure-rd-line);
  border-radius: 0;
}

.structure-redesign .structure-share-track span {
  display: block;
  height: 3px;
  min-width: 4px;
  background: var(--bar-color);
  border-radius: 0;
  box-shadow: none;
}

.structure-redesign .structure-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 12px 0 0;
  padding-top: 26px;
}

.structure-redesign .structure-mini-grid div {
  display: block;
  min-height: 0;
  padding: 0 24px;
  background: transparent !important;
  border: 0;
  border-left: 1px solid var(--structure-rd-line);
  border-radius: 0;
  box-shadow: none !important;
}

.structure-redesign .structure-mini-grid div:first-child {
  padding-left: 0;
  border-left: 0;
}

.structure-redesign .structure-mini-grid span,
.structure-redesign .structure-capital-box span {
  display: block;
  color: var(--structure-rd-muted);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.25;
}

.structure-redesign .structure-mini-grid strong,
.structure-redesign .structure-capital-box strong {
  display: block;
  margin-top: 8px;
  color: var(--structure-rd-ink);
  font-size: 22px;
  font-weight: 650;
  line-height: 1.1;
}

.structure-redesign :is(.structure-employment-panel, .structure-resources-panel) {
  min-height: 420px;
}

.structure-redesign .structure-employment-panel {
  padding-right: 18px;
}

.structure-redesign .structure-resources-panel {
  padding-left: 18px;
}

.structure-redesign .structure-capital-box {
  display: grid;
  gap: 0;
  margin-top: 30px;
  padding: 22px 0 0;
  background: transparent !important;
  border: 0;
  border-top: 1px solid var(--structure-rd-line);
  border-radius: 0;
  box-shadow: none !important;
}

.structure-redesign .structure-capital-box strong {
  font-size: 24px;
}

/* Trade */

.structure-redesign .structure-trade-panel {
  margin-top: 12px;
  padding-bottom: 0;
}

.structure-redesign .structure-trade-heading {
  align-items: end;
  margin-bottom: 42px;
}

.structure-redesign .structure-trade-title-block {
  width: 100%;
  min-width: 0;
}

.structure-redesign .structure-trade-mainline {
  display: flex;
  flex-wrap: nowrap;
  align-items: end;
  gap: 28px;
}

.structure-redesign .structure-trade-mainline h2 {
  flex: 0 1 auto;
  min-width: 0;
}

.structure-redesign .structure-trade-mainline :is(.structure-trade-years, .structure-segmented) {
  flex: 0 0 auto;
}

.structure-redesign .structure-heading-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: flex-end;
  gap: 18px 28px;
}

.structure-redesign .structure-trade-years {
  display: grid;
  grid-template-columns: repeat(2, minmax(92px, 108px));
  gap: 18px;
  align-items: end;
}

.structure-redesign .structure-trade-year-field {
  min-width: 0;
}

.structure-redesign .structure-trade-year-field label {
  display: block;
  margin: 0 0 6px;
  color: var(--structure-rd-muted);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.structure-redesign .structure-trade-year-field .select-field {
  min-height: 34px;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--structure-rd-line-strong) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.structure-redesign .structure-trade-year-field .select-field:hover,
.structure-redesign .structure-trade-year-field .select-field:focus-within {
  border-bottom-color: var(--structure-rd-accent) !important;
}

.structure-redesign .structure-trade-year-field select {
  width: 100%;
  min-height: 33px !important;
  padding: 0 28px 0 0 !important;
  color: var(--structure-rd-ink) !important;
  background-color: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-size: 15px;
  font-weight: 720;
}

.structure-redesign .structure-segmented {
  display: flex;
  gap: 26px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.structure-redesign .structure-segmented button {
  min-width: 0;
  min-height: 34px;
  padding: 0 0 7px;
  color: var(--structure-rd-muted);
  background: transparent !important;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  box-shadow: none !important;
  font-size: 14px;
  font-weight: 680;
  cursor: pointer;
}

.structure-redesign .structure-segmented button:hover,
.structure-redesign .structure-segmented button:focus-visible,
.structure-redesign .structure-segmented button.is-active {
  color: var(--structure-rd-ink);
  background: transparent;
  border-bottom-color: var(--structure-rd-accent);
  outline: 0;
}

.structure-redesign .structure-data-gap {
  margin: -18px 0 28px;
  padding: 0 0 10px;
  color: var(--structure-rd-warm);
  background: transparent;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--structure-rd-warm) 36%, transparent);
  border-radius: 0;
  font-size: 13px;
  font-weight: 620;
}

.structure-redesign .structure-trade-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(330px, 0.62fr);
  gap: clamp(44px, 5vw, 84px);
  align-items: start;
}

.structure-redesign .structure-chart {
  min-height: 500px;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  filter: saturate(0.82);
}

.structure-redesign .structure-timeline-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 22px auto 0;
}

.structure-redesign .structure-timeline-button {
  width: 44px;
  height: 44px;
  color: var(--structure-rd-accent);
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 50%;
  box-shadow: none;
}

.structure-redesign .structure-timeline-button:hover,
.structure-redesign .structure-timeline-button:focus-visible {
  color: var(--structure-rd-surface);
  background: var(--structure-rd-accent);
  border-color: var(--structure-rd-accent);
  outline: 0;
}

.structure-redesign .structure-timeline-current {
  color: var(--structure-rd-muted);
  font-size: 14px;
  font-weight: 650;
}

.structure-redesign .structure-partner-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 20px;
  padding-bottom: 0;
  border-bottom: 0;
}

.structure-redesign .structure-partner-heading h3 {
  white-space: nowrap;
}

.structure-redesign .structure-trade-layout h3 {
  margin: 0;
  color: var(--structure-rd-ink);
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.structure-redesign .structure-map-link {
  min-height: 0;
  padding: 0 0 5px;
  color: var(--structure-rd-ink);
  background: transparent !important;
  border: 0;
  border-bottom: 1px solid var(--structure-rd-line-strong);
  border-radius: 0;
  box-shadow: none !important;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
}

.structure-redesign .structure-map-link:hover,
.structure-redesign .structure-map-link:focus-visible {
  color: var(--structure-rd-accent);
  background: transparent;
  border-color: var(--structure-rd-accent);
  outline: 0;
}

.structure-redesign .structure-map-link:disabled {
  color: var(--structure-rd-muted-2);
  background: transparent;
  border-color: var(--structure-rd-line);
  cursor: not-allowed;
}

.structure-redesign .structure-partner-list {
  display: grid;
  gap: 0;
}

.structure-redesign .structure-partner-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  padding: 12px 0;
  background: transparent !important;
  border: 0;
  border-bottom: 1px solid var(--structure-rd-line);
  border-radius: 0;
  box-shadow: none !important;
}

.structure-redesign .structure-partner-row:last-child {
  border-bottom: 0;
}

.structure-redesign .structure-rank {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  color: var(--partner-color);
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 720;
}

.structure-redesign .structure-partner-row strong {
  color: var(--structure-rd-ink);
  font-size: 13px;
  font-weight: 620;
}

.structure-redesign .structure-partner-row small {
  margin-top: 4px;
  color: var(--structure-rd-muted);
  font-size: 11px;
  font-weight: 500;
}

.structure-redesign .structure-partner-row em {
  color: var(--structure-rd-accent);
  font-size: 13px;
  font-weight: 680;
}

.structure-redesign .structure-empty {
  min-height: 140px;
  color: var(--structure-rd-muted);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--structure-rd-line);
  border-radius: 0;
  font-weight: 560;
}

/* Native metric tooltips */

.structure-redesign [data-structure-tooltip] {
  cursor: pointer;
}

.structure-redesign [data-structure-tooltip]::after {
  color: #fff;
  background: #17201d;
  border: 0;
  border-radius: 4px;
  box-shadow: 0 18px 46px rgba(18, 35, 47, 0.24);
  font-weight: 500;
}

/* Partner map lightbox */

.structure-redesign .structure-map-panel {
  width: min(1220px, calc(100vw - 44px));
  padding: 38px;
  color: var(--structure-rd-ink);
  background: var(--structure-rd-surface);
  border: 1px solid var(--structure-rd-line);
  border-radius: 5px;
  box-shadow: 0 28px 86px rgba(16, 31, 27, 0.25);
}

.structure-redesign .structure-map-header {
  align-items: end;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--structure-rd-line);
}

.structure-redesign .structure-map-header h2 {
  color: var(--structure-rd-ink);
  font-size: clamp(30px, 3.5vw, 50px);
  font-weight: 720;
  letter-spacing: -0.05em;
}

.structure-redesign .structure-map-title-content {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  white-space: nowrap;
}

.structure-redesign .structure-map-stat {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 9px;
  align-items: baseline;
  min-width: 0;
  padding: 0;
  background: transparent !important;
  border: 0;
  border-radius: 0;
  box-shadow: none !important;
}

.structure-redesign .structure-map-stat span {
  color: var(--structure-rd-muted);
  white-space: nowrap;
}

.structure-redesign .structure-map-stat strong {
  color: var(--structure-rd-ink);
  white-space: nowrap;
}

.structure-redesign .structure-map-body {
  gap: 36px;
}

.structure-redesign .structure-map-chart,
.structure-redesign .structure-map-network {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.structure-redesign .structure-map-partner-column {
  gap: 0;
}

.structure-redesign .structure-map-partner-card {
  width: 100%;
  margin: 0;
  padding-block: 14px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--structure-rd-line);
  border-radius: 0;
  box-shadow: none;
}

.structure-redesign .structure-map-partner-card:first-child {
  border-top: 1px solid var(--structure-rd-line);
}

.structure-redesign .structure-map-partner-card:hover,
.structure-redesign .structure-map-partner-card:focus-visible,
.structure-redesign .structure-map-partner-card.is-selected {
  background: var(--structure-rd-accent-soft);
  border-color: var(--structure-rd-accent);
  box-shadow: none;
  outline: 0;
  transform: none;
}

.structure-redesign .structure-map-partner-rank {
  color: var(--partner-color);
  background: transparent;
  border: 1px solid currentColor;
  box-shadow: none;
}

.structure-redesign .structure-map-center-node {
  color: var(--structure-rd-ink);
  background: var(--structure-rd-accent-soft);
  border: 1px solid var(--structure-rd-accent);
  box-shadow: none;
}

.structure-redesign .structure-map-center-node :is(span, strong, small) {
  color: inherit;
}

.structure-redesign .structure-map-detail {
  position: relative;
  padding: 0 0 0 30px;
  background: transparent !important;
  border: 0;
  border-left: 1px solid var(--structure-rd-line);
  border-radius: 0;
  box-shadow: none !important;
}

.structure-redesign .structure-map-detail-header {
  padding-right: 44px;
}

.structure-redesign .structure-map-category {
  padding: 14px 0;
  background: transparent !important;
  border: 0;
  border-bottom: 1px solid var(--structure-rd-line);
  border-radius: 0;
  box-shadow: none !important;
}

.structure-redesign .structure-map-category:last-child {
  border-bottom: 0;
}

/* Dark mode refinements */

html[data-theme="dark"] .structure-redesign .structure-intro-card,
html[data-theme="dark"] .structure-redesign .structure-type-card,
html[data-theme="dark"] .structure-redesign .structure-trade-card,
html[data-theme="dark"] .structure-redesign .structure-concentration-card,
html[data-theme="dark"] .structure-redesign .structure-panel,
html[data-theme="dark"] .structure-redesign .structure-toolbar,
html[data-theme="dark"] .structure-redesign .structure-mini-grid div,
html[data-theme="dark"] .structure-redesign .structure-capital-box,
html[data-theme="dark"] .structure-redesign .structure-partner-row,
html[data-theme="dark"] .structure-redesign .structure-map-stat,
html[data-theme="dark"] .structure-redesign .structure-map-detail,
html[data-theme="dark"] .structure-redesign .structure-map-category,
html[data-theme="dark"] .structure-redesign .structure-concentration-card .structure-concentration-main,
html[data-theme="dark"] .structure-redesign .structure-concentration-card .structure-concentration-grid div {
  color: var(--structure-rd-ink);
  background: transparent !important;
  border-color: var(--structure-rd-line);
  box-shadow: none !important;
}

html[data-theme="dark"] .structure-redesign .structure-chart {
  filter: saturate(0.78) brightness(0.96);
}

html[data-theme="dark"] .structure-redesign .structure-map-chart,
html[data-theme="dark"] .structure-redesign .structure-map-network,
html[data-theme="dark"] .structure-redesign .structure-map-partner-card {
  background: transparent;
  box-shadow: none;
}

html[data-theme="dark"] .structure-redesign .structure-map-partner-card:hover,
html[data-theme="dark"] .structure-redesign .structure-map-partner-card:focus-visible,
html[data-theme="dark"] .structure-redesign .structure-map-partner-card.is-selected,
html[data-theme="dark"] .structure-redesign .structure-map-center-node {
  background: var(--structure-rd-accent-soft);
  box-shadow: none;
}

html[data-theme="dark"] .structure-redesign .structure-help-popover {
  background: rgba(15, 27, 24, 0.96);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.44);
}

/* Responsive */

@media (max-width: 1180px) {
  .structure-redesign .page-shell.structure-page {
    width: min(var(--structure-rd-content), calc(100% - 44px));
  }

  .structure-redesign .structure-toolbar {
    grid-template-columns: minmax(260px, 1.55fr) minmax(112px, 0.44fr) minmax(150px, 0.58fr);
    gap: 24px;
  }

  .structure-redesign .structure-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 54px;
  }

  .structure-redesign .structure-hero-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-top: 0;
  }

  .structure-redesign .structure-concentration-card {
    grid-column: auto;
  }

  .structure-redesign .structure-concentration-card .structure-concentration {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .structure-redesign .structure-concentration-card .structure-concentration-grid div {
    padding-left: 15px;
  }

  .structure-redesign .structure-trade-layout {
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.65fr);
    gap: 42px;
  }

  .structure-redesign .structure-trade-mainline {
    gap: 22px;
  }
}

@media (max-width: 860px) {
  .structure-redesign .page-shell.structure-page {
    width: calc(100% - 36px);
    padding-top: 34px;
  }

  .structure-redesign .structure-toolbar {
    grid-template-columns: minmax(0, 1fr) minmax(110px, 0.38fr);
    gap: 24px 18px;
    margin-bottom: 48px;
  }

  .structure-redesign .structure-toolbar .toolbar-metrics {
    grid-column: 1 / -1;
  }

  .structure-redesign .structure-hero-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .structure-redesign .structure-concentration-card {
    grid-column: 1 / -1;
  }

  .structure-redesign .structure-concentration-card .structure-concentration {
    grid-template-columns: minmax(160px, 0.65fr) minmax(0, 1.35fr);
  }

  .structure-redesign .structure-gdp-panel {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .structure-redesign .structure-gdp-panel .structure-section-heading {
    grid-row: auto;
  }

  .structure-redesign .structure-grid {
    grid-template-columns: 1fr;
  }

  .structure-redesign .structure-panel-wide,
  .structure-redesign .structure-trade-panel {
    grid-column: auto;
  }

  .structure-redesign :is(.structure-employment-panel, .structure-resources-panel) {
    min-height: 0;
    padding-inline: 0;
  }

  .structure-redesign .structure-trade-layout {
    grid-template-columns: 1fr;
  }

  .structure-redesign .structure-trade-heading {
    flex-wrap: wrap;
  }

  .structure-redesign .structure-trade-heading .structure-heading-tools {
    flex: 1 1 100%;
    justify-content: space-between;
  }

  .structure-redesign .structure-trade-mainline {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    gap: 24px;
  }

  .structure-redesign .structure-partners-column {
    margin-top: 16px;
  }

  .structure-redesign .structure-map-body {
    grid-template-columns: 1fr;
  }

  .structure-redesign .structure-map-detail {
    padding: 28px 0 0;
    border-top: 1px solid var(--structure-rd-line);
    border-left: 0;
  }
}

@media (max-width: 620px) {
  .structure-redesign .page-shell.structure-page {
    width: calc(100% - 28px);
    padding: 30px 0 64px;
  }

  .structure-redesign .structure-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 18px;
    margin-bottom: 46px;
  }

  .structure-redesign .structure-toolbar .single-picker,
  .structure-redesign .structure-toolbar .toolbar-metrics {
    grid-column: 1 / -1;
  }

  .structure-redesign .structure-toolbar :is(select, input[type="search"]),
  .structure-redesign .structure-toolbar .toolbar-metrics strong {
    font-size: 17px;
  }

  .structure-redesign .structure-hero {
    gap: 46px;
    margin-bottom: 58px;
  }

  .structure-redesign .structure-kicker {
    font-size: 10px;
    letter-spacing: 0.14em;
  }

  .structure-redesign .structure-intro-card h1 {
    font-size: clamp(56px, 21vw, 82px);
  }

  .structure-redesign .structure-headline {
    margin-top: 22px;
    font-size: 18px;
  }

  .structure-redesign .structure-meta-row {
    display: grid;
    gap: 8px;
    margin-top: 24px;
  }

  .structure-redesign .structure-hero-facts {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .structure-redesign .structure-concentration-card {
    grid-column: auto;
  }

  .structure-redesign .structure-concentration-card .structure-concentration {
    grid-template-columns: 1fr;
  }

  .structure-redesign .structure-panel {
    padding: 38px 0 46px;
  }

  .structure-redesign .structure-section-heading {
    display: block;
    margin-bottom: 28px;
  }

  .structure-redesign .structure-section-heading h2 {
    font-size: clamp(38px, 12vw, 52px);
  }

  .structure-redesign .structure-mini-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .structure-redesign .structure-mini-grid div {
    padding: 18px 0 0;
    border-top: 1px solid var(--structure-rd-line);
    border-left: 0;
  }

  .structure-redesign .structure-mini-grid div:first-child {
    padding-top: 0;
    border-top: 0;
  }

  .structure-redesign .structure-trade-heading .structure-heading-tools {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: start;
    margin-top: 24px;
  }

  .structure-redesign .structure-trade-years {
    width: min(100%, 250px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .structure-redesign .structure-chart {
    min-height: 420px;
  }

  .structure-redesign .structure-partner-heading {
    align-items: flex-end;
  }

  .structure-redesign .structure-partner-heading h3 {
    max-width: none;
    font-size: 18px;
    white-space: nowrap;
  }

  .structure-redesign .structure-map-panel {
    width: calc(100vw - 20px);
    padding: 28px 20px;
  }

  .structure-redesign .structure-map-header {
    padding-right: 38px;
  }

  .structure-redesign .structure-map-header h2 {
    font-size: 19px;
    letter-spacing: -0.035em;
    line-height: 1.08;
  }

  .structure-redesign .structure-map-stat {
    width: auto;
  }
}

@media (max-width: 720px) {
  .structure-redesign .structure-map-links {
    display: none;
  }
}
