:root{
  --responsive-gutter:clamp(14px,3vw,42px);
  --responsive-touch:44px;
}

html,body{
  max-width:100%;
  overflow-x:hidden;
}

body{
  min-width:320px;
}

img,video,canvas,svg{
  max-width:100%;
}

button,a,input,select,textarea{
  min-width:0;
}

.btn,
.site-nav a,
.document-actions button,
.resource-option-card button{
  min-height:var(--responsive-touch);
}

.standard-page,
.resource-detail-page,
.protected-page{
  width:min(100%,1440px);
  margin-inline:auto;
  padding-inline:var(--responsive-gutter);
}

.table-wrap{
  width:100%;
  max-width:100%;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}

.lesson-flow-table{
  width:100%;
}

.site-footer{
  gap:16px;
  padding-inline:var(--responsive-gutter);
}

@media(max-width:1280px){
  .site-header{
    gap:18px;
    padding-inline:clamp(18px,2.5vw,34px);
  }

  .site-nav a{
    padding-inline:11px;
  }

  .home-hero{
    grid-template-columns:minmax(0,1fr) minmax(360px,.82fr);
    gap:clamp(30px,4vw,58px);
    padding-inline:clamp(24px,4vw,54px);
  }

  .hero-copy h1{
    font-size:clamp(3rem,5.4vw,5rem);
  }

  .component-showcase,
  .live-product-section{
    padding-inline:clamp(24px,4vw,54px);
  }

  .planner-layout{
    padding-inline:clamp(18px,2.3vw,30px)!important;
  }

  .resource-option-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:1080px){
  .site-header{
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:
      "brand actions"
      "nav nav";
    row-gap:10px;
    padding-block:10px 8px;
  }

  .site-brand{
    grid-area:brand;
    min-width:0;
  }

  .site-nav{
    grid-area:nav;
    width:100%;
    justify-content:flex-start;
    overflow-x:auto;
    overscroll-behavior-inline:contain;
    scrollbar-width:none;
    padding-bottom:2px;
  }

  .site-nav::-webkit-scrollbar{
    display:none;
  }

  .site-nav a{
    flex:0 0 auto;
    white-space:nowrap;
  }

  .header-actions{
    grid-area:actions;
  }

  .home-hero{
    min-height:auto;
    grid-template-columns:1fr;
    padding-top:64px;
    padding-bottom:72px;
  }

  .hero-copy{
    max-width:820px;
  }

  .hero-visual{
    width:min(100%,820px);
    min-height:430px;
    margin-inline:auto;
  }

  .hero-visual>img{
    height:430px;
    transform:none;
  }

  .card-one{
    left:18px;
  }

  .card-two{
    right:18px;
  }

  .live-product-section{
    grid-template-columns:1fr;
  }

  .product-photo img{
    min-height:360px;
    max-height:480px;
  }

  .home-cta{
    padding-inline:clamp(24px,5vw,64px);
  }

  .page-heading{
    align-items:flex-start;
    gap:22px;
  }

  .community-layout{
    grid-template-columns:1fr;
  }
}

@media(max-width:900px){
  .product-component-grid,
  .resource-grid,
  .saved-grid{
    grid-template-columns:1fr;
  }

  .component-card{
    min-height:0;
  }

  .home-cta,
  .guest-banner,
  .page-heading,
  .demo-footer,
  .resource-detail-footer,
  .resource-detail-intro{
    align-items:flex-start;
    flex-direction:column;
  }

  .home-cta .btn,
  .guest-banner .btn,
  .page-heading>.btn,
  .resource-detail-footer .btn,
  .resource-detail-intro .btn{
    width:100%;
  }

  body.depth-design .planner-layout{
    grid-template-columns:1fr!important;
  }

  body.depth-design .planner-form-panel,
  body.depth-design .planner-insights{
    position:static!important;
    width:100%;
  }

  body.depth-design .planner-insights{
    display:block!important;
    grid-column:auto!important;
  }

  .lesson-document-header{
    align-items:flex-start;
    flex-direction:column;
  }

  .document-actions{
    width:100%;
    justify-content:flex-start;
  }

  .lesson-flow-table{
    min-width:820px;
  }

  .resource-detail-hero{
    grid-template-columns:auto minmax(0,1fr);
  }

  .resource-option-grid{
    grid-template-columns:1fr;
  }
}

