/* Homeschool Corral: the one site header, identical on every page (content pages, the homepage, My Homeschool,
   Transcripts, the Scholarship Finder, the Worksheet Maker, Scripture Memory and every course).
   Markup: src/pages/header.html. Script: /hc-nav.js (phone menu). Self-contained: it carries its own colors and
   resets so a course or app stylesheet can't change it. Needs /fonts/fonts.css for Besley and Public Sans. */
#site-nav {
  --hh-navy: #1B2A41; --hh-ivory: #FFFFFF; --hh-ivory-2: #FFFFFF; --hh-copper: #B0602B; --hh-line: rgba(27, 42, 65, .22);
  --hh-gutter: clamp(1rem, .6rem + 2vw, 2.5rem); --hh-ease: cubic-bezier(.2, .7, .2, 1);
  position: sticky; top: 0; left: 0; right: 0; z-index: 9500; display: block; margin: 0; padding: 0; border: 0; border-radius: 0;
  background: rgba(255, 255, 255, .94); color: var(--hh-navy); text-align: left; text-transform: none;
  font: 400 16px/1.4 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; letter-spacing: normal;
  box-shadow: 0 1px 0 var(--hh-line), 0 8px 24px -16px rgba(36, 28, 18, .35);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
}
#site-nav::before, #site-nav::after { display: none; content: none; }
#site-nav *, #site-nav *::before, #site-nav *::after { box-sizing: border-box; }
#site-nav .wrap { position: relative; display: flex; align-items: center; gap: 1rem; min-height: 76px; width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--hh-gutter); background: none; border: 0; }
#site-nav .brand { display: inline-flex; align-items: center; gap: .65rem; margin: 0; padding: 0; color: var(--hh-navy); background: none; text-decoration: none;
  font: 700 1.3rem/1 'Besley', 'Iowan Old Style', Georgia, serif; letter-spacing: -.01em; white-space: nowrap; }
#site-nav .brand:hover { color: var(--hh-navy); }
#site-nav .brand svg { width: 38px; height: 31px; flex: none; display: block; }
#site-nav .navlinks { display: flex; flex-wrap: nowrap; align-items: center; gap: .25rem; margin: 0 0 0 auto; padding: 0; background: none; border: 0; box-shadow: none; position: static; flex-direction: row; width: auto; }
#site-nav .navlinks a { color: var(--hh-navy); background: transparent; text-decoration: none; font: 600 1rem/1.2 'Public Sans', system-ui, sans-serif; letter-spacing: normal; text-transform: none;
  margin: 0; padding: .55rem .8rem; border: 0; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; box-shadow: none; transition: background-color .16s; }
#site-nav .navlinks a:hover { background: rgba(27, 42, 65, .07); color: var(--hh-navy); }
#site-nav .navlinks a[aria-current] { background: rgba(27, 42, 65, .08); box-shadow: inset 0 -2px 0 var(--hh-copper); }
#site-nav .navlinks [data-hc-account] { display: inline-flex; margin: 0; padding: 0; }
#site-nav .navlinks a.acct { display: block; max-width: 11em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-left: .5rem; border: 1.5px solid currentColor; padding: .75rem 1.05rem; }
#site-nav .navlinks a.acct:hover { background: var(--hh-copper); border-color: var(--hh-copper); color: #fff; }
#site-nav .menu-btn { display: none; margin: 0 0 0 auto; align-items: center; gap: .5rem; min-height: 44px; min-width: 0; width: auto; height: auto; padding: .5rem .9rem; border-radius: 999px;
  border: 1.5px solid currentColor; background: transparent; color: var(--hh-navy); font: 650 1rem/1 'Public Sans', system-ui, sans-serif; letter-spacing: normal; text-transform: none; cursor: pointer; box-shadow: none; }
