/* Sterling Classes 1.0.16 — compact public homepage, scoped to /index.php only.
   Detailed course cards, offers, faculty, and feature sections remain available
   in keyboard-accessible native details panels instead of filling the page. */
.public-home .home-fold{
  display:block;box-sizing:border-box;width:min(1160px,calc(100% - 28px));
  margin:12px auto;background:#fff;border:1px solid #d9e5f8;border-radius:19px;
  overflow:hidden;box-shadow:0 8px 25px rgba(19,62,135,.055);
  scroll-margin-top:115px;
}
.public-home .home-fold>summary{list-style:none;cursor:pointer;user-select:none}
.public-home .home-fold>summary::-webkit-details-marker{display:none}
.public-home .home-fold-summary{
  display:flex;align-items:center;gap:14px;min-height:79px;padding:13px 20px;
  background:linear-gradient(105deg,#f0f7ff,#f7f1ff 68%,#fffaf0);color:#153669;
}
.public-home .home-fold-icon{
  display:grid;place-items:center;flex:0 0 44px;height:44px;border-radius:13px;
  background:#fff;font-size:24px;box-shadow:0 2px 12px rgba(30,80,145,.085);
}
.public-home .home-fold-summary>span:nth-child(2){display:block;min-width:0;flex:1}
.public-home .home-fold-summary strong{font-weight:900;font-size:18px;line-height:1.3;display:block}
.public-home .home-fold-summary small{font-size:12px;color:#617594;display:block;line-height:1.45;margin-top:3px}
.public-home .home-fold-cta{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:0 0 auto;
  background:linear-gradient(115deg,#1665c3,#5b4ad2);border-radius:10px;color:#fff;padding:11px 14px;
  font-size:12px;font-weight:850}
.public-home .home-fold[open]>.home-fold-summary .home-fold-cta>span{display:inline-block;transform:rotate(180deg)}
.public-home .home-fold>summary:focus-visible{outline:3px solid #e4a927;outline-offset:-4px}
.public-home .home-fold>section{margin:0!important}
.public-home .home-fold .wrap{width:min(1100px,calc(100% - 28px))}
.public-home .home-fold-offers .pro-offers,
.public-home .home-fold-courses .sterling-course-directory,
.public-home .home-fold-learning .sterling-benefits,
.public-home .home-fold-learning .sterling-why,
.public-home .home-fold-community .section{padding:20px 0!important}
.public-home .home-fold .pro-offer-head{margin-bottom:12px!important}
.public-home .home-fold-path .sterling-audience-section{padding:15px 0!important}

/* The first screen keeps the course selector and two free offers, but shortens
   the repeated marketing content and oversize hero. */
.public-home .sterling-exam-shortcuts{padding-block:8px!important}
.public-home .sterling-exam-heading{margin-bottom:8px!important}
.public-home .home-priority-offers{padding:7px 0!important}
.public-home .home-priority-card{min-height:68px!important;padding:9px 13px!important}
.public-home .home-priority-copy small{display:none!important}
.public-home .home-priority-copy strong{font-size:17px!important;line-height:1.2!important}
.public-home .home-priority-icon{width:42px!important;height:42px!important}
.public-home .home-v2-hero{padding:12px 0!important}
.public-home .home-v2-hero-main,.public-home .home-v2-student-card{min-height:0!important;padding:22px 25px!important}
.public-home .home-v2-hero-main h1{font-size:clamp(30px,3.45vw,45px)!important;line-height:1.08!important;margin:8px 0 11px!important}
.public-home .home-v2-hero-main p{font-size:14px!important;line-height:1.5!important;margin:0 0 13px!important}
.public-home .home-v2-tags{display:none!important}
.public-home .home-v2-hero-main .hero-actions{gap:8px!important}
.public-home .home-v2-hero-main .hero-actions a{min-height:40px!important;padding:9px 12px!important;font-size:12px!important}
.public-home .home-v2-student-card h2{font-size:clamp(19px,2.4vw,26px)!important}
.public-home .home-v2-student-card p{font-size:12px!important;line-height:1.5!important;margin:9px 0!important}
.public-home .home-v2-student-card .home-v2-app-link{padding:9px!important;margin-top:10px!important}
.public-home .home-top-section{padding:19px 0 15px!important}
.public-home .home-top-head p{display:none!important}
.public-home .home-top-card{min-height:116px!important;padding:12px!important}
.public-home .home-top-shell{padding-bottom:6px!important}

/* The student-facing homepage needs preview cards, not a full news portal.
   Full collections and all source links remain on their dedicated pages. */
.public-home .home-updates-compact{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.06fr);gap:14px;
  width:min(1200px,calc(100% - 28px));margin:14px auto;
}
.public-home .home-updates-compact .st-news-section,
.public-home .home-updates-compact .st-exam-section{
  min-width:0;padding:18px!important;border:1px solid #dce7fa!important;border-radius:20px!important;
  background:linear-gradient(148deg,#f0f7ff 0%,#fff 70%,#f7f2ff)!important;
  box-shadow:0 9px 28px rgba(27,76,155,.05);
}
.public-home .home-updates-compact .st-exam-section{background:linear-gradient(148deg,#ecfcf8 0%,#fff 67%,#f7f0ff)!important;order:-1}
.public-home .home-updates-compact .wrap,
.public-home .home-updates-compact .st-exam-shell{width:100%!important;max-width:100%!important;margin:0!important}
.public-home .home-updates-compact .st-news-head,
.public-home .home-updates-compact .st-exam-titleline{margin-bottom:10px!important;gap:9px!important;align-items:flex-start!important}
.public-home .home-updates-compact .st-news-head h2,
.public-home .home-updates-compact .st-exam-titleline h2{font-size:clamp(22px,2.1vw,28px)!important;line-height:1.14!important;margin:5px 0!important}
.public-home .home-updates-compact .st-news-head p,
.public-home .home-updates-compact .st-exam-titleline p{font-size:12px!important;line-height:1.4!important;margin:4px 0!important;max-width:100%!important}
.public-home .home-updates-compact .st-news-kicker,
.public-home .home-updates-compact .st-exam-label{font-size:9px!important;letter-spacing:.8px!important}
.public-home .home-updates-compact .st-news-viewall,
.public-home .home-updates-compact .st-exam-action{padding:9px 12px!important;font-size:11px!important;white-space:nowrap!important}
.public-home .home-updates-compact .st-news-filter,
.public-home .home-updates-compact .st-exam-pills{display:none!important}
.public-home .home-updates-compact .st-news-grid,
.public-home .home-updates-compact .st-exam-grid{display:grid!important;grid-template-columns:1fr!important;gap:9px!important}
.public-home .home-updates-compact .st-news-grid>.st-news-card:nth-child(n+3),
.public-home .home-updates-compact .st-exam-grid>.st-exam-card:nth-child(n+3){display:none!important}
.public-home .home-updates-compact .st-news-card,
.public-home .home-updates-compact .st-exam-card{padding:12px!important;gap:6px!important;border-radius:13px!important;box-shadow:none!important}
.public-home .home-updates-compact .st-news-card h3,
.public-home .home-updates-compact .st-exam-card h3{font-size:14px!important;line-height:1.35!important;margin:0!important}
.public-home .home-updates-compact .st-news-card p{
  display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;
  overflow:hidden;font-size:11px!important;margin:4px 0!important;
}
.public-home .home-updates-compact .st-news-meta,
.public-home .home-updates-compact .st-exam-org{font-size:10px!important}
.public-home .home-updates-compact .st-exam-dates{gap:6px!important}
.public-home .home-updates-compact .st-exam-date{padding:8px!important}
.public-home .home-updates-compact .st-exam-note{font-size:10px!important}
.public-home .home-updates-compact .st-news-source,
.public-home .home-updates-compact .st-exam-source{font-size:11px!important}
.public-home .home-updates-compact .st-news-official,
.public-home .home-updates-compact .st-exam-boards{display:flex;flex-wrap:wrap;gap:6px;margin:11px 0 0!important}
.public-home .home-updates-compact .st-news-official a:nth-child(n+3),
.public-home .home-updates-compact .st-exam-boards a:nth-child(n+4){display:none!important}
.public-home .home-updates-compact .st-news-official a,
.public-home .home-updates-compact .st-exam-boards a{font-size:10px!important;padding:7px 8px!important}
.public-home .home-updates-compact .st-news-note,
.public-home .home-updates-compact .st-exam-disclaimer{font-size:10px!important;margin-top:8px!important;line-height:1.4!important}
.public-home .home-updates-compact .st-news-empty,
.public-home .home-updates-compact .st-exam-empty{padding:13px!important;border-radius:12px!important;font-size:12px!important}

/* Compact footer conversion card and readable small-screen controls. */
.public-home .sterling-v7-final-cta{padding:13px 0!important}
.public-home .sterling-v7-final-cta p{display:none!important}
.public-home .footer-cta{padding:14px 18px!important;margin-bottom:14px!important}
@media(max-width:900px){
  .public-home .home-updates-compact{grid-template-columns:1fr}
  .public-home .home-updates-compact .st-news-section,
  .public-home .home-updates-compact .st-exam-section{padding:15px!important}
}
@media(max-width:640px){
  .public-home .home-fold{border-radius:15px;margin-block:9px}
  .public-home .home-fold-summary{min-height:70px;padding:10px;gap:9px}
  .public-home .home-fold-icon{flex-basis:38px;height:38px;font-size:20px}
  .public-home .home-fold-summary strong{font-size:14px}
  .public-home .home-fold-summary small{font-size:10px}
  .public-home .home-fold-cta{font-size:0;padding:9px;min-height:36px;min-width:34px}
  .public-home .home-fold-cta>span{font-size:21px}
  .public-home .home-v2-hero-main,.public-home .home-v2-student-card{padding:17px!important}
  .public-home .home-v2-hero-main h1{font-size:30px!important}
  .public-home .home-priority-card{min-height:62px!important}
  .public-home .home-priority-copy strong{font-size:14px!important}
  .public-home .home-updates-compact .st-news-head h2,
  .public-home .home-updates-compact .st-exam-titleline h2{font-size:22px!important}
  .public-home .home-updates-compact .st-news-head,
  .public-home .home-updates-compact .st-exam-titleline{display:flex;flex-wrap:wrap}
  .public-home .home-updates-compact .st-news-viewall,
  .public-home .home-updates-compact .st-exam-action{width:100%;text-align:center}
}
@media(prefers-reduced-motion:reduce){.public-home .home-fold *{transition:none!important}}
