:root {
  color-scheme: light;
  --topic-space: #060710;
  --topic-space-soft: #111827;
  --topic-paper: #f3efe5;
  --topic-panel: #fbfaf6;
  --topic-ink: #171920;
  --topic-muted: #686d75;
  --topic-gold: #e1b94f;
  --topic-gold-deep: #9b7322;
  --topic-cyan: #78c8f8;
  --topic-line: rgba(23, 25, 32, 0.14);
  --topic-shadow: 0 22px 54px rgba(17, 20, 30, 0.12);
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
}

body.stardreams-topic-page {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: clip;
  color: var(--topic-ink);
  background: var(--topic-paper);
  font-family: "Helvetica Neue", Helvetica, Arial, "Noto Sans TC", "PingFang TC", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

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

[hidden] {
  display: none !important;
}

.topic-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 560px;
  grid-template-columns: minmax(0, 760px);
  align-items: center;
  overflow: hidden;
  padding: 68px max(4vw, calc((100vw - 1440px) / 2)) 92px;
  color: #fff;
  background: var(--topic-space);
}

.topic-hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  height: 32%;
  content: "";
  background: linear-gradient(180deg, rgba(6, 7, 16, 0), rgba(6, 7, 16, 0.96));
  pointer-events: none;
}

.topic-hero-backdrop {
  position: absolute;
  z-index: -3;
  inset: -2%;
  background:
    linear-gradient(90deg, rgba(4, 6, 14, 0.84) 0%, rgba(4, 6, 14, 0.66) 34%, rgba(4, 6, 14, 0.14) 70%, rgba(4, 6, 14, 0.08) 100%),
    url("/assets/stardreams/topic-hero-galaxy-routes-v1.jpg") 56% center / cover no-repeat,
    var(--topic-space);
  transform-origin: 64% 52%;
  animation: topic-backdrop-drift 28s ease-in-out infinite alternate;
  pointer-events: none;
}

.topic-hero-backdrop::before {
  position: absolute;
  inset: -18%;
  content: "";
  opacity: 0.15;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 1px, transparent 1.7px),
    radial-gradient(circle, rgba(120, 200, 248, 0.72) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(225, 185, 79, 0.74) 0 1px, transparent 1.7px);
  background-position: 0 0, 68px 92px, 31px 48px;
  background-size: 146px 146px, 231px 231px, 319px 319px;
  animation: topic-stars-drift 54s linear infinite;
}

.topic-hero-motion {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.topic-route-star {
  --star-color: #fff7dd;
  --star-trail-angle: -18deg;
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  opacity: 0;
  background: var(--star-color);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.32),
    0 0 10px var(--star-color),
    0 0 24px rgba(225, 185, 79, 0.72);
  will-change: top, left, opacity, transform;
}

.topic-route-star::before {
  position: absolute;
  top: 50%;
  right: 4px;
  width: 82px;
  height: 1px;
  content: "";
  opacity: 0.5;
  background: linear-gradient(90deg, transparent, var(--star-color));
  transform: translateY(-50%) rotate(var(--star-trail-angle));
  transform-origin: right center;
}

.topic-route-star::after {
  position: absolute;
  top: 2px;
  left: -5px;
  width: 15px;
  height: 1px;
  content: "";
  background: rgba(255, 255, 255, 0.78);
}

.topic-route-star-one {
  animation: topic-route-star-one 14s linear infinite;
}

.topic-route-star-two {
  --star-color: #b9e8ff;
  --star-trail-angle: 12deg;
  animation: topic-route-star-two 18s 3.5s linear infinite;
}

.topic-route-star-three {
  --star-color: #f4cfe8;
  --star-trail-angle: -28deg;
  width: 4px;
  height: 4px;
  animation: topic-route-star-three 21s 7s linear infinite;
}

.topic-hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  max-width: 680px;
}

.topic-hero-copy > p,
.section-heading p,
.selected-route-heading p {
  margin: 0 0 14px;
  color: var(--topic-gold);
  font-size: 10px;
  font-weight: 800;
}