#site-nav .menu-btn i { position: relative; display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: background-color .16s; }
#site-nav .menu-btn i::before, #site-nav .menu-btn i::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .28s var(--hh-ease); }
#site-nav .menu-btn i::before { top: -6px; } #site-nav .menu-btn i::after { top: 6px; }
#site-nav .menu-btn[aria-expanded="true"] i { background: transparent; }
#site-nav .menu-btn[aria-expanded="true"] i::before { transform: translateY(6px) rotate(45deg); }
#site-nav .menu-btn[aria-expanded="true"] i::after { transform: translateY(-6px) rotate(-45deg); }
#site-nav :focus-visible { outline: 3px solid #2F6FB2; outline-offset: 3px; border-radius: 6px; }
@media (max-width: 1360px) { #site-nav .navlinks a { padding: .55rem .6rem; font-size: .95rem; } }
@media (max-width: 1180px) {
  #site-nav .menu-btn { display: inline-flex; }
  #site-nav .navlinks { position: absolute; top: calc(100% - 4px); left: var(--hh-gutter); right: var(--hh-gutter); flex-direction: column; align-items: stretch; gap: 2px; padding: .75rem;
    background: var(--hh-ivory-2); border-radius: 16px; border: 1px solid var(--hh-line);
    box-shadow: 0 2px 4px rgba(36, 28, 18, .06), 0 18px 36px -14px rgba(36, 28, 18, .30), 0 40px 70px -40px rgba(27, 42, 65, .28);
    opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.98); transform-origin: top right;
    transition: opacity .28s var(--hh-ease), transform .28s var(--hh-ease), visibility 0s linear .28s; }
  #site-nav.is-open .navlinks { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  #site-nav .navlinks a { font-size: 1.0625rem; padding: .8rem 1rem; border-radius: 10px; }
  #site-nav .navlinks a[aria-current] { box-shadow: inset 3px 0 0 var(--hh-copper); }
  #site-nav .navlinks [data-hc-account] { display: flex; }
  #site-nav .navlinks a.acct { flex: 1; min-width: 0; max-width: none; margin: .5rem 0 0; text-align: center; border-color: var(--hh-navy); border-radius: 999px; }
  #site-nav.is-open { background: rgba(255, 255, 255, .97); }
}
@media (max-width: 420px) { #site-nav .brand { font-size: 1.12rem; gap: .5rem; } #site-nav .brand svg { width: 32px; height: 26px; } #site-nav .menu-btn { padding: .5rem .75rem; } }
@media (prefers-reduced-motion: reduce) { #site-nav *, #site-nav *::before, #site-nav *::after { transition-duration: 1ms !important; } }
@media print { #site-nav { display: none !important; } }
/* a course's "who's playing" screen starts below the header, so the site header always shows */
.pf-veil { top: 76px !important; }

/* ---------------------------------------------------------------- the section bar under the header
   Apps (My Homeschool, Transcripts, Scholarship Finder, Worksheet Maker, Scripture Memory) put their own tabs here.
   Markup: <header class="hc-sub"><div class="hc-sub-in"><a class="hc-sub-title">Name</a><nav class="hc-sub-nav">…</nav></div></header> */
header.hc-sub { position: relative; z-index: 20; display: block; margin: 0; padding: 0; background: #FFFFFF; color: #1B2A41; border: 0; border-bottom: 1px solid rgba(27, 42, 65, .11);
  box-shadow: 0 6px 18px -16px rgba(36, 28, 18, .35); -webkit-backdrop-filter: none; backdrop-filter: none; font: 400 16px/1.4 'Public Sans', system-ui, sans-serif; }
header.hc-sub .hc-sub-in { display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; min-height: 58px; width: 100%; max-width: 1240px; margin: 0 auto; padding: 7px clamp(1rem, .6rem + 2vw, 2.5rem); }
header.hc-sub .hc-sub-title { display: inline-flex; align-items: center; gap: 10px; margin: 0; color: #1B2A41; text-decoration: none; font: 650 1.2rem/1.1 'Besley', Georgia, serif; letter-spacing: -.01em; white-space: nowrap; }
header.hc-sub .hc-sub-title .hc-sub-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: #F2F4F7; color: #93501F; font-size: 16px; }
header.hc-sub .hc-sub-title .hc-sub-ic svg { width: 18px; height: 18px; }
header.hc-sub .hc-sub-title small { display: block; font: 500 .78rem/1.2 'Public Sans', sans-serif; color: #6A6670; letter-spacing: 0; margin-top: 2px; }
header.hc-sub .hc-sub-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; flex-wrap: wrap; min-width: 0; max-width: 100%; position: relative; }
header.hc-sub .hc-sub-nav a, header.hc-sub .hc-sub-nav button { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: .4rem .85rem; border: 0; border-radius: 999px; background: transparent;
  color: #1B2A41; text-decoration: none; font: 600 .95rem/1.2 'Public Sans', system-ui, sans-serif; cursor: pointer; white-space: nowrap; transition: background-color .16s, color .16s; }
header.hc-sub .hc-sub-nav a:hover, header.hc-sub .hc-sub-nav button:hover { background: rgba(27, 42, 65, .07); color: #1B2A41; }
header.hc-sub .hc-sub-nav a.on, header.hc-sub .hc-sub-nav a[aria-current="page"], header.hc-sub .hc-sub-nav a[aria-selected="true"] { background: #1B2A41; color: #FFFFFF; }
header.hc-sub .hc-sub-nav .hc-ic { color: inherit; }
header.hc-sub :focus-visible { outline: 3px solid #2F6FB2; outline-offset: 2px; }
@media (max-width: 640px) { header.hc-sub .hc-sub-in { min-height: 52px; } header.hc-sub .hc-sub-title { font-size: 1.08rem; } header.hc-sub .hc-sub-nav a, header.hc-sub .hc-sub-nav button { padding: .4rem .7rem; font-size: .92rem; } }
@media print { header.hc-sub { display: none !important; } }

/* ---------------------------------------------------------------- the courses' "who's playing" screen, in the site's look */
body .pf-veil { background: radial-gradient(120% 70% at 50% 0%, #FFFFFF 0%, var(--bg, #FFFFFF) 70%); font-family: 'Public Sans', system-ui, sans-serif; }
body .pf-wrap { max-width: 720px; margin: clamp(20px, 5vh, 56px) auto 60px; padding: clamp(24px, 3vw + 12px, 40px); background: var(--panel, #FFFFFF); border: 1px solid var(--line, rgba(27, 42, 65, .13)); border-radius: 24px;
  box-shadow: 0 2px 4px rgba(36, 28, 18, .06), 0 18px 36px -14px rgba(36, 28, 18, .30), 0 40px 70px -40px rgba(27, 42, 65, .28); }
body .pf-h { font: 650 clamp(1.7rem, 1.4rem + 1.2vw, 2.3rem)/1.1 'Besley', Georgia, serif; letter-spacing: -.012em; }
body .pf-sub { font-size: 1rem; line-height: 1.6; }
body .pf-card { border-radius: 16px; box-shadow: 0 1px 1px rgba(36, 28, 18, .06), 0 2px 6px -2px rgba(36, 28, 18, .10); }
body .pf-search { min-height: 48px; border-radius: 12px; border: 1px solid var(--line, #C2C9D3); font-size: 1rem; box-shadow: inset 0 1px 2px rgba(36, 28, 18, .05); }
body .pf-search:focus { outline: 0; border-color: #1B2A41; box-shadow: 0 0 0 3px rgba(47, 111, 178, .25); }
body .pf-btn { min-height: 44px; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: .95rem; }
body .pf-btn.pf-go { padding: 11px 26px; background: linear-gradient(180deg, #BE6A31, #B0602B 55%, #9C5323); border-color: transparent; color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .22) inset, 0 8px 18px -8px rgba(147, 80, 31, .65); }
@media (max-width: 640px) { body .pf-wrap { margin: 12px 12px 48px; border-radius: 18px; } }

/* Find anything (23 Oct 2026): the Search button and the search window */
#site-nav .hc-find { order: 3; display: inline-flex; align-items: center; gap: .45rem; flex: none; min-height: 44px; margin: 0 0 0 .35rem; padding: .45rem .7rem .45rem .8rem; border-radius: 999px;
  border: 1.5px solid var(--hh-line); background: #fff; color: var(--hh-navy); font: 600 .95rem/1 'Public Sans', system-ui, sans-serif; cursor: pointer; box-shadow: none; text-transform: none; letter-spacing: normal; }
#site-nav .hc-find:hover { border-color: var(--hh-navy); }
#site-nav .hc-find:focus-visible, #site-nav .menu-btn:focus-visible { outline: 3px solid #B0602B; outline-offset: 2px; }
#site-nav .hc-find svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
#site-nav .hc-find kbd { font: 600 .72rem/1 'Public Sans', system-ui, sans-serif; padding: .25rem .4rem; border-radius: 6px; background: rgba(27, 42, 65, .07); color: #4a5568; border: 0; box-shadow: none; }
#site-nav .navlinks { order: 2; }
#site-nav .menu-btn { order: 4; }
@media (max-width: 1360px) { #site-nav .hc-find kbd { display: none; } }
@media (max-width: 1280px) and (min-width: 1181px) { #site-nav .hc-find span { display: none; } #site-nav .hc-find { padding: .45rem .7rem; } }
@media (max-width: 1180px) { #site-nav .hc-find { margin-left: auto; } #site-nav .menu-btn { margin-left: .5rem; } }
@media (max-width: 420px) { #site-nav .hc-find span { display: none; } #site-nav .hc-find { padding: .45rem .7rem; } }
.hcf-bg { position: fixed; inset: 0; z-index: 10000; background: rgba(16, 25, 42, .45); display: flex; align-items: flex-start; justify-content: center; padding: 9vh 16px 16px;
  font: 400 16px/1.4 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; color: #1B2A41; }
.hcf-bg[hidden] { display: none; }
.hcf { width: 100%; max-width: 640px; max-height: 78vh; display: flex; flex-direction: column; background: #fff; border-radius: 16px; box-shadow: 0 24px 60px -12px rgba(16, 25, 42, .45); overflow: hidden; }
.hcf-in { display: flex; align-items: center; gap: .6rem; padding: .35rem .6rem .35rem 1rem; border-bottom: 1px solid #e3ddd2; }
.hcf-in svg { width: 20px; height: 20px; flex: none; fill: none; stroke: #5d6b80; stroke-width: 2; stroke-linecap: round; }
.hcf-in input { flex: 1; min-width: 0; min-height: 52px; border: 0; outline: 0; background: none; font: 500 1.08rem/1.3 'Public Sans', system-ui, sans-serif; color: #1B2A41; padding: 0; box-shadow: none; }
.hcf-in input::placeholder { color: #7a8494; }
.hcf-x { flex: none; min-height: 36px; padding: .3rem .6rem; border: 1px solid #d5d0c6; border-radius: 8px; background: #faf8f4; color: #4a5568; font: 600 .78rem/1 'Public Sans', system-ui, sans-serif; cursor: pointer; }
.hcf-list { list-style: none; margin: 0; padding: .35rem .4rem .5rem; overflow-y: auto; }
.hcf-h { padding: .7rem .7rem .3rem; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6b6458; }
.hcf-o { display: flex; align-items: center; gap: .75rem; padding: .55rem .7rem; border-radius: 10px; cursor: pointer; min-height: 48px; }
.hcf-o[aria-selected="true"] { background: #F3EDE3; box-shadow: inset 3px 0 0 #B0602B; }
.hcf-ic { flex: none; width: 34px; height: 34px; border-radius: 9px; background: #EEF1F5; display: inline-flex; align-items: center; justify-content: center; }
.hcf-ic svg { width: 18px; height: 18px; fill: none; stroke: #1B2A41; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hcf-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hcf-tx b { font-weight: 650; font-size: .98rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hcf-tx span { font-size: .84rem; color: #5d6470; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hcf-tx mark { background: #FBE3D0; color: inherit; border-radius: 3px; padding: 0 1px; }
.hcf-g { flex: none; font-size: .75rem; color: #7a8494; }
.hcf-none { padding: .8rem .8rem .2rem; font-size: .95rem; color: #4a443a; }
.hcf-st { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); margin: 0; }
.hcf-foot { display: flex; gap: 1.1rem; padding: .55rem 1rem; border-top: 1px solid #ece7de; font-size: .8rem; color: #6b6458; background: #faf8f4; }
.hcf-foot kbd { font: 600 .72rem/1 'Public Sans', system-ui, sans-serif; padding: .2rem .35rem; margin-right: .2rem; border-radius: 5px; background: #fff; border: 1px solid #d5d0c6; color: #1B2A41; }
html.hcf-open, html.hcf-open body { overflow: hidden; }
@media (max-width: 640px) { .hcf-bg { padding: 0; } .hcf { max-width: none; max-height: none; height: 100%; border-radius: 0; } .hcf-foot { display: none; } .hcf-g { display: none; } }
@media (prefers-reduced-motion: no-preference) { .hcf { animation: hcf-in .16s ease-out; } @keyframes hcf-in { from { opacity: 0; transform: translateY(-6px) scale(.99); } } }
@media print { .hcf-bg { display: none !important; } }
#site-nav .hc-find, #site-nav .menu-btn { flex: none; }
@media (max-width: 420px) { #site-nav .wrap { gap: .5rem; } #site-nav .menu-btn { font-size: 0; gap: 0; padding: .5rem .8rem; min-width: 44px; justify-content: center; } }
@media (max-width: 374px) { #site-nav .brand { font-size: .95rem; gap: .4rem; } #site-nav .brand svg { width: 26px; height: 22px; } #site-nav .wrap { padding: 0 12px; gap: .4rem; } }
/* 23 Oct 2026 (review): Search sits first, before the section links; its word and shortcut show where there's room */
@media (min-width: 1181px) {
  #site-nav .hc-find { order: 1; margin: 0 0 0 auto; padding: .45rem .7rem; }
  #site-nav .navlinks { margin-left: .35rem; }
  #site-nav .hc-find span, #site-nav .hc-find kbd { display: none; }
}
@media (min-width: 1500px) { #site-nav .hc-find span { display: inline; } #site-nav .hc-find { padding: .45rem .8rem .45rem .75rem; } }
@media (min-width: 1640px) { #site-nav .hc-find kbd { display: inline; } }
@media (min-width: 1181px) and (max-width: 1300px) { #site-nav .navlinks a { padding: .5rem .5rem; font-size: .92rem; } #site-nav .navlinks a.acct { padding: .6rem .85rem; margin-left: .3rem; } #site-nav .brand { font-size: 1.18rem; } #site-nav .wrap { gap: .6rem; } }

body > .hc-skip, #site-nav .hc-skip { position: fixed; left: 12px; top: -100px; z-index: 10001; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; padding: 0; border-radius: 8px; background: #1B2A41; color: #fff; font: 600 .95rem/1 'Public Sans', system-ui, sans-serif; text-decoration: none; }
body > .hc-skip:focus, #site-nav .hc-skip:focus { top: 12px; width: auto; height: auto; clip: auto; overflow: visible; padding: .6rem 1rem; outline: 3px solid #B0602B; outline-offset: 2px; }
/* grouped header menus (header-grouped.html; 23 Oct 2026 review preview) */
#site-nav .ng { position: relative; display: inline-flex; }
#site-nav .ng-b { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; margin: 0; padding: .55rem .7rem; border: 0; border-radius: 999px; background: transparent; color: var(--hh-navy);
  font: 600 1rem/1.2 'Public Sans', system-ui, sans-serif; cursor: pointer; white-space: nowrap; box-shadow: none; text-transform: none; letter-spacing: normal; }
#site-nav .ng-b i { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .16s; }
#site-nav .ng-b[aria-expanded="true"] i { transform: translateY(1px) rotate(225deg); }
#site-nav .ng-b:hover, #site-nav .ng-b[aria-expanded="true"] { background: rgba(27, 42, 65, .07); }
#site-nav .ng-b.is-current { background: rgba(27, 42, 65, .08); box-shadow: inset 0 -2px 0 var(--hh-copper); }
#site-nav .ng-b:focus-visible { outline: 3px solid #B0602B; outline-offset: 2px; }
#site-nav .ng-p { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); z-index: 3; width: 330px; padding: .5rem; border-radius: 14px; background: #fff; border: 1px solid var(--hh-line);
  box-shadow: 0 18px 40px -16px rgba(27, 42, 65, .35); display: none; flex-direction: column; gap: 2px; }
#site-nav .ng.open .ng-p { display: flex; }
#site-nav .ng-p a { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: .6rem .8rem; border-radius: 10px; min-height: 44px; white-space: normal; }
#site-nav .ng-p a b { font-weight: 650; font-size: .98rem; }
#site-nav .ng-p a span { font-weight: 400; font-size: .84rem; color: #5d6470; line-height: 1.35; }
#site-nav .ng-p a:hover, #site-nav .ng-p a:focus-visible { background: #F3EDE3; }
@media (max-width: 1360px) and (min-width: 1181px) { #site-nav .ng-b { padding: .5rem .5rem; font-size: .95rem; } }
@media (max-width: 1180px) {
  #site-nav .ng { display: block; }
  #site-nav .ng-b { width: 100%; justify-content: space-between; padding: .8rem 1rem; border-radius: 10px; font-size: 1.0625rem; }
  #site-nav .ng-p { position: static; transform: none; width: auto; display: none; box-shadow: none; border: 0; padding: 0 0 .4rem .6rem; background: transparent; }
  #site-nav .ng.open .ng-p { display: flex; }
}
@media (min-width: 1301px) and (max-width: 1500px) { #site-nav .navlinks a { padding: .55rem .6rem; } #site-nav .navlinks a.acct { padding: .7rem .95rem; margin-left: .35rem; } #site-nav .wrap { gap: .75rem; } }
