/* =================================================================
   WIDESCREEN layout (laptops, desktops, landscape iPads)
   Active when <html data-layout="wide">.
   ================================================================= */
html[data-layout="wide"] {
    font-size: 12.8px; /* 80% of 16px: desktop density (replaces the old 80% zoom) */
}

.wide-shell {
    position: fixed;
    inset: 0;
}

html[data-layout="wide"] .content {
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    padding: 2.5rem 2rem 3rem;
}

/* Desktop controls: HIG macOS sizing (smaller than iOS touch targets) */
html[data-layout="wide"] .btn {
    min-height: 2.5rem;
    font-size: 0.95rem;
}

html[data-layout="wide"] .btn-sm {
    min-height: 2rem;
    font-size: 0.85rem;
}

html[data-layout="wide"] .form-control,
html[data-layout="wide"] .form-select {
    min-height: 2.6rem;
    font-size: 0.95rem;
}


/* Landscape tablets: slightly tighter gutters */
@media (max-width: 1199.98px) {
    html[data-layout="wide"] .content {
        padding: 1.75rem 1.5rem 2.5rem;
    }
}

/* Auth: split screen */
html[data-layout="wide"] .auth-brand {
    flex: 0 0 42%;
    max-width: 640px;
    padding: 3rem;
}

html[data-layout="wide"] .auth-main { padding: 3rem 2rem 0; overflow-y: auto; height: 100vh; justify-content: flex-start; }
html[data-layout="wide"] .auth-form { max-width: 460px; margin: auto 0; }
html[data-layout="wide"] .auth-form:has(.row.g-3) { max-width: 760px; } /* Register: two-column form */
html[data-layout="wide"] .page .card { max-width: none; }
