/* A shared editorial surface for the existing twelve service pages. */
main[data-route] {
  --seo-ink: #112e48;
  --seo-note: #3c5670;
  --seo-accent: #28677b;
  --seo-line: #cfdde7;
  --seo-wash: #f3f8fb;
}

main[data-route] :is(.ride-summary, .line-summary, .guide-summary-card, .long-route-card, .recruitment-role-card) {
  border: 1px solid var(--seo-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 5px 16px #16394d0c;
}

main[data-route] :is(.ride-summary, .line-summary, .guide-summary-card, .long-route-card, .recruitment-role-card)::before {
  background: none;
}

.driver-page main[data-route] .driver-hero-card {
  border-color: #294964;
  border-radius: 20px;
  background: #122e48;
  box-shadow: 0 5px 16px #16394d19;
}

.seo-service-figure {
  margin: 0;
  padding: clamp(1rem, 4vw, 1.75rem);
  min-inline-size: 0;
  color: var(--seo-ink);
  background: var(--seo-wash);
  border: 1px solid var(--seo-line);
  border-radius: 20px;
}

.seo-service-figure figcaption {
  margin: 0 0 .875rem;
  color: var(--seo-ink);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.55;
}

.seo-service-figure ol {
  display: grid;
  gap: .45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.seo-service-figure li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: .75rem;
  padding: .75rem;
  border: 1px solid transparent;
  border-radius: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.seo-service-figure strong {
  display: block;
  color: var(--seo-ink);
  line-height: 1.5;
}

.seo-service-figure small {
  display: block;
  color: var(--seo-note);
  font-size: .875rem;
  line-height: 1.65;
}

.seo-figure-icon {
  box-sizing: content-box;
  inline-size: 1.25rem;
  block-size: 1.25rem;
  padding: .4rem;
  border-radius: 10px;
  color: var(--seo-accent);
  background: #e3eff5;
}

.seo-service-figure {
  margin-block: 1.25rem 0;
}

.seo-service-figure li {
  padding: .4rem 0;
}

.seo-city-source {
  margin-block: 1rem 0;
  padding-inline-start: .875rem;
  border-inline-start: 2px solid #97b7c6;
  color: var(--seo-note);
  line-height: 1.7;
}

.seo-city-source a,
main[data-route="/taichung-ride"] .ride-summary a,
.seo-editorial a {
  color: #1c4b6d;
  text-decoration: underline;
  text-underline-offset: .18em;
}

.seo-editorial {
  width: min(46rem, calc(100% - 40px));
  margin: clamp(1.5rem, 4vw, 3.5rem) auto;
  overflow-wrap: anywhere;
  color: var(--seo-ink);
}

.seo-editorial img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 720 / 222;
  border-radius: 16px;
  color: var(--seo-ink);
  background: var(--seo-wash);
}

.seo-editorial figcaption {
  padding: .9rem 0 0;
  line-height: 1.7;
}

.seo-editorial figcaption strong {
  display: block;
  font-size: 1.0625rem;
}

.seo-editorial figcaption p {
  margin: .25rem 0 .35rem;
  color: var(--seo-note);
}

.seo-phone {
  grid-area: device;
  width: min(100%, 23rem);
  min-width: 0;
  margin: 0 auto;
  padding: .55rem;
  color: var(--seo-ink);
  background: #cadbe6;
  border: 1px solid #b4cbd9;
  border-radius: 28px;
  overflow-wrap: anywhere;
}

.seo-phone figcaption {
  margin: 0;
  padding: .38rem .75rem .55rem;
  color: #193b52;
  font-size: .8125rem;
  font-weight: 700;
}

.seo-phone-screen {
  overflow: hidden;
  background: #edf3f7;
  border-radius: 21px;
}

.seo-phone-screen img {
  display: block;
  width: 100%;
  height: auto;
}

.seo-phone-notes {
  display: grid;
  gap: .18rem;
  margin: .4rem 0 0;
  padding-inline-start: 1.7rem;
  color: #193b52;
  font-size: .8125rem;
  line-height: 1.55;
}

.seo-phone-part {
  padding: .25rem .35rem;
  border: 1px solid transparent;
  border-radius: 8px;
}

.seo-phone-part.is-active {
  background: #eef6f9;
  border-color: #9ebdce;
  color: #112e48;
}

.seo-ui-guide figcaption {
  padding: 0 0 .85rem;
}

.seo-ui-views {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  align-items: start;
  gap: clamp(.75rem, 2vw, 1.35rem);
}

.seo-ui-views > div {
  min-width: 0;
  width: min(100%, 25rem);
}

.seo-ui-views p {
  margin: 0 0 .4rem;
  color: var(--seo-note);
  font-weight: 700;
}

.seo-ui-views img,
.seo-scene img {
  aspect-ratio: auto;
  border: 1px solid var(--seo-line);
}

.seo-scene small {
  color: var(--seo-note);
}

.seo-guide-intent {
  max-width: 36rem;
  margin: .85rem 0 0;
  color: var(--seo-note);
  line-height: 1.65;
}

.seo-guide-intent a {
  color: #1c4b6d;
  text-decoration: underline;
  text-underline-offset: .18em;
}
