/* A short front page: headlines, introduction and two clear study paths. */
html.tr-cached-student .page-home .home-brief { display: none; }
.page-home { background: var(--surface-bg, #fff); }
.page-home .home-hub-page { max-width: 1120px; padding: 28px 32px 0; }
.home-brief { border-top: 2px solid var(--text-primary); border-bottom: 1px solid var(--line-subtle); padding: 0 0 18px; }
.home-brief__head { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 48px; }
.home-brief__head h2 { display: flex; align-items: center; gap: 9px; margin: 0; font: 600 14px 'Space Grotesk', sans-serif; letter-spacing: -.02em; }
.home-brief__head h2 i { color: var(--accent-primary); font-size: 14px; }
.home-brief__head > a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 11px; font-weight: 700; color: var(--text-secondary); text-decoration: none; }
.home-news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.home-news-item { min-width: 0; }
.home-news-item + .home-news-item { padding-left: 22px; border-left: 1px solid var(--line-subtle); }
.home-news-kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; color: var(--text-secondary); font-size: 9px; line-height: 1.5; }
.home-news-kicker span { color: var(--accent-primary); font-weight: 700; }
.home-news-item h3 { font: 500 15px/1.45 'Space Grotesk', sans-serif; letter-spacing: -.015em; margin: 7px 0 0; }
.home-news-item h3 a { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: var(--text-primary); text-decoration: none; overflow-wrap: anywhere; }
.home-news-status { display: flex; align-items: center; gap: 14px; color: var(--text-secondary); font-size: 12px; }
.home-news-status p { margin: 0; }
.home-news-status button { background: transparent; border: 0; padding: 0 8px; min-height: 44px; font: inherit; color: var(--accent-primary); cursor: pointer; }
.home-news-status [hidden] { display: none; }
.page-home .home-hero { max-width: 760px; margin: 0 auto; padding: 62px 0 36px; text-align: center; }
.home-eyebrow { color: var(--text-secondary); font: 700 10px/1.5 'Manrope', sans-serif; letter-spacing: .15em; }
.page-home .home-hero__title { margin: 18px 0; font: 600 clamp(38px, 5vw, 60px)/1.08 'Space Grotesk', sans-serif; letter-spacing: -.055em; color: var(--text-primary); }
.home-hero__title span { color: var(--accent-primary); }
.page-home .home-hero__subtitle { font-size: 14px; line-height: 1.85; margin: 0 auto; color: var(--text-secondary); }
.home-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 880px; margin: 0 auto; }
.home-action { display: flex; align-items: center; gap: 18px; padding: 28px; border: 1px solid var(--line-subtle); border-radius: 14px; color: var(--text-primary); background: var(--surface-bg); text-decoration: none; transition: border-color .18s, background .18s; }
.home-action--primary { background: var(--surface-subtle); }
.home-action__icon { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; color: var(--accent-primary); background: var(--surface-bg); border: 1px solid var(--line-subtle); font-size: 18px; }
.home-action__body { flex: 1; min-width: 0; }
.home-action__label { color: var(--text-secondary); font-size: 9px; letter-spacing: .09em; font-weight: 700; }
.home-action h2 { font: 500 22px/1.2 'Space Grotesk', sans-serif; letter-spacing: -.035em; margin: 7px 0; }
.home-action p { font-size: 11px; line-height: 1.7; color: var(--text-secondary); margin: 0; }
.home-action > i { font-size: 13px; color: var(--accent-primary); }
.home-action:hover { border-color: var(--accent-primary); background: var(--surface-subtle); }
.home-syllabus-link { text-align: center; font-size: 12px; color: var(--text-secondary); margin: 25px 0 46px; }
.home-syllabus-link a { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; color: var(--text-primary); font-weight: 700; text-decoration: none; }
.page-home .footer { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line-subtle); background: transparent; }
.page-home .footer-content { gap: 12px; }
.page-home .footer p, .page-home .footer a { font-size: 11px; }
.page-home :is(a, button):focus-visible { outline: 3px solid var(--accent-primary); outline-offset: 4px; }
.home-news-item a:hover, .home-syllabus-link a:hover { color: var(--accent-primary); }
.page-home .student-hub, .page-home .teacher-hub { padding-top: 32px; }
@media (max-width: 700px) {
  .page-home .home-hub-page { padding: 18px 20px 0; }
  .home-news-grid { grid-template-columns: 1fr; gap: 0; }
  .home-news-item { display: grid; grid-template-columns: 85px 1fr; gap: 12px; align-items: baseline; padding: 9px 0; }
  .home-news-item + .home-news-item { padding: 9px 0 0; border-left: 0; border-top: 1px solid var(--line-subtle); margin-top: 2px; }
  .home-news-kicker { font-size: 9px; }
  .home-news-kicker time, .home-news-kicker b { display: none; }
  .home-news-item h3 { font-size: 13px; margin: 0; line-height: 1.4; }
  .home-brief { padding-bottom: 12px; }
  .page-home .home-hero { padding: 38px 0 28px; }
  .home-actions { grid-template-columns: 1fr; gap: 12px; }
  .home-action { padding: 20px; gap: 14px; }
  .home-action h2 { font-size: 21px; }
  .home-syllabus-link { margin: 14px 0 24px; }
}
@media (prefers-reduced-motion: reduce) { .home-action { transition: none; } }

