/* Sichuan torch route: restrained editorial map paired with the site's existing plan entry. */
.home-torch-section {
  padding: clamp(56px, 7vw, 104px) clamp(20px, 4vw, 64px);
  overflow: hidden;
  background: #fff;
}

.home-torch-shell {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
}

.home-torch-hero {
  display: grid;
  grid-template-columns: minmax(230px, .68fr) minmax(0, 1.32fr);
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
  min-height: 0;
  overflow: visible;
  color: #292722;
  background: transparent;
}

.home-torch-hero::before { display: none; }
.home-torch-hero__copy {
  width: auto;
  padding: 0;
  text-shadow: none;
}
.home-torch-hero__eyebrow {
  margin: 0 0 16px;
  color: #9a704b;
  font: 700 10px/1.4 var(--font-sans);
  letter-spacing: .18em;
}
.home-torch-hero__copy h2 {
  margin: 0;
  color: #292722;
  font-family: var(--font-brand);
  font-size: clamp(38px, 4.5vw, 66px);
  font-weight: 600;
  letter-spacing: .025em;
  line-height: 1.2;
  text-shadow: none;
}
.home-torch-hero__copy h2 em { color: #a94731; }
.home-torch-hero__copy > p:not(.home-torch-hero__eyebrow) {
  max-width: 340px;
  margin: 20px 0 0;
  color: #6f6a61;
  font-family: var(--font-brand);
  font-size: 16px;
  line-height: 1.85;
  text-shadow: none;
}
.home-torch-hero__cta {
  gap: 10px;
  margin-top: 24px;
  color: #863a2e;
  font-size: 13px;
  font-weight: 600;
}
.home-torch-hero__cta::before { background: #a94731; }
.home-torch-hero__cta b { color: #a94731; }

.home-torch-map { min-width: 0; }
.home-torch-map__card {
  overflow: hidden;
  border: 0;
  background: #fff;
  box-shadow: none;
}
.home-torch-map__svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 920 / 650;
  background: #fff;
}
.home-torch-map__svg .map-paper { fill: #fff; }
.home-torch-map__svg .land-shadow { stroke: #c9c0b2; stroke-width: .7; }
.home-torch-map__svg .county-fill { fill: url(#land-fill-main); }
.home-torch-map__svg .coordinate-grid { display: none; }
.home-torch-map__svg .county-boundaries { stroke: #d6d0c5; stroke-width: .62; vector-effect: non-scaling-stroke; }
.home-torch-map__svg .city-boundaries { stroke: #aaa397; stroke-width: 1.1; vector-effect: non-scaling-stroke; }
.home-torch-map__svg .province-boundary { stroke: #746e64; stroke-width: 1.8; vector-effect: non-scaling-stroke; }
.home-torch-map__svg .city-label {
  fill: #777168;
  font: 500 10px var(--font-sans);
  opacity: .88;
  paint-order: stroke;
  stroke: #fff;
  stroke-linejoin: round;
  stroke-width: 3px;
  text-anchor: middle;
}
.home-torch-map__svg .route-underlay,
.home-torch-map__svg .route-heat,
.home-torch-map__svg .route-progress {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.home-torch-map__svg .route-underlay { stroke: #a79d8d; stroke-width: 1; stroke-dasharray: 2 6; opacity: .32; }
.home-torch-map__svg .route-heat { stroke: #e8a15b; stroke-width: 5; opacity: .2; filter: blur(2px); }
.home-torch-map__svg .route-progress { stroke: #c96d42; stroke-width: 1.8; opacity: .96; filter: drop-shadow(0 0 1.5px rgba(229,154,83,.65)); }
.home-torch-map__svg .station-marker { pointer-events: none; }
.home-torch-map__svg .station-hit,
.home-torch-map__svg .station-sub { display: none; }
.home-torch-map__svg .station-count { display: block; fill: #443a31; font: 700 8px var(--font-sans); }
.home-torch-map__svg .station-ring { fill: #f7f3e9; stroke: #a94731; stroke-width: 1.35; vector-effect: non-scaling-stroke; }
.home-torch-map__svg .station-pulse { fill: none; stroke: #c45a36; stroke-width: .9; opacity: 0; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; }
.home-torch-map__svg .station-dot { fill: #a94731; }
.home-torch-map__svg .station-name {
  display: block;
  fill: #443a31;
  font: 650 12px var(--font-sans);
  paint-order: stroke;
  stroke: #fff;
  stroke-linejoin: round;
  stroke-width: 3.5px;
}
.home-torch-map__svg .station-leader { display: block; fill: none; stroke: #ad987d; stroke-width: .7; vector-effect: non-scaling-stroke; }
.home-torch-map__svg .station-marker.is-active .station-ring { fill: #ad4932; stroke: #fff4d9; stroke-width: 1.4; filter: drop-shadow(0 0 3px rgba(212,110,55,.46)); }
.home-torch-map__svg .station-marker.is-active .station-dot { fill: #fff4d7; }
.home-torch-map__svg .station-marker.is-active .station-name { fill: #a23d2d; }
.home-torch-map__svg .station-marker.is-arriving .station-pulse { animation: home-torch-station-arrival 1.1s ease-out 1; }
.home-torch-map__svg .torch-head,
.home-torch-map__svg .trace-head { pointer-events: none; opacity: 0; }
.home-torch-map__svg .torch-head { filter: drop-shadow(0 1px 2px rgba(85,43,28,.2)); transition: opacity .22s ease; }
.home-torch-map__svg .trace-head { transition: opacity .16s ease; }
.home-torch-map__svg .trace-head__halo {
  fill: #efa65c;
  opacity: .52;
  filter: blur(2px);
  transform-box: fill-box;
  transform-origin: center;
  animation: home-torch-trace-halo .7s ease-in-out infinite alternate;
}
.home-torch-map__svg .trace-head__spark { fill: #fff4cb; stroke: #c85b36; stroke-width: .7; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 2px #ef9149); }
.home-torch-map__svg .torch-aura { opacity: .35; mix-blend-mode: multiply; }
.home-torch-map__svg .torch-ground { fill: #c04d31; opacity: .25; filter: blur(1.5px); }
.home-torch-map__svg .torch-shaft { stroke: #f4cf83; stroke-width: .7; vector-effect: non-scaling-stroke; }
.home-torch-map__svg .torch-collar { fill: #f5c66e; stroke: #9d3c2f; stroke-width: .7; vector-effect: non-scaling-stroke; }
.home-torch-map__svg .flame-outer { fill: #c9462f; }
.home-torch-map__svg .flame-inner { fill: #f28c42; }
.home-torch-map__svg .flame-core { fill: #ffe8a0; }
.home-torch-map__svg .flame-shape { transform-box: view-box; transform-origin: 0 0; animation: home-torch-flame-flicker .62s ease-in-out infinite alternate; }
.home-torch-map__svg .spark { fill: #ffcf70; opacity: 0; filter: drop-shadow(0 0 2px #ff9e43); }
.home-torch-map__svg .spark-one { animation: home-torch-spark-a 1.8s ease-in-out infinite; }
.home-torch-map__svg .spark-two { animation: home-torch-spark-b 2.2s ease-in-out infinite .25s; }
.home-torch-map__svg .spark-three { display: none; }
.home-torch-map__svg .map-kicker { fill: #8d795f; font: 700 8px var(--font-sans); letter-spacing: 1.8px; }
.home-torch-map__svg .map-caption { fill: #39342d; font: 700 16px var(--font-sans); }
.home-torch-map__svg .map-coordinate,
.home-torch-map__svg .map-note { fill: #827a6e; font: 500 9px var(--font-sans); }
.home-torch-map__svg .map-note { font-size: 9px; }
.home-torch-map__svg .compass path { fill: #8b7760; }
.home-torch-map__svg .compass text { fill: #8b7760; font: 700 8px var(--font-sans); }

.home-torch-map__meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 11px 2px 0;
  color: #929ba3;
  font-size: 10px;
  line-height: 1.6;
}
.home-torch-map__source { margin-left: 0; text-align: left; }
.home-torch-map__source a { color: inherit; text-underline-offset: 2px; }
.home-torch-station-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 22px;
  border-top: 1px solid #ded7ca;
}
.home-torch-station-links a {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) 15px;
  align-items: center;
  gap: 5px 8px;
  min-width: 0;
  padding: 13px 9px 10px 0;
  color: #39342d;
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease;
}
.home-torch-station-links a + a { padding-left: 12px; border-left: 1px solid #e4ded2; }
.home-torch-station-links a:hover,
.home-torch-station-links a:focus-visible,
.home-torch-station-links a.is-active { color: #a94731; background: #fbf5f1; }
.home-torch-station-links a:focus-visible { outline: 2px solid #a94731; outline-offset: 2px; }
.home-torch-station-links a > span {
  grid-row: 1 / span 2;
  color: #a94731;
  font: 700 10px/1 var(--font-sans);
  letter-spacing: .05em;
}
.home-torch-station-links b { overflow: hidden; font-size: 13px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.home-torch-station-links small { grid-column: 2; color: #827a6e; font-size: 10px; }
.home-torch-station-links i { grid-column: 3; grid-row: 1 / span 2; color: #a94731; font-size: 13px; font-style: normal; opacity: .7; }

@keyframes home-torch-trace-halo { from { transform: scale(.78); opacity: .35; } to { transform: scale(1.12); opacity: .72; } }
@keyframes home-torch-flame-flicker { from { transform: rotate(-3deg) scale(.98); } to { transform: rotate(4deg) scale(1.025); } }
@keyframes home-torch-spark-a { 0%,100% { opacity: 0; transform: translate(0,0); } 35% { opacity: .55; transform: translate(-3px,-8px); } 75% { opacity: 0; transform: translate(-5px,-13px); } }
@keyframes home-torch-spark-b { 0%,100% { opacity: 0; transform: translate(0,0); } 38% { opacity: .4; transform: translate(5px,-7px); } 78% { opacity: 0; transform: translate(7px,-12px); } }
@keyframes home-torch-station-arrival { 0% { opacity: .5; transform: scale(.8); } 100% { opacity: 0; transform: scale(1.65); } }

@media (max-width: 900px) {
  .home-torch-hero { grid-template-columns: minmax(190px, .62fr) minmax(0, 1.38fr); gap: 26px; }
  .home-torch-hero__copy h2 { font-size: clamp(36px, 5vw, 52px); }
  .home-torch-map__meta { flex-direction: column; gap: 2px; }
  .home-torch-map__source { margin-left: 0; text-align: left; }
  .home-torch-station-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-torch-station-links a:nth-child(3) { padding-left: 0; border-left: 0; }
  .home-torch-station-links a:nth-child(n+3) { border-top: 1px solid #e4ded2; }
}
@media (max-width: 640px) {
  .home-torch-section { padding: 48px 16px 54px; }
  .home-torch-hero { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .home-torch-hero__copy h2 { font-size: clamp(38px, 10vw, 48px); }
  .home-torch-hero__copy > p:not(.home-torch-hero__eyebrow) { margin-top: 13px; font-size: 14px; }
  .home-torch-hero__cta { margin-top: 17px; }
  .home-torch-map__svg .city-label { display: none; }
  .home-torch-map__svg .station-name { font-size: 28px; }
  .home-torch-map__meta { margin-top: 0; font-size: 10px; }
  .home-torch-station-links { margin-top: 14px; }
  .home-torch-station-links a { padding-block: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-torch-map__svg *,
  .home-torch-map__svg *::before,
  .home-torch-map__svg *::after { animation: none !important; transition: none !important; }
}

/* Restore the original full-bleed digital-twin cover on the homepage. */
.home-torch-section {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: #082541;
}
.home-torch-shell { width: 100%; max-width: none; margin: 0; }
.home-torch-hero {
  position: relative;
  display: block;
  height: calc(100svh - var(--header-height, 74px));
  min-height: 720px;
  max-height: 1240px;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: #082541;
}
.home-torch-hero::before {
  display: block;
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 25, 50, .82) 0%, rgba(3, 25, 50, .48) 38%, rgba(3, 25, 50, .06) 76%),
    linear-gradient(0deg, rgba(3, 25, 50, .62), transparent 36%, rgba(3, 25, 50, .1));
  content: "";
  pointer-events: none;
}
.home-torch-hero__image {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.home-torch-hero__copy {
  position: relative;
  z-index: 3;
  width: min(520px, 46%);
  padding: clamp(116px, 10vw, 154px) 0 0 clamp(7vw, 10.2vw, 156px);
  color: #fff;
  text-shadow: 0 2px 12px rgba(2, 18, 31, .62);
}
.home-torch-hero__copy h2 {
  color: #fff;
  font-size: clamp(52px, 5.4vw, 82px);
  line-height: 1.08;
}
.home-torch-hero__copy h2 em { color: #ff7c83; }
.home-torch-hero__copy > p:not(.home-torch-hero__eyebrow) {
  max-width: 390px;
  margin-top: 24px;
  color: rgba(255, 255, 255, .9);
  font-size: clamp(15px, 1.4vw, 19px);
}
.home-torch-hero__cta { color: #fff; }
.home-torch-hero__cta b { color: #ff7c83; }
.home-torch-map { display: none !important; }
.home-torch-route { z-index: 3; bottom: 18px; }
.home-torch-stations { z-index: 1; }
.home-torch-stop {
  min-width: 158px;
  min-height: 72px;
  padding: 9px 13px 9px 9px;
  border: 1px solid rgba(133, 238, 245, .34);
  border-radius: 18px;
  background: linear-gradient(120deg, rgba(3, 42, 71, .72), rgba(5, 29, 57, .2));
  box-shadow: 0 12px 30px rgba(1, 14, 31, .2), inset 0 1px 0 rgba(255, 255, 255, .1);
  backdrop-filter: blur(8px);
  color: #fff;
  pointer-events: auto;
  text-decoration: none;
}
.home-torch-stop:hover,
.home-torch-stop:focus-visible {
  border-color: rgba(154, 247, 249, .92);
  background: linear-gradient(120deg, rgba(8, 70, 101, .86), rgba(5, 35, 65, .42));
  transform: translateY(-4px);
}
.home-torch-stop i { width: 50px; height: 50px; flex-basis: 50px; }
.home-torch-stop > span { display: grid; gap: 4px; }
.home-torch-stop b { font-size: 16px; }
.home-torch-stop small { color: rgba(211, 248, 250, .76); font-size: 11px; }
.home-torch-stop strong { display: none; }
@media (max-width: 720px) {
  .home-torch-hero { height: 760px; min-height: 760px; }
  .home-torch-hero__copy { width: 100%; padding: 112px 26px 0; }
  .home-torch-hero__copy h2 { font-size: clamp(42px, 11vw, 58px); }
  .home-torch-hero__copy > p:not(.home-torch-hero__eyebrow) { max-width: 290px; font-size: 15px; }
  .home-torch-route { right: 18px; bottom: 18px; left: 18px; height: 290px; }
  .home-torch-stop {
    min-width: 0;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  .home-torch-stop:hover,
  .home-torch-stop:focus-visible { border: 0; background: transparent; transform: translateY(-4px); }
  .home-torch-stop i { width: 34px; height: 34px; flex-basis: 34px; font-size: 11px; }
  .home-torch-stop b { font-size: 12px; }
  .home-torch-stop small { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-torch-stop { transition: none; }
}
