/* Shared icon system, navigation and teaching resources. */
.lab-icon { display: inline-block; width: 44px; height: 44px; flex: 0 0 auto; object-fit: contain; vertical-align: middle; }
.icon-heading { position: relative; padding-left: 86px; min-height: 76px; }
.icon-heading > .heading-icon { position: absolute; left: 0; top: 9px; width: 64px; height: 64px; }
.site-header #nav { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 0; }
.site-header #nav > a { display: flex; align-items: center; justify-content: center; gap: 9px; min-width: 0; padding: 10px 6px; font-size: 14px; line-height: 1.5; }
.site-header #nav > a > .nav-copy { display: block; margin: 0; font-size: inherit; color: inherit; text-align: center; }
.nav-copy > span { font-size: 10px; font-weight: 400; color: var(--muted); }
.site-header #nav .lab-icon { width: 29px; height: 29px; }
.site-header #nav > a:hover .lab-icon, .site-header #nav > a:focus-visible .lab-icon { transform: translateY(-2px) rotate(-5deg); }
.site-header #nav > a .lab-icon { transition: transform 200ms ease; }
.managed-card-body > .lab-icon { width: 42px; height: 42px; margin-bottom: 14px; }
.tech-card > .lab-icon { width: 48px; height: 48px; margin: 0 12px 16px 0; }
.demo-steps .lab-icon { width: 40px; height: 40px; padding: 4px; border-radius: 9px; background: #fff; }
.page-cards .lab-icon { width: 42px; height: 42px; margin-bottom: 14px; }
.footer-links { flex-wrap: wrap; }
.course-intro { margin-bottom: 40px; max-width: 1050px; }
.empty-state { display: grid; grid-template-columns: 180px 1fr; gap: 40px; align-items: center; padding: 48px; background: #fff; border: 1px solid var(--line); border-radius: 22px; position: relative; overflow: hidden; }
.empty-state::after { content: ''; position: absolute; right: -80px; bottom: -80px; width: 220px; height: 220px; border: 1px solid #2b61ab15; border-radius: 50%; pointer-events: none; }
.empty-art { width: 160px; height: 160px; position: relative; border: 1px solid #2b61ab25; border-radius: 50%; background: #f6f9fd; display: grid; place-items: center; }
.empty-art .lab-icon { width: 100px; height: 100px; }
.orbit-dot { position: absolute; top: 8px; right: 24px; width: 17px; height: 17px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 7px #ffad5520; }
.empty-state h2 { font-size: 27px; line-height: 1.5; margin-bottom: 18px; }
.empty-state h2 > span { font-family: var(--serif); color: var(--blue); font-size: 23px; margin-top: 5px; }
.empty-state p:not(.eyebrow) { max-width: 720px; font-size: 17px; }
.empty-state p[lang=en] { margin-top: 12px; color: var(--muted); font-size: 16px; }
.empty-state .button, .empty-state .text-link { margin-top: 24px; }
.icon-button { display: inline-flex; align-items: center; gap: 12px; }
.icon-button .lab-icon { width: 32px; height: 32px; background: #fff; border-radius: 6px; padding: 3px; }
.icon-button > span { font-size: 15px; font-weight: 600; }
.icon-button small { display: block; font-size: 11px; font-weight: 400; }
.resource-links { display: flex; flex-wrap: wrap; gap: 30px; margin-top: 30px; font-size: 16px; }
.resource-links a { text-decoration-color: var(--orange); }
.resource-links span { font-size: 13px; color: var(--muted); }
.course-filters { display: grid; grid-template-columns: 1.6fr 1fr 1fr auto; gap: 16px; align-items: end; padding: 24px; border: 1px solid var(--line); background: #f1f5fa; border-radius: 14px; margin-bottom: 18px; }
.course-filters label { font-size: 15px; font-weight: 600; }
.course-filters label > span { font-size: 11px; color: var(--muted); font-weight: 400; margin-bottom: 8px; }
.course-filters input, .course-filters select { display: block; width: 100%; min-width: 0; min-height: 46px; border: 1px solid #b5c8dd; background: #fff; color: var(--ink); padding: 10px 12px; border-radius: 7px; font: 14px var(--sans); }
.filter-reset { min-height: 46px; padding: 6px 14px; background: transparent; border: 1px solid #b5c8dd; border-radius: 7px; font-size: 13px; }
.filter-reset > span { font-size: 10px; color: var(--muted); }
.course-count { font-size: 13px; color: var(--muted); margin: 18px 0; }
.course-list { display: grid; gap: 26px; }
.course-card { padding: 32px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: 14px; }
.course-heading { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 20px; }
.course-heading .lab-icon { width: 54px; height: 54px; margin-top: 4px; }
.course-heading h2 { font-size: 25px; }
.course-heading h2 > span { font-size: 19px; color: var(--blue); font-family: var(--serif); margin-top: 5px; }
.course-meta { font-size: 13px; color: var(--muted); margin-bottom: 9px; }
.course-description { font-size: 17px; margin-bottom: 12px; }
.course-description[lang=en] { color: var(--muted); font-size: 16px; }
.material-list { list-style: none; margin: 25px 0 0; padding: 0; }
.material-list li { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 19px 0; border-top: 1px solid var(--line); }
.material-text { min-width: 0; overflow-wrap: anywhere; }
.material-title { font-weight: 600; font-size: 17px; }
.material-text > [lang=en] { font-size: 14px; color: var(--muted); margin-top: 5px; }
.material-text time { display: block; font-size: 12px; color: var(--muted); margin-top: 7px; }
.week-label { display: inline-block; margin-right: 9px; padding: 2px 7px; border-radius: 4px; font-size: 12px; color: var(--blue); background: #edf3fa; }
.material-link { display: block; flex: 0 0 auto; padding: 9px 15px; background: #edf3fa; border: 1px solid #c6d8ed; border-radius: 7px; text-decoration: none; color: var(--blue); font-size: 14px; }
.material-link > span, .material-pending > span { font-size: 11px; }
.material-link:hover, .material-link:focus-visible { background: #fff1df; border-color: var(--orange); }
.material-pending { color: var(--muted); font-size: 14px; }
.compact-empty { display: block; padding: 36px; }
.compact-empty .lab-icon { margin-bottom: 16px; }
@media (min-width:861px) { .site-header #nav > a:nth-child(n+8) { border-top: 1px solid #dce3e970; } }
@media (max-width:1100px) and (min-width:861px) { .site-header #nav .lab-icon { width: 22px; height: 22px; } .site-header #nav > a { gap: 5px; font-size: 13px; } .nav-copy > span { font-size: 9px; } }
@media (max-width:860px) {
  .site-header #nav, .site-header #nav.open { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .site-header #nav > a { justify-content: center; padding: 10px 11px; gap: 8px; font-size: 13px; line-height: 1.35; }
  .site-header #nav .lab-icon { width: 24px; height: 24px; }
  .site-header.navigation-ready #nav.open { max-height: calc(100dvh - var(--header-height,150px)); }
  .icon-heading { padding-left: 57px; min-height: 62px; }
  .icon-heading > .heading-icon { width: 42px; height: 42px; top: 5px; }
  .icon-heading .eyebrow { font-size: 9px; letter-spacing: .06em; }
  .empty-state { grid-template-columns: 1fr; padding: 28px 24px; gap: 25px; }
  .empty-art { width: 104px; height: 104px; }
  .empty-art .lab-icon { width: 58px; height: 58px; }
  .orbit-dot { width: 13px; height: 13px; right: 12px; top: 3px; }
  .empty-state h2 { font-size: 23px; }
  .empty-state h2 > span { font-size: 20px; }
  .empty-state p:not(.eyebrow) { font-size: 15px; }
  .empty-state p[lang=en] { font-size: 14px; }
  .course-intro { display: block; }
  .course-intro > [lang=en] { margin-top: 16px; }
  .course-filters { grid-template-columns: 1fr 1fr; padding: 18px; gap: 14px; }
  .course-filters label:first-child { grid-column: 1/-1; }
  .filter-reset { grid-column: 1/-1; }
  .course-card { padding: 23px 20px; }
  .course-heading { gap: 12px; }
  .course-heading .lab-icon { width: 36px; height: 36px; }
  .course-heading h2 { font-size: 21px; }
  .course-heading h2 > span { font-size: 17px; }
  .course-description { font-size: 15px; }
  .course-description[lang=en] { font-size: 14px; }
  .material-list li { align-items: flex-start; gap: 15px; flex-direction: column; }
  .material-title { font-size: 16px; }
  .material-link { min-height: 44px; }
  .demo-steps .lab-icon { width: 28px; height: 28px; padding: 3px; }
  .managed-card-body > .lab-icon { width: 34px; height: 34px; margin-bottom: 10px; }
  .tech-card > .lab-icon { width: 38px; height: 38px; margin: 0 8px 12px 0; }
  .page-cards .lab-icon { width: 34px; height: 34px; margin-bottom: 10px; }
}
@media (prefers-reduced-motion:reduce) { .site-header #nav > a .lab-icon { transition: none; transform: none !important; } }
@media print { .course-filters, .resource-links { display: none; } .course-card { break-inside: avoid; } .empty-state { border: 0; } }

/* Text-first navigation and compact decorative states. */
.site-header #nav > a { min-height: 48px; }
.course-heading > div { min-width: 0; }
.course-heading h2 { overflow-wrap: anywhere; }
@media (max-width:860px) {
  .empty-state .empty-art { display: none; }
  .empty-state { gap: 0; }
  .site-header #nav > a { font-size: 14px; }
  .site-header #nav .nav-copy { overflow-wrap: anywhere; }
}

/* Navigation v2: align bilingual labels to the center of each grid cell. */
.site-header #nav > a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  text-align: center;
}
.site-header #nav > a > .nav-copy {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  text-align: center;
  line-height: 1.5;
  white-space: normal;
}
.site-header #nav > a > .nav-copy > span[lang="en"] {
  display: block;
  width: 100%;
  margin-top: 3px;
  text-align: center;
  white-space: normal;
}
@media (max-width: 860px) {
  .site-header #nav > a { align-items: center; justify-content: center; text-align: center; }
  .mobile-nav-bar > a,
  .mobile-nav-bar .menu,
  .mobile-nav-bar > a > span[lang="en"],
  .mobile-nav-bar .menu > span[lang="en"] { text-align: center; }
}

/* Header brand scale v3: desktop, tablet and phone sizes are tuned separately. */
.site-header .header-identity {
  padding-block: 16px;
  gap: 22px;
}
.site-header .header-identity .brand {
  gap: 17px;
  min-width: 0;
}
.site-header .header-identity .brand img {
  width: 82px;
  height: 82px;
  flex: 0 0 82px;
}
.site-header .header-identity .brand > span {
  min-width: 0;
  font-size: 27px;
  line-height: 1.32;
  letter-spacing: .06em;
}
.site-header .header-identity .brand > span > span[lang="en"] {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: .09em;
}
.site-header .header-identity .brand > span > .brand-pi {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.site-header .header-focus { font-size: 15px; line-height: 1.5; }
.site-header .header-focus span { font-size: 11px; line-height: 1.5; }
@media (min-width: 861px) and (max-width: 1100px) {
  .site-header .header-identity .brand { gap: 14px; }
  .site-header .header-identity .brand img { width: 72px; height: 72px; flex-basis: 72px; }
  .site-header .header-identity .brand > span { font-size: 23px; }
  .site-header .header-identity .brand > span > span[lang="en"] { font-size: 11px; }
  .site-header .header-identity .brand > span > .brand-pi { font-size: 12px; }
  .site-header .header-focus { font-size: 13px; }
  .site-header .header-focus span { font-size: 10px; }
}
@media (max-width: 860px) {
  .site-header .header-identity { padding: 11px 16px; gap: 10px; }
  .site-header .header-identity .brand { gap: 12px; max-width: 100%; }
  .site-header .header-identity .brand img { width: 58px; height: 58px; flex-basis: 58px; }
  .site-header .header-identity .brand > span { font-size: 21px; line-height: 1.3; }
  .site-header .header-identity .brand > span > span[lang="en"] { font-size: 10px; line-height: 1.4; }
  .site-header .header-identity .brand > span > .brand-pi { font-size: 10.5px; margin-top: 5px; }
}
@media (max-width: 860px) {
  /* The mobile header should remain prominent alongside the three quick links. */
  .site-header .header-identity { padding: 14px 16px; }
  .site-header .header-identity .brand { gap: 13px; min-width: 0; }
  .site-header .header-identity .brand img {
    width: 78px;
    height: 78px;
    flex: 0 0 78px;
  }
  .site-header .header-identity .brand > span {
    min-width: 0;
    font-size: 28px;
    line-height: 1.27;
    letter-spacing: .04em;
  }
  .site-header .header-identity .brand > span > span[lang="en"] {
    font-size: 12.5px;
    line-height: 1.45;
    letter-spacing: .055em;
  }
  .site-header .header-identity .brand > span > .brand-pi {
    font-size: 13px;
    line-height: 1.5;
    margin-top: 7px;
  }
}
@media (max-width: 420px) {
  /* Fluid sizes preserve the header's proportions on 320–420px phones. */
  .site-header .header-identity { padding: 12px; }
  .site-header .header-identity .brand { gap: 11px; }
  .site-header .header-identity .brand img {
    width: clamp(68px, 19vw, 80px);
    height: clamp(68px, 19vw, 80px);
    flex: 0 0 clamp(68px, 19vw, 80px);
  }
  .site-header .header-identity .brand > span {
    font-size: clamp(25px, 7vw, 29px);
    letter-spacing: .03em;
  }
  .site-header .header-identity .brand > span > span[lang="en"] {
    font-size: clamp(11px, 3.1vw, 13px);
    letter-spacing: .035em;
  }
  .site-header .header-identity .brand > span > .brand-pi {
    font-size: clamp(10.5px, 3.1vw, 13px);
  }
}
@media (max-width: 359px) {
  .site-header .header-identity .brand { gap: 9px; }
  .site-header .header-identity .brand > span > span[lang="en"] { letter-spacing: 0; }
}