.topic-hero-copy h1 {
  max-width: 650px;
  margin: 0;
  font-family: Georgia, "Times New Roman", "Noto Serif TC", serif;
  font-size: 64px;
  font-weight: 400;
  line-height: 1.02;
}

.topic-hero-copy h1 em {
  display: block;
  max-width: 580px;
  margin-top: 12px;
  color: var(--topic-gold);
  font-size: 27px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.25;
}

.topic-hero-copy > span {
  display: block;
  max-width: 560px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.7;
}

.topic-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.topic-hero-actions a {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 7px;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  font-size: 13px;
  font-weight: 800;
}

.topic-hero-actions a:first-child {
  border-color: var(--topic-gold);
  color: #111217;
  background: var(--topic-gold);
}

.topic-hero-actions a:hover {
  border-color: rgba(225, 185, 79, 0.72);
}

.topic-hero-stats {
  display: flex;
  gap: 30px;
  margin-top: 28px;
}

.topic-hero-stats div {
  display: grid;
  gap: 5px;
}

.topic-hero-stats strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 400;
}

.topic-hero-stats span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
}

.topic-mode-nav {
  position: relative;
  z-index: 6;
  display: grid;
  width: min(1440px, 92vw);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: -28px auto 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #0b0e18;
  box-shadow: 0 22px 58px rgba(6, 7, 16, 0.24);
}

.topic-mode-nav a {
  position: relative;
  display: grid;
  min-height: 98px;
  align-content: center;
  gap: 4px;
  padding: 18px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
}

.topic-mode-nav a:last-child {
  border-right: 0;
}

.topic-mode-nav a:hover,
.topic-mode-nav a.active {
  background: rgba(225, 185, 79, 0.12);
}

.topic-mode-nav a.active {
  box-shadow: inset 0 -3px var(--topic-gold);
}

.topic-mode-nav span {
  position: absolute;
  top: 14px;
  right: 16px;
  color: var(--topic-gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
}

.topic-mode-nav strong {
  font-family: Georgia, "Times New Roman", "Noto Serif TC", serif;
  font-size: 23px;
  font-weight: 400;
}

.topic-mode-nav small {
  color: rgba(255, 255, 255, 0.54);
  font-size: 10px;
}

.topic-index,
.selected-route {
  width: min(1440px, 92vw);
  margin: 0 auto;
  padding: 92px 0 24px;
  scroll-margin-top: 96px;
}

.has-selected-topic .topic-index {
  display: none;
}

.has-selected-topic .selected-route {
  padding-top: 76px;
}

.section-heading,
.selected-route-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 30px;
}

.section-heading h2,
.selected-route-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Noto Serif TC", serif;
  font-size: 48px;
  font-weight: 400;
  line-height: 1.08;
}

.topic-search {
  display: grid;
  width: min(360px, 100%);
  gap: 8px;
}

.topic-search span {
  color: var(--topic-muted);
  font-size: 10px;
}

.topic-search input {
  min-height: 48px;
  padding: 0 15px;
  border: 1px solid var(--topic-line);
  border-radius: 7px;
  outline: 0;
  color: var(--topic-ink);
  background: #fff;
}

