:root {
  --black: #050505;
  --panel: #0b0b0b;
  --panel-2: #101010;
  --white: #f1f1ed;
  --muted: #898989;
  --line: #323232;
  --line-soft: #202020;
  --cyan: #67c7cf;
  --cyan-dim: #3c8f96;
  --cyan-dark: #183b3e;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--black);
}

body {
  margin: 0;
  background:
    radial-gradient(
      circle at 50% -20%,
      #172426 0,
      #090b0b 25%,
      var(--black) 52%
    );
  color: var(--white);
  font-family:
    Arial,
    Helvetica,
    sans-serif;
}


/* ==========================================================
   HEADER
========================================================== */

.site-header {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 22px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-block;
  color: var(--white);
  text-decoration: none;
}

.brand-name {
  font-size: 42px;
  font-weight: 900;
  letter-spacing: 8px;
  line-height: .95;
}

.tm {
  position: relative;
  top: -17px;
  margin-left: 4px;
  font-size: 10px;
  color: var(--cyan);
  letter-spacing: 0;
}

.brand-tagline {
  margin-top: 9px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.6px;
}


/* ==========================================================
   SHELL
========================================================== */

.hype-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}


/* ==========================================================
   HERO
========================================================== */

.hero {
  padding: 78px 0 68px;
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.section-kicker {
  color: var(--cyan);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 2.4px;
}

.hero h1 {
  margin: 14px 0 18px;
  max-width: 850px;
  font-size: clamp(70px, 11vw, 154px);
  line-height: .78;
  letter-spacing: -7px;
  font-weight: 1000;
}

.hero h1 span {
  -webkit-text-stroke: 2px var(--white);
  color: transparent;
}

.hero-copy {
  max-width: 720px;
  margin: 30px 0 0;
  color: #bdbdbd;
  font-size: 18px;
  line-height: 1.55;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.1px;
}

.meta-divider {
  color: var(--cyan);
}


/* ==========================================================
   SECTIONS
========================================================== */

.leaders-section,
.ranking-section,
.places-section,
.method-section {
  padding: 54px 0;
  border-bottom: 1px solid var(--line);
}

.section-heading-row,
.ranking-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 25px;
  margin-bottom: 28px;
}

.section-heading-row h2,
.ranking-header h2,
.method-section h2 {
  margin: 6px 0 0;
  font-size: 32px;
  line-height: 1;
  font-weight: 1000;
  letter-spacing: -1px;
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.5px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}


/* ==========================================================
   LEADERS
========================================================== */

.leader-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.leader-card {
  position: relative;
  min-height: 225px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(
      145deg,
      rgba(103,199,207,.07),
      transparent 55%
    ),
    var(--panel);
}

.leader-card:first-child {
  border-color: var(--cyan-dim);
}

.leader-rank {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
}

.leader-name {
  margin-top: 45px;
  font-size: clamp(25px, 3vw, 42px);
  font-weight: 1000;
  line-height: .95;
  letter-spacing: -1.8px;
  overflow-wrap: anywhere;
}

.leader-type {
  margin-top: 11px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.leader-score {
  position: absolute;
  right: 18px;
  bottom: 15px;
  color: var(--cyan);
  font-family:
    "Courier New",
    monospace;
  font-size: 27px;
  font-weight: 900;
}


/* ==========================================================
   CATEGORY TABS
========================================================== */

.qualified-count {
  color: var(--muted);
  font-family:
    "Courier New",
    monospace;
  font-size: 11px;
  text-align: right;
}

.category-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 22px;
  padding-bottom: 5px;
  overflow-x: auto;
}

.category-tab {
  flex: 0 0 auto;
  padding: 9px 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: #999;
  cursor: pointer;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .8px;
}

.category-tab:hover {
  color: var(--white);
  border-color: #666;
}

.category-tab.active {
  background: var(--cyan);
  color: #050505;
  border-color: var(--cyan);
}


/* ==========================================================
   RANKING
========================================================== */

.ranking-labels,
.ranking-row {
  display: grid;
  grid-template-columns:
    60px
    minmax(220px, 1fr)
    150px
    100px
    90px
    90px;
  align-items: center;
}

.ranking-labels {
  padding: 8px 14px;
  color: #666;
  border-bottom: 1px solid var(--line);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1px;
}

.ranking-row {
  min-height: 68px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line-soft);
  transition:
    background .15s ease,
    padding .15s ease;
}

.ranking-row:hover {
  background: #0c1112;
  padding-left: 19px;
}

