/* ============================================================
   SATR LAYOUT — unified app shells (single source of truth)
   Requires styles/tokens.css BEFORE it.
   Responsive collapse lives in styles/responsive.css (loads last).
   Pages must NOT redefine .layout inline — use a variant class:
     <div class="layout layout-3col">  feed + right panel (index)
     <div class="layout layout-2col">  sidebar + content (default)
   ============================================================ */

.layout {
    display: grid;
    max-width: 1240px;
    margin: 0 auto;
    min-height: 100vh;
    gap: 0;
    position: relative;
}

/* Sidebar + content + right widget panel */
.layout-3col {
    grid-template-columns: 260px minmax(0, 1fr) 300px;
}

/* Sidebar + content */
.layout-2col {
    grid-template-columns: 260px minmax(0, 1fr);
}

/* Narrower container variant (dashboard) */
.layout-narrow {
    max-width: 1200px;
}

/* Standard content column (learn) */
.main-column {
    padding: 28px 24px;
    min-width: 0;
    min-height: 100vh;
}

/* Standard content column (projects, developers, groups, code, project) */
.main-content {
    padding: 24px 28px;
    max-width: 1020px;
    min-width: 0;
    width: 100%;
}

/* Standard right widget panel */
.right-panel {
    padding: 24px 16px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}
