:root {
  --jade: #0E6B5C;
  --jade-deep: #084B41;
  --on-jade: #FFFFFF;
  --marigold: #F0A91B;
  --bg: #E9EFEB;
  --surface: #FFFFFF;
  --surface-2: #F1F5F2;
  --ink: #15231F;
  --muted: #55655F;
  --line: #D5DFD9;
  --t-doi-song: #B4560F;
  --t-du-lich: #0B7285;
  --t-lich-su: #A5302A;
  --t-dia-ly: #2F7D32;
  --t-the-gioi: #5B4BA8;
  --top-h: 56px;
  --tab-h: 62px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --bar-h: calc(var(--tab-h) + var(--safe-b));
  --sheet-h: 0px;
  --ui: "Be Vietnam Pro", -apple-system, "Segoe UI", Roboto, sans-serif;
  --read: "Literata", Georgia, "Times New Roman", serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --jade: #49C2AB;
    --jade-deep: #8FE0CF;
    --on-jade: #06302A;
    --bg: #101A18;
    --surface: #1A2724;
    --surface-2: #24332F;
    --ink: #E7F0EC;
    --muted: #A3B4AD;
    --line: #2F403B;
    --t-doi-song: #F0A35E;
    --t-du-lich: #5CC6D8;
    --t-lich-su: #F08A80;
    --t-dia-ly: #7FCB83;
    --t-the-gioi: #B5A9F2;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  padding-left: var(--safe-l);
  padding-right: var(--safe-r);
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.5 var(--ui);
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
h1, h2, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; touch-action: manipulation; }
a { touch-action: manipulation; }
svg { display: block; }
:focus-visible {
  outline: 2.5px solid var(--jade-deep);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--marigold);
  border-radius: 6px;
}
main:focus, h1:focus, .sheet:focus { outline: none; box-shadow: none; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 8px; top: -80px; z-index: 100; background: var(--surface); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: calc(8px + var(--safe-t)); }

.t-doi-song { --c: var(--t-doi-song); }
.t-du-lich { --c: var(--t-du-lich); }
.t-lich-su { --c: var(--t-lich-su); }
.t-dia-ly { --c: var(--t-dia-ly); }
.t-the-gioi { --c: var(--t-the-gioi); }

/* Thanh trên */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  height: calc(var(--top-h) + var(--safe-t));
  padding: var(--safe-t) 10px 0 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 9px; min-height: 44px; min-width: 0; }
.mark { width: 32px; height: 32px; flex: none; }
.wordmark { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 700; font-size: 18px; letter-spacing: -.015em; color: var(--jade-deep); white-space: nowrap; }
.wordmark span { color: var(--jade); }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: 50%; background: var(--surface-2); color: var(--ink);
}
.icon-btn svg { width: 22px; height: 22px; }

/* Khung */
.shell { display: block; }
main { min-width: 0; padding-bottom: calc(var(--bar-h) + var(--sheet-h) + 16px); }
.context { display: none; }

.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  min-height: calc(var(--tab-h) + var(--safe-b));
  padding: 0 var(--safe-r) var(--safe-b) var(--safe-l);
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.nav a {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-width: 0; min-height: var(--tab-h); padding: 4px 1px;
  color: var(--muted); font-size: 12px; font-weight: 600; line-height: 1.2; text-align: center;
}
.nav svg { width: 24px; height: 24px; flex: none; }
.nav .lbl-long { display: none; }
.nav a[aria-current] { color: var(--jade); font-weight: 700; }
.nav a[aria-current] svg { fill: color-mix(in srgb, var(--jade) 18%, transparent); }

