:root {
  --black: #0a0a0a;
  --black-soft: #151515;
  --white: #ffffff;
  --off-white: #f8f8f6;
  --gray: #f2f2ef;
  --gray-dark: #d7d7d2;
  --border: #e5e5e1;
  --muted: #6b7280;
  --green: #16a34a;
  --green-dark: #11823b;
  --green-dim: rgba(22, 163, 74, 0.1);
  --green-border: rgba(22, 163, 74, 0.25);
  --shadow-sm: 0 1px 2px rgba(10, 10, 10, 0.04);
  --shadow-md: 0 14px 38px rgba(10, 10, 10, 0.09);
  --radius-sm: 7px;
  --radius-md: 11px;
  --radius-lg: 18px;
  --content: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--black);
  background: var(--white);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.has-overlay {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(22, 163, 74, 0.25);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--white);
  background: var(--green);
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  min-height: 70px;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header-dark {
  color: var(--white);
  background: var(--black);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.brand span {
  color: var(--green);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
}

.site-nav a:hover,
.site-nav a.is-current {
  color: var(--white);
}

.site-nav .nav-cta {
  padding: 0.52rem 0.9rem;
  border-radius: 6px;
  color: var(--white);
  background: var(--green);
}

.site-nav .nav-cta:hover {
  color: var(--white);
  background: var(--green-dark);
}

.hero {
  position: relative;
  min-height: clamp(460px, 78svh, 720px);
  padding: 6.4rem 2rem 5.2rem;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 50% 18%, rgba(22, 163, 74, 0.12), transparent 34%),
    var(--black);
  text-align: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100%, 800px);
}

.hero-orbit {
  position: absolute;
  left: 50%;
  top: 52%;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-orbit-one {
  width: 720px;
  height: 720px;
}

.hero-orbit-two {
  width: 980px;
  height: 980px;
}

.eyebrow,
.section-label {
  margin: 0;
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow-dark {
  width: fit-content;
  margin: 0 auto 1.5rem;
  padding: 0.42rem 0.82rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--green-border);
  border-radius: 999px;
  background: var(--green-dim);
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.12);
}

