/* Theme-aware usability updates; no additional UI framework. */
:root { scroll-padding-top: 8rem; }
:focus-visible { outline: 3px solid var(--jat-accent, #b98c45) !important; outline-offset: 3px; }
.jat-skip-link { position: fixed; left: 1rem; top: -6rem; z-index: 1090; background: var(--jat-panel, #fff); color: var(--jat-text, #181818); padding: .8rem 1rem; }
.jat-skip-link:focus { top: 1rem; }
#main-content { min-width: 0; }
.jat-section-heading { max-width: 42rem; margin-bottom: 2rem; }
.jat-section-heading h2, .jat-next-action h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); line-height: 1.2; text-wrap: balance; }
.jat-journey { padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; margin: 2rem 0; }
.jat-journey li { border-top: 1px solid var(--jat-border, #ded5c7); padding-top: 1.5rem; }
.jat-journey li > span { color: var(--jat-accent, #b98c45); font-variant-numeric: tabular-nums; }
.jat-journey h3 { font-size: 1.4rem; margin: 1rem 0; }
.jat-journey p, .jat-trust-note { max-width: 65ch; line-height: 1.7; }
.jat-featured-card { overflow: hidden; background: var(--jat-panel, #fff); border: 1px solid var(--jat-border, #ded5c7); border-radius: 1rem; }
.jat-featured-card img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.jat-featured-card > div { padding: 1.25rem; }
.jat-featured-card h3 { font-size: 1.4rem; }
.jat-next-action .jat-eyebrow { color: var(--jat-accent); }
.jat-filter-chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.jat-filter-chips a { padding: .45rem .75rem; border: 1px solid var(--jat-border, #ded5c7); border-radius: .5rem; background: var(--jat-panel, #fff); font-size: .875rem; overflow-wrap: anywhere; }
.jat-results-heading h2 { font-size: 1.8rem; }
.jat-search-panel > summary, .jat-advanced-filters > summary, .jat-account-menu > summary { cursor: pointer; font-weight: 600; padding: .75rem 0; }
.jat-search-panel > summary { display: flex; justify-content: space-between; }
.jat-reviewed { display: inline-block; color: var(--jat-text, #181818); background: var(--jat-raised, #f0e8db); border: 1px solid var(--jat-border, #ded5c7); border-radius: .4rem; padding: .35rem .6rem; font-size: .875rem; }
.jat-guest-connect { display: flex; gap: 1rem; align-items: center; margin-top: 1rem; flex-wrap: wrap; }
.jat-package-grid .box, .jat-package-grid .text-box { height: 100%; }
.jat-package-grid .text-box { display: flex; flex-direction: column; }
.jat-package-grid .text-box > ul { flex: 1; }
.jat-package-grid .planPurchaseButton { display: block; width: 100%; text-align: center; margin-top: auto; }
.jat-package-grid button:disabled { opacity: .75; cursor: default; }
.jat-password-toggle { font-size: .875rem; margin-top: .5rem; }
.jat-mobile-nav { display: none; }
.jat-account-menu > summary { display: none; }
.jat-search-panel .form-group { min-width: 0; }
@media (max-width: 991.98px) {
    body:has(.jat-mobile-nav) { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
    .jat-mobile-nav { position: fixed; inset: auto 0 0; z-index: 1035; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--jat-panel, #fff); border-top: 1px solid var(--jat-border, #ded5c7); padding: .65rem .25rem calc(.65rem + env(safe-area-inset-bottom)); }
    .jat-mobile-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; font-size: .7rem; line-height: 1.25; padding: .35rem .15rem; text-align: center; min-height: 44px; color: var(--jat-text, #181818); }
    .jat-mobile-nav a[aria-current] { color: var(--jat-accent, #b98c45); text-decoration: underline; text-underline-offset: .2rem; }
    .jat-mobile-nav i { font-size: 1.2rem; }
    .jat-account-menu > summary { display: block; }
    .jat-account-menu { padding: .5rem 1rem !important; }
    .jat-account-menu .profile { padding-top: 1rem; }
    .jat-search-panel > summary { min-height: 44px; }
    .jat-journey { grid-template-columns: 1fr; gap: 1.25rem; }
    .members-section .side-search-area { margin-bottom: 0; }
    .members-section .member-info { overflow-wrap: anywhere; }
    .members-section .button-group { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* Use browser scrolling for the long admin menu: no per-wheel geometry recalculation. */
#main-wrapper .left-sidebar { height: 100vh; height: 100dvh; box-sizing: border-box; }
#main-wrapper .left-sidebar .scroll-sidebar { height: 100%; overflow-y: auto !important; overflow-x: hidden !important; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; scroll-behavior: auto !important; scrollbar-width: thin; scrollbar-color: var(--jat-border) transparent; }
#main-wrapper .left-sidebar .scroll-sidebar::-webkit-scrollbar { width: 8px; }
#main-wrapper .left-sidebar .scroll-sidebar::-webkit-scrollbar-thumb { background: var(--jat-border); border-radius: 4px; }