/* Hàng chuyên đề */
.shelf {
  display: flex; gap: 8px; padding: 10px 12px; overflow-x: auto;
  background: var(--surface); margin-bottom: 8px;
  scrollbar-width: none; overscroll-behavior-x: contain; scroll-snap-type: x proximity;
  scroll-padding-left: 12px;
}
.shelf::-webkit-scrollbar { display: none; }
.shelf-item {
  position: relative; flex: 0 0 88px; height: 112px; overflow: hidden;
  border-radius: 10px; scroll-snap-align: start; background: var(--surface-2);
}
.shelf-item svg { width: 100%; height: 80px; }
.shelf-item span {
  position: absolute; left: 0; right: 0; bottom: 0; height: 32px;
  display: grid; place-items: center;
  background: var(--c); color: #fff; font-weight: 700; font-size: 13px;
}
@media (prefers-color-scheme: dark) { .shelf-item span { color: #10201C; } }

/* Thẻ bài */
.feed { display: grid; gap: 8px; }
.post { background: var(--surface); }
.post-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px 8px; }
.avatar { width: 32px; height: 32px; flex: none; display: block; }
.who { min-width: 0; flex: 1; display: flex; flex-direction: column; align-items: flex-start; line-height: 1.3; }
.who-topic { position: relative; color: var(--c); font-weight: 700; font-size: 15px; }
.who-topic::after { content: ""; position: absolute; inset: -10px -10px -4px; }
.who span { color: var(--muted); font-size: 13px; }
.post-link { display: block; }
.post-link h2 { padding: 0 14px; font-size: 18px; line-height: 1.38; font-weight: 700; letter-spacing: -.005em; text-wrap: pretty; }
.post-link p { padding: 4px 14px 10px; color: var(--muted); text-wrap: pretty; }

.scene { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.scene > svg { width: 100%; height: 100%; }
.scene figcaption {
  position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px);
  display: flex; flex-direction: column; padding: 5px 10px;
  background: #FFFFFF; color: #15231F; border-radius: 2px;
  font-size: 13px; font-weight: 700; line-height: 1.3;
  box-shadow: 3px 3px 0 var(--marigold);
}
.scene figcaption span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scene figcaption small { font-weight: 400; color: #55655F; font-size: 12px; font-variant-numeric: tabular-nums; }

.post-actions { display: flex; align-items: center; gap: 2px; padding: 3px 6px; border-top: 1px solid var(--line); }
.act {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 12px; border-radius: 8px;
  color: var(--muted); font-weight: 600; font-size: 13px;
  transition: transform .08s ease-out;
}
.act svg { width: 20px; height: 20px; flex: none; }
.act.is-on { color: var(--jade); }
.act.is-on svg { fill: currentColor; }
.act-read { margin-left: auto; color: var(--jade); font-weight: 700; }

/* Phản hồi khi chạm */
.act:active, .chip:active, .btn:active, .icon-btn:active, .seg a:active, .nav a:active { transform: scale(.96); }
.chip, .btn, .icon-btn, .seg a, .nav a { transition: transform .08s ease-out; }
.post-link, .mini, .tile, .tl-card, .place-list a, .sheet-list a, .topic-list a, .facts a { transition: background-color .08s linear .06s; }
.post-link:active, .place-list a:active, .sheet-list a:active, .topic-list a:active, .facts a:active, .tl-card:active, .tile:active { background-color: var(--surface-2); }
.shelf-item:active { opacity: .85; }

@media (hover: hover) {
  .act:hover, .nav a:hover { background: var(--surface-2); }
  .post-link:hover h2 { color: var(--jade); }
}

/* Đầu trang */
.page-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; padding: 14px 14px 10px; background: var(--surface); }
.page-head h1 { font-size: 23px; font-weight: 700; letter-spacing: -.015em; line-height: 1.25; }
.seg { display: inline-flex; padding: 3px; background: var(--surface-2); border-radius: 999px; }
.seg a { position: relative; display: inline-flex; align-items: center; min-height: 38px; padding: 0 13px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.seg a::after { content: ""; position: absolute; inset: -6px 0; }
.seg a[aria-current] { background: var(--jade); color: var(--on-jade); }

/* Bản đồ */
.map-wrap { background: var(--surface); padding: 0 12px 12px; }
.map-svg { width: 100%; height: auto; background: color-mix(in srgb, var(--t-du-lich) 11%, var(--surface)); border-radius: 8px; cursor: pointer; }
.grid line { stroke: color-mix(in srgb, var(--muted) 38%, transparent); stroke-width: 1; stroke-dasharray: 2 6; }
.map-axis { fill: var(--muted); font: 600 27px var(--ui); }
.map-sea { fill: var(--t-du-lich); font: 700 34px var(--ui); }
.map-isl { fill: var(--ink); font: 600 30px var(--ui); }
.isl-dot { fill: var(--ink); }
.pin-dot { fill: var(--c); stroke: var(--surface); stroke-width: 3; }
.pin.is-active .pin-dot { stroke: var(--marigold); stroke-width: 6; }
.place-list { margin-top: 8px; background: var(--surface); }
.place-list a, .sheet-list a { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 14px; border-bottom: 1px solid var(--line); }
.place-list a.is-active { background: var(--surface-2); }
.place-list a > span:last-child, .sheet-list a > span:last-child { display: flex; flex-direction: column; min-width: 0; line-height: 1.32; }
.place-list strong, .sheet-list strong { font-weight: 700; }
.place-list small, .sheet-list small { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c); flex: none; display: inline-block; }

.sheet {
  position: fixed; z-index: 35;
  left: calc(8px + var(--safe-l)); right: calc(8px + var(--safe-r));
  bottom: calc(var(--bar-h) + 8px);
  max-height: calc(100dvh - var(--bar-h) - var(--top-h) - var(--safe-t) - 24px);
  overflow-y: auto; overscroll-behavior: contain;
  display: grid; gap: 10px; padding: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 10px 28px rgba(8, 40, 34, .28);
  animation: rise .2s ease-out;
}
.sheet h2 { padding-right: 48px; min-height: 40px; display: flex; align-items: center; font-size: 15px; font-weight: 700; }
.sheet .mini { padding-right: 46px; }
.sheet-list a { padding-left: 2px; padding-right: 2px; }
.sheet-list li:last-child a { border-bottom: 0; }
.sheet-close { position: absolute; top: 8px; right: 8px; z-index: 1; }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 46px; padding: 0 18px; border-radius: 10px;
  background: var(--jade); color: var(--on-jade); font-weight: 700;
}
.btn svg { width: 19px; height: 19px; }

