/* Turkish Patent Timeline — UX hierarchy */

body.tpe-page .inner-main {
  max-width: none;
}

.tpe-hero {
  margin-bottom: 1.1rem;
}

.tpe-hero__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
}

.tpe-hero h1 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: clamp(1.9rem, 3.4vw, 2.55rem);
  margin: 0 0 0.4rem;
  color: var(--pearl);
}

.tpe-hero .lead {
  margin: 0;
  opacity: 0.78;
  max-width: 36rem;
  font-size: 0.98rem;
}

.tpe-badge {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.65rem;
  border: 1px solid rgba(157, 180, 200, 0.35);
  border-radius: 2px;
  color: rgba(247, 243, 232, 0.72);
  white-space: nowrap;
  align-self: center;
}

.tpe-layout {
  display: grid;
  grid-template-columns: minmax(13.5rem, 15.5rem) minmax(0, 1fr) minmax(16rem, 19rem);
  gap: 0.75rem;
  align-items: start;
}

.tpe-panel {
  background: rgba(26, 48, 78, 0.42);
  border: 1px solid rgba(157, 180, 200, 0.26);
  padding: 0.85rem 0.9rem 1rem;
  backdrop-filter: blur(6px);
}

.tpe-panel h2 {
  margin: 0 0 0.7rem;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247, 243, 232, 0.5);
  font-weight: 500;
}

/* —— Case (left) —— */
.tpe-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.65rem;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  opacity: 0.9;
}

.tpe-field span {
  opacity: 0.65;
}

.tpe-field input[type="date"] {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  padding: 0.5rem 0.55rem;
  border: 1px solid rgba(157, 180, 200, 0.35);
  border-radius: 2px;
  background: rgba(12, 26, 46, 0.55);
  color: var(--pearl);
  width: 100%;
  box-sizing: border-box;
}

.tpe-priority-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0.35rem 0 0.55rem;
  font-family: var(--font-ui);
  font-size: 0.78rem;
}

.tpe-seg {
  display: flex;
  border: 1px solid rgba(157, 180, 200, 0.3);
  border-radius: 2px;
  overflow: hidden;
}

.tpe-seg__btn {
  font: inherit;
  font-size: 0.72rem;
  padding: 0.28rem 0.65rem;
  border: 0;
  background: transparent;
  color: rgba(247, 243, 232, 0.7);
  cursor: pointer;
}

.tpe-seg__btn.is-on {
  background: rgba(247, 243, 232, 0.12);
  color: var(--pearl);
}

.tpe-stage {
  margin: 0.85rem 0 0.75rem;
  padding: 0.55rem 0.6rem;
  border-left: 2px solid rgba(157, 180, 200, 0.35);
}

.tpe-stage__k {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 0.2rem;
}

.tpe-stage__v {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--pearl);
}

.tpe-event-chips {
  list-style: none;
  margin: 0 0 0.65rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.tpe-event-chips li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  padding: 0.35rem 0.45rem;
  background: rgba(12, 26, 46, 0.4);
  border: 1px solid rgba(157, 180, 200, 0.2);
}

