/* A visible MathTopia Press identity and comfortable header controls. */
.mt-site-header .mt-header-main { min-height: 124px; gap: 26px; padding-top: 12px; padding-bottom: 12px; }
.mt-site-header .mt-press-brand { order: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 192px; flex-shrink: 0; gap: 3px; padding: 9px 14px 8px; background: #f0f6fc; border: 1px solid #c6dae9; border-bottom: 4px solid #075eaa; border-radius: 10px; color: #124666; transition: background .15s ease, box-shadow .15s ease; }
.mt-site-header .mt-press-brand img { display: block; width: 162px; max-width: 100%; height: auto; }
.mt-site-header .mt-press-brand > span { font-size: 15px; font-weight: 800; line-height: 1.5; display: flex; align-items: center; gap: 14px; }
.mt-site-header .mt-press-brand b { font-size: 20px; font-weight: 600; line-height: 1; }
.mt-site-header .mt-press-brand:hover { color: #075eaa; background: #e4f0fa; box-shadow: 0 4px 15px rgba(8,43,66,.1); }
.mt-site-header .mt-press-brand[aria-current="page"] { border-color: #075eaa; box-shadow: inset 0 0 0 1px #075eaa; }
.mt-site-header .mt-press-brand:focus-visible { outline: 3px solid #075eaa; outline-offset: 4px; }
.mt-site-header .mt-secondary-links { gap: 24px; }
.mt-site-header .mt-secondary-links > a,
.mt-site-header .mt-secondary-links .mt-about-menu > summary { min-height: 48px; font-size: 18px; font-weight: 750; padding: 11px 0; line-height: 1.4; white-space: nowrap; }
.mt-site-header .mt-secondary-links .mt-about-menu > summary { gap: 7px; }
.mt-site-header .mt-about-links { min-width: 230px; }
.mt-site-header .mt-about-links a { font-size: 17px; min-height: 46px; padding: 12px 14px; }
.mt-site-header .mt-header-actions { gap: 20px; }
.mt-site-header .mt-login-link { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; font-size: 18px; font-weight: 800; line-height: 1.4; padding: 10px 7px; white-space: nowrap; }
.mt-site-header .mt-login-link:hover { color: #075eaa; text-decoration: underline; text-underline-offset: 5px; }
.mt-site-header .mt-header-actions .mt-register-link { min-height: 48px; font-size: 17px; padding: 12px 18px; }
.mt-site-header .mt-nav-toggle { min-width: 48px; min-height: 48px; }
@media (max-width: 1100px) {
 .mt-site-header .mt-header-main { gap: 18px; }
 .mt-site-header .mt-brand img { width: 132px; }
 .mt-site-header .mt-press-brand { width: 174px; padding-left: 12px; padding-right: 12px; }
 .mt-site-header .mt-press-brand img { width: 148px; }
 .mt-site-header .mt-secondary-links { gap: 18px; }
 .mt-site-header .mt-header-actions { gap: 13px; }
 .mt-site-header .mt-header-actions .mt-register-link { padding-left: 14px; padding-right: 14px; }
}
@media (max-width: 850px) {
 .mt-site-header .mt-header-main { gap: 12px 18px; min-height: 0; padding-top: 12px; padding-bottom: 14px; }
 .mt-site-header .mt-brand img { width: 120px; height: auto; }
 .mt-site-header .mt-press-brand { width: 190px; margin-left: auto; }
 .mt-site-header .mt-press-brand img { width: 160px; }
 .mt-site-header .mt-header-actions { order: 2; width: 100%; margin-left: 0; justify-content: space-between; gap: 16px; }
 .mt-site-header .mt-header-actions .mt-register-link { flex: 1; max-width: 230px; font-size: 17px; min-height: 48px; }
 .mt-site-header .mt-login-link { font-size: 18px; padding-left: 4px; padding-right: 4px; }
 .mt-site-header nav.mt-primary-nav { order: 3; }
 .mt-site-header .mt-secondary-links { gap: 12px 28px; padding-top: 8px; padding-bottom: 4px; }
 .mt-site-header .mt-secondary-links > a,
 .mt-site-header .mt-secondary-links .mt-about-menu > summary { font-size: 19px; min-height: 48px; }
 .mt-site-header .mt-secondary-links .mt-about-links { left: 0; right: auto; }
 .mt-site-header .mt-nav-toggle { padding: 6px; font-size: 13px; }
}
@media (max-width: 600px) {
 .mt-site-header .mt-header-main { gap: 12px 14px; }
 .mt-site-header .mt-brand img { width: 108px; }
 .mt-site-header .mt-press-brand { width: 180px; padding-top: 8px; padding-bottom: 7px; }
 .mt-site-header .mt-press-brand img { width: 150px; }
 .mt-site-header .mt-press-brand > span { font-size: 14px; }
 .mt-site-header .mt-header-actions { gap: 14px; }
 .mt-site-header .mt-header-actions .mt-register-link { max-width: 180px; }
}
@media (max-width: 360px) {
 .mt-site-header .mt-header-main { column-gap: 10px; }
 .mt-site-header .mt-brand img { width: 96px; }
 .mt-site-header .mt-press-brand { width: 168px; }
 .mt-site-header .mt-press-brand img { width: 140px; }
 .mt-site-header .mt-header-actions { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { .mt-site-header .mt-press-brand { transition: none; } }
/* Stable header spacing with direct resource access and a predictable mobile menu. */
.mt-site-header .mt-secondary-links > a { text-decoration:none; }
.mt-site-header .mt-secondary-links > a:hover,
.mt-site-header .mt-secondary-links > a[aria-current="page"] { text-decoration:underline; text-underline-offset:6px; }
.mt-site-header .mt-about-menu > summary:focus-visible { outline:3px solid #075eaa; outline-offset:4px; border-radius:3px; }
.mt-site-header .mt-about-menu[open] > summary { color:#075eaa; }
.mt-site-header .mt-about-links a:focus-visible { outline:3px solid #075eaa; outline-offset:-2px; background:#edf5fb; }
.mt-site-header .mt-nav-toggle[aria-expanded="true"] { background:#eaf3fa; border-radius:7px; }
@media (min-width:851px) and (max-width:1100px) {
 .mt-site-header .mt-header-main { gap:16px; }
 .mt-site-header .mt-brand img { width:118px; }
 .mt-site-header .mt-press-brand { width:156px; padding:8px 10px; }
 .mt-site-header .mt-press-brand img { width:134px; }
 .mt-site-header .mt-secondary-links { gap:16px; }
 .mt-site-header .mt-secondary-links > a,
 .mt-site-header .mt-secondary-links .mt-about-menu > summary,
 .mt-site-header .mt-login-link { font-size:16px; }
 .mt-site-header .mt-header-actions { gap:12px; }
 .mt-site-header .mt-header-actions .mt-register-link { font-size:16px; padding:12px 14px; }
}
@media (max-width:850px) {
 .mt-site-header .mt-secondary-links { padding-top:12px; padding-bottom:12px; gap:10px 24px; }
 .mt-site-header .mt-primary-nav[data-open="true"] { border-bottom:1px solid #e3ebf1; }
 .mt-site-header .mt-secondary-links > a,
 .mt-site-header .mt-secondary-links .mt-about-menu > summary { font-size:17px; }
 .mt-site-header .mt-about-links { min-width:220px; }
}
@media (max-width:600px) {
 .mt-site-header .mt-program-link { min-height:96px; }
 .mt-site-header .mt-program-link strong { font-size:19px; }
 .mt-site-header .mt-program-link small { font-size:12px; }
 .mt-site-header .mt-secondary-links { gap:10px 21px; }
}
@media (max-width:360px) {
 .mt-site-header .mt-secondary-links { column-gap:17px; }
 .mt-site-header .mt-secondary-links > a,
 .mt-site-header .mt-secondary-links .mt-about-menu > summary { font-size:16px; }
}