/* Thẻ nhỏ */
.mini { display: flex; align-items: center; gap: 11px; min-height: 64px; }
.mini-img { width: 76px; height: 58px; flex: none; overflow: hidden; border-radius: 6px; }
.mini-img svg { width: 100%; height: 100%; }
.mini-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.32; }
.mini-text strong { font-size: 15px; font-weight: 600; }
.mini-text small { color: var(--muted); font-size: 13px; }

/* Bộ lọc */
.chips { position: relative; display: flex; gap: 7px; padding: 4px 14px 12px; overflow-x: auto; background: var(--surface); scrollbar-width: none; overscroll-behavior-x: contain; }
.chips::-webkit-scrollbar { display: none; }
.chips.sticky { position: sticky; top: calc(var(--top-h) + var(--safe-t)); z-index: 20; border-bottom: 1px solid var(--line); padding-top: 6px; padding-bottom: 8px; }
.chip {
  position: relative; flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  border-radius: 999px; background: var(--surface-2); color: var(--ink);
  font-size: 13px; font-weight: 600; white-space: nowrap;
}
.chip::after { content: ""; position: absolute; inset: -3px 0; }
.chip[aria-current] { background: var(--jade); color: var(--on-jade); }

/* Dòng thời gian */
.timeline { position: relative; padding: 16px 14px 8px 34px; }
.timeline::before { content: ""; position: absolute; left: 19px; top: 18px; bottom: 16px; width: 3px; background: var(--line); border-radius: 2px; }
.timeline li { position: relative; padding-bottom: 18px; }
.timeline li::before {
  content: ""; position: absolute; left: -22px; top: 3px; width: 15px; height: 15px;
  border-radius: 50%; background: var(--c); border: 3px solid var(--bg);
}
.tl-year { display: block; margin-bottom: 6px; color: var(--ink); font-weight: 700; font-size: 15px; }
.tl-card { display: flex; overflow: hidden; background: var(--surface); border-radius: 10px; min-height: 92px; }
.tl-img { width: 104px; flex: none; }
.tl-img svg { width: 100%; height: 100%; }
.tl-text { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 10px 12px; line-height: 1.32; min-width: 0; }
.tl-text strong { font-weight: 700; text-wrap: pretty; }
.tl-text small { color: var(--muted); font-size: 13px; }

/* Khám phá */
.search {
  position: relative; display: flex; align-items: center; padding: 0 14px 10px;
  background: var(--surface); color: var(--muted);
}
.search svg { position: absolute; left: 26px; top: 13px; width: 20px; height: 20px; pointer-events: none; }
.search input {
  width: 100%; height: 46px; padding: 0 14px 0 41px;
  font: 400 16px var(--ui); color: var(--ink);
  background: var(--surface-2); border: 1.5px solid var(--muted); border-radius: 999px;
  -webkit-appearance: none; appearance: none;
}
.search input:focus { outline: none; border-color: var(--jade); box-shadow: 0 0 0 2px var(--jade); }
.search input::placeholder { color: var(--muted); opacity: 1; }
.count { padding: 8px 14px 0; color: var(--muted); font-size: 13px; }
.grid-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 8px; }
.tile { display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border-radius: 10px; }
.tile-img { display: block; aspect-ratio: 4 / 3; }
.tile-img svg { width: 100%; height: 100%; }
.tile-text { display: flex; flex-direction: column; gap: 3px; padding: 9px 10px 11px; line-height: 1.32; }
.tile-text strong { font-size: 15px; font-weight: 600; text-wrap: pretty; }
.tile-text em { font-style: normal; font-weight: 700; font-size: 13px; color: var(--c); }
.empty { padding: 28px 18px; text-align: center; color: var(--muted); }
.empty a { color: var(--jade); font-weight: 700; }

