/* Use the supplied logo unchanged; the compact badge shows its upper symbol. */
body.hy-site-page { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.hy-page-content { flex: 1 0 auto; min-width: 0; width: 100%; }
a.hy-brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; max-width: 100%; color: #fff; text-decoration: none; line-height: 1.25; white-space: nowrap; }
a.hy-brand:hover { color: #fff; text-decoration: none; }
.hy-brand .hy-brand-badge { display: grid; place-items: center; flex: none; width: 66px; height: 40px; padding: 4px; border-radius: 8px; background: #fff; }
.hy-brand .hy-brand-symbol { display: block; width: 58px; height: 29px; overflow: hidden; }
.hy-brand-symbol img { display: block; width: 100%; max-width: none; height: auto; }
.hy-brand .hy-brand-name { font-size: 16px; font-weight: 650; letter-spacing: .02em; }
.hy-brand .hy-brand-role { border-left: 1px solid currentColor; padding-left: 10px; font-size: 12px; font-weight: 400; opacity: .78; }
a.hy-brand-dark, a.hy-brand-dark:hover { color: #355744; }
.hy-brand-dark .hy-brand-badge { border: 1px solid #e2ebe5; }
.hy-admin-brand { max-width: 1320px; margin: 16px auto 20px; padding: 0 16px; }
.hy-class-context { color: #fff; font-size: 14px; }
.hy-site-footer { flex: none; width: 100%; box-sizing: border-box; padding: 18px 16px max(18px, env(safe-area-inset-bottom)); text-align: center; background: rgba(255,255,255,.88); color: #68746d; font-size: 12px; line-height: 1.6; }
.hy-site-footer a { color: inherit; text-decoration: none; }
.hy-site-footer a:hover { color: #315641; text-decoration: underline; }
.hy-site-footer a:focus-visible, a.hy-brand:focus-visible { outline: 2px solid #71a88c; outline-offset: 4px; }
body.hy-login-page { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; height: auto; min-height: 100vh; min-height: 100dvh; margin: 0; }
.hy-login-main { display: flex; flex: 1 0 auto; align-items: center; justify-content: center; min-width: 0; width: 100%; box-sizing: border-box; padding: 32px 16px; }
.hy-login-logo { display: block; width: 144px; max-width: 100%; height: auto; margin: 0 auto 20px; }
.hy-login-page .login-wrap { padding: 0; }
.hy-login-page .login-card .login-header { background: #fff; padding: 28px 32px 12px; }
.hy-login-page .login-card .login-header::after { display: none; }
.hy-login-page .login-header h4 { color: #20543b; }
.hy-login-page .login-header small { color: #78867d; }
.hy-login-page .login-card .card-body { padding-top: 18px; }
.hw-writing-mode .hy-site-footer, .hw-embedded .hy-site-footer, body:has(.hw-fallback-fullscreen) .hy-site-footer { display: none; }
@media (max-width: 720px) {
    a.hy-brand { gap: 7px; }
    .hy-brand .hy-brand-badge { width: 54px; height: 34px; padding: 4px; }
    .hy-brand .hy-brand-symbol { width: 46px; height: 23px; }
    .hy-brand .hy-brand-name { font-size: 14px; }
    .hy-brand .hy-brand-role { padding-left: 7px; font-size: 11px; }
    .teacher-classroom-nav, .student-navbar-inner, .hw-nav, .navbar { flex-wrap: wrap; row-gap: 10px; padding-top: 12px; padding-bottom: 12px; }
    .navbar > .d-flex { flex-wrap: wrap; }
    .hy-login-main { padding: 24px 16px; }
    .hy-login-page .login-container { padding: 28px 24px; }
    .hy-login-logo { width: 132px; margin-bottom: 18px; }
}
@media print { .hy-site-footer { display: none; } }
