:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #eef3f7;
  --text: #17202a;
  --muted: #5c6b78;
  --border: #d8e0e7;
  --primary: #12344d;
  --primary-2: #0f5f6d;
  --accent: #2f8f6b;
  --accent-2: #d69c2f;
  --danger: #b44a4a;
  --shadow: 0 16px 44px rgba(18, 52, 77, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 28px rgba(18, 52, 77, 0.06);
}

.header-inner,
.hero,
.section-inner,
.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-weight: 800;
  filter: drop-shadow(0 5px 13px rgba(17, 50, 74, 0.12));
}

.brand-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  filter:
    drop-shadow(1.5px 0 0 #fff)
    drop-shadow(-1.5px 0 0 #fff)
    drop-shadow(0 1.5px 0 #fff)
    drop-shadow(0 -1.5px 0 #fff)
    drop-shadow(0 7px 16px rgba(17, 50, 74, 0.18));
}

.brand-logo-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.brand-logo-copy {
  display: grid;
  gap: 0;
  line-height: 1;
}

.brand-logo-main {
  color: var(--primary);
  font-family: Montserrat, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 29px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 0.95;
  paint-order: stroke fill;
  -webkit-text-stroke: 5.4px #fff;
  text-shadow:
    1.4px 0 0 #fff,
    -1.4px 0 0 #fff,
    0 1.4px 0 #fff,
    0 -1.4px 0 #fff,
    0 8px 16px rgba(17, 50, 74, 0.13);
}

.brand-logo-sub {
  margin-top: 4px;
  color: var(--muted);
  font-family: Montserrat, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  paint-order: stroke fill;
  -webkit-text-stroke: 2.4px #fff;
  text-shadow:
    1px 0 0 #fff,
    -1px 0 0 #fff,
    0 1px 0 #fff,
    0 -1px 0 #fff,
    0 5px 10px rgba(17, 50, 74, 0.12);
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 7px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.brand-mark span {
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.74);
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 750;
}

.nav > a,
.about-toggle {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 14px;
  background: transparent;
  color: var(--primary);
  line-height: 38px;
}

.nav > a:hover,
.about-menu:hover .about-toggle,
.about-toggle:focus {
  border-color: rgba(15, 107, 110, 0.18);
  background: #eef6f4;
  color: var(--primary-2);
}

.about-menu {
  position: relative;
  display: inline-flex;
}

.about-toggle {
  font: inherit;
  cursor: pointer;
}

.about-toggle::after {
  content: "";
  display: inline-block;
  margin-left: 7px;
  border: 4px solid transparent;
  border-top-color: currentColor;
  transform: translateY(2px);
}

.about-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  display: grid;
  min-width: 166px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(18, 52, 77, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -4px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.about-menu:hover .about-dropdown,
.about-menu:focus-within .about-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.about-dropdown a {
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.about-dropdown a:hover {
  background: var(--surface-2);
  color: var(--primary);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 750;
  white-space: nowrap;
}

.button.primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

.button.secondary {
  border-color: var(--border);
  background: var(--surface);
  color: var(--primary);
}

.hero {
  padding: 64px 0 38px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  align-items: center;
  gap: 42px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--primary-2);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 690px;
  margin-bottom: 18px;
  color: var(--primary);
  font-size: clamp(40px, 5.1vw, 66px);
  line-height: 1.02;
}

.hero-copy {
  max-width: 640px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 620px;
  gap: 12px;
}

.metric {
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.metric strong {
  display: block;
  color: var(--primary);
  font-size: 22px;
}

.metric span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.app-preview {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.app-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
}

.toolbar-title {
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
}

.toolbar-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.toolbar-tabs span {
  padding: 6px 9px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

@media (max-width: 1120px) {
  .app-toolbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 16px;
    gap: 10px;
  }

  .toolbar-tabs {
    justify-content: flex-start;
  }
}

.map-shell {
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 430px;
}

.filter-panel {
  padding: 16px;
  border-right: 1px solid var(--border);
  background: #fbfcfd;
}

.filter-label {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.filter-pill {
  display: block;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding: 10px 11px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 750;
}

.filter-pill .filter-value {
  display: block;
  margin-top: 3px;
  color: var(--primary);
  font-size: 18px;
  font-weight: 850;
  line-height: 1.12;
}

.filter-pill.compact .filter-value {
  margin-top: 0;
}

.mini-chart {
  margin-top: 18px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  height: 86px;
  gap: 6px;
  margin-top: 12px;
}

.bars span {
  border-radius: 4px 4px 0 0;
  background: var(--primary-2);
  opacity: 0.82;
}

.map-canvas {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.56) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.56) 1px, transparent 1px),
    radial-gradient(circle at 30% 26%, rgba(47, 143, 107, 0.48), transparent 12%),
    radial-gradient(circle at 64% 37%, rgba(214, 156, 47, 0.48), transparent 13%),
    radial-gradient(circle at 48% 68%, rgba(15, 95, 109, 0.42), transparent 16%),
    radial-gradient(circle at 78% 72%, rgba(180, 74, 74, 0.34), transparent 10%),
    var(--surface-2);
  background-size: 48px 48px, 48px 48px, auto, auto, auto, auto, auto;
}

.map-shape {
  position: absolute;
  inset: 44px 44px 38px 52px;
  clip-path: polygon(42% 0, 58% 9%, 66% 21%, 79% 29%, 84% 44%, 78% 61%, 86% 76%, 69% 89%, 51% 84%, 38% 97%, 21% 88%, 14% 72%, 20% 55%, 10% 38%, 25% 28%, 28% 12%);
  background:
    radial-gradient(circle at 36% 24%, rgba(214, 156, 47, 0.72), transparent 12%),
    radial-gradient(circle at 58% 42%, rgba(47, 143, 107, 0.72), transparent 15%),
    radial-gradient(circle at 44% 66%, rgba(15, 95, 109, 0.68), transparent 17%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.08));
}

.map-callout {
  position: absolute;
  right: 26px;
  bottom: 28px;
  width: min(220px, calc(100% - 52px));
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.map-callout strong {
  display: block;
  color: var(--primary);
  font-size: 14px;
}

.map-callout span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.preview-tooltip-sample {
  position: absolute;
  z-index: 3;
  width: 218px;
  padding: 10px 12px;
  border-radius: 7px;
  background: rgba(29, 34, 32, 0.9);
  color: #fff;
  box-shadow: 0 16px 34px rgba(18, 52, 77, 0.24);
}

.preview-tooltip-sample::after {
  content: "";
  position: absolute;
  bottom: -7px;
  left: 36px;
  width: 14px;
  height: 14px;
  background: rgba(29, 34, 32, 0.9);
  transform: rotate(45deg);
}

.preview-tooltip-sample span {
  display: block;
  margin-top: 5px;
}

.preview-tooltip-sample span:first-child {
  margin-top: 0;
}

.preview-tooltip-sample b {
  display: block;
  color: rgba(255, 255, 255, 0.62);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.1;
}

.preview-tooltip-sample strong {
  display: block;
  margin-top: 1px;
  color: rgba(255, 255, 255, 0.96);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
}

.preview-tooltip-sample .sample-bar {
  height: 3px;
  margin-top: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.preview-tooltip-sample .sample-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.preview-tooltip-sample .sample-green i {
  background: #48a97f;
}

.preview-tooltip-sample .sample-amber i {
  background: #d8a947;
}

.preview-tooltip-sample .sample-red i {
  background: #c75d56;
}

.app-tooltip-sample {
  top: 128px;
  right: 72px;
}

.section {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.section.alt {
  background: var(--bg);
}

.section-inner {
  padding: 56px 0;
}

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

.section h2 {
  margin-bottom: 14px;
  color: var(--primary);
  font-size: 30px;
  line-height: 1.16;
}

.section-head p {
  max-width: 670px;
  margin-bottom: 0;
  color: var(--muted);
}

.ranking-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.ranking-carousel {
  position: relative;
  padding: 0 44px;
}

.ranking-carousel-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  overflow: visible;
}

.ranking-carousel-control {
  position: absolute;
  z-index: 5;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--primary-2);
  box-shadow: 0 10px 22px rgba(18, 52, 77, 0.12);
  transform: translateY(-50%);
  cursor: pointer;
}

.ranking-carousel-control.prev {
  left: 0;
}

.ranking-carousel-control.next {
  right: 0;
}

.ranking-carousel-control svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ranking-carousel-control:hover {
  background: #f4f8fa;
}

.ranking-card,
.article-card,
.feature {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.ranking-card {
  padding: 18px;
}

.hotspot-ranking-card {
  min-width: 0;
}

.hotspot-ranking-card.is-hidden {
  display: none;
}

.ranking-card h3,
.article-card h3 {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.25;
}

.hotspot-ranking-card h3 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.hotspot-rank-table {
  margin: 14px 0 16px;
}

.hotspot-rank-table .rank-table-row {
  min-height: 56px;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 8px 0;
}

.hotspot-rank-table .rank-number {
  width: 26px;
  height: 26px;
  font-size: 12px;
}

.hotspot-rank-table .rank-place b {
  font-size: 15px;
}

.hotspot-rank-table .rank-place small {
  font-size: 12px;
}

.hotspot-rank-table .rank-score {
  padding: 4px 8px;
  font-size: 15px;
}

.hotspot-rank-table .rank-metric {
  margin-right: 0;
}

.ranking-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 18px;
}

.rank-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.rank-row-link {
  margin: -4px;
  padding: 4px;
  border-radius: 7px;
  transition: background 160ms ease;
}

.rank-row-link:hover {
  background: #f4f8fa;
}

.rank-row b {
  color: var(--primary);
}

.rank-row small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.rank-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  padding: 4px 8px;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.2;
}

.rank-value-positive {
  background: #e8f4ef;
  color: #1d684f;
}

.rank-value-warning {
  background: #f7e6e6;
  color: #93403f;
}

.rank-index {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--primary);
  font-size: 12px;
  font-weight: 850;
}

.text-link {
  color: var(--primary-2);
  font-weight: 800;
}

.rankings-hero {
  padding: 54px 0 26px;
}

.rankings-hero h1 {
  max-width: 820px;
  margin-bottom: 20px;
}

.rankings-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(430px, 0.9fr);
  align-items: center;
  gap: 42px;
}