@media(max-width:720px){
  :root{
    --responsive-gutter:16px;
  }

  .site-header{
    position:sticky;
    top:0;
    grid-template-columns:minmax(0,1fr) auto;
    gap:8px 12px;
    padding:9px 12px 7px;
  }

  .brand-icon{
    width:40px;
    height:40px;
    border-radius:13px;
  }

  .site-brand strong{
    font-size:.92rem;
  }

  .site-brand small{
    font-size:.68rem;
  }

  .header-actions{
    gap:6px;
  }

  .header-actions .btn{
    min-height:40px;
    padding-inline:11px;
    border-radius:11px;
    font-size:.78rem;
  }

  .account-pill{
    padding-right:7px;
  }

  .account-pill b{
    display:none;
  }

  .site-nav{
    gap:4px;
  }

  .site-nav a{
    min-height:40px;
    display:inline-flex;
    align-items:center;
    padding:8px 11px;
    font-size:.8rem;
  }

  .home-hero{
    padding:48px 16px 56px;
  }

  .hero-copy h1{
    font-size:clamp(2.55rem,12vw,4rem);
    line-height:1;
  }

  .hero-copy>p{
    margin-top:20px;
    font-size:1rem;
  }

  .hero-actions,
  .hero-actions .btn{
    width:100%;
  }

  .hero-actions{
    display:grid;
    grid-template-columns:1fr;
  }

  .hero-points{
    display:grid;
    gap:10px;
  }

  .hero-visual{
    min-height:320px;
  }

  .hero-visual>img{
    height:320px;
    border-width:6px;
    border-radius:26px;
  }

  .floating-card{
    width:min(190px,46vw);
    padding:13px;
  }

  .floating-card b{
    font-size:1.45rem;
  }

  .card-one{
    left:8px;
    bottom:10px;
  }

  .card-two{
    right:8px;
    top:16px;
  }

  .component-showcase,
  .live-product-section{
    padding:64px 16px;
  }

  .section-heading{
    margin-bottom:30px;
    text-align:left;
  }

  .section-heading h2,
  .live-product-head h2,
  .home-cta h2,
  .page-heading h1,
  .resource-detail-hero h1{
    font-size:clamp(2rem,9vw,3rem);
  }

  .component-card{
    grid-template-columns:1fr;
    padding:24px 20px;
    border-radius:22px;
  }

  .live-product-card{
    padding:24px 18px;
    border-radius:24px;
  }

  .live-product-head{
    flex-direction:column;
  }

  .demo-tabs{
    overflow-x:auto;
    justify-content:flex-start;
  }

  .demo-tabs button{
    min-width:130px;
    flex:0 0 auto;
  }

  .demo-plan-list article{
    grid-template-columns:58px minmax(0,1fr);
    gap:12px;
  }

  .home-cta{
    padding:54px 16px;
  }

  .standard-page,
  .resource-detail-page,
  .protected-page{
    padding-top:42px;
    padding-bottom:54px;
  }

  .page-heading{
    display:flex;
  }

  .guest-banner{
    margin-inline:12px;
    padding:14px;
  }

  body.depth-design .planner-layout{
    gap:18px!important;
    padding:16px 12px 38px!important;
  }

  body.depth-design .planner-form-panel,
  body.depth-design .planner-insights{
    padding:22px 17px!important;
    border-radius:24px!important;
  }

  body.depth-design .form-pair,
  body.depth-design .objective-grid,
  body.depth-design .two-column-sections,
  body.depth-design .support-grid{
    grid-template-columns:1fr!important;
  }

  .linked-resource-heading{
    align-items:flex-start;
    flex-direction:column;
  }

  .linked-resource-list{
    display:grid;
    grid-template-columns:1fr;
  }

  .linked-resource-list button{
    width:100%;
  }

  .lesson-document{
    border-radius:22px!important;
  }

  .lesson-document-header{
    padding:22px 18px!important;
    border-radius:22px 22px 0 0!important;
  }

  .lesson-document-header h1{
    font-size:clamp(1.7rem,8vw,2.4rem);
  }

  .lesson-meta{
    gap:7px;
  }

  .lesson-meta span{
    font-size:.72rem;
  }

  .document-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
  }

  .document-actions .btn{
    width:100%;
    padding-inline:10px;
  }

  body.depth-design .lesson-section{
    margin:0 12px 15px!important;
    padding:19px 17px!important;
    border-radius:18px!important;
  }

  .lesson-section h3{
    font-size:1.08rem;
  }

  .lesson-flow-table{
    min-width:760px;
    font-size:.84rem;
  }

  .lesson-flow-table th,
  .lesson-flow-table td{
    padding:13px 12px!important;
  }

  body.depth-design .time-validation{
    margin:2px 12px 20px!important;
    align-items:flex-start;
    flex-direction:column;
  }

  .resource-breadcrumb{
    overflow-x:auto;
    white-space:nowrap;
  }

  .resource-detail-hero{
    grid-template-columns:1fr;
    padding:24px 20px;
  }

  .resource-detail-icon{
    width:58px;
    height:58px;
  }

  .resource-option-card{
    padding:22px 18px;
  }

  .resource-option-heading,
  .resource-option-body{
    grid-template-columns:1fr;
  }

  .resource-linked-badge{
    justify-self:start;
  }

  .resource-option-card>.btn{
    width:100%;
  }

  .community-form,
  .community-card,
  .saved-grid article,
  .resource-grid article,
  .empty-state{
    border-radius:20px;
  }

  .site-footer{
    align-items:flex-start;
    flex-direction:column;
    padding:24px 16px;
    font-size:.82rem;
  }

  .toast{
    left:12px;
    right:12px;
    bottom:12px;
    width:auto;
    text-align:center;
  }

  .tpl-login{
    padding:0!important;
    align-items:stretch!important;
  }

  .tpl-box{
    width:100%!important;
    min-height:100dvh;
    max-height:100dvh!important;
    border-radius:0!important;
  }

  .tpl-side{
    display:none!important;
  }

  .tpl-main{
    min-height:100dvh;
    padding:64px 16px 24px!important;
  }

  .tpl-x{
    position:fixed!important;
    top:max(12px,env(safe-area-inset-top))!important;
    right:12px!important;
    z-index:2;
  }
}

