﻿:root {
  --info-bg: #fffaf0;
  --info-surface: #faf5e8;
  --info-card: #ffffff;
  --info-surface-raised: #f5f0e0;
  --info-line: #e5e5e5;
  --info-ink: #0a0a0a;
  --info-muted: #5f5f5f;
  --info-teal: #1a3a3a;
  --info-pink: #9f1748;
  --info-mint: #a4d4c5;
  --info-yellow: #e8b94a;
  --info-red: #b42318;
  --info-red-soft: #fff2f1;
  --info-radius: 16px;
  color-scheme: light;
}

.info-page {
  min-width: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--info-bg) !important;
  color: var(--info-ink) !important;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.info-page *,
.info-page *::before,
.info-page *::after {
  box-sizing: border-box;
}

.info-page main {
  flex: 1;
  padding: 0;
  background: var(--info-bg) !important;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 1000000;
  min-height: 44px;
  transform: translateY(-140%);
  border: 1px solid var(--info-line);
  border-radius: 12px;
  background: var(--info-ink);
  color: #ffffff !important;
  font-weight: 900;
  padding: 10px 12px;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.info-shell {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding-inline: 24px;
  max-width: 100%;
}

.info-header {
  border-bottom: 1px solid var(--info-line);
  background: rgba(255, 250, 240, 0.94) !important;
  backdrop-filter: blur(14px);
}

.info-header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.info-brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--info-ink);
  text-decoration: none;
}

.info-brand:hover {
  text-decoration: none;
}

.info-brand img {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 16px;
  background: var(--info-card);
  object-fit: contain;
}

.info-brand-copy {
  min-width: 0;
  display: grid;
}

.info-brand-copy strong {
  color: var(--info-ink);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.info-brand-copy small {
  color: var(--info-muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.info-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px !important;
}

.info-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 13px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--info-teal);
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
}

.info-nav a:hover,
.info-nav a[aria-current="page"] {
  border-color: var(--info-line);
  background: var(--info-surface-raised);
  color: var(--info-teal);
  text-decoration: none;
}

.info-page :focus-visible {
  outline: 3px solid rgba(26, 58, 58, 0.32) !important;
  outline-offset: 3px;
}

.info-hero {
  border-bottom: 1px solid var(--info-line);
  background: linear-gradient(120deg, color-mix(in srgb, var(--info-mint) 22%, transparent), color-mix(in srgb, var(--info-yellow) 28%, transparent) 58%, color-mix(in srgb, var(--info-lavender) 14%, transparent)), var(--info-bg);
}

.info-hero-inner {
  max-width: 820px;
  padding-block: 64px 58px;
}