.rankings-preview {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.rankings-preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  color: var(--primary);
  font-size: 14px;
  font-weight: 850;
}

.rankings-preview-toolbar div {
  display: flex;
  gap: 7px;
}

.rankings-preview-toolbar i {
  width: 38px;
  height: 26px;
  border-radius: 6px;
  background: var(--surface-2);
}

.rankings-preview-map {
  position: relative;
  min-height: 382px;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.58)),
    #eaf1f5;
}

.preview-grid-line {
  position: absolute;
  background: rgba(255, 255, 255, 0.72);
}

.preview-grid-line.vertical {
  top: 0;
  bottom: 0;
  width: 1px;
}

.preview-grid-line.horizontal {
  right: 0;
  left: 0;
  height: 1px;
}

.preview-grid-line.vertical.one { left: 24%; }
.preview-grid-line.vertical.two { left: 49%; }
.preview-grid-line.vertical.three { left: 74%; }
.preview-grid-line.horizontal.one { top: 25%; }
.preview-grid-line.horizontal.two { top: 52%; }
.preview-grid-line.horizontal.three { top: 78%; }

.preview-shape,
.preview-heat {
  position: absolute;
  pointer-events: none;
}

.preview-shape {
  opacity: 0.42;
  background: rgba(255, 255, 255, 0.62);
  clip-path: polygon(18% 12%, 64% 4%, 90% 28%, 78% 64%, 52% 88%, 18% 70%, 5% 38%);
}

