/* 
 * masterworking.css
 * Layout and visual overrides for the MasterWorking Elemental customizations.
 *
 * Copyright (c) 2024-2026, MasterWorking Technology, All Rights Reserved
 * www.masterworking.tech     partnerships@mathscitech.org
 */

/* ===== Base typography ===== */

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ===== Header ===== */

/* Outer header element */
#mw-header {
    border-bottom: 1px solid #e0e0e0;
    padding: 0.5rem 1rem;
    background: #ffffff;
}

/* Flex container for title + nav */
.mw-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap; /* Stacks on narrow screens */
}

/* Site title / logo area */
.mw-header-left {
    font-weight: 600;
    font-size: 1rem;
}

/* Navigation area (content comes from GlobalArea) */
.mw-header-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Let theme / Concrete's own nav CSS handle link styling.
   You can tighten it further here if needed. */


/* ===== Main content ===== */

/* Main wrapper for "Full" template pages */
.mw-main {
    padding: 1.5rem 1rem;
}

/* 
 * On larger screens, constrain the width somewhat for readability.
 * Concrete wraps areas in DIVs, so this selector targets the first-level children.
 */
@media (min-width: 960px) {
    .mw-main > div {
        max-width: 1100px;
        margin: 0 auto;
    }
}

/* ===== Footer ===== */

#mw-footer {
    border-top: 1px solid #e0e0e0;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #555;
    background: #ffffff;
}

/* Flex layout for footer content */
.mw-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.mw-footer-title {
    font-weight: 500;
}

/* Right-side login/logout link area */
.mw-footer-right a {
    text-decoration: none;
    color: inherit; /* Use the footer text color */
}

/* ===== Heading and text spacing (optional, but makes pages tighter) ===== */

h1, .h1 {
    font-size: 1.9rem;
    margin-bottom: 0.75rem;
}

h2, .h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

p,
ul,
ol {
    margin-top: 0.25rem;
    margin-bottom: 0.6rem;
}

/*test applicability */
/* html { outline: 6px solid magenta !important; } */
