/* ============================================================
   MIRAR — Global Stylesheet v2
   Editorial layout inspired by arts.ac.uk
   Color theme: MIRAR logo — crimson red, deep black, off-white
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@300;400;500;600;700&display=swap');

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Brand palette — from MIRAR logo */
    --mirar-red: #C0221A;
    --mirar-red-dark: #901910;
    --mirar-red-light: #E8352C;
    --mirar-black: #0d0d0d;
    --mirar-navy: #0d0d0d; /* alias — existing code uses navy */
    --mirar-navy-mid: #1a1a1a;
    --mirar-navy-deep: #000000;
    --mirar-white: #FFFFFF;
    --mirar-off: #F5F3EF;
    --mirar-warm: #FAF8F5;
    /* Logo mosaic accent hues (colorful grid) */
    --accent-pink: #E8A0B4;
    --accent-peach: #F2B99A;
    --accent-lavender: #B8AADC;
    --accent-sage: #A8C8A4;
    --accent-sky: #9EC4DC;
    --accent-gold: #E8C870;
    --mirar-green: #1B6B45;
    --text-dark: #0d0d0d;
    --text-muted: #5A5A5A;
    --border: #E0DDD8;
    --border-light: #EEEBE6;
    --font-serif: 'DM Serif Display', Georgia, serif;
    --font-sans: 'DM Sans', system-ui, sans-serif;
}

html, body {
    height: 100%;
    font-family: var(--font-sans);
    font-size: 15px;
    color: var(--text-dark);
    background: var(--mirar-white);
    -webkit-font-smoothing: antialiased;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 0;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
}

main.flex-grow {
    flex: 1;
}

/* ── Brand Colour Utilities ───────────────────────────────── */
.bg-blue, .bg-navy {
    background-color: var(--mirar-black);
}

.bg-navy-deep {
    background-color: #000;
}

.bg-off {
    background-color: var(--mirar-off);
}

.text-blue {
    color: var(--mirar-black);
}

.text-red {
    color: var(--mirar-red);
}

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    line-height: 1.08;
    letter-spacing: -0.3px;
    color: var(--text-dark);
}

h1 {
    font-size: 3rem;
    font-weight: 400;
}

h2 {
    font-size: 2.1rem;
    font-weight: 400;
}

h3 {
    font-size: 1.4rem;
    font-weight: 400;
}

h4 {
    font-size: 1.1rem;
    font-weight: 400;
}

p {
    line-height: 1.78;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-weight: 300;
}

    p:last-child {
        margin-bottom: 0;
    }

a {
    color: var(--mirar-black);
    text-decoration: none;
    transition: color .15s;
}

    a:hover {
        color: var(--mirar-red);
    }

.section-label {
    font-size: 10px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--mirar-red);
    font-weight: 600;
    font-family: var(--font-sans);
    margin-bottom: 10px;
    display: block;
}

.section-divider {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-bottom: 18px;
    border-bottom: 1.5px solid var(--text-dark);
    margin-bottom: 36px;
}

.section-divider-link {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--mirar-black);
    text-decoration: none;
    transition: color .15s;
}

    .section-divider-link:hover {
        color: var(--mirar-red);
    }

/* ── Mosaic accent bar ────────────────────────────────────── */
.mosaic-bar {
    height: 4px;
    display: flex;
    width: 100%;
}

    .mosaic-bar span {
        flex: 1;
    }

/* ── Buttons ──────────────────────────────────────────────── */
.btn-mirar-primary {
    background: var(--mirar-red);
    color: var(--mirar-white);
    padding: 12px 28px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    transition: background .15s, transform .15s;
    border-radius: 0;
    font-family: var(--font-sans);
}

    .btn-mirar-primary:hover {
        background: var(--mirar-red-dark);
        color: var(--mirar-white);
        transform: translateY(-1px);
    }

.btn-mirar-outline {
    background: transparent;
    color: var(--mirar-black);
    padding: 11px 28px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    border: 1.5px solid var(--mirar-black);
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    transition: all .15s;
    border-radius: 0;
    font-family: var(--font-sans);
}

    .btn-mirar-outline:hover {
        background: var(--mirar-black);
        color: var(--mirar-white);
    }

.btn-mirar-outline-white {
    background: transparent;
    color: var(--mirar-white);
    padding: 11px 28px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    border: 1.5px solid rgba(255,255,255,.4);
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    transition: all .15s;
    border-radius: 0;
    font-family: var(--font-sans);
}

    .btn-mirar-outline-white:hover {
        border-color: rgba(255,255,255,.8);
        color: var(--mirar-white);
    }

/* Bootstrap button overrides */
.btn-primary {
    background-color: var(--mirar-black) !important;
    border-color: var(--mirar-black) !important;
    border-radius: 0 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: .1em !important;
    text-transform: uppercase !important;
    font-family: var(--font-sans) !important;
    padding: 10px 24px !important;
}

.btn-danger {
    background-color: var(--mirar-red) !important;
    border-color: var(--mirar-red) !important;
    border-radius: 0 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: .1em !important;
    text-transform: uppercase !important;
    font-family: var(--font-sans) !important;
    padding: 10px 24px !important;
}

/* ── Navigation (new custom nav) ──────────────────────────── */
.mirar-nav {
    background: var(--mirar-white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1050;
}

.mirar-nav-inner {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    padding: 0 40px;
    height: 64px;
}

.mirar-nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    margin-right: 48px;
}

    .mirar-nav-logo img {
        height: 36px;
        width: auto;
    }

/* Primary nav links */
.mirar-nav-links {
    display: flex;
    align-items: stretch;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

    .mirar-nav-links > li {
        position: relative;
        display: flex;
        align-items: stretch;
    }

        .mirar-nav-links > li > a,
        .mirar-nav-links > li > .nav-btn {
            color: var(--text-dark);
            text-decoration: none;
            font-size: 12px;
            font-weight: 500;
            letter-spacing: .04em;
            padding: 0 18px;
            display: flex;
            align-items: center;
            gap: 5px;
            border-bottom: 2px solid transparent;
            transition: color .15s, border-color .15s;
            background: none;
            border-left: none;
            border-right: none;
            border-top: none;
            cursor: pointer;
            font-family: var(--font-sans);
            white-space: nowrap;
        }

            .mirar-nav-links > li > a:hover,
            .mirar-nav-links > li > a.active,
            .mirar-nav-links > li > .nav-btn:hover,
            .mirar-nav-links > li.open > .nav-btn {
                color: var(--mirar-red);
                border-bottom-color: var(--mirar-red);
            }

/* Dropdown chevron */
.nav-btn .nav-chevron {
    display: inline-block;
    font-size: 10px;
    transition: transform .2s;
    opacity: .5;
}

.mirar-nav-links > li.open > .nav-btn .nav-chevron {
    transform: rotate(180deg);
    opacity: 1;
}

/* ── MEGA DROPDOWN ────────────────────────────────────────── */
.nav-dropdown {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    min-width: 240px;
    background: var(--mirar-white);
    border: 1px solid var(--border);
    border-top: 3px solid var(--mirar-red);
    box-shadow: 0 12px 40px rgba(0,0,0,.10), 0 2px 8px rgba(0,0,0,.06);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s;
    z-index: 200;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}

.mirar-nav-links > li.open > .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Wide mega for courses */
.nav-dropdown.wide {
    min-width: 580px;
    left: 0;
}

/* Columns layout */
.nav-dropdown-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
}

.nav-dropdown-inner {
    padding: 6px 0 10px;
}

/* Vertical divider between columns */
.nav-dropdown-cols > .nav-dropdown-inner + .nav-dropdown-inner {
    border-left: 1px solid var(--border);
}

/* Links */
.nav-dropdown a {
    display: flex;
    align-items: center;
    padding: 8px 20px;
    font-size: 12.5px;
    font-weight: 400;
    color: var(--text-dark);
    text-decoration: none;
    transition: background .1s, color .1s, padding-left .1s;
    line-height: 1.45;
    gap: 8px;
}

    .nav-dropdown a:hover {
        background: var(--mirar-off);
        color: var(--mirar-red);
        padding-left: 24px;
    }

    .nav-dropdown a.active {
        color: var(--mirar-red);
        font-weight: 600;
    }

/* Section groupings */
.nav-dropdown-section {
    padding: 4px 0;
}

    .nav-dropdown-section + .nav-dropdown-section {
        border-top: 1px solid var(--border);
        margin-top: 4px;
        padding-top: 6px;
    }

