/* Shared Touch layout: full viewport width on phones and tablets.
   Scoped to Sayabee so desktop and official templates retain their layout. */
html[data-task-mobile="2"] { --sb-gutter:clamp(12px,2.5vw,28px); }
html[data-task-mobile="2"] body,
html[data-task-mobile="2"] body .page,
html[data-task-mobile="2"] body .post,
html[data-task-mobile="2"] body #page-cats,
html[data-task-mobile="2"] body .sb-member,
html[data-task-mobile="2"] body .sb-profile,
html[data-task-mobile="2"] body .sb-password {
  box-sizing:border-box;width:100%;max-width:none!important;margin-left:0;margin-right:0;
}
html[data-task-mobile="2"] body #page-home,
html[data-task-mobile="2"] body #page-cats,
html[data-task-mobile="2"] body #page-topic,
html[data-task-mobile="2"] body #page-post {
  min-height:0;padding-bottom:12px!important;
}
/* Fixed bars use the same viewport as the content, including expanded search. */
html[data-task-mobile="2"] body .synced-nav,
html[data-task-mobile="2"] body .forum-search-form,
html[data-task-mobile="2"] body .site-nav,
html[data-task-mobile="2"] body .reply-bar,
html[data-task-mobile="2"] body .hb-nav {
  box-sizing:border-box;width:100%!important;max-width:none!important;left:0!important;right:0;transform:none!important;
}
html[data-task-mobile="2"] body .sb-promo-banner,
html[data-task-mobile="2"] body .sb-info-footer,
html[data-task-mobile="2"] body .sb-copyright,
html[data-task-mobile="2"] body .sm-rule-sheet {
  box-sizing:border-box;width:100%;max-width:none;
}
html[data-task-mobile="2"] body .task-display-footer {
  width:calc(100% - var(--sb-gutter) * 2);max-width:none;margin:12px auto 0;
}
html[data-task-mobile="2"] body .task-guide {
  width:calc(100% - var(--sb-gutter) * 2);max-width:none;
}
html[data-task-mobile="2"] body #page-home .sb-home-more { margin-bottom:0; }
html[data-task-mobile="2"] body .sb-bottom-nav {
  width:calc(100% - 32px);max-width:none;left:16px;right:16px;transform:none;
}
html[data-task-mobile="2"] body .sb-bottom-nav.is-hidden { transform:translateY(calc(100% + 40px)); }
html[data-task-mobile="2"] body .sb-bottom-space { height:calc(96px + env(safe-area-inset-bottom,0px)); }
html[data-task-mobile="2"] body:has(.sb-bottom-nav) .task-floating-entries,
html[data-task-mobile="2"] body #open-reply { right:16px; }
html[data-task-mobile="2"] body:has(.sb-bottom-nav) .floating-back { left:16px; }
html[data-task-mobile="2"] body .sb-pagination { width:100%;max-width:none; }
html[data-task-mobile="2"] body .sb-member,
html[data-task-mobile="2"] body .sb-profile,
html[data-task-mobile="2"] body .sb-password,
html[data-task-mobile="2"] body .task-promo,
html[data-task-mobile="2"] body .task-wallet { padding-left:var(--sb-gutter);padding-right:var(--sb-gutter); }
html[data-task-mobile="2"] body .sb-member .sm-hero h2,
html[data-task-mobile="2"] body .task-promo h1 { overflow-wrap:anywhere; }
@media(min-width:768px) {
  html[data-task-mobile="2"] body #page-cats .bd-grid { grid-template-columns:repeat(2,minmax(0,1fr));gap:14px; }
  html[data-task-mobile="2"] body .sb-bottom-nav a { font-size:14px; }
  html[data-task-mobile="2"] body .sm-rule-sheet { padding-left:var(--sb-gutter);padding-right:var(--sb-gutter); }
}
