.sdprm {
  --sdprm-ink: #172033;
  --sdprm-muted: #647084;
  --sdprm-line: #dfe5ec;
  --sdprm-surface: #ffffff;
  --sdprm-subtle: #f6f8fb;
  --sdprm-accent: #64748b;
  --sdprm-soft: #dbe4ee;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  color: var(--sdprm-ink);
  font-family: inherit;
  line-height: 1.5;
  container-type: inline-size;
}

.sdprm *,
.sdprm *::before,
.sdprm *::after { box-sizing: border-box; }

/* Theme styles can otherwise override the browser's native [hidden] rule. */
.sdprm [hidden] { display: none !important; }

.sdprm button,
.sdprm select { font: inherit; }

.sdprm button { -webkit-tap-highlight-color: transparent; }

.sdprm__hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(22px, 4vw, 42px);
  color: #fff;
  background:
    radial-gradient(circle at 92% 5%, color-mix(in srgb, var(--sdprm-accent) 55%, transparent), transparent 36%),
    linear-gradient(135deg, #172033, #26344e);
  border-radius: 20px 20px 0 0;
}

.sdprm__hero h2 {
  max-width: 760px;
  margin: 5px 0 8px;
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.sdprm__eyebrow {
  margin: 0;
  color: var(--sdprm-accent);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .13em;
}

.sdprm__hero .sdprm__eyebrow { color: var(--sdprm-soft); }

.sdprm__intro {
  max-width: 680px;
  margin: 0;
  color: #d8e0ec;
  font-size: 1rem;
}

.sdprm__share {
  flex: 0 0 auto;
  min-width: 88px;
  min-height: 44px;
  padding: 10px 18px;
  color: #fff;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  cursor: pointer;
}

.sdprm__share:hover,
.sdprm__share:focus-visible { background: rgba(255, 255, 255, .2); }

.sdprm__freshness {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 11px;
  padding: 11px clamp(18px, 3vw, 32px);
  color: #344056;
  background: #eef6f1;
  border: solid var(--sdprm-line);
  border-width: 0 1px 1px;
  font-size: .84rem;
}

.sdprm__fresh-dot {
  width: 9px;
  height: 9px;
  background: #238052;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(35, 128, 82, .12);
}

.sdprm__freshness-note {
  margin-left: auto;
  color: var(--sdprm-muted);
}

.sdprm__controls {
  display: grid;
  grid-template-columns: auto auto minmax(200px, 1fr);
  align-items: end;
  gap: 18px;
  padding: 20px clamp(18px, 3vw, 32px);
  background: var(--sdprm-surface);
  border: solid var(--sdprm-line);
  border-width: 0 1px 1px;
}

.sdprm__controls fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.sdprm__controls legend,
.sdprm__country-control > span {
  display: block;
  margin: 0 0 7px;
  color: var(--sdprm-muted);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.sdprm__segmented {
  display: inline-flex;
  padding: 3px;
  background: #edf1f5;
  border-radius: 11px;
}

.sdprm__segmented button {
  min-height: 40px;
  padding: 8px 13px;
  color: #526078;
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.sdprm__segmented button span {
  margin-right: 3px;
  font-size: .75em;
}

.sdprm__segmented button.is-active {
  color: var(--sdprm-ink);
  background: #fff;
  box-shadow: 0 1px 4px rgba(23, 32, 51, .13);
}

.sdprm__segmented button:focus-visible,
.sdprm select:focus-visible,
.sdprm__mobile-ranking button:focus-visible,
.sdprm tbody tr:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--sdprm-accent) 35%, transparent);
  outline-offset: 2px;
}

.sdprm__country-control {
  width: min(100%, 360px);
  justify-self: end;
}

.sdprm__country-control select {
  width: 100%;
  min-height: 46px;
  padding: 8px 38px 8px 12px;
  color: var(--sdprm-ink);
  background: #fff;
  border: 1px solid #cfd7e2;
  border-radius: 10px;
}

.sdprm__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--sdprm-surface);
  border: solid var(--sdprm-line);
  border-width: 0 1px 1px;
}

.sdprm__stats article {
  min-width: 0;
  padding: 18px clamp(14px, 2vw, 24px);
  border-right: 1px solid var(--sdprm-line);
}

.sdprm__stats article:last-child { border-right: 0; }

.sdprm__stats span,
.sdprm__stats small {
  display: block;
  color: var(--sdprm-muted);
  font-size: .75rem;
}

