/* Shared controls also work on the independently styled, printable documents. */
html { scroll-behavior: smooth; }
.back-to-top { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 50; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 16px; border: 1px solid #fff; border-radius: 999px; background: #2e5339; color: #fff; font: 600 14px/1.4 system-ui, sans-serif; text-decoration: none; box-shadow: 0 3px 16px #0003; }
.back-to-top:hover { background: #1c3320; color: #fff; }
.back-to-top:focus-visible, .document-nav a:focus-visible { outline: 3px solid #b67326; outline-offset: 4px; }
.document-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; padding: 16px 24px; background: #f6f1eb; border-bottom: 1px solid #2e533933; font: 500 15px/1.5 system-ui,sans-serif; }
.document-nav a { display: inline-flex; align-items: center; min-height: 44px; color: #2e5339; text-underline-offset: 4px; }
body { padding-bottom: 80px; }
#page-top:focus { outline: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .back-to-top, .document-nav { display: none !important; } body { padding-bottom: 0; } }
