/* Mobile presentation only. Desktop content and layout are preserved. */
.mobile-more,.mobile-fold-toggle{display:none}
@media(max-width:900px){
  :root{--mobile-gutter:16px}
  .container,.classroom{width:100%;max-width:100%;padding-left:max(var(--mobile-gutter),env(safe-area-inset-left));padding-right:max(var(--mobile-gutter),env(safe-area-inset-right))}
  .classroom{padding-top:14px;padding-bottom:42px}
  .classroom .lecture-column{padding-inline:0;min-width:0}
  .classroom .player-stage{margin-inline:0}
  .classroom-grid{min-width:0}
  .site-header .header-inner,.site-header .mobile-nav.open{padding-left:max(var(--mobile-gutter),env(safe-area-inset-left));padding-right:max(var(--mobile-gutter),env(safe-area-inset-right))}
  .classroom .native-player,.classroom .native-player video,.classroom .lesson-placeholder{border-radius:10px}
}
@media(max-width:720px){
  /* One set of page rails; interior cards use a separate, modest inset. */
  .section{padding-block:30px}
  .page-head{padding-block:23px}
  .page-head h1,.dashboard-top h1,.job-detail-head h1{font-size:30px;line-height:1.15;letter-spacing:-.6px}
  .page-head p,.section-heading p{font-size:15px;line-height:1.5}
  .section-heading{gap:12px;margin-bottom:18px;flex-wrap:wrap;align-items:center}
  .section-heading h2,.panel h2{font-size:24px;line-height:1.2;letter-spacing:-.4px}
  .section-heading>.text-link{font-size:14px;min-height:40px;white-space:normal;margin:0}
  .between>div,.row>div,.detail-grid>*,.profile-layout>*,.job-detail-layout>*{min-width:0}
  h1,h2,h3,p,.entry-description,.text-link{overflow-wrap:anywhere}
  .btn{min-height:44px;white-space:normal;text-align:center}
  .field-input,select,input,textarea{font-size:16px}
  .tabs,.lecture-tabs{overflow-x:auto;overscroll-behavior-inline:contain;gap:20px;scrollbar-width:thin}
  .tabs .tab,.lecture-tabs .tab{flex-shrink:0;white-space:nowrap;min-height:44px;font-size:14px}
  .panel,.profile-layout .panel,.academic-panel,.job-detail-layout .panel,.lecture-column>.course-record{padding:16px;border-radius:10px}
  .content-note,.method-note,.modal-fine{font-size:13px;line-height:1.55}
  .empty{padding:30px 12px}

  /* Compact identity and two-column navigation; both languages remain at the top. */
  .site-language-bar>.container{min-height:40px;justify-content:flex-end;padding-block:0}
  .language-switch{gap:2px}
  .language-switch button{min-height:40px;font-size:13px;padding:6px 10px}
  .language-switch>span{display:flex;font-size:12px}
  .site-preview-note{display:none}
  .site-header .header-inner,.is-learning .site-header .header-inner{min-height:68px;padding-block:10px;gap:8px}
  .site-header .pit-brand{gap:10px;min-width:0}
  .site-header .pit-brand .pit-mark{width:40px;height:40px;aspect-ratio:1}
  .site-header .pit-wordmark,html[lang=es] .site-header .pit-wordmark{font-size:18px;line-height:1.12;max-width:245px;white-space:normal;letter-spacing:-.3px}
  .site-header .header-actions .menu-btn{width:44px;height:44px;padding:10px}
  .site-header .mobile-nav.open{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 12px;padding-block:10px 14px;max-height:calc(100dvh - 108px);overflow-y:auto}
  .mobile-nav a{min-height:44px;padding:10px;font-size:14px;line-height:1.4;border-radius:6px}
  .mobile-nav a.active{background:#edf4fb;color:var(--blue)}

  /* A shorter first screen without shrinking the reading text. */
  .hero{grid-template-columns:1fr;gap:22px;padding-block:26px 28px}
  .hero h1{font-size:clamp(32px,9.2vw,42px);line-height:1.06;letter-spacing:-1px}
  .hero .eyebrow{font-size:11px;letter-spacing:1.15px;margin-bottom:13px}
  .hero .lead{font-size:16px;line-height:1.55;margin:15px 0 19px;max-width:none}
  .hero .row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-width:none}
  .hero .row .btn{width:100%;height:100%;align-self:stretch;padding:10px;font-size:14px;gap:7px}
  .hero-foot{margin-top:16px;gap:7px 14px;font-size:12px;line-height:1.4}
  .hero-visual{padding:0 0 22px;margin:0}
  .hero-visual::before{display:none}
  .hero-img{width:100%;height:auto;aspect-ratio:1.65;object-fit:cover;object-position:60% center;border-radius:10px}
  .hero-label{left:10px;top:10px;font-size:10px;padding:6px 8px;max-width:calc(100% - 20px)}
  .hero-card{left:10px;right:10px;bottom:32px;width:auto;padding:10px 12px;gap:10px;border-radius:8px}
  .hero-card-icon{padding:7px}.hero-card-icon svg{width:20px;height:20px}
  .hero-card strong{font-size:13px}.hero-card p{display:none}.hero-card>svg{margin-left:auto;width:19px}
  .hero .photo-credit{font-size:10px;line-height:1.2;bottom:1px;text-align:left;left:0;right:0}
  .value-inner{padding-block:17px;gap:10px}
  .value-item{padding-right:8px;gap:7px;justify-content:flex-start}
  .value-item strong{font-size:13px;line-height:1.25}
  .value-item p{display:none}

  /* Browse horizontally or reveal more; no content is removed from desktop. */
  .subject-list,.starting-filters{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-inline:contain;gap:8px;padding-bottom:8px;scrollbar-width:thin}
  .subject-pill,.starting-filters button{flex:0 0 auto;min-height:42px;padding:9px 12px;font-size:13px;white-space:nowrap}
  .starting-caption{font-size:15px;line-height:1.5}
  .starting-count{font-size:13px;line-height:1.45;margin-bottom:14px}
  .starting-filters{margin-bottom:13px}
  .mobile-series-rail{display:grid;grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:78%;gap:12px;overflow-x:auto;scroll-snap-type:x proximity;overscroll-behavior-inline:contain;padding-bottom:12px;scrollbar-width:thin}
  .mobile-series-rail>.course-card{scroll-snap-align:start;min-width:0}
  .grid-3,.grid-4{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .mobile-series-rail.grid-4{grid-template-columns:none}
  .course-card{min-width:0;box-shadow:none;border-radius:10px}
  .course-card:hover,.related-card:hover{transform:none;box-shadow:none}
  .card-image{height:auto;aspect-ratio:1.55}
  .card-image>.pill{font-size:10px;max-width:calc(100% - 16px);left:8px;bottom:8px;padding:4px 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
  .card-body{padding:12px}
  .card-body h3{font-size:17px;line-height:1.3;min-height:0;letter-spacing:-.2px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
  .card-body>p{font-size:14px;line-height:1.45;margin-top:8px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;flex:none}
  .mini-brand{font-size:11px;margin-bottom:9px;gap:5px}
  .mini-brand>img{width:18px;height:18px}
  .card-meta{font-size:12px;line-height:1.4;flex-wrap:wrap;margin-top:auto;padding-top:12px;gap:4px}
  .card-bottom{font-size:12px;line-height:1.4;gap:5px;flex-wrap:wrap;margin-top:11px;padding-top:10px;min-height:38px}
  .card-bottom>span:last-child{margin-left:auto}
  .save-btn{width:36px;height:36px;top:6px;right:6px}
  .mobile-series-rail .card-body h3{font-size:19px;-webkit-line-clamp:2}
  .mobile-series-rail .card-image{aspect-ratio:1.95}
  [data-mobile-list]>.mobile-item-extra{display:none}
  .mobile-more{display:flex;width:100%;min-height:46px;align-items:center;justify-content:center;gap:8px;margin:18px 0 0;padding:11px 16px;background:#f0f5fa;border:1px solid #cfdeec;border-radius:8px;color:#174a73;font-weight:600;font-size:14px}
  .mobile-more[hidden]{display:none}
  .how-grid{gap:18px;margin-top:20px}
  .how-grid>div{grid-template-columns:32px minmax(0,1fr);gap:0 12px}
  .step-number{width:32px;height:32px}.how-grid h3{font-size:19px;margin-bottom:7px}.how-grid p{font-size:15px;line-height:1.5}
  .credential-banner{padding:20px;gap:18px}.credential-banner h2{font-size:26px}.credential-banner p{font-size:15px;line-height:1.55}
  .credential-benefits{gap:12px;margin-block:16px;flex-wrap:wrap}
  .credential-showcase{max-width:285px;padding:8px 8px 48px 0}
  .badge-display{width:27%;bottom:23px;right:0}.showcase-caption{font-size:10px;letter-spacing:0}
  .newsletter{padding:30px 16px}.newsletter h2{font-size:26px}.newsletter p{font-size:15px;margin-block:12px 18px}

  /* Filters occupy the screen width instead of a tall stack of narrow controls. */
  .catalog-layout{padding-top:18px;padding-bottom:32px}
  .catalog-search{margin-top:18px}
  .catalog-search input{font-size:16px;min-width:0}
  .catalog-top{gap:10px;margin-bottom:15px;align-items:center;flex-wrap:wrap}
  .catalog-top .tabs{flex:1;gap:17px;min-width:0}
  .catalog-top>.sort-select{width:100%;max-width:none;font-size:16px;min-height:44px}
  .mobile-filters{font-size:16px;min-height:44px;margin-bottom:12px;padding:10px}
  .result-count{font-size:13px;line-height:1.5;margin-bottom:18px}
  .detail-hero{padding-bottom:25px}.detail-grid{gap:22px}.detail-hero h1{font-size:32px;line-height:1.15;margin-block:16px}
  .detail-hero .lead{font-size:16px;line-height:1.6}.detail-meta{gap:10px 16px;font-size:13px}
  .enroll-card{display:grid;grid-template-columns:104px minmax(0,1fr)}
  .enroll-card>img{height:100%;min-height:170px;aspect-ratio:auto;object-fit:cover}
  .enroll-body{padding:16px}.enroll-body h3{font-size:23px}.enroll-body>.eyebrow{font-size:10px;margin-bottom:7px}
  .enroll-body>p{font-size:14px;margin:8px 0 12px}.enroll-body .btn{font-size:14px;padding:10px 8px;min-height:44px}
  .enroll-body .enroll-foot{font-size:12px}.enroll-body .course-photo-credit{font-size:10px;padding:8px 0;background:transparent}
  .detail-content{padding-block:25px 35px}.detail-content h2{font-size:24px}.outcomes{margin-block:18px 28px;gap:14px}.outcome{font-size:15px;line-height:1.5}
  .module summary{padding:15px 13px}.module summary strong{font-size:16px}.module summary small{font-size:12px}
  .lesson-row{font-size:14px;line-height:1.45;padding:13px 12px;gap:10px}.lesson-row>span:not(.duration){min-width:0}.lesson-row .duration{font-size:11px;min-width:56px;max-width:74px;text-align:right}
  .detail-content>.detail-grid>aside{display:grid;grid-template-columns:1fr;gap:16px}
  .course-illustration-panel{display:none}
  .direction-card{padding:18px}.direction-card h3{font-size:23px}.direction-card p{margin-block:12px 16px}.aside-note{padding:5px 2px 0}
  .related-section,.lecture-column .related-section{margin-top:28px;padding-top:26px}.related-grid{gap:12px}
  .related-card,.classroom .related-card{grid-template-columns:90px minmax(0,1fr)}
  .related-card>img,.classroom .lecture-column .related-card>img{height:100%;min-height:120px;aspect-ratio:auto}
  .related-card>div,.classroom .lecture-column .related-card>div{padding:14px}
  .related-card h3,.classroom .lecture-column .related-card h3{font-size:18px;line-height:1.3}
  .related-card p{font-size:13px;margin-block:8px 10px}.related-card .eyebrow{font-size:10px}.related-card .text-link{font-size:13px}
  .series-course{grid-template-columns:70px minmax(0,1fr);padding:14px;gap:12px}.series-course .num{display:none}.series-course>img{width:70px;height:75px}.series-course h3{font-size:18px;margin-top:5px}.series-course p{font-size:13px}.series-course>.btn{grid-column:2;font-size:13px;min-height:42px}

  /* Learning uses the same rails as the catalog; the video gets the full inner width. */
  .classroom .lecture-title{padding-block:20px;gap:14px}.classroom .lecture-title h2{font-size:25px;line-height:1.2}
  .lecture-title .eyebrow{font-size:11px;margin-bottom:9px}.lecture-title p{font-size:14px;margin-top:9px}
  .lesson-media-settings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px}
  .lesson-media-settings label{min-width:0;gap:5px;font-size:12px}.lesson-media-settings select{width:100%;min-height:44px;font-size:16px;padding:8px 22px 8px 9px}
  .video-play-button{grid-column:1/-1;min-height:44px;margin:0}
  .lesson-media-note{grid-column:1/-1;font-size:12px;line-height:1.45}
  .video-support-links{justify-content:space-between;gap:10px;margin-top:4px}.video-support-links .text-link{min-height:40px;font-size:13px}
  .lesson-toolbar{padding-block:8px;gap:10px;flex-wrap:wrap}.journey-toggle{min-height:44px;font-size:13px}.autoplay-option{font-size:12px;min-height:44px}
  .journey.is-open{max-height:65dvh;overflow:auto}.journey-head{padding:18px}.journey-module summary{padding:16px}.journey-lesson{padding:14px 16px;font-size:14px}
  .overview-content{padding-top:20px}.overview-content>p{font-size:16px;line-height:1.65}.overview-two{gap:18px;margin-top:20px}.overview-two ul{font-size:15px;line-height:1.6}
  .reflection-box{padding:17px}.lesson-context{gap:10px;padding:16px}.lesson-context p{font-size:13px;line-height:1.6}
  .transcript-details{padding:15px;margin-top:20px}.transcript-line{grid-template-columns:42px minmax(0,1fr)}.transcript-line p{font-size:15px}.transcript-line button{min-height:38px;font-size:13px}
  .discussion{margin-top:24px;padding:16px}.discussion h2{font-size:24px}.discussion-prompt{padding:13px;font-size:14px}.discussion-signin{gap:12px}.comment p{font-size:15px;line-height:1.55}
  .resource-row{font-size:14px;flex-wrap:wrap;min-height:48px}.resource-row span{font-size:12px}
  .video-error{padding:15px;gap:8px}.video-error strong{font-size:18px}.video-error p{font-size:13px;margin:0}.video-error>div{gap:10px;margin-top:4px}

  /* Optional records and portfolio sections collapse on phones, with their actions visible. */
  .mobile-fold-toggle{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid #dce5ee;border-radius:7px;background:#f6f9fc;color:#315673;cursor:pointer;padding:10px}
  .mobile-fold-toggle svg{width:18px;height:18px;transition:transform .15s}
  .mobile-expanded .mobile-fold-toggle svg{transform:rotate(180deg)}
  .mobile-foldable:not(.mobile-expanded)>.mobile-fold-content{display:none}
  .mobile-foldable>.mobile-fold-heading{margin:0;align-items:center;gap:10px;flex-direction:row}
  .mobile-fold-heading>div:first-child{flex:1;min-width:0}
  .mobile-foldable:not(.mobile-expanded)>.mobile-fold-heading p{display:none}
  .mobile-fold-heading h2,.mobile-fold-heading h3{margin:0;font-size:22px}
  .mobile-fold-heading .eyebrow{font-size:10px;margin-bottom:6px}
  .mobile-fold-heading>.btn{font-size:12px;padding:9px 10px}
  .growth-panel>.mobile-fold-heading>svg{display:none}
  .academic-panel>.mobile-fold-heading{flex-wrap:wrap}
  .academic-panel>.mobile-fold-heading>div{flex-basis:calc(100% - 60px)}
  .academic-panel>.mobile-fold-heading>.mobile-fold-toggle{order:1}
  .academic-panel>.mobile-fold-heading>.btn{order:2;margin-top:3px}
  .dashboard{padding-block:26px 35px}.dashboard-top{gap:14px}.dashboard-top>.btn{font-size:14px;min-height:44px}.dashboard-sub{font-size:15px}
  .stats-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-block:22px}
  .stat-card{padding:13px 8px;display:block;text-align:left}.stat-icon{width:27px;height:27px;margin:0 0 8px}.stat-icon svg{width:18px;height:18px}.stat-card strong{font-size:27px}.stat-card p{font-size:12px;line-height:1.35;margin-top:4px}
  .growth-panel{margin-block:18px 28px}.growth-layout{gap:20px;margin-top:20px}.growth-layout h3{font-size:22px}
  .record-metrics{margin-block:18px;grid-template-columns:repeat(2,minmax(0,1fr))}.record-metrics>div{padding:14px 12px}.record-metrics strong{font-size:25px}.record-metrics span{font-size:12px}
  .record-table-wrap{max-width:100%;overscroll-behavior-inline:contain}.record-table{font-size:13px;min-width:580px}.record-table th,.record-table td{padding:12px 10px}
  .learning-card{grid-template-columns:76px minmax(0,1fr);padding:14px;gap:12px}.learning-card>img{width:76px;height:80px}.learning-card h3{font-size:19px;margin-block:7px}.learning-card p{font-size:13px}.learning-card>.btn{font-size:14px;min-height:44px}
  .profile-hero{padding-top:16px}.profile-cover{height:72px;padding:16px}.profile-cover>span{font-size:9px;letter-spacing:1px}
  .profile-summary{padding:0 15px 18px;gap:12px}.profile-avatar{width:60px;height:60px;font-size:24px}.profile-summary h1{font-size:26px}.profile-summary p{font-size:14px;line-height:1.45}
  .profile-summary-actions{padding-left:0;width:100%;gap:8px}.profile-summary-actions .btn{flex:1;min-width:0;font-size:13px;min-height:44px;padding:10px}
  .profile-layout,.profile-main,.profile-side{gap:14px}.profile-entries{margin-top:16px}.profile-entry{gap:10px;padding:17px 0}.profile-entry>div:nth-child(2){min-width:0;flex-basis:calc(100% - 48px)}.profile-entry h3{font-size:18px;line-height:1.3}
  .entry-description{font-size:15px;line-height:1.6}.entry-meta{font-size:12px}.entry-actions{padding-left:43px;gap:22px}.entry-actions .text-link{min-height:38px;font-size:13px}
  .profile-empty{padding:14px;font-size:14px}.profile-side p{font-size:15px;line-height:1.55}

  .jobs-hero{padding-block:30px 25px}.jobs-hero h1{font-size:36px}.jobs-hero p{font-size:16px;line-height:1.55;margin-top:14px}.jobs-hero-stats{gap:12px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:20px}.jobs-hero-stats>span{font-size:12px;line-height:1.4}.jobs-hero-stats strong{font-size:26px;display:block;margin:0}.jobs-hero .jobs-photo-credit{font-size:10px;line-height:1.4;margin-top:16px}
  .jobs-search{flex-direction:row;gap:8px;margin-bottom:14px}.jobs-search .btn{font-size:14px;padding:10px 13px}.jobs-search input{min-width:0;font-size:16px}
  .jobs-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:13px;gap:12px;margin-bottom:22px}
  .jobs-filters label{min-width:0;font-size:12px;gap:6px}.jobs-filters select{width:100%;font-size:16px;padding:10px 7px;min-height:44px}.jobs-filters label:nth-child(3){grid-column:1}.jobs-filters>.text-link{align-self:end;justify-self:end;min-height:44px;margin:0;font-size:13px}
  .job-grid{grid-template-columns:1fr;gap:14px;margin-top:20px}.enriched-job{padding:17px}.enriched-job h3{font-size:22px;line-height:1.25;margin-bottom:8px}.enriched-job>p{font-size:15px;line-height:1.5;margin-block:8px}
  .enriched-job .job-company{margin:12px 0 6px!important;font-size:13px!important}.enriched-job>p:not([class]){display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.enriched-job .job-fit{display:none}
  .enriched-job .tag-row{gap:6px;margin-block:9px 12px}.enriched-job .tag-row>span{font-size:12px}.job-card-courses{margin:0 0 13px;gap:7px}.job-card-courses a{font-size:13px;line-height:1.4}.enriched-job>.text-link{min-height:42px;font-size:15px}.job-date{margin-top:10px;font-size:12px;line-height:1.4}
  .job-detail-head{padding-block:24px}.job-detail-head .row{gap:12px;flex-wrap:wrap}.job-detail-layout{gap:16px}.job-detail-layout>div,.job-detail-layout>aside{gap:16px}.job-detail-layout p,.role-list{font-size:16px;line-height:1.65}
  .job-course-path{padding-block:16px;gap:12px}.job-course-path strong{font-size:17px;line-height:1.4}
  .badge-grid{gap:12px}.badge-card{padding:20px 12px}.badge-card h3{font-size:18px}.badge-card p{font-size:13px}.badge-card .btn{font-size:13px;min-height:44px}.badge-card-art{height:100px;width:86px;margin-bottom:15px}
  .photo-credits-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.photo-credit-card>div{padding:12px}.photo-credit-card h3{font-size:16px}.photo-credit-card p{font-size:12px}

  .site-footer{padding-top:27px}.footer-top{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px 12px}.footer-top>div:first-child{grid-column:1/-1}.footer-top>div:last-child{grid-column:auto}.footer-top h4{font-size:14px;margin-bottom:9px}.footer-links{gap:4px;font-size:13px;line-height:1.4}.footer-links a,.footer-links .text-link{min-height:38px;display:flex;align-items:center;white-space:normal}.footer-top p{font-size:14px;line-height:1.5;margin-top:12px}.footer-bottom{font-size:12px;line-height:1.5;margin-top:22px;padding-bottom:70px}
  .overlay{padding:12px}.modal{width:100%;max-width:100%;max-height:calc(100dvh - 24px);padding:24px 17px}.modal h2{font-size:26px}.modal .field-label{font-size:14px}.modal .field-input{font-size:16px}
  .agent-launcher{width:50px;height:50px;min-height:50px;right:14px;bottom:calc(14px + env(safe-area-inset-bottom))}
  .agent-panel{left:12px;right:12px;width:auto;bottom:calc(76px + env(safe-area-inset-bottom));max-height:calc(100dvh - 94px - env(safe-area-inset-bottom))}
  .agent-body{padding:16px}.agent-head{padding:14px}.agent-composer{padding:12px}.agent-head h2{font-size:18px}.agent-prompts button{min-height:44px}
}
@media(max-width:359px){
  :root{--mobile-gutter:12px}
  .site-header .pit-wordmark,html[lang=es] .site-header .pit-wordmark{font-size:16px}
  .site-header .pit-brand .pit-mark{width:36px;height:36px}
  .card-body{padding:10px}.card-body h3{font-size:16px}.card-body>p{font-size:13px}.grid-3,.grid-4{gap:10px}
  .hero .row .btn{font-size:13px;padding-inline:8px}.enroll-card{grid-template-columns:86px minmax(0,1fr)}.enroll-body{padding:13px}
  .mobile-fold-heading h2,.mobile-fold-heading h3{font-size:20px}.mobile-fold-heading>.btn{padding-inline:8px}
}
@media(prefers-reduced-motion:reduce){.mobile-fold-toggle svg{transition:none}}