.shape-one {
  top: 52px;
  left: 210px;
  width: 230px;
  height: 250px;
}

.shape-two {
  right: -34px;
  bottom: -18px;
  width: 280px;
  height: 250px;
  transform: rotate(15deg);
}

.shape-three {
  bottom: 18px;
  left: 150px;
  width: 210px;
  height: 180px;
  transform: rotate(-18deg);
}

.preview-heat {
  border-radius: 50%;
  filter: blur(14px);
  opacity: 0.72;
}

.heat-green {
  top: 70px;
  right: 110px;
  width: 138px;
  height: 138px;
  background: radial-gradient(circle, rgba(47, 143, 107, 0.75), rgba(47, 143, 107, 0));
}

.heat-gold {
  top: 96px;
  right: 198px;
  width: 112px;
  height: 112px;
  background: radial-gradient(circle, rgba(214, 156, 47, 0.76), rgba(214, 156, 47, 0));
}

.heat-teal {
  bottom: 66px;
  right: 215px;
  width: 154px;
  height: 154px;
  background: radial-gradient(circle, rgba(15, 95, 109, 0.72), rgba(15, 95, 109, 0));
}

.heat-red {
  right: 20px;
  bottom: 34px;
  width: 128px;
  height: 128px;
  background: radial-gradient(circle, rgba(180, 74, 74, 0.35), rgba(180, 74, 74, 0));
}