.rank-number {
  color: var(--cyan);
  font-family:
    "Courier New",
    monospace;
  font-size: 15px;
  font-weight: 900;
}

.entity-name {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -.3px;
}


.entity-type {
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.entity-score {
  color: var(--cyan);
  font-family:
    "Courier New",
    monospace;
  font-size: 17px;
  font-weight: 900;
}

.entity-sources,
.entity-mentions {
  color: #aaa;
  font-family:
    "Courier New",
    monospace;
  font-size: 12px;
}

.empty-state {
  padding: 55px 20px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: #777;
  text-align: center;
}

.empty-state strong {
  display: block;
  margin-bottom: 8px;
  color: var(--white);
}


/* ==========================================================
   PLACES
========================================================== */

.places-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.place-card {
  min-height: 150px;
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.place-rank {
  color: var(--cyan);
  font-family:
    "Courier New",
    monospace;
  font-size: 11px;
}

.place-name {
  margin-top: 30px;
  font-size: 23px;
  font-weight: 1000;
  line-height: 1;
}

.place-score {
  margin-top: 10px;
  color: var(--muted);
  font-family:
    "Courier New",
    monospace;
  font-size: 11px;
}


/* ==========================================================
   METHODOLOGY
========================================================== */

.method-section {
  display: grid;
  grid-template-columns: 1.5fr .8fr;
  gap: 60px;
}

.method-copy p {
  max-width: 700px;
  color: #a3a3a3;
  font-size: 14px;
  line-height: 1.7;
}

.status-panel {
  border: 1px solid var(--line);
  background: var(--panel);
}

.status-title {
  padding: 14px 16px;
  color: var(--cyan);
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.5px;
}

.status-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-soft);
  color: #777;
  font-family:
    "Courier New",
    monospace;
  font-size: 10px;
}

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

.status-row strong {
  color: var(--white);
}


/* ==========================================================
   FOOTER
========================================================== */

.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 36px 0 60px;
  display: flex;
  justify-content: space-between;
  gap: 25px;
  color: #666;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.1px;
}