.info-kicker,
.info-aside-label,
.not-found-code {
  margin: 0 0 14px;
  color: var(--info-pink);
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.info-page .info-hero h1,
.info-page .not-found-layout h1 {
  max-width: 760px;
  margin: 0;
  color: var(--info-ink);
  font-size: clamp(2.3rem, 7vw, 4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.info-lead {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--info-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.info-updated {
  margin: 18px 0 0;
  color: var(--info-muted);
  font-size: 1rem;
  font-weight: 800;
}

.info-content {
  padding-block: 54px 72px;
}

.info-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: start;
  gap: 56px;
}

.info-article {
  min-width: 0;
}

.info-section {
  padding: 0 0 34px;
  border-bottom: 1px solid var(--info-line);
}

.info-section + .info-section {
  padding-top: 34px;
}

.info-section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.info-page .info-section h2 {
  margin: 0 0 14px;
  color: var(--info-ink);
  font-size: 2rem;
  line-height: 1.12;
  letter-spacing: 0;
}

.info-page .info-section h3,
.info-summary h2,
.info-aside h2 {
  margin: 0 0 8px;
  color: var(--info-ink);
  font-size: 1rem;
  line-height: 1.35;
  letter-spacing: 0;
}

.info-section p,
.info-section li {
  color: var(--info-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.info-section p {
  margin: 0;
}

.info-section p + p {
  margin-top: 14px;
}

.info-section ul {
  margin: 14px 0 0;
  padding-left: 20px;
}

.info-section li + li {
  margin-top: 8px;
}

.info-section a {
  color: var(--info-teal);
  font-weight: 800;
}

.info-summary,
.info-aside,
.correction-form {
  border: 1px solid var(--info-line);
  border-radius: var(--info-radius);
  background: var(--info-card);
}

.info-summary {
  margin-bottom: 34px;
  padding: 24px;
}

.info-summary ul {
  margin: 0;
  padding-left: 20px;
}

.info-summary li {
  color: var(--info-muted);
  line-height: 1.65;
}

.info-summary li + li {
  margin-top: 8px;
}

.info-aside {
  position: sticky;
  top: 96px;
  padding: 22px;
  background: var(--info-surface-raised);
}

.info-aside p {
  margin: 12px 0 0;
  color: var(--info-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.info-aside a,
.info-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 11px 14px;
  border: 1px solid var(--info-ink);
  border-radius: 12px;
  background: var(--info-ink);
  color: #ffffff !important;
  font-size: 1rem;
  font-weight: 900;
  text-decoration: none;
}

.info-aside a:hover,
.info-button:hover {
  background: var(--info-teal);
  border-color: var(--info-teal);
  text-decoration: none;
}

.correction-form {
  padding: 26px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.form-field {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.form-field-wide {
  grid-column: 1 / -1;
}

.form-field label,
.form-privacy span {
  color: var(--info-ink);
  font-size: 1rem;
  font-weight: 800;
}

.form-field small {
  color: var(--info-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--info-line);
  border-radius: 12px;
  background: var(--info-card);
  color: var(--info-ink);
  font: inherit;
}

.form-field input,
.form-field select {
  min-height: 48px;
  padding: 11px 14px;
}

.form-privacy {
  min-height: 52px;
}

.form-privacy input {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.form-field textarea {
  min-height: 170px;
  padding: 12px;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--info-muted);
}

.form-privacy {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--info-line);
  border-radius: 12px;
  background: var(--info-surface-raised);
  cursor: pointer;
}

.form-privacy input {
  width: 24px;
  height: 24px;
  margin: 1px 0 0;
  accent-color: var(--info-teal);
}

.form-privacy span {
  line-height: 1.5;
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.form-actions .info-button {
  margin: 0;
  cursor: pointer;
}

.form-actions .info-button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--info-muted);
  font-size: 1rem;
  font-weight: 800;
}

.form-status.is-success {
  color: var(--info-teal);
}

.form-status.is-error {
  color: var(--info-red);
}

.sr-only-field {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.sr-only-field input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.not-found-layout {
  min-height: calc(100vh - 77px);
  display: grid;
  align-content: center;
  justify-items: start;
  padding-block: 56px;
}

.not-found-layout > p:not(.not-found-code) {
  max-width: 620px;
  margin: 20px 0 0;
  color: var(--info-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.not-found-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.not-found-links .info-button {
  margin: 0;
}

.not-found-links .info-button-secondary {
  border-color: var(--info-line);
  background: var(--info-surface-raised);
  color: var(--info-teal) !important;
}

.not-found-links .info-button-secondary:hover {
  border-color: var(--info-teal);
  background: var(--info-card);
}

.info-footer {
  padding: 26px 0;
  border-top: 1px solid var(--info-line);
  background: var(--info-surface);
}

.info-footer-inner,
.info-footer-links {
  display: flex;
  align-items: center;
}

.info-footer-inner {
  justify-content: space-between;
  gap: 24px;
}

.info-footer p {
  margin: 0;
  color: var(--info-muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.info-footer-links {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

.info-footer-links a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  color: var(--info-teal);
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
}

.info-footer-links a:hover {
  color: var(--info-pink);
}

@media (max-width: 800px) {
  .info-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .info-aside {
    position: static;
  }
}

@media (max-width: 680px) {
  .info-shell {
    padding-inline: 16px;
  }

  .info-header-inner {
    min-height: 68px;
    gap: 12px;
  }

  .info-brand-copy small {
    display: none;
  }

  .info-hero-inner {
    padding-block: 44px 42px;
  }

  .info-nav a {
    min-height: 44px;
    padding-inline: 12px;
  }

  .info-content {
    padding-block: 40px 56px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .correction-form {
    padding: 20px;
  }

  .info-footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .info-footer-links {
    justify-content: flex-start;
  }

  .info-footer-links a,
  .info-aside a,
  .info-section a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .info-page *,
  .info-page *::before,
  .info-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }
}

/* Study Launchpad redesign for trust and information pages. */
:root {
  --info-bg: #f4f7fb;
  --info-surface: #eaf0fb;
  --info-card: #ffffff;
  --info-surface-raised: #eef3fb;
  --info-line: #d7deea;
  --info-ink: #111827;
  --info-muted: #5b6575;
  --info-teal: #2457f5;
  --info-pink: #ff5a3d;
  --info-mint: #dcfce7;
  --info-yellow: #c6f432;
  --info-red: #c53030;
  --info-red-soft: #fff2f1;
  --info-radius: 16px;
}

.info-page {
  background: var(--info-bg) !important;
  font-family: Aptos, "Segoe UI", Arial, system-ui, sans-serif;
}

.info-header,
.info-hero {
  background: #ffffff !important;
}

.info-brand img {
  border-radius: var(--info-radius);
}

.info-page .info-hero h1,
.info-page .not-found-layout h1,
.info-page .info-section h2,
.info-page .info-section h3,
.info-summary h2,
.info-aside h2 {
  font-family: "Aptos Display", Aptos, "Segoe UI", Arial, system-ui, sans-serif;
  font-weight: 850;
}

.info-kicker,
.info-aside-label,
.not-found-code {
  display: none;
}

.info-summary,
.info-aside,
.info-callout,
.not-found-links,
.correction-form {
  border-color: var(--info-line);
  border-radius: var(--info-radius);
  background: #ffffff;
}

.info-button {
  border-radius: 12px;
  background: var(--info-ink);
}

.info-brand,
.info-footer-links a,
.info-aside a,
.info-section a {
  min-height: 44px;
}

.info-footer-links a,
.info-aside a,
.info-section a {
  display: inline-flex;
  align-items: center;
}

.info-page .info-hero h1,
.info-page .not-found-layout h1 {
  font-size: 4rem;
}

@media (max-width: 760px) {
  .info-page .info-hero h1,
  .info-page .not-found-layout h1 {
    font-size: 2.55rem;
  }
}

/* Typeset pass: readable metadata, footer, and long-form rhythm. */
.info-brand-copy small,
.info-footer p,
.info-footer-links a,
.info-aside-label,
.form-field small {
  font-size: 0.95rem;
}

.info-page .info-section p,
.info-page .info-section li,
.info-aside p,
.info-summary li,
.info-callout p {
  line-height: 1.68;
}

.info-page .info-hero h1,
.info-page .not-found-layout h1 {
  max-width: 12ch;
}

.info-lead {
  max-width: 68ch;
}

@media (max-width: 680px) {
  .info-page .info-hero h1,
  .info-page .not-found-layout h1 {
    font-size: 2.45rem;
    line-height: 1.06;
    max-width: 11ch;
  }

  .info-page .info-section p,
  .info-page .info-section li,
  .info-aside p,
  .info-summary li {
    font-size: 1rem;
  }
}

/* Harden pass: long URLs, issue reports, and translated text should wrap cleanly. */
.info-brand,
.info-brand-copy,
.info-nav,
.info-nav a,
.info-page .info-hero h1,
.info-lead,
.info-section,
.info-section h2,
.info-section h3,
.info-section p,
.info-section li,
.info-section a,
.info-aside,
.info-aside p,
.info-aside a,
.info-summary,
.info-callout,
.correction-form,
.form-field,
.form-field label,
.form-field small,
.form-status,
.info-footer {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Polish pass: nav labels are known product words, so keep them intact. */
.info-nav a {
  min-width: max-content;
  overflow-wrap: normal;
  white-space: nowrap;
}

@media (max-width: 680px) {
  .info-nav {
    gap: 8px;
  }

  .info-nav a {
    padding-inline: 10px;
  }

  .info-brand {
    flex: 0 0 auto;
  }

  .info-brand-copy {
    display: grid;
  }

  .info-page .info-hero h1,
  .info-page .not-found-layout h1 {
    max-width: 12ch;
  }
}

/* Unified study chrome: match the home, calendar, and module headers. */
.info-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(244, 247, 251, 0.9) !important;
  border-bottom: 1px solid rgba(215, 222, 234, 0.92);
  backdrop-filter: blur(16px);
}

.info-header .info-shell {
  width: min(1180px, calc(100% - 40px));
  padding-inline: 0;
}

.info-header-inner {
  min-height: 72px;
  gap: 20px;
}

.info-brand {
  gap: 12px;
}

.info-brand img {
  width: 44px;
  height: 44px;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.09);
}

.info-brand-copy {
  gap: 2px;
}

.info-brand-copy strong {
  color: var(--info-ink);
  line-height: 1.1;
  white-space: nowrap;
}

.info-brand-copy small {
  color: var(--info-muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.info-nav {
  gap: 8px !important;
}

.info-nav a {
  min-height: 44px;
  padding: 0 14px;
  color: #1535a7;
  font-size: 1rem;
  font-weight: 800;
}

.info-nav a:hover,
.info-nav a:focus-visible,
.info-nav a[aria-current="page"] {
  background: #ffffff;
  border-color: var(--info-line);
  color: #1535a7;
}

@media (max-width: 680px) {
  .info-header .info-shell {
    width: min(100% - 28px, 1180px);
  }

  .info-header-inner {
    flex-wrap: wrap;
    min-height: 64px;
    gap: 8px;
    padding: 10px 0 12px;
  }

  .info-brand,
  .info-nav {
    width: 100%;
  }

  .info-brand-copy small {
    display: none;
  }

  .info-nav {
    justify-content: flex-start;
  }

  .info-nav a {
    flex: 1 1 0;
    padding: 0 8px;
  }

  .info-nav .info-calendar-link {
    display: inline-flex !important;
  }

}

/* Keep every header destination available on phones and narrow tablets. */
@media (max-width: 960px) {
  .info-header {
    position: static;
  }

  .info-header .info-header-inner {
    display: flex !important;
    flex-wrap: wrap;
    min-height: 0;
    gap: 8px;
    padding-block: 10px 12px;
  }

  .info-header .info-brand {
    width: 100%;
    min-width: 0;
  }

  .info-header .info-nav {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr)) !important;
    align-items: stretch !important;
    width: 100%;
    min-width: 0;
    gap: 8px;
  }

  .info-header .info-nav a {
    min-width: 0;
    min-height: 44px;
    padding: 8px;
    line-height: 1.2;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
  }

  .info-header .info-brand strong {
    white-space: normal;
  }
}