/* Tác giả */
.profile { background: var(--surface); }
.cover { height: 150px; overflow: hidden; }
.cover svg { width: 100%; height: 100%; }
.profile-body { padding: 0 16px 18px; }
.avatar.avatar-xl { width: 88px; height: 88px; margin-top: -44px; position: relative; border-radius: 50%; border: 4px solid var(--surface); background: var(--surface); }
.profile h1 { margin-top: 8px; font-size: 23px; font-weight: 700; letter-spacing: -.015em; line-height: 1.25; }
.bio { margin-top: 5px; color: var(--muted); max-width: 52ch; }
.counts { display: flex; gap: 26px; margin: 14px 0; }
.counts div { display: flex; flex-direction: column-reverse; }
.counts dd { font-size: 18px; font-weight: 700; line-height: 1.25; font-variant-numeric: tabular-nums; }
.counts dt { color: var(--muted); font-size: 13px; }
.profile .btn { width: 100%; }
.panel { margin-top: 8px; padding: 14px 16px; background: var(--surface); }
.panel h2, .side h2, .related h2, .sources h2 { font-size: 18px; font-weight: 700; margin-bottom: 7px; line-height: 1.35; }
.panel p { max-width: 62ch; }
.topic-list a { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; }
.topic-list small { margin-left: auto; color: var(--muted); font-weight: 400; font-size: 13px; }
.legal { padding: 16px; color: var(--muted); font-size: 13px; text-align: center; }

/* Trang đọc */
.reader { background: var(--surface); }
.reader-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: calc(var(--tab-h) + var(--safe-b));
  padding: 0 var(--safe-r) var(--safe-b) var(--safe-l);
  background: var(--surface); border-top: 1px solid var(--line);
}
.reader-bar .act { flex-direction: column; gap: 3px; min-height: var(--tab-h); padding: 4px 2px; border-radius: 0; font-size: 12px; line-height: 1.2; }
.reader-bar .act svg { width: 24px; height: 24px; }
.reader .scene { aspect-ratio: 16 / 9; }
.reader-body { padding: 16px 16px 8px; }
.reader-body h1 { font-size: clamp(24px, 7vw, 27px); line-height: 1.3; font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; margin-top: 7px; color: var(--muted); font-size: 13px; }
.byline-topic { position: relative; color: var(--c); font-weight: 700; }
.byline-topic::after { content: ""; position: absolute; inset: -12px -8px; }
.reader-body > p:not(.byline) { margin-top: 15px; max-width: 66ch; font: 400 clamp(17px, 4.6vw, 18px)/1.68 var(--read); text-wrap: pretty; }
.reader-body > p.lede { font-weight: 600; font-size: clamp(18px, 4.9vw, 19px); line-height: 1.58; }
.facts { display: grid; gap: 8px; margin-top: 22px; }
.facts a { display: flex; align-items: center; gap: 11px; min-height: 58px; padding: 8px 13px; background: var(--surface-2); border-radius: 10px; font-weight: 600; }
.facts svg { width: 22px; height: 22px; color: var(--jade); flex: none; }
.facts span { display: flex; flex-direction: column; line-height: 1.3; }
.facts small { color: var(--muted); font-weight: 400; font-size: 13px; }
.sources { margin-top: 22px; }
.sources li { padding: 6px 0; }
.sources a { color: var(--jade); text-decoration: underline; text-underline-offset: 3px; }
.related { display: grid; gap: 8px; margin-top: 12px; padding: 14px 16px 20px; border-top: 8px solid var(--bg); }

