/* Landing pages only. The shared frame and subject styles live in study-ui.css. */
.study-home-page {
  margin: 0;
  background: #f7f8fc;
  color: var(--ss-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.study-home-page *, .study-home-page *::before, .study-home-page *::after { box-sizing: border-box; }
.study-home-page .ss-topbar { --ss-accent: #283bc9; }
.study-home-page a:focus-visible {
  outline: 3px solid #283bc9;
  outline-offset: 5px;
}
.study-home-page .ss-topbar a:focus-visible { outline-color: #fff; outline-offset: 2px; }
.study-home-page .study-home {
  width: 100%;
  max-width: 1120px;
  padding: 66px 28px 30px;
  background: transparent;
}
.study-home:focus { outline: none; }
.study-hero { max-width: 800px; }
.study-hero .ss-eyebrow { color: #283bc9; letter-spacing: 2px; }
.study-hero h1 { max-width: 780px; font-size: clamp(34px, 4.5vw, 54px); line-height: 1.12; letter-spacing: -1.8px; }
.study-hero .ss-lede { max-width: 680px; font-size: 17px; }
.study-breadcrumb {
  display: inline-flex;
  gap: 12px;
  margin-bottom: 26px;
  color: var(--ss-muted);
  font-size: 13px;
  text-decoration: none;
}
.study-breadcrumb:hover { color: #283bc9; }
.study-breadcrumb span { color: #a0a6b6; }
.study-portal-hero h1 { font-size: clamp(34px, 4vw, 47px); }
.study-portals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 46px; }
.study-portal {
  min-width: 0;
  padding: 26px;
  border: 1px solid #e1e5f0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 5px 24px #19295804;
}
.study-portal-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.study-portal-heading .ss-card-tag { margin: 0; font-size: 10px; letter-spacing: 1.3px; }
.study-space-number { color: #283bc9; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.study-portal h2 { margin: 0 0 8px; font-size: 30px; font-weight: 700; letter-spacing: -.8px; }
.study-portal-description { min-height: 48px; margin: 0 0 24px; color: var(--ss-muted); font-size: 15px; line-height: 1.55; }
.study-subject-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 90px;
  padding: 17px;
  border: 1px solid #dde3f9;
  border-radius: 11px;
  color: var(--ss-ink);
  background: #f5f7ff;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease;
}
.study-subject-link:hover { border-color: #a7b0ee; background: #edf0ff; }
.study-subject-link strong { display: block; margin-bottom: 6px; color: #283bc9; font-size: 19px; letter-spacing: -.3px; }
.study-subject-link strong + span { display: block; color: #50596e; font-size: 12px; line-height: 1.5; }
.study-link-arrow { color: #283bc9; font-size: 23px; }
.study-planned-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; min-height: 32px; margin: 20px 0 18px; color: var(--ss-muted); font-size: 12px; line-height: 1.7; }
.study-status { display: inline-block; flex-shrink: 0; color: #626b80; background: #eef0f5; border-radius: 5px; padding: 2px 7px; font-size: 10px; font-weight: 600; line-height: 1.6; }
.study-portal-link { display: inline-flex; align-items: center; gap: 10px; color: #283bc9; font-size: 13px; font-weight: 600; text-decoration: none; }
.study-portal-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.study-subjects { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; margin-top: 40px; align-items: stretch; }
.study-featured-course { padding: 28px; gap: 16px; border-radius: 16px; }
.study-featured-course h2 { font-size: 29px; }
.study-featured-course p { font-size: 15px; }
.study-featured-course .ss-card-enter { margin-top: 7px; color: #283bc9; }
.study-course-features { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.study-course-features li { border: 1px solid #e3e7f1; border-radius: 6px; padding: 5px 8px; color: #50596e; font-size: 11px; line-height: 1.4; }
.study-upcoming { padding: 25px 26px; border: 1px solid #e1e5f0; border-radius: 16px; }
.study-upcoming > h2 { margin: 0 0 22px; color: #626b80; font-size: 13px; font-weight: 500; }
.study-upcoming article + article { border-top: 1px solid #e1e5f0; margin-top: 20px; padding-top: 20px; }
.study-upcoming-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.study-upcoming h3 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -.3px; }
.study-upcoming p { margin: 10px 0 0; color: var(--ss-muted); font-size: 13px; line-height: 1.6; }
.study-vocab { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 36px; padding: 24px 0; border-top: 1px solid #e1e5f0; border-bottom: 1px solid #e1e5f0; }
.study-vocab .ss-card-tag { margin: 0 0 8px; font-size: 10px; letter-spacing: 1.4px; }
.study-vocab h2 { margin: 0 0 7px; font-size: 21px; letter-spacing: -.5px; }
.study-vocab p:not(.ss-card-tag) { margin: 0; color: var(--ss-muted); font-size: 13px; line-height: 1.6; }
.study-vocab > a { flex-shrink: 0; border: 1px solid #d8deef; border-radius: 8px; padding: 11px 14px; color: #283bc9; background: #fff; font-size: 13px; font-weight: 600; text-decoration: none; }
.study-vocab > a:hover { border-color: #a7b0ee; background: #f1f3ff; }
.study-footer { margin-top: 26px; padding-top: 0; border: 0; line-height: 1.65; }
.study-footer > :last-child { max-width: 520px; }
.study-skip { position: absolute; left: 14px; top: -100px; z-index: 1100; border-radius: 6px; padding: 12px 16px; background: #fff; color: #283bc9; font-size: 14px; }
.study-skip:focus { top: 56px; }
.study-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.study-home-page .study-error { padding-top: 100px; }
.study-error-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.study-error-links a { display: inline-flex; align-items: center; gap: 18px; border: 1px solid #d8deef; border-radius: 8px; padding: 13px 17px; color: #283bc9; background: #fff; font-size: 14px; font-weight: 600; text-decoration: none; }
.study-error-links a:hover { border-color: #a7b0ee; background: #edf0ff; }
@media (max-width: 720px) {
  .study-home-page .study-home { padding: 36px 20px 24px; }
  .study-hero h1 { font-size: clamp(33px, 7.7vw, 46px); letter-spacing: -1.1px; }
  .study-hero .ss-lede { font-size: 16px; }
  .study-portals, .study-subjects { grid-template-columns: 1fr; gap: 18px; margin-top: 30px; }
  .study-portal, .study-featured-course, .study-upcoming { padding: 23px; }
  .study-portal-description { min-height: 0; margin-bottom: 22px; }
  .study-portal-heading { margin-bottom: 20px; }
  .study-planned-line { margin-bottom: 16px; }
  .study-vocab { align-items: flex-start; flex-direction: column; gap: 18px; margin-top: 28px; }
  .study-footer { gap: 8px; margin-top: 24px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .study-home-page a.ss-card, .study-subject-link { transition: none; }
  .study-home-page a.ss-card:hover { transform: none; }
}