.tpe-event-chips button {
  border: 0;
  background: none;
  color: rgba(247, 243, 232, 0.55);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.tpe-btn-add {
  width: 100%;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(208, 176, 126, 0.55);
  border-radius: 2px;
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  margin-bottom: 0.45rem;
}

.tpe-btn-add:hover {
  background: rgba(208, 176, 126, 0.1);
}

.tpe-btn-ghost {
  width: 100%;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  padding: 0.4rem;
  border: 0;
  background: none;
  color: rgba(247, 243, 232, 0.45);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.tpe-btn {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  padding: 0.5rem 0.9rem;
  border: 0;
  border-radius: 2px;
  background: var(--gold);
  color: var(--ink);
  cursor: pointer;
}

/* —— Mid timeline —— */
.tpe-panel--mid {
  min-width: 0;
  overflow: auto;
}

.tpe-mid-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.tpe-mid-head h2 {
  margin: 0;
}

.tpe-views {
  display: flex;
  gap: 0.2rem;
}

.tpe-view {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.55rem;
  border: 1px solid rgba(157, 180, 200, 0.28);
  background: transparent;
  color: rgba(247, 243, 232, 0.6);
  cursor: pointer;
  border-radius: 2px;
}

.tpe-view.is-on {
  border-color: rgba(208, 176, 126, 0.65);
  color: var(--gold);
}

.tpe-empty {
  margin: 1.5rem 0.5rem;
  opacity: 0.65;
  font-family: var(--font-ui);
  font-size: 0.88rem;
}

.tpe-timeline {
  min-width: 48rem;
  padding: 0.5rem 0.2rem 0.6rem;
}

.tpe-lane {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.45rem;
  margin-bottom: 0.95rem;
}

.tpe-lane__label {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.5;
  padding-top: 2.4rem;
}

.tpe-lane__track {
  position: relative;
  height: 7.2rem;
  border-bottom: 1px solid rgba(157, 180, 200, 0.14);
}

.tpe-lane__axis {
  position: absolute;
  left: 0;
  right: 0;
  top: 58%;
  height: 1px;
  background: rgba(157, 180, 200, 0.32);
}

.tpe-today {
  position: absolute;
  top: 0;
  bottom: 0.15rem;
  width: 2px;
  margin-left: -1px;
  background: var(--gold);
  z-index: 4;
  pointer-events: none;
}

.tpe-today__tag {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-ui);
  font-size: 0.52rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
  line-height: 1.15;
  text-align: center;
  background: rgba(12, 26, 46, 0.92);
  padding: 0.08rem 0.22rem;
  z-index: 5;
  pointer-events: none;
}

.tpe-band {
  position: absolute;
  top: 52%;
  height: 0.45rem;
  background: rgba(120, 160, 200, 0.22);
  border-radius: 1px;
  z-index: 1;
}

.tpe-band--late {
  background: rgba(210, 140, 70, 0.32);
}

.tpe-mark {
  position: absolute;
  top: 1.65rem;
  transform: translateX(-50%);
  background: none;
  border: 0;
  padding: 0;
  color: rgba(247, 243, 232, 0.78);
  cursor: pointer;
  z-index: 3;
  width: 4.4rem;
  text-align: center;
  /* Only the node receives clicks — wide labels won't steal neighbours */
  pointer-events: none;
}

.tpe-mark--compact {
  width: 2.4rem;
  top: 2.35rem;
}

/* Clickable node — circle is the affordance + exclusive hit target */
.tpe-mark__node {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  margin: 0 auto 0.2rem;
  border-radius: 50%;
  border: 1.5px solid rgba(157, 180, 200, 0.55);
  background: rgba(18, 38, 61, 0.92);
  box-shadow: 0 0 0 2px rgba(12, 26, 46, 0.55);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  pointer-events: auto;
  cursor: pointer;
}

.tpe-mark--compact .tpe-mark__node {
  width: 0.95rem;
  height: 0.95rem;
}

.tpe-mark__glyph {
  font-size: 0.72rem;
  line-height: 1;
  color: rgba(247, 243, 232, 0.85);
}

.tpe-mark__dot {
  display: block;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: rgba(247, 243, 232, 0.7);
}

.tpe-mark__label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.56rem;
  line-height: 1.15;
  opacity: 0.72;
  max-width: 4.2rem;
  margin: 0 auto;
  white-space: normal;
  word-break: break-word;
  hyphens: auto;
  transition: opacity 0.15s ease, color 0.15s ease;
  text-shadow: 0 1px 2px rgba(12, 26, 46, 0.95), 0 0 6px rgba(12, 26, 46, 0.8);
}

/* Stack levels: alternate below / above the node to avoid overlap */
.tpe-mark--stack-0 .tpe-mark__label {
  margin-top: 0.15rem;
}

.tpe-mark--stack-1 {
  z-index: 3;
}

.tpe-mark--stack-1 .tpe-mark__label {
  position: absolute;
  left: 50%;
  top: 100%;
  width: 4.2rem;
  margin-top: 1.05rem;
  transform: translateX(-50%);
}

.tpe-mark--stack-2 {
  z-index: 3;
}

.tpe-mark--stack-2 .tpe-mark__label {
  position: absolute;
  left: 50%;
  bottom: calc(100% - 0.1rem);
  width: 4.2rem;
  margin: 0;
  transform: translateX(calc(-50% - 0.55rem));
}

.tpe-mark--stack-3 {
  z-index: 3;
}

