@charset "UTF-8";
/* 02-scroll-panes-touch.css
   Two scrolling areas (pages / options) and bigger touch targets for phones.
   CSS order matters: later files override earlier ones. Keep the numbers in the file names. */
/* Two independent scroll panes: pages stay in view while the options scroll */
html,body{height:100%}
body{display:flex;flex-direction:column;overflow:hidden}
header,footer{position:static;flex:none}
main{flex:1;min-height:0;width:100%;max-width:1500px;overflow:hidden;align-items:stretch;padding:12px 20px}
main>section,main>aside{min-height:0;overflow:auto;padding-right:4px}
main>section>.bar{position:sticky;top:0;z-index:2;background:var(--bg);margin-top:0;padding:8px 0}
@media(max-width:860px){main{grid-template-columns:1fr;grid-template-rows:minmax(150px,42%) minmax(0,1fr);padding:8px 10px;gap:8px}}
/* Touch and phone use */
button{touch-action:manipulation}
.card{position:relative}
.ck{position:absolute;top:6px;left:6px;width:22px;height:22px;border:2px solid var(--sel);border-radius:50%;background:var(--panel);color:var(--sel);display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:700;pointer-events:none}
.bar button[aria-pressed=true]{background:var(--acc);color:var(--acc-ink);border-color:var(--acc)}
@supports(height:100dvh){html,body{height:100dvh}}
@media(max-width:860px){
  header{padding:8px 10px;gap:8px;flex-wrap:nowrap}
  h1{font-size:16px}
  .tb{flex-wrap:nowrap;overflow-x:auto;min-width:0;padding-bottom:2px}
  .tb button{flex:none;min-width:58px}
  #theme{flex:none}
  .tabs{flex-wrap:nowrap;overflow-x:auto}
  .tabs button{flex:none;white-space:nowrap;padding:8px 12px}
  footer{padding:6px 10px}
}
@media(pointer:coarse){
  aside button,.bar button,.card .meta button,.subtabs button,.ftabs button{min-height:40px}
  aside select,aside input[type=text],aside input[type=number],aside input[type=date],#fbd input[type=text],#fbd textarea,#fbd select,#dlg input[type=text]{font-size:16px;min-height:40px}
  aside input[type=range]{min-height:32px}
}
