/* edu 首頁「美國上學全地圖」（2026-10-29）。只給 hub/render.mjs 輸出的 .eh-* 用，不動站上其他樣式。
   色票沿用 style.css 的 --ink／--paper／--yellow／--blue：路線圖放在原本首屏那塊黃底上，面板是那本藍色的書。
   八條線的顏色寫在各線的 style="--lane:…"（hub/content.zh-tw.mjs 的 color）。
   版型照 wedding 首頁的 hub.css（2026-10-27），class 前綴換成 eh-。 */
.eh-hero, .eh-jump, .eh-map, .eh-states, .eh-services, .eh-agencies, .eh-sister, .eh-band {
  --eh-card: #fffdf8;
  --eh-muted: #4f555d;
  --eh-dash: rgba(21, 25, 30, .16);
}

.eh-hero {
  display: grid;
  grid-template-columns: minmax(0, 43fr) minmax(0, 57fr);
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
}
.eh-hero-copy { min-width: 0; padding: clamp(28px, 4.2vw, 64px) clamp(18px, 3.6vw, 56px) clamp(28px, 3.4vw, 52px); }
.eh-hero-board {
  min-width: 0;
  padding: clamp(18px, 2.6vw, 36px) clamp(16px, 2.6vw, 40px) clamp(28px, 3vw, 44px);
  background: var(--yellow);
  border-left: 1px solid var(--ink);
}
.eh-hero .purpose { margin: 0 0 22px; background: var(--eh-card); }
.eh-hero h1 {
  margin: 0 0 16px;
  font: 700 clamp(34px, 3.6vw, 58px)/1.1 "Bodoni Moda", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  letter-spacing: -.035em;
}
.eh-hero h1 em { display: block; font-style: italic; color: #526981; }
.eh-intro { max-width: 560px; margin: 0 0 22px; color: #40454b; font-size: 16px; line-height: 1.85; }

/* ── 搜尋 ── */
.eh-search { margin: 0 0 18px; }
.eh-search label, .eh-statepick label { display: block; margin: 0 0 8px; font-size: 15px; font-weight: 800; }
.eh-search-row { display: flex; }
.eh-search-row input {
  flex: 1; min-width: 0; height: 52px; padding: 0 14px;
  border: 1px solid var(--ink); border-right: 0; border-radius: 0; background: #fff; color: var(--ink);
  font: 16px/1.2 system-ui, -apple-system, "Noto Sans TC", "PingFang TC", sans-serif;
}
.eh-search-row button {
  flex: none; height: 52px; padding: 0 18px; border: 1px solid var(--ink); border-radius: 0;
  background: var(--ink); color: var(--paper); font-size: 15px; font-weight: 800; cursor: pointer;
  box-shadow: 4px 4px 0 var(--yellow);
}
.eh-results { margin: 10px 0 0; padding: 6px 14px 10px; border: 1px solid var(--ink); background: var(--eh-card); max-height: 360px; overflow-y: auto; }
.eh-results-h { margin: 8px 0 4px; font: 700 10px "DM Mono", ui-monospace, monospace; letter-spacing: .1em; color: var(--eh-muted); }
.eh-results ul { list-style: none; margin: 0; padding: 0; }
.eh-results li + li { border-top: 1px dashed var(--eh-dash); }
.eh-results button, .eh-results a {
  display: flex; align-items: baseline; gap: 8px; width: 100%; padding: 8px 0; border: 0; background: none;
  color: inherit; font: inherit; font-size: 14.5px; text-align: left; text-decoration: none; cursor: pointer;
}
.eh-results button:hover b, .eh-results a:hover { text-decoration: underline; }
.eh-results i { margin-left: auto; font-style: normal; font-size: 12px; color: var(--eh-muted); white-space: nowrap; }
.eh-results-none { margin: 6px 0; color: var(--eh-muted); font-size: 14px; }
.eh-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 12px 0 0; }
.eh-chips span { font-size: 12px; color: var(--eh-muted); margin-right: 2px; }
.eh-chips button {
  padding: 5px 11px; border: 1px solid var(--ink); border-radius: 999px; background: transparent;
  color: var(--ink); font-size: 13px; font-weight: 700; cursor: pointer;
}
.eh-chips button:hover, .eh-chips button:focus-visible { background: var(--yellow); }

/* ── 兩份清單 ── */
.eh-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.eh-cta .button { gap: 10px; }
.eh-cta-note { max-width: 560px; margin: 12px 0 0; font-size: 13px; color: var(--eh-muted); line-height: 1.7; }

/* ── 選州 ── */
.eh-statepick { margin: 22px 0 0; padding: 14px 14px 12px; border: 1px solid var(--ink); background: var(--eh-card); }
.eh-statepick select {
  width: 100%; height: 46px; padding: 0 10px; border: 1px solid var(--ink); border-radius: 0; background: #fff;
  color: var(--ink); font: 15px system-ui, -apple-system, "Noto Sans TC", "PingFang TC", sans-serif;
}
.eh-state-card { margin: 12px 0 0; }
.eh-sc-title { margin: 0 0 4px; font-size: 16px; }
.eh-sc-title span { margin-left: 6px; font: 12px "DM Mono", ui-monospace, monospace; color: var(--eh-muted); }
.eh-sc-none { margin: 6px 0 0; font-size: 13.5px; color: var(--eh-muted); }
.eh-sc-more { display: inline-block; margin-top: 6px; font-weight: 800; text-decoration: none; }
.eh-state-all { display: inline-block; margin-top: 10px; font-size: 13.5px; font-weight: 800; color: inherit; }

.eh-stats {
  list-style: none; margin: 22px 0 0; padding: 0;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
  border: 1px solid var(--ink); background: var(--eh-card);
}
.eh-stats li { padding: 10px 10px 8px; min-width: 0; }
.eh-stats li + li { border-left: 1px solid var(--ink); }
.eh-stats b { display: block; font: 600 28px/1 "Bodoni Moda", serif; letter-spacing: -.03em; }
.eh-stats span { display: block; margin-top: 4px; font-size: 11.5px; color: var(--eh-muted); }

/* ── 路線圖 ── */
.eh-board {
  position: relative; padding: 18px 20px 0;
  border: 1px solid var(--ink); background: var(--eh-card); box-shadow: 10px 10px 0 var(--ink);
}
.eh-board-head h2 { margin: 4px 0 2px; font: 800 clamp(24px, 2.3vw, 32px)/1.15 "Noto Sans TC", "PingFang TC", sans-serif; letter-spacing: -.01em; }
.eh-board-head > p:last-child { margin: 0; color: var(--eh-muted); font-size: 14px; }
.eh-board-head .eyebrow { margin: 0; }

/* 身分卡：家長、留學生（各一張 Racco 圖） */
.eh-roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 14px 0 0; }
.eh-role {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 12px;
  padding: 8px 12px 8px 8px; border: 1px solid var(--ink); background: #fff; color: var(--ink);
  font: inherit; text-align: left; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.eh-role img { width: 64px; height: 76px; object-fit: cover; object-position: 50% 30%; border: 1px solid var(--ink); background: var(--blue); }
.eh-role b { display: block; font-size: 17px; font-weight: 800; }
.eh-role small { display: block; margin-top: 2px; color: var(--eh-muted); font-size: 12.5px; line-height: 1.45; }
.eh-role:hover, .eh-role:focus-visible { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.eh-role[aria-pressed="true"] { background: var(--blue); box-shadow: 4px 4px 0 var(--ink); }
.eh-role[aria-pressed="true"] small { color: var(--ink); }

.eh-sit { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0 0; }
.eh-sit > span { font-size: 12px; font-weight: 800; margin-right: 4px; }
.eh-sit button {
  padding: 4px 10px; border: 1px solid var(--ink); border-radius: 999px; background: #fff;
  color: var(--ink); font-size: 12.5px; font-weight: 700; cursor: pointer;
}
.eh-sit button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
/* 選了家長，只留家長的情況；選了留學生，只留留學生的。沒有 JS 的時候全部都看得到。 */
.eh-sit[data-role-view="parent"] button[data-role="student"], .eh-sit[data-role-view="student"] button[data-role="parent"] { display: none; }
.eh-sit-count { margin: 8px 0 0; font-size: 12.5px; font-weight: 700; }

.eh-lanes { display: grid; gap: 2px; margin: 12px 0 0; }
.eh-lane { padding: 9px 0 2px; border-top: 1px dashed var(--eh-dash); transition: opacity .2s; }
.eh-lane-name { display: flex; align-items: center; gap: 8px; margin: 0 0 7px; font-size: 13.5px; }
.eh-lane-name i {
  flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--lane); color: #fff;
  font: 700 11px/22px "DM Mono", ui-monospace, monospace; font-style: normal; text-align: center;
}
.eh-lane-name b { font-weight: 800; }
.eh-lane-name span { font: 500 9.5px "DM Mono", ui-monospace, monospace; letter-spacing: .1em; color: var(--eh-muted); }
/* 站牌：一條色線串起來；站多的線自動折成兩排。 */
.eh-stops {
  position: relative; list-style: none; margin: 0; padding: 0 0 6px;
  display: flex; flex-wrap: wrap; gap: 6px 4px;
}
.eh-stops li { position: relative; min-width: 0; transition: opacity .2s; }
.eh-stops a {
  display: flex; align-items: center; gap: 6px; padding: 5px 10px 5px 6px;
  border: 1px solid var(--eh-dash); border-left: 4px solid var(--lane); background: #fff;
  color: inherit; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease;
}
.eh-stops a i {
  flex: none; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--lane); background: #fff;
}
.eh-stops a b { font-size: 12.5px; line-height: 1.3; font-weight: 700; white-space: nowrap; }
.eh-stops a:hover, .eh-stops a:focus-visible { transform: translateY(-1px); box-shadow: 2px 2px 0 var(--lane); }
.eh-stops a[aria-current="true"] { border-color: var(--ink); border-left-color: var(--lane); background: var(--yellow); box-shadow: 2px 2px 0 var(--ink); }
.eh-stops a[aria-current="true"] i { background: var(--lane); }
.eh-stops li.is-dim, .eh-st.is-dim { opacity: .28; }
.eh-lane.is-dim { opacity: .55; }