@media(max-width:460px){
  .site-brand small{
    display:none;
  }

  .header-actions .btn.ghost{
    padding-inline:8px;
  }

  .header-actions .btn.primary{
    max-width:116px;
    white-space:normal;
    text-align:center;
    line-height:1.15;
  }

  .hero-visual{
    min-height:280px;
  }

  .hero-visual>img{
    height:280px;
  }

  .floating-card{
    width:150px;
    font-size:.72rem;
  }

  .floating-card small{
    display:none;
  }

  .document-actions{
    grid-template-columns:1fr;
  }

  .form-pair{
    grid-template-columns:1fr!important;
  }

  .resource-detail-footer,
  .resource-detail-intro,
  .resource-option-card{
    padding-inline:16px;
  }

  .tpl-tabs{
    grid-template-columns:1fr;
  }
}

@media(max-height:700px) and (min-width:721px){
  .tpl-side{
    min-height:520px!important;
    padding:28px!important;
  }

  .tpl-main{
    padding-block:30px!important;
  }
}

@media(hover:none){
  .btn:hover:not(:disabled),
  .component-card:hover,
  .resource-option-card:hover{
    transform:none!important;
  }
}

@media(prefers-reduced-motion:reduce){
  html{
    scroll-behavior:auto;
  }

  *,*::before,*::after{
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
    transition-duration:.01ms!important;
  }
}