/* Category headings */
.nav-dropdown-heading {
    padding: 10px 20px 4px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--mirar-red);
    font-family: var(--font-sans);
    opacity: .75;
}

/* Right-side CTA panel */
.nav-dropdown-cta {
    background: var(--mirar-navy, #1a2133);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    border-left: 1px solid rgba(255,255,255,.08);
    height: 100%;
}

.nav-dropdown-cta-title {
    font-family: var(--font-serif);
    font-size: 15px;
    color: #fff;
    line-height: 1.3;
    font-weight: 600;
}

.nav-dropdown-cta p {
    font-size: 11.5px;
    color: rgba(255,255,255,.65);
    line-height: 1.55;
    margin: 0;
}

/* View all link row */
.nav-dropdown-viewall {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--mirar-red) !important;
    border-top: 1px solid var(--border);
    margin-top: 4px;
    gap: 6px;
}

    .nav-dropdown-viewall:hover {
        background: var(--mirar-off);
        padding-left: 24px !important;
    }

/* ── Nav right (CTA + login) ─────────────────────────────── */
.mirar-nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 24px;
}

.mirar-nav-cta {
    background: var(--mirar-red);
    color: var(--mirar-white) !important;
    padding: 8px 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 0;
    transition: background .15s;
    font-family: var(--font-sans);
    white-space: nowrap;
}

    .mirar-nav-cta:hover {
        background: var(--mirar-red-dark) !important;
    }

.mirar-nav-login {
    color: var(--text-muted);
    font-size: 18px;
    text-decoration: none;
    transition: color .15s;
    display: flex;
    align-items: center;
}

    .mirar-nav-login:hover {
        color: var(--mirar-red);
    }

/* ── Mobile hamburger ─────────────────────────────────────── */
.mirar-nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    align-items: center;
    justify-content: center;
}

    .mirar-nav-hamburger span {
        display: block;
        width: 22px;
        height: 1.5px;
        background: var(--text-dark);
        transition: all .2s;
    }

/* ── Ticker ───────────────────────────────────────────────── */
.mirar-ticker {
    background: var(--mirar-black);
    padding: 8px 40px;
    font-size: 11.5px;
    color: rgba(255,255,255,.6);
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
}

/* ── Ticker Animation ───────────────────────────── */

.mirar-ticker-text {
    display: inline-flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    min-width: max-content;
    animation: mirarTickerMove 60s linear infinite;
    padding-left: 100%;
}

@keyframes mirarTickerMove {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

.mirar-ticker-badge {
    background: var(--mirar-red);
    color: var(--mirar-white);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 2px 10px;
    margin-right: 18px;
    display: inline-block;
    vertical-align: middle;
}

/* ── Page Hero ────────────────────────────────────────────── */
.page-hero {
    background: var(--mirar-black);
    color: var(--mirar-white);
    padding: 80px 0 72px;
    position: relative;
    overflow: hidden;
}

    .page-hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--accent-pink) 0%, var(--accent-peach) 16.6%, var(--accent-lavender) 33.3%, var(--accent-sage) 50%, var(--accent-sky) 66.6%, var(--accent-gold) 83.3%, var(--accent-pink) 100%);
    }

    .page-hero .section-label {
        color: rgba(255,255,255,.4);
    }

    .page-hero h1,
    .page-hero h2 {
        color: var(--mirar-white);
        font-size: 3.4rem;
        margin-bottom: 20px;
        font-weight: 400;
    }

.page-hero-sub {
    font-size: 16px;
    color: rgba(255,255,255,.65);
    line-height: 1.75;
    margin-bottom: 0;
    font-weight: 300;
}

/* ── Home Hero ────────────────────────────────────────────── */
.home-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 520px;
    background: var(--mirar-black);
}

.home-hero-text {
    padding: 80px 64px 72px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    z-index: 1;
}

.home-hero-eyebrow {
    font-size: 10px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(255,255,255,.4);
    font-family: var(--font-sans);
    font-weight: 500;
    margin-bottom: 20px;
}

.home-hero h1 {
    font-size: 4rem;
    color: var(--mirar-white);
    line-height: 1.02;
    margin-bottom: 24px;
    font-weight: 400;
}

    .home-hero h1 em {
        font-style: italic;
        color: var(--mirar-red);
    }

.home-hero-sub {
    font-size: 15px;
    color: rgba(255,255,255,.6);
    line-height: 1.75;
    max-width: 400px;
    margin-bottom: 36px;
    font-weight: 300;
}

.home-hero-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.home-hero-visual {
    background: #1a1a1a;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mosaic grid pattern for visual panel */
.home-hero-mosaic {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(8, 1fr);
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    opacity: .18;
}

    .home-hero-mosaic span {
        border: .5px solid rgba(255,255,255,.08);
    }

.home-hero-visual-bg {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.home-hero-label {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: var(--mirar-red);
    color: var(--mirar-white);
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: 6px 14px;
    font-family: var(--font-sans);
}

/* ── Quick-links strip ────────────────────────────────────── */
.quick-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid var(--border);
}

.quick-item {
    padding: 22px 32px;
    border-right: 1px solid var(--border);
    text-decoration: none;
    display: block;
    transition: background .15s;
    background: var(--mirar-white);
    position: relative;
}

    .quick-item::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: var(--mirar-red);
        transform: scaleX(0);
        transition: transform .2s;
        transform-origin: left;
    }

    .quick-item:hover::after {
        transform: scaleX(1);
    }

    .quick-item:last-child {
        border-right: none;
    }

    .quick-item:hover {
        background: var(--mirar-off);
    }

.qi-label {
    font-size: 9.5px;
    text-transform: uppercase;
    letter-spacing: .16em;
    color: var(--mirar-red);
    margin-bottom: 5px;
    font-weight: 600;
    font-family: var(--font-sans);
}

.qi-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
    font-family: var(--font-sans);
    line-height: 1.35;
}

.qi-arrow {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 8px;
    display: block;
}

/* ── Editorial card grid ──────────────────────────────────── */
.editorial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border);
}

.editorial-card {
    padding: 40px 36px;
    border-right: 1px solid var(--border);
    transition: background .15s;
}

    .editorial-card:last-child {
        border-right: none;
    }

    .editorial-card:hover {
        background: var(--mirar-warm);
    }

.ec-num {
    font-size: 10px;
    font-weight: 700;
    color: var(--mirar-red);
    letter-spacing: .14em;
    font-family: var(--font-sans);
    margin-bottom: 18px;
}

.ec-title {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: 14px;
}

.ec-text {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.72;
    font-weight: 300;
}

.ec-link {
    font-size: 11px;
    font-weight: 600;
    color: var(--mirar-black);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-top: 22px;
    display: block;
    font-family: var(--font-sans);
    text-decoration: none;
    transition: color .15s;
}

    .ec-link:hover {
        color: var(--mirar-red);
    }

/* ── Feature split ────────────────────────────────────────── */
.feature-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.feature-text {
    background: var(--mirar-black);
    color: var(--mirar-white);
    padding: 80px 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .feature-text .section-label {
        color: rgba(255,255,255,.4);
    }

    .feature-text h2, .feature-text h3 {
        color: var(--mirar-white);
        margin-bottom: 18px;
    }

    .feature-text p {
        color: rgba(255,255,255,.65);
        margin-bottom: 28px;
        font-weight: 300;
    }

.feature-visual {
    background: #1a1a1a;
    position: relative;
    overflow: hidden;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-visual-bg {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 48px 48px;
}

/* ── Stat row ─────────────────────────────────────────────── */
.stat-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-top: 44px;
}

.stat-item {
    border-top: 1px solid rgba(255,255,255,.18);
    padding-top: 18px;
}

.stat-num {
    font-family: var(--font-serif);
    font-size: 2.6rem;
    font-weight: 400;
    color: var(--mirar-red);
    line-height: 1;
}

.stat-label {
    font-size: 10px;
    color: rgba(255,255,255,.5);
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-family: var(--font-sans);
    font-weight: 500;
}

/* ── Course list (Courses.razor / CourseCategoryPage.razor) ── */
.course-list-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--border);
}

.course-list-item {
    background: var(--mirar-white);
    padding: 20px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: background .15s, border-color .15s;
}

    .course-list-item:hover {
        background: var(--mirar-off);
        border-left-color: var(--mirar-red);
    }

        .course-list-item:hover .cli-arrow {
            color: var(--mirar-red);
        }

