@import "./forest-tokens.css";
@import "./student-surfaces.css";
/* Forest foundation: student workspaces and the shared account surface.
   Presentation does not confer a student role or access. Unmodified OFL font, pinned in assets/fonts/README.md. */
html[data-haiedu-student-root], html:has(body:is([data-haiedu-student],[data-forest-surface])) { font-size: 100%; background: #f5f6ef; }
body:is([data-haiedu-student],[data-forest-surface]) {
  --student-canvas: var(--forest-canvas);
  --student-surface: var(--forest-surface);
  --student-ink: var(--forest-ink);
  --student-muted: var(--forest-muted);
  --student-accent: var(--forest-accent);
  --student-accent-hover: var(--forest-hover);
  --student-selected: var(--forest-selected);
  --student-hero: var(--forest-hero);
  --student-hero-ink: var(--forest-hero-ink);
  --student-hero-muted: var(--forest-hero-muted);
  --student-art: var(--forest-art);
  --student-quiet: var(--forest-quiet);
  --student-divider: var(--forest-divider);
  --student-border-control: var(--forest-control);
  --student-focus: var(--forest-focus);
  --student-success: var(--forest-success);
  --student-success-bg: var(--forest-success-bg);
  --student-attention: var(--forest-attention);
  --student-attention-bg: var(--forest-attention-bg);
  --student-feedback: var(--forest-feedback);
  --student-feedback-bg: var(--forest-feedback-bg);
  --student-error: var(--forest-error);
  --student-error-bg: var(--forest-error-bg);
  --amp-color-bg: var(--student-canvas);
  --amp-color-bg-subtle: var(--student-quiet);
  --amp-color-surface: var(--student-surface);
  --amp-color-text: var(--student-ink);
  --amp-color-text-muted: var(--student-muted);
  --amp-color-primary: var(--student-accent);
  --amp-color-primary-hover: var(--student-accent-hover);
  --amp-color-primary-soft: var(--student-selected);
  --amp-color-border: var(--student-divider);
  --amp-color-focus: var(--student-focus);
  --amp-font-size-md: 1rem;
  --amp-font-size-sm: .875rem;
  --amp-font-size-xs: .875rem;
  --amp-nav-width: 15.5rem;
  --amp-content-max: 80rem;
  font-family: "Noto Sans Armenian", "Noto Sans", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  background: var(--student-canvas);
  color: var(--student-ink);
}
body:is([data-haiedu-student],[data-forest-surface]) :focus-visible { outline: 3px solid var(--student-focus); outline-offset: 3px; }
body:is([data-haiedu-student],[data-forest-surface]) :is(h1,h2,h3,p,label,a,button,summary) { letter-spacing: normal; overflow-wrap: anywhere; }
body:is([data-haiedu-student],[data-forest-surface]) :is(button,input,select,textarea) { font: inherit; }
body:is([data-haiedu-student],[data-forest-surface]) :is(input:not([type=radio],[type=checkbox]),select,textarea) {
  min-width: 0; max-width: 100%; border: 1px solid var(--student-border-control); border-radius: .75rem;
  color: var(--student-ink); background: var(--student-surface);
}
body:is([data-haiedu-student],[data-forest-surface]) :is(button,.button-link) {
  min-height: 2.75rem; white-space: normal; line-height: 1.5; border-radius: .75rem;
}
body:is([data-haiedu-student],[data-forest-surface]) :is(button:not(.ghost,.secondary),.button-link:not(.ghost,.secondary)) {
  background: var(--student-accent); border-color: var(--student-accent); color: #fff;
}
body:is([data-haiedu-student],[data-forest-surface]) :is(button.ghost,button.secondary,.button-link.ghost,.button-link.secondary) {
  background: var(--student-surface); border: 1px solid var(--student-border-control); color: var(--student-accent);
}
body:is([data-haiedu-student],[data-forest-surface]) > main.shell {
  width: auto; max-width: 80rem; min-width: 0;
  margin: 0 auto 0 calc(var(--amp-nav-width) + max(0px, (100vw - var(--amp-nav-width) - 80rem) / 2));
  padding: 2rem; gap: 1.5rem;
}
body:is([data-haiedu-student],[data-forest-surface]) .topbar { align-items: center; gap: 1.5rem; padding-bottom: 1.5rem; }
body:is([data-haiedu-student],[data-forest-surface]) .topbar > div { min-width: 0; }
body:is([data-haiedu-student],[data-forest-surface]) .topbar h1 { font-size: 2rem; line-height: 1.3; color: var(--student-ink); }
body:is([data-haiedu-student],[data-forest-surface]) .topbar .eyebrow { display: none; }
body:is([data-haiedu-student],[data-forest-surface]) .topbar p { margin-bottom: 0; font-size: .875rem; }
body:is([data-haiedu-student],[data-forest-surface]) .topbar > .row { flex-shrink: 0; gap: .5rem; }
body:is([data-haiedu-student],[data-forest-surface]) .student-account-link {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: .5rem .75rem;
  color: var(--student-accent); background: var(--student-surface); border: 1px solid var(--student-divider);
  border-radius: 999px; text-decoration: none; font-size: .875rem; font-weight: 600;
}
.student-icon { width: 1.25rem; height: 1.25rem; flex: 0 0 1.25rem; }
body:is([data-haiedu-student],[data-forest-surface]) .amp-side-nav {
  width: var(--amp-nav-width); background: var(--student-surface); color: var(--student-ink);
  padding: 2rem 1rem 1rem; gap: 1.5rem; border-right: 1px solid var(--student-divider);
}
body:is([data-haiedu-student],[data-forest-surface]) .amp-nav-brand { padding: 0 .5rem 1.5rem; border-bottom: 1px solid var(--student-divider); }
body:is([data-haiedu-student],[data-forest-surface]) .amp-brand-link { background: transparent; padding: 0; box-shadow: none; }
body:is([data-haiedu-student],[data-forest-surface]) .amp-nav-brand span { color: var(--student-muted); font-size: .75rem; line-height: 1.5; }
body:is([data-haiedu-student],[data-forest-surface]) .amp-nav-list { gap: .5rem; scrollbar-width: thin; }
body:is([data-haiedu-student],[data-forest-surface]) .amp-nav-link { padding: .75rem; color: var(--student-muted); font-weight: 600; font-size: 1rem; border-radius: .75rem; line-height: 1.5; }
body:is([data-haiedu-student],[data-forest-surface]) .amp-nav-link:hover { background: var(--student-quiet); color: var(--student-accent); }
body:is([data-haiedu-student],[data-forest-surface]) .amp-nav-link[aria-current=page] { background: var(--student-selected); color: var(--student-accent); box-shadow: inset 3px 0 var(--student-accent); }
body:is([data-haiedu-student],[data-forest-surface]) .amp-course-link { font-size: .875rem; align-items: flex-start; }
body:is([data-haiedu-student],[data-forest-surface]) .amp-course-link small { display: block; font-size: .75rem; opacity: 1; color: var(--student-muted); margin-top: .25rem; }
body:is([data-haiedu-student],[data-forest-surface]) .amp-nav-section-label { color: var(--student-muted); font-size: .75rem; letter-spacing: normal; margin: 1rem .75rem .25rem; }
body:is([data-haiedu-student],[data-forest-surface]) .amp-course-sublinks { display: grid; }
body:is([data-haiedu-student],[data-forest-surface]) .amp-course-sublink { color: var(--student-muted); font-size: .875rem; min-height: 2.75rem; padding: .65rem .75rem; }
body:is([data-haiedu-student],[data-forest-surface]) .amp-course-sublink:is(:hover,[aria-current=page]) { color: var(--student-accent); background: var(--student-selected); }
body:is([data-haiedu-student],[data-forest-surface]) .amp-nav-utility { border-top: 1px solid var(--student-divider); gap: .25rem; }
body:is([data-haiedu-student],[data-forest-surface]) .amp-nav-utility a { display: flex; align-items: center; min-height: 2.75rem; color: var(--student-muted); font-size: .875rem; padding: .5rem .75rem; }
body:is([data-haiedu-student],[data-forest-surface]) .amp-nav-utility [data-student-signout] { display: flex; gap: .75rem; align-items: center; border: 0; background: transparent; color: var(--student-ink); text-align: left; padding: .75rem; }
body:is([data-haiedu-student],[data-forest-surface]) .amp-mobile-nav { padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px)); background: var(--student-surface); border-color: var(--student-divider); }
body:is([data-haiedu-student],[data-forest-surface]) .amp-mobile-link { grid-template-columns: minmax(0,1fr); color: var(--student-muted); font-size: .875rem; line-height: 1.4; padding: .6rem .3rem; gap: .3rem; min-height: 4.5rem; }
body:is([data-haiedu-student],[data-forest-surface]) .amp-mobile-link > span { min-width: 0; max-width: 100%; white-space: normal; overflow-wrap: normal; word-break: normal; }
body:is([data-haiedu-student],[data-forest-surface]) .amp-mobile-link[aria-current=page] { background: var(--student-selected); color: var(--student-accent); }
body:is([data-haiedu-student],[data-forest-surface]) .notice { background: var(--student-attention-bg); color: var(--student-attention); border-color: #e9d6b9; border-radius: .75rem; font-size: .875rem; }
body:is([data-haiedu-student],[data-forest-surface]) .notice span { color: inherit; }
body:is([data-haiedu-student],[data-forest-surface]) .card { border-color: var(--student-divider); border-radius: 1rem; box-shadow: 0 4px 16px rgb(35 57 47 / .05); }
body:is([data-haiedu-student],[data-forest-surface]) .mode-kicker { color: var(--student-accent); letter-spacing: normal; font-size: .875rem; font-weight: 600; text-transform: none; }
body:is([data-haiedu-student],[data-forest-surface]) .student-home-main { display: grid; gap: 1.5rem; min-width: 0; }
body:is([data-haiedu-student],[data-forest-surface]) .student-home-welcome { display: grid; grid-template-columns: minmax(0,1fr) 12rem; align-items: center; gap: 1rem; padding: 1.5rem 2rem; border-radius: 1.25rem; background: var(--student-hero); color: var(--student-hero-ink); }
body:is([data-haiedu-student],[data-forest-surface]) .student-home-welcome h2 { font-size: 1.75rem; line-height: 1.4; margin: .25rem 0 .5rem; color: inherit; }
body:is([data-haiedu-student],[data-forest-surface]) .student-home-welcome p { color: var(--student-hero-muted); margin: 0; max-width: 42rem; }
.student-learning-art { display: block; width: 100%; max-height: 10rem; }
body:is([data-haiedu-student],[data-forest-surface]) .student-selection { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
body:is([data-haiedu-student],[data-forest-surface]) .student-selection label { display: grid; gap: .5rem; min-width: 0; font-size: .875rem; font-weight: 600; }
body:is([data-haiedu-student],[data-forest-surface]) .student-selection select { width: 100%; padding: .75rem; min-height: 3rem; text-overflow: ellipsis; }
body:is([data-haiedu-student],[data-forest-surface]) .student-next { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 1.5rem; align-items: center; padding: 1.5rem; border-left: 4px solid var(--student-accent); }
body:is([data-haiedu-student],[data-forest-surface]) .student-next > * { min-width: 0; }
body:is([data-haiedu-student],[data-forest-surface]) .student-next h3 { margin: .5rem 0; font-size: 1.375rem; line-height: 1.4; }
body:is([data-haiedu-student],[data-forest-surface]) .student-next p { margin: .5rem 0; }
body:is([data-haiedu-student],[data-forest-surface]) .student-next .button-link { display: inline-flex; align-items: center; gap: .75rem; margin-top: .75rem; text-decoration: none; }
body:is([data-haiedu-student],[data-forest-surface]) .student-context { font-size: .875rem; color: var(--student-muted); }
body:is([data-haiedu-student],[data-forest-surface]) .student-readiness { display: grid; justify-items: center; text-align: center; width: 9rem; gap: .5rem; color: var(--student-accent); text-decoration: none; font-size: .875rem; line-height: 1.5; }
body:is([data-haiedu-student],[data-forest-surface]) .student-readiness-ring { width: 5.5rem; height: 5.5rem; padding: .45rem; border-radius: 50%; background: conic-gradient(var(--student-accent) var(--ready-angle,0deg),var(--student-selected) 0); }
body:is([data-haiedu-student],[data-forest-surface]) .student-readiness-ring strong { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: #fff; font-size: 1.125rem; }
body:is([data-haiedu-student],[data-forest-surface]) .student-help-link { margin-top: .75rem; display: inline-block; color: var(--student-accent); text-underline-offset: .2em; }
body:is([data-haiedu-student],[data-forest-surface]) .amp-subject-grid { grid-template-columns: repeat(auto-fit,minmax(min(17rem,100%),1fr)); gap: 1.5rem; }
body:is([data-haiedu-student],[data-forest-surface]) .amp-subject-card { padding: 1.5rem; gap: 1rem; align-content: start; }
body:is([data-haiedu-student],[data-forest-surface]) .student-card-art { height: 8rem; border-radius: .75rem; background: var(--student-quiet); display: flex; align-items: center; justify-content: center; color: var(--student-accent); }
body:is([data-haiedu-student],[data-forest-surface]) .student-card-art .student-icon { width: 3rem; height: 3rem; flex-basis: 3rem; stroke-width: 1; }
body:is([data-haiedu-student],[data-forest-surface]) .amp-subject-card h3 { font-size: 1.125rem; margin: 0; line-height: 1.5; }
body:is([data-haiedu-student],[data-forest-surface]) .amp-subject-card p { margin: 0; font-size: .875rem; color: var(--student-muted); }
body:is([data-haiedu-student],[data-forest-surface]) .amp-subject-card .button-link { justify-self: stretch; width: 100%; text-align: center; }
body:is([data-haiedu-student],[data-forest-surface]) .student-unit-links { border-top: 1px solid var(--student-divider); padding-top: .5rem; min-width: 0; }
body:is([data-haiedu-student],[data-forest-surface]) .student-unit-links summary { cursor: pointer; min-height: 2.75rem; padding: .5rem 0; color: var(--student-accent); font-size: .875rem; }
body:is([data-haiedu-student],[data-forest-surface]) .student-unit-links .amp-subject-class-list { padding: .5rem 0; gap: .5rem; }
body:is([data-haiedu-student],[data-forest-surface]) .student-unit-links a { display: block; color: var(--student-accent); padding: .5rem; min-height: 2.75rem; }
body:is([data-haiedu-student],[data-forest-surface]) .student-state { padding: 1.5rem; }
body:is([data-haiedu-student],[data-forest-surface]) .student-state h3 { margin-top: 0; }
body:is([data-haiedu-student],[data-forest-surface]) .student-state button { margin-top: .5rem; }
body:is([data-haiedu-student],[data-forest-surface]) .student-error { border-left: 4px solid var(--student-error); }
body:is([data-haiedu-student],[data-forest-surface]) .student-error p { color: var(--student-error); }
body:is([data-haiedu-student],[data-forest-surface]) #modePanel > .home-heading { display: none; }
body:is([data-haiedu-student],[data-forest-surface]) #studentSignOutMessage { color: var(--student-error); background: var(--student-error-bg); padding: 1rem; }
body:is([data-haiedu-student],[data-forest-surface]).amp-focused-task > main.shell { max-width: 61.25rem; margin: auto; }
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  body:is([data-haiedu-student],[data-forest-surface]) .amp-subject-card { transition: transform 140ms ease, box-shadow 140ms ease; }
  body:is([data-haiedu-student],[data-forest-surface]) .amp-subject-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgb(35 57 47 / .09); }
}
@media (max-width:1100px) {
  /* Match the base shell: enlarged tablet text uses compact navigation. */
  body:is([data-haiedu-student],[data-forest-surface]) .amp-side-nav { display:none; }
  body:is([data-haiedu-student],[data-forest-surface]) > main.shell { padding:1.5rem; }
  body:is([data-haiedu-student],[data-forest-surface]).amp-student-shell-active > main.shell { width:100%; margin:0; padding:1.5rem 1.5rem calc(6rem + env(safe-area-inset-bottom,0px)); }
  body:is([data-haiedu-student],[data-forest-surface]) .amp-mobile-nav { display:flex; }
  body:is([data-haiedu-student],[data-forest-surface]) { --amp-nav-width: 14rem; }
  body:is([data-haiedu-student],[data-forest-surface]) .amp-side-nav { padding-inline: .75rem; }
  body:is([data-haiedu-student],[data-forest-surface]) .student-home-welcome { padding: 1.5rem; grid-template-columns: minmax(0,1fr) 9rem; }
}
@media (min-width:1101px) {
  body:is([data-haiedu-student],[data-forest-surface]):not(.amp-focused-task):not([data-student-player=active]) .amp-side-nav { display: flex; }
  body:is([data-haiedu-student],[data-forest-surface]) .amp-mobile-nav { display: none; }
}
@media (max-width:760px) {
  body:is([data-haiedu-student],[data-forest-surface]) .amp-side-nav { display: none; }
  body:is([data-haiedu-student],[data-forest-surface]) > main.shell { width: 100%; margin: 0; padding: 1.5rem 1rem calc(6rem + env(safe-area-inset-bottom,0px)); }
  body:is([data-haiedu-student],[data-forest-surface]).amp-student-shell-active > main.shell { padding:min(1.5rem,24px) min(1rem,16px) calc(6rem + env(safe-area-inset-bottom,0px)); }
  body:is([data-haiedu-student],[data-forest-surface]) .amp-mobile-nav { display: flex; }
  body:is([data-haiedu-student],[data-forest-surface]) .topbar { gap: 1rem; }
  body:is([data-haiedu-student],[data-forest-surface]) .topbar h1 { font-size: 1.75rem; }
  body:is([data-haiedu-student],[data-forest-surface]).amp-student-shell-active .topbar > .row > #signOutBtn { display: none; }
  body:is([data-haiedu-student],[data-forest-surface]) .student-home-welcome h2 { font-size: 1.5rem; }
  body:is([data-haiedu-student],[data-forest-surface]) .student-selection { grid-template-columns: 1fr; }
  body:is([data-haiedu-student],[data-forest-surface]) .student-next { gap: 1rem; }
  body:is([data-haiedu-student],[data-forest-surface]) .amp-subject-grid { grid-template-columns: 1fr; }
}
@media (max-width:500px) {
  body:is([data-haiedu-student],[data-forest-surface]) .topbar { align-items: flex-start; }
  body:is([data-haiedu-student],[data-forest-surface]) .student-account-link { width: 2.75rem; padding: .65rem; justify-content: center; }
  body:is([data-haiedu-student],[data-forest-surface]) .student-account-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  body:is([data-haiedu-student],[data-forest-surface]) .student-home-welcome { grid-template-columns: 1fr; gap: .5rem; padding: 1rem; }
  body:is([data-haiedu-student],[data-forest-surface]) .student-learning-art { justify-self: end; width: 8rem; max-height: 6rem; }
  body:is([data-haiedu-student],[data-forest-surface]) .student-next { grid-template-columns: 1fr; padding: 1rem; }
  body:is([data-haiedu-student],[data-forest-surface]) .student-readiness { width: 100%; grid-template-columns: auto 1fr; text-align: left; align-items: center; justify-items: start; }
  body:is([data-haiedu-student],[data-forest-surface]) .student-next .button-link { width: 100%; justify-content: center; }
  body:is([data-haiedu-student],[data-forest-surface]) .amp-subject-card { padding: 1rem; }
}
@media (prefers-reduced-motion:reduce) {
  body:is([data-haiedu-student],[data-forest-surface]) *, body:is([data-haiedu-student],[data-forest-surface]) *::before, body:is([data-haiedu-student],[data-forest-surface]) *::after {
    animation: none !important; transition: none !important; scroll-behavior: auto !important;
  }
}

/* Subject-aware artwork is decorative; curriculum labels remain live text. */
.student-subject-art { display:block; flex:0 0 auto; width:10rem; height:6.125rem; max-width:100%; color:var(--student-accent,#285b45); }
.student-course-subject-art { display:block; margin-bottom:1rem; }
