/* ---------------------------------------------------------------------------
   Computer layout (1024px and wider). PHONES ARE UNTOUCHED: every rule in
   this file is inside the media query below.

     - the Apple-style sidebar (#app-drawer, drawer.css) is always there;
     - the floating tab bar goes away;
     - reading pages (feeds, threads, forms) stay at a comfortable width;
       list and grid pages opt in to more room with layout({ wide: true });
     - Messages opens the conversation beside the list (.split, N8).
   --------------------------------------------------------------------------- */

@media (min-width: 1024px) {
  :root { --sidebar-w: 260px; }

  body { padding-left: var(--sidebar-w); padding-bottom: 32px; }
  .tabbar { display: none !important; }

  .navbar-in { max-width: 760px; padding-left: 28px; padding-right: 28px; }
  body.page-wide .navbar-in { max-width: 1240px; }

  .container { max-width: 760px; padding: 8px 28px 32px; }
  .container.container-wide { max-width: 1240px; }

  /* Home: groups and the week side by side. */
  .home-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 24px; align-items: start; }

  /* People admin: the list reads as a table. */
  .container-wide .pa-search { max-width: 640px; }
  .container-wide .pa-row-main { flex: 1 1 auto; }
  .container-wide .pa-who {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(240px, 1.2fr);
    align-items: center;
    column-gap: 24px;
    width: 100%;
  }
  .container-wide .pa-email { margin: 0; }

  /* Messages: the list and the conversation side by side, like Mail. */
  .split { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 0; align-items: start; min-height: calc(100vh - var(--nav-h) - 40px); }
  .split-list { display: block !important; position: sticky; top: calc(var(--nav-h) + 8px); max-height: calc(100vh - var(--nav-h) - 24px); overflow-y: auto; padding-right: 16px; border-right: 0.5px solid var(--sep); }
  .split-main { padding-left: 24px; min-width: 0; }
}
