/* Reflow the approved desktop components without scaling the page or changing its visual theme. */
html{scrollbar-gutter:stable}
body,#app{width:100%;min-width:0}
img{max-width:100%}
.bottom-nav,.home-mobile-search{display:none!important}
.header-preference-toggle{display:none}
@media(max-width:1100px){
  .site-header{height:auto}
  .header-inner{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 16px;padding:13px 22px;min-height:114px}
  .header-inner>.logo{grid-column:1;grid-row:1;justify-self:start}
  .header-actions{grid-column:2;grid-row:1;order:initial;gap:9px}
  .desktop-nav{grid-column:1;grid-row:2;justify-content:flex-end;justify-self:start;gap:20px;min-height:42px;height:auto;font-size:13px}
  .desktop-nav a{display:flex;align-items:center;min-height:42px}
  .site-header .site-preferences{grid-column:2;grid-row:2;order:initial;justify-self:end}
  .site-header .header-search{grid-column:1/-1;grid-row:3;width:100%;max-width:none;min-width:0;height:44px}
  .route-home .site-header .header-search,.route-courses .site-header .header-search{display:none}
  .site-preferences select{min-height:40px;font-size:12px}
  .home-hero{padding:32px 3%;gap:20px}
  .hero-copy{min-width:0;max-width:59%}
  .hero-copy h1{font-size:39px}
  [dir=ltr] .home-hero h1{font-size:41px}
  .hero-copy>p{font-size:14px}
  .home-hero>.trust-tiles{width:29%;right:3%;gap:10px}
  .trust-tiles strong{font-size:14px}
  .home-page .overview-tiles>div>span{font-size:11px}
  .course-guide-inner{grid-template-columns:1fr 2.3fr;gap:22px}
  .guide-intro h2{font-size:25px}
  .guide-steps{gap:10px}
  .guide-step{padding:16px 13px}
  .guide-step h3{font-size:15px}
  .home-categories .category-cards{grid-template-columns:repeat(3,minmax(0,1fr));margin:22px 0 30px;gap:15px}
  .home-categories .section-heading{padding:0}
  .category-card img{height:140px}
  .category-card strong{font-size:16px}
  .footer-grid{grid-template-columns:1.6fr 1fr 1fr;gap:22px}
  .footer-grid .newsletter{grid-column:1/-1}
  .auth-layout{grid-template-columns:minmax(0,1fr) minmax(350px,440px);gap:30px}
  .auth-story h1{font-size:36px}
  .foundation-admin{padding:26px 22px 50px}
  .foundation-top{gap:16px;flex-wrap:wrap}
  .setup-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:800px){
  .header-inner{padding-bottom:0;row-gap:10px}
  .site-header .site-preferences{display:none}
  .header-preference-toggle{display:inline-flex;width:38px;height:42px;color:#b8d4e9}
  .desktop-nav{grid-column:1/-1;justify-self:stretch;justify-content:center;gap:30px;min-height:44px;border-top:1px solid #ffffff0c}
  .desktop-nav a{min-height:44px}
  .page-width{width:calc(100% - 36px)}
  .home-hero{height:auto;min-height:0;display:block;padding:34px 24px 26px}
  .home-hero .hero-art{inset:0;background-image:linear-gradient(0deg,#000b18 0%,#000b18bd 36%,#000b1870 100%),url('assets/hero-desktop-hd.webp');background-size:cover,auto 110%;background-position:center,35% center}
  .home-hero .hero-copy{min-width:0;width:100%;max-width:560px;text-align:start;direction:rtl}
  .hero-copy>.eyebrow{display:none}
  .home-hero .hero-copy h1{font-size:36px;line-height:1.45;letter-spacing:-.3px}
  [dir=ltr] .home-hero .hero-copy{direction:ltr}
  [dir=ltr] .home-hero .hero-copy>p{direction:ltr;text-align:left}
  [dir=ltr] .home-hero .overview-tiles>div{direction:ltr}
  [dir=ltr] .home-hero h1{font-size:38px;line-height:1.25}
  .home-hero .hero-copy>p{font-size:15px;line-height:1.95;max-width:490px;margin-top:18px;font-weight:400;color:#b9ccdd}
  .hero-search-row{margin-top:26px;max-width:none;display:block}
  .hero-search-row .search-box{height:52px;width:100%;border-radius:9px;overflow:hidden}
  .hero-search-row .search-box input{font-size:16px;min-width:0;padding-inline:14px}
  .hero-search-row .search-box button{width:52px;min-height:50px;flex-shrink:0}
  .home-hero>.trust-tiles{position:relative;inset:auto;width:100%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:28px}
  .home-hero .trust-tiles>div{min-height:68px;padding:15px 12px;display:flex;flex-direction:row;gap:10px;justify-content:flex-start;background:#061b2bbf;border-color:#294358;box-shadow:none}
  .home-hero .trust-tiles svg{width:23px;height:23px;filter:none;color:#40c1f0}
  .home-hero .trust-tiles strong{font-size:13px;line-height:1.6;margin:0}
  .home-page .overview-tiles>div>span{display:none}
  .course-guide{padding:26px 22px}
  .course-guide-inner{display:block}
  .guide-intro{margin-bottom:18px}
  .guide-intro h2{font-size:26px}
  .guide-intro>p{font-size:14px}
  .guide-intro>a{font-size:13px;margin-top:9px;min-height:34px}
  .guide-step h3{font-size:16px}
  .guide-step>p{font-size:13px;line-height:1.8}
  .home-content{padding-top:28px}
  .home-categories .section-heading{gap:16px;align-items:center;direction:rtl;text-align:start}
  .home-categories .section-heading h2{font-size:25px}
  .home-categories h2 svg{width:25px;height:25px;padding:6px}
  .section-heading p{font-size:13px;line-height:1.8}
  .section-heading>.btn{font-size:12px;padding:9px 12px;min-height:42px}
  .home-page .featured{margin-top:30px}
  .home-page .featured .section-heading{gap:14px;align-items:flex-start}
  .home-page .featured .section-heading h2{font-size:24px}
  .home-page .featured .courses-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .empty-state{padding:36px 18px;min-height:210px;font-size:14px}
  .empty-state h3{font-size:20px}
  .platform-preview{margin:22px 18px;font-size:12px;padding:13px 15px;line-height:1.8}
  .catalog-hero{height:190px;padding:25px 24px;justify-content:flex-start}
  .catalog-hero>div:not(.catalog-art):not(.trust-tiles){min-width:0}
  .catalog-hero>.trust-tiles{display:none}
  .catalog-hero h1{font-size:32px}
  .catalog-hero p{font-size:14px;max-width:500px}
  .catalog-content{padding-top:20px}
  .catalog-search{display:block;margin-bottom:18px}
  .catalog-search .search-box{width:100%;max-width:none;height:48px}
  .catalog-search input{font-size:16px}
  .catalog-search .breadcrumb{margin-bottom:12px}
  .categories-bar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
  .category-choice{white-space:normal;min-width:0;font-size:12px;min-height:90px}
  .catalog-layout{grid-template-columns:1fr;gap:0}
  .filter-panel{display:none}
  .filter-toggle.mobile-only{display:inline-flex!important;min-height:44px;padding:9px 13px;font-size:13px}
  .filter-panel.open{display:block;position:fixed;inset:14px;z-index:100;background:#fff;border-radius:16px;overflow:auto;padding:20px;box-shadow:0 0 0 100vmax #00132699}
  .filter-panel.open [data-close-filter].mobile-only{display:inline-flex!important;min-height:44px}
  body.filter-open{overflow:hidden}
  .sort-toolbar{flex-wrap:wrap;gap:9px;padding:10px}
  .sort-options{gap:8px;flex-wrap:wrap}
  .sort-options button{font-size:12px;min-height:40px}
  .catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
  .catalog-grid.list-layout .course-card{flex-direction:column}
  .catalog-grid .course-title{font-size:17px;min-height:0}
  .published-course-card .card-bottom{flex-wrap:wrap;gap:10px}
  .published-course-card .price{font-size:20px}
  .favorites-page{padding-top:24px;padding-bottom:45px;min-height:55svh}
  .favorites-heading{align-items:flex-start;gap:14px}
  .favorites-heading h1{font-size:27px}
  .favorites-heading p{font-size:14px;line-height:1.8}
  .favorites-page .courses-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
  .library-page{padding:26px 18px 45px;min-height:55svh}
  .library-page>h1{font-size:27px}
  .library-course{flex-wrap:wrap}
  .platform-state{padding:25px 8px;margin:16px auto}
  .platform-state h2{font-size:24px}
  .platform-state p{font-size:15px}
  .site-footer{padding:26px 22px 0;font-size:13px}
  .footer-grid{grid-template-columns:1fr 1fr;gap:24px 20px}
  .footer-brand,.footer-grid .newsletter{grid-column:1/-1}
  .footer-grid>div{min-width:0}
  .footer-grid h4{font-size:16px}
  .footer-grid a{font-size:14px;min-height:32px;overflow-wrap:anywhere}
  .footer-grid p{font-size:14px;line-height:1.9}
  .footer-bottom{flex-wrap:wrap;gap:14px;padding-block:18px;font-size:12px}
  .footer-bottom .site-preferences{margin-inline-start:auto}
  .fx-caption{font-size:11px;padding:14px 16px;overflow-wrap:anywhere}
  .izy-auth-page{min-height:100svh;padding:22px 20px 26px;justify-content:flex-start}
  .auth-brand{margin-bottom:25px}
  .auth-brand>span:last-child{display:none}
  .auth-layout{display:flex;flex-direction:column;align-items:stretch;gap:24px;max-width:500px;margin:0 auto}
  .auth-story{padding:0;max-width:none;direction:rtl}
  .auth-ltr .auth-story{direction:ltr}
  .auth-story h1{font-size:28px;line-height:1.5;margin:9px 0 7px}
  .auth-story>p{font-size:14px;line-height:1.8}
  .auth-story-note{display:none}
  .auth-card{padding:24px;border-radius:18px}
  .auth-card h2{font-size:27px}
  .auth-intro{font-size:14px;line-height:1.8}
  .auth-card-top{margin-bottom:18px}
  .auth-google,.auth-submit{font-size:14px;min-height:48px}
  .izy-auth-form{gap:16px}
  .izy-auth-form label{font-size:14px;gap:8px}
  .izy-auth-form input{font-size:16px;height:49px}
  .auth-switch{font-size:13px;line-height:1.9}
  .auth-forgot{font-size:13px;min-height:32px}
  .auth-error{font-size:13px}
  .auth-legal{font-size:11px;line-height:1.8}
  .auth-home-link{font-size:13px;margin-top:24px;min-height:40px}
  .account-page{padding:24px 18px 45px}
  .account-page-heading{display:block}
  .account-page-heading h1{font-size:28px}
  .account-page-heading p{font-size:14px}
  .account-page-meta{margin-top:18px}
  .izy-profile-content{padding:22px 18px!important}
  .account-settings-links{flex-wrap:wrap;font-size:13px}
  .setup-grid{gap:12px}
  .setup-card{padding:18px 14px}
  .foundation-heading h1{font-size:27px}
  .foundation-heading p{font-size:14px}
  .foundation-panel{padding:20px 16px}
  .foundation-panel-head{flex-wrap:wrap;align-items:flex-start}
  .form-two{grid-template-columns:1fr}
  .course-draft-form input,.course-draft-form textarea,.course-draft-form select{font-size:16px}
  .foundation-course{align-items:flex-start}
  .foundation-course strong{font-size:13px}
  dialog{max-width:calc(100% - 28px);max-height:calc(100svh - 36px)}
  .modal-heading{padding:17px 18px}
  .modal-heading h2{font-size:20px}
  .modal-body{padding:20px 18px}
  #toast{max-width:calc(100% - 30px);font-size:14px;bottom:20px}
}
@media(max-width:600px){
  .header-inner{padding:12px 18px 0;gap:10px;min-height:110px}
  .site-header .logo{font-size:20px}
  .site-header .logo b{font-size:29px}
  .header-actions [data-modal=signup]{display:none}
  .header-actions{gap:6px}
  .site-header .header-actions .btn{font-size:12px;padding:8px 10px;min-height:42px}
  .header-actions .cart-link{width:32px;height:42px}
  .desktop-nav{gap:28px;font-size:13px;justify-content:center}
  .site-header .site-preferences{gap:5px}
  .site-header .site-preferences select{font-size:11px;max-width:66px;padding:7px 3px}
  .home-hero{padding:32px 20px 28px}
  .home-hero .hero-copy h1{font-size:32px;line-height:1.5;text-align:right}
  [dir=ltr] .home-hero h1{font-size:35px}
  .home-hero .hero-copy>p{font-size:14px;line-height:1.95}
  .home-hero>.trust-tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:28px}
  .home-hero .trust-tiles>div{min-height:65px;padding:15px 12px}
  .home-hero .trust-tiles strong{font-size:13px}
  .course-guide{padding:30px 20px}
  .guide-eyebrow{display:none}
  .guide-intro{margin-bottom:17px}
  .guide-intro h2{font-size:24px}
  .guide-steps{grid-template-columns:1fr;gap:10px}
  .guide-step{position:relative;display:grid;grid-template-columns:44px minmax(0,1fr);column-gap:13px;row-gap:3px;padding:16px 15px;direction:rtl;align-items:center;min-height:89px}
  [dir=ltr] .guide-step{direction:ltr}
  .guide-step-top{display:contents}
  .guide-icon{grid-column:1;grid-row:1/3;width:42px;height:42px}
  .guide-step-number{position:absolute;inset-inline-end:13px;top:12px;font-size:10px}
  .guide-step h3{grid-column:2;grid-row:1;font-size:17px;padding-inline-end:20px;line-height:1.6}
  .guide-step>p{grid-column:2;grid-row:2;margin:0;font-size:13px;line-height:1.8}
  .home-categories .section-heading{flex-wrap:wrap;gap:12px}
  .home-categories .section-heading h2{font-size:25px}
  .home-categories .section-heading>.btn{font-size:12px}
  .home-categories .category-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:18px}
  .home-categories .category-card{padding-bottom:12px;border-radius:11px}
  .category-card img{height:auto;aspect-ratio:1.4;object-fit:cover}
  .category-card strong{font-size:14px;line-height:1.6;padding:8px 8px 0;white-space:normal}
  .home-page .featured .section-heading{flex-wrap:wrap}
  .home-page .featured .courses-grid,.favorites-page .courses-grid,.catalog-grid{grid-template-columns:1fr}
  .categories-bar{grid-template-columns:repeat(3,minmax(0,1fr))}
  .category-choice{font-size:12px}
  .favorites-heading{flex-wrap:wrap}
  .favorites-count{font-size:12px}
  .auth-card{padding:22px 20px}
  .auth-brand .logo{font-size:22px}
  .auth-brand .logo b{font-size:31px}
  .account-settings-caption{font-size:12px;align-items:flex-start;padding:15px}
  .account-settings-links{gap:14px}
  .foundation-top nav{gap:9px;font-size:13px}
  .foundation-top .logo{font-size:22px}
  .foundation-top .btn{font-size:12px}
}
@media(max-width:360px){
  .header-inner{padding-inline:11px;column-gap:7px}
  .desktop-nav{grid-column:1/-1;justify-self:stretch;justify-content:center;font-size:12px;gap:24px}
  .site-header .site-preferences{grid-column:1/-1;grid-row:3}
  .site-header .header-search{grid-row:3}
  .site-header .site-preferences select{font-size:10px;max-width:58px}
  .site-header .logo{font-size:16px}
  .site-header .logo b{font-size:24px}
  .header-preference-toggle{width:34px}
  .site-header .header-actions .btn{font-size:11px;padding-inline:7px}
  .home-hero .hero-copy h1{font-size:30px}
  .guide-step{padding-inline:12px;column-gap:11px}
  .guide-step h3{font-size:16px}
  .category-card strong{font-size:13px}
}