.tpe-mark--stack-3 .tpe-mark__label {
  position: absolute;
  left: 50%;
  bottom: calc(100% - 0.1rem);
  width: 4.2rem;
  margin: 0;
  transform: translateX(calc(-50% + 0.55rem)) translateY(-0.95rem);
}

/* Dense clusters: hide non-active labels until hover/selection */
.tpe-mark--label-hover .tpe-mark__label {
  opacity: 0;
  pointer-events: none;
}

.tpe-mark--label-hover:hover .tpe-mark__label,
.tpe-mark--label-hover:focus-visible .tpe-mark__label,
.tpe-mark--label-hover.is-selected .tpe-mark__label {
  opacity: 1;
  pointer-events: auto;
  z-index: 7;
  padding: 0.12rem 0.28rem;
  background: rgba(12, 26, 46, 0.94);
  border: 1px solid rgba(157, 180, 200, 0.35);
  border-radius: 2px;
}

.tpe-mark--compact .tpe-mark__label {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  margin-top: 0.2rem;
  padding: 0.15rem 0.3rem;
  background: rgba(12, 26, 46, 0.92);
  border: 1px solid rgba(157, 180, 200, 0.3);
  white-space: nowrap;
  z-index: 5;
}

.tpe-mark--compact:hover .tpe-mark__label,
.tpe-mark--compact:focus-visible .tpe-mark__label,
.tpe-mark--compact.is-selected .tpe-mark__label {
  opacity: 1;
}

.tpe-mark:hover .tpe-mark__node,
.tpe-mark:focus-visible .tpe-mark__node {
  border-color: rgba(208, 176, 126, 0.85);
  background: rgba(32, 52, 78, 0.98);
  transform: scale(1.12);
  box-shadow: 0 0 0 4px rgba(208, 176, 126, 0.28);
  animation: tpe-node-pop 0.38s ease;
}

.tpe-mark:hover .tpe-mark__label,
.tpe-mark:focus-visible .tpe-mark__label {
  opacity: 1;
  color: var(--pearl);
}

.tpe-mark:focus-visible {
  outline: none;
}

.tpe-mark--completed .tpe-mark__node,
.tpe-mark--past .tpe-mark__node {
  border-color: rgba(120, 170, 140, 0.65);
  background: rgba(40, 70, 55, 0.55);
}

.tpe-mark--completed .tpe-mark__glyph,
.tpe-mark--past .tpe-mark__glyph {
  color: #8fbf9a;
}

.tpe-mark--completed .tpe-mark__label,
.tpe-mark--past .tpe-mark__label {
  opacity: 0.5;
}

/* Completed ✓ points: clearer hover affordance */
.tpe-mark--completed:hover .tpe-mark__node,
.tpe-mark--past:hover .tpe-mark__node,
.tpe-mark--completed:focus-visible .tpe-mark__node,
.tpe-mark--past:focus-visible .tpe-mark__node {
  border-color: var(--gold);
  background: rgba(208, 176, 126, 0.22);
  transform: scale(1.18);
  box-shadow: 0 0 0 5px rgba(208, 176, 126, 0.34);
  animation: tpe-node-pop 0.38s ease;
}

.tpe-mark--completed:hover .tpe-mark__glyph,
.tpe-mark--past:hover .tpe-mark__glyph {
  color: var(--gold);
}

.tpe-mark--active .tpe-mark__node {
  border-color: var(--gold);
  background: rgba(208, 176, 126, 0.18);
  box-shadow: 0 0 0 4px rgba(208, 176, 126, 0.28);
  animation: tpe-pulse 1.8s ease-in-out infinite;
}

.tpe-mark--active .tpe-mark__glyph,
.tpe-mark--active .tpe-mark__label {
  color: var(--gold);
  opacity: 1;
  font-weight: 500;
}

.tpe-mark--active .tpe-mark__dot {
  background: var(--gold);
}

.tpe-mark--conditional .tpe-mark__node {
  border-style: dashed;
  border-color: rgba(157, 180, 200, 0.45);
}

.tpe-mark--conditional .tpe-mark__label {
  opacity: 0.5;
  font-style: italic;
}

.tpe-mark--future .tpe-mark__node {
  border-color: rgba(157, 180, 200, 0.4);
}

