/* The header, the strip above it and the footer of the school's website. Scoped to their own classes and
   container (.shell), so a page with its own stylesheet — the admission form — can wear them untouched. */
:root {
    --ink: #17163f;
    --brand: #2a2886;
    --brand-2: #3e3cb8;
    --brand-soft: #eceafb;
    --gold: #f4c20d;
    --gold-deep: #c99a00;
    --gold-soft: #fff6d6;
    --green: #1f7a3d;
    --green-soft: #e5f4ea;
    --sun: #ef8a17;
    --paper: #ffffff;
    --mist: #f6f6fb;
    --line: #e4e4f0;
    --muted: #5d6079;
    --faint: #8b8ea6;
    --danger: #b42318;
    --radius: 14px;
    --radius-sm: 9px;
    --shadow: 0 1px 2px rgba(23,22,63,.05), 0 6px 22px rgba(23,22,63,.07);
    --shadow-lift: 0 2px 4px rgba(23,22,63,.06), 0 14px 34px rgba(23,22,63,.12);
    --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
    --sans: 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --wrap: 1180px;
}

.topstrip, .site-header, .site-footer { font-family: var(--sans); line-height: 1.6; -webkit-text-size-adjust: 100%; }
.topstrip *, .site-header *, .site-footer * { box-sizing: border-box; }
.topstrip a, .site-header a, .site-footer a { text-decoration: none; }
.site-header img, .site-footer img { display: block; max-width: 100%; }
.site-footer p { margin: 0 0 1em; }
.shell { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100; font-weight: 700; font-family: var(--sans); }
.skip:focus { left: 12px; }

/* ---------- top strip ---------- */
.topstrip { background: var(--ink); color: #c9c8ea; font-size: 13px; }
.topstrip .shell { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; flex-wrap: wrap; }
.topstrip a { color: #e4e3fb; }
.topstrip a:hover { color: var(--gold); }
.topstrip .bits { display: flex; gap: 18px; flex-wrap: wrap; }
.topstrip i { color: var(--gold); margin-right: 6px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.site-header .shell { display: flex; align-items: center; gap: 18px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); min-width: 0; }
.brand img { width: 52px; height: 52px; object-fit: contain; border-radius: 50%; flex-shrink: 0; }
.brand b { display: block; font-family: var(--serif); font-size: 17px; line-height: 1.15; font-weight: 700; color: var(--brand); }
.brand small { display: block; font-size: 11.5px; color: var(--muted); letter-spacing: .02em; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav > a, .nav .drop > button { font: 600 14px var(--sans); color: var(--ink); padding: 9px 11px; border-radius: 9px; background: none; border: 0; cursor: pointer; white-space: nowrap; }
.nav > a:hover, .nav .drop > button:hover { background: var(--brand-soft); color: var(--brand); }
.nav > a.on { color: var(--brand); background: var(--brand-soft); }
.nav .apply { background: var(--gold); color: var(--ink) !important; margin-left: 6px; }
.nav .apply:hover { background: #ffd23a !important; }
.drop { position: relative; }
.drop .menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 210px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lift); padding: 6px; display: none; }
.drop.open .menu { display: block; }
.drop .menu a { display: flex; gap: 10px; align-items: center; padding: 9px 11px; border-radius: 8px; color: var(--ink); font-size: 14px; }
.drop .menu a:hover { background: var(--brand-soft); color: var(--brand); }
.drop .menu i { width: 18px; text-align: center; color: var(--brand); }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 18px; color: var(--ink); cursor: pointer; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #bdbce3; padding: 64px 0 0; font-size: 14.5px; }
.site-footer .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 36px; }
.site-footer h4 { font-family: var(--sans); color: #fff; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: #d6d5f7; }
.site-footer a:hover { color: var(--gold); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer .about img { width: 64px; height: 64px; border-radius: 50%; margin-bottom: 14px; background: #fff; }
.site-footer .about b { display: block; color: #fff; font-family: var(--serif); font-size: 18px; margin-bottom: 8px; }
.site-footer .social { display: flex; gap: 8px; margin-top: 16px; }
.site-footer .social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; }
.site-footer .social a:hover { background: var(--gold); color: var(--ink); }
.site-footer .line { display: flex; gap: 10px; margin-bottom: 10px; }
.site-footer .line i { color: var(--gold); margin-top: 4px; width: 16px; }
.site-footer .bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding: 18px 0; font-size: 13px; color: #9998c9; }
.site-footer .bottom .shell { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

@media (max-width: 1060px) {
    .nav > a { padding: 9px 8px; font-size: 13.5px; }
    .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
    .burger { display: inline-flex; align-items: center; justify-content: center; }
    .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lift); flex-direction: column; align-items: stretch; padding: 10px 16px 16px; gap: 2px; }
    .nav.open { display: flex; }
    .nav > a, .nav .drop > button { padding: 12px 12px; font-size: 15px; text-align: left; width: 100%; }
    .nav .apply { margin: 8px 0 0; text-align: center; justify-content: center; }
    .drop .menu { position: static; box-shadow: none; border: 0; padding: 0 0 0 12px; }
}
@media (max-width: 680px) {
    .shell { padding: 0 16px; }
    .topstrip .hide-sm { display: none; }
    .brand b { font-size: 15px; }
    .brand small { display: none; }
    .brand img { width: 44px; height: 44px; }
    .site-header .shell { min-height: 66px; }
    .site-footer .cols { grid-template-columns: 1fr; gap: 30px; }
}