/* ── 面板（桌機在路線圖下方；手機點了才從下面拉上來）：藍色的書 ── */
.eh-panel { position: relative; margin: 12px -20px 0; padding: 18px 20px 20px; border-top: 1px solid var(--ink); background: #eaf2fb; outline: none; }
.eh-panel-close {
  display: none; position: absolute; top: 8px; right: 10px; width: 40px; height: 40px;
  border: 1px solid var(--ink); background: var(--eh-card); font-size: 22px; line-height: 1; cursor: pointer;
}
.eh-panel-head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 10px; }
.eh-panel-lane { margin: 0; font-size: 12.5px; font-weight: 800; color: var(--eh-muted); }
.eh-panel-head h3 { grid-column: 1 / -1; margin: 8px 0 8px; font: 800 22px/1.3 "Noto Sans TC", "PingFang TC", sans-serif; letter-spacing: -.01em; }
.eh-panel .eh-more > summary { display: none; }
.eh-panel .eh-blocks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.eh-panel-map { display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 800; color: inherit; }
.eh-sheet-backdrop { display: none; }
/* 有 JS：平常收起來；桌機點了一站就在那一條線下面展開（is-open），右上角可以關。 */
.eh-js .eh-panel:not(.is-open):not(.is-sheet) { display: none; }
.eh-lanes > .eh-panel { margin: 6px -20px 8px; border-bottom: 1px solid var(--ink); box-shadow: inset 6px 0 0 var(--ink); }
.eh-js .eh-panel.is-open .eh-panel-close { display: block; }
.eh-js .eh-panel.is-open .eh-panel-head { padding-right: 46px; }