.sdprm__stats strong {
  display: block;
  overflow: hidden;
  margin: 3px 0 1px;
  color: var(--sdprm-ink);
  font-size: clamp(1.1rem, 2.3vw, 1.55rem);
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sdprm__workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(280px, .75fr);
  align-items: stretch;
  gap: 18px;
  padding: 22px;
  background: var(--sdprm-subtle);
  border: solid var(--sdprm-line);
  border-width: 0 1px 1px;
}

.sdprm__map-card,
.sdprm__detail {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--sdprm-line);
  border-radius: 15px;
  box-shadow: 0 8px 26px rgba(23, 32, 51, .05);
}

.sdprm__map-card { overflow: hidden; }

.sdprm__map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--sdprm-line);
  font-size: .88rem;
}

.sdprm__legend {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--sdprm-muted);
  font-size: .7rem;
}

.sdprm__legend i {
  display: block;
  width: 88px;
  height: 7px;
  border-radius: 999px;
}

.sdprm__legend-key {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 18px;
  min-height: 37px;
  padding: 7px 18px;
  color: var(--sdprm-muted);
  background: #f7f9fb;
  border-bottom: 1px solid var(--sdprm-line);
  font-size: .68rem;
}

.sdprm__legend-key span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sdprm__key-swatch {
  display: inline-block;
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  border: 1px solid #fff;
  border-radius: 3px;
  box-shadow: 0 0 0 1px #aeb8c5;
}

