/* PBLJ academic theme. Shared visual identity; original teaching styles remain. */
@font-face {
  font-family: "PBLJ Space Grotesk";
  src: url('/assets/ira-20261030/fonts/SpaceGrotesk.ttf') format('truetype');
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}
.pblj-academic {
  --academic-night: #080e20;
  --academic-panel: #111d33;
  --academic-border: #34465f;
  --academic-cyan: #78e6ed;
  --academic-violet: #b0b9ff;
  --academic-heading: "PBLJ Space Grotesk", "Inter", Arial, sans-serif;
}
.pblj-academic-bar {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 26px;
  min-height: 80px;
  padding: 16px clamp(18px, 5vw, 72px);
  background: var(--academic-night);
  color: #ecf2ff;
  border-bottom: 1px solid #2b3851;
  font-family: var(--academic-heading);
  line-height: 1.4;
}
.pblj-academic-bar a { color: #cfdef0; text-decoration: none; }
.pblj-academic-brand { display: inline-flex; align-items: center; gap: 12px; }
.pblj-academic-monogram {
  display: grid; place-items: center; flex: 0 0 42px; height: 44px;
  border: 1px solid #73a9bc; border-radius: 10px;
  background: linear-gradient(145deg, #233c58, #111d33);
  color: #a7f4ef; font-size: 24px; font-weight: 500; letter-spacing: -2px;
}
.pblj-academic-brand strong {
  display: block; color: #ecf2ff; font-size: 12px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
}
.pblj-academic-brand small { display: block; margin-top: 3px; font-size: 11px; color: #a9b8cf; }
.pblj-academic-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.pblj-academic-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; }
.pblj-academic-links a:last-child { border: 1px solid #405b72; border-radius: 9px; padding: 8px 14px; background: #14263a; }
.pblj-academic-bar a:hover { color: #89f0ed; }
.pblj-academic-bar a:focus-visible { outline: 3px solid #8cf2ed; outline-offset: 4px; }

@media screen {
  .pblj-academic {
    --ink: #18283e; --muted: #52647b; --line: #d6deea;
    --surface: #f4f6fb; --paper: #fff;
    --accent: #126b7e; --accent-dark: #0d5265; --accent-soft: #eaf5f8; --accent-border: #bad5df;
    --teal: #126b7e; --teal-dark: #0d5265; --teal-soft: #eaf5f8;
    --blue: #485bbb; --blue-soft: #f0f2ff;
    background: var(--surface); color: var(--ink);
  }
  .pblj-academic :is(.book-header h1, .cover-panel h2, .lab-main h1, .nf-wrap h1),
  .pblj-portal :is(h1, h2, h3) { font-family: var(--academic-heading); font-weight: 600; letter-spacing: -.035em; }
  .pblj-academic :is(.site-header, .lab-course-header, .topbar) {
    background: #111d33; color: #ecf2ff; border-color: #34465f;
  }
  .pblj-academic :is(.site-header, .lab-course-header, .topbar) :is(a, .brand, .lab-course-brand) { color: #dae7f7; }
  .pblj-academic :is(.site-header, .lab-course-header, .topbar) small { color: #a9b8cf; }
  .pblj-academic :is(.site-header, .lab-course-header, .topbar) nav a:hover { color: #a7f4ef; background: #20394b; }
  .pblj-academic .brand-mark {
    color: #a7f4ef; background: linear-gradient(145deg, #233c58, #111d33);
    border: 1px solid #5e7994; border-radius: 10px; box-shadow: none;
    font-family: var(--academic-heading);
  }
  .pblj-academic :is(.book-sidebar, .lab-sidebar) {
    --ink: #e4edfc; --muted: #adbed4; --line: #34465f;
    --accent: #78e6ed; --accent-dark: #9ae4ed; --accent-soft: #20394b; --accent-border: #4f8396;
    color: #e4edfc; background: #101b2e; border-color: #34465f;
  }
  .pblj-academic :is(.book-sidebar, .lab-sidebar) :is(.book-brand, .brand) { color: #e4edfc; }
  .pblj-academic :is(.book-sidebar, .lab-sidebar) :is(.all-units-link, .xp-links a, .section-nav a, .lesson-menu-toggle) {
    color: #c8e7f0; background: #192e43; border-color: #3a526e;
  }
  .pblj-academic :is(.book-sidebar, .lab-sidebar) :is(.current, .active, .all-units-link:hover, .section-nav a:hover) {
    color: #e0fcff; background: #224357; border-color: #5395a8;
  }
  .pblj-academic :is(.book-sidebar, .lab-sidebar) :is(.nav-day, .nav-section, .xp-links>span) { color: #a8c9dc; }
  .pblj-academic .book-header {
    padding: clamp(22px, 3vw, 38px); border: 1px solid #cbd9e8; border-radius: 16px;
    background: linear-gradient(120deg, #eaf6f8, #f0f2ff 68%, #fff);
  }
  .pblj-academic .book-header h1 { font-size: clamp(1.7rem, 3.5vw, 2.9rem); line-height: 1.15; }
  .pblj-academic .lab-main>.hero { border-radius: 16px; background: linear-gradient(120deg, #eaf6f8, #f0f2ff 68%, #fff); }
  .pblj-academic :is(.panel, .sheet, .content-card, .topic-card, .cover-panel) { border-radius: 14px; }
  .pblj-academic .progress-fill { background: linear-gradient(90deg, #78e6ed, #b0b9ff); }
  .pblj-academic .learning-breadcrumb { font-size: .83rem; }
  .pblj-academic .toc-strip { border-radius: 12px; border-color: #cbd9e8; }
  .pblj-academic .book-footer { border-top: 2px solid #d4deed; }
  .pblj-portal .hero {
    max-width: none; min-height: 0; padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(40px, 6vw, 80px);
    background: radial-gradient(ellipse at 80% 10%, #1b3054, transparent 60%), #080e20;
    color: #ecf2ff;
  }
  .pblj-portal .hero h1 { font-size: clamp(2.6rem, 5.4vw, 5.2rem); line-height: 1.04; font-weight: 500; }
  .pblj-portal .hero h1 span { color: #8be1ec; }
  .pblj-portal .hero :is(.eyebrow, .map-arrow) { color: #9ce7ee; }
  .pblj-portal .hero :is(.hero-lead, .mentor, .learning-map p, .learning-map small) { color: #b9c9df; }
  .pblj-portal .hero :is(.mentor strong, .course-meta strong) { color: #e9f2ff; }
  .pblj-portal .hero .term-definition { color: #c6d7eb; background: #15263c; border-color: #3b5874; }
  .pblj-portal .hero .term-definition strong { color: #e7f7ff; }
  .pblj-portal .hero .course-meta span { color: #bfcee1; background: #15263c; border-color: #3b5874; }
  .pblj-portal .learning-map { background: linear-gradient(145deg, #1d3047, #101a2d); border-color: #3c516c; box-shadow: 0 25px 65px #0004; border-radius: 20px; }
  .pblj-portal .learning-map article { color: #edf4ff; background: #1a2b46; border-color: #405575; }
  .pblj-portal .learning-map .map-accent { background: #15313c; border-color: #3b6370; }
  .pblj-portal .learning-map .map-enterprise { background: #292e50; border-color: #555b81; }
  .pblj-portal .learning-map .map-number { background: #2b4266; color: #bcdeff; border-radius: 11px; }
  .pblj-portal .learning-map .map-accent .map-number { background: #254b58; color: #a8f0ef; }
  .pblj-portal .learning-map .map-enterprise .map-number { background: #3c416b; color: #dbdeff; }
  .pblj-portal .hero .button-primary { color: #08182c; background: linear-gradient(120deg, #99f0ee, #9bbcff); border-color: #89edf2; box-shadow: none; }
  .pblj-portal .hero .button-secondary { color: #d9ebfb; background: #14263a; border-color: #4e6884; }
  .pblj-portal .hero .button:hover { filter: brightness(1.12); }
  .pblj-portal .stats { margin-top: 28px; background: #111d33; border: 1px solid #34465f; }
  .pblj-portal :is(.syllabus-unit>header, .unit-card-header) { background: linear-gradient(120deg, #eaf6f8, #f0f2ff 68%, #fff); border-top-color: #126b7e; }
  .pblj-portal :is(.syllabus-unit-three>header, .unit-card-three .unit-card-header) { border-top-color: #6268ad; }
  .pblj-portal :is(.unit-open, .roadmap-open) { background: #172b44; }
  .pblj-portal .site-footer { background: #0b1426; color: #c8d8eb; border-color: #34465f; }
  .pblj-portal .site-footer :is(p, small, a, strong) { color: #c8d8eb; }
  .pblj-academic a:focus-visible, .pblj-academic button:focus-visible { outline: 3px solid #318297; outline-offset: 3px; }
  .pblj-academic :is(.pblj-academic-bar, .book-sidebar, .lab-sidebar, .site-header, .topbar, .lab-course-header) a:focus-visible { outline-color: #8cf2ed; }
}
@media screen and (max-width: 700px) {
  .pblj-academic-bar { padding: 14px 18px; gap: 10px; }
  .pblj-academic-links { width: 100%; justify-content: space-between; gap: 8px; }
  .pblj-academic-links a { font-size: 12px; }
  .pblj-academic-links a:last-child { padding: 7px 10px; }
  .pblj-academic .book-header { padding: 22px 18px; }
  .pblj-portal .hero { padding: 38px 22px; gap: 32px; }
  .pblj-portal .hero h1 { font-size: clamp(2.5rem, 10vw, 4rem); }
}
@media print { .pblj-academic-bar { display: none !important; } }
