/* =========================
   OVERVIEW BASE
========================= */

#overview,
.overview-panel {
  background: #f6f6f2;
}

.overview-inner {
  max-width: 1180px;
}

#overview > .section-inner > .section-note {
  max-width: 1180px;
}

.overview-inner > .section-label:not(:first-child),
.overview-bridge-section,
.overview-method-section,
.journey-card {
  margin-top: 72px;
}

.overview-lead {
  max-width: 1080px;
}


/* =========================
   01 OVERVIEW HERO / CHART
========================= */

.overview-hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 28px;
  margin-top: 42px;
  align-items: stretch;
}

.overview-data-grid {
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
}

.bus-journey-card,
.gm-stat-card,
.overview-mini-map-card {
  border-radius: 28px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 20px 60px rgba(0,0,0,0.06);
}

.bus-journey-card {
  padding: 28px 28px 28px;
  min-height: auto;
}

.bus-journey-header h4 {
  margin: 0;
  color: #111;
  font-size: 1.35rem;
}

.chart-kicker {
  margin: 0 0 10px;
  color: #ff4b25;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 900;
}

.chart-note {
  margin: 0 0 22px;
  color: var(--grey-mid);
  font-size: 0.82rem;
}

.bus-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin: 22px 0 12px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--grey-mid);
  font-size: 0.82rem;
  font-weight: 700;
}

.legend-item i,
.bus-legend.refined .legend-item i {
  width: 13px;
  height: 13px;
  border-radius: 999px;
}

.legend-item.gm {
  color: #111;
}

.legend-item.gm i { background: #ff4b25; }
.legend-item.west-midlands i { background: #9f9f9f; }
.legend-item.west-yorkshire i { background: #b8b8b8; }
.legend-item.merseyside i { background: #d0d0d0; }
.legend-item.south-yorkshire i { background: #e5e5e5; }

#bus-journey-chart {
  position: relative;
  width: 100%;
  min-height: 360px;
}

#bus-journey-chart svg {
  width: 100%;
  height: auto;
  display: block;
}

.bus-grid line {
  stroke: rgba(0,0,0,0.08);
}

.bus-grid path {
  display: none;
}

.bus-axis path,
.bus-axis line {
  stroke: rgba(0,0,0,0.18);
}

.bus-axis text {
  fill: rgba(0,0,0,0.62);
  font-size: 12px;
  font-weight: 700;
}

.bus-year-marker {
  stroke: rgba(255,75,37,0.55);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
}

.bus-tooltip {
  margin-top: 12px;
  color: #111;
  font-size: 1rem;
  line-height: 1.35;
}

.bus-tooltip strong {
  color: #ff4b25;
  font-size: 1.25rem;
  margin-right: 6px;
}

.bus-tooltip span,
.bus-tooltip b,
.bus-tooltip em {
  margin-right: 6px;
}

.bus-slider-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  margin-top: 10px;
}

.bus-slider-row span {
  color: #111;
  font-weight: 800;
}

.bus-slider-row strong {
  color: #ff4b25;
}

.bus-slider-row input {
  width: 100%;
  accent-color: #ff4b25;
}

.chart-scope-note {
  margin-top: 14px;
  padding: 11px 14px;
  border-radius: 14px;
  background: rgba(255, 75, 37, 0.055);
  border: 1px solid rgba(255, 75, 37, 0.14);
  color: var(--grey-mid);
  font-size: 0.76rem;
  line-height: 1.42;
}

.chart-scope-note strong {
  color: #ff4b25;
}

.mini-source {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,0.08);
  color: var(--grey-mid);
  font-size: 0.78rem;
  line-height: 1.45;
}


/* =========================
   SIDE CONTEXT / MINI MAP
========================= */

.overview-side-context {
  display: grid;
  grid-template-rows: auto auto;
  gap: 18px;
}

.gm-stat-card {
  padding: 24px;
}

.gm-stat-main {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.gm-stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255,75,37,0.12);
  color: #ff4b25;
  font-size: 1.5rem;
}

.gm-stat-main h4 {
  margin: 0 0 4px;
  color: #111;
  font-size: 0.95rem;
}

.gm-stat-main strong {
  display: block;
  color: #ff4b25;
  font-family: "Anton", sans-serif;
  font-size: 3.4rem;
  line-height: 0.95;
}

.gm-stat-main p {
  margin: 4px 0 0;
  color: #111;
  font-weight: 800;
}

.gm-stat-list {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.gm-stat-list div {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: start;
}

.gm-stat-list span {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255,75,37,0.10);
  color: #ff4b25;
  font-family: "Anton", sans-serif;
  font-size: 0.95rem;
}

.gm-stat-list p {
  margin: 0;
  color: #111;
  line-height: 1.4;
  font-size: 0.88rem;
}

