/* Site fixes, laptop layout (November 26, 2026). Source: work/fixes-2026-11-26/site-wave2/css/ (tests and proof).
   Linked last in <head> by theme-src/header.php, after the page's own head output.
   Every rule sits in the layer "palette-slate" (the FIRST cascade layer on every page, see header.php) and is
   !important: among !important rules the earliest layer wins, so these beat the older layered !important rules
   (card-design, skb-mobile, skillbook-ink) as well as the unlayered page rules, whatever the load order.
   No colours here on purpose (convert.py runs the palette swap on every CSS file).
   Laptop only: every rule is inside a min-width query of 1024px or more, so phones never change. */
@layer palette-slate {

@media (min-width: 1024px) {

  /* 1. Course pages with the "Get the schedule" contact card: the section used a 90% wide column
     (about x=110 to 1360 at 1470 wide) instead of the 1120px column of every section above it. */
  html body #sbpopm.restored-course #schedule > .wrap {
    max-width: 1120px !important;
  }

  /* 2. Footer "We accept": five 54px logos and 8px gaps need 302px, the column is 274px, so MasterCard
     wrapped alone. 48px logos with 6px gaps take 264px; below 1200px wide they may shrink a little more. */
  html body .site-footer .lf-payment {
    flex-wrap: nowrap !important;
    gap: 6px !important;
  }
  html body .site-footer .lf-payment img {
    flex: 0 1 48px !important;
    width: 48px !important;
    min-width: 0 !important;
    height: 28px !important;
  }

  /* 3. Instructor profiles: the "Home / Instructors" breadcrumb had 24px above and none below, so its
     underline sat about 2px from the dark hero. Even room above and below. */
  html body .ed-main > .ed-container:has(+ .ed-profile-hero) > .ed-breadcrumb {
    padding: 20px 0 20px !important;
  }

  /* 5a. Course hero: the teal underline is the background of the block span .hl, so it ran to the width
     of the column, not the words. A block that is only as wide as its words. */
  html body .referral-course > section.hero h1 > .hl {
    width: fit-content !important;
  }

  /* 5b. "Learn with Skillbook Academy's instructors": the card grid was capped at 940px and centred,
     about 80px in from its heading. It now uses the full column, like the heading above it. */
  html body #sbpopm .sbtref .trainers {
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* 5c. Exam facts grid: each fact is its own framed card, so the outer frame drew a second line around
     them (the phone rule in mobile-fixes.css already removes it below 768px). */
  html body .referral-course .exam:has(> .exam__item) {
    border: 0 !important;
    background: none !important;
    box-shadow: none !important;
  }

  /* 5d. Closing band: the heading and text are left aligned (course-referral.css), the buttons were centred. */
  html body :is(#sbpopm, #sbai).referral-course > section.final .final__cta {
    justify-content: flex-start !important;
  }

  /* 6. "Who it is for": the two cards side by side end at the same line. */
  html body #sbpopm #audience .split:has(> .panel + .panel) {
    align-items: stretch !important;
  }

  /* 7. American School of AI course heroes: the badge caption was capped at 260px, so it broke as
     "Issued by the American School of" / "AI". 320px keeps it on one line. */
  html body #sbpopm.asai-safe-course .hero__trust p {
    max-width: 320px !important;
  }
}

/* 4. Home "Meet your instructors": the section used a 1280px column (x=95 to 1375 at 1470 wide); the
   sections above and below use 1152px (x=159 to 1311). From 1200px the two card carousel shows, so it
   gets the same column. Below 1200px home-instructors.css keeps its own 800px one card layout. */
@media (min-width: 1200px) {
  html body.home-page #instructors .hm-container {
    width: calc(100% - 48px) !important;
    max-width: 1152px !important;
  }
}

}
