/* Shared touch and drawer foundations. */
.pt-drawer-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 0 16px;margin-bottom:12px;border-bottom:1px solid var(--pt-border,#dce6ec);color:var(--pt-text-strong,#17394c)}
html body .pt-drawer-heading .pt-drawer-close{position:static!important;display:grid!important;place-items:center;flex:0 0 44px;width:44px!important;height:44px!important;margin:0!important;padding:0!important;border:1px solid var(--pt-border,#dce6ec);border-radius:12px;background:var(--pt-surface-soft,#edf4f8);color:var(--pt-text-strong,#17394c);font:28px/1 sans-serif;box-shadow:none}
.pt-student-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:24px}
html body .pt-student-shortcuts a{display:flex;align-items:center;gap:10px;min-width:0;min-height:68px;padding:14px;border:1px solid var(--pt-border,#dce6ec);border-radius:14px;background:var(--pt-surface-raised,#fff);color:var(--pt-text-strong,#17394c);font-weight:750;text-decoration:none}
.pt-student-shortcuts a>i{font-size:21px;color:var(--pt-accent-deep,#bd6d26)}.pt-student-shortcuts a>span:last-child{margin-inline-start:auto;color:var(--pt-accent-deep,#bd6d26)}
html body .pt-student-shortcuts a:focus-visible,html body .pt-drawer-close:focus-visible{outline:3px solid var(--pt-accent,#f4ac64);outline-offset:2px}
@media(max-width:1200px){
 html body .mobile-dropdown-menu{box-sizing:border-box;inset:0 0 0 auto!important;width:min(340px,calc(100vw - 32px))!important;max-width:100%!important;height:100dvh!important;max-height:100dvh!important;padding:20px 16px max(24px,env(safe-area-inset-bottom))!important;background:var(--pt-surface,#fff)!important;border-inline-start:1px solid var(--pt-border,#dce6ec);color:var(--pt-text,#294b60);overscroll-behavior:contain;overflow-y:auto!important;z-index:100100!important;visibility:hidden;transition:transform .22s ease,visibility .22s}
 html body .mobile-dropdown-menu.active{visibility:visible;transform:translateX(0)!important}
 html body .sc-offcanvas-backdrop{z-index:100090!important}
 html body .mobile-dropdown-menu .top_accoun_nav_item{width:100%;margin:0!important;padding:0!important}
 html body .mobile-dropdown-menu .top_accoun_nav_item a{display:flex!important;align-items:center;min-height:48px;line-height:1.7;padding:11px 13px!important;margin:3px 0!important;border-radius:11px;font-size:14px;white-space:normal;overflow-wrap:anywhere;text-decoration:none}
 html body .mobile-dropdown-menu .physictomy-mobile-nav-heading{margin:18px 0 7px!important;padding:0 12px;font-size:12px;font-weight:750;color:var(--pt-muted,#647c8b)}
 body.sc-offcanvas-open{overflow:hidden!important}
 .pt-student-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:1024px){
 html body .off-canvas-navigation{box-sizing:border-box;position:fixed!important;inset:0 0 0 auto!important;width:min(340px,calc(100vw - 32px))!important;max-width:100vw;height:100dvh!important;max-height:100dvh;padding:20px 16px max(24px,env(safe-area-inset-bottom))!important;overflow-x:hidden;overflow-y:auto!important;overscroll-behavior:contain;background:var(--pt-surface,#fff)!important;color:var(--pt-text,#294b60);border-inline-start:1px solid var(--pt-border,#dce6ec);z-index:100100!important;transform:translateX(105%)!important;visibility:hidden;transition:transform .22s ease,visibility .22s;box-shadow:-10px 0 35px #0003}
 html body.off-canvas-open .off-canvas-navigation{transform:translateX(0)!important;visibility:visible}
 html body .off-canvas-overlay{position:fixed;inset:0!important;width:100vw!important;height:100dvh!important;z-index:100090!important;background:#04111cb3!important;backdrop-filter:blur(3px)}
 body.off-canvas-open{overflow:hidden!important}
 /* A flat navigation hierarchy: one edge for labels, one edge for controls. */
 html body #pt-site-drawer{direction:rtl;text-align:right;padding:20px!important;scrollbar-width:thin;scrollbar-color:var(--pt-border) transparent}
 html body #pt-site-drawer .pt-drawer-heading{padding:0;margin:0 0 16px;border:0}
 html body #pt-site-drawer .pt-drawer-heading strong{font-size:19px;line-height:44px;font-weight:850}
 html body #pt-site-drawer .pt-drawer-close{background:transparent!important;color:var(--pt-text-strong)!important;border:1px solid var(--pt-border)!important;border-radius:50%;font-size:26px}
 html body #pt-site-drawer .search-form-wrapper{margin:0 0 14px;padding:0;border:0}
 html body #pt-site-drawer .pt-drawer-search{display:grid;grid-template-columns:minmax(0,1fr) 44px;align-items:center;gap:0;min-height:50px;padding:2px 4px 2px 10px;margin:0;border:1px solid var(--pt-border);border-radius:12px;background:var(--pt-surface-soft);overflow:hidden;box-sizing:border-box}
 html body #pt-site-drawer .pt-drawer-search input{position:static;width:100%;min-width:0;height:44px;margin:0;padding:8px 10px;border:0!important;border-radius:0;background:transparent!important;color:var(--pt-text-strong);font:inherit;font-size:16px!important;line-height:1.7;box-shadow:none!important;outline-offset:-3px}
 html body #pt-site-drawer .pt-drawer-search input::placeholder{color:var(--pt-muted);opacity:1}
 html body #pt-site-drawer .pt-drawer-search button{position:static;display:grid;place-items:center;width:44px;height:44px;padding:0;margin:0;border:0;border-radius:8px;background:transparent!important;color:var(--pt-text-strong)!important;box-shadow:none;transform:none}
 html body #pt-site-drawer .off-canvas-cart{padding:0 0 14px;margin:0 0 8px;border:0;border-bottom:1px solid var(--pt-border)}
 html body #pt-site-drawer .cart-icon-link{display:flex;align-items:center;gap:12px;min-height:48px;padding:0 10px;color:var(--pt-text-strong)!important;font-size:14px;line-height:1.8}
 html body #pt-site-drawer .cart-icon-link .bag-icon{position:static;display:grid;place-items:center;width:22px;height:24px;margin:0;flex:0 0 22px}
 html body #pt-site-drawer .cart-icon-link .bag-icon svg{width:22px;height:24px}
 html body #pt-site-drawer .cart-icon-link .cart-text{margin:0;flex:1}
 html body #pt-site-drawer .cart-icon-link .studiare-cart-number{position:static!important;display:grid;place-items:center;min-width:24px;height:24px;padding:0 5px;margin:0;border-radius:8px;background:var(--pt-surface-soft);color:var(--pt-muted);font-size:12px;line-height:24px}
 html body #pt-site-drawer .off-canvas-main{padding:0;margin:0}
 html body #pt-site-drawer .mobile-menu,html body #pt-site-drawer .mobile-menu ul{list-style:none;margin:0!important;padding:0!important;background:transparent!important;border:0!important;border-radius:0;box-shadow:none}
 html body #pt-site-drawer .mobile-menu li{position:relative;margin:0;padding:0;border:0!important;background:transparent!important;box-shadow:none;border-radius:0}
 html body #pt-site-drawer .mobile-menu>li+li{border-top:1px solid var(--pt-border)!important}
 html body #pt-site-drawer .mobile-menu li>a{display:flex;align-items:center;box-sizing:border-box;min-height:52px;margin:0;padding:12px 10px!important;color:var(--pt-text-strong)!important;font-size:15px!important;font-weight:650;line-height:1.85;text-align:right;white-space:normal;overflow-wrap:anywhere;background:transparent!important;border:0!important;border-radius:10px;text-decoration:none}
 html body #pt-site-drawer .mobile-menu li.menu-item-has-children>a{padding-inline-end:54px!important}
 html body #pt-site-drawer .subtri{position:absolute;inset:4px auto auto 0;display:grid;place-items:center;width:44px!important;height:44px!important;min-width:44px;margin:0!important;padding:0!important;line-height:1;background:transparent!important;color:var(--pt-muted)!important;border:0!important;border-radius:10px;cursor:pointer;transform:none}
 html body #pt-site-drawer .subtri i{font-size:12px;line-height:1;transition:transform .18s ease}
 html body #pt-site-drawer li.sub_active>.subtri i{transform:rotate(180deg)}
 html body #pt-site-drawer .mobile-menu>li>ul{padding:0 0 12px!important}
 html body #pt-site-drawer .mobile-menu>li>ul>li>a{padding-inline-start:20px!important;font-size:14px!important;font-weight:750;color:var(--pt-muted)!important}
 html body #pt-site-drawer .mobile-menu ul ul{padding:0 12px 8px 0!important}
 html body #pt-site-drawer .mobile-menu ul ul li>a{min-height:44px;padding:9px 20px!important;font-size:14px!important;font-weight:500}
 html body #pt-site-drawer .mobile-menu ul ul li>a:before{content:'';width:4px;height:4px;flex:0 0 4px;margin-inline-end:10px;border-radius:50%;background:var(--pt-muted);opacity:.6}
 html body #pt-site-drawer :is(.subtri,a,button):hover{color:var(--pt-accent-deep)!important}
 html body #pt-site-drawer :is(.subtri,a,button,input):focus-visible{outline:2px solid var(--pt-accent)!important;outline-offset:-2px}

}
@media(max-width:767px){
 html[data-physictomy-theme] body.logged-in.woocommerce-account .main-page-content{padding:8px 12px 28px!important}
 html[data-physictomy-theme] body.logged-in.woocommerce-account .physictomy-account-dashboard{padding:18px 14px!important;border-radius:18px;box-shadow:none}
 html[data-physictomy-theme] body.logged-in.woocommerce-account .physictomy-dashboard-intro{margin-bottom:18px;padding-bottom:18px;gap:14px}
 html[data-physictomy-theme] body.logged-in.woocommerce-account .physictomy-dashboard-intro .account-dashboard-title{font-size:20px!important;line-height:1.7}
 html[data-physictomy-theme] body.logged-in.woocommerce-account .physictomy-dashboard-intro p{font-size:13px;line-height:1.9}
 html[data-physictomy-theme] body.logged-in.woocommerce-account .row.my_acount_topbar{margin:0!important;padding:10px 12px!important;border-radius:0!important;box-shadow:none!important;border-bottom:1px solid var(--pt-border);gap:8px}
 html[data-physictomy-theme] body.logged-in.woocommerce-account .studi_top_accoun_nav{display:grid!important;grid-template-columns:1fr 1fr auto;align-items:center;gap:6px;margin:0 0 14px;padding:8px 0}
 html[data-physictomy-theme] body.logged-in.woocommerce-account .studi_top_accoun_nav .top_accoun_nav_item{min-width:0;width:auto!important}
 html[data-physictomy-theme] body.logged-in.woocommerce-account .studi_top_accoun_nav .top_accoun_nav_item a{display:flex;align-items:center;justify-content:center;min-height:44px;margin:0;padding:8px 4px!important;font-size:12px;white-space:normal;gap:5px}
 html[data-physictomy-theme] body.logged-in.woocommerce-account .scam-hamburger-btn{min-height:44px;padding:8px 10px!important;font-size:12px!important;white-space:nowrap;border-radius:10px!important}
 .pt-student-shortcuts{gap:9px;margin-bottom:20px}.pt-student-shortcuts a{min-height:62px!important;padding:12px 10px!important;font-size:13px;gap:8px!important}.pt-student-shortcuts a>i{font-size:18px}
 html[data-physictomy-theme] .physictomy-dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 html[data-physictomy-theme] .physictomy-dashboard-grid>.grid-stack-item>.grid-stack-item-content{min-height:96px;padding:13px!important}
 .physictomy-dashboard-grid>.grid-stack-item:not(.physictomy-dashboard-overview):not(.physictomy-dashboard-purchases) a{flex-direction:column!important;align-items:flex-start!important;gap:8px!important;min-height:0}
 .physictomy-dashboard-grid .sc-dahsboard-value .wc-amount{font-size:16px}.physictomy-dashboard-grid .sc-dahsboard-icon{width:34px!important;height:34px!important;padding:0!important}.physictomy-dashboard-grid .sc-dahsboard-icon i{font-size:22px!important}
 body.woocommerce-account :where(.woocommerce-MyAccount-content,.pt-student-quizzes,.studiare-quiz,.sth-page,.stq-page){min-width:0;overflow-wrap:anywhere}
 body.woocommerce-account input[type=file]{width:100%!important;max-width:100%;min-width:0;font-size:12px;box-sizing:border-box}
 body.woocommerce-account :where(input:not([type=radio]):not([type=checkbox]):not([type=file]),select,textarea){max-width:100%;font-size:16px!important;box-sizing:border-box}
 body.woocommerce-account :where(.sth-page,.stq-page,.stl-page) :where(button,.button){min-height:44px}
 body.woocommerce-account .pt-student-quizzes>.button{max-width:100%}
 html body .studiare-quiz :is(.quiz-result,.quiz-result-entry,.quiz-attempt){padding:14px}
 html body .studiare-quiz :is(.quiz-stats-table,.quiz-results-table){width:100%;min-width:0;font-size:12px}
 html body .studiare-quiz :is(.quiz-stats-table,.quiz-results-table) :is(th,td){padding:8px 5px!important;white-space:normal;word-break:normal;overflow-wrap:anywhere}
 .pt-quiz-booklet a.button{display:flex;align-items:center;justify-content:center;width:100%;min-height:46px}
}
@media(prefers-reduced-motion:reduce){html body :is(.off-canvas-navigation,.mobile-dropdown-menu,.off-canvas-overlay,.sc-offcanvas-backdrop){transition:none!important}}

/* Compact RTL account navigation replaces the duplicated breadcrumb on phones. */
@media(max-width:767px){
 html[data-physictomy-theme] body.logged-in.woocommerce-account .studi_top_accoun_nav{direction:rtl;text-align:right;grid-template-columns:1fr 1fr auto;padding:5px!important;margin:12px 0 16px!important;border:1px solid var(--pt-border);border-radius:14px;background:var(--pt-surface-raised);gap:4px}
 html[data-physictomy-theme] body.logged-in.woocommerce-account .studi_top_accoun_nav .top_accoun_nav_item a{color:var(--pt-muted)!important;border-radius:10px!important;text-decoration:none;font-weight:650;min-height:44px;font-size:12px!important}
 html[data-physictomy-theme] body.logged-in.woocommerce-account .studi_top_accoun_nav .top_accoun_nav_item.is-active a{color:var(--pt-accent-deep)!important;background:var(--pt-surface-soft)!important;box-shadow:inset 0 -2px 0 var(--pt-accent);font-weight:850}
 html[data-physictomy-theme] body.logged-in.woocommerce-account .studi_top_accoun_nav .scam-hamburger-btn{background:var(--pt-accent)!important;color:var(--pt-on-accent)!important;box-shadow:none!important;gap:4px;direction:rtl}
 html[data-physictomy-theme] body.logged-in.woocommerce-account .studi_top_accoun_nav .scam-hamburger-btn i{margin:0!important;font-size:14px}
 html[data-physictomy-theme] body.logged-in.woocommerce-account .sc_dashboard_breadcrumb{display:none!important}
}
/* Give each learning destination its own recognisable icon. */
.mobile-dropdown-menu .woocommerce-MyAccount-navigation-link--student-quizzes a:before{content:'\f46d'!important}
.mobile-dropdown-menu .woocommerce-MyAccount-navigation-link--homework a:before{content:'\f31c'!important}
.mobile-dropdown-menu .woocommerce-MyAccount-navigation-link--questions a:before{content:'\f086'!important}
.mobile-dropdown-menu .woocommerce-MyAccount-navigation-link--live-classes a:before{content:'\f03d'!important}
@media(max-width:767px){
 html body .pt-student-shortcuts a{position:relative;flex-direction:column;align-items:flex-start!important;justify-content:center;min-height:84px!important;gap:9px!important}
 .pt-student-shortcuts a>span:not(:last-child){line-height:1.7;white-space:normal}
 .pt-student-shortcuts a>span:last-child{position:absolute;top:12px;left:12px;margin:0}
}
@media(max-width:767px){
 html[data-physictomy-theme] body.woocommerce-account .woocommerce-MyAccount-content :is(h1,h2,h3,h4){height:auto;max-height:none;line-height:1.85!important;white-space:normal;overflow-wrap:anywhere}
 html[data-physictomy-theme] body.woocommerce-account .woocommerce-MyAccount-content :is(p,li,label){line-height:1.95}
}
@media(max-width:600px){
 html[data-physictomy-theme] body.woocommerce-account .studiare-course-list{grid-template-columns:minmax(0,1fr)!important;gap:16px}
 html[data-physictomy-theme] body.woocommerce-account .studiare-course-card{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:12px!important;min-width:0;width:100%;padding:12px!important;box-sizing:border-box}
 html[data-physictomy-theme] body.woocommerce-account .studiare-course-card .course-thumb{width:100%!important;min-width:0!important;max-width:100%;height:auto!important;flex:auto!important}
 html[data-physictomy-theme] body.woocommerce-account .studiare-course-card .course-thumb img{display:block;width:100%!important;height:auto!important;max-height:230px;object-fit:cover;aspect-ratio:16/9;border-radius:10px}
 html[data-physictomy-theme] body.woocommerce-account .studiare-course-card .course-info{width:100%;min-width:0;padding:0!important}
 html[data-physictomy-theme] body.woocommerce-account .studiare-course-card .course-title{font-size:16px!important;line-height:1.9!important;margin:0 0 8px;white-space:normal}
 html[data-physictomy-theme] body.woocommerce-account .studiare-course-card .course-read-more{width:100%;min-width:0;margin:0!important;padding:0!important}
 html[data-physictomy-theme] body.woocommerce-account .studiare-course-card .course-read-more .btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-width:0;min-height:46px;padding:10px!important;box-sizing:border-box;white-space:normal;line-height:1.8!important}
}

/* Mobile learning pages: consistent edges, headings, cards and form controls. */
@media(max-width:767px){
 html[data-physictomy-theme] body.logged-in.woocommerce-account .physictomy-account-dashboard{padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
 html[data-physictomy-theme] body.logged-in.woocommerce-account .physictomy-dashboard-intro{padding:18px!important;border:1px solid var(--pt-border);border-radius:16px;background:var(--pt-surface);margin-bottom:18px!important;gap:14px}
 html[data-physictomy-theme] body.logged-in.woocommerce-account .physictomy-dashboard-intro .account-dashboard-title{font-size:19px!important;line-height:1.9!important;margin:8px 0!important}
 html body .physictomy-dashboard-browse{min-height:46px;display:flex;align-items:center;justify-content:center;gap:10px;line-height:1.8}
 html body .pt-student-shortcuts{gap:10px}
 html body .pt-student-shortcuts a{min-height:92px!important;padding:14px!important;border-radius:14px;font-size:14px!important;color:var(--pt-text-strong)!important;box-shadow:none!important}
 html body .pt-student-shortcuts a>i{font-size:22px}
 html body .physictomy-dashboard-grid .sc-dahsboard-value{line-height:1.85}
 html body .sth-page{padding:0!important;direction:rtl;text-align:right}
 html body .sth-page :is(.sth-heading,.sth-hero){gap:12px;margin-bottom:18px}
 html body .sth-page :is(h2,h3){line-height:1.9!important;height:auto;margin:0 0 10px!important;color:var(--pt-text-strong)!important}
 html body .sth-page h2{font-size:21px!important}html body .sth-page h3{font-size:17px!important}
 html body .sth-page :is(.sth-panel,.sth-hero,.sth-file-box){padding:18px 16px!important;border-radius:14px;box-shadow:none!important}
 html body .sth-page :is(p,.sth-description){font-size:14px;line-height:2!important;color:var(--pt-text)}
 html body .sth-page :is(.sth-eyebrow,.sth-file-box span,.sth-submitted-file span,small){font-size:12px;line-height:1.9;color:var(--pt-muted)}
 html body .sth-page :is(.sth-back,.sth-submitted-file a){display:inline-flex;align-items:center;min-height:44px;line-height:1.8}
 html body .sth-summary-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px}
 html body .sth-summary-head h3{margin:0!important}
 html body .sth-form{gap:12px}
 html body .sth-form label{margin:0;font-size:14px;line-height:1.9}
 html body .sth-form textarea{padding:12px;min-height:120px}
 html body .sth-form input[type=file]{padding:12px!important;line-height:2;white-space:normal}
 html body .sth-form input[type=file]::file-selector-button{font:inherit;padding:8px 12px;margin:0 0 4px 10px;border:1px solid var(--pt-border);border-radius:8px;background:var(--pt-surface-soft);color:var(--pt-text-strong)}
 html body .sth-form>.button,html body .sth-file-box .button{display:flex;align-items:center;justify-content:center;width:100%;min-height:48px!important;margin:0!important;line-height:1.8!important;font-size:14px;box-sizing:border-box}
 html body .sth-assignment-card{padding:16px;gap:12px}
 html body .sth-card-body h3{font-size:16px!important;margin:6px 0!important}
 html body .sth-status{min-height:30px;line-height:1.6;white-space:normal;padding:5px 10px}
}

@media(max-width:767px){
 html[data-physictomy-theme] body.logged-in.woocommerce-account .woocommerce-MyAccount-content:has(.sth-page,.pt-student-quizzes){padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
 html body .sth-page{width:100%;min-width:0;box-sizing:border-box}
}

@media(max-width:767px){html body.woocommerce-account #back-to-top{display:none!important}}

/* A clear current location, one section picker and four direct learning destinations. */
.pt-account-mobile-nav{display:none}
@media(max-width:1200px){
 html[data-physictomy-theme] body.logged-in.woocommerce-account .studi_top_accoun_nav{display:none!important}
 html body .pt-account-mobile-nav{display:block;direction:rtl;text-align:right;margin:14px 0 20px;color:var(--pt-text-strong)}
 .pt-account-mobile-nav__heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;padding:0 2px}
 .pt-account-mobile-nav__heading>div{min-width:0;display:grid;gap:2px}
 .pt-account-mobile-nav__heading>div>span{font-size:11px;color:var(--pt-muted);line-height:1.8}
 .pt-account-mobile-nav__heading strong{font-size:16px;line-height:1.8;font-weight:750;overflow-wrap:anywhere}
 html[data-physictomy-theme] body .pt-account-mobile-nav .scam-hamburger-btn{display:flex!important;align-items:center;justify-content:center;gap:8px;flex:0 0 auto;min-height:44px;margin:0!important;padding:8px 12px!important;border:1px solid var(--pt-border)!important;border-radius:10px!important;background:var(--pt-surface-soft)!important;color:var(--pt-text-strong)!important;font:inherit;font-size:13px!important;line-height:1.8!important;box-shadow:none!important;white-space:nowrap}
 .pt-account-mobile-nav__tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;border-bottom:1px solid var(--pt-border);padding:0 0 5px}
 html body .pt-account-mobile-nav__tabs>a{display:flex;align-items:center;justify-content:center;min-width:0;min-height:46px;padding:8px 3px;box-sizing:border-box;color:var(--pt-muted)!important;background:transparent;text-decoration:none;font-size:13px;font-weight:600;line-height:1.8;border-radius:9px;position:relative}
 html body .pt-account-mobile-nav__tabs>a[aria-current=page]{color:var(--pt-text-strong)!important;background:var(--pt-surface-soft);font-weight:800}
 .pt-account-mobile-nav__tabs>a[aria-current=page]:after{content:'';position:absolute;height:3px;width:22px;bottom:0;left:calc(50% - 11px);border-radius:3px;background:var(--pt-accent)}
 .pt-account-mobile-nav :is(a,button):focus-visible{outline:2px solid var(--pt-accent);outline-offset:2px}
}
