/* CIS Academy — course pages theme (22 Nov 2026).
   Loaded last on academy.html. Brings the course app (catalogue, course overview, sections,
   sign-in) to the same look as the home page (index.html): the CIS palette (navy #161832,
   orange #E37F29, warm paper #f3f1ec), Schibsted Grotesk, a light top bar, soft radius and
   navy buttons with an arrow. Only looks change here; the app, content and quizzes are untouched. */
:root{
  --paper:#f3f1ec; --sheet:#ffffff; --ink:#161832; --steel:#606274; --line:#dcdad3;
  --blue:#161832; --blue-soft:#e6e5e2; --navy:#161832;
  --drum:#d9761c; --drum-hi:#e37f29; --drum-soft:#fbe9d8;
  --display:"Schibsted Grotesk",system-ui,-apple-system,"Segoe UI",sans-serif;
  --body:"Schibsted Grotesk",system-ui,-apple-system,"Segoe UI",sans-serif;
  --topH:64px;
}
html,body{background:var(--paper)}
h1,h2,h3,h4{font-weight:500;letter-spacing:-.03em;line-height:1.08}
h1{font-size:clamp(2.2rem,4vw,3.2rem)} h2{font-size:clamp(1.7rem,2.8vw,2.3rem)}
a{color:var(--ink);text-underline-offset:3px}
:focus-visible{outline:3px solid var(--ink);outline-offset:2px}
.eyebrow{font-family:var(--body);letter-spacing:.06em;color:var(--steel)}

/* top bar: light, like the home page nav; ProBuild3D logo stays upper right */
.top{background:color-mix(in srgb,var(--paper) 92%,transparent);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);color:var(--ink);border-bottom:1px solid var(--line);padding:0 clamp(16px,3vw,40px)}
.brand{color:var(--ink)}
.brand b{font-family:var(--body);font-weight:600;font-size:1.15rem;letter-spacing:-.02em}
.brand span{color:var(--steel)}
.topnav a{color:var(--ink);font-size:.92rem;border-radius:999px;padding:7px 12px}
.topnav a:hover,.topnav a[aria-current]{background:var(--blue-soft);color:var(--ink)}
.who{color:var(--steel)}
.who .pill{border-color:var(--line);color:var(--ink);background:var(--sheet)}
.who .pill.local{border-color:var(--drum-hi);color:#8a4710}
.toplogo img{height:16px}

/* buttons: navy primary with an arrow, light secondary; step on hover, press on click */
.btn{border-radius:10px;padding:10px 18px;border-color:var(--line);transition:transform .15s ease,background .15s ease,border-color .15s ease}
.btn:hover{border-color:var(--ink);color:var(--ink);transform:translateY(-1px)}
.btn:active{transform:translateY(1px)}
.btn.primary{background:var(--ink);border-color:var(--ink);color:#fff}
.btn.primary:hover{background:#22253e;color:#fff}
.btn.primary::after{content:"\2192";transition:transform .15s ease}
.btn.primary:hover::after{transform:translateX(3px)}
.btn.drum{color:#111}

/* cards and course tiles: soft radius, linked cards lift 2px, photos zoom slightly */
.card{border-radius:16px;border-color:transparent;padding:24px}
.course{border-radius:16px;transition:transform .2s ease,box-shadow .2s ease}
a.course:hover{transform:translateY(-2px);box-shadow:0 10px 30px rgba(22,24,50,.08)}
.course img{transition:transform .4s ease}
a.course:hover img{transform:scale(1.025)}
.welcome{border-radius:20px}
.callout{border-radius:12px}

/* course rail: navy progress, current section in navy */
.rail .rhead a{font-family:var(--body);font-weight:600;letter-spacing:-.02em}
.rail li.grp{font-family:var(--body);letter-spacing:.1em}
.rail a.sec .n{font-family:var(--body)}
.rail a.sec[aria-current] .n{box-shadow:0 0 0 5px rgba(22,24,50,.12)}
.rail .prog i{background:linear-gradient(90deg,var(--ink),var(--drum-hi))}
.rail ol::after{background:linear-gradient(var(--ink),var(--drum-hi))}

@media (prefers-reduced-motion:reduce){
  .btn,.course,.course img{transition:none}
  a.course:hover,.btn:hover,a.course:hover img{transform:none}
}

/* top bar fixes for the light bar: spacing, links and the Sensei button in ink */
.topnav{margin-left:20px}
.who a{color:var(--ink)}
.top .sensei-tb{color:var(--ink);background:var(--sheet);border:1px solid var(--line)}
.top .sensei-tb:hover{border-color:var(--ink);background:var(--sheet)}
.top .sensei-tb span{color:inherit}
.brand{flex:none}
@media (max-width:1400px){.brand span{display:none}}
@media (max-width:1200px){.who>span:not(.pill){display:none}}
/* Top bar fit (25 Nov 2026): with six menu links the bar overflowed around 1,300 px. Hide the long "local preview" text sooner. */
@media (max-width:1400px){.who>span:not(.pill){display:none}}

/* the F1 nav link made the top bar overflow at about 1,600 px: drop the brand subtitle first */
@media (max-width:1800px){.brand>span{display:none}}