/* ── 一站的內容（地圖卡與面板共用） ── */
.eh-st-no {
  display: inline-block; min-width: 34px; padding: 3px 6px; background: var(--lane); color: #fff;
  font: 700 12px/1.2 "DM Mono", ui-monospace, monospace; text-align: center;
}
.eh-answer { margin: 0 0 10px; font-size: 15.5px; line-height: 1.75; }
.eh-who { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; font-size: 13.5px; line-height: 1.6; }
.eh-who b { flex: none; padding: 1px 8px; border: 1px solid var(--ink); font-size: 11.5px; }
.eh-more > summary {
  padding: 9px 0; border-top: 1px solid var(--eh-dash);
  font-size: 13px; font-weight: 800; cursor: pointer; list-style: none;
}
.eh-more > summary::-webkit-details-marker { display: none; }
.eh-more > summary::before { content: "＋"; display: inline-block; width: 1.4em; }
.eh-more[open] > summary::before { content: "－"; }
.eh-blocks { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px 22px; padding: 4px 0 2px; }
.eh-block-title { margin: 0 0 4px; font-size: 12.5px; font-weight: 800; }
.eh-block ul, .eh-links { list-style: none; margin: 0; padding: 0; }
.eh-block li, .eh-links li { padding: 6px 0; border-top: 1px dashed var(--eh-dash); font-size: 13.5px; line-height: 1.55; }
.eh-block a, .eh-links a { color: inherit; text-underline-offset: 2px; }
.eh-block a:hover, .eh-links a:hover { color: #2c4a6e; }
.eh-tag { margin-right: 6px; padding: 0 5px; border: 1px solid currentColor; font-size: 10.5px; font-style: normal; font-weight: 800; white-space: nowrap; }
.eh-tag.is-free { border-color: var(--ink); background: var(--yellow); }
.eh-tag.is-paid { color: var(--eh-muted); }
.eh-items li a { text-decoration: none; }
.eh-items li a span { text-decoration: underline; text-decoration-color: rgba(21, 25, 30, .3); text-underline-offset: 2px; }
.eh-items-more { color: var(--eh-muted); }
.eh-items-cta { display: inline-block; margin: 8px 14px 0 0; font-size: 13.5px; font-weight: 800; color: inherit; }
.eh-ext { margin-left: 3px; font-size: .8em; }
.eh-site { margin-right: 6px; padding: 0 5px; border: 1px solid var(--ink); font-size: 10.5px; font-style: normal; font-weight: 700; white-space: nowrap; }
.eh-block-platforms ul, .eh-platforms { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; }
.eh-block-platforms li, .eh-platforms li { display: inline-flex; align-items: baseline; gap: 6px; padding: 0; border: 0; }
.eh-block-platforms small, .eh-platforms small { font-size: 11.5px; color: var(--eh-muted); }
.eh-platform, .eh-platforms a {
  display: inline-block; padding: 4px 10px; border: 1px solid var(--ink); background: #fff;
  font-size: 13px; font-weight: 700; text-decoration: none;
}
.eh-platform:hover, .eh-platforms a:hover { background: var(--yellow); color: var(--ink); }
.eh-platforms li { flex-direction: column; align-items: flex-start; gap: 2px; }
.eh-states-link { margin: 0; font-size: 13.5px; font-weight: 800; }
.eh-states-link a { color: inherit; }

/* ── 頁內導覽 ── */
.eh-jump { position: sticky; top: 0; z-index: 25; background: var(--paper); border-bottom: 1px solid var(--ink); }
.eh-jump > div { display: flex; gap: 2px; max-width: 1200px; margin: 0 auto; padding: 0 clamp(6px, 3vw, 32px); overflow-x: auto; scrollbar-width: none; }
.eh-jump > div::-webkit-scrollbar { display: none; }
.eh-jump a { flex: none; padding: 13px 12px; color: var(--ink); font-size: 14px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.eh-jump a:hover, .eh-jump a:focus-visible { background: var(--yellow); }

/* ── 下面幾段的共同版型 ── */
.eh-map, .eh-states, .eh-services, .eh-agencies, .eh-sister {
  max-width: 1200px; margin: 0 auto; padding: clamp(48px, 6vw, 88px) clamp(16px, 4vw, 40px) 0;
  scroll-margin-top: 48px;
}
.eh-head { max-width: 980px; margin: 0 0 28px; }
.eh-head h2 { margin: 6px 0 12px; font: 800 clamp(28px, 3.2vw, 44px)/1.15 "Noto Sans TC", "PingFang TC", sans-serif; letter-spacing: -.02em; }
.eh-head > p:last-child { max-width: 780px; margin: 0; color: var(--eh-muted); line-height: 1.8; }

.eh-map-lane { margin: 0 0 44px; scroll-margin-top: 48px; }
.eh-map-lane-head { display: flex; align-items: flex-start; gap: 14px; margin: 0 0 16px; padding-top: 14px; border-top: 6px solid var(--lane); }
.eh-map-lane-head > i {
  flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--lane); color: #fff;
  font: 700 18px/40px "DM Mono", ui-monospace, monospace; font-style: normal; text-align: center;
}
.eh-map-lane-head .eyebrow { margin: 2px 0 0; }
.eh-map-lane-head h3 { margin: 2px 0 6px; font: 800 24px/1.25 "Noto Sans TC", "PingFang TC", sans-serif; }
.eh-map-lane-head p:last-child { max-width: 780px; margin: 0; color: var(--eh-muted); line-height: 1.75; }
.eh-st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 16px; align-items: start; }
.eh-st { padding: 16px 18px 6px; border: 1px solid var(--ink); background: var(--eh-card); scroll-margin-top: 60px; transition: opacity .2s, box-shadow .2s; }
.eh-st header { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.eh-st h4 { margin: 0; font: 800 18px/1.35 "Noto Sans TC", "PingFang TC", sans-serif; }
.eh-st:target { box-shadow: 6px 6px 0 var(--lane); }
.eh-latest { margin: 0 0 20px; padding: 16px 18px; border: 1px dashed var(--ink); }

/* 各州 */
.eh-state-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; align-items: start; }
.eh-state { border: 1px solid var(--ink); background: var(--eh-card); scroll-margin-top: 60px; }
.eh-state header { display: flex; align-items: baseline; gap: 8px; padding: 12px 16px 10px; border-bottom: 1px solid var(--ink); background: var(--blue); }
.eh-state h3 { margin: 0; font: 800 18px/1.3 "Noto Sans TC", "PingFang TC", sans-serif; }
.eh-state header span { font: 12px "DM Mono", ui-monospace, monospace; }
.eh-facts { list-style: none; margin: 0; padding: 4px 16px 6px; }
.eh-facts > li { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 2px 10px; padding: 9px 0; font-size: 13.5px; line-height: 1.6; }
.eh-facts > li + li { border-top: 1px dashed var(--eh-dash); }
.eh-facts b { font-size: 12.5px; }
.eh-fact-links { grid-column: 2; display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 12px; }
.eh-fact-links a { color: var(--eh-muted); }
.eh-sea { margin: 0; padding: 10px 16px 12px; border-top: 1px solid var(--ink); font-size: 13px; font-weight: 700; }
.eh-sea a { color: inherit; }
.eh-state-none { margin: 0; padding: 12px 16px; color: var(--eh-muted); font-size: 13.5px; }
.eh-state-card .eh-facts { padding: 0; }
.eh-state-card .eh-sea { padding: 8px 0 0; border-top: 1px dashed var(--eh-dash); }
.eh-source { margin: 16px 0 0; font-size: 12.5px; color: var(--eh-muted); }

