/*
 * Teachers CSS Bundle: public-header.bundle.css
 * Auto-generated by scripts/bundle_teachers_css.py
 * DO NOT EDIT - Edit source files instead
 *
 * Sources: public-header-base.css, public-header-desktop.css, public-header-tablet.css, public-header-mobile.css, public-header-landscape.css
 */

/* === public-header-base.css === */

/* ======================================================================
 * public-header-base.css — THE ONE PUBLIC HEADER of the teachers site
 * (templates/teachers/shared/public_header.html). Prefix tp-.
 * Base rules, no media query; the tiers follow (desktop, tablet, mobile,
 * landscape). Bundled as public-header.bundle.css.
 * The header carries its own box model so a page's reset never moves it.
 * ====================================================================== */

.tp-nav, .tp-nav *, .tp-panel, .tp-panel * { box-sizing: border-box; }

.tp-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.tp-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
}

/* the brand lockup */
.tp-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
    color: #1a202c;
}
.tp-brand-logo { height: 40px; width: 40px; object-fit: contain; }
.tp-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.tp-brand-name { font-size: 1.05rem; font-weight: 800; color: #1a202c; }
.tp-brand-sub { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #718096; }

/* the links in the bar */
.tp-links {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
}
.tp-link {
    font-size: 0.92rem;
    font-weight: 500;
    color: #4a5568;
    text-decoration: none;
    white-space: nowrap;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}
.tp-link:hover { color: #1a202c; }
.tp-link.is-active { color: #b8860b; font-weight: 700; border-bottom-color: #b8860b; }

/* the actions */
.tp-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.tp-signin {
    display: inline-block;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 500;
    color: #4a5568;
    background: none;
    border: none;
    padding: 6px 4px;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
}
.tp-signin:hover { color: #1a202c; }
.tp-cta {
    display: inline-block;
    padding: 9px 18px;
    background: linear-gradient(135deg, #d4a017 0%, #b8860b 100%);
    color: #fff;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.tp-cta:hover { opacity: 0.92; }

/* the menu button (phones only; the mobile tier shows it) */
.tp-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: none;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
}
.tp-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: #1a202c;
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}
.tp-menu-btn.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.tp-menu-btn.is-open span:nth-child(2) { opacity: 0; }
.tp-menu-btn.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* the overlay and the panel: above the corner widget (9999) and its popup
   (10000), since an open menu is what the visitor is using */
.tp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 32, 44, 0.45);
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}
.tp-overlay.is-open { opacity: 1; visibility: visible; }

.tp-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 88vw;
    height: 100vh;
    height: 100dvh;
    background: #fff;
    z-index: 10002;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.tp-panel.is-open { transform: translateX(0); }

.tp-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid #e2e8f0;
}
.tp-panel-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #1a202c;
    font-weight: 800;
    font-size: 1rem;
}
.tp-panel-logo { width: 32px; height: 32px; object-fit: contain; }
.tp-panel-close {
    width: 36px;
    height: 36px;
    background: none;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 22px;
    line-height: 1;
    color: #4a5568;
    cursor: pointer;
}
.tp-panel-close:hover { background: #f7fafc; color: #1a202c; }

.tp-panel-links {
    display: flex;
    flex-direction: column;
    padding: 12px 10px;
    gap: 2px;
}
.tp-panel-link {
    display: block;
    padding: 13px 12px;
    font-size: 1.02rem;
    font-weight: 500;
    color: #1a202c;
    text-decoration: none;
    border-radius: 8px;
}
.tp-panel-link:hover { background: #f7fafc; }
.tp-panel-link.is-active { color: #b8860b; font-weight: 700; background: #fffbeb; }

.tp-panel-actions {
    margin-top: auto;
    padding: 14px 18px 22px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.tp-panel-cta {
    display: block;
    text-align: center;
    padding: 13px 16px;
    background: linear-gradient(135deg, #d4a017 0%, #b8860b 100%);
    color: #fff;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
}
.tp-panel-signin {
    display: block;
    text-align: center;
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: #1a202c;
    background: #fff;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    padding: 12px 16px;
    cursor: pointer;
    text-decoration: none;
}
.tp-panel-signin:hover { background: #f7fafc; }


/* === public-header-desktop.css === */

/* public-header-desktop.css — the wide tier (min-width: 1025px): the bar
   carries every link; the menu button never shows. */
@media (min-width: 1025px) {
    .tp-nav-inner { padding: 12px 32px; }
    .tp-links { gap: 26px; }
}


/* === public-header-tablet.css === */

/* public-header-tablet.css — 769 to 1024px: the links stay in the bar,
   tighter; the brand drops its slogan so five links and two actions fit. */
@media (max-width: 1024px) and (min-width: 769px) {
    .tp-nav-inner { padding: 10px 20px; gap: 12px; }
    .tp-brand-sub { display: none; }
    .tp-brand-logo { height: 36px; width: 36px; }
    .tp-links { gap: 16px; }
    .tp-link { font-size: 0.88rem; }
    .tp-cta { padding: 8px 14px; font-size: 0.84rem; }
}


/* === public-header-mobile.css === */

/* public-header-mobile.css — a phone held upright (max-width: 768px,
   portrait): the links and Sign In fold into the menu; the brand, the CTA
   and the menu button stay in the bar. Nothing scrolls sideways. */
@media (max-width: 768px) and (orientation: portrait) {
    .tp-nav-inner { padding: 10px 16px; gap: 10px; min-height: 58px; }
    .tp-brand { gap: 8px; }
    .tp-brand-logo { height: 34px; width: 34px; }
    .tp-brand-name { font-size: 0.98rem; }
    .tp-brand-sub { display: none; }
    .tp-links { display: none; }
    .tp-signin { display: none; }
    .tp-actions { gap: 8px; }
    .tp-cta { padding: 8px 12px; font-size: 0.82rem; }
    .tp-menu-btn { display: flex; }
    .tp-panel { width: 100vw; max-width: 100vw; }
}

/* the narrowest phones (an iPhone SE): the brand name goes too, the mark
   alone carries the brand */
@media (max-width: 380px) and (orientation: portrait) {
    .tp-brand-name { display: none; }
}


/* === public-header-landscape.css === */

/* public-header-landscape.css — a phone held sideways (max-width: 768px,
   landscape, or any short window): the same fold into the menu as upright,
   on a shorter bar; the panel scrolls inside the short screen. */
@media (max-width: 768px) and (orientation: landscape), (max-height: 500px) and (orientation: landscape) {
    .tp-nav-inner { padding: 6px 16px; gap: 10px; min-height: 50px; }
    .tp-brand-logo { height: 30px; width: 30px; }
    .tp-brand-sub { display: none; }
    .tp-links { display: none; }
    .tp-signin { display: none; }
    .tp-cta { padding: 7px 12px; font-size: 0.8rem; }
    .tp-menu-btn { display: flex; width: 36px; height: 36px; }
    .tp-panel { width: 360px; max-width: 70vw; }
    .tp-panel-link { padding: 10px 12px; font-size: 0.96rem; }
    .tp-panel-actions { padding: 10px 18px 14px; gap: 8px; }
    .tp-panel-cta, .tp-panel-signin { padding: 10px 14px; font-size: 0.94rem; }
}