.site-footer a {
  color: var(--cyan);
  text-decoration: none;
}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 850px) {

  .site-header,
  .hype-shell,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .brand-name {
    font-size: 32px;
    letter-spacing: 5px;
  }

  .hero {
    padding: 58px 0 50px;
  }

  .hero h1 {
    font-size: clamp(68px, 22vw, 105px);
    letter-spacing: -5px;
  }

  .hero-copy {
    font-size: 15px;
  }

  .leader-grid {
    grid-template-columns: 1fr;
  }

  .leader-card {
    min-height: 155px;
  }

  .leader-name {
    margin-top: 26px;
  }

  .ranking-labels {
    display: none;
  }

  .ranking-row {
    grid-template-columns:
      42px
      minmax(0, 1fr)
      75px;
    min-height: 73px;
    padding: 0 6px;
  }

  .ranking-row:hover {
    padding-left: 6px;
  }

  .entity-type,
  .entity-sources,
  .entity-mentions {
    display: none;
  }

  .entity-name {
    padding-right: 10px;
    font-size: 15px;
  }

  .entity-score {
    text-align: right;
  }

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

  .method-section {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .section-heading-row,
  .ranking-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .qualified-count {
    text-align: left;
  }

  .site-footer {
    flex-direction: column;
  }

}

@media (max-width: 430px) {

  .hero h1 {
    font-size: 68px;
  }

  .places-grid {
    grid-template-columns: 1fr;
  }

}


/* ==========================================================
   WORLD HYPE HEAT MAP
========================================================== */

.hype-map-shell {
  position: relative;
  width: 100%;
  border: 1px solid var(--line);
  background: #050707;
  overflow: hidden;
}

.hype-map {
  width: 100%;
  height: 540px;
  background:
    radial-gradient(
      circle at 50% 50%,
      #101718 0,
      #050707 70%
    );
}

.hype-map .leaflet-tile-pane {
  filter:
    grayscale(1)
    contrast(1.08)
    brightness(.70);
}

.hype-map .leaflet-control-zoom a {
  background: #090b0b;
  color: var(--cyan);
  border-color: #333;
}

.hype-map .leaflet-control-zoom a:hover {
  background: #111;
  color: #fff;
}

.hype-map .leaflet-control-attribution {
  background: rgba(0, 0, 0, .72);
  color: #666;
  font-size: 8px;
}

.hype-map .leaflet-control-attribution a {
  color: #777;
}

.heat-legend {
  position: absolute;
  z-index: 500;
  right: 18px;
  bottom: 22px;
  width: 180px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(4, 5, 5, .88);
  backdrop-filter: blur(7px);
}

.heat-legend-label {
  display: block;
  margin-bottom: 8px;
  color: #999;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1.5px;
}

.heat-legend-scale {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 7px;
}

.heat-legend-scale span {
  display: block;
}

.heat-blue {
  background: #174c73;
}

.heat-cyan {
  background: #1c91b4;
}

.heat-orange {
  background: #ef6c24;
}

.heat-red {
  background: #d62828;
}

.heat-legend-words {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  color: #777;
  font-family: "Courier New", monospace;
  font-size: 7px;
}

.places-ticker {
  display: flex;
  width: 100%;
  margin-top: 12px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  overflow-x: auto;
}

.place-ticker-item {
  display: flex;
  flex: 1 0 145px;
  flex-direction: column;
  gap: 5px;
  min-width: 145px;
  padding: 13px 15px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.place-ticker-rank {
  color: var(--cyan);
  font-family: "Courier New", monospace;
  font-size: 9px;
}

.place-ticker-name {
  color: var(--white);
  font-size: 13px;
  font-weight: 900;
}

.place-ticker-score {
  color: #777;
  font-family: "Courier New", monospace;
  font-size: 9px;
}

.hype-map-popup {
  min-width: 145px;
  font-family: Arial, Helvetica, sans-serif;
}

.map-popup-rank {
  color: #2994a7;
  font-family: "Courier New", monospace;
  font-size: 9px;
  font-weight: 900;
}

.map-popup-name {
  margin-top: 5px;
  color: #111;
  font-size: 17px;
  font-weight: 1000;
}

.map-popup-score {
  margin-top: 5px;
  color: #d62828;
  font-family: "Courier New", monospace;
  font-size: 12px;
  font-weight: 900;
}

.map-popup-meta {
  margin-top: 5px;
  color: #666;
  font-family: "Courier New", monospace;
  font-size: 8px;
}

.map-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  color: #666;
  font-size: 11px;
}

.map-empty strong {
  color: var(--white);
}


@media (max-width: 850px) {

  .hype-map {
    height: 430px;
  }

  .heat-legend {
    right: 10px;
    bottom: 18px;
    width: 145px;
  }

}


@media (max-width: 500px) {

  .hype-map {
    height: 360px;
  }

}


/* ==========================================================
   ENTITY LINKS
========================================================== */

.entity-link,
.leader-link {
  color: inherit;
  text-decoration: none;
}

.entity-link:hover,
.leader-link:hover {
  color: var(--cyan);
}

.entity-link:focus-visible,
.leader-link:focus-visible {
  outline: 1px solid var(--cyan);
  outline-offset: 3px;
}

/* HYPE METER HERO LOGO */
.hype-title-row {
  display: flex;
  align-items: center;
  gap: 52px;
}

.hype-title-row h1 {
  margin-right: 0;
}

.hype-hero-logo {
  display: block;
  width: min(310px, 26vw);
  height: auto;
  flex: 0 0 auto;
}

@media (max-width: 800px) {
  .hype-title-row {
    display: block;
  }

  .hype-hero-logo {
    width: min(260px, 72vw);
    margin-top: 24px;
  }
}


/* ==========================================================
   PERMANENT HYPE SEARCH
========================================================== */

.hype-search {
  position: relative;
  width: min(100%, 760px);
  margin-top: 32px;
  z-index: 20;
}

.hype-search-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 44px;
  background: #090d0e;
  border: 1px solid #30383a;
}

.hype-search-control:focus-within {
  border-color: #35d6ed;
  box-shadow: 0 0 0 1px rgba(53, 214, 237, 0.18);
}

.hype-search input {
  width: 100%;
  min-width: 0;
  padding: 0 16px;
  color: #f1f4f4;
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 0.9rem;
  line-height: 1;
}

.hype-search input::placeholder {
  color: #8b9598;
  opacity: 1;
}