.tpe-mark.is-selected {
  z-index: 6;
}

.tpe-mark.is-selected .tpe-mark__node {
  border-color: var(--gold);
  border-width: 2px;
  background: rgba(208, 176, 126, 0.2);
  box-shadow: 0 0 0 5px rgba(208, 176, 126, 0.35);
  transform: scale(1.12);
}

.tpe-mark.is-selected .tpe-mark__label {
  color: var(--gold);
  opacity: 1;
  font-weight: 500;
}

/* Selected mark still animates on hover (was overridden before) */
.tpe-mark.is-selected:hover .tpe-mark__node,
.tpe-mark.is-selected:focus-visible .tpe-mark__node {
  border-color: var(--gold);
  background: rgba(208, 176, 126, 0.32);
  transform: scale(1.26);
  box-shadow: 0 0 0 8px rgba(208, 176, 126, 0.42);
  animation: tpe-node-pop 0.4s ease;
}

.tpe-mark.is-selected:hover .tpe-mark__label,
.tpe-mark.is-selected:focus-visible .tpe-mark__label {
  color: var(--gold);
  opacity: 1;
}

.tpe-mark--active:hover .tpe-mark__node,
.tpe-mark--active:focus-visible .tpe-mark__node {
  animation: tpe-node-pop 0.38s ease, tpe-pulse 1.8s ease-in-out 0.38s infinite;
  transform: scale(1.2);
}

@keyframes tpe-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(208, 176, 126, 0.22);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(208, 176, 126, 0.12);
  }
}

@keyframes tpe-node-pop {
  0% {
    transform: scale(1);
  }
  55% {
    transform: scale(1.28);
  }
  100% {
    transform: scale(1.18);
  }
}

.tpe-axis-labels {
  position: relative;
  height: 1.25rem;
  margin-left: calc(7.5rem + 0.45rem);
}

.tpe-tick {
  position: absolute;
  transform: translateX(-50%);
  font-family: var(--font-ui);
  font-size: 0.62rem;
  opacity: 0.45;
}

/* Mobile journey — hidden on desktop */
.tpe-journey {
  display: none;
}

/* —— Right: Next action —— */
.tpe-next {
  margin-bottom: 0.85rem;
}

.tpe-next__k {
  margin: 0 0 0.35rem;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.tpe-next__title {
  margin: 0 0 0.45rem;
  font-family: var(--font-ui);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--pearl);
}

.tpe-next__days {
  margin: 0 0 0.2rem;
  font-family: var(--font-ui);
  font-size: 0.95rem;
}

.tpe-next__days strong {
  color: var(--gold);
  font-size: 1.35rem;
  font-weight: 500;
}

.tpe-next__due,
.tpe-next__fee {
  margin: 0.15rem 0;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  opacity: 0.7;
}

.tpe-link {
  margin-top: 0.45rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--gold);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.tpe-upcoming__k {
  margin: 0 0 0.4rem;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.5;
}

.tpe-upcoming ul {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.tpe-upcoming li + li {
  margin-top: 0.3rem;
}

.tpe-upcoming button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  text-align: left;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  padding: 0.4rem 0.45rem;
  border: 1px solid rgba(157, 180, 200, 0.2);
  background: rgba(12, 26, 46, 0.35);
  color: rgba(247, 243, 232, 0.75);
  cursor: pointer;
  border-radius: 2px;
}

.tpe-upcoming button:hover {
  border-color: rgba(208, 176, 126, 0.4);
}

.tpe-detail {
  border-top: 1px solid rgba(157, 180, 200, 0.2);
  padding-top: 0.85rem;
}

.tpe-detail__head h3 {
  margin: 0 0 0.2rem;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 500;
}

.tpe-detail__date {
  margin: 0 0 0.65rem;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: var(--gold);
}

.tpe-tabs {
  display: flex;
  gap: 0.2rem;
  margin-bottom: 0.65rem;
}

.tpe-tab {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.5rem;
  border: 1px solid rgba(157, 180, 200, 0.25);
  background: transparent;
  color: rgba(247, 243, 232, 0.55);
  cursor: pointer;
  border-radius: 2px;
}

.tpe-tab.is-on {
  color: var(--pearl);
  border-color: rgba(247, 243, 232, 0.35);
}