.cli-cat {
    font-size: 9.5px;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--mirar-red);
    margin-bottom: 4px;
    font-weight: 600;
    font-family: var(--font-sans);
}

.cli-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
    font-family: var(--font-sans);
    line-height: 1.35;
}

.cli-arrow {
    color: var(--border);
    font-size: 18px;
    font-weight: 300;
    flex-shrink: 0;
    margin-left: 16px;
    transition: color .15s;
}

/* ── Course Detail page (CourseDetail.razor) ──────────────── */

/* Hero overrides */
.cd-hero {
    padding-bottom: 52px;
}

.cd-back {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(255,255,255,.38);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 20px;
    transition: color .15s;
}

    .cd-back:hover {
        color: rgba(255,255,255,.7);
    }

.cd-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 14px;
}

.cd-badge-sub {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    padding: 4px 12px;
    border: 1px solid rgba(255,255,255,.18);
    color: rgba(255,255,255,.55);
}

.cd-trust {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 22px;
}

.cd-tc {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,.45);
    display: flex;
    align-items: center;
    gap: 5px;
}

.cd-tc-hrd {
    color: rgba(255,255,255,.78);
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.14);
    padding: 3px 11px;
}

/* Outcomes strip */
.cd-outcomes {
    background: var(--mirar-off);
    border-bottom: 1px solid var(--border);
    padding: 32px 0;
}

.cd-outcomes-label {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--mirar-red);
    margin-bottom: 18px;
}

.cd-outcomes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.cd-out-card {
    background: #fff;
    border: 1px solid var(--border);
    padding: 18px;
    display: flex;
    gap: 13px;
    align-items: flex-start;
    transition: border-color .2s;
}

    .cd-out-card:hover {
        border-color: var(--mirar-red);
    }

.cd-out-em {
    font-size: 20px;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 1px;
}

.cd-out-txt {
    font-family: var(--font-sans);
    font-size: 13px;
    line-height: 1.5;
    font-weight: 500;
    color: var(--text-dark);
}

/* Body layout */
.cd-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 52px;
    align-items: start;
}

/* Left: content sections */
.cd-sec {
    margin-bottom: 40px;
}

.cd-sh {
    font-family: var(--font-sans);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .13em;
    color: var(--mirar-red);
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.cd-p {
    font-size: 14.5px;
    line-height: 1.78;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-weight: 300;
}

.cd-subsection {
    font-family: var(--font-sans);
    font-size: .9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 20px 0 10px;
}

.cd-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 14px;
}

    .cd-list li {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        font-size: 14px;
        color: var(--text-muted);
        line-height: 1.65;
        font-weight: 300;
    }

.cd-bull {
    color: var(--mirar-red);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
    font-family: var(--font-sans);
}

.cd-kv {
    display: grid;
    grid-template-columns: 170px 1fr;
    padding: 9px 0;
    border-bottom: 1px solid rgba(0,0,0,.045);
    align-items: baseline;
    gap: 14px;
}

    .cd-kv:last-child {
        border: none;
    }

.cd-kl {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--text-dark);
}

.cd-kv-val {
    font-size: 13.5px;
    color: var(--text-muted);
    font-weight: 300;
}

.cd-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 20px 0;
}

/* Sidebar */
.cd-sidebar {
    position: sticky;
    top: 72px;
}

.cd-sb-brand {
    background: var(--mirar-black);
    color: rgba(255,255,255,.65);
    padding: 16px 20px;
    font-family: var(--font-sans);
    font-size: 11.5px;
    line-height: 1.55;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

    .cd-sb-brand strong {
        color: #fff;
    }

.cd-sb-icon {
    font-size: 18px;
    flex-shrink: 0;
    line-height: 1;
}

.cd-sb-enrol {
    border: 1px solid var(--border);
    border-top: none;
    padding: 24px 20px;
}

    .cd-sb-enrol h3 {
        font-size: 1rem;
        margin-bottom: 18px;
        color: var(--text-dark);
        font-family: var(--font-serif);
    }

.cd-slabel {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .13em;
    color: var(--mirar-red);
    display: block;
    margin-bottom: 4px;
}

/* Register form fields */
.cd-form {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.cd-fi {
    font-family: var(--font-sans);
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-dark);
    background: #fff;
    outline: none;
    transition: border-color .15s;
}

    .cd-fi:focus {
        border-color: var(--mirar-red);
    }

    .cd-fi::placeholder {
        color: #bbb;
    }

textarea.cd-fi {
    resize: none;
}

.cd-form-success {
    background: var(--mirar-off);
    border-left: 3px solid var(--mirar-green);
    padding: 16px 20px;
}

.cd-form-success-label {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--mirar-green);
    margin-bottom: 4px;
}

.cd-form-success-msg {
    font-size: 13px;
    color: var(--text-muted);
}

.cd-form-error {
    background: #fef2f2;
    border-left: 3px solid var(--mirar-red);
    padding: 12px 16px;
    margin-bottom: 14px;
    font-size: 13px;
    color: var(--mirar-red);
    font-family: var(--font-sans);
}

/* Sidebar quick facts */
.cd-sb-facts {
    background: var(--mirar-off);
    padding: 16px 20px;
    margin-top: 1px;
}

.cd-facts-hd {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.cd-fr {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(0,0,0,.05);
}

    .cd-fr:last-child {
        border: none;
    }

.cd-fl {
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--text-muted);
    flex-shrink: 0;
    padding-top: 1px;
}

.cd-fv {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
    text-align: right;
}

/* Sidebar contact CTA */
.cd-sb-q {
    background: var(--mirar-off);
    padding: 16px 20px;
    margin-top: 1px;
    display: flex;
    gap: 11px;
    align-items: flex-start;
}

.cd-q-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.cd-q-title {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.cd-q-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

.cd-q-link {
    font-family: var(--font-sans);
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--mirar-black);
    text-decoration: none;
    margin-top: 6px;
    display: inline-block;
    transition: color .15s;
}

    .cd-q-link:hover {
        color: var(--mirar-red);
    }

/* Learning Pathway */
.cd-path {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
}

    /* Vertical connector line between dots */
    .cd-path::before {
        content: '';
        position: absolute;
        left: 7px;
        top: 16px;
        bottom: 16px;
        width: 2px;
        background: var(--border);
    }

.cd-pstep {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 0;
    position: relative;
}

.cd-pdot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: #fff;
    flex-shrink: 0;
    margin-left: -24px;
    z-index: 1;
    position: relative;
    margin-top: 2px;
}

.cd-pdot-on {
    border-color: var(--mirar-red);
    background: var(--mirar-red);
    box-shadow: 0 0 0 3px rgba(192,34,26,.12);
}

.cd-plabel {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.cd-pname {
    font-family: var(--font-sans);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-dark);
}

    .cd-pname a {
        color: var(--mirar-black);
        text-decoration: none;
        transition: color .15s;
    }

        .cd-pname a:hover {
            color: var(--mirar-red);
        }

.cd-pnote {
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.6;
    margin-top: 5px;
    font-weight: 300;
}

/* ── Pull quote ───────────────────────────────────────────── */
.pull-quote-section {
    padding: 96px 32px;
    text-align: center;
    background: var(--mirar-off);
    position: relative;
}

.pull-quote-mark {
    font-size: 80px;
    color: var(--mirar-red);
    line-height: .4;
    font-family: var(--font-serif);
    margin-bottom: 20px;
    display: block;
}

.pull-quote-text {
    font-family: var(--font-serif);
    font-size: 1.7rem;
    font-weight: 400;
    line-height: 1.45;
    color: var(--text-dark);
    max-width: 760px;
    margin: 0 auto;
    font-style: italic;
}

.pull-quote-src {
    margin-top: 28px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .18em;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-weight: 600;
}

/* ── Values grid ──────────────────────────────────────────── */
.values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}

.value-card {
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 44px 40px;
    transition: background .15s;
}

    .value-card:hover {
        background: var(--mirar-warm);
    }

.value-num {
    font-size: 10px;
    font-weight: 700;
    color: var(--mirar-red);
    letter-spacing: .14em;
    font-family: var(--font-sans);
    margin-bottom: 14px;
}

.value-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 14px;
}

.value-text {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.72;
    margin-bottom: 0;
    font-weight: 300;
}

