/* Panda Tutor site chrome (header + footer) and shared design tokens.
   Loaded on every page via base.html. Class names are pv- prefixed so
   nothing here collides with style.css / edu-theme.css. Page bodies live
   in panda_pages.css. */
:root {
    --pv-ink: #122344;
    --pv-muted: #63718a;
    --pv-blue: #2659ec;
    --pv-line: #dfe7f2;
    --pv-light: #f3f7fe;
    --pv-font: 'DM Sans', sans-serif;
}

.pv-header, .pv-footer { font-family: var(--pv-font); color: var(--pv-ink); -webkit-font-smoothing: antialiased; }
.pv-header *, .pv-footer * { box-sizing: border-box; }
.pv-header a, .pv-footer a { color: inherit; text-decoration: none; }
.pv-header button, .pv-footer button { font: inherit; cursor: pointer; }
.pv-header a:focus-visible, .pv-header button:focus-visible,
.pv-footer a:focus-visible { outline: 3px solid #7699ff; outline-offset: 5px; }

/* The template header is static, so cancel the fixed-navbar offset on <main>. */
main.pv-main { margin-top: 0; }

.pv-header { background: #fff; position: relative; z-index: 20; }
.pv-header-inner {
    height: 96px; max-width: 1376px; margin: auto; padding: 0 48px;
    display: flex; align-items: center; justify-content: space-between; gap: 26px;
}
.pv-brand {
    font-family: Manrope, sans-serif; font-size: 25px; letter-spacing: -1.2px; font-weight: 800;
    display: flex; align-items: center; white-space: nowrap; gap: 8px;
}
.pv-brand span { font-weight: 450; margin-left: -8px; }
.pv-brand i { font-size: 11px; align-self: flex-start; margin-top: 10px; font-style: normal; }
.pv-nav { display: flex; font-size: 14px; font-weight: 550; }
.pv-nav-links { display: flex; align-items: center; gap: 32px; }
.pv-nav a:hover, .pv-footer a:hover { color: var(--pv-blue); }
.pv-nav a[aria-current="page"] { color: var(--pv-blue); }
.pv-nav-link-btn { background: none; border: 0; padding: 0; font-size: 14px; font-weight: 550; color: inherit; }
.pv-nav-cta {
    border: 1px solid var(--pv-line); padding: 10px 21px; border-radius: 100px; font-size: 14px;
    background: #fff; color: var(--pv-ink);
}
.pv-nav-cta:hover { color: var(--pv-blue); border-color: #c5d3ea; }
.pv-menu-toggle { display: none; }
.pv-skip { position: absolute; top: -100px; left: 0; }
.pv-skip:focus { top: 10px; z-index: 99; background: #fff; padding: 10px; }

.pv-footer { background: #f8faff; border-top: 1px solid var(--pv-line); padding: 0 48px; }
.pv-footer-top { max-width: 1280px; margin: auto; display: flex; align-items: center; gap: 35px; padding: 35px 0; }
.pv-footer-top p { font-size: 13px; color: var(--pv-muted); margin: 0; }
.pv-footer-links { margin-left: auto; display: flex; gap: 25px; font-size: 14px; }
.pv-footer-bottom {
    max-width: 1280px; margin: auto; display: flex; justify-content: space-between;
    font-size: 12px; padding: 24px 0; color: #8391a8; border-top: 1px solid var(--pv-line);
}
.pv-footer-bottom span { color: #8391a8; }

@media (max-width: 1100px) {
    .pv-header-inner { padding: 0 28px; }
    .pv-nav-links { gap: 18px; }
}
@media (max-width: 760px) {
    .pv-header-inner { height: 78px; padding: 0 22px; }
    .pv-brand { font-size: 22px; }
    .pv-nav-cta { margin-left: auto; padding: 8px 16px; }
    .pv-menu-toggle { display: block; background: none; border: 0; font-size: 22px; color: var(--pv-ink); }
    .pv-nav {
        display: none; position: absolute; top: 78px; left: 16px; right: 16px; z-index: 10;
        background: #fff; border: 1px solid var(--pv-line); padding: 25px; border-radius: 16px;
        box-shadow: 0 10px 35px #223b6415;
    }
    .pv-nav.open { display: flex; }
    .pv-nav-links { flex-direction: column; align-items: flex-start; gap: 18px; }
    .pv-footer { padding: 0 24px; }
    .pv-footer-top { flex-wrap: wrap; gap: 10px; }
    .pv-footer-top p { width: 100%; }
    .pv-footer-links { margin: 10px 0 0; flex-wrap: wrap; gap: 20px; }
    .pv-footer-bottom { gap: 25px; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
    .pv-header *, .pv-footer * { transition: none !important; animation: none !important; }
}