.tpe-dl {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.4rem 0.5rem;
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.78rem;
}

.tpe-dl dt {
  opacity: 0.5;
}
.tpe-dl dd {
  margin: 0;
}

.tpe-why-body {
  margin: 0.35rem 0 0;
  opacity: 0.7;
  font-size: 0.72rem;
  line-height: 1.4;
}

.tpe-note {
  margin: 0.65rem 0 0;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  opacity: 0.7;
  line-height: 1.4;
}

.tpe-disclaimer {
  margin-top: 1.1rem;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  opacity: 0.45;
  max-width: 44rem;
  line-height: 1.45;
}

.tpe-lang {
  display: flex;
  gap: 0.25rem;
}

.tpe-lang .lang-btn {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border: 1px solid rgba(157, 180, 200, 0.3);
  background: transparent;
  color: rgba(247, 243, 232, 0.65);
  cursor: pointer;
  border-radius: 2px;
}

.tpe-lang .lang-btn.is-active {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}

.muted {
  opacity: 0.6;
  font-family: var(--font-ui);
  font-size: 0.82rem;
}

/* Modal */
.tpe-modal {
  border: 1px solid rgba(157, 180, 200, 0.35);
  background: #12263d;
  color: var(--pearl);
  padding: 0;
  max-width: 26rem;
  width: calc(100% - 2rem);
}

.tpe-modal::backdrop {
  background: rgba(4, 10, 20, 0.72);
}

.tpe-modal__card {
  margin: 0;
  padding: 0;
}

.tpe-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(157, 180, 200, 0.22);
}

.tpe-modal__head h2 {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--pearl);
}

.tpe-modal__close {
  border: 0;
  background: none;
  color: rgba(247, 243, 232, 0.6);
  font-size: 1.35rem;
  cursor: pointer;
  line-height: 1;
}

.tpe-modal__body {
  padding: 0.85rem 1rem;
}

.tpe-radio-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.tpe-radio {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  cursor: pointer;
}

.tpe-modal__foot {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.75rem 1rem 1rem;
}

.tpe-modal__foot .tpe-btn-ghost {
  width: auto;
  text-decoration: none;
  padding: 0.45rem 0.7rem;
}

@media (max-width: 1100px) {
  .tpe-layout {
    grid-template-columns: 1fr;
  }
  .tpe-panel--mid {
    order: 2;
  }
  .tpe-panel--right {
    order: 1;
  }
  .tpe-panel--case {
    order: 0;
  }
}

@media (max-width: 760px) {
  .tpe-canvas .tpe-timeline {
    display: none;
  }
  .tpe-journey {
    display: block;
  }
  .tpe-views {
    width: 100%;
  }
  .tpe-view {
    flex: 1;
    text-align: center;
  }
  .tpe-badge {
    white-space: normal;
  }
}

.tpe-journey__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tpe-journey__row {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 0.55rem;
  align-items: start;
  text-align: left;
  padding: 0.7rem 0.35rem;
  border: 0;
  border-bottom: 1px solid rgba(157, 180, 200, 0.15);
  background: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
  position: relative;
}

.tpe-journey__row::before {
  content: "";
  position: absolute;
  left: 0.85rem;
  top: 1.7rem;
  bottom: -0.05rem;
  width: 1px;
  background: rgba(157, 180, 200, 0.25);
}

.tpe-journey__row:last-child::before {
  display: none;
}

.tpe-journey__g {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  border: 1.5px solid rgba(157, 180, 200, 0.45);
  font-size: 0.72rem;
  line-height: 1;
  color: rgba(247, 243, 232, 0.7);
  background: rgba(18, 38, 61, 0.85);
}

.tpe-journey__row--active .tpe-journey__g {
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 0 3px rgba(208, 176, 126, 0.25);
}

.tpe-journey__row--active strong {
  color: var(--gold);
}

.tpe-journey__row.is-selected .tpe-journey__g {
  border-color: var(--gold);
  border-width: 2px;
  box-shadow: 0 0 0 4px rgba(208, 176, 126, 0.3);
}

.tpe-journey__body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.tpe-journey__body strong {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 500;
}

.tpe-journey__body span {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  opacity: 0.65;
}

.tpe-journey__row.is-selected {
  background: rgba(208, 176, 126, 0.06);
}
