/* Module-style public learning pages. Opted in by html.rc-learning-page.
   Reading colors stay inside .tc-main: body-mounted viewers keep dark tokens. */
html.rc-learning-page {
  --learning-forest: #173c34;
  --learning-forest-deep: #102e28;
  --learning-paper: #f5f4ec;
  --learning-card: #fffefa;
  --learning-mint: #e8f0e7;
  --learning-ink: #23362e;
  --learning-muted: #536357;
  --learning-line: #dce2d7;
  --learning-focus: #285fa3;
  background: var(--learning-paper);
}
html.rc-learning-page body,
html.rc-learning-page .tc-app {
  background: var(--learning-paper);
}
html.rc-learning-page .tc-topbar {
  margin-bottom: 0;
  background: var(--learning-forest-deep);
  color: #f0f5ed;
  border-bottom-color: #38594b;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html.rc-learning-page .tc-topbar .tc-title {
  flex: 1 1 auto;
  min-width: 0;
  color: #f0f5ed;
  font-size: 1rem;
  font-weight: 650;
  overflow-wrap: anywhere;
}
html.rc-learning-page .tc-topbar .tc-btn {
  min-width: 44px;
  min-height: 44px;
  color: #f0f5ed;
}
html.rc-learning-page .tc-sidebar {
  flex-shrink: 0;
  background: var(--learning-forest);
  border-right-color: #38594b;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html.rc-learning-page .tc-nav a {
  min-height: 46px;
  color: #d2dfcd;
  opacity: 1;
  transform: none;
}
html.rc-learning-page .tc-nav a:hover {
  background: #ffffff10;
  color: #fffefa;
  transform: none;
}
html.rc-learning-page .tc-nav a[aria-current="page"] {
  background: #f1f5e915;
  border-left-color: #cee1d1;
  color: #fffefa;
}
html.rc-learning-page .tc-icon { color: #cee1d1; }
html.rc-learning-page.tc-collapsed .tc-nav a {
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  justify-content: center;
}
html.rc-learning-page :is(.tc-topbar, .tc-sidebar) :is(a, button):focus-visible {
  outline: 3px solid #cee1d1;
  outline-offset: 2px;
}
html.rc-learning-page .tc-main {
  --rc-ink: var(--learning-ink);
  --rc-ink-dim: var(--learning-muted);
  --rc-muted: var(--learning-muted);
  --rc-border: var(--learning-line);
  --rc-brand: var(--learning-forest);
  --tc-text: var(--learning-ink);
  --tc-muted: var(--learning-muted);
  --tc-border: var(--learning-line);
  color-scheme: light;
  color: var(--learning-ink);
  background: var(--learning-paper);
  min-width: 0;
  min-height: calc(100vh - var(--tc-topbar-h, 56px));
  margin: 0;
  padding: clamp(22px, 3.2vw, 48px);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
html.rc-learning-page .tc-main > :is(.content-wrapper, .wrap) {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0;
}
html.rc-learning-page .tc-main h1 {
  margin: 0 0 16px;
  max-width: 28ch;
  color: var(--learning-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
  text-shadow: none;
}
html.rc-learning-page .tc-main p {
  color: var(--learning-muted);
  line-height: 1.75;
}
html.rc-learning-page .learning-page-header {
  margin: 8px 0 30px;
}
html.rc-learning-page .tc-main .learning-eyebrow {
  margin: 0 0 14px;
  color: var(--learning-muted);
  font-size: .7rem;
  font-weight: 750;
  letter-spacing: .17em;
  line-height: 1.6;
  text-transform: uppercase;
}
html.rc-learning-page .tc-main :is(.learning-lead, .unit-subtitle) {
  margin: 0;
  max-width: 72ch;
  color: var(--learning-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}
html.rc-learning-page .tc-context-nav { margin: 0 0 24px; }
html.rc-learning-page .tc-context-back {
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--learning-muted);
  font-size: .875rem;
  font-weight: 550;
  line-height: 1.5;
  box-shadow: none;
}
html.rc-learning-page .tc-context-back:hover {
  color: var(--learning-forest);
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
  transform: none;
}
html.rc-learning-page .tc-main :is(a, button, summary, input, select, textarea):focus-visible {
  outline: 3px solid var(--learning-focus);
  outline-offset: 4px;
}
html.rc-learning-page .learning-section-heading {
  margin: 32px 0 18px;
}
html.rc-learning-page .learning-section-heading h2 {
  margin: 0 0 6px;
  color: var(--learning-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.3;
}
html.rc-learning-page .learning-section-heading p {
  margin: 0;
  font-size: .95rem;
}
html.rc-learning-page :is(.learning-feature, .la-studio-entry) {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 132px;
  padding: 26px 28px;
  border: 1px solid #c8d8c5;
  border-radius: 16px;
  background: var(--learning-mint);
  color: var(--learning-ink);
  text-align: left;
  text-decoration: none;
  box-shadow: 0 4px 18px #18392d05;
  transition: background .16s ease, border-color .16s ease;
}
html.rc-learning-page :is(.learning-feature, .la-studio-entry):hover {
  background: #e1ebde;
  border-color: #789783;
  transform: none;
}
html.rc-learning-page :is(.learning-feature__icon, .la-studio-entry__icon) {
  width: 40px;
  height: 40px;
  flex: none;
  color: var(--learning-forest);
}
html.rc-learning-page :is(.learning-feature__copy, .la-studio-entry__copy) {
  min-width: 0;
  flex: 1;
}
html.rc-learning-page :is(.learning-feature, .la-studio-entry) h2 {
  margin: 0 0 8px;
  color: var(--learning-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.3;
}
html.rc-learning-page :is(.learning-feature, .la-studio-entry) p {
  margin: 0;
  max-width: 65ch;
  color: var(--learning-muted);
  font-size: .95rem;
  line-height: 1.7;
  opacity: 1;
}
html.rc-learning-page .la-studio-entry__copy small {
  margin: 0 0 8px;
  color: var(--learning-muted);
  font-size: .7rem;
  font-weight: 750;
  letter-spacing: .14em;
  opacity: 1;
}
html.rc-learning-page :is(.learning-feature__action, .la-studio-entry__open) {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  min-height: 44px;
  max-width: 100%;
  margin: 0;
  padding: 11px 17px;
  border: 1px solid var(--learning-forest);
  border-radius: 8px;
  background: var(--learning-forest);
  color: #fffefa;
  font-size: .875rem;
  font-weight: 650;
  line-height: 1.5;
  white-space: normal;
}
html.rc-learning-page .la-studio-feature { margin: 0 0 30px; }
html.rc-learning-page .book-grid,
html.rc-learning-page #la-toolkit-grid,
html.rc-learning-page .tc-main .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 18px;
  align-items: stretch;
}
html.rc-learning-page :is(.book-card, .toolkit-card),
html.rc-learning-page #la-toolkit-grid .rc-card,
html.rc-learning-page .tc-main .grid .card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 18px;
  min-width: 0;
  min-height: 146px;
  padding: 24px;
  border: 1px solid var(--learning-line);
  border-radius: 14px;
  background: var(--learning-card);
  color: var(--learning-ink);
  text-align: left;
  text-decoration: none;
  box-shadow: 0 4px 18px #18392d04;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background .16s ease, border-color .16s ease;
}
html.rc-learning-page :is(.book-card, .toolkit-card):hover,
html.rc-learning-page #la-toolkit-grid .rc-card:hover,
html.rc-learning-page .tc-main .grid .card:hover {
  background: #f0f5ed;
  border-color: #789783;
  box-shadow: 0 4px 18px #18392d0a;
  transform: none;
}
html.rc-learning-page :is(.book-card, .toolkit-card) > div:last-child { min-width: 0; }
html.rc-learning-page .book-icon,
html.rc-learning-page .toolkit-card :is(.toolkit-icon, .card-icon),
html.rc-learning-page #la-toolkit-grid .card-icon,
html.rc-learning-page .tc-main .grid .card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: none;
  padding: 10px;
  border: 1px solid #cedccd;
  border-radius: 10px;
  background: var(--learning-mint);
  color: var(--learning-forest);
  line-height: 1;
  filter: none;
}
html.rc-learning-page :is(.book-icon, .toolkit-icon, .card-icon) svg {
  width: 24px;
  height: 24px;
  flex: none;
}
html.rc-learning-page :is(.book-title, .toolkit-title),
html.rc-learning-page #la-toolkit-grid strong,
html.rc-learning-page .tc-main .grid .t {
  color: var(--learning-ink);
  font-size: 1.1rem;
  font-weight: 650;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
html.rc-learning-page :is(.book-summary, .toolkit-summary),
html.rc-learning-page .tc-main .grid .s {
  margin-top: 6px;
  color: var(--learning-muted);
  font-size: .875rem;
  line-height: 1.6;
}
html.rc-learning-page .book-action {
  display: block;
  margin-top: 16px;
  color: var(--learning-forest);
  font-size: .875rem;
  font-weight: 650;
  line-height: 1.5;
}
html.rc-learning-page .book-weekly-skills {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 18px;
  padding: 0;
  margin: 0 0 26px;
  border: 0;
  background: transparent;
}
html.rc-learning-page .book-weekly-skills .learning-feature {
  margin: 0;
  font-weight: 400;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
html.rc-learning-page .book-weekly-skills .learning-feature__action { margin-top: auto; }
html.rc-learning-page .guest-resource-row { margin: 0 0 28px; }
html.rc-learning-page .guest-folder-button {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  max-width: 100%;
  padding: 18px 22px;
  border: 1px solid var(--learning-line);
  border-radius: 12px;
  background: var(--learning-card);
  color: var(--learning-ink);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html.rc-learning-page .guest-folder-button:hover {
  border-color: #789783;
  background: #f0f5ed;
  box-shadow: none;
  transform: none;
}
html.rc-learning-page .guest-folder-button .card-icon { color: var(--learning-forest); }
html.rc-learning-page .guest-folder-copy .t {
  color: var(--learning-ink);
  font-size: 1rem;
  line-height: 1.5;
}
html.rc-learning-page .guest-folder-copy .s {
  color: var(--learning-muted);
  font-size: .8rem;
  line-height: 1.6;
}
html.rc-learning-page .presentation-source-archive {
  margin: 24px 0 0;
  padding: 22px 24px;
  border: 1px solid var(--learning-line);
  border-radius: 14px;
  background: var(--learning-card);
}
html.rc-learning-page .presentation-source-archive summary {
  margin: 0;
  color: var(--learning-ink);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.6;
  cursor: pointer;
}
html.rc-learning-page .presentation-source-archive[open] summary { margin-bottom: 16px; }
html.rc-learning-page .curriculum-note { margin: 0 0 22px; }
html.rc-learning-page .learning-stage {
  max-width: 880px;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--learning-line);
  border-radius: 16px;
  background: var(--learning-card);
}
html.rc-learning-page .toolkits-grid .toolkit-card {
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  margin-top: 20px;
}
html.rc-learning-page .toolkit-card-title {
  color: var(--learning-forest);
  font-size: 1.1rem;
  font-weight: 650;
  line-height: 1.5;
}
html.rc-learning-page .toolkit-card-desc {
  color: var(--learning-muted);
  font-size: .95rem;
  line-height: 1.7;
}
html.rc-learning-page .learning-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
html.rc-learning-page .learning-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border: 1px solid var(--learning-forest);
  border-radius: 8px;
  background: var(--learning-forest);
  color: #fffefa;
  text-decoration: none;
  font-weight: 650;
  line-height: 1.5;
}
html.rc-learning-page .learning-action--quiet {
  background: transparent;
  color: var(--learning-forest);
}
html.rc-learning-page .learning-action:hover { background: #244f42; color: #fffefa; }
html.rc-learning-page .collection-skip {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--learning-card);
  color: var(--learning-ink);
  transform: translateY(-180%);
}
html.rc-learning-page .collection-skip:focus {
  transform: translateY(0);
  outline: 3px solid var(--learning-focus);
}
html.rc-learning-page .rc-card-glow-active,
html.rc-learning-page .tc-main .card.glow { animation: none; }
@media (max-width: 768px) {
  html.rc-learning-page body { --tc-topbar-h: 100px; }
  html.rc-learning-page .tc-topbar {
    height: var(--tc-topbar-h);
    flex-wrap: wrap;
    align-content: center;
    gap: 2px 8px;
    padding: 6px 12px;
  }
  html.rc-learning-page .tc-topbar .tc-btn { flex: 0 0 44px; min-height: 44px; }
  html.rc-learning-page .tc-topbar .tc-title { flex: 1 1 0; min-width: 0; font-size: .94rem; }
  html.rc-learning-page .tc-topbar .tc-clock {
    flex: 0 0 100%;
    min-width: 0;
    max-width: 100%;
    margin-left: 0;
    justify-content: flex-end;
    flex-wrap: wrap;
    white-space: normal;
    gap: 2px 5px;
  }
}
@media (max-width: 760px) {
  html.rc-learning-page .tc-main { padding: 22px 20px 36px; }
  html.rc-learning-page .learning-page-header { margin-bottom: 24px; }
  html.rc-learning-page :is(.learning-feature, .la-studio-entry) {
    flex-wrap: wrap;
    gap: 16px;
    padding: 22px;
  }
  html.rc-learning-page :is(.learning-feature__icon, .la-studio-entry__icon) {
    width: 28px;
    height: 28px;
    align-self: flex-start;
  }
  html.rc-learning-page :is(.learning-feature__copy, .la-studio-entry__copy) {
    flex-basis: calc(100% - 44px);
  }
  html.rc-learning-page :is(.learning-feature__action, .la-studio-entry__open) {
    margin: 0;
  }
  html.rc-learning-page .book-weekly-skills { grid-template-columns: 1fr; }
  html.rc-learning-page .book-weekly-skills .learning-feature__copy { flex-basis: auto; }
  html.rc-learning-page :is(.book-card, .toolkit-card),
  html.rc-learning-page #la-toolkit-grid .rc-card,
  html.rc-learning-page .tc-main .grid .card { min-height: 130px; padding: 20px; }
  html.rc-learning-page .presentation-source-archive { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html.rc-learning-page .tc-main * { transition: none; animation: none; }
}
@media print {
  html.rc-learning-page :is(.tc-topbar, .tc-sidebar, .tc-context-nav, .collection-skip) { display: none; }
  html.rc-learning-page .tc-shell { display: block; }
  html.rc-learning-page .tc-main { padding: 0; color: #111; background: #fff; }
}