/* 服務 */
.eh-svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; align-items: start; }
.eh-svc { padding: 18px; border: 1px solid var(--ink); background: var(--eh-card); }
.eh-svc h3 { margin: 0 0 6px; font: 800 18px/1.35 "Noto Sans TC", "PingFang TC", sans-serif; }
.eh-svc > p { margin: 0 0 12px; color: var(--eh-muted); font-size: 14px; line-height: 1.7; }
.eh-svc .eh-platforms { margin: 0 0 12px; }
.eh-svc .eh-block + .eh-block { margin-top: 10px; }
.eh-svc-shop { background: var(--yellow); }

/* 機關 */
.eh-agency-group { margin: 0 0 30px; }
.eh-agency-group > h3 { margin: 0 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--ink); font: 800 15px "Noto Sans TC", "PingFang TC", sans-serif; }
.eh-agency-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 14px; align-items: start; }
.eh-agency { padding: 14px 16px; border: 1px solid var(--ink); background: var(--eh-card); }
.eh-agency h4 { margin: 0 0 4px; font: 800 16px/1.4 "Noto Sans TC", "PingFang TC", sans-serif; }
.eh-agency > p { margin: 0 0 8px; color: var(--eh-muted); font-size: 13.5px; line-height: 1.6; }
.eh-agency .eh-states-link { margin-top: 8px; }

