/* Shared, scoped quality fixes. Geography and handbook content are unchanged. */
body[data-handbook-theme] :is(button,a,input,select,textarea,summary,[tabindex]):focus-visible {
  outline: 2px solid var(--hb-action, #176657) !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 5px #fffdf8 !important;
}
body[data-handbook-theme][data-handbook-theme][data-handbook-theme] :is(.section-no,.eyebrow) { color: var(--hb-on-light, #123c35) !important; }
body[data-handbook-theme][data-handbook-theme][data-handbook-theme] :is(.jungle-cover,.contents-section,.sights-section,.penida-section,.jungle-section,.desktop-chapter-rail,.route-section,.tips-section) :is(.section-no,.eyebrow) { color: var(--hb-on-dark, #fff9ee) !important; }
body[data-handbook-theme][data-handbook-theme] .fineprint { color: var(--hb-on-light-muted, #526c64) !important; }
body[data-handbook-theme] :is(summary,.contents-grid a,.route-glass-button) { transition: background-color 160ms ease, color 160ms ease !important; }
body[data-handbook-theme] .desktop-chapter-rail nav a::before {
  height: 28px !important; transform: scaleY(0); transform-origin: center;
  transition: transform 180ms cubic-bezier(.23,1,.32,1) !important;
}
body[data-handbook-theme] .desktop-chapter-rail nav a.is-active::before { transform: scaleY(1); }
.custom-order-controls { display:flex; gap:8px; justify-content:flex-end; grid-column:1/-1; padding:6px 0; }
.custom-order-controls button { min-width:64px; min-height:44px; padding:8px 12px; border:1px solid #526c64; border-radius:8px; background:#fffdf8; color:#123c35; font:600 14px/1.3 sans-serif; cursor:pointer; }
.custom-order-controls button:disabled { opacity:.5; cursor:default; }
.custom-order-controls button:active { background:#e0ebe5; }
.custom-inline-form label { display:grid; gap:6px; min-width:0; font-size:14px; color:#123c35; }
.custom-inline-form input,.custom-inline-form select { width:100%; box-sizing:border-box; }
.custom-freeform > label { display:block; margin-bottom:8px; color:#123c35; font-size:14px; }
body .custom-gap { height:52px !important; }
body .custom-gap > button,body .custom-row-main > .custom-delete,body .custom-row-main > .custom-drag { width:44px !important; height:44px !important; min-width:44px !important; min-height:44px !important; }
body .custom-row-main { grid-template-columns:44px 64px minmax(0,1fr) 44px !important; }
@media(max-width:720px) {
  body .custom-row-main { grid-template-columns:44px 52px minmax(0,1fr) 44px !important; gap:6px !important; }
  body .custom-inline-form { grid-template-columns:1fr !important; }
}
@media (prefers-reduced-motion:reduce) {
  body[data-handbook-theme] *,body[data-handbook-theme] *::before,body[data-handbook-theme] *::after { animation:none !important; transition:none !important; scroll-behavior:auto !important; }
}
html[data-input-mode="keyboard"] *,html[data-input-mode="keyboard"] *::before,html[data-input-mode="keyboard"] *::after { transition:none !important; animation:none !important; scroll-behavior:auto !important; }
@media(forced-colors:active) {
  body[data-handbook-theme] :focus-visible { outline:2px solid Highlight !important; box-shadow:none !important; }
}