.preview-ranking-card {
  position: absolute;
  top: 28px;
  left: 22px;
  width: min(270px, calc(100% - 44px));
  padding: 12px;
  border: 1px solid rgba(216, 224, 231, 0.92);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 36px rgba(18, 52, 77, 0.12);
}

.rankings-tooltip-sample {
  top: 88px;
  right: 30px;
  width: 238px;
}

.preview-ranking-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 26px;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--surface-2);
}

.preview-ranking-row:last-child {
  border-bottom: 0;
}

.preview-ranking-row b,
.preview-ranking-row em {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--primary);
  font-style: normal;
  font-weight: 850;
}

.preview-ranking-row span {
  min-width: 0;
}

.preview-ranking-row strong,
.preview-ranking-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-ranking-row strong {
  color: var(--primary);
  font-size: 14px;
  font-weight: 850;
}

.preview-ranking-row small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.preview-ranking-row em {
  border: 1px solid #d3e2e8;
  background: #edf5f7;
  color: var(--primary-2);
}

.preview-map-label {
  position: absolute;
  right: 22px;
  bottom: 22px;
  min-width: 214px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 36px rgba(18, 52, 77, 0.12);
}

.preview-map-label small {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.preview-map-label strong {
  color: var(--primary);
  font-size: 18px;
  font-weight: 850;
}

.ranking-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.ranking-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
}

.rankings-accordion-section {
  padding-top: 26px;
}

.accordion-stack {
  display: grid;
  gap: 14px;
}

.ranking-disclosure {
  overflow: visible;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(18, 52, 77, 0.06);
}

.ranking-disclosure[open] {
  box-shadow: 0 18px 42px rgba(18, 52, 77, 0.1);
}

.ranking-disclosure > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  gap: 18px;
  min-height: 76px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
}

.ranking-disclosure > summary::-webkit-details-marker {
  display: none;
}

.ranking-disclosure > summary:hover {
  background: #f9fbfc;
}

.ranking-disclosure > summary b,
.ranking-disclosure > summary small {
  display: block;
}

.ranking-disclosure > summary b {
  color: var(--primary);
  font-size: 24px;
  line-height: 1.15;
}

.ranking-title-with-help {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
}

.ranking-help {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border: 1px solid #c9d6df;
  border-radius: 999px;
  background: #edf3f6;
  color: #0f6b6e;
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  cursor: help;
}

.ranking-help-tooltip {
  position: absolute;
  z-index: 30;
  left: 0;
  bottom: calc(100% + 10px);
  width: min(520px, calc(100vw - 56px));
  padding: 16px 18px;
  border-radius: 7px;
  background: rgba(29, 34, 32, 0.94);
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.14s ease, transform 0.14s ease;
  box-shadow: 0 16px 36px rgba(18, 52, 77, 0.24);
}

.ranking-help-tooltip strong,
.ranking-help-tooltip span {
  display: block;
}

.ranking-help-tooltip strong {
  margin-bottom: 8px;
  color: #fff;
  font-size: 15px;
  font-weight: 850;
}

.ranking-help-tooltip span {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
}

.ranking-help:hover .ranking-help-tooltip,
.ranking-help:focus .ranking-help-tooltip,
.ranking-help:focus-within .ranking-help-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.ranking-disclosure > summary small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.ranking-disclosure > summary i {
  position: relative;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface-2);
}

.ranking-disclosure > summary i::before,
.ranking-disclosure > summary i::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
  transform: translate(-50%, -50%);
}

.ranking-disclosure > summary i::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.ranking-disclosure[open] > summary i::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(0);
}

