/* Basic styling for the business studies notes website */
body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background: #f7f9fc;
    color: #333;
}

header {
    background-color: #004d99;
    background-image: url('images/logo_real.jpg');
    background-repeat: no-repeat;
    background-position: 10px center;
    background-size: auto 60px;
    color: #fff;
    padding: 20px 10px 20px 90px;
    text-align: left;
    display: flex;
    align-items: center;
}

nav {
    background: #e6f0ff;
    padding: 10px;
    border-bottom: 1px solid #ccddee;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

/* top-level navigation items */
nav ul li {
    margin-right: 15px;
    position: relative;
}

nav ul li a {
    color: #004d99;
    text-decoration: none;
    font-weight: bold;
}

nav ul li a:hover {
    text-decoration: underline;
}

/* dropdown menu styling */
nav ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #e6f0ff;
    border: 1px solid #ccddee;
    padding: 10px;
    list-style: none;
    margin: 0;
    z-index: 1000;
    min-width: 140px;
}

nav ul li:hover > ul {
    display: block;
}

nav ul li ul li {
    margin: 0;
}

/* button styling */
.btn {
    display: inline-block;
    background: #004d99;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
}

.btn:hover {
    background: #003366;
}

.container {
    max-width: 960px;
    margin: auto;
    padding: 20px;
}

h2 {
    color: #004d99;
    margin-top: 0;
}

footer {
    background: #004d99;
    color: #fff;
    text-align: center;
    padding: 10px;
    position: fixed;
    bottom: 0;
    width: 100%;
}

@media (max-width: 600px) {
    nav ul {
        flex-direction: column;
    }
    nav ul li {
        margin-bottom: 8px;
    }
    footer {
        position: relative;
    }
}
header h1 {
    margin-left: auto;
    margin-right: 20px;
    text-align: right;
    margin-top: 0;
    margin-bottom: 0;
    font-size: 2rem;
}