.home-details { max-width: 880px; margin: 40px auto 0; padding-top: 28px; border-top: 1px solid var(--line-subtle); }
.home-details > h2 { margin: 0 0 24px; font: 500 24px/1.25 'Space Grotesk', sans-serif; letter-spacing: -.035em; }
.home-details__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.home-details article > i { color: var(--accent-primary); font-size: 18px; margin-bottom: 14px; }
.home-details h3 { font: 600 15px/1.4 'Space Grotesk', sans-serif; margin: 0 0 8px; }
.home-details p { color: var(--text-secondary); font-size: 12px; line-height: 1.8; margin: 0; }
@media (max-width: 899px) {
  .page-home #tr-navbar { display: none !important; }
  .page-home { padding-top: 0 !important; }
}
@media (max-width: 620px) {
  .home-details { margin-top: 28px; padding-top: 24px; }
  .home-details__grid { grid-template-columns: 1fr; gap: 22px; }
  .home-details article { display: grid; grid-template-columns: 24px 1fr; column-gap: 12px; }
  .home-details article > i { grid-row: 1 / 3; margin: 3px 0 0; }
  .home-details p { grid-column: 2; }
}
.home-mobile-brand { display: none; }
.home-news-controls { display: flex; gap: 4px; }
.home-news-controls button { display: grid; place-items: center; width: 36px; height: 44px; border: 0; border-radius: 6px; background: transparent; color: var(--text-secondary); cursor: pointer; }
.home-news-controls button:hover { background: var(--surface-subtle); color: var(--accent-primary); }
@media (max-width: 899px) {
  .home-mobile-brand { display: flex; justify-content: space-between; align-items: center; padding: 0 0 18px; }
  .home-mobile-brand > a { text-decoration: none; }
  .home-mobile-login { display: inline-flex; gap: 9px; align-items: center; min-height: 44px; font-size: 12px; font-weight: 600; color: var(--text-secondary); }
  html:not(.tr-cached-student):not(.tr-cached-teacher) .page-home #tr-student-bottom-nav,
  html.tr-cached-guest .page-home #tr-student-bottom-nav { display: none !important; }
  html:not(.tr-cached-student):not(.tr-cached-teacher) body.page-home,
  html.tr-cached-guest body.page-home { padding-bottom: 0 !important; }
  html.tr-cached-student .home-mobile-login, html.tr-cached-teacher .home-mobile-login { display: none; }
}
@media (max-width: 620px) {
  .home-details article + article { border-top: 1px solid var(--line-subtle); padding-top: 22px; }
}
/* Keep the headline desk compact even when more stories are available. */
.home-news-item:nth-child(n+4) { display: none; }
.home-brief__head{min-height:68px}.home-brief__head h2{font-size:21px}.home-brief__head>a{font-size:12px;color:var(--accent-primary)}.home-news-grid{grid-template-columns:1.45fr 1fr 1fr;gap:26px}.home-news-item{display:block}.home-news-kicker{font-size:10px}.home-news-item h3{font-size:19px;line-height:1.35;margin:10px 0}.home-news-item h3 a{-webkit-line-clamp:3}.home-news-item:first-child h3{font-size:26px}.home-news-summary{color:var(--text-secondary);font-size:12px;line-height:1.7;margin:10px 0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.home-news-source{color:var(--text-secondary);font-size:10px}.home-news-status:has(p:empty){display:none}@media(max-width:700px){.home-news-grid{grid-template-columns:1fr;gap:18px}.home-news-item+.home-news-item{padding:18px 0 0;margin:0;border-left:0}.home-news-kicker time,.home-news-kicker b{display:inline}.home-news-item h3{font-size:18px}.home-news-item:first-child h3{font-size:24px}}
