/* Editorial 2.0: scoped first-screen presentation; no route/data behavior changes. */
.hero {
  --hero-control-height: 48px;
  --hero-action: #c73f43;
  --hero-action-hover: #b4343b;
  --hero-focus: #39798a;
  --hero-motion: 180ms;
  --hero-control-radius: var(--radius-sm, 8px);
}
.hero :is(.btn, .plan-route-button, .quick-place, .route-mode-switch button, .swap-route, #use-location) {
  transition: background-color var(--hero-motion) ease, border-color var(--hero-motion) ease, color var(--hero-motion) ease, transform var(--hero-motion) ease;
}
.hero :is(a, button, summary):focus-visible {
  outline: 2px solid var(--hero-focus);
  outline-offset: 3px;
}
.hero .cross-border-field :is(input, select) {
  min-height: var(--hero-control-height);
  border-radius: var(--hero-control-radius);
  transition: border-color var(--hero-motion) ease, background-color var(--hero-motion) ease, box-shadow var(--hero-motion) ease;
}
.hero .cross-border-field :is(input, select):focus,
.hero .route-input-wrap:focus-within {
  border-color: var(--hero-focus);
  background: var(--paper);
  box-shadow: 0 0 0 3px rgba(57, 121, 138, .12);
}
.hero .plan-route-button {
  min-height: var(--hero-control-height);
  background: var(--hero-action);
  box-shadow: none;
}
.hero .plan-route-button:hover { background: var(--hero-action-hover); box-shadow: none; }
.hero .plan-route-button:active, .hero .btn:active { transform: translateY(0); }
.hero .route-mode-switch button[aria-selected="true"] {
  background: var(--paper);
  color: var(--blue);
  box-shadow: 0 1px 4px rgba(24, 48, 58, .08);
}
.hero .route-mode-switch button[aria-selected="false"]:hover { background: #e6edeb; color: var(--blue); }
.hero .travel-modes input:checked + span { background: var(--blue); box-shadow: none; }
.hero .travel-modes input:focus-visible + span { outline: 2px solid var(--hero-focus); outline-offset: 3px; }
.hero .swap-route:hover { transform: none; border-color: var(--hero-focus); background: var(--surface-soft); }
.hero .quick-place:hover { background: var(--surface-soft); border-color: #9aafab; color: var(--blue); }
.hero .hero-city-story > img { transition: transform 220ms ease; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .hero .hero-city-story:hover > img { transform: scale(1.015); }
}
@media (prefers-reduced-motion: reduce) {
  .hero *, .hero *::before, .hero *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .hero :is(.btn, .plan-route-button, .quick-place, .swap-route):hover { transform: none; }
}
.glt-guide-reading-panel { display: none; }
@media (min-width: 1024px) {
  .hero { margin: 24px auto 28px; padding: 0; gap: 38px; }
  .hero h1 { margin: 12px 0 14px; font-size: clamp(40px, 3.7vw, 52px); line-height: 1.18; letter-spacing: -.035em; }
  .hero h1 em { margin-top: 2px; }
  .hero-copy > p { max-width: 34em; line-height: 1.8; }
  .hero .btn { min-height: 46px; margin-top: 18px; padding: 11px 18px; }
  .hero-city-story { margin-top: 20px; border-radius: var(--radius-md, 12px); }
  .hero-city-story > img { height: 208px; object-position: center 52%; }
  .hero .hero-city-story > span { padding: 34px 20px 18px; }
  .hero-board { padding: 24px; }
  .hero .board-title { padding-bottom: 14px; font-size: 18px; line-height: 1.4; }
  .hero .route-mode-switch { margin-top: 14px; }
  .hero .route-mode-switch button { min-height: 40px; }
  .hero .cross-border-form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 12px; padding-top: 16px; }
  .hero .cross-border-form > :nth-child(n+3) { grid-column: 1 / -1; }
  .hero .cross-border-field { margin: 0; }
  .hero .cross-border-field input, .hero .cross-border-field select { padding-top: 11px; padding-bottom: 11px; font-weight: 500; }
  .hero .cross-border-field > span { display: block; margin-bottom: 6px; color: var(--ink); line-height: 1.5; }
  .hero .cross-border-field:nth-child(-n+2) > span { min-height: 38px; }
  .hero .cross-border-field > span small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; line-height: 1.5; font-weight: 400; }
  .hero .cross-border-port-note { padding-top: 6px; color: #386e79; font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; }
  .hero .plan-route-button { padding: 11px 16px; }
  .hero .cross-border-estimate-label { font-size: 11px; line-height: 1.55; }
  .hero .quick-places { display: flex; align-items: baseline; gap: 10px; margin-top: 14px; }
  .hero .quick-places > small { flex: 0 0 auto; margin: 0; }
  .hero .quick-places > div { gap: 7px; }
  .hero .quick-place { min-height: 34px; padding: 5px 10px; }
  .hero .official-planner { margin-top: 12px; font-weight: 500; line-height: 1.6; }
  .hero .route-status:empty { display: none; }
  .hero #route-planner { padding-top: 16px; }
  .hero .route-input-wrap { padding-top: 12px; padding-bottom: 12px; }
  .hero .route-input-wrap input { min-height: 28px; font-weight: 500; }
  .hero .route-input-wrap label { margin-bottom: 4px; }
  .hero .swap-route { top: 86px; width: 34px; height: 34px; box-shadow: none; }
  .home .glt-home-today { margin-top: 24px; }
  .home .glt-home-today .glt-home-section-head > div:first-child { display: flex; align-items: center; gap: 14px; }
  .home .glt-home-today .glt-home-section-head .eyebrow { order: 2; margin-bottom: 0; }
  .glt-guide-reading-layout { grid-template-columns: minmax(0, 1fr) 248px; gap: 32px; }
  .glt-guide-reading-sidebar { min-width: 0; }
  .glt-guide-legacy-widgets { display: none; }
  .glt-guide-reading-panel { display: block; position: sticky; top: 94px; max-height: calc(100vh - 118px); overflow-y: auto; padding: 22px 18px; border: 1px solid var(--line); border-radius: 10px; background: #fff; scrollbar-width: thin; }
  .glt-guide-toc h2 { margin: 0 0 12px; font: 700 18px/1.4 'Microsoft YaHei', 'PingFang SC', sans-serif; }
  .glt-guide-toc ol { list-style: none; margin: 0; padding: 0; }
  .glt-guide-toc li { border-bottom: 1px solid #edf0ee; }
  .glt-guide-toc a { display: block; padding: 9px 0; font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
  .glt-guide-toc .h3 a { padding-left: 12px; color: var(--muted); font-size: 13px; }
  .glt-guide-toc a:hover, .glt-guide-toc a:focus-visible { color: var(--red); }
  .glt-guide-reading-tools { margin-top: 20px; }
  .glt-guide-reading-tools h3 { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
  .glt-guide-reading-tools a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 0; font-size: 14px; color: var(--blue); }
  .glt-guide-reading-note { margin: 18px 0 10px; font-size: 12px; line-height: 1.75; color: var(--muted); }
  .glt-guide-reading-back { display: block; padding-top: 11px; border-top: 1px solid var(--line); font-size: 13px; }
  .glt-guide-reading-panel:focus-visible, .glt-guide-reading-panel a:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
  .gltf-guide-article .article-content :is(h2, h3)[id] { scroll-margin-top: 94px; }
}
@media (min-width: 1280px) {
  .hero .cross-border-field:nth-child(-n+2) > span { display: flex; align-items: baseline; min-height: 0; gap: 6px; }
  .hero .cross-border-field > span small { margin-top: 0; white-space: nowrap; }
}
