/* Match the public Language Arts reading palette only inside Resources.
   The :has() rule follows the existing tab state; no second router or theme state. */
html body .tc-main:has(#studentDashboardView:not(.hidden) #tabResources.active) {
  background: #f5f4ec;
}
html body .tc-main:has(#studentDashboardView:not(.hidden) #tabResources.active)::before,
html body .tc-main:has(#studentDashboardView:not(.hidden) #tabResources.active)::after {
  content: none;
  display: none;
}
#studentDashboardView #tabResources {
  color: #23362e;
  color-scheme: light;
  background: #f5f4ec;
  min-height: calc(100vh - var(--tc-topbar-h, 56px));
}
#studentDashboardView #tabResources .st-learning-resources {
  box-sizing: border-box;
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 60px);
  background: #f5f4ec;
}
#tabResources .st-learning-header { margin: 8px 0 32px; }
#tabResources .st-learning-header h1 {
  margin: 0 0 16px;
  color: #23362e;
  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;
  text-shadow: none;
}
#tabResources .st-learning-resources p {
  margin: 0;
  color: #536357;
  font-size: 1rem;
  line-height: 1.7;
  opacity: 1;
  text-shadow: none;
}
#tabResources .st-learning-resources .st-learning-eyebrow {
  display: block;
  margin: 0 0 12px;
  color: #536357;
  font-size: .7rem;
  font-weight: 750;
  letter-spacing: .17em;
  line-height: 1.6;
  text-transform: uppercase;
}
#tabResources .st-learning-feature {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 26px 28px;
  border: 1px solid #c8d8c5;
  border-radius: 16px;
  background: #e8f0e7;
  color: #23362e;
  text-decoration: none;
}
#tabResources .st-learning-copy { flex: 1; min-width: 0; }
#tabResources .st-learning-feature h2,
#tabResources .st-learning-section-heading h2 {
  margin: 0 0 8px;
  color: #23362e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1.3;
}
#tabResources .st-learning-feature p { max-width: 65ch; font-size: .95rem; }
#tabResources .st-learning-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-height: 44px;
  max-width: 100%;
  box-sizing: border-box;
  padding: 11px 17px;
  border-radius: 8px;
  background: #173c34;
  color: #fffefa;
  font-size: .875rem;
  font-weight: 650;
  line-height: 1.5;
}
#tabResources .st-learning-section-heading { margin: 32px 0 18px; }
#tabResources .st-learning-section-heading p { font-size: .95rem; }
#tabResources .st-learning-book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 18px;
}
#studentDashboardView #tabResources .st-learning-book,
#tabResources .st-learning-path {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 18px;
  min-width: 0;
  min-height: 146px;
  box-sizing: border-box;
  padding: 24px;
  border: 1px solid #dce2d7;
  border-radius: 14px;
  background: #fffefa;
  color: #23362e;
  text-align: left;
  text-decoration: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transform: none;
}
#studentDashboardView #tabResources .st-learning-book:hover,
#tabResources .st-learning-path:hover,
#tabResources .st-learning-feature:hover {
  background: #f0f5ed;
  border-color: #789783;
  box-shadow: none;
  transform: none;
}
#tabResources .st-learning-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  box-sizing: border-box;
  padding: 10px;
  border: 1px solid #cedccd;
  border-radius: 10px;
  background: #e8f0e7;
  color: #173c34;
}
#studentDashboardView #tabResources .st-learning-icon svg {
  width: 24px;
  height: 24px;
  margin: 0;
  color: #173c34;
  opacity: 1;
}
#tabResources .st-learning-resources h3 {
  margin: 0 0 6px;
  color: #23362e;
  font-size: 1.1rem;
  font-weight: 650;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
#tabResources .st-learning-book p,
#tabResources .st-learning-path p { font-size: .875rem; }
#tabResources .st-learning-action {
  display: block;
  margin-top: 16px;
  color: #173c34;
  font-size: .875rem;
  font-weight: 650;
  line-height: 1.5;
}
#tabResources .st-learning-paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
#tabResources .st-learning-path { flex-direction: column; gap: 0; }
#tabResources .st-learning-path .st-learning-action { margin-top: auto; padding-top: 16px; }
#tabResources .st-learning-resources a:focus-visible {
  outline: 3px solid #285fa3;
  outline-offset: 4px;
}
@media (max-width: 760px) {
  #studentDashboardView #tabResources .st-learning-resources { padding: 24px 20px 36px; }
  #tabResources .st-learning-feature { flex-wrap: wrap; gap: 16px; padding: 22px; }
  #tabResources .st-learning-feature .st-learning-copy { flex-basis: calc(100% - 60px); }
  #tabResources .st-learning-paths { grid-template-columns: 1fr; }
}