.ranking-disclosure-body {
  border-top: 1px solid var(--border);
  padding: 20px;
  background: #fbfcfd;
}

.rankings-page-grid,
.concept-grid,
.library-grid {
  display: grid;
  align-items: start;
  gap: 16px;
}

.rankings-page-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 28px;
}

.ranking-panel,
.concept-card,
.library-grid a {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.ranking-panel {
  padding: 16px;
}

.ranking-subpanel {
  overflow: visible;
  padding: 0;
}

.ranking-subpanel summary {
  list-style: none;
  cursor: pointer;
}

.ranking-subpanel summary::-webkit-details-marker {
  display: none;
}

.ranking-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.ranking-panel-head h3 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 0;
  color: var(--text);
  font-size: 21px;
}

.ranking-title-scope {
  color: var(--text);
}

.ranking-title-separator {
  color: var(--muted);
}

.ranking-type-house {
  color: #0F6B6E;
}

.ranking-type-unit {
  color: #8A5A3B;
}

.ranking-subpanel .ranking-panel-head {
  min-height: 74px;
  margin-bottom: 0;
  padding: 16px;
  align-items: center;
}

.ranking-subpanel[open] .ranking-panel-head {
  border-bottom: 1px solid var(--surface-2);
}

.ranking-panel-head i {
  position: relative;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface-2);
}

.ranking-panel-head i::before,
.ranking-panel-head i::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
  transform: translate(-50%, -50%);
}

.ranking-panel-head i::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.ranking-subpanel[open] .ranking-panel-head i::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(0);
}

.rank-table {
  display: grid;
  gap: 2px;
}

.ranking-subpanel .rank-table {
  padding: 8px 16px 16px;
}

.rank-table-row {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 58px;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--surface-2);
}

.rank-table-row[data-href] {
  cursor: pointer;
}

.rank-table-row:first-child {
  border-top: 0;
}

.rank-table-row:hover .rank-place > .rank-place-tooltip-trigger > b {
  color: var(--primary-2);
}

.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--primary);
  font-weight: 850;
}

.rank-place {
  position: relative;
  min-width: 0;
}

.rank-place-tooltip-trigger {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.rank-place b,
.rank-place small {
  display: block;
}

.rank-place b {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--primary);
  font-size: 16px;
  font-weight: 850;
}

.rank-place-name {
  min-width: 0;
}

.rank-place small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.rank-meta-detail {
  display: inline;
}

.state-badge {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 15px;
  border: 1px solid rgba(18, 52, 77, 0.08);
  border-radius: 4px;
  padding: 0 3px 1px;
  font-size: 0.72em;
  font-weight: 850;
  line-height: 1;
  vertical-align: 1px;
}

.state-badge:not(:empty)::after {
  content: "";
}

