/* NOMW developer note: Base palette, typography, sidebar/workspace and responsive shell. Historical control selectors are overridden by buttons.css, loaded last; change shared controls there. */
:root {
    --navy: #172b45;
    --orange: #b96320;
    --orange-dark: #914813;
    --background: #f5f6f8;
    --text: #203149;
    --muted: #647084;
    --border: #e1e6ed;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: "Segoe UI", system-ui, sans-serif;
    color: var(--text);
    background: var(--background);
    line-height: 1.55;
}
a { color: inherit; }
button { font: inherit; }
a:focus-visible, button:focus-visible {
    outline: 3px solid #dc8b42;
    outline-offset: 4px;
}
.skip-link {
    position: absolute; top: -100px; left: 16px;
    background: white; padding: 12px; z-index: 10;
}
.skip-link:focus { top: 10px; }
.app { min-height: 100vh; }
.sidebar { background: var(--navy); color: white; padding: 20px; }
.brand {
    display: flex; align-items: center; gap: 12px;
    text-decoration: none; font-size: 23px; font-weight: 750;
    letter-spacing: .04em;
}
.brand-mark {
    background: var(--orange); width: 42px; height: 42px;
    display: grid; place-items: center; border-radius: 12px;
}
.brand small {
    display: block; color: #b9c6d6; font-size: 11px;
    font-weight: 400; letter-spacing: .08em;
}
nav { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
nav a {
    padding: 11px 14px; border-radius: 8px;
    text-decoration: none; color: #d5deea; font-size: 14px;
}
nav a:hover { background: #253e5b; color: white; }
nav a[aria-current="page"] {
    background: #30455f; color: white;
    box-shadow: inset 3px 0 var(--orange);
}
.sidebar-footer { display: none; }
.workspace { min-width: 0; }
.topbar {
    min-height: 70px; padding: 14px 20px;
    background: white; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; font-size: 13px; color: var(--muted);
}
.account { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.account span { overflow-wrap: anywhere; }
.account form { margin: 0; }

main { padding: 28px 20px; max-width: 1500px; margin: auto; }
.page-heading { display: flex; flex-direction: column; gap: 16px; margin-bottom: 28px; }
.eyebrow {
    color: var(--orange-dark); font-size: 11px; font-weight: 750;
    letter-spacing: .13em; margin: 0 0 8px;
}
h1 { font-size: clamp(28px, 3vw, 36px); letter-spacing: -.035em; margin: 0; }
h2 { font-size: 19px; letter-spacing: -.02em; margin: 0 0 10px; }
h3 { font-size: 17px; margin: 10px 0; }
p { margin: 0 0 12px; }
.subtitle { color: var(--muted); margin: 7px 0 0; }
.badge {
    align-self: flex-start; padding: 6px 12px; border-radius: 30px;
    font-size: 12px; border: 1px solid var(--border);
}
.neutral { background: white; color: var(--muted); }
.panel { background: white; border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
.assignment { text-align: center; padding: 38px 22px; margin-bottom: 30px; }
.assignment p { max-width: 520px; margin: 0 auto; color: var(--muted); }
.empty-icon {
    width: 48px; height: 48px; display: grid; place-items: center;
    background: #f9eee4; color: var(--orange-dark);
    border-radius: 14px; margin: 0 auto 16px; font-size: 24px;
}
.section-heading {
    display: flex; justify-content: space-between; align-items: center;
    gap: 12px; flex-wrap: wrap; margin-bottom: 14px;
}
.section-heading h2 { margin: 0; }
.muted { color: var(--muted); font-size: 13px; }
.operations-grid { display: grid; gap: 16px; }
.card-label { color: var(--orange-dark); font-size: 10px; font-weight: 750; letter-spacing: .1em; }
.task-card p { color: var(--muted); font-size: 14px; }
.availability { display: block; border-top: 1px solid var(--border); padding-top: 15px; margin-top: 22px; color: var(--muted); font-size: 12px; }
.training-banner {
    margin-top: 28px; padding: 26px; background: #f3e8dd;
    border: 1px solid #e9d4c1; border-radius: 12px;
    display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
}
.training-banner p:last-child { margin: 0; font-size: 14px; }




.learning-layout { display: grid; gap: 22px; }
.learning-main { min-height: 380px; }
.empty-learning { text-align: center; padding: 58px 12px; }
.empty-learning p { max-width: 440px; margin: auto; color: var(--muted); }
.learning-aside { display: grid; align-content: start; gap: 20px; }
.learning-aside p { font-size: 14px; }
.learning-note { padding: 4px 18px; color: var(--muted); }
.learning-note h3 { color: var(--text); }
@media (min-width: 800px) {
    .app { display: grid; grid-template-columns: 230px minmax(0, 1fr); }
    .sidebar { position: sticky; top: 0; height: 100vh; padding: 30px 20px; display: flex; flex-direction: column; }
    nav { flex-direction: column; margin-top: 44px; }
    .sidebar-footer { display: block; margin-top: auto; font-size: 11px; color: #b9c6d6; padding: 12px; }
    .topbar { padding: 16px 36px; }
    main { padding: 38px 36px; }
    .page-heading { flex-direction: row; justify-content: space-between; align-items: center; }
    .badge { align-self: center; }
    .training-banner { flex-direction: row; justify-content: space-between; align-items: center; }
}
@media (min-width: 1100px) {
    .operations-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .learning-layout { grid-template-columns: minmax(0, 1fr) 290px; }
}

.lesson-actions {border-top:1px solid var(--border);padding-top:22px;}