.gm-stat-list strong {
  color: #ff4b25;
}

.overview-mini-map-card,
.compact-map-card {
  padding: 20px 20px 18px;
  overflow: hidden;
}

.overview-mini-map-card h4,
.compact-map-card h4 {
  margin: 0 0 8px;
  color: #111;
  font-size: 1rem;
}

#overview-mini-map {
  width: 100%;
  height: 205px;
  display: block;
  margin: 2px auto 8px;
}

.mini-map-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
  color: var(--grey-mid);
  font-size: 0.7rem;
  line-height: 1.25;
  font-weight: 700;
}

.mini-map-legend span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mini-map-legend i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.28);
}

.mini-map-legend i.gm {
  background: #ff4b25;
}

.mini-map-note {
  margin: 10px 0 0;
  color: var(--grey-mid);
  font-size: 0.68rem;
  line-height: 1.38;
}

.mini-region {
  fill: rgba(0, 0, 0, 0.10);
  stroke: #ffffff;
  stroke-width: 1.1;
  cursor: pointer;
  transition: fill 0.2s ease, stroke 0.2s ease, stroke-width 0.2s ease, opacity 0.2s ease;
}

.mini-region:hover,
.mini-region.hovered {
  fill: rgba(255, 75, 37, 0.16);
}

.mini-region.active-focus {
  fill: rgba(255, 75, 37, 0.90);
  stroke: #ffffff;
  stroke-width: 1.2;
}

.mini-region.active-linked {
  fill: rgba(0, 0, 0, 0.08);
  stroke: #ff4b25;
  stroke-width: 2.2;
}

.mini-region.active-outscope {
  fill: rgba(0, 0, 0, 0.06);
  stroke: rgba(255, 75, 37, 0.55);
  stroke-width: 1.8;
  stroke-dasharray: 4 3;
}

.mini-map-tooltip {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(17,17,17,0.9);
  color: #fff;
  font-size: 0.78rem;
  z-index: 9999;
}


/* =========================
   OVERVIEW STATS
========================= */

.overview-stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 26px 0 56px;
  padding: 20px 0;
  border-top: 1px solid rgba(0,0,0,0.07);
  border-bottom: 1px solid rgba(0,0,0,0.07);
}

.overview-stat-row div {
  min-height: 88px;
  padding: 0 18px;
  border-right: 1px solid rgba(0,0,0,0.07);
}

.overview-stat-row div:last-child {
  border-right: 0;
}

.overview-stat-row strong {
  display: block;
  color: #ff4b25;
  font-size: 1.8rem;
  line-height: 1;
  font-weight: 900;
}

.overview-stat-row p {
  margin: 8px 0 0;
  color: #111;
  line-height: 1.35;
  font-size: 0.88rem;
}

.stat-keypoint strong {
  color: #ff4b25;
}

.stat-keypoint p {
  font-weight: 600;
}


/* =========================
   02 WHO USES THE BUS
========================= */

.who-bus-section {
  display: block;
  padding: 34px;
  border-radius: 28px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 20px 60px rgba(0,0,0,0.07);
}

.who-bus-top {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 42px;
  align-items: start;
}

.who-bus-intro h3 {
  font-size: clamp(2rem, 3.4vw, 3.4rem);
  margin-bottom: 16px;
}

.who-bus-intro > p {
  margin: 0;
  color: var(--grey-mid);
  line-height: 1.55;
}

.key-insight-card {
  margin-top: 30px;
  padding: 22px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,75,37,0.16), transparent 34%),
    rgba(255,248,244,0.9);
  border: 1px solid rgba(255,75,37,0.08);
}

.key-insight-card strong {
  display: block;
  margin-bottom: 8px;
  color: #111;
}

.key-insight-card p {
  margin: 0;
  color: var(--grey-mid);
  line-height: 1.5;
  font-size: 0.92rem;
}

.who-bus-chart {
  padding: 18px 4px;
}

.who-bus-chart h4,
.who-bus-reasons h4 {
  margin: 0 0 4px;
  color: #111;
  font-size: 1.25rem;
}

.bar-row {
  display: grid;
  grid-template-columns: 62px 1fr 44px;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.bar-row span {
  color: var(--grey-mid);
  font-size: 0.92rem;
  font-weight: 700;
}

.bar-row strong {
  color: #111;
  font-size: 0.92rem;
  text-align: right;
}

.bar {
  height: 18px;
  border-radius: 999px;
  background: rgba(0,0,0,0.1);
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: rgba(0,0,0,0.2);
}

.bar-row.active span,
.bar-row.active strong {
  color: #ff4b25;
}

.bar-row.active .bar i {
  background: #ff4b25;
}

.who-bus-reasons {
  margin-top: 30px;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255,248,244,0.82);
  border: 1px solid rgba(255,75,37,0.12);
}