/* Chapter bottom navigation buttons */
.chapter-bottom-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    border-top: 1px solid #ccddee;
    margin-top: 34px;
    padding-top: 18px;
    padding-bottom: 70px;
}
.chapter-bottom-nav .prev-link { justify-self: start; }
.chapter-bottom-nav .all-link { justify-self: center; }
.chapter-bottom-nav .next-link { justify-self: end; }
.chapter-nav-button {
    display: inline-block;
    background: #ffffff;
    color: #004d99;
    border: 1px solid #b9d0ec;
    border-radius: 7px;
    padding: 9px 14px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.chapter-nav-button:hover {
    background: #e6f0ff;
    text-decoration: none;
}
.chapter-nav-spacer {
    display: block;
    min-width: 1px;
    min-height: 1px;
}
@media (max-width: 600px) {
    .chapter-bottom-nav {
        grid-template-columns: 1fr;
        text-align: center;
        padding-bottom: 30px;
    }
    .chapter-bottom-nav .prev-link,
    .chapter-bottom-nav .all-link,
    .chapter-bottom-nav .next-link,
    .chapter-nav-spacer {
        justify-self: center;
    }
}

/* Top breadcrumbs, chapter navigation and SEO/accessibility helpers */
html { scroll-behavior: smooth; }
.skip-target { display:block; position:relative; top:-14px; visibility:hidden; height:0; }
.breadcrumb-nav {
    max-width: 1100px;
    margin: 14px auto 0;
    padding: 0 16px;
    font-size: 0.95rem;
}
.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 10px 12px;
    margin: 0;
    background: #f7fbff;
    border: 1px solid #cfe0f5;
    border-radius: 9px;
}
.breadcrumb-list li { color: #334155; }
.breadcrumb-list li + li::before {
    content: "›";
    margin-right: 6px;
    color: #64748b;
    font-weight: 700;
}
.breadcrumb-list a {
    color: #004d99;
    font-weight: 700;
    text-decoration: none;
}
.breadcrumb-list a:hover { text-decoration: underline; }
.chapter-top-nav {
    max-width: 1100px;
    margin: 12px auto 18px;
    padding: 0 16px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: center;
}
.chapter-top-nav .prev-link { justify-self: start; }
.chapter-top-nav .all-link { justify-self: center; }
.chapter-top-nav .next-link { justify-self: end; }
.chapter-top-nav .chapter-nav-button {
    background: #eef6ff;
    border-color: #b9d0ec;
}
.chapter-top-nav .chapter-nav-button:hover { background: #dbeeff; }
@media (max-width: 600px) {
    .chapter-top-nav {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .chapter-top-nav .prev-link,
    .chapter-top-nav .all-link,
    .chapter-top-nav .next-link {
        justify-self: center;
        width: 100%;
        box-sizing: border-box;
    }
    .breadcrumb-list { font-size: 0.9rem; }
}

/* Global navigation update: subjects, about, contact, Edvora Pathways */
.global-site-nav {
    background: #e6f0ff;
    border-bottom: 1px solid #ccddee;
    padding: 0 10px;
    position: relative;
    z-index: 1500;
}
.global-site-nav .site-nav-list {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}
.global-site-nav .site-nav-list > li {
    margin: 0;
    position: relative;
}
.global-site-nav a {
    display: block;
    color: #004d99;
    text-decoration: none;
    font-weight: bold;
    padding: 12px 14px;
    border-radius: 7px;
}
.global-site-nav a:hover,
.global-site-nav a:focus {
    background: #ffffff;
    text-decoration: none;
    outline: none;
}
.global-site-nav .subject-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    background: #ffffff;
    border: 1px solid #ccddee;
    box-shadow: 0 6px 16px rgba(0,0,0,.12);
    border-radius: 8px;
    padding: 6px;
    z-index: 2000;
}
.global-site-nav .subject-menu li {
    list-style: none;
    margin: 0;
}
.global-site-nav .subject-menu a {
    padding: 10px 12px;
    border-radius: 6px;
}
.global-site-nav .subjects-dropdown:hover .subject-menu,
.global-site-nav .subjects-dropdown:focus-within .subject-menu {
    display: block;
}
.site-badge-link {
    background: #004d99;
    color: #fff !important;
    margin-left: 4px;
}
.site-badge-link:hover,
.site-badge-link:focus {
    background: #003366 !important;
}
.creator-card {
    background: #eef6ff;
    border: 1px solid #c9def5;
    border-left: 5px solid #004d99;
    border-radius: 8px;
    padding: 14px 16px;
    margin: 16px 0;
}
.edvora-hero {
    background: linear-gradient(135deg, #eef6ff, #ffffff);
    border: 1px solid #c9def5;
    border-left: 5px solid #004d99;
    border-radius: 12px;
    padding: 20px;
    margin: 18px 0;
}
.edvora-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin: 18px 0;
}
.edvora-card {
    background: #fff;
    border: 1px solid #d7e5f4;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.edvora-card .icon {
    display: block;
    font-size: 2rem;
    margin-bottom: 8px;
}
.edvora-steps {
    counter-reset: step;
    list-style: none;
    padding-left: 0;
}
.edvora-steps li {
    counter-increment: step;
    background: #fff;
    border: 1px solid #d7e5f4;
    border-radius: 10px;
    padding: 12px 14px 12px 48px;
    margin: 10px 0;
    position: relative;
}
.edvora-steps li::before {
    content: counter(step);
    position: absolute;
    left: 14px;
    top: 12px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #004d99;
    color: #fff;
    text-align: center;
    line-height: 24px;
    font-weight: bold;
}
@media (max-width: 700px) {
    .global-site-nav .site-nav-list {
        display: block;
    }
    .global-site-nav .site-nav-list > li {
        display: block;
    }
    .global-site-nav .subject-menu {
        position: static;
        display: block;
        box-shadow: none;
        border: 0;
        background: transparent;
        padding: 0 0 4px 14px;
    }
    .site-badge-link {
        margin-left: 0;
    }
}

/* Shared student-friendly cards, tables and coloured bullets */
.clear-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    background: #fff;
}
.clear-table th,
.clear-table td {
    border: 1px solid #ccddee;
    padding: 10px;
    vertical-align: top;
}
.clear-table th {
    background: #e6f0ff;
    color: #003366;
}
.bullet-list {
    list-style: none;
    padding-left: 0;
    margin: 12px 0;
}
.bullet-list li {
    position: relative;
    padding-left: 28px;
    margin: 10px 0;
}
.bullet-list li::before {
    content: "●";
    position: absolute;
    left: 0;
    top: 0;
    color: #ff6b35;
    font-size: 1.05rem;
}
.bullet-list li.blue::before { color: #004d99; }
.bullet-list li.green::before { color: #2e8b57; }
.bullet-list li.purple::before { color: #7a3db8; }
.bullet-list li.red::before { color: #cc3333; }
.bullet-list li.gold::before { color: #cc8a00; }



/* Updated global navigation, footer, contact and donation sections */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.container {
    flex: 1 0 auto;
}
.global-site-nav .site-nav-list {
    justify-content: center;
}
.global-site-nav .donate-nav-link {
    background: #fffbeb;
    color: #92400e !important;
    border: 1px solid #facc15;
}
.global-site-nav .donate-nav-link:hover,
.global-site-nav .donate-nav-link:focus {
    background: #fef3c7 !important;
}
footer,
.site-footer {
    position: static !important;
    width: auto !important;
    bottom: auto !important;
    background: #07131f;
    color: #dbe7f3;
    text-align: left;
    padding: 0;
    margin-top: 40px;
    flex-shrink: 0;
}
.site-footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 34px 20px 24px;
    display: grid;
    grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(160px, .8fr));
    gap: 26px;
}
.site-footer-brand img {
    max-width: 165px;
    background: #ffffff;
    padding: 8px 10px;
    border-radius: 12px;
    margin-bottom: 14px;
}
.site-footer-brand p,
.site-footer small {
    color: #9fb1c3;
}
.site-footer h3 {
    color: #ffffff;
    font-size: 1rem;
    margin: 0 0 10px;
}
.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.site-footer li {
    margin: 7px 0;
}
.site-footer a {
    color: #bdd7f1;
    text-decoration: none;
    font-weight: 600;
}
.site-footer a:hover,
.site-footer a:focus {
    color: #ffffff;
    text-decoration: underline;
}
.site-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 20px 24px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.contact-form,
.donation-form,
.support-card {
    background: #ffffff;
    border: 1px solid #d7e5f4;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    margin: 18px 0;
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}
.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}
.form-field label {
    font-weight: bold;
    color: #003366;
}
.form-field input,
.form-field select,
.form-field textarea {
    border: 1px solid #b9d0ec;
    border-radius: 8px;
    padding: 10px 12px;
    font: inherit;
    background: #fbfdff;
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-note {
    background: #eef6ff;
    border-left: 5px solid #004d99;
    padding: 12px 14px;
    border-radius: 8px;
    margin: 12px 0;
}
.warning-note {
    background: #fff7e6;
    border-left: 5px solid #cc8a00;
    padding: 12px 14px;
    border-radius: 8px;
    margin: 12px 0;
}
.donate-hero {
    background: linear-gradient(135deg, #eef6ff, #ffffff 60%, #fff7e6);
    border: 1px solid #c9def5;
    border-left: 6px solid #004d99;
    border-radius: 14px;
    padding: 22px;
    margin: 18px 0;
}
.donate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin: 18px 0;
}
.donate-card {
    background: #fff;
    border: 1px solid #d7e5f4;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.donate-card .icon {
    display: block;
    font-size: 2rem;
    margin-bottom: 8px;
}
.bank-details {
    background: #f8fafc;
    border: 1px solid #d7e5f4;
    border-radius: 12px;
    padding: 14px;
    margin-top: 14px;
}
.bank-details table {
    width: 100%;
    border-collapse: collapse;
}
.bank-details td {
    border-bottom: 1px solid #e2e8f0;
    padding: 9px 6px;
    vertical-align: top;
}
.bank-details tr:last-child td { border-bottom: 0; }
.bank-details td:first-child {
    font-weight: bold;
    color: #003366;
    width: 34%;
}
.footer-donate-button,
.donate-button {
    display: inline-block;
    background: #004d99;
    color: #ffffff !important;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: bold;
    border: 0;
    cursor: pointer;
}
.donate-button:hover,
.footer-donate-button:hover {
    background: #003366;
}
@media (max-width: 800px) {
    .site-footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .site-footer-inner { grid-template-columns: 1fr; }
    .site-footer-bottom { display: block; }
}


/* Practice navigation link */
.global-site-nav .practice-nav-link {
    background: #eef6ff;
    color: #004d99 !important;
    border: 1px solid #b9d0ec;
}
.global-site-nav .practice-nav-link:hover,
.global-site-nav .practice-nav-link:focus {
    background: #ffffff !important;
}


/* Practice Zone activity cards */
.practice-library { align-items: stretch; }
.practice-activity-card { min-height: 260px; }
.practice-activity-card .activity-icon { line-height: 1; }

/* PayPal-only donation page refinement */
.paypal-only-donate { max-width: 760px; margin: 28px auto; }
.paypal-main-card { text-align: center; }
.paypal-email { font-size: 1.25rem; color: #004d99; }


/* === Cross-browser footer + mobile menu fixes (2026-09-05) === */
.global-site-nav {
    background: #e6f0ff !important;
    border-bottom: 1px solid #ccddee !important;
}
.global-site-nav .mobile-menu-toggle {
    display: none;
    width: 100%;
    border: 1px solid #b9d0ec;
    background: #ffffff;
    color: #004d99;
    border-radius: 10px;
    padding: 12px 14px;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
}
.global-site-nav .mobile-menu-toggle:hover,
.global-site-nav .mobile-menu-toggle:focus {
    background: #f7fbff;
    outline: 2px solid rgba(0,77,153,.18);
    outline-offset: 2px;
}
.global-site-nav .subjects-dropdown > a::after {
    content: "";
}
.global-site-nav .subjects-dropdown.subject-open > .subject-menu {
    display: block;
}

.site-footer,
footer.site-footer {
    position: static !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    max-width: none !important;
    background: #07131f !important;
    color: #dbe7f3 !important;
    text-align: left !important;
    padding: 0 !important;
    margin-top: 40px !important;
    flex-shrink: 0 !important;
    overflow: hidden;
}
.site-footer,
.site-footer * {
    box-sizing: border-box;
}
.site-footer-inner {
    max-width: 1180px !important;
    margin: 0 auto !important;
    padding: 34px 20px 24px !important;
    display: grid !important;
    grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(160px, .8fr)) !important;
    gap: 26px !important;
    align-items: start !important;
}
.site-footer-brand img {
    display: block !important;
    max-width: 165px !important;
    height: auto !important;
    background: #ffffff !important;
    padding: 8px 10px !important;
    border-radius: 12px !important;
    margin: 0 0 14px !important;
}
.site-footer-brand p,
.site-footer small {
    color: #9fb1c3 !important;
    margin-top: 0;
}
.site-footer h3 {
    color: #ffffff !important;
    font-size: 1rem !important;
    margin: 0 0 10px !important;
}
.site-footer ul,
.site-footer ol {
    list-style: none !important;
    list-style-type: none !important;
    list-style-image: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.site-footer li {
    list-style: none !important;
    list-style-type: none !important;
    margin: 7px 0 !important;
    padding: 0 !important;
}
.site-footer li::marker {
    content: "" !important;
    font-size: 0 !important;
}
.site-footer a {
    color: #bdd7f1 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}
.site-footer a:hover,
.site-footer a:focus {
    color: #ffffff !important;
    text-decoration: underline !important;
}
.site-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12) !important;
    max-width: 1180px !important;
    margin: 0 auto !important;
    padding: 14px 20px 24px !important;
    display: flex !important;
    justify-content: space-between !important;
    gap: 16px !important;
    flex-wrap: wrap !important;
}
.site-footer-bottom small {
    display: block;
}

@media (max-width: 800px) {
    .global-site-nav {
        padding: 8px 10px !important;
    }
    .global-site-nav .mobile-menu-toggle {
        display: block !important;
    }
    .global-site-nav .site-nav-list {
        display: none !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 8px 0 0 !important;
        padding: 0 !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 6px !important;
    }
    .global-site-nav.nav-open .site-nav-list {
        display: flex !important;
    }
    .global-site-nav .site-nav-list > li {
        width: 100% !important;
        display: block !important;
        margin: 0 !important;
    }
    .global-site-nav a {
        width: 100% !important;
        box-sizing: border-box !important;
        text-align: left !important;
        border-radius: 9px !important;
        padding: 12px 14px !important;
    }
    .global-site-nav .subject-menu {
        display: none !important;
        position: static !important;
        width: 100% !important;
        min-width: 0 !important;
        margin: 4px 0 4px 0 !important;
        padding: 4px 0 4px 18px !important;
        box-shadow: none !important;
        border: 0 !important;
        background: transparent !important;
    }
    .global-site-nav .subjects-dropdown.subject-open > .subject-menu,
    .global-site-nav .subjects-dropdown:focus-within > .subject-menu {
        display: block !important;
    }
    .global-site-nav .subject-menu a {
        background: #f7fbff !important;
        border: 1px solid #d8e8fa !important;
        margin: 4px 0 !important;
    }
    .site-badge-link,
    .global-site-nav .practice-nav-link,
    .global-site-nav .donate-nav-link {
        margin-left: 0 !important;
    }
    .site-footer-inner {
        grid-template-columns: 1fr 1fr !important;
        gap: 22px !important;
    }
}
@media (max-width: 560px) {
    .site-footer-inner {
        grid-template-columns: 1fr !important;
        text-align: left !important;
        padding: 30px 18px 20px !important;
    }
    .site-footer-bottom {
        display: block !important;
        text-align: left !important;
        padding: 14px 18px 22px !important;
    }
    .site-footer-bottom small + small {
        margin-top: 6px !important;
    }
}

/* === IGCSE360 Spotlight-style site search (2026-09-08) === */
.global-site-nav .search-nav-item { display:flex; align-items:center; }
.global-site-nav .site-search-button {
  appearance:none;
  border:1px solid rgba(255,255,255,.24);
  background:rgba(255,255,255,.10);
  color:#fff;
  border-radius:999px;
  padding:9px 14px;
  font:inherit;
  font-weight:800;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:7px;
  line-height:1;
  transition:background .18s ease, transform .18s ease, border-color .18s ease;
}
.global-site-nav .site-search-button:hover,
.global-site-nav .site-search-button:focus-visible {
  background:rgba(255,255,255,.19);
  border-color:rgba(255,255,255,.42);
  transform:translateY(-1px);
  outline:none;
}
.global-site-nav .site-search-icon { font-size:1.05rem; line-height:1; }

body.site-search-open { overflow:hidden; }
.site-search-overlay {
  position:fixed;
  inset:0;
  z-index:100000;
  display:none;
  padding:10vh 18px 24px;
  background:rgba(12,31,55,.28);
  backdrop-filter:blur(18px) saturate(120%);
  -webkit-backdrop-filter:blur(18px) saturate(120%);
}
.site-search-overlay.is-open { display:block; }
.site-search-panel {
  width:min(760px, 100%);
  max-height:min(680px, 78vh);
  margin:0 auto;
  overflow:hidden;
  border-radius:24px;
  background:rgba(255,255,255,.96);
  border:1px solid rgba(255,255,255,.78);
  box-shadow:0 30px 90px rgba(4,35,68,.28), 0 5px 18px rgba(4,35,68,.12);
}
.site-search-input-wrap {
  display:flex;
  align-items:center;
  gap:12px;
  padding:18px 20px;
  border-bottom:1px solid #e2eaf2;
  background:linear-gradient(180deg,#fff 0%,#fbfdff 100%);
}
.site-search-magnifier { font-size:1.45rem; opacity:.65; flex:0 0 auto; }
.site-search-input {
  width:100%;
  border:0;
  outline:0;
  background:transparent;
  color:#0b355d;
  font-size:clamp(1.15rem,2vw,1.42rem);
  font-weight:650;
  line-height:1.35;
  min-width:0;
}
.site-search-input::placeholder { color:#7f91a5; font-weight:500; }
.site-search-close {
  flex:0 0 auto;
  border:0;
  background:#eef4f9;
  color:#4f657a;
  border-radius:9px;
  padding:7px 9px;
  font-weight:800;
  cursor:pointer;
}
.site-search-close:hover,
.site-search-close:focus-visible { background:#e1ebf3; outline:none; }
.site-search-hint {
  padding:10px 20px;
  color:#718397;
  font-size:.84rem;
  border-bottom:1px solid #edf2f6;
}
.site-search-results {
  max-height:calc(min(680px, 78vh) - 115px);
  overflow:auto;
  overscroll-behavior:contain;
  padding:8px;
}
.site-search-empty {
  padding:34px 24px 38px;
  text-align:center;
  color:#65788b;
}
.site-search-result {
  display:block;
  text-decoration:none;
  border-radius:15px;
  padding:13px 14px;
  color:#18344f;
  border:1px solid transparent;
}
.site-search-result:hover,
.site-search-result:focus-visible,
.site-search-result.is-selected {
  background:#eef6ff;
  border-color:#cfe4f8;
  outline:none;
}
.site-search-result-top {
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
}
.site-search-result-title {
  font-size:1rem;
  font-weight:850;
  color:#073a67;
}
.site-search-result-section {
  flex:0 0 auto;
  font-size:.75rem;
  font-weight:800;
  color:#0f7654;
  background:#e9f9f1;
  border-radius:999px;
  padding:4px 8px;
}
.site-search-result-snippet {
  margin-top:5px;
  font-size:.87rem;
  line-height:1.45;
  color:#617285;
}
.site-search-result mark {
  background:#fff2a8;
  color:inherit;
  border-radius:3px;
  padding:0 1px;
}
.site-search-loading { padding:30px 24px; text-align:center; color:#65788b; }

@media (max-width:800px) {
  .global-site-nav .search-nav-item { width:100%; }
  .global-site-nav .site-search-button {
    width:100%;
    justify-content:center;
    padding:11px 14px;
    border-radius:12px;
  }
  .site-search-overlay { padding:7vh 10px 16px; }
  .site-search-panel { border-radius:19px; max-height:84vh; }
  .site-search-input-wrap { padding:14px; gap:9px; }
  .site-search-hint { padding:8px 14px; }
  .site-search-results { max-height:calc(84vh - 104px); }
  .site-search-result-top { align-items:flex-start; }
  .site-search-result-section { max-width:38%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
}

@media (prefers-reduced-motion: reduce) {
  .global-site-nav .site-search-button { transition:none; }
}

/* Search button visual alignment with the light-blue main navigation */
.global-site-nav .site-search-button {
  background:#ffffff;
  color:#004d99;
  border:1px solid #9fc4ea;
  padding:10px 13px;
}
.global-site-nav .site-search-button:hover,
.global-site-nav .site-search-button:focus-visible {
  background:#eef6ff;
  color:#003f7f;
  border-color:#6ea7df;
}

/* === Mobile-only expandable navigation refinement (2026-09-08 v2) ===
   Desktop navigation remains fully visible. On phones/tablets the navigation
   is collapsed by default behind a clear hamburger button, so the visitor
   chooses when to reveal the menu. */
@media (max-width: 800px) {
  .global-site-nav {
    position: relative;
    padding: 9px 12px !important;
    overflow: visible !important;
  }

  .global-site-nav .mobile-menu-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    width: 100% !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 11px 14px !important;
    border: 1px solid #a9c9e9 !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    color: #06345f !important;
    box-shadow: 0 3px 12px rgba(6,52,95,.06) !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    text-align: left !important;
    cursor: pointer !important;
    -webkit-tap-highlight-color: transparent;
  }

  .global-site-nav .mobile-menu-toggle::after {
    content: "Tap to view navigation";
    font-size: .76rem;
    font-weight: 600;
    color: #60758a;
  }

  .global-site-nav.nav-open .mobile-menu-toggle::after {
    content: "Tap to hide navigation";
  }

  .global-site-nav:not(.nav-open) .site-nav-list {
    display: none !important;
  }

  .global-site-nav.nav-open .site-nav-list {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 5px !important;
    width: 100% !important;
    margin: 9px 0 0 !important;
    padding: 9px !important;
    border: 1px solid #c8dcef !important;
    border-radius: 14px !important;
    background: #f8fbff !important;
    box-shadow: 0 10px 28px rgba(6,52,95,.10) !important;
  }

  .global-site-nav .site-nav-list > li {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
  }

  .global-site-nav .site-nav-list > li > a,
  .global-site-nav .site-search-button {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 44px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 11px 13px !important;
    border-radius: 10px !important;
    text-align: left !important;
  }

  .global-site-nav .site-nav-list > li > a:hover,
  .global-site-nav .site-nav-list > li > a:focus-visible {
    background: #eaf4ff !important;
  }

  /* Subjects stays closed until the visitor explicitly taps it. */
  .global-site-nav .subject-menu,
  .global-site-nav .subjects-dropdown:focus-within > .subject-menu {
    display: none !important;
  }

  .global-site-nav .subjects-dropdown.subject-open > .subject-menu {
    display: block !important;
    position: static !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 4px 0 4px 12px !important;
    padding: 4px 0 4px 9px !important;
    border: 0 !important;
    border-left: 3px solid #9fc4ea !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .global-site-nav .subject-menu a {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 4px 0 !important;
    padding: 10px 12px !important;
    border: 1px solid #d7e6f5 !important;
    border-radius: 9px !important;
    background: #ffffff !important;
    color: #06345f !important;
  }

  .global-site-nav .search-nav-item {
    display: block !important;
    width: 100% !important;
  }

  .global-site-nav .site-search-button {
    justify-content: flex-start !important;
    border-color: #9fc4ea !important;
    background: #ffffff !important;
    color: #004d99 !important;
  }
}

/* Hamburger is never shown on desktop. */
@media (min-width: 801px) {
  .global-site-nav .mobile-menu-toggle {
    display: none !important;
  }
  .global-site-nav .site-nav-list {
    display: flex !important;
  }
}
