/* Mobile three-screen readability repair.
   Scoped to touch devices so desktop layouts and application behavior remain unchanged. */
@media (max-width:1100px) and (hover:none) and (pointer:coarse) {
  html, body { max-width:100%; overflow-x:hidden; }
  body.gold-home.page-home { font-size:16px!important; }
  body.gold-home.page-home .public-nav {
    width:100%!important; max-width:100%!important; min-height:64px!important;
    padding:10px 12px!important; gap:10px!important; flex-wrap:wrap!important;
  }
  body.gold-home.page-home .public-brand { min-width:0!important; }
  body.gold-home.page-home .public-links {
    display:flex!important; flex-wrap:wrap!important; gap:7px!important;
    width:100%!important; justify-content:flex-start!important;
  }
  body.gold-home.page-home .public-links a {
    min-height:38px!important; padding:9px 11px!important; font-size:12px!important;
    line-height:1.2!important; white-space:normal!important;
  }
  body.gold-home.page-home .public-main { width:100%!important; max-width:100%!important; padding:8px!important; }
  body.gold-home.page-home .public-hero {
    display:grid!important; grid-template-columns:minmax(0,1fr)!important;
    gap:16px!important; padding:18px!important; min-width:0!important;
  }
  body.gold-home.page-home .public-hero .hero-copy,
  body.gold-home.page-home .public-hero .hero-visual { width:100%!important; min-width:0!important; }
  body.gold-home.page-home .public-hero h1 {
    font-size:clamp(32px,8vw,43px)!important; line-height:1.04!important;
    letter-spacing:-.035em!important;
  }
  body.gold-home.page-home .public-hero p { font-size:15px!important; line-height:1.55!important; }
  body.gold-home.page-home .public-kicker,
  body.gold-home.page-home .public-proof span { font-size:11px!important; line-height:1.35!important; }
  body.gold-home.page-home .hero-actions { display:grid!important; grid-template-columns:1fr!important; gap:9px!important; }
  body.gold-home.page-home .hero-actions :is(a,button) { min-height:46px!important; font-size:14px!important; }
  body.gold-home.page-home .hero-visual { display:grid!important; grid-template-columns:minmax(0,1fr)!important; gap:12px!important; }
  body.gold-home.page-home .hero-image-wrap { min-height:220px!important; }
  body.gold-home.page-home .quick-access-card { width:100%!important; min-width:0!important; }
  body.gold-home.page-home .quick-access-card :is(strong,small,p,a) { font-size:13px!important; line-height:1.4!important; }
  body.gold-home.page-home :is(.experience-strip,.home-section,.feature-section,.public-section,.home-feature-grid,.home-tools-grid) {
    width:100%!important; max-width:100%!important; margin-top:14px!important;
  }
  body.gold-home.page-home :is(.experience-strip,.home-section,.feature-section,.public-section) :is(h2,h3) {
    font-size:clamp(20px,5vw,27px)!important; line-height:1.18!important;
  }
  body.gold-home.page-home :is(.experience-strip,.home-section,.feature-section,.public-section) :is(p,small,a,li) {
    font-size:14px!important; line-height:1.5!important;
  }
  body.gold-home.page-home :is(.home-feature-grid,.home-tools-grid) {
    grid-template-columns:repeat(2,minmax(0,1fr))!important; gap:10px!important;
  }
  body.gold-home.page-home :is(.home-feature-grid,.home-tools-grid) :is(article,.card,.feature-card,.tool-card) {
    min-width:0!important; padding:13px!important;
  }

  body.auth-page.page-login .page { display:block!important; width:100%!important; min-height:100dvh!important; }
  body.auth-page.page-login .story { display:none!important; }
  body.auth-page.page-login .main {
    display:block!important; width:100%!important; min-width:0!important;
    min-height:100dvh!important; padding:12px!important;
  }
  body.auth-page.page-login .card {
    display:block!important; width:100%!important; max-width:620px!important;
    margin:0 auto!important; padding:18px!important; border-radius:20px!important;
  }
  body.auth-page.page-login .mobile-brand { display:flex!important; min-height:54px!important; margin-bottom:12px!important; }
  body.auth-page.page-login .mobile-brand img { width:48px!important; height:48px!important; }
  body.auth-page.page-login .pwa-home-entry,
  body.auth-page.page-login .pwa-install-login { min-height:44px!important; font-size:14px!important; }
  body.auth-page.page-login .eyebrow { font-size:12px!important; }
  body.auth-page.page-login .view h2 { font-size:clamp(24px,6vw,32px)!important; line-height:1.15!important; }
  body.auth-page.page-login .subtitle { font-size:14px!important; line-height:1.5!important; }
  body.auth-page.page-login .roles { grid-template-columns:repeat(2,minmax(0,1fr))!important; gap:10px!important; }
  body.auth-page.page-login .role { min-height:112px!important; padding:13px!important; border-radius:15px!important; }
  body.auth-page.page-login .role .icon { width:38px!important; height:38px!important; font-size:25px!important; margin-bottom:7px!important; }
  body.auth-page.page-login .role .icon svg { width:26px!important; height:26px!important; }
  body.auth-page.page-login .role strong { font-size:14px!important; line-height:1.25!important; }
  body.auth-page.page-login .role small { font-size:11px!important; line-height:1.35!important; }
  body.auth-page.page-login .tabs { gap:8px!important; margin:14px 0!important; }
  body.auth-page.page-login .tab { min-height:44px!important; font-size:14px!important; }
  body.auth-page.page-login .fields { gap:12px!important; }
  body.auth-page.page-login .field label { font-size:13px!important; }
  body.auth-page.page-login .field input,
  body.auth-page.page-login .field select,
  body.auth-page.page-login .school-search-row input {
    min-height:48px!important; font-size:16px!important; padding:12px!important;
  }
  body.auth-page.page-login .primary,
  body.auth-page.page-login .secondary,
  body.auth-page.page-login .back { min-height:46px!important; font-size:14px!important; }
  body.auth-page.page-login .help,
  body.auth-page.page-login .role-guidance { font-size:12px!important; line-height:1.5!important; }

  body.app-page.page-app .app-shell { display:block!important; width:100%!important; min-height:100dvh!important; }
  body.app-page.page-app .main { display:block!important; width:100%!important; max-width:100%!important; min-width:0!important; padding:12px!important; }
  body.app-page.page-app .topbar {
    display:flex!important; flex-direction:column!important; flex-wrap:nowrap!important;
    align-items:stretch!important; width:100%!important; max-width:100%!important;
    min-width:0!important; min-height:0!important; height:auto!important;
    padding:14px!important; gap:10px!important; overflow:visible!important;
  }
  body.app-page.page-app .topbar-title { width:100%!important; max-width:100%!important; min-width:0!important; }
  body.app-page.page-app .topbar-title :is(.academic-kicker,#page-title,.school-identity) {
    display:block!important; width:100%!important; max-width:100%!important;
    white-space:normal!important; overflow-wrap:anywhere!important;
  }
  body.app-page.page-app .topbar-title #page-title { font-size:25px!important; line-height:1.15!important; }
  body.app-page.page-app .topbar-actions {
    display:flex!important; flex-direction:row!important; flex-wrap:wrap!important;
    align-items:center!important; justify-content:flex-start!important;
    width:100%!important; max-width:100%!important; min-width:0!important;
    gap:8px!important; overflow:visible!important;
  }
  body.app-page.page-app .topbar-actions #roleSession,
  body.app-page.page-app .topbar-actions .session-chip {
    display:flex!important; flex:1 1 170px!important; flex-direction:row!important;
    flex-wrap:wrap!important; align-items:center!important; justify-content:space-between!important;
    width:auto!important; max-width:100%!important; min-width:0!important;
    min-height:44px!important; padding:8px 10px!important; gap:8px!important;
  }
  body.app-page.page-app .topbar-actions #roleSession strong {
    flex:1 1 100%!important; width:100%!important; max-width:100%!important;
    font-size:13px!important; line-height:1.35!important; white-space:normal!important;
    overflow-wrap:anywhere!important;
  }
  body.app-page.page-app .topbar-actions #roleSession button {
    min-width:76px!important; min-height:36px!important; font-size:13px!important;
  }
  body.app-page.page-app .topbar-actions #accountSecurityButton {
    flex:0 1 116px!important; width:auto!important; min-width:96px!important;
    max-width:116px!important; min-height:42px!important; font-size:12px!important;
  }
  body.app-page.page-app .topbar-actions .academic-pill,
  body.app-page.page-app .topbar-actions #installBtn:not(.hidden) {
    min-height:38px!important; max-width:100%!important; font-size:12px!important;
  }
  body.app-page.page-app #appMain>#dashboard>.campus-hero {
    display:grid!important; grid-template-columns:minmax(0,1fr)!important;
    width:100%!important; min-width:0!important; min-height:0!important;
    padding:18px!important; gap:14px!important;
  }
  body.app-page.page-app #appMain>#dashboard>.campus-hero>div { min-width:0!important; width:100%!important; }
  body.app-page.page-app #appMain>#dashboard>.campus-hero .campus-visual {
    display:flex!important; position:relative!important; inset:auto!important;
    width:100%!important; min-width:0!important; min-height:150px!important;
    max-height:none!important; align-items:center!important; justify-content:center!important;
    padding:16px!important; margin:0!important;
  }
  body.app-page.page-app #appMain>#dashboard>.cards {
    display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr))!important;
    width:100%!important; gap:10px!important;
  }
  body.app-page.page-app #appMain>#dashboard>.cards>.card.stat {
    min-width:0!important; min-height:112px!important; padding:13px!important;
  }
  body.app-page.page-app #appMain>#dashboard>.cards>.card.stat>span {
    font-size:12px!important; line-height:1.35!important; letter-spacing:.04em!important;
    overflow-wrap:anywhere!important;
  }
  body.app-page.page-app #appMain>#dashboard>.grid-2 { grid-template-columns:1fr!important; }
  body.app-page.page-app #appMain>#dashboard :is(h2,h3) { font-size:21px!important; line-height:1.2!important; }
  body.app-page.page-app #appMain>#dashboard :is(p,.muted,.section-description) { font-size:14px!important; line-height:1.5!important; }
  body.app-page.page-app .sidebar { width:min(340px,86vw)!important; max-width:86vw!important; }
  body.app-page.page-app .sidebar #nav .nav-item { white-space:normal!important; overflow-wrap:anywhere!important; }
}
@media (max-width:520px) and (hover:none) and (pointer:coarse) {
  body.gold-home.page-home :is(.home-feature-grid,.home-tools-grid) { grid-template-columns:1fr 1fr!important; }
  body.auth-page.page-login .card { padding:15px!important; }
  body.auth-page.page-login .role { min-height:104px!important; }
  body.app-page.page-app .main { padding:9px!important; }
}
@media (max-width:360px) and (hover:none) and (pointer:coarse) {
  body.auth-page.page-login .roles { grid-template-columns:1fr!important; }
  body.gold-home.page-home :is(.home-feature-grid,.home-tools-grid) { grid-template-columns:1fr!important; }
}