/* Toast */
.toast {
  position: fixed; left: 50%; z-index: 60;
  bottom: calc(var(--bar-h) + 14px);
  transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  width: max-content; max-width: calc(100vw - 32px); padding: 10px 16px; border-radius: 8px;
  background: var(--ink); color: var(--surface); font-weight: 600; font-size: 13px;
  transition: opacity .16s, transform .16s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Trang đọc trên điện thoại: chỉ giữ một thanh thao tác ở đáy */
@media (max-width: 767.98px) {
  body[data-view="article"] .topbar,
  body[data-view="article"] .nav { display: none; }
  body[data-view="article"] .reader { padding-top: var(--safe-t); }
}

/* Máy tính bảng */
@media (min-width: 768px) {
  .topbar { padding-left: 20px; padding-right: 20px; }
  .shell { display: grid; grid-template-columns: 84px minmax(0, 640px); justify-content: center; gap: 22px; padding: 16px 16px 0 0; }
  main { padding-bottom: 32px; }
  .nav {
    position: sticky; top: calc(var(--top-h) + 16px); align-self: start;
    display: flex; flex-direction: column; gap: 4px;
    min-height: 0; padding: 0; background: none; border: 0;
  }
  .nav a { min-height: 62px; border-radius: 10px; }
  .nav a[aria-current] { background: var(--surface); }
  .shelf, .post, .page-head, .profile, .panel, .reader, .place-list { border-radius: 12px; }
  .shelf { margin-bottom: 12px; }
  .shelf-item { flex: 1 1 0; min-width: 88px; height: 132px; }
  .shelf-item svg { height: 100px; }
  .feed { gap: 12px; }
  .post { overflow: hidden; }
  .page-head { border-radius: 12px 12px 0 0; }
  .map-wrap { border-radius: 0 0 12px 12px; }
  .chips:not(.sticky) { border-radius: 0 0 12px 12px; }
  .chips.sticky { top: var(--top-h); }
  .search { padding-top: 2px; }
  .search svg { top: 15px; }
  .grid-list { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 12px 0; gap: 12px; }
  .reader { overflow: clip; }
  .reader-bar {
    position: sticky; top: var(--top-h); bottom: auto; z-index: 20;
    display: flex; align-items: center; min-height: 0;
    padding: 4px 8px; border-top: 0; border-bottom: 1px solid var(--line);
  }
  .reader-bar .act { flex-direction: row; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 8px; font-size: 13px; }
  .reader-bar .act svg { width: 20px; height: 20px; }
  .reader-bar .act:first-child { margin-right: auto; }
  .reader-body { padding: 22px 34px 10px; }
  .reader-body h1 { font-size: 32px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .related { padding: 18px 34px 24px; }
  .cover { height: 230px; }
  .profile { overflow: hidden; }
  .profile .btn { width: auto; }
  .timeline { padding-left: 42px; }
  .timeline::before { left: 24px; }
  .timeline li::before { left: -25px; }
  .sheet { left: auto; right: 24px; bottom: 24px; width: 360px; max-height: calc(100dvh - var(--top-h) - 48px); }
  .toast { bottom: 26px; }
}

/* Máy tính */
@media (min-width: 1200px) {
  .topbar { padding-left: 26px; padding-right: 26px; }
  .shell { grid-template-columns: 240px minmax(0, 640px) 320px; gap: 28px; padding: 20px 20px 0; }
  .nav { top: calc(var(--top-h) + 20px); }
  .nav a { flex-direction: row; justify-content: flex-start; gap: 13px; min-height: 50px; padding: 0 14px; font-size: 15px; font-weight: 600; text-align: left; }
  .nav .lbl-long { display: inline; }
  .nav .lbl-short { display: none; }
  .context { display: grid; gap: 14px; align-content: start; position: sticky; top: calc(var(--top-h) + 20px); max-height: calc(100dvh - var(--top-h) - 40px); overflow-y: auto; overscroll-behavior: contain; }
  .side { padding: 15px 16px; background: var(--surface); border-radius: 12px; display: grid; gap: 8px; }
  .side h2 { margin-bottom: 2px; }
  .side-time { position: relative; display: grid; gap: 10px; padding-left: 16px; border-left: 2px solid var(--line); }
  .side-time a { display: flex; flex-direction: column; line-height: 1.3; font-weight: 600; font-size: 15px; }
  .side-time small { color: var(--muted); font-weight: 600; font-size: 13px; }
  .side-more { color: var(--jade); font-weight: 700; font-size: 13px; min-height: 32px; display: inline-flex; align-items: center; }
  .related { display: none; }
  body[data-view="ban-do"] .shell { grid-template-columns: 240px minmax(0, 960px); }
  body[data-view="ban-do"] .context { display: none; }
  body[data-view="ban-do"] main { display: grid; grid-template-columns: minmax(0, 1fr) 340px; column-gap: 14px; align-items: start; }
  body[data-view="ban-do"] .page-head { grid-column: 1 / -1; }
  body[data-view="ban-do"] .map-wrap { border-radius: 0 0 0 12px; }
  body[data-view="ban-do"] .place-list { margin-top: 0; max-height: calc(100dvh - 170px); overflow-y: auto; overscroll-behavior: contain; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .act:active, .chip:active, .btn:active, .icon-btn:active, .seg a:active, .nav a:active { transform: none; }
}