.hero h1 {
  max-width: 760px;
  margin: 0 auto 1.2rem;
  font-size: clamp(2.45rem, min(5.2vw, 6.5vh), 3.75rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.hero h1 em {
  color: var(--green);
  font-style: normal;
}

.hero-copy {
  max-width: 610px;
  margin: 0 auto 2.4rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 1.02rem;
  font-weight: 300;
}

.hero-search {
  width: min(100%, 650px);
  margin: 0 auto;
  padding: 0.42rem;
  display: flex;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px);
}

.hero-search:focus-within {
  border-color: rgba(22, 163, 74, 0.72);
}

.hero-search input {
  min-width: 0;
  flex: 1;
  padding: 0.78rem 0.95rem;
  border: 0;
  outline: 0;
  color: var(--white);
  background: transparent;
  font-size: 0.91rem;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.hero-search button {
  padding: 0.74rem 1.35rem;
  border: 0;
  border-radius: 7px;
  color: var(--white);
  background: var(--green);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.hero-search button:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.popular-searches {
  margin-top: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.popular-searches > span {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.72rem;
}

.popular-searches a {
  padding: 0.25rem 0.68rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.72rem;
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.popular-searches a:hover {
  color: var(--green);
  border-color: var(--green);
}

.metrics {
  padding: 1.8rem 2rem;
  display: flex;
  align-items: stretch;
  justify-content: center;
  color: var(--white);
  background: var(--black);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.metric {
  min-width: 190px;
  padding: 0.2rem 3.4rem;
  text-align: center;
}

.metric + .metric {
  border-left: 1px solid rgba(255, 255, 255, 0.09);
}

.metric strong {
  display: block;
  color: var(--white);
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.metric span:last-child {
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.section {
  width: min(calc(100% - 4rem), 1000px);
  margin: 0 auto;
  padding: 5.2rem 0;
}

.section-entry {
  padding-bottom: 2.4rem;
}

.section-heading {
  margin-bottom: 1.7rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.section-heading h2,
.home-cta h2 {
  margin: 0.38rem 0 0;
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.text-link {
  color: var(--black);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover,
.card-link:hover {
  color: var(--green);
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--border);
  gap: 1px;
}

.entry-card {
  min-height: 265px;
  padding: 1.8rem 1.65rem;
  display: flex;
  flex-direction: column;
  color: var(--black);
  background: var(--white);
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.entry-card:hover {
  background: var(--off-white);
}

.entry-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 1.2rem;
  display: grid;
  place-items: center;
  color: var(--green);
  border: 1px solid var(--green-border);
  border-radius: 9px;
  background: var(--green-dim);
  font-size: 1rem;
}

.entry-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.entry-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.012em;
}

.entry-card p {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 300;
  line-height: 1.65;
}

.card-link {
  margin-top: auto;
  color: var(--black);
  font-size: 0.77rem;
  font-weight: 600;
  transition: color 0.15s ease;
}

/* Country landscape */
.landscape-section {
  padding-top: 2.8rem;
}

.landscape-heading {
  align-items: flex-end;
}

.landscape-heading > div {
  max-width: 700px;
}

.landscape-intro {
  max-width: 650px;
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.65;
}

.landscape-card {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(250px, 0.8fr);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.map-panel {
  min-width: 0;
  padding: 1.4rem 1.4rem 1rem;
  background: var(--off-white);
}

.map-stage {
  position: relative;
  min-height: 410px;
  overflow: hidden;
  border-radius: 8px;
}

.map-stage svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: hidden;
}

.map-status {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.map-status[hidden] {
  display: none;
}

.map-country {
  vector-effect: non-scaling-stroke;
}

.map-country-context {
  fill: #e9ebe8;
  stroke: #ffffff;
  stroke-width: 0.9px;
}

.map-country-focus {
  cursor: pointer;
  stroke: #ffffff;
  stroke-width: 1.2px;
  transition: fill 0.15s ease, filter 0.15s ease, opacity 0.15s ease;
}

.map-country-focus:hover,
.map-country-focus:focus-visible,
.map-country-focus.is-highlighted {
  filter: brightness(0.9) drop-shadow(0 4px 7px rgba(10, 10, 10, 0.16));
  outline: none;
}

.map-country-focus:focus-visible {
  stroke: var(--black);
  stroke-width: 2.2px;
}

.map-country-marker {
  pointer-events: none;
}

.map-country-marker circle {
  fill: var(--black);
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 2px;
}

.map-country-marker text {
  fill: var(--white);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-anchor: middle;
}

.map-marker-count {
  font-size: 15px;
  font-weight: 700;
}

.map-marker-code {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.09em;
}

.gyor-halo {
  fill: rgba(22, 163, 74, 0.16);
  stroke: rgba(22, 163, 74, 0.18);
  stroke-width: 1px;
  pointer-events: none;
}

.gyor-dot {
  fill: var(--green);
  stroke: var(--white);
  stroke-width: 2px;
  pointer-events: none;
}

.gyor-label {
  fill: var(--black);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 650;
  paint-order: stroke;
  stroke: var(--white);
  stroke-linejoin: round;
  stroke-width: 4px;
  pointer-events: none;
}

.map-legend {
  margin-top: 0.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.62rem;
}

.map-legend-gradient {
  width: 108px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #cfead7, var(--green-dark));
}

.market-panel {
  min-width: 0;
  padding: 1.45rem;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border);
  background: var(--white);
}

.market-panel-heading {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.market-panel-heading p:last-child {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 300;
  line-height: 1.55;
}

.market-list {
  display: grid;
}

.market-item {
  min-height: 59px;
  padding: 0.75rem 0.15rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.7rem;
  border-bottom: 1px solid var(--border);
  color: var(--black);
  text-decoration: none;
  transition: color 0.15s ease, padding 0.15s ease;
}

.market-item:hover,
.market-item:focus-visible,
.market-item.is-highlighted {
  padding-left: 0.35rem;
  color: var(--green-dark);
}

.market-code {
  width: 31px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 1px solid var(--green-border);
  border-radius: 5px;
  color: var(--green-dark);
  background: var(--green-dim);
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.07em;
}

.market-name {
  overflow: hidden;
  font-size: 0.78rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-count {
  color: var(--black);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.market-arrow {
  color: var(--muted);
  font-size: 0.82rem;
}

.map-source-note {
  margin: auto 0 0;
  padding-top: 1rem;
  color: #959b96;
  font-size: 0.61rem;
  line-height: 1.45;
}

.map-tooltip {
  position: fixed;
  z-index: 90;
  width: max-content;
  max-width: min(270px, calc(100vw - 24px));
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  color: var(--white);
  background: var(--black);
  box-shadow: var(--shadow-md);
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transform: translate(12px, calc(-100% - 12px));
  transition: opacity 0.1s ease;
}

.map-tooltip.is-visible {
  opacity: 1;
}

/* Homepage ecosystem intelligence */
.intelligence-section {
  padding-top: 2.8rem;
}

.intelligence-heading {
  align-items: flex-end;
}

.intelligence-heading > div {
  max-width: 700px;
}

.intelligence-intro {
  max-width: 650px;
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.65;
}

.intelligence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.intelligence-card {
  position: relative;
  min-width: 0;
  min-height: 315px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--black);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.intelligence-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--green);
  content: "";
}

.intelligence-card:hover {
  border-color: var(--green-border);
  background: var(--off-white);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.intelligence-card h3 {
  margin: 0.6rem 0 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.intelligence-copy {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 300;
  line-height: 1.65;
}

.intelligence-feature {
  margin-top: 1.2rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
}

.intelligence-feature > span,
.intelligence-feature > strong {
  display: block;
}

.intelligence-feature > span {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.45;
}

.intelligence-feature > strong {
  margin-top: 0.28rem;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.5;
}

.intelligence-card .card-link {
  margin-top: auto;
  padding-top: 1.2rem;
}

.featured-section {
  padding-top: 2.4rem;
}

.featured-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.featured-item {
  min-width: 0;
  width: 100%;
  padding: 1.15rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--black);
  background: var(--white);
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.featured-item:hover {
  border-color: var(--green-border);
  background: var(--off-white);
  transform: translateY(-1px);
}

.company-initial {
  width: 42px;
  height: 42px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  color: var(--white);
  background: var(--black);
  font-size: 0.95rem;
  font-weight: 650;
}

.featured-main {
  min-width: 0;
  flex: 1;
}

.featured-main strong,
.featured-main small {
  display: block;
}

.featured-main strong {
  font-size: 0.9rem;
  font-weight: 650;
}

.featured-main small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.77rem;
  font-weight: 300;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.country-pill {
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--green-border);
  border-radius: 5px;
  color: var(--green-dark);
  background: var(--green-dim);
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.home-cta {
  width: min(calc(100% - 4rem), 1000px);
  margin: 3rem auto 5.2rem;
  padding: 2.2rem 2.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-radius: var(--radius-lg);
  color: var(--white);
  background: var(--black);
}

.home-cta h2 {
  max-width: 600px;
}

.home-cta p:not(.section-label) {
  margin: 0.55rem 0 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.86rem;
}

.button {
  min-height: 42px;
  padding: 0.65rem 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  border: 1px solid var(--green);
  color: var(--white);
  background: var(--green);
}

.button-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.button-secondary {
  border: 1px solid var(--border);
  color: var(--black);
  background: var(--white);
}

.button-secondary:hover {
  border-color: var(--green-border);
  color: var(--green-dark);
}

.site-footer {
  min-height: 100px;
  padding: 1.8rem max(2rem, calc((100vw - var(--content)) / 2));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  color: rgba(255, 255, 255, 0.45);
  background: var(--black);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
}

.site-footer p {
  margin: 0;
}

.brand-footer {
  justify-self: start;
}

.footer-meta {
  justify-self: end;
}

.data-notice {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.65);
  background: rgba(10, 10, 10, 0.82);
  font-size: 0.65rem;
  backdrop-filter: blur(8px);
}

/* Directory */
.directory-page {
  min-height: calc(100vh - 170px);
  background: var(--off-white);
}

.directory-intro {
  padding: 3.3rem max(2rem, calc((100vw - var(--content)) / 2)) 2rem;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.directory-intro h1 {
  margin: 0.35rem 0 0.25rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.15;
}

.directory-intro > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 300;
}

.directory-shell {
  width: min(calc(100% - 4rem), var(--content));
  margin: 0 auto;
  padding: 1.7rem 0 4.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.directory-toolbar {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.directory-search-wrap {
  position: relative;
  min-width: 0;
  flex: 1;
}

.directory-search-wrap input {
  width: 100%;
  height: 46px;
  padding: 0.72rem 2.8rem 0.72rem 2.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--black);
  background: var(--white);
  font-size: 0.85rem;
  box-shadow: var(--shadow-sm);
}

.directory-search-wrap input:focus {
  border-color: var(--green);
  outline: 3px solid rgba(22, 163, 74, 0.1);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  width: 14px;
  height: 14px;
  border: 1.7px solid var(--muted);
  border-radius: 50%;
  transform: translateY(-58%);
  pointer-events: none;
}

.search-icon::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 6px;
  height: 1.7px;
  background: var(--muted);
  transform: rotate(45deg);
  transform-origin: left center;
}

.search-clear {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: var(--gray);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.view-switch {
  padding: 0.25rem;
  display: flex;
  gap: 0.2rem;
  border-radius: 8px;
  background: #e9e9e5;
}

.view-switch button {
  min-width: 62px;
  height: 38px;
  padding: 0 0.8rem;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
}

.view-switch button.is-active {
  color: var(--black);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.filter-bar {
  width: 100%;
  min-width: 0;
  margin-top: 0.85rem;
  padding-bottom: 0.95rem;
  border-bottom: 1px solid var(--border);
}

.filter-groups {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-group {
  position: relative;
}

.filter-trigger,
.mobile-filter-open {
  min-height: 38px;
  padding: 0.48rem 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.filter-trigger:hover,
.filter-trigger.is-active {
  color: var(--green-dark);
  border-color: var(--green-border);
  background: var(--green-dim);
}

.filter-trigger-count,
.filter-count-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 0.32rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: var(--green);
  font-size: 0.61rem;
  font-weight: 700;
}

.filter-chevron {
  font-size: 0.8rem;
  transition: transform 0.15s ease;
}

.filter-group.is-open .filter-chevron {
  transform: rotate(180deg);
}

.filter-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 0.45rem);
  z-index: 25;
  width: 290px;
  max-height: 360px;
  padding: 0.55rem;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.filter-menu-head {
  padding: 0.35rem 0.4rem 0.55rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.filter-menu-head button {
  padding: 0;
  border: 0;
  color: var(--green-dark);
  background: none;
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
}

.filter-option {
  min-height: 38px;
  padding: 0.48rem 0.5rem;
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  gap: 0.55rem;
  border-radius: 6px;
  color: var(--black);
  font-size: 0.76rem;
  cursor: pointer;
}

.filter-option:hover {
  background: var(--off-white);
}

.filter-option input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--green);
}

.filter-option-count {
  color: var(--muted);
  font-size: 0.67rem;
}

.active-filters {
  width: 100%;
  min-width: 0;
  padding: 0.9rem 0 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.active-filter-chip,
.clear-filters {
  min-height: 30px;
  padding: 0.3rem 0.62rem;
  border-radius: 999px;
  font-size: 0.69rem;
  cursor: pointer;
}

.active-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--green-border);
  color: var(--green-dark);
  background: var(--green-dim);
}

.active-filter-chip span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1;
}

.clear-filters {
  border: 0;
  color: var(--muted);
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.results-meta {
  width: 100%;
  min-width: 0;
  min-height: 62px;
  padding: 1rem 0 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.results-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 0.77rem;
}

.results-meta strong {
  color: var(--black);
  font-size: 0.9rem;
  font-weight: 650;
}

#results-context::before {
  content: " · ";
}

.sort-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sort-control select {
  height: 36px;
  padding: 0 1.9rem 0 0.65rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--black);
  background: var(--white);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.results-list {
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 0.65rem;
}

.company-result {
  position: relative;
  width: 100%;
  min-width: 0;
  padding: 1.15rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.company-result:hover {
  border-color: var(--green-border);
  box-shadow: 0 8px 22px rgba(10, 10, 10, 0.055);
  transform: translateY(-1px);
}

.company-result:focus-visible {
  outline: 3px solid rgba(22, 163, 74, 0.2);
  outline-offset: 2px;
}

.result-main {
  min-width: 0;
  flex: 1;
}

.result-title-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.result-title {
  margin: 0;
  overflow: hidden;
  font-size: 0.94rem;
  font-weight: 650;
  letter-spacing: -0.012em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-description {
  margin: 0.18rem 0 0.47rem;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 300;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-tags,
.modal-tags {
  display: flex;
  align-items: center;
  gap: 0.32rem;
  flex-wrap: wrap;
}

.tag {
  padding: 0.18rem 0.46rem;
  border-radius: 4px;
  color: var(--muted);
  background: var(--gray);
  font-size: 0.64rem;
  font-weight: 500;
}

.tag-capability {
  color: var(--green-dark);
  background: var(--green-dim);
}

.result-meta {
  width: 165px;
  flex: 0 0 auto;
  text-align: right;
}

.result-location,
.result-type {
  display: block;
}

.result-location {
  color: var(--black);
  font-size: 0.75rem;
  font-weight: 500;
}

.result-type {
  margin-top: 0.12rem;
  color: var(--muted);
  font-size: 0.68rem;
}

.result-arrow {
  color: var(--gray-dark);
  font-size: 1.15rem;
  transition: color 0.15s ease, transform 0.15s ease;
}

.company-result:hover .result-arrow {
  color: var(--green);
  transform: translateX(2px);
}

.results-list.is-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.results-list.is-grid .company-result {
  min-height: 260px;
  padding: 1.3rem;
  display: flex;
  align-items: stretch;
  flex-direction: column;
}

.results-list.is-grid .company-initial {
  width: 48px;
  height: 48px;
}

.results-list.is-grid .result-main {
  width: 100%;
}

.results-list.is-grid .result-description {
  min-height: 3.9em;
  margin-top: 0.5rem;
  display: -webkit-box;
  overflow: hidden;
  white-space: normal;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.results-list.is-grid .result-meta {
  width: 100%;
  margin-top: auto;
  padding-top: 1rem;
  text-align: left;
  border-top: 1px solid var(--border);
}

.results-list.is-grid .result-arrow {
  position: absolute;
  right: 1.2rem;
  bottom: 1.1rem;
}

.load-more-wrap {
  padding-top: 1.5rem;
  text-align: center;
}

.load-more-wrap p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.68rem;
}

.loading-state,
.empty-state,
.error-state {
  min-height: 280px;
  padding: 3.5rem 1.5rem;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.5);
  text-align: center;
}

.loading-state p,
.empty-state p,
.error-state p {
  margin: 0.7rem 0 0;
  font-size: 0.82rem;
}

.empty-state h2,
.error-state h2 {
  margin: 0;
  color: var(--black);
  font-size: 1rem;
}

.empty-state .button,
.error-state .button {
  margin-top: 1rem;
}

.loading-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.mobile-filter-open,
.mobile-filter-head,
.mobile-filter-footer,
.filter-backdrop {
  display: none;
}

/* Standalone company profile (Stage 2) */
.profile-page {
  width: min(100%, calc(var(--content) + 4rem));
  min-height: calc(100vh - 170px);
  margin: 0 auto;
  padding: 1.65rem 2rem 5rem;
}

.profile-breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 550;
  text-decoration: none;
}

.profile-breadcrumb a:hover {
  color: var(--green-dark);
}

.profile-hero {
  padding: 2.35rem 0 2.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--border);
}

.profile-identity {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 1.35rem;
}

.profile-initial {
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  border-radius: 15px;
  font-size: 1.5rem;
}

.profile-hero .section-label {
  margin-bottom: 0.38rem;
}

.profile-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 3.35rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.04;
}

.profile-location {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 350;
}

.profile-category-tags {
  margin-top: 0.9rem;
}

.profile-primary-cta {
  min-width: 145px;
  flex: 0 0 auto;
}

.profile-layout {
  padding-top: 2.8rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.profile-main {
  min-width: 0;
}

.profile-section {
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--border);
}

.profile-section + .profile-section {
  padding-top: 2.25rem;
}

.profile-section:last-child {
  border-bottom: 0;
}

.profile-section .section-label {
  margin-bottom: 0.38rem;
}

.profile-section h2,
.profile-aside h2 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 680;
  letter-spacing: -0.025em;
}

.profile-overview {
  max-width: 760px;
  margin: 0.8rem 0 0;
  color: #31343a;
  font-size: 0.98rem;
  font-weight: 300;
  line-height: 1.85;
}

.profile-tags {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
}

.profile-tag {
  padding: 0.42rem 0.68rem;
  border: 1px solid transparent;
  font-size: 0.71rem;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.profile-tag:hover {
  border-color: var(--green-border);
  color: var(--green-dark);
}

.profile-aside {
  position: sticky;
  top: 1.5rem;
  padding: 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--off-white);
}

.profile-details {
  margin: 0.8rem 0 0;
}

.profile-details > div {
  padding: 0.67rem 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
}

.profile-details > div:last-child {
  border-bottom: 0;
}

.profile-details dt {
  color: var(--muted);
  font-size: 0.71rem;
}

.profile-details dd {
  margin: 0;
  color: var(--black);
  font-size: 0.73rem;
  font-weight: 620;
  text-align: right;
}

.profile-actions {
  margin-top: 1.1rem;
  display: grid;
  gap: 0.55rem;
}

.profile-actions .button {
  width: 100%;
}

.profile-actions .button-secondary {
  background: transparent;
}

.profile-empty {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.profile-feedback {
  margin: 1.2rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.7rem;
  line-height: 1.5;
}

.profile-feedback a {
  color: var(--muted);
  text-decoration-color: var(--gray-dark);
  text-underline-offset: 3px;
}

.profile-feedback a:hover {
  color: var(--green-dark);
}

.status-page {
  width: min(100%, 680px);
  min-height: calc(100vh - 170px);
  margin: 0 auto;
  padding: clamp(5rem, 12vw, 9rem) 2rem;
  text-align: center;
}

.status-page h1 {
  margin: 0.55rem 0 0;
  font-size: clamp(2rem, 6vw, 3.5rem);
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.status-page p:not(.section-label) {
  margin: 1rem auto 1.6rem;
  color: var(--muted);
  font-weight: 300;
}

/* Company modal (Stage 1 interim profile) */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  padding: 1.5rem;
  display: grid;
  place-items: center;
  background: rgba(10, 10, 10, 0.58);
  backdrop-filter: blur(5px);
}

.company-modal-card {
  position: relative;
  width: min(100%, 760px);
  max-height: min(90vh, 760px);
  overflow-y: auto;
  border-radius: 15px;
  background: var(--white);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.24);
}

.modal-close {
  position: absolute;
  right: 1.1rem;
  top: 1.1rem;
  z-index: 2;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--muted);
  background: var(--white);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.modal-company-head {
  padding: 2.1rem 4rem 1.7rem 2rem;
  display: flex;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
}

.modal-company-head .company-initial {
  width: 58px;
  height: 58px;
  border-radius: 11px;
  font-size: 1.25rem;
}

.modal-company-head h2 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.modal-company-head p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.modal-body {
  padding: 1.7rem 2rem 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 235px;
  gap: 2rem;
}

.modal-section + .modal-section {
  margin-top: 1.5rem;
}

.modal-section h3,
.modal-aside h3 {
  margin: 0 0 0.55rem;
  color: var(--green-dark);
  font-size: 0.65rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.modal-section p {
  margin: 0;
  color: var(--black);
  font-size: 0.86rem;
  font-weight: 300;
  line-height: 1.75;
}

.modal-aside {
  height: fit-content;
  padding: 1.2rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--off-white);
}

.modal-details {
  margin: 0;
}

.modal-details > div {
  padding: 0.55rem 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
}

.modal-details > div:last-child {
  border-bottom: 0;
}

.modal-details dt {
  color: var(--muted);
  font-size: 0.7rem;
}

.modal-details dd {
  margin: 0;
  color: var(--black);
  font-size: 0.73rem;
  font-weight: 600;
  text-align: right;
}

.modal-actions {
  margin-top: 1rem;
  display: grid;
  gap: 0.5rem;
}

.modal-actions .button {
  width: 100%;
}

.modal-actions .button-secondary {
  background: transparent;
}

@media (max-width: 920px) {
  .metric {
    min-width: 0;
    padding-inline: 2.1rem;
  }

  .results-list.is-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 2.25rem;
  }
}

@media (max-width: 760px) {
  .desktop-only {
    display: none !important;
  }

  .site-header {
    min-height: 62px;
    padding-inline: 1.15rem;
  }

  .site-nav {
    gap: 0.85rem;
  }

  .site-nav > a:not(.nav-cta) {
    display: none;
  }

  .site-nav .nav-cta {
    padding: 0.45rem 0.7rem;
    font-size: 0.72rem;
  }

  .hero {
    min-height: clamp(480px, 72svh, 560px);
    padding: 4.8rem 1.15rem 4rem;
  }

  .hero h1 {
    font-size: clamp(2.3rem, min(12vw, 7.2vh), 3.3rem);
  }

  .hero-copy {
    max-width: 510px;
    font-size: 0.9rem;
  }

  .hero-search {
    padding: 0.35rem;
  }

  .hero-search input {
    padding-inline: 0.75rem;
    font-size: 0.82rem;
  }

  .hero-search button {
    padding-inline: 1rem;
  }

  .popular-searches > span {
    width: 100%;
  }

  .metrics {
    padding-inline: 0.65rem;
  }

  .metric {
    padding: 0 0.8rem;
  }

  .metric strong {
    font-size: 1.45rem;
  }

  .metric span:last-child {
    font-size: 0.55rem;
  }

  .section,
  .home-cta {
    width: min(calc(100% - 2rem), 1000px);
  }

  .section {
    padding-block: 3.8rem;
  }

  .section-entry {
    padding-bottom: 1.5rem;
  }

  .landscape-section {
    padding-top: 2.3rem;
  }

  .intelligence-section {
    padding-top: 1.5rem;
  }

  .intelligence-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

  .landscape-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .map-panel {
    padding: 0.75rem 0.75rem 0.9rem;
  }

  .map-stage {
    min-height: 285px;
  }

  .market-panel {
    padding: 1.25rem;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .market-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.2rem;
  }

  .map-source-note {
    margin-top: 0.8rem;
  }

  .entry-grid,
  .intelligence-grid,
  .featured-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .entry-card {
    min-height: 235px;
  }

  .intelligence-card {
    min-height: 280px;
    padding: 1.55rem;
  }

  .featured-section {
    padding-top: 1.5rem;
  }

  .home-cta {
    margin-block: 2rem 3.8rem;
    padding: 1.7rem;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer {
    padding: 1.5rem 1.15rem;
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 0.35rem;
  }

  .footer-meta,
  .brand-footer {
    justify-self: start;
  }

  .directory-intro {
    padding: 2.4rem 1rem 1.5rem;
  }

  .directory-shell {
    width: calc(100% - 2rem);
    padding-top: 1rem;
  }

  .directory-toolbar {
    flex-wrap: wrap;
  }

  .directory-search-wrap {
    flex-basis: 100%;
  }

  .mobile-filter-open {
    width: 100%;
    min-height: 42px;
    display: flex;
    justify-content: center;
    border-radius: 7px;
  }

  .filter-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    max-height: 86vh;
    margin: 0;
    padding: 0;
    display: none;
    overflow-y: auto;
    border: 0;
    border-radius: 16px 16px 0 0;
    background: var(--white);
    box-shadow: 0 -20px 50px rgba(10, 10, 10, 0.16);
  }

  .filter-bar.is-mobile-open {
    display: block;
  }

  .filter-backdrop {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: block;
    background: rgba(10, 10, 10, 0.52);
    backdrop-filter: blur(3px);
  }

  .mobile-filter-head {
    position: sticky;
    top: 0;
    z-index: 3;
    padding: 1.1rem 1.15rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    background: var(--white);
  }

  .mobile-filter-head h2 {
    margin: 0.15rem 0 0;
    font-size: 1.15rem;
  }

  .mobile-filter-head button {
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--muted);
    background: var(--white);
    font-size: 1.25rem;
  }

  .filter-groups {
    padding: 0.55rem 1.15rem 6rem;
    display: block;
  }

  .filter-group {
    border-bottom: 1px solid var(--border);
  }

  .filter-trigger {
    width: 100%;
    min-height: 54px;
    padding: 0.75rem 0;
    justify-content: flex-start;
    border: 0;
    border-radius: 0;
    color: var(--black);
    background: transparent;
    font-size: 0.82rem;
  }

  .filter-trigger .filter-chevron {
    margin-left: auto;
  }

  .filter-trigger:hover,
  .filter-trigger.is-active {
    color: var(--black);
    background: transparent;
  }

  .filter-menu {
    position: static;
    width: 100%;
    max-height: none;
    padding: 0 0 0.7rem;
    overflow: visible;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .filter-menu-head {
    display: none;
  }

  .filter-option {
    min-height: 42px;
    padding-inline: 0;
  }

  .mobile-filter-footer {
    position: sticky;
    bottom: 0;
    z-index: 3;
    padding: 0.85rem 1.15rem calc(0.85rem + env(safe-area-inset-bottom));
    display: block;
    border-top: 1px solid var(--border);
    background: var(--white);
  }

  .mobile-filter-footer .button {
    width: 100%;
  }

  .active-filters {
    padding-top: 0.75rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .active-filters::-webkit-scrollbar {
    display: none;
  }

  .active-filter-chip {
    flex: 0 0 auto;
  }

  .results-meta {
    align-items: flex-end;
  }

  .sort-control {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.2rem;
  }

  .company-result {
    padding: 1rem;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .company-result .company-initial {
    width: 38px;
    height: 38px;
  }

  .result-main {
    width: calc(100% - 56px);
  }

  .result-description {
    margin-top: 0.32rem;
    display: -webkit-box;
    white-space: normal;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .result-tags {
    margin-top: 0.55rem;
  }

  .result-meta {
    width: calc(100% - 54px);
    margin-left: 54px;
    padding-top: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    border-top: 1px solid var(--border);
  }

  .result-type {
    margin: 0;
  }

  .result-arrow {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
  }

  .profile-page {
    padding: 1.2rem 1.15rem 3.5rem;
  }

  .profile-hero {
    padding: 1.65rem 0 2rem;
    align-items: stretch;
    flex-direction: column;
    gap: 1.5rem;
  }

  .profile-identity {
    gap: 0.9rem;
  }

  .profile-initial {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
    border-radius: 11px;
    font-size: 1.05rem;
  }

  .profile-hero h1 {
    font-size: clamp(1.75rem, 10vw, 2.55rem);
  }

  .profile-primary-cta {
    width: 100%;
  }

  .profile-layout {
    padding-top: 2rem;
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .profile-section {
    padding-bottom: 1.65rem;
  }

  .profile-section + .profile-section {
    padding-top: 1.65rem;
  }

  .profile-aside {
    position: static;
  }

  .modal-backdrop {
    padding: 0;
    place-items: end center;
  }

  .company-modal-card {
    width: 100%;
    max-height: 92vh;
    border-radius: 16px 16px 0 0;
  }

  .modal-company-head {
    padding: 1.5rem 3.8rem 1.3rem 1.15rem;
  }

  .modal-body {
    padding: 1.35rem 1.15rem 1.5rem;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 420px) {
  .brand {
    font-size: 0.9rem;
  }

  .site-nav .nav-cta {
    font-size: 0.68rem;
  }

  .hero-search {
    align-items: stretch;
    flex-direction: column;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .hero-search input {
    min-height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.055);
  }

  .hero-search button {
    min-height: 46px;
  }

  .metric {
    padding-inline: 0.35rem;
  }

  .metric strong {
    font-size: 1.25rem;
  }

  .metric span:last-child {
    font-size: 0.48rem;
    letter-spacing: 0.04em;
  }

  .landscape-intro {
    font-size: 0.82rem;
  }

  .map-stage {
    min-height: 235px;
  }

  .map-legend {
    gap: 0.42rem;
    font-size: 0.56rem;
  }

  .map-legend-gradient {
    width: 70px;
  }

  .market-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .market-item {
    min-height: 55px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Funding */
.funding-page {
  min-height: calc(100vh - 170px);
  background: var(--off-white);
}

.funding-intro {
  padding: 3.3rem max(2rem, calc((100vw - 1000px) / 2)) 2rem;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.funding-intro h1 {
  max-width: 760px;
  margin: 0.35rem 0 0.35rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.15;
}

.funding-intro > p:last-child {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 300;
}

.funding-shell {
  width: min(calc(100% - 4rem), 1000px);
  margin: 0 auto;
  padding: 1.7rem 0 4.5rem;
}

.funding-filter-row {
  padding-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
}

.funding-filter-label {
  margin-right: 0.15rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.funding-programme-label {
  margin-left: 1rem;
}

.funding-filter-static,
.funding-filter-button {
  min-height: 34px;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: var(--white);
  font-size: 0.75rem;
  font-weight: 550;
  white-space: nowrap;
}

.funding-filter-static {
  color: var(--green-dark);
  border-color: var(--green-border);
  background: var(--green-dim);
}

.funding-filter-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.funding-filter-button {
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.funding-filter-button:hover,
.funding-filter-button.is-active {
  color: var(--green-dark);
  border-color: var(--green-border);
  background: var(--green-dim);
}

.funding-results-meta {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.funding-results-meta p {
  margin: 0;
}

.funding-results-meta strong {
  font-size: 0.8rem;
  font-weight: 650;
}

.funding-verification-note {
  color: var(--muted);
  font-size: 0.68rem;
  text-align: right;
}

.funding-list {
  display: grid;
  gap: 0.85rem;
}

.funding-card {
  padding: 1.35rem 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 1.5rem;
  align-items: start;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--black);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.funding-card:hover {
  border-color: var(--green-border);
  box-shadow: 0 8px 22px rgba(10, 10, 10, 0.05);
  transform: translateY(-1px);
}

.funding-card-main {
  min-width: 0;
}

.funding-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.funding-badge {
  padding: 0.22rem 0.55rem;
  border-radius: 4px;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.035em;
  line-height: 1.4;
}

.funding-badge-open {
  color: var(--white);
  background: var(--green);
}

.funding-badge-programme {
  color: var(--green-dark);
  background: var(--green-dim);
  border: 1px solid var(--green-border);
}

.funding-badge-type {
  color: var(--muted);
  background: var(--gray);
  border: 1px solid transparent;
}

.funding-card h2 {
  margin: 0.65rem 0 0.38rem;
  font-size: 1.08rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.funding-card-main > p {
  max-width: 690px;
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.65;
}

.funding-applicant-tags,
.funding-profile-tags {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
}

.funding-applicant-tag {
  padding: 0.22rem 0.52rem;
  border-radius: 4px;
  color: var(--muted);
  background: var(--gray);
  font-size: 0.68rem;
}

.funding-card-aside {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 0.55rem;
  text-align: right;
}

.funding-deadline-box {
  min-width: 145px;
  padding: 0.62rem 0.75rem;
  display: grid;
  gap: 0.1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--off-white);
  text-align: center;
}

.funding-deadline-box.is-soon {
  border-color: var(--green-border);
  background: var(--green-dim);
}

.funding-deadline-box span,
.funding-deadline-hero span {
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.funding-deadline-box strong {
  font-size: 0.86rem;
  font-weight: 680;
}

.funding-deadline-box small {
  color: var(--green-dark);
  font-size: 0.64rem;
  font-weight: 600;
}

.funding-card-budget {
  margin: 0;
  color: var(--black);
  font-size: 0.72rem;
  font-weight: 550;
  line-height: 1.45;
}

.funding-card-link {
  color: var(--green-dark);
  font-size: 0.72rem;
  font-weight: 600;
}

.funding-empty-state {
  padding: 4rem 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  text-align: center;
}

.funding-empty-state h2 {
  margin: 0;
  font-size: 1.2rem;
}

.funding-empty-state p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

/* Funding detail */
.funding-profile-page {
  width: min(100%, 1000px);
  min-height: calc(100vh - 170px);
  margin: 0 auto;
  padding: 1.65rem 2rem 5rem;
}

.funding-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
}

.funding-breadcrumb a {
  color: var(--green-dark);
  text-decoration: none;
}

.funding-breadcrumb span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.funding-profile-hero {
  padding: 2.25rem 0 2.4rem;
  border-bottom: 1px solid var(--border);
}

.funding-profile-hero h1 {
  max-width: 820px;
  margin: 0.8rem 0 0;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.08;
}

.funding-profile-lead {
  max-width: 760px;
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 300;
  line-height: 1.7;
}

.funding-profile-actions {
  margin-top: 1.45rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.funding-deadline-hero {
  min-height: 44px;
  padding: 0.55rem 0.95rem;
  display: grid;
  align-content: center;
  border: 1px solid var(--green-border);
  border-radius: 8px;
  background: var(--green-dim);
  text-align: center;
}

.funding-deadline-hero strong {
  font-size: 0.92rem;
  font-weight: 680;
}

.funding-profile-layout {
  padding-top: 2.6rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: start;
}

.funding-profile-main {
  min-width: 0;
}

.funding-profile-section {
  padding-bottom: 2.15rem;
  border-bottom: 1px solid var(--border);
}

.funding-profile-section + .funding-profile-section {
  padding-top: 2.15rem;
}

.funding-profile-section:last-child {
  border-bottom: 0;
}

.funding-profile-section .section-label {
  margin-bottom: 0.42rem;
}

.funding-profile-section h2 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 680;
  letter-spacing: -0.025em;
}

.funding-profile-section > p:not(.section-label) {
  max-width: 720px;
  margin: 0.75rem 0 0;
  color: #31343a;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.82;
}

.funding-profile-aside {
  position: sticky;
  top: 1.5rem;
  padding: 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--off-white);
}

.funding-aside-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.funding-profile-aside dl {
  margin: 0.8rem 0 0;
}

.funding-profile-aside dl > div {
  padding: 0.68rem 0;
  border-bottom: 1px solid var(--border);
}

.funding-profile-aside dl > div:last-child {
  border-bottom: 0;
}

.funding-profile-aside dt {
  margin-bottom: 0.18rem;
  color: var(--muted);
  font-size: 0.68rem;
}

.funding-profile-aside dd {
  margin: 0;
  color: var(--black);
  font-size: 0.73rem;
  font-weight: 600;
  line-height: 1.55;
}

.funding-profile-aside a {
  color: var(--green-dark);
  text-decoration: none;
}

@media (max-width: 760px) {
  .funding-intro {
    padding: 2.4rem 1rem 1.5rem;
  }

  .funding-shell {
    width: calc(100% - 2rem);
    padding-top: 1rem;
  }

  .funding-filter-row {
    align-items: flex-start;
  }

  .funding-programme-label {
    width: 100%;
    margin: 0.35rem 0 0;
  }

  .funding-filter-buttons {
    width: 100%;
    padding-bottom: 0.2rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .funding-filter-buttons::-webkit-scrollbar {
    display: none;
  }

  .funding-filter-button {
    flex: 0 0 auto;
  }

  .funding-results-meta {
    min-height: 74px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
  }

  .funding-verification-note {
    text-align: left;
  }

  .funding-card {
    padding: 1.1rem;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .funding-card-aside {
    padding-top: 0.9rem;
    display: grid;
    grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1fr);
    align-items: end;
    gap: 0.65rem 1rem;
    border-top: 1px solid var(--border);
    text-align: left;
  }

  .funding-deadline-box {
    width: 100%;
    min-width: 120px;
    grid-row: span 2;
    text-align: left;
  }

  .funding-card-budget,
  .funding-card-link {
    min-width: 0;
    text-align: right;
  }

  .funding-card-budget {
    overflow-wrap: anywhere;
  }

  .funding-profile-page {
    padding: 1.2rem 1.15rem 3.5rem;
  }

  .funding-profile-hero {
    padding: 1.65rem 0 2rem;
  }

  .funding-profile-hero h1 {
    font-size: clamp(1.8rem, 10vw, 2.6rem);
  }

  .funding-profile-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .funding-profile-actions > * {
    width: 100%;
  }

  .funding-profile-layout {
    padding-top: 2rem;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.3rem;
  }

  .funding-profile-section {
    padding-bottom: 1.65rem;
  }

  .funding-profile-section + .funding-profile-section {
    padding-top: 1.65rem;
  }

  .funding-profile-aside {
    position: static;
  }
}

/* News feed */
.news-page {
  min-height: calc(100vh - 170px);
  background: var(--white);
}

.news-intro {
  padding: 3.2rem 2rem 2.15rem;
  border-bottom: 1px solid var(--border);
  background: var(--off-white);
  text-align: center;
}

.news-intro .section-label {
  margin-bottom: 0.55rem;
}

.news-intro h1 {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.08;
}

.news-intro > p:last-child {
  max-width: 670px;
  margin: 0.8rem auto 0;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 300;
  line-height: 1.7;
}

.news-shell {
  width: min(100%, 820px);
  margin: 0 auto;
  padding: 1.35rem 2rem 5rem;
}

.news-filter-row {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border-bottom: 1px solid var(--border);
}

.news-filter-label {
  margin-right: 0.15rem;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.news-filter-buttons {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.news-filter-button {
  min-height: 30px;
  padding: 0.35rem 0.68rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  color: var(--muted);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 550;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.news-filter-button:hover,
.news-filter-button:focus-visible {
  border-color: var(--green-border);
  color: var(--green-dark);
}

.news-filter-button.is-active {
  border-color: var(--green-border);
  background: var(--green-dim);
  color: var(--green-dark);
}

.news-results-meta {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.news-results-meta p {
  margin: 0;
}

.news-results-meta p:last-child {
  max-width: 430px;
  text-align: right;
}

.news-list {
  display: grid;
}

.news-card-link {
  display: block;
  color: var(--black);
  text-decoration: none;
  cursor: pointer;
}

.news-featured {
  margin-bottom: 0.65rem;
  padding: 1.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, var(--off-white), var(--white));
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.news-featured:hover,
.news-featured:focus-visible {
  border-color: var(--green-border);
  transform: translateY(-1px);
}

.news-item {
  padding: 1.45rem 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s ease;
}

.news-item:last-child {
  border-bottom: 0;
}

.news-item:hover h3,
.news-item:focus-visible h3 {
  color: var(--green-dark);
}

.news-meta {
  margin-bottom: 0.58rem;
  display: flex;
  align-items: center;
  gap: 0.42rem;
  flex-wrap: wrap;
}

.news-category,
.news-country {
  display: inline-flex;
  align-items: center;
  border-radius: 5px;
  white-space: nowrap;
}

.news-category {
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--green-border);
  background: var(--green-dim);
  color: var(--green-dark);
  font-size: 0.61rem;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.news-category.is-regulation {
  border-color: rgba(180, 83, 9, 0.2);
  background: rgba(180, 83, 9, 0.08);
  color: #9a480b;
}

.news-country {
  padding: 0.24rem 0.5rem;
  background: var(--gray);
  color: var(--muted);
  font-size: 0.63rem;
  font-weight: 550;
}

.news-date {
  margin-left: auto;
  color: var(--gray-mid);
  font-size: 0.7rem;
  white-space: nowrap;
}

.news-featured h2,
.news-item h3 {
  margin: 0;
  color: var(--black);
  letter-spacing: -0.025em;
  line-height: 1.28;
}

.news-featured h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

.news-item h3 {
  font-size: 1.08rem;
  font-weight: 650;
}

.news-featured > p,
.news-item > p {
  margin: 0.62rem 0 0;
  color: var(--muted);
  font-size: 0.89rem;
  font-weight: 300;
  line-height: 1.72;
}

.news-source-link {
  margin-top: 0.72rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--green-dark);
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: none;
}

.news-source-link span {
  color: var(--muted);
  font-weight: 400;
}

.news-card-link:hover .news-source-link,
.news-card-link:focus-visible .news-source-link {
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.news-empty-state {
  padding: 4rem 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  text-align: center;
}

.news-empty-state h2 {
  margin: 0;
  font-size: 1.2rem;
}

.news-empty-state p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

/* News detail */
.news-detail-page {
  width: min(100%, 820px);
  min-height: calc(100vh - 170px);
  margin: 0 auto;
  padding: 1.65rem 2rem 5rem;
}

.news-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
}

.news-breadcrumb a {
  color: var(--green-dark);
  text-decoration: none;
}

.news-breadcrumb span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-detail-header {
  padding: 2.15rem 0 0;
}

.news-detail-header h1 {
  max-width: 800px;
  margin: 0.8rem 0 0;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.08;
}

.news-detail-lead {
  margin: 1.15rem 0 0;
  padding-bottom: 1.55rem;
  border-bottom: 1px solid var(--border);
  color: #292c30;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
}

.news-detail-body {
  padding: 1.6rem 0 0;
}

.news-detail-body p {
  margin: 0 0 1.15rem;
  color: #31343a;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.88;
}

.news-source-box {
  margin-top: 2.15rem;
  padding: 1.15rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--off-white);
}

.news-source-box > div {
  display: grid;
  gap: 0.18rem;
}

.news-source-box > div span {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.news-source-box > div strong {
  font-size: 0.86rem;
  font-weight: 650;
}

@media (max-width: 760px) {
  .news-intro {
    padding: 2.4rem 1rem 1.5rem;
  }

  .news-shell {
    width: calc(100% - 2rem);
    padding: 1rem 0 3.5rem;
  }

  .news-filter-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.7rem 0;
  }

  .news-filter-buttons {
    width: 100%;
    padding-bottom: 0.2rem;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .news-filter-buttons::-webkit-scrollbar {
    display: none;
  }

  .news-filter-button {
    flex: 0 0 auto;
  }

  .news-results-meta {
    min-height: 78px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
  }

  .news-results-meta p:last-child {
    text-align: left;
  }

  .news-featured {
    padding: 1.15rem;
  }

  .news-item {
    padding: 1.25rem 0;
  }

  .news-date {
    width: 100%;
    margin: 0.1rem 0 0;
  }

  .news-source-link {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.15rem;
  }

  .news-detail-page {
    padding: 1.2rem 1.15rem 3.5rem;
  }

  .news-detail-header {
    padding-top: 1.65rem;
  }

  .news-detail-header h1 {
    font-size: clamp(1.8rem, 10vw, 2.6rem);
  }

  .news-source-box {
    align-items: stretch;
    flex-direction: column;
  }

  .news-source-box .button {
    width: 100%;
  }
}

/* Ecosystem insights */
.insights-page {
  min-height: calc(100vh - 170px);
  background: var(--white);
}

.insights-intro {
  width: min(100%, 1000px);
  margin: 0 auto;
  padding: 3.2rem 2.5rem 1.2rem;
}

.insights-intro .section-label {
  margin-bottom: 0.55rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.insights-intro .section-label::before {
  width: 1.5rem;
  height: 1px;
  flex: 0 0 auto;
  background: var(--green);
  content: "";
}

.insights-intro h1 {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.08;
}

.insights-intro > p:last-child {
  max-width: 700px;
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 300;
  line-height: 1.7;
}

.insights-status {
  width: min(calc(100% - 4rem), 920px);
  min-height: 300px;
  margin: 0 auto 4rem;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.8rem;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--off-white);
  font-size: 0.84rem;
  text-align: center;
}

.insights-status p,
.insights-status h2 {
  margin: 0;
}

.insights-status h2 {
  color: var(--black);
  font-size: 1.2rem;
}

.insights-status.is-error {
  padding: 2rem;
}

.insights-shell {
  width: min(100%, 1000px);
  margin: 0 auto;
  padding-bottom: 2rem;
}

.insights-block {
  padding: 2.4rem 2.5rem;
}

.insights-block + .insights-block {
  border-top: 1px solid var(--border);
}

.insights-block-heading .section-label {
  margin-bottom: 0.4rem;
}

.insights-block-heading h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.insights-block-heading > p:last-child {
  max-width: 700px;
  margin: 0.45rem 0 1.55rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.7;
}

.insights-block-no-intro .insights-block-heading {
  margin-bottom: 1.55rem;
}

.insights-growth-toggle {
  margin-bottom: 1.25rem;
  display: flex;
  gap: 0.4rem;
}

.insights-toggle-button {
  min-height: 32px;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: var(--white);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.insights-toggle-button:hover,
.insights-toggle-button:focus-visible,
.insights-toggle-button.is-active {
  border-color: var(--green-border);
  color: var(--green-dark);
  background: var(--green-dim);
}

.insights-growth-wrap {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
}

.insights-growth-chart {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.insights-grid-line {
  stroke: var(--border);
  stroke-width: 1;
}

.insights-axis-label {
  fill: #9ca3af;
  font-family: "Inter", sans-serif;
  font-size: 11px;
}

.insights-axis-year {
  font-size: 10.5px;
}

.insights-growth-area {
  fill: var(--green-dim);
}

.insights-growth-line {
  fill: none;
  stroke: var(--green);
  stroke-width: 2.5;
}

.insights-growth-point,
.insights-growth-bar {
  fill: var(--green);
  cursor: pointer;
}

.insights-growth-point:focus-visible,
.insights-growth-bar:focus-visible {
  outline: none;
  stroke: var(--black);
  stroke-width: 2;
}

.insights-tooltip {
  position: absolute;
  z-index: 5;
  padding: 0.32rem 0.58rem;
  border-radius: 6px;
  color: var(--white);
  background: var(--black);
  font-size: 0.72rem;
  line-height: 1.4;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -140%);
  transition: opacity 0.1s ease;
}

.insights-tooltip.is-visible {
  opacity: 1;
}

.insights-hubs,
.insights-bars {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.insights-hub-row,
.insights-bar-row {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.insights-hub-rank {
  width: 18px;
  flex: 0 0 auto;
  color: #9ca3af;
  font-size: 0.72rem;
  text-align: right;
}

.insights-hub-name {
  width: 155px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
  color: var(--black);
  font-size: 0.84rem;
}

.insights-country-badge {
  padding: 0.1rem 0.35rem;
  flex: 0 0 auto;
  border: 1px solid var(--green-border);
  border-radius: 4px;
  color: var(--green-dark);
  background: var(--green-dim);
  font-size: 0.6rem;
  font-weight: 650;
  line-height: 1.35;
}

.insights-bar-name {
  width: 210px;
  flex: 0 0 auto;
  color: var(--black);
  font-size: 0.82rem;
  line-height: 1.35;
  text-align: right;
  overflow-wrap: anywhere;
}

.insights-bar-track {
  height: 28px;
  min-width: 0;
  display: block;
  flex: 1;
  overflow: hidden;
  border-radius: 5px;
  background: var(--gray);
}

.insights-hub-track {
  height: 26px;
}

.insights-bar-fill {
  height: 100%;
  min-width: 30px;
  padding-right: 0.55rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border-radius: 5px;
  color: var(--white);
  background: var(--green);
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1;
}

.insights-bar-fill.is-dim {
  color: var(--black);
  background: #c9cdca;
}

.insights-chart-note {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-style: italic;
  line-height: 1.55;
}

.insights-type-bar {
  height: 52px;
  display: flex;
  overflow: hidden;
  border-radius: 8px;
  background: var(--gray);
}

.insights-type-segment {
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 650;
  transition: opacity 0.15s ease;
}

.insights-type-segment.is-light {
  color: var(--green-dark);
}

.insights-type-segment:hover {
  opacity: 0.86;
}

.insights-type-legend {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.35rem;
}

.insights-type-item {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  color: var(--black);
  font-size: 0.8rem;
}

.insights-type-swatch {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border-radius: 3px;
}

.insights-type-value {
  color: var(--muted);
}

.insights-footnote {
  margin: 0;
  padding: 0 2.5rem 2.5rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-style: italic;
  line-height: 1.65;
}

.insights-empty {
  margin: 0;
  padding: 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--muted);
  background: var(--off-white);
  font-size: 0.82rem;
  text-align: center;
}

@media (max-width: 760px) {
  .insights-intro {
    padding: 2.4rem 1rem 1rem;
  }

  .insights-intro > p:last-child {
    font-size: 0.9rem;
  }

  .insights-status {
    width: calc(100% - 2rem);
    min-height: 240px;
  }

  .insights-shell {
    width: 100%;
  }

  .insights-block {
    padding: 2rem 1rem;
  }

  .insights-growth-wrap {
    padding-bottom: 0.35rem;
    scrollbar-color: var(--border) transparent;
    scrollbar-width: thin;
  }

  .insights-growth-chart {
    width: 620px;
    max-width: none;
  }

  .insights-hub-row,
  .insights-bar-row {
    gap: 0.55rem;
  }

  .insights-hub-rank {
    width: 16px;
  }

  .insights-hub-name {
    width: 120px;
    font-size: 0.74rem;
  }

  .insights-bar-name {
    width: 125px;
    font-size: 0.72rem;
  }

  .insights-type-bar {
    height: 46px;
  }

  .insights-type-legend {
    gap: 0.65rem 1rem;
  }

  .insights-footnote {
    padding: 0 1rem 2rem;
  }
}

@media (max-width: 420px) {
  .insights-toggle-button {
    padding-inline: 0.68rem;
    font-size: 0.7rem;
  }

  .insights-hub-name {
    width: 105px;
  }

  .insights-bar-name {
    width: 112px;
  }
}