/* ── Team card ────────────────────────────────────────────── */
.team-card {
    padding: 32px;
    display: flex;
    gap: 22px;
    background: var(--mirar-white);
    transition: background .15s;
    height: 100%;
}

    .team-card:hover {
        background: var(--mirar-warm);
    }

.team-avatar {
    width: 76px;
    height: 76px;
    flex-shrink: 0;
    object-fit: cover;
    transition: filter .3s;
}

.team-card:hover .team-avatar {
    filter: grayscale(0%);
}

.team-name {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 3px;
}

.team-role {
    font-size: 9.5px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--mirar-red);
    font-weight: 600;
    font-family: var(--font-sans);
    margin-bottom: 12px;
}

.team-bio {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.68;
    margin-bottom: 0;
    font-weight: 300;
}

/* ── Service icon card ────────────────────────────────────── */
.service-icon-card {
    text-align: center;
    padding: 40px 24px;
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
    transition: background .15s;
}

    .service-icon-card:hover {
        background: var(--mirar-warm);
    }

    .service-icon-card img {
        width: 56px;
        height: 56px;
        margin-bottom: 20px;
        object-fit: contain;
    }

.service-icon-title {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.service-icon-text {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 0;
    font-weight: 300;
}

/* ── RMS grid ─────────────────────────────────────────────── */
.rms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}

.rms-card {
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 40px 32px;
    text-align: center;
    transition: background .15s;
}

    .rms-card:hover {
        background: var(--mirar-warm);
    }

.rms-card-title {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.rms-card-text {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 0;
    font-weight: 300;
}

/* ── CTA band ─────────────────────────────────────────────── */
.cta-band {
    background: var(--mirar-black);
    color: var(--mirar-white);
    padding: 72px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .cta-band::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--accent-pink) 0%, var(--accent-peach) 16.6%, var(--accent-lavender) 33.3%, var(--accent-sage) 50%, var(--accent-sky) 66.6%, var(--accent-gold) 83.3%, var(--accent-pink) 100%);
    }

    .cta-band h2, .cta-band h3 {
        color: var(--mirar-white);
        margin-bottom: 16px;
    }

    .cta-band p {
        color: rgba(255,255,255,.65);
        max-width: 540px;
        margin: 0 auto 36px;
        font-size: 15px;
        font-weight: 300;
    }

.cta-band-btns {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Forms ────────────────────────────────────────────────── */
.form-label {
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--text-dark) !important;
    font-family: var(--font-sans);
    margin-bottom: 7px !important;
}

.form-control {
    border-radius: 0 !important;
    border: 1px solid var(--border) !important;
    font-family: var(--font-sans) !important;
    font-size: 14px !important;
    padding: 10px 14px !important;
    transition: border-color .15s !important;
}

    .form-control:focus {
        border-color: var(--mirar-black) !important;
        box-shadow: none !important;
        outline: none !important;
    }

/* ── Badges ───────────────────────────────────────────────── */
.badge-cert {
    background: var(--mirar-black);
    color: var(--mirar-white);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 0;
    font-family: var(--font-sans);
    display: inline-block;
}

.badge-public {
    background: var(--mirar-green);
    color: var(--mirar-white);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 0;
    font-family: var(--font-sans);
    display: inline-block;
}

/* ── Bootstrap card overrides ─────────────────────────────── */
.card {
    border-radius: 0 !important;
    border: 1px solid var(--border) !important;
}

.card-header {
    background: var(--mirar-off) !important;
    border-bottom: 1px solid var(--border) !important;
    border-radius: 0 !important;
    font-family: var(--font-sans) !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
    color: var(--text-dark) !important;
}

    .card-header.bg-dark {
        background: var(--mirar-black) !important;
        color: var(--mirar-white) !important;
    }

    .card-header.bg-primary {
        background: var(--mirar-black) !important;
        color: var(--mirar-white) !important;
    }

.list-group-item {
    border-radius: 0 !important;
    font-family: var(--font-sans) !important;
}

.list-group-item-action {
    font-size: 13.5px !important;
    color: var(--text-dark) !important;
}

    .list-group-item-action:hover {
        background: var(--mirar-off) !important;
        color: var(--mirar-black) !important;
    }

/* ── Footer ───────────────────────────────────────────────── */
.mirar-footer-top {
    background: var(--mirar-black);
    color: var(--mirar-white);
    padding: 64px 40px 52px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 52px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 400;
    color: var(--mirar-white);
    margin-bottom: 14px;
}

    .footer-logo span {
        color: var(--mirar-red);
    }

.footer-desc {
    font-size: 12.5px;
    color: rgba(255,255,255,.5);
    line-height: 1.75;
    margin-bottom: 20px;
    font-weight: 300;
}

.footer-address {
    font-size: 12px;
    color: rgba(255,255,255,.4);
    line-height: 1.7;
    font-weight: 300;
}

.footer-col-heading {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(255,255,255,.35);
    margin-bottom: 16px;
    font-family: var(--font-sans);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .footer-links a {
        color: rgba(255,255,255,.65);
        text-decoration: none;
        font-size: 13px;
        font-family: var(--font-sans);
        transition: color .15s;
        font-weight: 300;
    }

        .footer-links a:hover {
            color: var(--mirar-white);
        }

.mirar-footer-bottom {
    background: #000;
    padding: 14px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: rgba(255,255,255,.3);
    font-family: var(--font-sans);
}

    .mirar-footer-bottom a {
        color: rgba(255,255,255,.3);
        text-decoration: none;
        transition: color .15s;
    }

        .mirar-footer-bottom a:hover {
            color: rgba(255,255,255,.65);
        }

/* ── Utility ──────────────────────────────────────────────── */
.section-pad {
    padding: 80px 0;
}

.section-pad-sm {
    padding: 52px 0;
}

.bg-off {
    background: var(--mirar-off);
}

hr.mirar {
    border: none;
    border-top: 1px solid var(--border);
    margin: 52px 0;
}

/* ── Blazor ───────────────────────────────────────────────── */
#blazor-error-ui {
    display: none;
}

/* ── Navbar toggler (Bootstrap fallback) ──────────────────── */
.navbar-toggler {
    background: rgba(0,0,0,.06) !important;
    border: 1px solid var(--border) !important;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1100px) {
    .mirar-nav-inner {
        padding: 0 24px;
    }

    .mirar-nav-links > li > a,
    .mirar-nav-links > li > .nav-btn {
        padding: 0 12px;
    }
}

