/* Phone reading, tested at 375, 390 and 430 CSS px. Zoom remains available. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
.source-return{display:inline-flex;align-items:center;min-height:44px;margin-top:8px;font-size:1rem}
.mobile-room-picker{display:none}
@media(max-width:700px),(orientation:landscape) and (max-height:500px) and (max-width:1000px){
  .site-header{padding-top:12px;padding-bottom:12px;gap:4px}
  .site-header .brand{min-height:44px}
  .site-header nav{gap:5px}
  .site-header nav a,.site-header .theme-toggle{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:7px 6px;font-size:15px}
  main,.site-header{padding-left:max(18px,env(safe-area-inset-left));padding-right:max(18px,env(safe-area-inset-right))}
  .site-footer{padding-left:max(18px,env(safe-area-inset-left));padding-right:max(18px,env(safe-area-inset-right));padding-bottom:calc(45px + env(safe-area-inset-bottom))}
  .site-footer nav{display:grid;grid-template-columns:1fr;gap:3px}
  .site-footer nav a{display:flex;align-items:center;min-height:44px;font-size:16px}
  .home .personal-hero{padding-top:35px}
  .home .personal-hero h1{font-size:clamp(1.9rem,8.2vw,2.3rem);text-wrap:balance}
  .home .personal-hero::before{top:-150px}
  .illustrated-page .article-heading{padding:20px 18px;min-height:0}
  .illustrated-page .article-heading h1{font-size:clamp(1.9rem,8vw,2.2rem)}
  .illustrated-page .article-heading .eyebrow{font-size:14px}
  .art-credit,.visual-credit{font-size:12px;line-height:1.55}
  .illustrated-page .simple-note,.small-note{font-size:14px}
  .visual-intro p{font-size:15px}
  .visual-card{display:block}
  .visual-card img{width:100%;height:auto;min-height:0;aspect-ratio:16/9;object-fit:contain}
  .visual-card figcaption{padding:16px}
  .visual-card h3{font-size:1.25rem}
  .visual-card details p{font-size:15px}
  .visual-card summary,.illustrated-page .media-detail summary,.simple-start summary,.check-understanding summary{font-size:16px;line-height:1.5}
  summary,.visual-card summary,.simple-start summary,.reading-more summary,.deep-reading>summary,.repere summary,.detailed-map summary,.references summary,.glossary summary{min-height:44px;padding-top:10px;padding-bottom:10px}
  .image-open,.lesson-nav a,.illustrated-page .lesson-nav a{display:inline-flex;align-items:center;min-height:44px;font-size:16px;line-height:1.35}
  .lesson-nav{gap:8px}
  .audio-launch,button,.lab-controls button,.lesson-step-nav button,.quiz-options button,.salon-chips button{min-height:44px}
  .lab-controls button,.lesson-step-nav button,.quiz-options button{font-size:16px;line-height:1.4}
  .lab-controls input[type=range],.lesson-controls input[type=range]{min-height:44px;touch-action:pan-y}
  .ref{display:inline-flex;align-items:center;justify-content:center;min-width:28px;min-height:28px;margin-inline:2px;font-size:14px;vertical-align:baseline}
  input,select,textarea,.audio-bar select{font-size:16px!important}
  .audio-bar{bottom:calc(8px + env(safe-area-inset-bottom));max-height:45svh;overflow:auto}
  .audio-bar button{min-height:44px;font-size:15px}
  .three-clues .lesson-card{display:block}
  .three-clues .lesson-card img{height:160px;width:100%;margin:4px 0 12px}
  .salon-welcome{padding-top:10px;padding-bottom:10px}
  .salon-welcome>p:last-child{margin-bottom:10px}
  .salon-welcome h1{font-size:2rem}
  .mobile-room-picker:not([hidden]){display:block;padding:15px 16px;background:var(--salon-surface);border:1px solid var(--salon-edge);border-radius:14px;color:var(--text)}
  .mobile-room-picker label{display:block;font-size:16px;margin-bottom:6px}
  .mobile-room-picker select{width:100%;min-width:0;min-height:48px;padding:10px 8px;background:var(--bg);color:var(--text);border:1px solid var(--line);border-radius:8px}
  .mobile-room-picker:not([hidden])+.salon-sidebar{display:none}
  .salon-mode-nav{gap:7px;padding:12px 16px 0}
  .salon-mode-nav button{font-size:16px;padding:9px 12px;flex:1 1 130px}
  .salon-layout{grid-template-columns:1fr;gap:14px}
  .salon-panel,.salon-stage-header{padding:17px}
  .salon-stage-header h2{margin-top:8px}
  .salon-stage-header a{display:inline-flex;align-items:center;min-height:44px;font-size:16px}
  .salon-actions button{font-size:16px}
  .salon-notes{min-height:190px}
}
@media(orientation:landscape) and (max-height:500px){
  main,.site-header,.site-footer{padding-left:max(24px,env(safe-area-inset-left));padding-right:max(24px,env(safe-area-inset-right))}
  .illustrated-page,.salon-page{background-attachment:scroll}
  .visual-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
}