.hype-search button {
  padding: 0 18px;
  color: #35d6ed;
  background: transparent;
  border: 0;
  border-left: 1px solid #30383a;
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.hype-search button:hover,
.hype-search button:focus-visible {
  color: #ffffff;
  background: rgba(53, 214, 237, 0.08);
  outline: 0;
}

.hype-search-results {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  max-height: 360px;
  overflow-y: auto;
  background: #090d0e;
  border: 1px solid #30383a;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

.hype-search-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 16px;
  color: #f1f4f4;
  text-decoration: none;
  border-bottom: 1px solid #202729;
}

.hype-search-result:last-child {
  border-bottom: 0;
}

.hype-search-result:hover,
.hype-search-result:focus-visible {
  background: rgba(53, 214, 237, 0.08);
  outline: 0;
}

.hype-search-name {
  min-width: 0;
  overflow: hidden;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hype-search-meta {
  flex: 0 0 auto;
  color: #8b9598;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hype-search-empty {
  padding: 15px 16px;
  color: #8b9598;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

@media (max-width: 640px) {
  .hype-search {
    margin-top: 24px;
  }

  .hype-search-control {
    min-height: 42px;
  }

  .hype-search input {
    padding: 0 12px;
    font-size: 0.82rem;
  }

  .hype-search button {
    padding: 0 12px;
    font-size: 0.66rem;
  }

  .hype-search-result {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}

/* Fine-tune ranking header alignment */
.ranking-labels .label-type{padding-left:18px}

.story-map-legend {display:flex; flex-wrap:wrap; gap:16px; padding:12px; font-size:12px;}
.map-story-list {max-height:260px; overflow:auto;}
.map-story {padding:12px 0; border-bottom:1px solid #555;}
.map-story a {display:block; color:#72d8e4;}
.map-story-headline {margin:6px 0; line-height:1.4;}
.map-story small {color:#bfc3c9;}
.leaflet-interactive:focus {outline:2px solid white;}
.hype-map .leaflet-popup-content-wrapper,
.hype-map .leaflet-popup-tip {background:#11191d; color:#eef3f5; opacity:1;}
.hype-map .leaflet-popup-content {margin:14px;}
.hype-map .leaflet-popup-close-button {color:#eef3f5;}
/* Keep story cards inside the map without moving the geographic view. */
.hype-map .leaflet-popup {
  top:16px;
  right:16px;
  left:auto !important;
  bottom:auto !important;
  transform:none !important;
  width:min(340px, calc(100% - 32px));
}
.hype-map .leaflet-popup-content {width:auto !important;}
.hype-map .leaflet-popup-tip-container {display:none;}
.hype-map .leaflet-map-pane,
.hype-map .leaflet-popup-pane {width:100%; height:100%;}
.hype-map .leaflet-popup-pane {pointer-events:none;}
.hype-map .leaflet-popup {pointer-events:auto;}

.hype-explainer {max-width:760px;margin:24px 0;color:#b6c4c9;line-height:1.6}.hype-explainer summary {cursor:pointer;color:#65cbd3;font-weight:700}.hype-explainer p {margin:12px 0}

/* Compact introduction: expose the rankings before the geographic map. */
.page-hype .hero {padding:24px 0}
.page-hype .hype-title-row {display:block}
.page-hype .hero h1 {margin:8px 0;font-size:clamp(40px,7vw,84px);line-height:1;letter-spacing:-2px;max-width:none;white-space:nowrap}
.page-hype .hype-hero-logo {width:110px;margin:0}
.page-hype .hero-copy {margin:12px 0 0;max-width:760px;font-size:16px;line-height:1.55}
.hype-use-guide {max-width:760px;color:#aab8bd;font-size:13px;line-height:1.6;margin:12px 0}
.hype-shortcuts {display:flex;gap:22px;margin:14px 0;font-size:12px;font-weight:700}
.hype-shortcuts a {color:var(--cyan);text-decoration:none}
.hype-shortcuts a:hover,.hype-shortcuts a:focus-visible {text-decoration:underline}
.page-hype .hype-explainer {margin:14px 0;font-size:13px}
.page-hype .hero-meta {margin-top:16px;flex-wrap:wrap}
.page-hype .hype-search {margin-top:18px}
#rankingTitle,#hypeMethod {scroll-margin-top:90px}
@media(max-width:600px){
 .page-hype .hero {padding:24px 0}
 .page-hype .hype-title-row {gap:12px}
 .page-hype .hype-hero-logo {width:64px}
 .page-hype .hero h1 {font-size:clamp(30px,8.8vw,48px);letter-spacing:-1px}
 .page-hype .hero h1 span {display:inline;-webkit-text-stroke:1px var(--white)}
 .page-hype .hero-copy {font-size:15px}
}

.venue-directory-status { display: block; margin-top: .35rem; color: #a9b8b4; font-size: .7rem; font-weight: 400; line-height: 1.4; }
