
/* Khaemenes Academy · High School Grades 9–12 · shared benchmark v2
   Single presentation authority for the four grade landings. No academic or learner state ownership. */

:root{
  --high-grade-charcoal:#243038;
  --high-grade-charcoal-deep:#17242e;
  --high-grade-parchment:#f4f0e7;
  --high-grade-paper:#fffdf8;
  --high-grade-cream:#fff8e9;
  --high-grade-ink:#243038;
  --high-grade-muted:#5d625e;
  --high-grade-gold:#b48b45;
  --high-grade-line:#c9bea8;
  --high-grade-green:#31594b;
  --high-grade-radius:7px;
  --high-grade-max:1100px;
  --high-grade-display:Cinzel,Georgia,serif;
  --high-grade-body:"Brandon Grotesque",Nunito,"Avenir Next",Avenir,"Segoe UI",Arial,sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:110px}
body{
  margin:0;min-width:300px;background:var(--high-grade-parchment);color:var(--high-grade-ink);
  font:400 16px/1.65 var(--high-grade-body);text-align:center;
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
}
:where(body:is([data-grade09-vnv-shell],[data-grade10-vnv-shell],[data-grade11-vnv-shell],[data-grade12-vnv-shell]) > .hero, body:is([data-grade09-vnv-shell],[data-grade10-vnv-shell],[data-grade11-vnv-shell],[data-grade12-vnv-shell]) > :is(.grade09-local-links,.grade10-local-links,.grade11-local-links,.grade12-local-links), body:is([data-grade09-vnv-shell],[data-grade10-vnv-shell],[data-grade11-vnv-shell],[data-grade12-vnv-shell]) > main#main, body:is([data-grade09-vnv-shell],[data-grade10-vnv-shell],[data-grade11-vnv-shell],[data-grade12-vnv-shell]) > footer) a{color:inherit;text-decoration:none}
:where(body:is([data-grade09-vnv-shell],[data-grade10-vnv-shell],[data-grade11-vnv-shell],[data-grade12-vnv-shell]) > .hero, body:is([data-grade09-vnv-shell],[data-grade10-vnv-shell],[data-grade11-vnv-shell],[data-grade12-vnv-shell]) > :is(.grade09-local-links,.grade10-local-links,.grade11-local-links,.grade12-local-links), body:is([data-grade09-vnv-shell],[data-grade10-vnv-shell],[data-grade11-vnv-shell],[data-grade12-vnv-shell]) > main#main, body:is([data-grade09-vnv-shell],[data-grade10-vnv-shell],[data-grade11-vnv-shell],[data-grade12-vnv-shell]) > footer) :is(button,input,select,textarea){font:400 16px/1.45 var(--high-grade-body)}
:where(body:is([data-grade09-vnv-shell],[data-grade10-vnv-shell],[data-grade11-vnv-shell],[data-grade12-vnv-shell]) > .hero, body:is([data-grade09-vnv-shell],[data-grade10-vnv-shell],[data-grade11-vnv-shell],[data-grade12-vnv-shell]) > :is(.grade09-local-links,.grade10-local-links,.grade11-local-links,.grade12-local-links), body:is([data-grade09-vnv-shell],[data-grade10-vnv-shell],[data-grade11-vnv-shell],[data-grade12-vnv-shell]) > main#main, body:is([data-grade09-vnv-shell],[data-grade10-vnv-shell],[data-grade11-vnv-shell],[data-grade12-vnv-shell]) > footer) button{cursor:pointer}
:where(body:is([data-grade09-vnv-shell],[data-grade10-vnv-shell],[data-grade11-vnv-shell],[data-grade12-vnv-shell]) > .hero, body:is([data-grade09-vnv-shell],[data-grade10-vnv-shell],[data-grade11-vnv-shell],[data-grade12-vnv-shell]) > :is(.grade09-local-links,.grade10-local-links,.grade11-local-links,.grade12-local-links), body:is([data-grade09-vnv-shell],[data-grade10-vnv-shell],[data-grade11-vnv-shell],[data-grade12-vnv-shell]) > main#main, body:is([data-grade09-vnv-shell],[data-grade10-vnv-shell],[data-grade11-vnv-shell],[data-grade12-vnv-shell]) > footer) :focus-visible,.skip:focus-visible{outline:3px solid var(--high-grade-gold);outline-offset:3px}
.shell{width:min(calc(100% - 33px),var(--high-grade-max));margin-inline:auto}
.skip{
  position:fixed;z-index:2147483000;left:11px;top:11px;transform:translateY(-180%);
  padding:9px 14px;border-radius:var(--high-grade-radius);background:var(--high-grade-charcoal);color:var(--high-grade-cream);
  font-size:16px;
}
.skip:focus{transform:none}

/* Shared VNV components retain their canonical styling; only local readability and duplicate-trigger guards follow. */
body:has(#vnvHeaderAutoPopulate .vnv-header-menu-button) :is(#vnvEnrichedMenuButton,#vnvEcosystemMenuButton,#khaeLocalEcosystemToggle){display:none!important}
#vnvHeaderAutoPopulate :is(.vnv-header-logo,.vnv-header-title,.vnv-header-subtitle){font-size:16px!important}
#vnvClassToolsToolbar :is(button,a,label),#vnvEcosystemUtilityDock :is(a,button){font-size:16px!important}
#vnvHeaderAutoPopulate .vnv-header-actions:empty{display:none!important}
:is(#vnv333NetworkTicker,#vnvTickerAutoPopulate) :is(a,button,span,strong,small){font-size:16px!important}
/* One symmetrical page-navigation row. */
:is(.grade09-local-links,.grade10-local-links,.grade11-local-links,.grade12-local-links){
  width:100%;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;
  padding:11px max(16px,calc((100vw - 900px)/2));margin:0;
  background:var(--high-grade-charcoal);border:0;border-bottom:1px solid var(--high-grade-gold);
}
:is(.grade09-local-links,.grade10-local-links,.grade11-local-links,.grade12-local-links) a{
  display:flex;align-items:center;justify-content:center;width:100%;min-width:0;min-height:40px;
  padding:7px 12px;border:1px solid var(--high-grade-line);border-radius:var(--high-grade-radius);
  background:var(--high-grade-cream);color:var(--high-grade-charcoal);
  font:400 16px/1.25 var(--high-grade-body);text-align:center;white-space:nowrap;
}
:is(.grade09-local-links,.grade10-local-links,.grade11-local-links,.grade12-local-links) a:hover,:is(.grade09-local-links,.grade10-local-links,.grade11-local-links,.grade12-local-links) a:focus-visible{
  background:var(--high-grade-paper);border-color:var(--high-grade-gold);
}

/* Hero */
.hero{
  position:relative;overflow:hidden;background:var(--high-grade-charcoal);color:var(--high-grade-cream);
}
.hero:before{
  content:"KA";position:absolute;right:3vw;bottom:-55px;color:rgba(255,255,255,.055);
  font:400 55px/1 var(--high-grade-display);transform:scale(5);transform-origin:bottom right;pointer-events:none;
}
.hero-inner{position:relative;z-index:1;padding:55px 0}
.eyebrow,.kicker{
  margin:0;font:400 16px/1.3 var(--high-grade-display);letter-spacing:.09em;text-transform:uppercase;
}
.hero .eyebrow{color:#ead9b8}
.hero h1{
  margin:14px 0 0;color:var(--high-grade-cream);font:400 55px/1.16 var(--high-grade-display);letter-spacing:.01em;
}
.grade-title{
  margin:16px 0 0;color:var(--high-grade-cream);font:400 33px/1.24 var(--high-grade-display);
}
.hero-lead{
  max-width:760px;margin:22px auto 0;color:var(--high-grade-cream);font:400 16px/1.82 var(--high-grade-body);
}
.hero-actions,.actions{display:flex;justify-content:center;gap:9px;flex-wrap:wrap;margin-top:22px}
.hero-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:min(620px,100%);margin-inline:auto}
.btn{
  box-sizing:border-box;display:flex;align-items:center;justify-content:center;min-height:44px;
  padding:9px 12px;border:1px solid var(--high-grade-charcoal);border-radius:var(--high-grade-radius);
  background:var(--high-grade-charcoal);color:var(--high-grade-cream);
  font:400 16px/1.3 var(--high-grade-body);text-align:center;white-space:normal;
}
.btn:hover,.btn:focus-visible{border-color:var(--high-grade-gold)}
.hero .btn,.hero .btn.primary,.hero .btn.gold{
  min-height:40px;padding:7px 12px;
  background:var(--high-grade-cream);color:var(--high-grade-charcoal);border-color:var(--high-grade-line);
}

/* Sections */
.section{padding:55px 0;background:var(--high-grade-parchment);color:var(--high-grade-charcoal)}
.section.paper,.section.dark{
  background:var(--high-grade-charcoal);color:var(--high-grade-cream);border-block:1px solid #536069;
}
.heading{max-width:880px;margin:0 auto 33px}
.heading h2{
  margin:11px 0 0;font:400 33px/1.2 var(--high-grade-display);color:var(--high-grade-charcoal);
}
.heading p{max-width:760px;margin:14px auto 0;font-size:16px;line-height:1.6;color:var(--high-grade-muted)}
.section.paper .heading :is(h2,p,.kicker),
.section.dark .heading :is(h2,p,.kicker){color:var(--high-grade-cream)}


.accent-blue{--accent:#315f86}
.accent-teal{--accent:#4f7f7a}
.accent-terra{--accent:#96594e}
.accent-plum{--accent:#725f82}
.accent-sage{--accent:#6d8374}
.accent-gold{--accent:#b48b45}
.accent-technology{--accent:#506b86}

/* Cards */
.front-grid,.course-grid,.support-grid{display:grid;gap:14px;align-items:stretch}
.front-grid,.support-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.course-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.front-card,.course-card,.support-card{
  box-sizing:border-box;display:flex;flex-direction:column;min-width:0;height:100%;
  padding:24px;border:1px solid var(--high-grade-line);border-top:4px solid var(--accent,var(--high-grade-green));
  border-radius:var(--high-grade-radius);background:var(--high-grade-paper);color:var(--high-grade-charcoal);
}
.front-card{align-items:center;text-align:center}
.course-card{align-items:flex-start;text-align:left}
.support-card{align-items:center;text-align:center}
.front-mark,.course-mark{
  width:55px;height:55px;display:grid;place-items:center;border-radius:var(--high-grade-radius);
  background:var(--accent,var(--high-grade-green));color:var(--high-grade-cream);
  font:400 16px/1 var(--high-grade-display);
}
.front-card h3,.course-card h3,.support-card h3{
  margin:14px 0 9px;color:var(--high-grade-charcoal);font:400 24px/1.25 var(--high-grade-display);
}
.front-card p,.course-card p,.support-card p{
  margin:0 0 22px;color:var(--high-grade-muted);font-size:16px;line-height:1.6;
}
.front-card>.btn,.support-card>.btn{margin-top:auto;width:100%}
.course-card .actions{justify-content:flex-start;width:100%;margin-top:auto;padding-top:18px}
.course-card .actions>.btn{flex:1 1 142px}
.status{
  display:inline-flex;align-items:center;min-height:33px;padding:5px 9px;
  border:1px solid var(--high-grade-line);border-radius:var(--high-grade-radius);
  background:var(--high-grade-parchment);color:var(--high-grade-charcoal);
  font:400 16px/1.3 var(--high-grade-body);
}
.note{
  max-width:980px;margin:33px auto 0;padding:18px 20px;border:1px solid var(--high-grade-line);
  border-left:4px solid var(--high-grade-gold);border-radius:var(--high-grade-radius);
  background:#fff9eb;color:#66502b;text-align:center;font-size:16px;line-height:1.65;
}
.section.dark .support-card{
  border-color:var(--high-grade-line);
}

/* Voluntary support card — uses the existing card and button design. */
#support-free-education .support-card{max-width:760px;margin-inline:auto}
#support-free-education h2{margin:0 0 14px;font:400 33px/1.2 var(--high-grade-display)}
#support-free-education .actions{margin-top:0}
/* Footer */
:is(.grade09-unified-footer,.grade10-unified-footer,.grade11-unified-footer,.grade12-unified-footer){
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;
  padding:33px 16px;background:var(--high-grade-charcoal);color:var(--high-grade-cream);
  border-top:1px solid var(--high-grade-gold);text-align:center;
  font:400 16px/1.4 var(--high-grade-display);
}
:is(.grade09-unified-footer,.grade10-unified-footer,.grade11-unified-footer,.grade12-unified-footer) small{
  color:#ead9b8;font:400 16px/1.5 var(--high-grade-body);
}

/* Responsive layout changes only; typography remains benchmark-sized. */
@media(max-width:850px){
  .front-grid,.support-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
  :is(.grade09-local-links,.grade10-local-links,.grade11-local-links,.grade12-local-links){grid-template-columns:repeat(2,minmax(0,1fr))}
  .course-grid,:is(.grade09-eight-subject-grid,.grade10-eight-subject-grid,.grade11-eight-subject-grid,.grade12-eight-subject-grid){grid-template-columns:1fr!important}
  .hero-actions{grid-template-columns:1fr}
  .front-grid,.support-grid{grid-template-columns:1fr}
}
@media(max-width:430px){
  :is(.grade09-local-links,.grade10-local-links,.grade11-local-links,.grade12-local-links){grid-template-columns:1fr}
}
@media print{
  :is(.grade09-local-links,.grade10-local-links,.grade11-local-links,.grade12-local-links),.hero-actions,#vnvClassToolsToolbar,#vnvEcosystemUtilityDock{display:none!important}
  body{background:#fff;color:#000}
  .hero,.section,.section.paper,.section.dark{background:#fff!important;color:#000!important}
  .hero:before{display:none}
  .hero :is(h1,.grade-title,.eyebrow,.hero-lead),.heading :is(h2,p,.kicker){color:#000!important}
  .front-card,.course-card,.support-card{break-inside:avoid;box-shadow:none}
}

