/* ========================================
   PAGE HEADER BAR
   Plain title row below floating nav on sub-pages (not home). No panel chrome;
   the visible title uses inset text only. Consumed by: sandbox.php, modules.php,
   keywords.php, module-mcq.php, about.php
   ======================================== */

.page-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 96px;
    height: auto;
    padding: 0 var(--section-padding-x);
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    background: none;
    border: none;
    box-shadow: none;
}

.page-header-bar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.page-header-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Inset / debossed title: reads carved into the gradient (no box around the row).
   Size and shadow scale together (~1.8× base for +80% type size). */
.page-header-bar-title {
    font-size: 2.34em;
    font-weight: 700;
    margin: 0;
    line-height: 1.15;
    color: rgba(248, 250, 252, 0.78);
    text-shadow:
        0 -2px 3px rgba(0, 0, 0, 0.58),
        0 -1px 1px rgba(0, 0, 0, 0.35),
        0 2px 1px rgba(255, 255, 255, 0.14),
        0 3px 2px rgba(255, 255, 255, 0.06);
}

.page-header-bar-back-link {
    color: rgba(248, 250, 252, 0.75);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.page-header-bar-back-link:hover {
    color: #fff;
}

/* Step counter: plain text (no pill) to match the unboxed header row */
.page-header-bar-progress {
    padding: 0;
    margin: 0;
    background: none;
    border: none;
    border-radius: 0;
    font-weight: 600;
    font-size: 14px;
    color: rgba(248, 250, 252, 0.75);
}

.page-header-bar-meta {
    color: rgba(248, 250, 252, 0.75);
    font-size: 14px;
}

.page-header-bar-btn {
    padding: 8px 20px;
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.page-header-bar-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.page-header-bar-btn:focus-visible {
    outline: 2px solid var(--color-link);
    outline-offset: 2px;
}

@media (max-width: 1024px) {
    .page-header-bar {
        padding-inline: var(--section-padding-x);
    }
}

@media (max-width: 868px) {
    .page-header-bar {
        min-height: 56px;
        height: auto;
        padding: 12px var(--section-padding-x);
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
        text-align: center;
    }

    .page-header-bar-left {
        flex-direction: column;
        gap: 8px;
    }

    .page-header-bar-title {
        font-size: 1.98em;
        text-shadow:
            0 -2px 2px rgba(0, 0, 0, 0.58),
            0 -1px 1px rgba(0, 0, 0, 0.32),
            0 2px 1px rgba(255, 255, 255, 0.13),
            0 2px 2px rgba(255, 255, 255, 0.05);
    }

    .page-header-bar-btn {
        padding: 6px 14px;
        font-size: 13px;
    }
}
