/* Keep core templates usable on touch screens without changing desktop navigation. */
@media(max-width:900px){
  .site-shell,.sidebar-closed .site-shell{grid-template-columns:minmax(0,1fr)}
  .site-shell>.content-column,.site-shell>#sidebar{min-width:0;max-width:100%}
  body>header{position:static}
  .topnav a,.topnav button,#sidebar summary{min-height:44px;align-items:center}
  .topnav a,.topnav button{display:inline-flex}
  #sidebar summary{display:flex}
  #sidebar[hidden]{display:none}
  .toolbar input,.toolbar select,.side-search input,.premium-search input{font-size:16px;min-width:0;max-width:100%}
  #sidebar a{min-height:44px;display:flex;align-items:center}
  main .tablewrap{max-width:100%;overscroll-behavior-inline:contain;overflow:auto}
  main .tablewrap:focus-visible{outline:3px solid #6555cd;outline-offset:2px}
  .site-shell :is(.card,.discovery-card,.panel),.card h3,.release-tag{min-width:0;overflow-wrap:anywhere}
  .content-column :is(svg,canvas,img){max-width:100%}
}
@media(max-width:480px){
  .content-column main,.content-column footer{padding-inline:14px}
  .toolbar label,.toolbar input,.toolbar select{max-width:100%}
  .join-footer{align-items:flex-start;flex-direction:column}
  body>header .mast{height:auto;min-height:52px;padding-inline:14px}
  body>header .mast small{display:none}
  body>header .topnav{padding:0 12px 6px;gap:3px}
  body>header .topnav a,body>header .topnav button{padding-inline:9px}
}
body>header .topnav a.tm-mobile-search{display:none}
@media(max-width:900px){
  body>header .topnav a.tm-desktop-link{display:none}
  body>header .topnav a.tm-mobile-search{display:inline-flex}
  body>header .topnav{justify-content:flex-end}
}
#sidebar details.tm-mobile-navigation{display:none}
@media(max-width:900px){#sidebar details.tm-mobile-navigation{display:block}}

.tm-crumb { display:flex; flex-wrap:wrap; gap: .45rem; align-items:center; margin: 0 0 1rem; font-size: .875rem; }
.tm-crumb a { padding-block: .3rem; }
#modelCompareResults dd { margin: 0 0 .75rem; }
#modelCompareResults dt { font-weight: 600; }
#modelCompareResults .card, #radarCards .card { overflow-wrap:anywhere; }
#radarCards [hidden] { display:none; }
.pdf-starter { display:grid; gap:1.2rem; }
.pdf-starter .pdf-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,19rem),1fr)); gap:1rem; }
.pdf-starter fieldset { min-width:0; border:1px solid #aab5ca; border-radius:12px; padding:.65rem 1rem 1rem; margin:0; }
.pdf-starter legend { padding:0 .4rem; font-weight:700; }
.pdf-starter fieldset label { display:grid; gap:.25rem; margin:.6rem 0; font-size:.93rem; }
.pdf-starter input[type=number], .pdf-starter select { box-sizing:border-box; min-height:44px; width:100%; font-size:16px; }
.pdf-starter ol { padding-left:1.3rem; }
.pdf-starter li { margin:.6rem 0; }
.pdf-starter input[type=checkbox] { width:1.2rem; height:1.2rem; vertical-align:middle; }
.pdf-starter .pdf-cost { display:block; font-size:1.65rem; font-weight:700; margin:.6rem 0 .2rem; }

/* Shared masthead uses the owner-approved mark; keep its intrinsic footprint on narrow screens. */
body>header .brand .tm-atlas-mark{display:block;width:44px;height:44px;flex:0 0 44px;object-fit:contain}
@media(max-width:600px){
  body>header .brand .tm-atlas-mark{width:38px;height:38px;flex-basis:38px}
}
