/* Generated from assets/site.css by e0921/finish_content.py; templates remain the source of truth. */
:root {
  /* Brand Base */
  --midnight-navy: #0B162B;
  --soft-white: #FFFFFF;
  --cool-mist-grey: #F2F5F9;
  --border-grey: #E5E8EE;
  --warm-gold: #D4A644;

  /* Maths Palette (Teal) */
  --teal-primary: #0CA58E;
  --deep-teal: #067F73;
  --pale-teal: #D6F2EF;
  --teal-tint: #ECFBF8;

  /* Writing Palette (Gold) */
  --gold-primary: #D4A644;
  --deep-gold: #B88717;
  --pale-gold: #FFE9B8;
  --gold-tint: #FFF6E2;

  /* Science Palette (Royal Blue) */
  --royal-blue: #0D2B7A;
  --deep-blue: #1248C9;
  --pale-blue: #E7F0FF;
  --blue-tint: #F1F6FF;

  /* Computer Science Palette (Cyber Violet) */
  --cs-primary: #6D4AFF;
  --cs-deep: #4A2FD6;
  --cs-pale: #E6DEFF;
  --cs-tint: #F4F1FF;

  /* Aliases (default = Maths Teal; subject pages override) */
  --navy: var(--midnight-navy);
  --teal: var(--teal-primary);
  --accent: var(--teal-primary);
  --accent-dark: var(--deep-teal);
  --accent-pale: var(--pale-teal);
  --accent-tint: var(--teal-tint);
  --gold: var(--warm-gold);
  --bg-page: #FAFBFC;
  --bg-card: var(--soft-white);
  --mist: var(--cool-mist-grey);
  --border: var(--border-grey);
  --text-primary: var(--midnight-navy);
  --text-secondary: #6B7280;

  --shadow-sm: 0 1px 2px rgba(11,22,43,0.04);
  --shadow-md: 0 4px 12px rgba(11,22,43,0.06);
  --shadow-lg: 0 8px 24px rgba(11,22,43,0.08);
  --shadow-xl: 0 20px 48px rgba(11,22,43,0.12);
  --radius: 12px;
}
.feature-sec.navy .eyebrow { color: var(--gold); }
.nav { position: sticky; top: 0; z-index: 1000; padding: 13px 0; background: var(--navy); transition: all .4s ease; }
.nav.scrolled { background: rgba(11,22,43,.95); backdrop-filter: blur(12px); box-shadow: 0 2px 20px rgba(0,0,0,.15); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; max-width: 100%; margin: 0 auto; padding: 0 26px; }
@media  (max-width: 768px) {.nav-inner { padding: 0 18px; }}
.nav-logo { font-family: "Playfair Display", serif; font-size: 1.35rem; font-weight: 700; color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 20px; list-style: none; }
.nav-links a,
.nav-dropdown-trigger { color: rgba(255,255,255,.78); font-size: .87rem; font-weight: 500; transition: color .2s; padding-bottom: 4px; }
.nav-links a:hover,
.nav-dropdown-trigger:hover { color: #fff; }
.nav-links a.active,
.nav-dropdown-trigger.active { color: var(--accent); border-bottom: 2px solid var(--accent); }
.theme-writing .nav-links a.active { color: var(--gold); border-bottom-color: var(--gold); }
.theme-science .nav-links a.active { color: #4a78ff; border-bottom-color: #4a78ff; }
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  appearance: none;
  border: 0;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
}
.nav-dropdown-trigger::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  z-index: 1001;
  min-width: 170px;
  display: grid;
  gap: 4px;
  padding: 10px;
  list-style: none;
  background: rgba(11,22,43,.98);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 9px 10px;
  border-radius: 8px;
  white-space: nowrap;
}
.nav-dropdown-menu a:hover {
  background: rgba(255,255,255,.08);
}
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-login { color: rgba(255,255,255,.78); font-size: .92rem; }
.nav-login:hover { color: #fff; }
.nav-cta { padding: 9px 20px; font-size: .88rem; }
.nav-logo-img { height: 58px; width: auto; display: block; }
@media  (max-width: 768px) {.nav-logo-img { height: 46px; }}
.nav-dropdown-menu .nd-tag { font-size: .64rem; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--teal-primary); margin-left: 6px; }
.nav-dropdown-menu .nd-tag.soon { color: #9aa3b2; }
.nav-dropdown-menu .nd-divider { height: 1px; background: rgba(255,255,255,.1); margin: 5px 4px; }
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; }
@media  (max-width: 768px) {.nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--navy); padding: 20px; gap: 14px; }
.nav-links.open { display: flex; }
.nav-dropdown { width: 100%; text-align: center; }
.nav-dropdown-menu {
    position: static;
    width: min(260px, 100%);
    margin: 10px auto 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255,255,255,.06);
  }
.nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu {
    transform: none;
  }
.nav-hamburger { display: block; }
.nav-login { display: none; }}
.feature-sec.navy { background: var(--navy); color: #fff; }
.feature-sec.navy .section-sub { color: rgba(255,255,255,.7); }
.feature-sec.navy .feature-bullets li { color: rgba(255,255,255,.85); }
.feature-sec.navy .feature-bullets li svg { color: var(--accent); }
.footer { background: var(--navy); color: rgba(255,255,255,.65); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer-brand .logo { font-family: "Playfair Display", serif; font-size: 1.3rem; color: var(--gold); margin-bottom: 10px; }
.footer-brand p { font-size: .84rem; line-height: 1.55; }
.footer-banner-img { width: 100%; max-width: 540px; height: auto; display: block; }
.footer .container { max-width: 100%; padding: 0 40px; }
@media  (max-width: 768px) {.footer-banner-img { max-width: 320px; }}
.footer h4 { color: #fff; font-family: "Inter", sans-serif; font-size: .78rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 8px; }
.footer a { color: rgba(255,255,255,.55); font-size: .84rem; transition: color .2s; }
.footer a:hover { color: var(--accent); }
.footer-soon { color: rgba(255,255,255,.4); font-size: .84rem; cursor: default; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; text-align: center; font-size: .8rem; }
@media  (max-width: 768px) {.footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }}
@media(max-width:600px){.nav .nav-logo{min-width:0;flex:1}.nav .nav-logo-img{max-width:100%;height:auto}.nav .nav-right{gap:10px}.nav .nav-cta{font-size:12px;padding:10px 12px;max-width:105px}.nav .nav-inner{gap:12px}}