.topic-search input:focus {
  border-color: rgba(155, 115, 34, 0.58);
  box-shadow: 0 0 0 4px rgba(225, 185, 79, 0.14);
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.topic-card {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 250px;
  grid-template-columns: 34px minmax(0, 1fr) 128px;
  gap: 14px;
  align-items: center;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--topic-line);
  border-radius: 8px;
  background: var(--topic-panel);
  box-shadow: 0 8px 24px rgba(17, 20, 30, 0.05);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.topic-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  content: "";
  background: var(--topic-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.topic-card:hover {
  border-color: rgba(155, 115, 34, 0.34);
  box-shadow: var(--topic-shadow);
  transform: translateY(-3px);
}

.topic-card:hover::before,
.topic-card.is-featured::before {
  transform: scaleX(1);
}

.topic-card.is-featured {
  border-color: rgba(155, 115, 34, 0.32);
}

.topic-card-number {
  align-self: start;
  color: var(--topic-gold-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
}

.topic-card-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.topic-featured-label {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  margin-bottom: 8px;
  padding: 0 7px;
  border-radius: 5px;
  color: #111217;
  background: var(--topic-gold);
  font-size: 8px;
}

.topic-card-copy > span {
  display: block;
  overflow: hidden;
  color: var(--topic-muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topic-card-copy h3 {
  margin: 12px 0 8px;
  overflow-wrap: anywhere;
  font-family: Georgia, "Times New Roman", "Noto Serif TC", serif;
  font-size: 27px;
  font-weight: 400;
  line-height: 1.08;
}

.topic-card-copy p {
  margin: 0 0 20px;
  color: var(--topic-muted);
  font-size: 11px;
}

.topic-card-copy > strong {
  color: var(--topic-gold-deep);
  font-size: 11px;
}

.topic-card-visual {
  display: grid;
  width: 128px;
  height: 190px;
  place-items: center;
  overflow: hidden;
}

.topic-card-visual > img,
.topic-card-visual > img.topic-cover-image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 16px 22px rgba(17, 20, 30, 0.2));
}

.topic-card-visual .topic-card-art {
  width: 116px;
  height: 166px;
}

.topic-empty {
  grid-column: 1 / -1;
  padding: 64px 20px;
  border: 1px dashed var(--topic-line);
  border-radius: 8px;
  color: var(--topic-muted);
  text-align: center;
}

.selected-route {
  padding-top: 112px;
  padding-bottom: 104px;
}

.selected-route-heading > div:first-child > span {
  display: block;
  max-width: 620px;
  margin-top: 14px;
  color: var(--topic-muted);
  line-height: 1.7;
}

.selected-route-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(100px, auto));
  gap: 22px;
}

.selected-route-meta div {
  display: grid;
  gap: 6px;
}

.selected-route-meta span {
  color: var(--topic-muted);
  font-size: 9px;
}

.selected-route-meta strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 400;
}

.route-toolbar {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--topic-line);
  border-bottom: 1px solid var(--topic-line);
}

.route-toolbar span {
  color: var(--topic-muted);
  font-size: 12px;
}

.route-toolbar select {
  min-height: 42px;
  padding: 0 36px 0 12px;
  border: 1px solid var(--topic-line);
  border-radius: 7px;
  color: var(--topic-ink);
  background: #fff;
}

.route-products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.route-product {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--topic-line);
  border-radius: 8px;
  background: var(--topic-panel);
  box-shadow: 0 8px 24px rgba(17, 20, 30, 0.05);
}

.route-product-visual {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 4 / 5;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--topic-line);
  background: #e6e8eb;
}

.route-product-visual > span {
  position: absolute;
  z-index: 3;
  top: 12px;
  left: 12px;
  min-height: 26px;
  padding: 6px 8px;
  border-radius: 5px;
  color: #111217;
  background: var(--topic-gold);
  font-size: 9px;
  font-weight: 800;
}

.route-product-visual > img {
  position: relative;
  z-index: 2;
  display: block;
  width: 88%;
  height: 88%;
  max-width: 88%;
  max-height: 88%;
  object-fit: contain;
  filter: drop-shadow(0 16px 24px rgba(17, 20, 30, 0.22));
}

.route-product-visual .topic-card-art {
  position: relative;
  z-index: 2;
  width: 62%;
  aspect-ratio: 0.7;
  box-shadow: 0 18px 34px rgba(17, 20, 30, 0.2);
}

.route-product-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.route-product-copy > span {
  overflow: hidden;
  color: var(--topic-gold-deep);
  font-size: 9px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-product-copy h3 {
  display: -webkit-box;
  min-height: 44px;
  margin: 9px 0 7px;
  overflow: hidden;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.route-product-copy p {
  display: -webkit-box;
  min-height: 35px;
  margin: 0;
  overflow: hidden;
  color: var(--topic-muted);
  font-size: 10px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.route-product-copy footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 15px;
}

.route-product-copy footer div {
  display: grid;
  gap: 4px;
}

.route-product-copy footer strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 400;
}

.route-product-copy footer small {
  color: var(--topic-muted);
  font-size: 9px;
}

.route-product-copy button {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border: 1px solid var(--topic-gold);
  border-radius: 6px;
  color: #111217;
  background: var(--topic-gold);
  cursor: pointer;
  font-size: 21px;
}

.route-product-copy button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.topic-card-art {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 13px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.96);
  background: #765b2f;
}