@media (max-width: 900px) {
    .mirar-nav-links {
        display: none;
    }

    .mirar-nav-hamburger {
        display: flex;
    }

    .home-hero {
        grid-template-columns: 1fr;
    }

    .home-hero-visual {
        display: none;
    }

    .home-hero h1 {
        font-size: 2.8rem;
    }

    .home-hero-text {
        padding: 60px 32px;
    }

    .quick-strip {
        grid-template-columns: 1fr 1fr;
    }

    .editorial-grid {
        grid-template-columns: 1fr;
    }

    .editorial-card {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .feature-split {
        grid-template-columns: 1fr;
    }

    .feature-visual {
        min-height: 260px;
    }

    .course-list-grid {
        grid-template-columns: 1fr;
    }

    .cd-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .cd-sidebar {
        position: static;
        margin-top: 40px;
    }

    .cd-outcomes-grid {
        grid-template-columns: 1fr 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    .stat-row {
        grid-template-columns: 1fr 1fr;
    }

    .rms-grid {
        grid-template-columns: 1fr 1fr;
    }

    .nav-dropdown.wide {
        min-width: 320px;
    }

    .nav-dropdown-cols {
        grid-template-columns: 1fr;
    }

    .nav-dropdown-cta {
        border-left: none;
        border-top: 1px solid var(--border);
    }
}

@media (max-width: 600px) {
    .quick-strip {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .home-hero-text {
        padding: 48px 24px;
    }

    .home-hero h1 {
        font-size: 2.2rem;
    }

    .rms-grid {
        grid-template-columns: 1fr;
    }

    .cd-outcomes-grid {
        grid-template-columns: 1fr;
    }

    .cd-trust {
        gap: 10px;
    }

    .mirar-ticker {
        padding: 8px 20px;
    }

    .page-hero h1, .page-hero h2 {
        font-size: 2.4rem;
    }

    .mirar-footer-top {
        padding: 48px 24px 40px;
    }

    .mirar-footer-bottom {
        padding: 12px 24px;
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }
}

ol, ul {
    padding: 0;
}

/* ── WhatsApp buttons (MIRAR style) ── */
.btn-mirar-wa {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: #fff;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    padding: 11px 22px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    letter-spacing: 0.03em;
    transition: background .2s, transform .15s;
    white-space: nowrap;
    text-decoration: none;
}

    .btn-mirar-wa:hover {
        background: #1ebe5d;
        color: #fff;
        transform: translateY(-1px);
    }


/* ═══════════════════════════════════════════════════════════
   LOGIN PAGE
   Self-contained: full-page intel brief + a slide-in sign-in
   drawer, plus all field/button styling. Nothing here depends
   on a rule defined elsewhere in the file.
   Replace the ENTIRE existing "LOGIN PAGE" section in app.css
   (from this header down to the "TRAINING CALENDAR" header) with
   this block.
   ═══════════════════════════════════════════════════════════ */

/* ── Full-page shell — simple centered sign-in card ──────────── */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mirar-off, #F5F3EF);
    padding: 40px 20px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 48px 40px 40px;
    background: var(--mirar-white, #fff);
    border: 1px solid var(--border, #E0DDD8);
    box-shadow: 0 1px 2px rgba(13,13,13,0.03), 0 20px 50px rgba(13,13,13,0.06);
}

.login-heading-row {
    margin-bottom: 4px;
}

@media (max-width: 480px) {
    .login-card {
        padding: 40px 24px 32px;
    }
}

/* Brand */
.login-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-family: var(--font-serif, Georgia, serif);
    font-size: 30px;
    font-weight: 900;
    color: var(--mirar-navy, #1a2340);
    letter-spacing: -1px;
    text-decoration: none;
    margin-bottom: 36px;
    line-height: 1;
}

    .login-brand span:first-of-type {
        color: var(--mirar-red, #c0392b);
    }

.login-brand-sub {
    display: block;
    font-family: var(--font-sans, sans-serif);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: var(--text-muted, #888);
    margin-top: 8px;
    font-weight: 600;
}

/* Kicker — same eyebrow treatment as the homepage hero / section labels */
.login-kicker {
    font-size: 10px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--mirar-red, #C0221A);
    font-weight: 600;
    margin-bottom: 10px;
    font-family: var(--font-sans, sans-serif);
}

/* Heading */
.login-heading {
    font-size: 1.25rem;
    margin-bottom: 5px;
    font-family: var(--font-serif, Georgia, serif);
    color: var(--mirar-navy, #1a2340);
    font-weight: 700;
}

    .login-heading em {
        font-style: italic;
        color: var(--mirar-red, #C0221A);
        font-weight: 400;
    }

.login-sub {
    font-size: 13px;
    color: var(--text-muted, #888);
    margin-bottom: 24px;
    line-height: 1.6;
}

/* Banners */
.login-banner {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 11px 14px;
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 1.5;
    border-radius: 0 2px 2px 0;
}

.login-banner--error {
    background: #fef2f2;
    border-left: 3px solid var(--mirar-red, #c0392b);
    color: var(--mirar-red, #c0392b);
    animation: login-shake .35s ease;
}

.login-banner--warn {
    background: #fffbeb;
    border-left: 3px solid #d97706;
    color: #92400e;
}

@keyframes login-shake {
    0%,100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-5px);
    }

    40% {
        transform: translateX(5px);
    }

    60% {
        transform: translateX(-3px);
    }

    80% {
        transform: translateX(3px);
    }
}

/* Fields */
.login-field {
    margin-bottom: 18px;
}

.login-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--text-dark, #222);
    margin-bottom: 7px;
    font-family: var(--font-sans, sans-serif);
}

.login-pass-wrap {
    position: relative;
}

.login-input {
    display: block;
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border, #e5e5e5);
    background: var(--mirar-white, #fff);
    font-size: 14px;
    font-family: var(--font-sans, sans-serif);
    color: var(--text-dark, #222);
    outline: none;
    transition: border-color .15s;
    box-sizing: border-box;
    border-radius: 0;
    -webkit-appearance: none;
}

    .login-input:focus {
        border-color: var(--mirar-navy, #1a2340);
    }

    .login-input.login-input--error {
        border-color: var(--mirar-red, #c0392b);
    }

    .login-input:disabled {
        background: var(--mirar-off, #f5f5f3);
        opacity: .6;
        cursor: not-allowed;
    }

/* Password field needs room for eye button */
.login-pass-wrap .login-input {
    padding-right: 44px;
}

/* Eye toggle */
.login-eye {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted, #888);
    cursor: pointer;
    padding: 4px;
    font-size: 15px;
    line-height: 1;
    transition: color .15s;
}

    .login-eye:hover {
        color: var(--mirar-navy, #1a2340);
    }

/* Submit button */
.login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px;
    background: var(--mirar-navy, #1a2340);
    color: #fff;
    border: none;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-family: var(--font-sans, sans-serif);
    cursor: pointer;
    transition: background .18s;
    margin-top: 8px;
}

    .login-btn:hover:not(:disabled) {
        background: var(--mirar-red, #c0392b);
        transform: translateY(-1px);
    }

    .login-btn:disabled {
        opacity: .45;
        cursor: not-allowed;
    }

/* Spinner inside button */
.login-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: login-spin .7s linear infinite;
    flex-shrink: 0;
}

@keyframes login-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Attempts hint */
.login-attempts-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    font-size: 11px;
    color: #d97706;
    margin-top: 10px;
    font-family: var(--font-sans, sans-serif);
}

/* Back link */
.login-back {
    text-align: center;
    margin-top: 28px;
}

    .login-back a {
        font-size: 12px;
        color: var(--text-muted, #888);
        text-decoration: none;
        transition: color .15s;
    }

        .login-back a:hover {
            color: var(--mirar-navy, #1a2340);
        }

.login-credit {
    text-align: center;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-muted, #888);
    opacity: .55;
    margin-top: 22px;
}

/* ═══════════════════════════════════════════════════════════
   DAILY BRIEF PAGE  (DailyBrief.razor)
   Standalone page hosting the <IntelBrief /> component, reached
   from its own "Daily Brief" nav item (previously lived behind
   the login page).
   ═══════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════
   DAILY BRIEF PAGE  (DailyBrief.razor)
   Standalone page — was previously the IntelBrief component
   embedded behind the login page; now merged directly into this
   page (see DailyBrief.razor.css for the .intel-brief / .ib-*
   styling, scoped to this component).
   ═══════════════════════════════════════════════════════════ */
.daily-brief-page {
    background: var(--mirar-off, #F5F3EF);
}

.daily-brief-page-inner {
    margin: 0 auto;
}

.daily-brief-shell {
    background: var(--mirar-off, #F5F3EF);
    border: 1px solid var(--border, #E0DDD8);
    box-shadow: 0 1px 2px rgba(13,13,13,0.03), 0 6px 16px rgba(13,13,13,0.04);
    display: flex;
    min-height: 640px;
}

    /* .intel-brief normally relies on a 100%-height flex ancestor
       (it used to sit in the full-viewport login layout); here it
       just needs to fill this shell instead. */
    .daily-brief-shell .intel-brief {
        flex: 1;
        min-width: 0;
        height: auto;
    }

@media (max-width: 640px) {
    .daily-brief-page {
        padding: 32px 16px 60px;
    }

    .daily-brief-shell {
        min-height: 0;
    }
}

/* ═══════════════════════════════════════════════════════════
   TRAINING CALENDAR  (TrainingCalendar.razor)
   Follows the same editorial design system as the rest of MIRAR.
   ═══════════════════════════════════════════════════════════ */

/* ── Filter bar ─────────────────────────────────────────────────────────── */
/* ═══════════════════════════════════════════════════════════
   TRAINING CALENDAR
   ═══════════════════════════════════════════════════════════ */

/* Prevent horizontal scroll site-wide */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* ── Filter bar ──────────────────────────────────────────────────────────── */
.tc-filter-bar {
    background: var(--mirar-off);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

.tc-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.tc-select {
    padding: 9px 14px;
    padding-right: 32px;
    border: 1px solid var(--border);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-dark);
    background: var(--mirar-white);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%235A5A5A'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
    border-radius: 0;
    transition: border-color .15s;
    -webkit-appearance: none;
    appearance: none;
    /* prevent selects from overflowing on narrow screens */
    max-width: 100%;
}

    .tc-select:focus {
        border-color: var(--mirar-red);
        outline: none;
    }

/* ── Month group ─────────────────────────────────────────────────────────── */
.tc-month-group {
    margin-bottom: 48px;
    /* contain children — prevents bleed */
    min-width: 0;
    overflow: hidden;
}

.tc-month-hd {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--mirar-red);
    border-bottom: 1.5px solid var(--text-dark);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* ── Card list ───────────────────────────────────────────────────────────── */
.tc-cards {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border);
    /* contain — the key fix for horizontal overflow */
    overflow: hidden;
    width: 100%;
}

.tc-card {
    display: grid;
    /* date | body | cta — body has min-width:0 so it can shrink */
    grid-template-columns: 68px minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    background: var(--mirar-white);
    padding: 22px 24px;
    border-left: 2px solid transparent;
    transition: border-color .15s, background .15s;
    /* prevent card itself from overflowing */
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
}

    .tc-card:hover {
        background: var(--mirar-warm);
        border-left-color: var(--mirar-red);
    }

.tc-card-soldout {
    opacity: .55;
}

/* ── Date block ──────────────────────────────────────────────────────────── */
.tc-card-date {
    text-align: center;
    background: var(--mirar-red);
    color: var(--mirar-white);
    padding: 10px 4px;
    flex-shrink: 0;
    align-self: start;
    margin-top: 2px;
    /* fixed width so it never grows */
    width: 68px;
    box-sizing: border-box;
}

.tc-date-day {
    font-family: var(--font-serif);
    font-size: 1.9rem;
    font-weight: 400;
    line-height: 1;
}

.tc-date-mon {
    font-family: var(--font-sans);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-top: 3px;
    opacity: .85;
}

/* ── Card body ───────────────────────────────────────────────────────────── */
.tc-card-body {
    /* CRITICAL — allows text to shrink instead of pushing layout */
    min-width: 0;
    overflow: hidden;
}

.tc-card-meta {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 7px;
    align-items: center;
}

/* ── Badges ──────────────────────────────────────────────────────────────── */
.tc-badge-fmt,
.tc-badge-hrd,
.tc-badge-cat {
    font-family: var(--font-sans);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 3px 8px;
    display: inline-block;
    /* truncate if still too long */
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tc-fmt-0 {
    background: #fff3e0;
    color: #b45309;
}
/* In-person */
.tc-fmt-1 {
    background: #eff6ff;
    color: #1d4ed8;
}
/* Virtual   */
.tc-fmt-2 {
    background: #f5f3ff;
    color: #6d28d9;
}
/* Hybrid    */

.tc-badge-hrd {
    background: #ecfdf5;
    color: var(--mirar-green);
}

/* Category badge — can be long, so allow wrapping and cap width */
.tc-badge-cat {
    background: var(--mirar-off);
    color: var(--text-muted);
    max-width: 220px;
    white-space: normal;
    line-height: 1.3;
}

/* ── Card title ──────────────────────────────────────────────────────────── */
.tc-card-title {
    font-family: var(--font-sans);
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 7px;
    line-height: 1.35;
    /* prevent long titles from breaking layout */
    overflow-wrap: break-word;
    word-break: break-word;
}

    .tc-card-title a {
        color: var(--text-dark);
        text-decoration: none;
        transition: color .15s;
    }

        .tc-card-title a:hover {
            color: var(--mirar-red);
        }

/* ── Detail chips ────────────────────────────────────────────────────────── */
.tc-card-details {
    display: flex;
    flex-wrap: wrap;
    gap: 3px 16px;
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 300;
    /* don't let chips overflow */
    overflow: hidden;
}

    .tc-card-details span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

.tc-seats-low {
    color: var(--mirar-red);
    font-weight: 600;
}

.tc-card-note {
    margin-top: 7px;
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
    font-weight: 300;
    line-height: 1.55;
    overflow-wrap: break-word;
}

/* ── CTA column ──────────────────────────────────────────────────────────── */
.tc-card-cta {
    flex-shrink: 0;
    white-space: nowrap;
}

.tc-btn-soldout {
    display: inline-block;
    padding: 10px 18px;
    border: 1px solid var(--border);
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
}

/* ── Empty state ─────────────────────────────────────────────────────────── */
.tc-empty {
    text-align: center;
    padding: 64px 0;
    color: var(--text-muted);
    font-size: 14px;
}

/* ── Articles (Articles.razor / ArticleDetail.razor) ────────── */
.art-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}
/* ── Category filter chips ───────────────────────────────────── */
.art-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.art-chip {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 8px 16px;
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
    font-family: var(--font-sans);
    transition: all .15s;
}

    .art-chip:hover {
        border-color: var(--mirar-black);
        color: var(--mirar-black);
    }

.art-chip-active {
    background: var(--mirar-black);
    border-color: var(--mirar-black);
    color: var(--mirar-white);
}

    .art-chip-active:hover {
        color: var(--mirar-white);
    }

/* ── Active tag-filter banner (shown when arriving via /articles?tag=X) ── */
.art-active-filter {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12.5px;
    color: var(--text-muted);
    background: var(--mirar-off);
    border-left: 3px solid var(--mirar-red);
    padding: 10px 16px;
    margin-bottom: 28px;
}

.art-clear-filter {
    background: none;
    border: none;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--mirar-red);
    cursor: pointer;
    padding: 0;
    font-family: var(--font-sans);
}

    .art-clear-filter:hover {
        text-decoration: underline;
    }

/* ── Card grid ────────────────────────────────────────────────── */
.art-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

.art-card {
    background: var(--mirar-white);
    display: flex;
    flex-direction: column;
    transition: background .15s;
}

    .art-card:hover {
        background: var(--mirar-warm);
    }

        .art-card:hover .art-card-title {
            color: var(--mirar-red);
        }

/* The clickable "open article" region — everything except the tag row,
   which needs to stay independently clickable (see art-card-tags-row). */
.art-card-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
}

.art-card-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    background: var(--mirar-off);
}

.art-card-content {
    padding: 24px 26px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.art-category {
    font-size: 9.5px;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--mirar-red);
    font-weight: 600;
    font-family: var(--font-sans);
    margin-bottom: 10px;
}

.art-card-title {
    font-family: var(--font-serif);
    font-size: 19px;
    font-weight: 400;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: 10px;
    transition: color .15s;
}

.art-card-summary {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
    font-weight: 300;
    margin-bottom: 16px;
    flex: 1;
}

.art-meta {
    display: flex;
    gap: 6px;
    align-items: center;
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-sans);
}

/* Tag row sits outside .art-card-link so tags are independently
   clickable (no nested <a> inside the card's main link). */
.art-card-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    padding: 0 26px 22px;
}

.art-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
}

.art-tag {
    font-size: 10.5px;
    color: var(--text-muted);
    font-family: var(--font-sans);
    text-decoration: none;
    transition: color .15s;
}

    .art-tag:hover {
        color: var(--mirar-red);
        text-decoration: underline;
    }

/* ── Detail page ──────────────────────────────────────────────── */

/* Byline — avatar initials + name + date/reading-time, sits under the
   dek in the hero */
.art-byline {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
}

.art-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,.85);
    flex-shrink: 0;
}

.art-byline-name {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    color: var(--mirar-white);
}

.art-byline-meta {
    font-family: var(--font-sans);
    font-size: 11.5px;
    color: rgba(255,255,255,.45);
    margin-top: 2px;
}

.art-detail-cover {
    width: 100%;
    aspect-ratio: 16 / 8;
    object-fit: cover;
    margin-bottom: 40px;
    background: var(--mirar-off);
}

.art-detail-body {
    font-size: 16px;
    line-height: 1.85;
    color: var(--text-dark);
    font-weight: 300;
}

    .art-detail-body h2 {
        font-size: 1.6rem;
        margin: 40px 0 16px;
    }

    .art-detail-body h3 {
        font-size: 1.25rem;
        margin: 32px 0 14px;
    }

    .art-detail-body p {
        color: var(--text-dark);
        margin-bottom: 22px;
    }

    .art-detail-body a {
        color: var(--mirar-red);
        text-decoration: underline;
    }

    .art-detail-body img {
        width: 100%;
        margin: 24px 0;
    }

    .art-detail-body blockquote {
        border-left: 3px solid var(--mirar-red);
        padding: 4px 0 4px 22px;
        margin: 28px 0;
        font-style: italic;
        color: var(--text-muted);
    }

    .art-detail-body ul, .art-detail-body ol {
        margin: 0 0 22px 22px;
        color: var(--text-dark);
        line-height: 1.85;
    }

/* Tags block — "Tagged" label + pill-style tag links (heavier weight
   than the plain-text tags used on listing cards) */
.art-detail-tags-block {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.art-detail-tags-label {
    display: block;
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.art-tag-pill {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 5px 12px;
    text-decoration: none;
    font-family: var(--font-sans);
    transition: all .15s;
}

    .art-tag-pill:hover {
        background: var(--mirar-black);
        border-color: var(--mirar-black);
        color: var(--mirar-white);
    }

/* Share row */
.art-share-block {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.art-share-label {
    display: block;
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.art-share-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.art-share-btn {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: transparent;
    border: 1.5px solid var(--border);
    padding: 8px 16px;
    text-decoration: none;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: all .15s;
    min-width: 92px;
    text-align: center;
}

    .art-share-btn:hover {
        border-color: var(--mirar-black);
        color: var(--mirar-black);
    }

/* ── RSS link (hero) ──────────────────────────────────────────── */
.art-rss-link {
    display: inline-block;
    margin-top: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255,255,255,.6);
    border: 1px solid rgba(255,255,255,.25);
    padding: 7px 14px;
    text-decoration: none;
    transition: all .15s;
}

    .art-rss-link:hover {
        color: var(--mirar-white);
        border-color: rgba(255,255,255,.6);
    }

.art-hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

    .art-hero-links .art-rss-link {
        margin-top: 0;
    }

.art-submit-cover-preview {
    display: block;
    margin-top: 10px;
    max-width: 320px;
    max-height: 160px;
    object-fit: cover;
    border: 1px solid var(--border);
}

/* ── Comments ─────────────────────────────────────────────────── */
.art-comments-heading {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 24px;
}

.art-comments-subheading {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.art-comments-empty {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.art-comment-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-bottom: 36px;
}

.art-comment {
    display: flex;
    gap: 14px;
}

.art-comment-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--mirar-off);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    flex-shrink: 0;
}

.art-comment-content {
    flex: 1;
    border-bottom: 1px solid var(--border);
    padding-bottom: 18px;
}

.art-comment-meta {
    font-family: var(--font-sans);
    font-size: 12px;
    margin-bottom: 6px;
}

    .art-comment-meta strong {
        color: var(--text-dark);
    }

    .art-comment-meta span {
        color: var(--text-muted);
        margin-left: 8px;
    }

.art-comment-content p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-dark);
    font-weight: 300;
}

.art-comment-form-wrap {
    padding-top: 8px;
}

.art-comment-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 20px;
}

.art-comment-form-full {
    grid-column: 1 / -1;
}

.art-field-label-note {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    opacity: .7;
}

.art-comment-validation {
    color: var(--mirar-red);
    font-size: 12.5px;
    margin-bottom: 12px;
}

.art-alert-success {
    background: #ecfdf5;
    border-left: 3px solid #10b981;
    color: #065f46;
    font-size: 13px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.art-alert-pending {
    background: #fffbeb;
    border-left: 3px solid #f59e0b;
    color: #92400e;
    font-size: 13px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

/* Honeypot — visually hidden but present in the DOM so it still validates
   and posts normally, while bots that blindly fill every input on the page
   trip it. Real visitors never see or interact with this field. */
.art-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 900px) {
    .art-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .art-container {
        padding: 0 20px;
    }

    .art-grid {
        grid-template-columns: 1fr;
    }

    .art-comment-form-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Document Viewer (DocumentViewer.razor) ─────────────────────
   Reuses .art-container/.page-hero/.btn-mirar-outline already added
   for the Articles feature. Replaces the previous dv-* block below —
   same class names kept where possible, extended with a type chip,
   meta row, back link, and a loading state for the Office viewer. */

.dv-bar {
    background: var(--mirar-white);
    border-bottom: 1px solid var(--border);
    padding: 18px 0 24px;
    position: relative;
}

    /* Same mosaic accent used on .page-hero, thinned down — ties this
       page back to the rest of the site without repeating the full hero. */
    .dv-bar::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--accent-pink) 0%, var(--accent-peach) 16.6%, var(--accent-lavender) 33.3%, var(--accent-sage) 50%, var(--accent-sky) 66.6%, var(--accent-gold) 83.3%, var(--accent-pink) 100%);
    }

.dv-back {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .03em;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 16px;
    transition: color .15s;
}

    .dv-back:hover {
        color: var(--mirar-red);
    }

.dv-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.dv-heading {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
}

/* "Document not found" state — sits inside .dv-bar (light, off-white) rather
   than the black .page-hero every other page opens with. That heavier hero
   is meant for full landing sections; here it's one inline message, so it
   gets the same quiet card treatment as the rest of this page instead of
   swinging to a totally different color block for just the error case. */
.dv-notfound-title {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 400;
    margin: 4px 0 6px;
    color: var(--text-dark);
}

.dv-notfound-sub {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.dv-chip {
    flex-shrink: 0;
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    color: #fff;
    padding: 6px 10px;
    margin-top: 3px;
    min-width: 40px;
    text-align: center;
}

.dv-chip-pdf {
    background: var(--mirar-red);
}

.dv-chip-ppt {
    background: var(--accent-gold);
}

.dv-chip-doc {
    background: var(--mirar-black);
}

.dv-chip-xls {
    background: var(--mirar-green);
}

.dv-chip-other {
    background: var(--text-muted);
}

.dv-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 400;
    margin: 0;
    line-height: 1.35;
}

.dv-meta {
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.dv-dot {
    margin: 0 5px;
    opacity: .6;
}

/* ── Viewer ───────────────────────────────────────────────── */
.dv-viewer-wrap {
    padding: 24px 40px 48px;
    background: var(--mirar-white);
}

.dv-viewer-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.dv-frame-wrap {
    position: relative;
}

.dv-frame {
    width: 100%;
    height: 85vh;
    min-height: 480px;
    border: 1px solid var(--border);
    display: block;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .05);
}

.dv-frame-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 13px;
}

.dv-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid var(--border);
    border-top-color: var(--mirar-red);
    border-radius: 50%;
    animation: dv-spin .8s linear infinite;
}

@keyframes dv-spin {
    to {
        transform: rotate(360deg);
    }
}

.dv-note {
    max-width: 1200px;
    margin: 14px auto 0;
    font-size: 12.5px;
    color: var(--text-muted);
    text-align: center;
}

.dv-unsupported {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

    .dv-unsupported p {
        margin-bottom: 18px;
    }

@media (max-width: 700px) {
    .dv-heading {
        gap: 10px;
    }

    .dv-viewer-wrap {
        padding: 20px;
    }

    .dv-frame {
        height: 70vh;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dv-spinner {
        animation-duration: 2s;
    }
}


/* ============================================================
   Training Archive — Integrated MIRAR Identity
   ============================================================ */

/* ── Filter tabs ──────────────────────────────────────────── */
.tlx-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tlx-tab {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 8px 16px;
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 0;
    transition: all .15s;
}

    .tlx-tab:hover {
        border-color: var(--mirar-black);
        color: var(--mirar-black);
    }

    .tlx-tab:focus-visible {
        outline: 2px solid var(--mirar-black);
        outline-offset: 2px;
    }

.tlx-tab-active {
    background: var(--mirar-black);
    border-color: var(--mirar-black);
    color: var(--mirar-white);
}

/* ── Ledger ───────────────────────────────────────────────── */
.tlx-ledger-head {
    display: none;
}

@media (min-width: 720px) {
    .tlx-ledger-head {
        display: flex;
        font-family: var(--font-sans);
        font-size: 10px;
        font-weight: 700;
        letter-spacing: .12em;
        text-transform: uppercase;
        color: var(--text-dark);
        border-bottom: 1.5px solid var(--mirar-black);
        padding: 0 0 10px 68px;
        margin-bottom: 4px;
    }

    .tlx-col-title {
        flex: 1;
    }

    .tlx-col-meta {
        width: 160px;
        text-align: right;
    }
}

.tlx-rows {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .tlx-rows li {
        border-bottom: 1px solid var(--border);
    }

/* Aligned row hover state with .course-list-item */
.tlx-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 12px;
    text-decoration: none;
    color: inherit;
    border-left: 2px solid transparent;
    transition: background .15s, border-color .15s;
}

    .tlx-row:hover,
    .tlx-row:focus-visible {
        background: var(--mirar-off);
        border-left-color: var(--mirar-red);
        outline: none;
    }

.tlx-tab-chip {
    flex-shrink: 0;
    font-family: var(--font-sans);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--mirar-white);
    padding: 5px 10px;
    min-width: 44px;
    text-align: center;
    border-radius: 0;
}

    /* Brand-aligned file type colors */
    .tlx-tab-chip.tlx-tab-pdf {
        background: var(--mirar-red);
    }

    .tlx-tab-chip.tlx-tab-ppt {
        background: var(--accent-gold);
    }

    .tlx-tab-chip.tlx-tab-doc {
        background: var(--mirar-black);
    }

    .tlx-tab-chip.tlx-tab-xls {
        background: var(--mirar-green);
    }

    .tlx-tab-chip.tlx-tab-other {
        background: var(--text-muted);
    }

.tlx-row-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.tlx-row-title {
    font-family: var(--font-sans);
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tlx-row-type {
    font-family: var(--font-sans);
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--mirar-red);
    margin-top: 4px;
}

.tlx-row-leader {
    flex: 1;
    min-width: 20px;
    border-bottom: 1px dotted var(--border);
    margin: 0 4px;
    align-self: center;
    height: 0;
    display: none;
}

.tlx-row-meta {
    flex-shrink: 0;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 300;
    color: var(--text-muted);
    white-space: nowrap;
}

.tlx-dot {
    margin: 0 5px;
    opacity: .6;
}

/* Aligned arrow behavior with .cli-arrow */
.tlx-row-arrow {
    flex-shrink: 0;
    color: var(--border);
    font-size: 18px;
    font-weight: 300;
    transition: color .15s;
}

.tlx-row:hover .tlx-row-arrow {
    color: var(--mirar-red);
}

@media (min-width: 720px) {
    .tlx-row-leader {
        display: block;
    }

    .tlx-row-meta {
        width: 160px;
        text-align: right;
    }
}

@media (max-width: 719px) {
    .tlx-row {
        flex-wrap: wrap;
    }

    .tlx-row-meta {
        width: 100%;
        padding-left: 60px;
        margin-top: 2px;
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tlx-tab, .tlx-row, .tlx-row-arrow {
        transition: none;
    }
}

/* ── QR Code Generator (/qr-code-generator) ────────────────── */
.qrg-color-row {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
}

.qrg-color-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.qrg-color-input {
    width: 46px;
    height: 38px;
    padding: 2px;
    border: 1px solid var(--border);
    border-radius: 0;
    background: #fff;
    cursor: pointer;
}

    .qrg-color-input:disabled {
        opacity: .4;
        cursor: not-allowed;
    }

.qrg-checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--text-muted);
    padding-bottom: 9px;
    cursor: pointer;
}

    .qrg-checkbox-row input {
        accent-color: var(--mirar-red);
        cursor: pointer;
    }

.qrg-file-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ── Preview panel ──────────────────────────────────────────── */
.qrg-preview-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 28px 24px;
    border: 1px solid var(--border);
    background: var(--mirar-off);
    position: sticky;
    top: 100px;
}

.qrg-checker {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border: 1px solid var(--border);
    background-image: linear-gradient(45deg, #e5e2dc 25%, transparent 25%), linear-gradient(-45deg, #e5e2dc 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #e5e2dc 75%), linear-gradient(-45deg, transparent 75%, #e5e2dc 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    background-color: #fff;
}

#qrg-preview svg, #qrg-preview canvas {
    display: block;
    max-width: 100%;
    height: auto;
}

.qrg-download-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

    .qrg-download-row select.form-control {
        flex: 1;
    }

    .qrg-download-row .btn-mirar-primary {
        flex-shrink: 0;
    }

@media (max-width: 991px) {
    .qrg-preview-card {
        position: static;
    }
}

/* ══════════════════════════════════════════════════════════════════════
   Part B: Public quiz-taking page (/q/{code})
   ══════════════════════════════════════════════════════════════════════ */

.qzp-shell {
    min-height: 100vh;
    background: var(--mirar-off, #f5f5f3);
    display: flex;
    justify-content: center;
    padding: 40px 16px 80px;
    font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
}

.qzp-card {
    width: 100%;
    max-width: 620px;
    background: #fff;
    border: 1px solid var(--border, #e2e2e0);
    border-radius: 6px;
    padding: 32px 28px;
    box-shadow: 0 2px 24px rgba(0,0,0,.06);
}

.qzp-header {
    margin-bottom: 22px;
}

.qzp-eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--mirar-red, #c0392b);
    margin-bottom: 6px;
}

.qzp-title {
    font-family: var(--font-serif, Georgia, serif);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--text-dark, #1a2340);
    margin: 0 0 8px;
}

.qzp-sub {
    font-size: 13px;
    color: var(--text-muted, #6b7280);
    line-height: 1.6;
}

.qzp-field {
    margin-bottom: 16px;
}

.qzp-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted, #6b7280);
    margin-bottom: 6px;
}

.qzp-optional {
    text-transform: none;
    font-weight: 400;
    letter-spacing: 0;
}

.qzp-error {
    background: #fee2e2;
    color: #991b1b;
    font-size: 13px;
    padding: 12px 14px;
    border-radius: 4px;
    margin-bottom: 16px;
}

.qzp-hint {
    text-align: center;
    font-size: 11px;
    color: var(--text-muted, #6b7280);
    margin-top: 10px;
}

.qzp-timer {
    position: sticky;
    top: 8px;
    display: inline-block;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark, #1a2340);
    background: var(--mirar-off, #f5f5f3);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.qzp-timer-warn {
    color: #991b1b;
    background: #fee2e2;
}

.qzp-progress-label {
    font-size: 11px;
    color: var(--text-muted, #6b7280);
    margin-bottom: 5px;
}

.qzp-progress-track {
    height: 6px;
    background: var(--border, #e2e2e0);
    border-radius: 3px;
    overflow: hidden;
}

.qzp-progress-fill {
    height: 100%;
    background: var(--mirar-red, #c0392b);
    transition: width .2s ease;
}

.qzp-question {
    padding: 20px 0;
    border-top: 1px solid var(--border, #e2e2e0);
}

.qzp-question-num {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-muted, #6b7280);
    margin-bottom: 6px;
}

.qzp-question-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark, #1a2340);
    line-height: 1.5;
    margin-bottom: 14px;
}

.qzp-question-img {
    max-width: 100%;
    border-radius: 4px;
    margin-bottom: 14px;
}

.qzp-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.qzp-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border: 1.5px solid var(--border, #e2e2e0);
    border-radius: 5px;
    font-size: 13px;
    color: var(--text-dark, #1a2340);
    cursor: pointer;
    transition: border-color .12s, background .12s;
}

    .qzp-option:hover {
        border-color: var(--mirar-red, #c0392b);
    }

.qzp-option-selected {
    border-color: var(--mirar-red, #c0392b);
    background: #fef2f2;
}

.qzp-option input {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    cursor: pointer;
}

/* ── Result screen ───────────────────────────────────────────────── */

.qzp-result {
    text-align: center;
}

.qzp-result-score {
    font-family: var(--font-serif, Georgia, serif);
    font-size: 3rem;
    color: var(--text-dark, #1a2340);
    line-height: 1;
    margin-bottom: 6px;
}

.qzp-result-of {
    font-size: 1.3rem;
    color: var(--text-muted, #6b7280);
}

.qzp-result-pct {
    font-size: 13px;
    color: var(--text-muted, #6b7280);
    margin-bottom: 14px;
}

.qzp-pass-badge {
    margin-bottom: 22px;
}

.qzp-details {
    text-align: left;
    margin-top: 10px;
}

.qzp-detail-row {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-top: 1px solid var(--border, #e2e2e0);
}

.qzp-detail-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}

.qzp-detail-correct .qzp-detail-icon {
    background: var(--mirar-green, #1B7A69);
}

.qzp-detail-wrong .qzp-detail-icon {
    background: #c0392b;
}

.qzp-detail-q {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark, #1a2340);
    margin-bottom: 4px;
}

.qzp-detail-a {
    font-size: 12px;
    color: var(--text-muted, #6b7280);
}

.qzp-detail-correct-a {
    font-size: 12px;
    color: var(--mirar-green, #1B7A69);
    margin-top: 2px;
}

@media (max-width: 480px) {
    .qzp-card {
        padding: 24px 18px;
    }

    .qzp-result-score {
        font-size: 2.4rem;
    }
}
