/* Shared Mathematics Lab top bar */
.lab-topbar{background:#173f69!important;color:#fff!important;width:100%;font-family:Arial,system-ui,sans-serif;box-sizing:border-box;position:relative;z-index:10}
.lab-topbar *{box-sizing:border-box}
.lab-topbar-inner{max-width:1100px;margin:0 auto;padding:0 16px;min-height:62px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.lab-topbar a{color:#fff!important;text-decoration:none!important;font-weight:700;font-size:17px;white-space:nowrap}
.lab-topbar a:hover{text-decoration:underline!important}
.lab-topbar .lab-tool-version{color:#e0e9f4;font-size:13px;font-weight:400;text-align:right}
@media(max-width:560px){.lab-topbar-inner{min-height:62px;gap:8px}.lab-topbar a{font-size:14px}.lab-topbar .lab-tool-version{font-size:11px}}

/* Full-width bar, including pages with default body margins */
body:has(> .lab-topbar){margin:0!important}
.lab-topbar{margin:0!important;border-radius:0!important;left:auto;right:auto}

/* Spacing between the shared bar and function-analysis content. */
body[data-page="laboratorio-unico"] > .lab-topbar + main.container{margin-top:24px}
/* The lab label and version are already displayed in the shared bar. */
body:has(> .lab-topbar) main.container > header .topline{display:none}

/* Hide the now-redundant original home heading. */
body[data-page="laboratorio-unico"] > main.container > header.site-header{display:none}
/* Version numbers are displayed in the shared top bar. */
body > .lab-topbar + main > header.page-header > .version,
body > .lab-topbar + main > .heading > .version{display:none}
/* Preserve the distinct white title area on the secant-method page. */
header.secant-heading{background:transparent;color:#192638;padding:18px 0 0}
header.secant-heading .wrap{padding-top:20px;padding-bottom:8px}
