/* 手机常用任务集中在拇指可达处；桌面保持现有布局。 */
.mobile-language,.detail-date-picker { display: none; }
.mobile-nav-sheet:not([open]) { display: none; }
.mobile-section-nav [data-section-link][hidden] { display: none; }
@media (max-width: 820px) {
  html { scroll-padding-top: 16px; scroll-padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .office-mode { padding-bottom: 0; }
  .mobile-anchor-section,#forecast-hero { scroll-margin-top: 16px; }
  .site-header { flex-wrap: nowrap; gap: 12px; align-items: center; padding: 9px 0; }
  .brand { min-width: 0; flex: 1; }
  .brand-mark { width: 36px; height: 34px; flex-shrink: 0; }
  .brand-copy { min-width: 0; }
  .brand-copy b { font-size: 11px; overflow-wrap: anywhere; }
  .brand-copy em { max-width: 100%; font-size: 7px; line-height: 1.4; letter-spacing: 0; }
  .header-meta { width: auto; flex: 0 0 auto; }
  .header-meta .language-switch { display: none; }
  .mobile-language { display: block; width: 104px; min-height: 44px; padding: 8px 5px; border: 1px solid #ffffff44; border-radius: 12px; background: #0b252c77; color: #effaf5; font: inherit; font-size: 16px; font-weight: 500; line-height: 1.3; }
  .mobile-language option { background: white; color: #123039; }
  select { font: inherit; }
  .hero-inner { padding-top: 25px; }
  .hero-location h1,.locale-en .hero-location h1,.locale-ru .hero-location h1,
  :is(.locale-it,.locale-de,.locale-fr,.locale-ar,.locale-dv) .hero-location h1 { font-size: clamp(32px,9.3vw,44px); line-height: 1.08; overflow-wrap: anywhere; }
  .hero-weather { margin-top: 24px; }
  .hero-weather > strong { font-size: clamp(66px,19vw,82px); }
  .hero-forecast-facts b { line-height: 1.4; }
  .destination-trigger { min-height: 58px; }

  .mobile-section-nav { position: fixed; inset: auto 0 0; min-height: 0; z-index: 300; padding-bottom: env(safe-area-inset-bottom); border: 0; border-top: 1px solid #cfddd9; background: #fbfaf6f5; overflow: visible; box-shadow: 0 -5px 24px #0b252c12; }
  .mobile-section-nav::after { display: none; }
  .mobile-section-nav-track { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 2px; padding: 5px max(8px,env(safe-area-inset-right)) 6px max(8px,env(safe-area-inset-left)); overflow: visible; }
  .mobile-section-nav-track > :is(a,button) { min-width: 0; width: 100%; min-height: 55px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; padding: 5px 2px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font: inherit; font-size: 10px; font-weight: 600; line-height: 1.25; text-align: center; text-decoration: none; overflow-wrap: anywhere; }
  .mobile-section-nav-track svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
  .mobile-section-nav-track a[aria-current="location"],.mobile-section-nav-track .has-current-section { color: var(--deep); background: var(--aqua); border: 0; box-shadow: none; }
  .mobile-section-nav-track > :is(a,button):focus-visible { outline: 2px solid var(--teal); outline-offset: 0; }
  .mobile-nav-sheet { position: fixed; inset: auto 0 0; width: 100%; max-width: 560px; max-height: 85dvh; margin: auto auto 0; padding: 18px 18px calc(20px + env(safe-area-inset-bottom)); border: 0; border-radius: 24px 24px 0 0; background: var(--paper); color: var(--ink); box-shadow: 0 -20px 70px #03181e44; overflow-y: auto; overscroll-behavior: contain; }
  .mobile-nav-sheet::backdrop { background: #03181e88; }
  html.mobile-menu-open,html.mobile-menu-open body { overflow: hidden; }
  .mobile-nav-sheet header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
  .mobile-nav-sheet header b { font-size: 16px; }
  #mobile-menu-close { width: 44px; height: 44px; flex-shrink: 0; border: 0; border-radius: 50%; color: var(--muted); background: #eaf1ee; font: 26px/1 system-ui,sans-serif; }
  #mobile-destination-open { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; width: 100%; min-height: 76px; margin-bottom: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: white; text-align: start; color: var(--ink); }
  #mobile-destination-open span { font-size: 11px; color: var(--muted); }
  #mobile-destination-open b { grid-column: 1; font-size: 15px; overflow-wrap: anywhere; }
  #mobile-destination-open i { grid-column: 2; grid-row: 1/3; align-self: center; font-style: normal; }
  .mobile-extra-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .mobile-extra-links a { display: flex; align-items: center; justify-content: flex-start; width: 100%; min-width: 0; min-height: 56px; padding: 12px 14px; border-radius: 12px; background: white; border: 1px solid var(--line); color: var(--ink); font-size: 13px; text-align: start; }
  .mobile-extra-links a { overflow-wrap: anywhere; line-height: 1.5; }
  .intelligence-card[id] { scroll-margin-top: 20px; }
  .mobile-extra-links a[aria-current="location"] { background: var(--aqua); color: var(--ink); box-shadow: none; border-color: var(--teal-light); }

  .section-heading h2,.detail-heading h2 { font-size: clamp(29px,8vw,36px); line-height: 1.2; }
  .journey-factors,.intelligence-card,.experience-panel { overflow-wrap: anywhere; hyphens: auto; }
  .intelligence-grid.has-mobile-card-rows { display: block; width: 100%; margin-inline: 0; padding: 0; overflow: visible; }
  .intelligence-card-row { display: flex; align-items: stretch; gap: 12px; width: calc(100% + 24px); margin-inline: -12px; padding: 2px 12px 18px; overflow-x: auto; overflow-y: hidden; scroll-padding-inline: 12px; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .intelligence-card-row::-webkit-scrollbar { display: none; }
  .intelligence-card-row > .intelligence-card { flex: 0 0 min(84vw,390px); min-height: 0; height: auto; align-self: stretch; scroll-snap-align: start; scroll-snap-stop: always; }
  .intelligence-card-row .intelligence-foot { margin-top: auto; }
  .has-mobile-card-rows > .experience-toolbar { margin: 3px 0 16px; }
  .ocean-snapshot { width: 100%; margin-inline: 0; padding: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; overflow: visible; }
  .ocean-card,.ocean-card:nth-child(2),.ocean-card:last-child { min-width: 0; min-height: 0; padding: 18px 14px; border: 1px solid #bdd3cd; border-radius: 14px; }
  .ocean-card > span { font-size: 9px; letter-spacing: .03em; overflow-wrap: anywhere; }
  .ocean-card > b { margin-top: 12px; font-size: 27px; overflow-wrap: anywhere; }
  .ocean-card > strong { font-size: 11px; line-height: 1.5; }
  .ocean-card > small { margin-top: 10px; font-size: 10px; line-height: 1.6; overflow-wrap: anywhere; }
  .window-list { width: calc(100% + 24px); margin-inline: -12px; padding-inline: 12px; grid-auto-columns: calc((100% - 9px)/2); gap: 9px; }
  .weather-window { padding: 18px 12px; }
  .weather-window > b { font-size: 13px; overflow-wrap: anywhere; }
  .weather-window > small { font-size: 11px; line-height: 1.7; }
  .weather-window .meteo-icon { transform: scale(.88); transform-origin: left center; }
  .days { width: calc(100% + 24px); margin-inline: -12px; padding-inline: 12px; grid-auto-columns: 50%; }
  .day { min-height: 290px; padding: 18px 12px; }
  .day > strong { font-size: 23px; }
  .day > time { font-size: 12px; }
  .day > .meteo-icon { transform: scale(.8); transform-origin: left center; }
  .day-metrics > span { font-size: 10px; line-height: 1.6; }
  .detail-date-picker { display: flex; flex-direction: column; gap: 7px; margin: 0 0 22px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #f3f8f5; }
  .detail-date-picker > span { font-size: 11px; color: var(--muted); }
  .detail-date-picker select { width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink); font-size: 16px; }
  .day-insight { grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: 0; border-radius: 12px; background: #f7faf8; overflow: hidden; }
  .day-insight article,.day-insight article:first-child,.day-insight article:not(:first-child) { grid-column: auto; min-width: 0; min-height: 0; padding: 14px 12px; border: 0; border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
  .day-insight article:first-child { grid-column: 1/-1; }
  .day-insight article:nth-child(odd) { border-inline-end: 0; }
  .day-insight article:nth-child(n+4) { border-bottom: 0; }
  .day-insight b { line-height: 1.5; }
  .mobile-slots { margin-top: 16px; }
  .slot-card { border: 1px solid var(--line); border-radius: 13px; background: white; overflow: hidden; }
  .slot-card summary { min-height: 76px; grid-template-columns: 56px minmax(0,1fr) auto 14px; gap: 8px; padding: 13px 12px; }
  .slot-card summary time { font-size: 19px; }
  .slot-card summary .slot-summary-weather { min-width: 0; color: var(--ink); }
  .slot-summary-weather b { display: block; font-size: 13px; overflow-wrap: anywhere; }
  .slot-summary-weather small { display: block; margin-top: 5px; font-size: 10px; color: var(--muted); line-height: 1.4; }
  .slot-card summary .slot-summary-temp { font-size: 18px; font-variant-numeric: tabular-nums; }
  .slot-card summary i { font-style: normal; font-size: 16px; color: var(--muted); transition: transform .2s; }
  .slot-card[open] summary i { transform: rotate(180deg); }
  .slot-data { margin: 0 8px 8px; padding: 0; border-radius: 8px; overflow: hidden; }
  .slot-data div { min-width: 0; padding: 11px 9px; }
  .slot-data b { overflow-wrap: anywhere; line-height: 1.5; }
  #toast { bottom: calc(90px + env(safe-area-inset-bottom)); }
  .office-page-nav a { min-height: 44px; display: inline-flex; align-items: center; }
  :is(.locale-ar,.locale-dv) .mobile-section-nav span { letter-spacing: normal; }
}
@media (prefers-reduced-motion: reduce) { .slot-card summary i { transition: none; } }