/* 姊妹站 */
.eh-sister-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.eh-sis { display: flex; flex-direction: column; padding: 16px; border: 1px solid var(--ink); background: var(--eh-card); }
.eh-sis > .eh-site { align-self: flex-start; margin: 0; }
.eh-sis h3 { margin: 8px 0 4px; font: 800 17px/1.35 "Noto Sans TC", "PingFang TC", sans-serif; }
.eh-sis > p { margin: 0 0 8px; color: var(--eh-muted); font-size: 13.5px; line-height: 1.65; }
.eh-sis-home { margin: auto 0 0; padding-top: 10px; font: 12px "DM Mono", ui-monospace, monospace; }
.eh-sis-home a { color: inherit; }

/* 收尾的清單條 */
.eh-band {
  max-width: 1120px; margin: clamp(56px, 6vw, 96px) auto 0; padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--ink); background: var(--yellow); box-shadow: 10px 10px 0 var(--ink);
}
.eh-band h2 { margin: 6px 0 10px; font: 800 clamp(26px, 3vw, 40px)/1.2 "Noto Sans TC", "PingFang TC", sans-serif; }
.eh-band > p:not(.eyebrow) { max-width: 760px; margin: 0 0 18px; line-height: 1.8; }
.eh-band .eh-cta { align-items: center; }
.eh-band-more { font-size: 14px; font-weight: 800; color: inherit; }