.topic-card-art::before {
  position: absolute;
  inset: 8% -30%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  content: "";
  transform: rotate(-28deg);
}

.topic-card-art span,
.topic-card-art strong,
.topic-card-art small {
  position: relative;
  z-index: 2;
}

.topic-card-art span {
  align-self: flex-end;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
}

.topic-card-art strong {
  max-width: 94%;
  overflow-wrap: anywhere;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 400;
  line-height: 1;
}

.topic-card-art small {
  font-size: 6px;
  font-weight: 800;
}

.topic-card-art.card-green { background: #284b3d; }
.topic-card-art.card-red { background: #71382f; }
.topic-card-art.card-blue { background: #344c60; }
.topic-card-art.card-purple { background: #544463; }
.topic-card-art.card-orange { background: #81522c; }
.topic-card-art.card-slate { background: #465252; }
.topic-card-art.card-navy { background: #263552; }

.topic-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 48px;
  color: rgba(255, 255, 255, 0.68);
  background: #05060c;
}

.topic-footer div {
  display: grid;
  gap: 4px;
}

.topic-footer strong {
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 400;
}

.topic-footer span,
.topic-footer p {
  margin: 0;
  font-size: 13px;
}

.topic-footer p {
  text-align: right;
}

.topic-footer .footer-email {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.36);
  text-underline-offset: 3px;
}

.topic-footer .footer-email:hover,
.topic-footer .footer-email:focus-visible {
  color: var(--topic-gold);
}

.topic-toast {
  position: fixed;
  z-index: 1150;
  bottom: 24px;
  left: 50%;
  visibility: hidden;
  max-width: calc(100vw - 32px);
  padding: 12px 16px;
  border-radius: 6px;
  color: #111217;
  opacity: 0;
  background: var(--topic-gold);
  box-shadow: 0 16px 44px rgba(6, 7, 16, 0.24);
  transform: translate(-50%, 14px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  font-size: 12px;
  font-weight: 800;
}

.topic-toast.show {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes topic-backdrop-drift {
  from { transform: translate3d(-0.3%, 0.2%, 0) scale(1.018); }
  to { transform: translate3d(0.65%, -0.35%, 0) scale(1.038); }
}

@keyframes topic-stars-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(90px, 40px, 0); }
}

@keyframes topic-route-star-one {
  0% { top: 80%; left: -8%; opacity: 0; transform: scale(0.65); }
  8% { opacity: 0.9; }
  30% { top: 66%; left: 28%; transform: scale(0.84); }
  58% { top: 43%; left: 58%; transform: scale(1); }
  82% { top: 22%; left: 84%; opacity: 0.92; transform: scale(0.8); }
  100% { top: 10%; left: 108%; opacity: 0; transform: scale(0.55); }
}

@keyframes topic-route-star-two {
  0% { top: 14%; left: -7%; opacity: 0; transform: scale(0.6); }
  10% { opacity: 0.84; }
  32% { top: 26%; left: 31%; transform: scale(0.75); }
  61% { top: 48%; left: 64%; transform: scale(0.94); }
  84% { top: 59%; left: 88%; opacity: 0.86; transform: scale(0.74); }
  100% { top: 65%; left: 107%; opacity: 0; transform: scale(0.5); }
}

@keyframes topic-route-star-three {
  0% { top: 96%; left: 18%; opacity: 0; transform: scale(0.55); }
  12% { opacity: 0.78; }
  38% { top: 69%; left: 45%; transform: scale(0.72); }
  66% { top: 37%; left: 73%; transform: scale(0.9); }
  86% { top: 24%; left: 92%; opacity: 0.76; transform: scale(0.68); }
  100% { top: 18%; left: 106%; opacity: 0; transform: scale(0.48); }
}

@media (max-width: 1180px) {
  .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .route-products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .selected-route-heading {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 820px) {
  .topic-hero-backdrop,
  .topic-hero-backdrop::before,
  .topic-route-star {
    animation: none;
  }

  .topic-route-star {
    display: none;
  }

  .topic-hero {
    min-height: 0;
    grid-template-columns: 1fr;
    padding-top: 56px;
    padding-bottom: 72px;
  }

  .topic-hero-copy h1 {
    font-size: 52px;
  }

  .topic-mode-nav {
    width: calc(100% - 32px);
    margin-top: -24px;
  }

  .topic-mode-nav a {
    min-height: 86px;
    padding: 16px;
  }

  .topic-mode-nav strong {
    font-size: 19px;
  }

  .topic-index,
  .selected-route {
    width: calc(100% - 32px);
    padding-top: 74px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .topic-search {
    width: 100%;
  }

  .route-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .topic-search input,
  .route-toolbar select {
    font-size: 16px;
  }

  .topic-hero {
    padding: 36px 16px 42px;
  }

  .topic-hero-copy h1 {
    font-size: 43px;
  }

  .topic-hero-copy h1 em {
    font-size: 22px;
  }

  .topic-hero-copy > span {
    font-size: 14px;
  }

  .topic-hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .topic-hero-actions a {
    padding: 0 12px;
    text-align: center;
  }

  .topic-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .topic-hero-stats strong {
    font-size: 22px;
  }

  .topic-hero-stats span {
    font-size: 9px;
  }

  .topic-mode-nav {
    grid-template-columns: 1fr;
  }

  .topic-mode-nav a {
    min-height: 68px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .topic-mode-nav a:last-child {
    border-bottom: 0;
  }

  .topic-grid {
    grid-template-columns: 1fr;
  }

  .topic-card {
    min-height: 220px;
    grid-template-columns: 28px minmax(0, 1fr) 104px;
    padding: 18px;
  }

  .topic-card-copy h3 {
    font-size: 24px;
  }

  .topic-card-visual {
    width: 104px;
    height: 160px;
  }

  .topic-card-visual .topic-card-art {
    width: 94px;
    height: 136px;
  }

  .section-heading h2,
  .selected-route-heading h2 {
    font-size: 38px;
  }

  .selected-route-meta {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .selected-route-meta div {
    padding: 12px 0;
    border-bottom: 1px solid var(--topic-line);
  }

  .route-toolbar {
    align-items: stretch;
    flex-direction: column;
    padding: 12px 0;
  }

  .route-toolbar select {
    width: 100%;
  }

  .route-products {
    grid-template-columns: 1fr;
  }

  .route-product {
    display: grid;
    grid-template-columns: minmax(130px, 42%) minmax(0, 1fr);
  }

  .route-product-visual {
    height: 100%;
    min-height: 260px;
    aspect-ratio: auto;
    border-right: 1px solid var(--topic-line);
    border-bottom: 0;
  }

  .route-product-copy h3 {
    min-height: 0;
  }

  .topic-footer {
    align-items: start;
    flex-direction: column;
    padding: 28px 16px;
  }

  .topic-footer p {
    text-align: left;
  }

}

@media (max-width: 390px) {
  .topic-hero-copy h1 {
    font-size: 38px;
  }

  .topic-hero-actions {
    grid-template-columns: 1fr;
  }

  .topic-card {
    grid-template-columns: 24px minmax(0, 1fr) 88px;
    gap: 9px;
    padding: 14px;
  }

  .topic-card-visual {
    width: 88px;
    height: 142px;
  }

  .topic-card-copy > span {
    display: none;
  }

  .route-product {
    grid-template-columns: 1fr;
  }

  .route-product-visual {
    min-height: 310px;
    border-right: 0;
    border-bottom: 1px solid var(--topic-line);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .topic-hero-backdrop,
  .topic-hero-backdrop::before,
  .topic-route-star {
    animation: none !important;
  }

  .topic-card,
  .topic-card::before,
  .topic-toast {
    transition: none;
  }
}