.sdprm__key-swatch--unlisted { background: #cbd4df; }
.sdprm__key-swatch--unavailable { background: #8794a6; }

.sdprm__map {
  width: 100%;
  height: clamp(390px, 48vw, 570px);
  background: #edf1f5;
}

.sdprm__map-fallback {
  margin: 20px;
  padding: 24px;
  color: #6c4c00;
  background: #fff8df;
  border: 1px solid #ecd690;
  border-radius: 10px;
}

.sdprm__hint {
  margin: 0;
  padding: 10px 18px 12px;
  color: var(--sdprm-muted);
  border-top: 1px solid var(--sdprm-line);
  font-size: .75rem;
  text-align: center;
}

.sdprm__detail {
  align-self: stretch;
  overflow: hidden;
  padding: clamp(18px, 2.5vw, 28px);
}

.sdprm__detail [data-detail-content] {
  width: 100%;
  min-width: 0;
}

.sdprm__detail-empty {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 12px;
  text-align: center;
}

.sdprm__element {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  margin-bottom: 16px;
  color: var(--sdprm-ink);
  background: var(--sdprm-soft);
  border: 1px solid color-mix(in srgb, var(--sdprm-accent) 35%, white);
  border-radius: 17px;
  font-size: 1.8rem;
  font-weight: 800;
}

.sdprm__detail h3,
.sdprm__section-head h3 {
  margin: 0;
  color: var(--sdprm-ink);
  font-size: 1.35rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.sdprm__detail-empty p {
  max-width: 290px;
  margin: 8px 0 0;
  color: var(--sdprm-muted);
  font-size: .9rem;
}

.sdprm__detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--sdprm-line);
}

.sdprm__detail-head p {
  margin: 0 0 4px;
  color: var(--sdprm-accent);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.sdprm__detail-head button {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--sdprm-muted);
  background: var(--sdprm-subtle);
  border: 1px solid var(--sdprm-line);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
}

.sdprm__detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.sdprm__detail-grid > div {
  min-width: 0;
  padding: 11px;
  background: var(--sdprm-subtle);
  border-radius: 9px;
}

.sdprm__detail-grid span,
.sdprm__ratio span {
  display: block;
  color: var(--sdprm-muted);
  font-size: .68rem;
}

.sdprm__detail-grid strong,
.sdprm__ratio strong {
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
  font-size: .95rem;
}

.sdprm .is-positive { color: #177245; }
.sdprm .is-negative { color: #b04444; }
.sdprm .is-neutral { color: var(--sdprm-ink); }

.sdprm__ratio {
  padding: 13px;
  background: color-mix(in srgb, var(--sdprm-soft) 48%, white);
  border-radius: 9px;
}

.sdprm__ratio small {
  display: block;
  margin-top: 5px;
  color: var(--sdprm-muted);
  font-size: .67rem;
}

.sdprm__operations { margin-top: 17px; }

.sdprm__operations h4 {
  margin: 0 0 7px;
  font-size: .82rem;
}

.sdprm__operations ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sdprm__operations li {
  max-width: 100%;
  padding: 5px 8px;
  color: #4d586b;
  background: #f0f3f7;
  border-radius: 999px;
  font-size: .72rem;
  overflow-wrap: anywhere;
  white-space: normal;
}

.sdprm__note {
  margin: 16px 0 0;
  padding-top: 14px;
  color: var(--sdprm-muted);
  border-top: 1px solid var(--sdprm-line);
  font-size: .78rem;
  overflow-wrap: anywhere;
}

.sdprm__ranking {
  padding: clamp(22px, 3.5vw, 38px);
  background: #fff;
  border: solid var(--sdprm-line);
  border-width: 0 1px 1px;
}

.sdprm__section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 18px;
}

.sdprm__section-head > p {
  max-width: 470px;
  margin: 0;
  color: var(--sdprm-muted);
  font-size: .78rem;
  text-align: right;
}

.sdprm__table-wrap {
  overflow: hidden;
  border: 1px solid var(--sdprm-line);
  border-radius: 12px;
}

.sdprm table {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  font-size: .82rem;
}

.sdprm th,
.sdprm td {
  padding: 12px 13px;
  border: 0;
  border-bottom: 1px solid var(--sdprm-line);
  text-align: right;
  white-space: nowrap;
}

.sdprm thead th {
  color: var(--sdprm-muted);
  background: #f5f7fa;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.sdprm thead th:nth-child(2),
.sdprm tbody th { text-align: left; }

.sdprm tbody tr {
  cursor: pointer;
  transition: background-color .15s ease;
}

.sdprm tbody tr:hover,
.sdprm tbody tr.is-selected { background: color-mix(in srgb, var(--sdprm-soft) 45%, white); }

.sdprm tbody tr:last-child th,
.sdprm tbody tr:last-child td { border-bottom: 0; }

.sdprm tbody .sdprm__inline-row {
  cursor: default;
  background: #fff;
}

.sdprm tbody .sdprm__inline-row:hover { background: #fff; }

.sdprm tbody .sdprm__inline-row td {
  padding: 0;
  border-bottom: 1px solid var(--sdprm-line);
  text-align: left;
  white-space: normal;
}

.sdprm__inline-detail {
  min-width: 0;
  padding: 16px 18px;
  color: var(--sdprm-ink);
  background: color-mix(in srgb, var(--sdprm-soft) 34%, white);
  border-left: 4px solid var(--sdprm-accent);
}

.sdprm__inline-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.sdprm__inline-head small,
.sdprm__inline-head strong { display: block; }

.sdprm__inline-head small {
  color: var(--sdprm-accent);
  font-size: .63rem;
  font-weight: 800;
  letter-spacing: .06em;
}

.sdprm__inline-head strong {
  margin-top: 2px;
  font-size: 1.05rem;
}

.sdprm__inline-head button {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  color: var(--sdprm-muted);
  background: #fff;
  border: 1px solid var(--sdprm-line);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
}

.sdprm__inline-detail dl {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.sdprm__inline-detail dl > div {
  min-width: 0;
  padding: 9px 10px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid color-mix(in srgb, var(--sdprm-line) 72%, transparent);
  border-radius: 8px;
}

.sdprm__inline-detail dt {
  color: var(--sdprm-muted);
  font-size: .64rem;
}

.sdprm__inline-detail dd {
  margin: 3px 0 0;
  font-size: .82rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.sdprm__inline-detail > p {
  margin: 10px 0 0;
  color: var(--sdprm-muted);
  font-size: .72rem;
  overflow-wrap: anywhere;
}

.sdprm__mobile-ranking { display: none; }

.sdprm__methodology {
  background: #f7f9fb;
  border: solid var(--sdprm-line);
  border-width: 0 1px 1px;
  border-radius: 0 0 20px 20px;
}

.sdprm__methodology summary {
  padding: 18px clamp(20px, 3vw, 36px);
  cursor: pointer;
  font-weight: 750;
  list-style-position: inside;
}

.sdprm__methodology > div {
  padding: 0 clamp(20px, 3vw, 36px) 25px;
  color: #536075;
  font-size: .82rem;
}

.sdprm__methodology ul { margin: 0 0 15px; padding-left: 20px; }
.sdprm__methodology li + li { margin-top: 7px; }
.sdprm__methodology p { margin: 10px 0 0; }
.sdprm__methodology a { color: #245b91; text-decoration: underline; }
.sdprm__source-status { font-size: .75rem; }

.sdprm__share-status {
  min-height: 20px;
  margin: 8px 0 0;
  color: var(--sdprm-muted);
  font-size: .78rem;
  text-align: right;
}

@container (max-width: 900px) {
  .sdprm__controls { grid-template-columns: 1fr 1fr; }
  .sdprm__country-control { width: 100%; max-width: none; grid-column: 1 / -1; justify-self: stretch; }
  .sdprm__workspace { grid-template-columns: 1fr; }
  .sdprm__detail { min-height: 0; }
  .sdprm__detail-empty { min-height: 230px; }
  .sdprm__inline-detail dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@container (max-width: 680px) {
  .sdprm { margin-inline: 0; }

  .sdprm__hero {
    display: block;
    border-radius: 14px 14px 0 0;
  }

  .sdprm__hero h2 { font-size: clamp(1.65rem, 8.5vw, 2.25rem); }

  .sdprm__share {
    width: 100%;
    margin-top: 18px;
  }

  .sdprm__freshness { align-items: flex-start; }
  .sdprm__freshness-note { width: 100%; margin-left: 20px; }

  .sdprm__controls {
    grid-template-columns: 1fr;
    gap: 15px;
    padding-block: 18px;
  }

  .sdprm__country-control { grid-column: auto; }
  .sdprm__segmented { display: flex; width: 100%; }
  .sdprm__segmented button { flex: 1; min-height: 44px; }

  .sdprm__stats { grid-template-columns: 1fr 1fr; }
  .sdprm__stats article { border-bottom: 1px solid var(--sdprm-line); }
  .sdprm__stats article:nth-child(2) { border-right: 0; }
  .sdprm__stats article:nth-child(n+3) { border-bottom: 0; }
  .sdprm__stats strong { font-size: 1.08rem; }

  .sdprm__workspace { gap: 13px; padding: 12px; }
  .sdprm__map-toolbar { display: block; }
  .sdprm__legend { margin-top: 8px; }
  .sdprm__legend-key { align-items: flex-start; flex-direction: column; gap: 6px; padding-block: 9px; }
  .sdprm__map { height: 330px; min-height: 330px; }
  .sdprm__hint { text-align: left; }

  .sdprm__detail { padding: 18px; }
  .sdprm__detail-empty { min-height: 180px; padding: 20px 10px; }
  .sdprm__element { width: 62px; height: 62px; font-size: 1.45rem; }

  .sdprm__section-head { display: block; }
  .sdprm__section-head > p { margin-top: 8px; text-align: left; }
  .sdprm__table-wrap { display: none; }

  .sdprm__mobile-ranking {
    display: grid;
    gap: 8px;
  }

  .sdprm__mobile-ranking button {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 58px;
    padding: 9px 11px;
    color: var(--sdprm-ink);
    background: #fff;
    border: 1px solid var(--sdprm-line);
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
  }

  .sdprm__mobile-ranking button.is-selected {
    background: color-mix(in srgb, var(--sdprm-soft) 45%, white);
    border-color: var(--sdprm-accent);
  }

  .sdprm__mobile-ranking button > span:nth-child(2) { min-width: 0; }
  .sdprm__mobile-ranking strong,
  .sdprm__mobile-ranking small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sdprm__mobile-ranking small { margin-top: 2px; color: var(--sdprm-muted); font-size: .68rem; }
  .sdprm__mobile-ranking b { font-size: .78rem; white-space: nowrap; }

  .sdprm__mobile-ranking .sdprm__inline-detail {
    margin-top: -3px;
    border: 1px solid color-mix(in srgb, var(--sdprm-accent) 45%, var(--sdprm-line));
    border-left-width: 4px;
    border-radius: 10px;
  }

  .sdprm__inline-detail dl { grid-template-columns: 1fr 1fr; }

  .sdprm__rank-number {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    color: var(--sdprm-muted);
    background: #f0f3f6;
    border-radius: 50%;
    font-size: .72rem;
    font-weight: 800;
  }

  .sdprm__methodology { border-radius: 0 0 14px 14px; }
}

@container (max-width: 380px) {
  .sdprm__detail-grid { grid-template-columns: 1fr; }
  .sdprm__stats { grid-template-columns: 1fr; }
  .sdprm__stats article { border-right: 0; border-bottom: 1px solid var(--sdprm-line); }
  .sdprm__stats article:last-child { border-bottom: 0; }
  .sdprm__mobile-ranking button { grid-template-columns: 28px minmax(0, 1fr); }
  .sdprm__mobile-ranking button > b { grid-column: 2; }
  .sdprm__inline-detail dl { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .sdprm *,
  .sdprm *::before,
  .sdprm *::after { scroll-behavior: auto !important; transition: none !important; }
}