@media (max-width: 1180px) { .eh-band { margin-left: 16px; margin-right: 16px; } }

@media (max-width: 1099px) {
  .eh-hero { grid-template-columns: minmax(0, 1fr); }
  .eh-hero-board { border-left: 0; border-top: 1px solid var(--ink); }
}

@media (max-width: 759px) {
  .eh-hero .purpose { flex-direction: column; align-items: flex-start; gap: 2px; }
  .eh-stats li { padding: 8px 5px 7px; }
  .eh-stats b { font-size: 21px; }
  .eh-stats span { font-size: 10.5px; line-height: 1.35; }
  .eh-search-row button { padding: 0 14px; box-shadow: none; }
  .eh-cta .button { flex: 1 1 100%; justify-content: space-between; }
  .eh-board { padding: 16px 14px 14px; box-shadow: 6px 6px 0 var(--ink); }
  .eh-roles { gap: 8px; }
  .eh-role { grid-template-columns: 48px minmax(0, 1fr); gap: 8px; padding: 6px 8px 6px 6px; }
  .eh-role img { width: 48px; height: 58px; }
  .eh-role b { font-size: 15px; }
  .eh-role small { font-size: 11.5px; }
  .eh-stops a { padding: 7px 10px 7px 7px; }
  .eh-stops a b { font-size: 13.5px; }
  .eh-panel { margin: 12px -14px -14px; padding: 16px 14px 18px; }
  .eh-panel .eh-blocks { grid-template-columns: minmax(0, 1fr); }
  /* JS 在跑的時候，面板平常收起來，點了一站才從下面拉上來 */
  .eh-js .eh-panel:not(.is-sheet) { display: none; }
  .eh-panel.is-sheet {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1001;
    max-height: 84vh; max-height: 84dvh; margin: 0; padding: 22px 16px calc(22px + env(safe-area-inset-bottom));
    overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--ink); border-bottom: 0;
    box-shadow: 0 -10px 0 rgba(21, 25, 30, .12);
  }
  .eh-panel.is-sheet .eh-panel-close { display: block; }
  .eh-panel.is-sheet .eh-panel-head { padding-right: 46px; }
  .eh-sheet-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 1000; background: rgba(21, 25, 30, .45); }
  html.eh-sheet-open, html.eh-sheet-open body { overflow: hidden; }
  .eh-facts > li { grid-template-columns: minmax(0, 1fr); }
  .eh-fact-links { grid-column: 1; }
  .eh-map-lane-head h3 { font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  .eh-stops a, .eh-stops li, .eh-st, .eh-role, .eh-lane { transition: none; }
}
