/* ae-v2.css, written by .scripts/ae_stops.py (AE pages only), on top of aa-v2.css */
.ae2 .aa2-sec{scroll-margin-top:calc(var(--a2-head,68px) + 64px)}
.ae2-alias{display:block;height:0;scroll-margin-top:calc(var(--a2-head,68px) + 64px)}
/* rail stops (History, People, Classics, Food): one column down the rail, the group icons docked on the line (index.css .a-lit-rail),
   the pills in their own gutter right of the line; a long date wraps under the title inside the pill */
.ae2 .ae2-rail{max-width:none;margin:8px 0 0}
.ae2 .ae2-rail .a-lit-groups{display:block}
.ae2 .ae2-rail .a-lit-pill{flex-wrap:wrap;row-gap:0;border-radius:16px}
.ae2 .ae2-rail .a-lit-pill-title{white-space:nowrap;overflow-wrap:normal}
.ae2 .ae2-rail .a-lit-pill small{flex:0 1 auto;min-width:0}
.ae2-overview .aa2-prose{max-width:820px}
.ae2-ex{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
.ae2-ex-head h3{margin:0;font-size:1.25rem}
.ae2-ex-head h3 a{color:inherit;text-decoration:none}
.ae2-ex-head p{margin:.25rem 0 0;color:#6b6556}
.ae2-ex-samples{display:flex;gap:14px;flex-wrap:wrap}
.ae2-ex-sample img{display:block;width:240px;height:auto;border-radius:6px;box-shadow:0 2px 10px rgba(0,0,0,.12)}
.ae2-ex-thumbs{display:flex;gap:10px;flex-wrap:wrap}
.ae2-ex-thumb img{display:block;width:84px;height:auto;border-radius:4px}
.ae2 .aa2-legend button.sel .aa2-chip{background:#9e2a2b;border-color:#9e2a2b;color:#fff}
.ae2 .aa2-legend button.sel .aa2-chip i{background:#fff!important}
.ae2 .aa2-legend button{min-height:32px}
/* Mural stop: AG picture-set tiles (5 across at 1440, 2 on phones) */
.ae2-tiles{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}
.ae2-tile{display:block;border-radius:10px;overflow:hidden;background:var(--a2-card,#fbf8f0);border:1px solid var(--a2-line,#d9cfb6);color:var(--a2-ink,#1b1a17);text-decoration:none;transition:box-shadow .2s,transform .2s}
.ae2-tile:hover{box-shadow:0 8px 22px rgba(27,26,23,.16);transform:translateY(-2px)}
.ae2-tile img{display:block;width:100%;aspect-ratio:640/420;height:auto;object-fit:cover}
.ae2-tile span{display:block;padding:9px 12px 11px;font-family:var(--a2-serif);font-size:calc(15 * var(--u));line-height:1.35}
@media (max-width:1100px){.ae2-tiles{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (max-width:860px){.ae2-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:600px){.ae2-tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.ae2-tile span{padding:7px 9px 9px;font-size:calc(14 * var(--u))}}
.ae2-map{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:14px 24px;align-items:start}
.ae2-map-box{min-height:260px}
.ae2-map-svg{display:block;width:100%;height:auto}
.ae2-map-bg{fill:#efe9da;stroke:#d9cfb6}
.ae2-map-ray{stroke:#b8954a;stroke-width:1;stroke-dasharray:3 4;opacity:.7}
.ae2-map-pin{fill:#143323;stroke:#f5f1e6;stroke-width:2}
.ae2-map-pin-t{fill:#f5f1e6;font-size:11px;font-weight:700;pointer-events:none}
.ae2-map-me{fill:#b8954a;stroke:#fff;stroke-width:3}
.ae2-map-me-t{fill:#143323;font-size:13px;font-weight:700;paint-order:stroke;stroke:#efe9da;stroke-width:4}
.ae2-map-scale{stroke:#4a463d;stroke-width:2}
.ae2-map-t,.ae2-map-n{fill:#4a463d;font-size:11px}
.ae2-map-n{font-weight:700}
.ae2-map-list{margin:0;padding:0;list-style:none;font-size:.9rem;max-height:420px;overflow:auto}
.ae2-map-list li{break-inside:avoid;margin:0 0 6px}
.ae2-map-list a{color:inherit;text-decoration:none}
.ae2-map-list b{display:inline-block;min-width:1.6em;color:#8a6a21}
.ae2-map .aa2-btn{grid-column:1 / -1;justify-self:start}
.ae2-3d{position:relative;display:block;border-radius:10px;overflow:hidden;max-width:880px;color:#fff;text-decoration:none;background:#143323}
.ae2-3d img{display:block;width:100%;height:auto;opacity:.85}
.ae2-3d-copy{position:absolute;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;background:linear-gradient(transparent,rgba(0,0,0,.6))}
.ae2-3d-copy strong{font-size:1.2rem}
/* ---------- jump bar, two variants (A 2026-11-26; the user: "reimagine the page-stop bar design so it stands out against the page/content (and Hero above)") ----------
   shared: 54 px, icons before labels, 16 px ZH/TC labels, count badges, gold scroll-progress line, sideways scroll with fade edges on phones */
.ae2{--a2-jump:54px}
.ae2 .aa2-jump{border-bottom:0;-webkit-backdrop-filter:none;backdrop-filter:none;transition:box-shadow .25s}
.ae2 .aa2-jump-in{max-width:1400px}
.ae2 .aa2-jump .aa2-tabs{gap:2px;align-items:center;height:100%;padding:0 16px;scroll-padding:0 24px}
/* fade edges only while the stops overflow (ae2-ovf, set by the pilot script) */
.ae2 .aa2-jump .aa2-tabs.ae2-ovf{-webkit-mask-image:linear-gradient(90deg,transparent,#000 20px,#000 calc(100% - 20px),transparent);mask-image:linear-gradient(90deg,transparent,#000 20px,#000 calc(100% - 20px),transparent)}
/* no fades on the pills or the home item: a frozen transition (background tab, slow device) left them washed out (A 2026-11-26) */
.ae2 .aa2-jump .aa2-tabs a{height:38px;padding:0 10px;border-radius:99px;gap:5px;font-size:calc(16 * var(--u));transition:none}
.ae2 .aa2-jump .aa2-mini{transition:none;transform:none;margin-right:8px}
/* lead item: the AE icon and name at the left in both states (the user 2026-11-26: "showing the lead-off Huangshan icon/title all the time"),
   a divider before the stops; it goes back to the top */
.ae2 .aa2-jump .aa2-mini,.ae2 .aa2-jump.is-stuck .aa2-mini{display:flex;opacity:1;pointer-events:auto;flex:none;padding:0 16px 0 6px;margin-right:4px;border-right:1px solid var(--a2-line);height:26px;cursor:pointer;text-decoration:none}
.lang-en .ae2 .aa2-jump .aa2-mini{padding-right:12px;font-size:14px}
.lang-en .ae2 .aa2-jump .aa2-tabs{gap:12px}
.ae2 .aa2-jump .aa2-mini:hover .ae2-lead-t{text-decoration:underline;text-underline-offset:3px}
/* no progress line (the user 2026-11-26: "The current gold bar doesn't make sense"); the active pill alone says where you are */
.ae2 .aa2-progress{display:none!important}
.lang-en .ae2 .aa2-jump .aa2-tabs a{font-size:calc(15 * var(--u))}
.ae2 .aa2-jump .aa2-tabs a::after{display:none}
.ae2 .ae2-ti{display:inline-flex;width:18px;height:18px;flex:none}
.ae2 .ae2-ti svg{width:100%;height:100%;display:block}
/* the user picked B (2026-11-26) with three tweaks: a much smaller count, more space between tabs, the icon close to its title */
.ae2 .aa2-jump .aa2-tabs{gap:16px}
.ae2 .aa2-jump .aa2-tabs a{gap:4px;padding:0 8px}
.ae2 .aa2-jump .aa2-tabs a small{align-self:center;position:relative;top:-7px;margin-left:1px;padding:1px 4px;border-radius:99px;font-size:max(10px,calc(10.5 * var(--u)));line-height:1.15;font-family:system-ui,sans-serif;font-variant-numeric:tabular-nums;background:rgba(154,122,53,.13);border:0}
.ae2 .aa2-jump .aa2-tabs a.on small{background:rgba(255,255,255,.16)}
/* tab dividers (the user 2026-11-26 via A: "can we put the single vertical separator between all the stop-page tab?"): the lead
   divider's line, centred in the gap between tabs, none after the last; on a page only where data-tabdiv is set (TAB_DIVIDERS) */
[data-tabdiv][data-aa2] .aa2-jump .aa2-tabs a{position:relative}
[data-tabdiv][data-aa2] .aa2-jump .aa2-tabs a+a::before{content:"";position:absolute;left:-8.5px;top:50%;height:26px;margin-top:-13px;border-left:1px solid var(--a2-line);pointer-events:none}
.lang-en [data-tabdiv][data-aa2] .aa2-jump .aa2-tabs a+a::before{left:-6.5px}
/* the user's tweaks (2026-11-26 via A: "so all tabs have equally spaced vertical separators on both sides", "add some space also
   between the title ... and the tabs"): the lead divider to the first tab = the same half-gap; a closing divider after the last tab;
   about one full tab gap between the lead name and its divider */
[data-tabdiv][data-aa2] .aa2-jump .aa2-mini,[data-tabdiv][data-aa2] .aa2-jump.is-stuck .aa2-mini{margin-right:0;padding-right:32px}
[data-tabdiv][data-aa2] .aa2-jump-in{column-gap:0}
[data-tabdiv][data-aa2] .aa2-jump .aa2-tabs{padding-left:8px;padding-right:16px}
[data-tabdiv][data-aa2] .aa2-jump .aa2-tabs a:last-child::after{display:block;content:"";position:absolute;left:auto;right:-8.5px;bottom:auto;top:50%;width:0;height:26px;margin-top:-13px;background:none;transform:none;transition:none;border-left:1px solid var(--a2-line);pointer-events:none}
.lang-en [data-tabdiv][data-aa2] .aa2-jump .aa2-mini,.lang-en [data-tabdiv][data-aa2] .aa2-jump.is-stuck .aa2-mini{padding-right:24px}
.lang-en [data-tabdiv][data-aa2] .aa2-jump .aa2-tabs{padding-left:6px}
.lang-en [data-tabdiv][data-aa2] .aa2-jump .aa2-tabs a:last-child::after{right:-6.5px}
/* A: ink band */
.ae2[data-bar=a] .aa2-jump{background:var(--a2-jade-2);border-top:1px solid var(--a2-gold-hi);box-shadow:0 1px 0 rgba(0,0,0,.25)}
.ae2[data-bar=a] .aa2-jump.is-stuck{box-shadow:0 8px 22px rgba(7,18,13,.35)}
.ae2[data-bar=a] .aa2-mini{color:var(--a2-paper)}
.ae2[data-bar=a] .aa2-mini .aa2-g{color:var(--a2-gold-hi)}
.ae2[data-bar=a] .aa2-jump .aa2-tabs a{color:rgba(245,241,230,.88)}
.ae2[data-bar=a] .aa2-jump .aa2-tabs a small{color:var(--a2-gold-hi)}
.ae2[data-bar=a] .aa2-jump .aa2-tabs a:hover{background:rgba(214,184,92,.14);color:#fff}
.ae2[data-bar=a] .aa2-jump .aa2-tabs a.on{background:var(--a2-gold-hi);color:var(--a2-jade-2)}
.ae2[data-bar=a] .aa2-jump .aa2-tabs a.on small{color:var(--a2-jade-2)}
/* B: raised paper card, half over the hero bottom; full width once pinned */
.ae2:not([data-bar=a]) .aa2-jump{max-width:min(1392px,calc(100% - 48px));margin:-27px auto 0;background:#fffdf8;border:1px solid var(--a2-gold);border-radius:99px;box-shadow:0 12px 30px rgba(27,26,23,.2),0 2px 6px rgba(27,26,23,.12);overflow:hidden}
.ae2:not([data-bar=a]) .aa2-jump-in{padding:0 12px}
.ae2:not([data-bar=a]) .aa2-jump.is-stuck{max-width:100%;margin-left:0;margin-right:0;border-radius:0;border-width:0 0 1px;border-color:rgba(27,26,23,.12);box-shadow:0 6px 16px rgba(27,26,23,.10)}
.ae2:not([data-bar=a]) .aa2-jump.is-stuck .aa2-jump-in{max-width:1400px;padding:0 24px}
.ae2:not([data-bar=a]) .aa2-jump .aa2-tabs a{color:var(--a2-ink)}
.ae2:not([data-bar=a]) .aa2-jump .aa2-tabs a small{color:var(--a2-gold)}
.ae2:not([data-bar=a]) .aa2-jump .aa2-tabs a:hover{background:var(--a2-paper-2)}
.ae2:not([data-bar=a]) .aa2-jump .aa2-tabs a.on{background:var(--a2-ink);color:var(--a2-paper)}
.ae2:not([data-bar=a]) .aa2-jump .aa2-tabs a.on small{color:var(--a2-gold-hi)}
/* tab landing 22 px higher (the user 2026-11-26 via A: "Can you reduce the space above the stop title a bit"): a tab click or #stop link
   puts the title ~59 px under the bar instead of ~81; the sections' own padding (the scroll rhythm) is unchanged. Where data-landing is set */
[data-landing] [id^="sec-"],[data-landing] .aa2-sec,[data-landing] .ae2-alias{scroll-margin-top:calc(var(--a2-head,68px) + var(--a2-jump,54px) - 14px)}
/* pinned stays the floating card above 600 px (the user 2026-11-26 via A: "Yes, card on desktop"); phones keep the flat strip.
   On a page only where data-pincard is set (PIN_CARD) */
@media (min-width:601px){
  [data-pincard][data-aa2] .aa2-jump.is-stuck{max-width:min(1392px,calc(100% - 48px));margin-left:auto;margin-right:auto;border-radius:99px;border-width:1px;border-color:var(--a2-gold);box-shadow:0 12px 30px rgba(27,26,23,.2),0 2px 6px rgba(27,26,23,.12)}
  [data-pincard][data-aa2] .aa2-jump.is-stuck .aa2-jump-in{max-width:1400px;padding:0 12px}
}
@media (max-width:600px){
  .ae2 .aa2-jump .aa2-mini{padding:0 10px 0 4px}
  [data-tabdiv][data-aa2] .aa2-jump .aa2-mini,[data-tabdiv][data-aa2] .aa2-jump.is-stuck .aa2-mini,.lang-en [data-tabdiv][data-aa2] .aa2-jump .aa2-mini,.lang-en [data-tabdiv][data-aa2] .aa2-jump.is-stuck .aa2-mini{padding-right:10px}
  .lang-en .ae2 .aa2-jump .ae2-lead-t{display:none}   /* EN phone: the long English name would crowd the stops; the icon stays */
  .ae2:not([data-bar=a]) .aa2-jump{margin:-27px 12px 0;max-width:none}
  html:not([data-ae2-bar=a]) .atlas-ae-hero{padding-bottom:27px}   /* B overlaps the hero bottom: keep the hero's place pills clear of the card */
  .ae2:not([data-bar=a]) .aa2-jump-in{padding:0 4px}
}
@media (max-width:600px){.ae2-map{grid-template-columns:minmax(0,1fr)}.ae2-map-list{columns:1}}
@media (max-width:600px){.ae2 .ae2-rail{margin:8px 0 0}.ae2 .ae2-rail .a-lit-pill-title{white-space:normal}.ae2-ex-sample img{width:calc(50vw - 30px)}.ae2-ex-thumb img{width:calc(25vw - 18px)}}