.who-bus-reasons h4 {
  margin-bottom: 18px;
}

.reason-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.reason-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 0;
  border-bottom: 0;
}

.reason-item span {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255,75,37,0.12);
  color: #ff4b25;
  font-family: "Anton", sans-serif;
  font-size: 1rem;
}

.reason-item strong {
  display: block;
  margin-bottom: 4px;
  color: #111;
  font-size: 0.92rem;
}

.reason-item p {
  margin: 0;
  color: var(--grey-mid);
  line-height: 1.42;
  font-size: 0.84rem;
}


/* =========================
   03 RESEARCH QUESTIONS
========================= */

.overview-bridge-section {
  padding-top: 10px;
}

.rq-editorial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.rq-item {
  min-height: 170px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.62);
  border-radius: 22px;
  padding: 24px;
  text-align: left;
  font-family: "Inter", sans-serif;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.rq-item span {
  display: block;
  margin-bottom: 18px;
  color: #ff4b25;
  font-family: "Anton", sans-serif;
  font-size: 2rem;
  line-height: 1;
}

.rq-item strong {
  display: block;
  color: #111;
  font-size: 1.05rem;
  line-height: 1.25;
}

.rq-item:hover,
.rq-item.active {
  transform: translateY(-4px);
  border-color: rgba(255,75,37,0.42);
  background: rgba(255,245,240,0.92);
}

.rq-explanation {
  grid-column: 1 / -1;
  padding: 28px;
  border-radius: 24px;
  background: #111;
  color: #fff;
}

.rq-explanation h5 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 1.4rem;
}

.rq-explanation p {
  margin: 0;
  color: rgba(255,255,255,0.72);
  line-height: 1.6;
}


/* =========================
   04 FRAMEWORK
========================= */

.overview-method-section {
  padding: 34px;
  border-radius: 28px;
  background: rgba(255,255,255,0.64);
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 18px 52px rgba(0,0,0,0.05);
}

.framework-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 14px;
  margin-top: 28px;
}

.framework-step {
  padding: 22px;
  border-radius: 18px;
  background: #f6f6f2;
  border: 1px solid rgba(0,0,0,0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.framework-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.08);
}

.framework-step span {
  color: #ff4b25;
  font-family: "Anton", sans-serif;
  font-size: 1.5rem;
}

.framework-step strong {
  display: block;
  margin: 8px 0;
  color: #111;
  font-size: 1.05rem;
}

.framework-step p {
  margin: 0;
  color: var(--grey-mid);
  line-height: 1.4;
  font-size: 0.92rem;
}

.flow-arrow {
  display: flex;
  align-items: center;
  color: #ff4b25;
  font-weight: 900;
  font-size: 1.4rem;
}


/* =========================
   05 WEBSITE JOURNEY
========================= */

.journey-card {
  padding: 34px;
  border-radius: 28px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 20px 60px rgba(0,0,0,0.06);
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 26px;
}

.journey-step {
  display: block;
  min-height: 170px;
  text-decoration: none;
  color: #111;
  padding: 24px;
  border-radius: 20px;
  background: #f6f6f2;
  border: 1px solid rgba(0,0,0,0.07);
  transition: transform 0.2s ease, background 0.2s ease;
}

.journey-step:hover {
  transform: translateY(-4px);
  background: #fff;
}

.journey-step span {
  display: block;
  margin-bottom: 12px;
  color: #ff4b25;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 900;
}

.journey-step strong {
  display: block;
  margin-bottom: 8px;
  color: #111;
  font-size: 1.05rem;
}

.journey-step p {
  margin: 0;
  color: var(--grey-mid);
  line-height: 1.45;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1050px) {
  .overview-hero-grid,
  .overview-data-grid,
  .rq-editorial-grid,
  .journey-grid {
    grid-template-columns: 1fr;
  }

  .overview-side-context {
    grid-template-columns: 1fr 1fr;
  }

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

  .who-bus-top,
  .reason-grid,
  .framework-flow {
    grid-template-columns: 1fr;
  }

  .flow-arrow {
    justify-content: center;
    transform: rotate(90deg);
  }

  #overview-mini-map {
    height: 240px;
  }
}

@media (max-width: 720px) {
  .overview-side-context,
  .overview-stat-row {
    grid-template-columns: 1fr;
  }

  .overview-stat-row div {
    border-right: 0;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    padding: 0 0 16px;
  }

  .overview-stat-row div:last-child {
    border-bottom: 0;
  }

  .who-bus-section,
  .overview-method-section,
  .journey-card {
    padding: 24px;
  }

  .bar-row {
    grid-template-columns: 58px 1fr 40px;
  }

  .mini-map-legend {
    grid-template-columns: 1fr;
  }
}