/* v85: mobile-only refinements. Desktop layout and palette are unchanged. */
@media(max-width:767px){
 html{scroll-padding-top:104px}body{min-width:0}main,section,article,form,fieldset,header,footer{min-width:0}main>*,section>*,article>*,.row>*{min-width:0}
 main{max-width:100%}img,video,canvas{max-width:100%;height:auto}svg{max-width:100%}iframe{max-width:100%}
 a:not(.sr-only):not(.ht-sr-only),button,summary,[role=button],input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea{min-height:44px!important;min-width:44px!important;max-width:100%;box-sizing:border-box;touch-action:manipulation}
 a:not(.sr-only):not(.ht-sr-only){display:inline-flex;align-items:center}a>svg,a>img,button>svg{flex-shrink:0}summary{align-content:center}
 button,summary{white-space:normal}input,select,textarea{font-size:16px!important}textarea{width:100%}label:has(input[type=checkbox]),label:has(input[type=radio]){display:inline-flex;align-items:center;gap:10px;min-height:44px}
 .pr85-text-floor{font-size:14px!important;line-height:1.5!important}.pr85-table{max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch;margin-block:16px;border-radius:12px;scrollbar-color:#e9cf94 #0e1836}.pr85-table table{margin:0}.pr85-scroll-table{display:block;max-width:100%;min-width:0!important;overflow-x:auto;overscroll-behavior-inline:contain}.pr85-table:focus-visible{outline:2px solid #e9cf94;outline-offset:3px}
 .ipa-box,.spotlight-ipa,.ht-example,pre{max-width:100%;overflow-x:auto;word-break:normal!important;overflow-wrap:normal!important}.pr85-ipa-token{white-space:nowrap}.pr85-ipa-long{font-size:clamp(28px,8vw,38px)!important;line-height:1.35!important}.lesson-ipa,.ipa,.ht-ipa{word-break:normal!important;overflow-wrap:normal!important}
 .bar-inner{gap:12px;flex-wrap:wrap;padding:10px 16px}.bar-meta{line-height:1.5}.site-header>div{gap:12px;padding-inline:16px;min-height:76px;height:auto;padding-block:10px}.site-header a[aria-label]{min-width:44px}.site-header button[aria-label*="theme"]{min-height:44px}
 [role=dialog],[data-slot=sheet-content]{max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - 24px);overflow-y:auto!important;overscroll-behavior:contain}
 [role=menu],.pr-jl-menu,[data-pr-account-disclosure]>nav{max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - 100px);overflow-y:auto!important;overscroll-behavior:contain;box-sizing:border-box}
 [data-pr-account-disclosure]>nav{width:min(310px,calc(100vw - 32px));right:0;left:auto;padding:12px!important}
 [data-pr-account-disclosure] nav>a{display:flex!important;width:100%}[data-pr-account-disclosure] nav a,[data-pr-account-disclosure] nav summary,.pr-jl-menu a,[role=menuitem]{min-height:44px!important;padding-block:10px!important;line-height:1.5}
 [data-pr-tools-disclosure] .tool-menu-links{min-width:0} [data-pr-account-disclosure]>summary{padding:10px 12px}
 footer{padding-inline:20px!important}footer a{padding-block:8px}footer .flex{flex-wrap:wrap;gap:12px}
 #tools .ht-controls{flex-wrap:wrap;gap:4px}#tools .ht-dots{width:100%;justify-content:space-between;gap:0}#tools .ht-dot{width:44px;height:44px}#tools .ht-count{width:100%;text-align:right}
 .sound-play{width:44px!important;height:44px!important;flex-shrink:0}.sound-detail{padding-block:10px}.sound-open,.btn,.btn-primary,.btn-ghost{justify-content:center}
 :focus-visible{outline:2px solid #e9cf94!important;outline-offset:3px!important}
}
@media(prefers-reduced-motion:reduce){.pr85-table{scroll-behavior:auto}}

/* v85 follow-up: native, full-width lesson tables at every breakpoint. */
body main .pr85-table-fill,body main .pr-semantic-table{display:block;border-radius:12px;box-sizing:border-box;width:100%;max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-inline:contain}
body main table{display:table!important;box-sizing:border-box;width:100%!important;min-width:100%!important;max-width:none!important;table-layout:auto!important;overflow:hidden!important;border-collapse:separate;border-spacing:0}
body main table>thead{display:table-header-group;background:#e9cf94}
body main table>tbody{display:table-row-group}
body main table tr{display:table-row}
body main table th,body main table td{display:table-cell}
body main table thead th{background:#e9cf94}
body main table:not(:has(thead)) tbody tr:first-child{background:#e9cf94}
/* A single sticky layer directly below the measured site header. */
.lesson-tabbar{position:sticky!important;top:var(--pr85-header-height,8px)!important;z-index:70!important;margin-top:0!important;padding:4px 0!important;background:rgba(14,24,54,.97)!important;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.lesson-tabbar nav{display:flex!important;flex-wrap:nowrap!important;width:max-content!important;max-width:100%!important;min-width:0;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;scrollbar-width:none;overscroll-behavior-inline:contain;gap:4px!important;box-sizing:border-box}
.lesson-tabbar nav::-webkit-scrollbar{display:none}
.lesson-tabbar nav button{flex:0 0 auto;white-space:nowrap!important;scroll-snap-align:start;line-height:1.25;min-height:40px}
html.pr85-with-lesson-tabs{scroll-padding-top:var(--pr85-header-height,0px)}
html.pr85-with-lesson-tabs main [id]{scroll-margin-top:calc(var(--pr85-tabs-height,52px) + 12px)}
@media(max-width:767px){.lesson-tabbar nav{padding:3px!important}.lesson-tabbar nav button{min-height:44px!important;padding:8px 12px!important;font-size:14px!important}.lesson-tabbar{border-bottom:1px solid #e9cf9433}}
@media(prefers-reduced-motion:reduce){.lesson-tabbar nav{scroll-behavior:auto}}

/* Keep lesson copy from showing through the sticky mobile site header. */
@media(max-width:767px){html.pr85-with-lesson-tabs .site-header{background:#0e1836!important}}
