/* Homepage path finder - scoped, additive, and safe to remove. */
.tc-pathfinder-section {
  padding: 68px 0 58px;
  background:
    linear-gradient(180deg, rgba(18, 24, 38, 0.78), rgba(10, 8, 6, 0.92)),
    radial-gradient(56% 48% at 88% 6%, rgba(59, 130, 246, 0.16), transparent 62%),
    radial-gradient(42% 42% at 8% 92%, rgba(45, 212, 191, 0.11), transparent 58%);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.tc-pathfinder-header {
  max-width: 760px;
  margin: 0 auto 30px;
  text-align: center;
}

.tc-pathfinder-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid rgba(45, 212, 191, 0.28);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.68);
  color: #a7f3d0;
  font-size: 0.78rem;
  font-weight: 700;
}

.tc-pathfinder-kicker .tc-icon {
  width: 16px;
  height: 16px;
}

.tc-pathfinder-header h2 {
  margin: 16px 0 10px;
  color: #f8fafc;
  font-size: 2.25rem;
  line-height: 1.12;
  letter-spacing: 0;
}

.tc-pathfinder-header p {
  margin: 0 auto;
  max-width: 660px;
  color: #b6c2d2;
  font-size: 1rem;
  line-height: 1.65;
}

.tc-pathfinder-layout {
  display: grid;
  grid-template-columns: minmax(230px, 0.36fr) minmax(0, 0.64fr);
  gap: 18px;
  align-items: stretch;
  max-width: 1040px;
  margin: 0 auto;
}

.tc-path-controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-content: start;
}

.tc-path-tab {
  min-height: 58px;
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.66);
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.tc-path-tab .tc-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.tc-path-tab:hover,
.tc-path-tab:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(45, 212, 191, 0.44);
  color: #f8fafc;
  outline: none;
}

.tc-path-tab.is-active {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.22), rgba(59, 130, 246, 0.16));
  border-color: rgba(45, 212, 191, 0.5);
  color: #ecfeff;
  box-shadow: 0 16px 40px rgba(8, 47, 73, 0.22);
}

.tc-path-result {
  min-height: 292px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(12, 18, 30, 0.84)),
    radial-gradient(circle at 90% 0, rgba(14, 165, 233, 0.14), transparent 44%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  padding: 26px;
}

.tc-path-result:focus-visible {
  outline: 2px solid rgba(45, 212, 191, 0.72);
  outline-offset: 3px;
}

.tc-path-result-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.tc-path-result-label,
.tc-path-result-time {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
}

.tc-path-result-label {
  background: rgba(20, 184, 166, 0.14);
  color: #99f6e4;
}

.tc-path-result-time {
  background: rgba(251, 146, 60, 0.12);
  color: #fed7aa;
}

.tc-path-result h3 {
  margin: 0 0 12px;
  color: #f8fafc;
  font-size: 1.65rem;
  line-height: 1.18;
  letter-spacing: 0;
}

.tc-path-result p {
  margin: 0;
  max-width: 680px;
  color: #cbd5e1;
  line-height: 1.68;
}

.tc-path-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 22px;
}

.tc-path-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: #dbeafe;
  font-size: 0.8rem;
  font-weight: 700;
}

.tc-path-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tc-path-actions .btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tc-path-actions .tc-icon {
  width: 18px;
  height: 18px;
}

.tc-path-quick-grid {
  max-width: 1040px;
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.tc-path-quick-card {
  min-height: 136px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.62);
  color: #e2e8f0;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.tc-path-quick-card:hover,
.tc-path-quick-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(96, 165, 250, 0.48);
  background: rgba(15, 23, 42, 0.82);
  outline: none;
}

.tc-path-quick-card .tc-icon {
  width: 22px;
  height: 22px;
  color: #67e8f9;
}

.tc-path-quick-card span {
  color: #f8fafc;
  font-weight: 800;
}

.tc-path-quick-card strong {
  color: #aebdd0;
  font-size: 0.86rem;
  line-height: 1.45;
  font-weight: 600;
}

@media (max-width: 900px) {
  .tc-pathfinder-section {
    padding: 48px 0 42px;
  }

  .tc-pathfinder-header {
    text-align: left;
  }

  .tc-pathfinder-header h2 {
    font-size: 1.78rem;
  }

  .tc-pathfinder-layout {
    grid-template-columns: 1fr;
  }

  .tc-path-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tc-path-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .tc-pathfinder-section {
    padding: 34px 0 32px;
  }

  .tc-pathfinder-header {
    margin-bottom: 20px;
  }

  .tc-pathfinder-header h2 {
    font-size: 1.48rem;
    line-height: 1.2;
  }

  .tc-pathfinder-header p,
  .tc-path-result p {
    font-size: 0.92rem;
  }

  .tc-path-quick-grid {
    grid-template-columns: 1fr;
  }

  .tc-path-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .tc-path-tab {
    min-height: 48px;
    font-size: 0.82rem;
    padding: 0 10px;
    gap: 7px;
  }

  .tc-path-tab .tc-icon {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
  }

  .tc-path-result {
    min-height: 0;
    padding: 20px;
  }

  .tc-path-result h3 {
    font-size: 1.28rem;
  }

  .tc-path-actions .btn,
  .tc-path-actions a {
    width: 100%;
    justify-content: center;
  }

  .tc-path-quick-card {
    min-height: 112px;
    padding: 15px;
  }
}