.state-nsw { background: #D9ECF7; color: #1F5F7D; }
.state-vic { background: #E0E5EF; color: #263D63; }
.state-qld { background: #F2DDE3; color: #73182C; }
.state-wa { background: #F3E3AE; color: #6C4E00; }
.state-sa { background: #F6D9DD; color: #8A2535; }
.state-tas { background: #DCEBDD; color: #2F6B45; }
.state-act { background: #E2E0F2; color: #4B4F8E; }
.state-nt { background: #F1DFC8; color: #8B4B20; }

.land-release-grid {
  align-items: stretch;
}

.land-release-card {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 148px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff 0%, #f7fafb 58%, #edf4f4 100%);
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow-soft);
}

.land-release-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: var(--primary-2);
  opacity: 0.75;
}

.land-release-card span {
  width: max-content;
  min-width: 48px;
  border: 1px solid rgba(18, 52, 77, 0.12);
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
}

.land-release-card b {
  color: var(--primary);
  font-size: 22px;
  line-height: 1.1;
}

.land-release-card small {
  max-width: 44ch;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.land-release-card:hover {
  border-color: rgba(15, 107, 110, 0.28);
  transform: translateY(-1px);
}

.land-release-card.state-nsw::before { background: #1F5F7D; }
.land-release-card.state-vic::before { background: #263D63; }
.land-release-card.state-qld::before { background: #73182C; }
.land-release-card.state-wa::before { background: #8A5A3B; }
.land-release-card.state-sa::before { background: #8A2535; }
.land-release-card.state-tas::before { background: #2F6B45; }
.land-release-card.state-act::before { background: #6C6426; }

.rank-score {
  position: relative;
  display: inline-flex;
  align-items: center;
  border-radius: 7px;
  padding: 5px 9px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 850;
  white-space: nowrap;
}

.rank-metric {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
  margin-right: 16px;
}

.rank-map-cue {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #edf3f5;
  box-shadow: inset 0 0 0 1px var(--border);
}

.rank-map-arrow {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--primary-2);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rank-table-row:hover .rank-map-cue {
  background: #e3eeee;
}

.rank-empty {
  min-height: 78px;
  display: grid;
  place-items: center;
  border-top: 1px solid var(--surface-2);
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  text-align: center;
}

.rank-value-positive {
  background: #e4f1ed;
  color: #176a55;
}

.rank-value-warning {
  background: #f5e2e2;
  color: #9a4242;
}

.rank-tooltip {
  position: absolute;
  z-index: 20;
  right: 0;
  bottom: calc(100% + 8px);
  width: min(360px, calc(100vw - 48px));
  padding: 15px 16px 16px;
  border-radius: 6px;
  background: rgba(29, 34, 32, 0.92);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.38;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.14s ease, transform 0.14s ease;
  box-shadow: 0 14px 32px rgba(18, 52, 77, 0.22);
}

.rank-map-tooltip {
  position: absolute;
  z-index: 21;
  right: 0;
  bottom: calc(100% + 8px);
  width: max-content;
  max-width: 260px;
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(29, 34, 32, 0.9);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translateY(5px);
  transition: opacity 0.14s ease, transform 0.14s ease;
  box-shadow: 0 12px 26px rgba(18, 52, 77, 0.2);
}

.rank-tooltip > .tooltip-line {
  display: block;
  margin-top: 10px;
}

.rank-tooltip > .tooltip-line:first-child {
  margin-top: 0;
}

.rank-tooltip b {
  display: inline;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.rank-tooltip > .tooltip-line:not(.tooltip-metric-line) {
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 650;
}

.rank-tooltip > .tooltip-line:not(.tooltip-metric-line) b {
  display: block;
  margin-bottom: 1px;
}

.tooltip-price-main {
  color: rgba(255, 255, 255, 0.94);
  font-size: 13px;
  font-weight: 700;
}

.tooltip-price-note {
  display: inline-block;
  margin-left: 6px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.tooltip-price-note.negative {
  color: #f0aaa4;
}

.tooltip-price-note.positive-soft {
  color: #b7cfc6;
}

.tooltip-price-note.positive {
  color: #91c3ad;
}

.tooltip-price-note.positive-strong {
  color: #66b58e;
}

.tooltip-metric-line {
  padding-top: 1px;
}

.tooltip-metric-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.tooltip-metric-head b {
  min-width: 0;
}

.tooltip-metric-head em {
  color: #fff;
  font-style: normal;
  font-size: 14px;
  font-weight: 750;
  text-align: right;
  white-space: nowrap;
}

.tooltip-quality {
  display: block;
  width: 100%;
  height: 3px;
  margin-top: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.tooltip-quality-fill {
  display: block;
  height: 100%;
  min-width: 3px;
  border-radius: inherit;
}

.rank-score:hover .rank-tooltip,
.rank-score:focus-within .rank-tooltip,
.rank-place-tooltip-trigger:hover .rank-place-tooltip,
.rank-map-cue:hover .rank-map-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.subsection-title {
  margin: 8px 0 14px;
  color: var(--primary);
  font-size: 24px;
}

.concept-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.concept-card {
  padding: 20px;
}

.concept-card h3 {
  color: var(--primary);
  font-size: 22px;
}

.concept-card p {
  color: var(--muted);
}

.concept-card span {
  display: block;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.library-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.library-grid a {
  display: grid;
  gap: 6px;
  padding: 18px;
}

.library-grid b {
  color: var(--primary);
  font-size: 18px;
}

.library-grid span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.article-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  gap: 16px;
}

.article-card {
  overflow: hidden;
}

.article-image {
  display: block;
  height: 170px;
  background: var(--surface-2);
}

.article-card.featured .article-image {
  height: 220px;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-body {
  padding: 18px;
}

.article-meta {
  margin-bottom: 8px;
  color: var(--primary-2);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.article-card p,
.feature span {
  color: var(--muted);
  font-size: 14px;
}

.hm-sponsored-native {
  position: relative;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  overflow: hidden;
  margin: 0 0 32px;
  padding: 24px;
  border: 1px solid rgba(216, 224, 231, 0.94);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 86% 8%, rgba(15, 95, 109, 0.18), transparent 32%),
    radial-gradient(circle at 10% 95%, rgba(214, 156, 47, 0.13), transparent 36%),
    linear-gradient(130deg, #fbfcfd 0%, #ffffff 42%, #eef6f6 100%);
  box-shadow: 0 18px 42px rgba(18, 52, 77, 0.09);
  isolation: isolate;
}

.hm-sponsored-native::after {
  content: "";
  position: absolute;
  right: -52px;
  bottom: -78px;
  width: 210px;
  height: 210px;
  border: 34px solid rgba(15, 95, 109, 0.08);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

.hm-sponsored-media {
  position: relative;
  display: block;
  min-height: 154px;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(203, 214, 223, 0.86);
  border-radius: 8px;
  background: #12344d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 14px 30px rgba(18, 52, 77, 0.08);
}

.hm-sponsored-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 52, 77, 0) 42%, rgba(18, 52, 77, 0.74) 100%);
  pointer-events: none;
}

.hm-sponsored-media img {
  display: block;
  width: 100%;
  height: 154px;
  object-fit: cover;
  object-position: 52% 64%;
}

.hm-sponsored-media span {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  color: #fff;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  width: max-content;
  max-width: calc(100% - 20px);
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(18, 52, 77, 0.72);
  backdrop-filter: blur(4px);
}

.hm-sponsored-native-inline {
  margin-top: -8px;
}

.hm-sponsored-native-rankings {
  margin-top: 28px;
  margin-bottom: 0;
}

.hm-sponsored-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  color: var(--primary-2);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.hm-sponsored-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.hm-sponsored-copy h2 {
  max-width: 640px;
  margin-bottom: 8px;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.08;
}

.hm-sponsored-copy p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 650;
}

.hm-sponsored-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.hm-sponsored-actions span {
  color: rgba(92, 107, 120, 0.72);
  font-size: 12px;
  font-weight: 650;
}

.hm-sponsored-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 850;
  box-shadow: 0 10px 22px rgba(18, 52, 77, 0.14);
}

.hm-sponsored-button::after {
  content: "↗";
  margin-left: 8px;
  font-size: 13px;
}

.location-strip {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
}

.location-strip a {
  display: grid;
  place-items: center;
  min-height: 52px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--primary);
  font-weight: 850;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.feature {
  min-height: 108px;
  padding: 16px;
}

.feature b {
  display: block;
  margin-bottom: 8px;
  color: var(--primary);
}

.cta-band {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 30px;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  max-width: 680px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
}

.cta-band .button {
  background: #fff;
  color: var(--primary);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  padding: 28px 0;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 980px) {
  .hero-grid,
  .rankings-hero-grid,
  .article-grid,
  .cta-band,
  .hm-sponsored-native {
    grid-template-columns: 1fr;
  }

  .hm-sponsored-actions {
    justify-items: start;
  }

  .hm-sponsored-media {
    width: min(100%, 360px);
    min-height: 150px;
  }

  .hm-sponsored-media img {
    height: 150px;
  }

  .ranking-grid,
  .feature-grid,
  .rankings-page-grid,
  .compact-grid,
  .concept-grid,
  .library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hotspot-ranking-card {
    min-width: 0;
  }

  .ranking-carousel-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav {
    display: none;
  }
}

@media (max-width: 860px) {
  .rankings-preview-map {
    min-height: 340px;
  }

  .preview-ranking-card {
    top: 18px;
    left: 16px;
    width: min(250px, calc(100% - 32px));
  }

  .preview-map-label {
    right: 16px;
    bottom: 16px;
    min-width: 190px;
  }

  .rankings-tooltip-sample {
    top: 156px;
    right: 16px;
    width: min(220px, calc(100% - 32px));
  }

  .rankings-page-grid,
  .compact-grid {
    grid-template-columns: 1fr;
  }

  .ranking-help-tooltip {
    position: fixed;
    left: 50%;
    right: auto;
    top: 50%;
    bottom: auto;
    width: min(420px, calc(100vw - 36px));
    max-height: min(76vh, 620px);
    overflow-y: auto;
    transform: translate(-50%, calc(-50% + 6px));
  }

  .ranking-help:hover .ranking-help-tooltip,
  .ranking-help:focus .ranking-help-tooltip,
  .ranking-help:focus-within .ranking-help-tooltip {
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 680px) {
  .header-inner {
    min-height: 64px;
  }

  .brand {
    gap: 0;
  }

  .brand-logo-mark {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .brand-logo-copy,
  .brand-logo-text {
    display: none;
  }

  .header-inner .button {
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }

  h1 {
    font-size: 38px;
  }

  .trust-row,
  .ranking-grid,
  .feature-grid,
  .rankings-page-grid,
  .compact-grid,
  .concept-grid,
  .library-grid,
  .location-strip,
  .map-shell {
    grid-template-columns: 1fr;
  }

  .ranking-carousel {
    padding: 0;
  }

  .ranking-carousel-track {
    grid-template-columns: 1fr;
    padding-bottom: 2px;
  }

  .ranking-carousel-control {
    top: -18px;
    width: 32px;
    height: 32px;
    transform: none;
  }

  .ranking-carousel-control.prev {
    right: 40px;
    left: auto;
  }

  .ranking-carousel-control.next {
    right: 0;
  }

  .hotspot-ranking-card {
    min-width: 0;
  }

  .hotspot-rank-table .rank-table-row {
    grid-template-columns: 48px minmax(0, 1fr);
    padding-right: 58px;
  }

  .rank-table-row {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px 12px;
    align-items: center;
    padding-right: 58px;
  }

  .rank-table-row[data-href] {
    cursor: default;
  }

  .rank-place small {
    margin-top: 4px;
  }

  .rank-place b {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0 7px;
    max-width: calc(100% + 24px);
  }

  .rank-place-name {
    display: inline;
    min-width: 0;
  }

  .state-badge {
    margin-left: 0;
    white-space: nowrap;
    vertical-align: 0.15em;
  }

  .rank-meta-detail {
    display: block;
  }

  .rank-metric {
    display: contents;
    margin-right: 0;
  }

  .rank-score {
    grid-column: 2;
    justify-self: start;
  }

  .rank-map-cue {
    position: absolute;
    right: 0;
    top: 50%;
    grid-row: 1 / span 2;
    align-self: center;
    justify-self: center;
    width: 48px;
    height: 48px;
    margin-right: 0;
    transform: translateY(-50%);
  }

  .rank-map-arrow {
    width: 24px;
    height: 24px;
    stroke-width: 2.3;
  }

  .rank-tooltip {
    position: fixed;
    left: 50%;
    right: auto;
    top: 50%;
    bottom: auto;
    width: min(320px, calc(100vw - 40px));
    max-height: min(72vh, 560px);
    overflow-y: auto;
    transform: translate(-50%, calc(-50% + 6px));
  }

  .rank-score:hover .rank-tooltip,
  .rank-score:focus-within .rank-tooltip,
  .rank-place-tooltip-trigger:hover .rank-place-tooltip {
    transform: translate(-50%, -50%);
  }

  .rank-map-tooltip {
    right: 50%;
    transform: translate(50%, 5px);
  }

  .ranking-help-tooltip {
    width: min(320px, calc(100vw - 40px));
  }

  .ranking-title-with-help {
    display: inline !important;
  }

  .ranking-help {
    width: 26px;
    height: 26px;
    margin-left: 7px;
    border-color: #c8dbe3;
    background: #e7f2f3;
    color: #0f6b6e;
    font-size: 16px;
    vertical-align: 0.12em;
  }

  .rank-map-cue:hover .rank-map-tooltip {
    transform: translate(50%, -50%);
  }

  .filter-panel {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .app-tooltip-sample {
    top: 24px;
    right: 18px;
    width: min(214px, calc(100% - 36px));
  }

  .location-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-head,
  .footer-inner {
    display: grid;
    gap: 8px;
  }
}
