:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  --ink: #162226;
  --muted: #587074;
  --paper: #f8fbf8;
  --line: #cbdad6;
  --teal: #256f75;
  --leaf: #4c8f55;
  --gold: #d9a441;
  --coral: #c7624b;
  --sky: #d9edf0;
  --surface: #ffffff;
  --shadow: 0 14px 32px rgba(22, 34, 38, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
}

button,
input,
select,
textarea {
  font: inherit;
}

.topbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 78px;
  padding: 14px clamp(16px, 4vw, 48px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.view-tabs {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 4px;
  padding: 4px;
}

.tab-button {
  background: transparent;
  color: var(--teal);
  min-height: 38px;
  padding: 0 12px;
}

.tab-button.active {
  background: var(--teal);
  color: #ffffff;
}

.topbar h1,
.intro h2,
.panel h2,
.quiz-panel h2 {
  line-height: 1.1;
  margin: 0;
}

.topbar h1 {
  font-size: 28px;
}

.eyebrow {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 5px;
  text-transform: uppercase;
}

.status-pill {
  background: var(--sky);
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 700;
  min-width: 96px;
  padding: 8px 12px;
  text-align: center;
}

.app-shell {
  display: grid;
  gap: 22px;
  margin: 0 auto;
  max-width: 1180px;
  padding: 26px clamp(16px, 4vw, 48px) 56px;
}

.app-view {
  display: grid;
  gap: 22px;
}

.intro {
  align-items: stretch;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.75fr);
}

.intro-copy {
  align-content: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  min-height: 230px;
  padding: clamp(22px, 4vw, 40px);
  box-shadow: var(--shadow);
}

.intro-copy h2 {
  font-size: clamp(32px, 4vw, 52px);
  max-width: 760px;
}

.intro-copy p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
  margin: 18px 0 0;
  max-width: 680px;
}

.learning-scene {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 250px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}

.learning-scene img {
  display: block;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
  width: 100%;
}

.controls,
.dashboard,
.resource-category-grid,
.lesson-grid {
  display: grid;
  gap: 14px;
}

.filter-bar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 10px;
  padding: 10px 12px;
  box-shadow: var(--shadow);
}

.filter-bar label {
  max-width: 260px;
}

.filter-bar select {
  min-height: 38px;
  max-width: 260px;
}

.controls {
  align-items: end;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  grid-template-columns: 1fr 1fr auto;
  padding: 16px;
  box-shadow: var(--shadow);
}

label {
  color: var(--muted);
  display: grid;
  font-size: 13px;
  font-weight: 700;
  gap: 7px;
}

input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  min-height: 44px;
  padding: 0 12px;
}

textarea {
  min-height: 120px;
  padding: 12px;
  resize: vertical;
}

button,
.button-link {
  align-items: center;
  background: var(--teal);
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

button:hover,
.button-link:hover {
  transform: translateY(-1px);
}

button:disabled {
  background: #aebdc0;
  cursor: not-allowed;
  transform: none;
}

.secondary-button {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--teal);
  justify-self: start;
}

.danger-button {
  background: var(--coral);
  justify-self: start;
}

.teacher-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.interface-language {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 12px;
  font-weight: 700;
  gap: 7px;
}

.interface-language select {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 38px;
  padding: 0 30px 0 10px;
}

html[lang="my"] body,
html[lang="my"] button,
html[lang="my"] input,
html[lang="my"] select,
html[lang="my"] textarea {
  font-family: "Myanmar Text", "Noto Sans Myanmar", Arial, sans-serif;
}

html[lang="my"] .intro-copy {
  align-content: center;
  gap: 10px;
}

html[lang="my"] .intro-copy .eyebrow {
  line-height: 1.7;
  margin-bottom: 6px;
}

html[lang="my"] .intro-copy h2 {
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.5;
}

html[lang="my"] .intro-copy p {
  font-size: clamp(15px, 1.45vw, 18px);
  line-height: 1.9;
  margin-top: 8px;
}

.section-heading h2,
.safety-guide h2 {
  font-size: 32px;
  line-height: 1.15;
  margin: 0;
}

.resource-center {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.resource-center h3,
.section-heading h3 {
  font-size: 28px;
  line-height: 1.15;
  margin: 0;
}

.resource-category-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.resource-category-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  padding: 16px;
}

.resource-category-card h3 {
  font-size: 22px;
  line-height: 1.2;
  margin: 0;
}

.resource-category-card p {
  color: var(--muted);
}

.path-overview,
.teaching-packs {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.resource-notice {
  align-items: center;
  background: #eef6f3;
  border: 1px solid var(--line);
  border-left: 4px solid var(--leaf);
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 15px 18px;
}

.resource-notice p {
  color: var(--muted);
  margin: 0;
}

.path-overview-grid,
.teaching-pack-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.path-heading {
  align-items: end;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.path-overview-card,
.teaching-pack-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 15px;
  text-align: left;
}

button.path-overview-card {
  align-content: start;
  justify-content: stretch;
}

button.path-overview-card:hover {
  border-color: var(--teal);
}

button.path-overview-card[aria-pressed="true"] {
  background: #eef6f3;
  border-color: var(--teal);
  box-shadow: inset 0 0 0 1px var(--teal);
}

.secondary-button.active-path-button {
  background: var(--teal);
  border-color: var(--teal);
  color: #ffffff;
}

.path-overview-card.proposed {
  background: var(--paper);
  border-style: dashed;
}

.path-overview-card span,
.teaching-pack-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.path-overview-card h3,
.path-overview-card p {
  margin: 0;
}

.path-overview-card p {
  color: var(--muted);
  font-weight: 400;
}

.resource-facts {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-top: 12px;
}

.resource-facts div {
  display: grid;
  gap: 2px;
}

.resource-facts dt {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.resource-facts dd {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.path-subjects {
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
}

.resource-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.resource-link-list a {
  background: var(--sky);
  border-radius: 6px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 9px;
  text-decoration: none;
}

.learning-summary {
  align-items: center;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(260px, 0.8fr) minmax(360px, 1.2fr);
  min-height: 0;
}

.learning-progress-summary {
  display: grid;
  gap: 10px;
}

.learning-progress-summary p,
.next-activity-summary p {
  margin: 0;
}

.next-activity-summary {
  align-items: center;
  border-left: 1px solid var(--line);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding-left: 24px;
}

.next-activity-summary button {
  min-width: 132px;
}

.mobile-path-filter {
  display: none;
}

.panel,
.lesson-card,
.quiz-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.panel p,
.lesson-card p,
.quiz-panel p {
  color: var(--muted);
  line-height: 1.5;
}

.progress-track {
  background: var(--sky);
  border-radius: 999px;
  height: 14px;
  overflow: hidden;
}

.progress-fill {
  background: var(--leaf);
  height: 100%;
  transition: width 200ms ease;
  width: 0%;
}

.kiwix-steps {
  color: var(--muted);
  display: grid;
  gap: 6px;
  margin: 12px 0 16px;
  padding-left: 20px;
}

.lesson-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lesson-card {
  display: grid;
  gap: 14px;
  min-height: 260px;
}

.lesson-actions {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.lesson-card h3 {
  font-size: 22px;
  line-height: 1.2;
  margin: 0;
}

.lesson-card-focus {
  background: #f3faf7;
  border-left: 4px solid var(--leaf);
  border-radius: 6px;
  font-size: 14px;
  margin-top: 12px;
  padding: 10px;
}

.review-badge {
  background: #fff3d8;
  border: 1px solid #e2bf6d;
  border-radius: 999px;
  color: #755300;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
  padding: 5px 9px;
}

.lesson-card.complete {
  border-color: var(--leaf);
}

.lesson-grid {
  background: transparent;
  border: 0;
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}

.learner-directory {
  display: grid;
  column-gap: 26px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  row-gap: 30px;
}

.learner-directory.focused-directory {
  grid-template-columns: minmax(0, 1fr);
}

.learner-directory-column {
  min-width: 0;
}

.learner-directory-column > header {
  align-items: baseline;
  border-bottom: 2px solid #9bc5bf;
  display: flex;
  justify-content: space-between;
  padding: 0 2px 9px;
}

.learner-directory-column > header h3 {
  font-size: 15px;
  margin: 0;
}

.learner-directory-column > header span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.learner-directory-links {
  display: grid;
}

button.learner-directory-item {
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #dce7e4;
  border-radius: 0;
  color: var(--ink);
  display: grid;
  gap: 9px;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  min-height: 58px;
  padding: 9px 2px;
  text-align: left;
  width: 100%;
}

.learner-directory-links .learner-directory-item:nth-child(odd) {
  background: #eff8f4;
}

.learner-directory-links .learner-directory-item:nth-child(even) {
  background: #f1f5fb;
}

button.learner-directory-item:hover {
  background: #e6f1ef;
  color: var(--teal);
  transform: none;
}

.learner-directory-item .lesson-state {
  flex-basis: 26px;
  height: 26px;
}

.learner-directory-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.learner-directory-copy strong {
  font-size: 12px;
  line-height: 1.3;
}

.learner-directory-copy small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.learner-open-label {
  color: var(--teal);
  font-size: 10px;
  font-weight: 800;
}

@media (max-width: 980px) {
  .learner-directory,
  .learner-directory.focused-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .learner-directory,
  .learner-directory.focused-directory { grid-template-columns: 1fr; row-gap: 22px; }
}

.lesson-topic-group {
  display: grid;
  gap: 12px;
}

.lesson-topic-heading {
  align-items: end;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 0 2px 10px;
}

.lesson-topic-heading h3 {
  font-size: 24px;
  margin: 2px 0 0;
}

.lesson-topic-heading > p {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  margin: 0;
}

.compact-lesson-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compact-lesson-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.lesson-card.compact-lesson-card {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: none;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 0;
  padding: 12px 13px;
}

.compact-lesson-card:nth-child(odd) {
  background: #f8fbfa;
}

.compact-lesson-card:nth-child(even) {
  background: #f5f8fc;
}

.compact-lesson-card.lesson-phase-foundation {
  background: #f0f8f5;
  border-color: #c5ddd5;
}

.compact-lesson-card.lesson-phase-foundation:nth-child(even) {
  background: #eaf5f1;
}

.compact-lesson-card.lesson-phase-daily {
  background: #f1f6fb;
  border-color: #c9d9e8;
}

.compact-lesson-card.lesson-phase-daily:nth-child(even) {
  background: #ebf2f9;
}

.lesson-phase-wrap {
  display: grid;
  gap: 14px;
}

.lesson-phase-group {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}

.lesson-phase-group.foundation-group { background: #f3f8f6; }
.lesson-phase-group.daily-group { background: #f3f6fa; }

.lesson-phase-group > header {
  align-items: end;
  display: flex;
  justify-content: space-between;
  padding: 0 2px 11px;
}

.lesson-phase-group > header h4 {
  font-size: 18px;
  margin: 1px 0 0;
}

.lesson-phase-group > header > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.compact-lesson-card.complete { box-shadow: inset 4px 0 0 #65a989; }

.compact-lesson-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.compact-lesson-title {
  align-items: center;
  display: flex;
  gap: 10px;
}

.compact-lesson-title h4 {
  font-size: 16px;
  line-height: 1.25;
  margin: 0;
}

.lesson-state {
  align-items: center;
  background: #e7f3f1;
  border-radius: 999px;
  color: #397c7a;
  display: inline-flex;
  flex: 0 0 30px;
  font-size: 13px;
  font-weight: 800;
  height: 30px;
  justify-content: center;
}

.compact-lesson-card > button {
  min-width: 68px;
  padding: 8px 12px;
}

.compact-lesson-card .lesson-card-meta {
  color: #6c7f82;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}

.compact-lesson-card p:not(.lesson-card-meta) {
  display: -webkit-box;
  font-size: 14px;
  line-height: 1.45;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@media (max-width: 820px) {
  .compact-lesson-list { grid-template-columns: 1fr; }
  .compact-lesson-card:last-child:nth-child(odd) { grid-column: auto; }

  .lesson-topic-heading {
    align-items: start;
    flex-direction: column;
    gap: 5px;
  }
}

@media (max-width: 520px) {
  .lesson-card.compact-lesson-card { grid-template-columns: 1fr; }
  .compact-lesson-card > button { width: 100%; }
}

.lesson-reader {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  min-height: 360px;
  padding: clamp(22px, 5vw, 42px);
  box-shadow: var(--shadow);
}

.lesson-reader h2 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
  margin: 0;
}

.lesson-reader p:not(.eyebrow),
.lesson-content li {
  color: var(--muted);
  font-size: 20px;
  line-height: 1.65;
  margin: 0;
  max-width: 760px;
}

.lesson-content {
  display: grid;
  gap: 18px;
}

.lesson-completion-actions {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  padding-top: 18px;
}

.lesson-completion-actions > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lesson-completion-actions button {
  min-width: 180px;
}

.lesson-completion-message {
  color: var(--ink);
  font-weight: 700;
}

.learner-profile-actions {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.learner-profile-actions button {
  min-height: 48px;
}

.learner-profile-message {
  align-self: center;
  color: var(--muted);
  font-size: 14px;
  grid-column: 1 / -1;
  margin: 0;
}

.home-plan-details {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
  padding-top: 16px;
}

.home-plan-details > div {
  display: grid;
  gap: 6px;
}

.home-plan-details ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
}

.home-path-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 700px) {
  .learner-profile-actions,
  .home-path-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .learner-profile-actions button,
  .home-path-actions button {
    width: 100%;
  }
}

#completeCurrentLesson:disabled {
  background: #e5f4ed;
  color: #287653;
  cursor: default;
  opacity: 1;
}

@media (max-width: 560px) {
  .lesson-completion-actions button { width: 100%; }
}

.real-life-use,
.final-task {
  background: linear-gradient(90deg, #effcf4, #eef5ff);
  border-left: 4px solid #65a989;
  border-radius: 12px;
  padding: 16px;
}

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

.vocabulary-grid div {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
}

.vocabulary-grid dt { color: var(--ink); font-weight: 800; }
.vocabulary-grid dd { color: var(--muted); margin: 4px 0 0; }

.phrase-list { display: grid; gap: 8px; }
.phrase-list p,
.lesson-dialogue p { margin: 0; }

.phrase-list p {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-weight: 700;
  padding: 11px 14px;
}

.lesson-dialogue {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 10px;
  padding: 16px;
}

.worked-example-list {
  display: grid;
  gap: 10px;
}

.worked-example-list article {
  background: #f5faf9;
  border: 1px solid var(--line);
  border-left: 4px solid #94b9ff;
  border-radius: 10px;
  padding: 14px 16px;
}

.lesson-resource-guide {
  background: var(--sky);
  border-left: 4px solid var(--teal);
}

.lesson-resource-guide h3 {
  margin: 0 0 0.45rem;
}

.resource-guide-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.resource-guide-links .button-link {
  width: auto;
}

.worked-example-list h3 {
  font-size: 17px;
  margin: 0 0 4px;
}

.exercise-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 14px 0 0;
  padding: 16px;
}

.exercise-card legend { color: var(--ink); font-weight: 800; padding: 0 6px; }
.exercise-options { display: grid; gap: 8px; margin-top: 8px; }

.exercise-options button {
  background: var(--paper);
  border-color: var(--line);
  color: var(--ink);
  text-align: left;
}

.exercise-options button:hover { background: #eef8f6; }
.exercise-options .correct-answer { background: #e5f7eb; border-color: #65a989; }
.exercise-options .incorrect-answer { background: #fff0ed; border-color: #d46c59; }

.exercise-feedback {
  font-weight: 700;
  margin: 10px 0 0;
  min-height: 24px;
}

.exercise-feedback.correct { color: #287653; }
.exercise-feedback.incorrect { color: #a94c3e; }

@media (max-width: 620px) {
  .vocabulary-grid { grid-template-columns: 1fr; }
}

.lesson-block {
  display: grid;
  gap: 8px;
}

.lesson-content ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 24px;
}

.lesson-sources {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.lesson-sources ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.lesson-sources a {
  color: var(--teal);
  font-weight: 700;
}

.is-hidden {
  display: none;
}

.quiz-panel {
  display: grid;
  gap: 14px;
}

.quiz-options {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quiz-option {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  min-height: 58px;
}

.quiz-option.correct {
  background: #e2f3e0;
  border-color: var(--leaf);
}

.quiz-option.incorrect {
  background: #f7e4df;
  border-color: var(--coral);
}

.quiz-result {
  font-weight: 700;
  margin: 0;
}

@media (max-width: 820px) {
  .intro,
  .controls,
  .dashboard,
  .lesson-grid,
  .quiz-options {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    gap: 12px;
    flex-direction: column;
  }

  .topbar-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .view-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar-actions .secondary-button,
  .status-pill {
    flex: 1;
  }
}
.lesson-card-meta,
.lesson-meta {
  color: var(--teal);
  font-size: 14px;
  font-weight: 700;
  margin: 0;
}

.teacher-note {
  background: var(--sky);
  border-radius: 8px;
  padding: 16px;
}

.teacher-view {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 18px;
  padding: clamp(22px, 5vw, 42px);
  box-shadow: var(--shadow);
}

.teacher-view h2 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1;
  margin: 0;
}

.teacher-view p {
  color: var(--muted);
  line-height: 1.55;
}

.teacher-summary {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.batch-context {
  color: var(--muted);
  font-size: 14px;
  margin: -4px 0 18px;
}

.batch-context strong {
  color: var(--teal);
}

.batch-manager {
  background: #f3faf7;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  padding: 18px;
}

.batch-manager h3 {
  font-size: 26px;
  line-height: 1.15;
  margin: 0;
}

.batch-manager p {
  margin: 0;
}

.batch-controls {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr) minmax(150px, 0.6fr) auto;
}

.batch-controls button {
  min-height: 48px;
}

.batch-actions,
.batch-edit-controls {
  align-items: end;
  display: flex;
  gap: 8px;
}

.batch-actions button {
  padding-inline: 16px;
}

.batch-edit-controls {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}

.batch-edit-controls[hidden] {
  display: none;
}

.batch-edit-controls label {
  flex: 1;
}

.batch-edit-controls button {
  min-height: 48px;
}

.batch-message {
  color: var(--teal) !important;
  font-size: 14px;
  font-weight: 700;
  min-height: 21px;
}

.home-learning {
  display: grid;
  gap: 18px;
}

.home-profile {
  align-items: end;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(160px, 0.75fr) minmax(180px, 1fr) minmax(150px, 0.55fr) auto;
  padding: 18px;
}

.home-profile button {
  min-height: 48px;
}

.home-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-profile .profile-message {
  grid-column: 1 / -1;
  margin: 0;
}

.home-current-plan {
  background: #e8f3ef;
  border-left: 4px solid var(--leaf);
  display: grid;
  gap: 6px;
  padding: 16px;
  scroll-margin-top: 104px;
}

.home-current-plan h3,
.home-current-plan p {
  margin: 0;
}

.home-path-grid {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr);
}

.home-path-card {
  align-self: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  padding: 18px;
}

#homeCurrentPlanDetails {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.home-session-heading {
  align-items: baseline;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.home-session-heading span {
  color: var(--muted);
  font-size: 14px;
}

.home-session-steps {
  display: grid;
  gap: 8px;
}

.home-session-step {
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #c8dcdf;
  color: var(--text);
  display: grid;
  font-weight: 600;
  gap: 10px;
  grid-template-columns: 30px 1fr;
  min-height: 48px;
  padding: 8px 12px;
  text-align: left;
  width: 100%;
}

.home-session-step > span:first-child {
  align-items: center;
  background: #e4f3ee;
  border-radius: 50%;
  display: flex;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.home-session-step.complete {
  background: #edf8f2;
  color: #35675d;
}

.home-session-step.complete > span:last-child {
  text-decoration: line-through;
}

.home-session-reset {
  justify-self: start;
}

.home-plan-empty {
  color: var(--muted);
}

.home-resource-guide {
  align-items: center;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid #c8dcdf;
  display: grid;
  gap: 6px 16px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px;
}

.home-resource-guide strong,
.home-resource-guide p {
  grid-column: 1;
}

.home-resource-guide button {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.family-textbook-banner {
  align-items: center;
  background: linear-gradient(90deg, #edf8f2, #edf3ff);
  border: 1px solid #c8dcdf;
  border-left: 5px solid #75aaa5;
  border-radius: 16px;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 20px;
}

.family-textbook-banner h3,
.family-textbook-banner p {
  margin: 0;
}

.family-textbook-banner h3 {
  font-size: 24px;
  margin-bottom: 6px;
}

.family-guide {
  border-top: 2px solid #75aaa5;
  display: grid;
  gap: 18px;
  padding-top: 22px;
}

.family-guide-heading h3,
.family-guide-heading p {
  margin: 0;
}

.family-guide-heading h3 {
  font-size: 28px;
  margin-bottom: 8px;
}

.family-guide-steps {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.family-guide-steps article {
  align-items: start;
  background: #fff;
  border: 1px solid #c8dcdf;
  border-radius: 12px;
  display: grid;
  gap: 12px;
  grid-template-columns: 34px 1fr;
  padding: 16px;
}

.family-guide-steps article > span {
  align-items: center;
  background: #e4f3ee;
  border-radius: 50%;
  display: flex;
  font-weight: 800;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.family-guide-steps p {
  color: var(--muted);
  margin: 5px 0 0;
}

@media (max-width: 700px) {
  .home-profile-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .home-profile-actions button {
    width: 100%;
  }

  .family-textbook-banner,
  .home-resource-guide,
  .family-guide-steps {
    grid-template-columns: 1fr;
  }

  .home-resource-guide button,
  .home-resource-guide strong,
  .home-resource-guide p {
    grid-column: 1;
    grid-row: auto;
  }
}

.home-path-card.current {
  border-color: var(--leaf);
  box-shadow: inset 4px 0 0 var(--leaf);
}

.home-path-card h3 {
  font-size: 24px;
  margin: 0 0 8px;
}

.home-path-card p {
  color: var(--muted);
  margin: 0;
}

.home-routine {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 4px;
  padding-top: 12px;
}

.summary-tile {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.summary-tile strong {
  color: var(--teal);
  display: block;
  font-size: 34px;
  line-height: 1;
}

.safety-guide {
  background: #f3faf7;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  padding: 18px;
}

.safety-guide h3 {
  font-size: 28px;
  line-height: 1.15;
  margin: 0;
}

.safety-guide p {
  margin: 0;
}

.guide-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.guide-grid ul {
  color: var(--muted);
  margin: 0;
  padding-left: 18px;
}

.guide-grid li + li {
  margin-top: 6px;
}

.offline-guide {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  padding: 18px;
}

.offline-guide h3 {
  font-size: 28px;
  line-height: 1.15;
  margin: 0;
}

.offline-guide p {
  margin: 0;
}

.offline-note {
  background: #fff3d8;
  border: 1px solid #e2bf6d;
  border-radius: 8px;
  color: #755300;
  padding: 12px;
}

.download-guide {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  padding-top: 14px;
}

.download-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.download-grid article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.download-grid h4 {
  font-size: 17px;
  margin: 0;
}

.download-grid a {
  color: var(--teal);
  font-weight: 700;
}

.textbook-guide {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  padding-top: 14px;
}

.textbook-guide h3 {
  font-size: 24px;
  line-height: 1.15;
  margin: 0;
}

.textbook-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.textbook-links a {
  background: var(--sky);
  border-radius: 6px;
  color: var(--teal);
  font-weight: 700;
  padding: 10px 12px;
  text-decoration: none;
}

.file-picker {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.file-picker input {
  background: var(--surface);
  min-height: 42px;
  padding: 8px;
}

.teaching-file,
.class-notebook {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  padding: 18px;
}

.teaching-file h3,
.class-notebook h3 {
  font-size: 28px;
  line-height: 1.15;
  margin: 0;
}

.teaching-file p,
.class-notebook p {
  margin: 0;
}

.teaching-file-actions {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.file-viewer {
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  min-height: min(72vh, 620px);
  overflow: hidden;
}

.file-viewer.empty {
  justify-items: center;
  padding: 24px;
  text-align: center;
}

.file-viewer object,
.file-viewer img {
  border: 0;
  display: block;
  height: min(72vh, 620px);
  object-fit: contain;
  width: 100%;
}

.file-viewer:fullscreen {
  background: #111817;
  border: 0;
  border-radius: 0;
  height: 100vh;
  padding: 16px;
  width: 100vw;
}

.file-viewer:fullscreen object,
.file-viewer:fullscreen img {
  height: calc(100vh - 32px);
  max-height: none;
}

.offline-materials {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  padding-top: 16px;
}

.offline-materials h4 {
  font-size: 22px;
  margin: 0;
}

.offline-material-list {
  display: grid;
  gap: 10px;
}

.offline-material-item {
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 14px;
}

.offline-material-item h5 {
  font-size: 16px;
  margin: 0 0 4px;
  overflow-wrap: anywhere;
}

.offline-material-item p {
  color: var(--muted);
  font-size: 14px;
}

.material-actions {
  display: flex;
  gap: 8px;
}

.notebook-form {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.35fr);
}

.note-field,
.notebook-form button {
  grid-column: 1 / -1;
}

.note-list {
  display: grid;
  gap: 10px;
}

.empty-note {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  padding: 14px;
}

.saved-note {
  align-items: start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 14px;
}

.saved-note h4 {
  font-size: 18px;
  margin: 0 0 4px;
}

.saved-note strong {
  color: var(--teal);
  display: block;
  margin-bottom: 8px;
}

.textbook-status {
  color: var(--muted);
  font-size: 14px;
}

.setup-checklist {
  counter-reset: setup;
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.setup-checklist li {
  align-items: start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  display: grid;
  gap: 10px;
  grid-template-columns: 34px minmax(0, 1fr);
  padding: 12px;
}

.setup-checklist li::before {
  align-items: center;
  background: var(--sky);
  border-radius: 999px;
  color: var(--teal);
  content: counter(setup);
  counter-increment: setup;
  display: grid;
  font-weight: 700;
  height: 28px;
  justify-items: center;
  width: 28px;
}

.teacher-guide-list {
  display: grid;
  column-gap: 26px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  row-gap: 30px;
}

.suggested-teaching {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
  padding-top: 18px;
}

.suggested-teaching h3,
.suggested-teaching p {
  margin: 0;
}

.suggested-teaching h3 {
  font-size: 28px;
}

.teacher-activity-column {
  min-width: 0;
}

.teacher-activity-column > header {
  align-items: baseline;
  border-bottom: 2px solid #9bc5bf;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1px;
  padding: 0 2px 9px;
}

.teacher-activity-column > header h4 {
  font-size: 15px;
  margin: 0;
}

.teacher-activity-column > header span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.teacher-activity-links {
  display: grid;
}

.teacher-activity-item {
  border-bottom: 1px solid #dce7e4;
}

.teacher-activity-item summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  font-size: 12px;
  font-weight: 650;
  gap: 8px;
  justify-content: space-between;
  list-style: none;
  padding: 9px 2px;
}

@media (max-width: 980px) {
  .teacher-guide-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .teacher-guide-list { grid-template-columns: 1fr; row-gap: 22px; }
}

.teacher-activity-item summary::-webkit-details-marker { display: none; }
.teacher-activity-item summary:hover { color: var(--teal); }

.activity-state {
  align-items: center;
  background: #edf5f3;
  border-radius: 999px;
  color: #4f7e79;
  display: inline-flex;
  flex: 0 0 22px;
  font-size: 12px;
  height: 22px;
  justify-content: center;
}

.teacher-activity-item.complete .activity-state {
  background: #dcefe5;
  color: #347058;
}

.teacher-activity-detail {
  background: #f7faf9;
  border-radius: 8px;
  display: grid;
  gap: 9px;
  margin-bottom: 9px;
  padding: 11px;
}

.teacher-activity-detail p { font-size: 12px; margin: 0; }
.teacher-activity-detail .teacher-activity-meta { color: var(--teal); font-weight: 700; }
.teacher-activity-detail > button { font-size: 12px; justify-self: start; padding: 8px 10px; }

.teacher-resources {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
}

.teacher-resource-list {
  display: grid;
  gap: 8px;
}

.teacher-resource-list a {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 3px;
  padding: 10px;
  text-decoration: none;
}

.teacher-resource-list a:hover {
  border-color: var(--teal);
}

.teacher-resource-list span {
  background: transparent;
  border-radius: 0;
  color: var(--muted);
  font-size: 12px;
  padding: 0;
}

@media (max-width: 1040px) {
  .resource-category-grid,
  .lesson-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .batch-controls,
  .batch-edit-controls,
  .home-profile,
  .teacher-summary,
  .path-overview-grid,
  .teaching-pack-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .teacher-summary,
  .batch-controls,
  .batch-edit-controls,
  .home-profile,
  .home-path-grid,
  .guide-grid,
  .download-grid,
  .resource-category-grid,
  .teacher-guide-card,
  .notebook-form,
  .saved-note,
  .offline-material-item {
    grid-template-columns: 1fr;
  }

  .batch-edit-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .resource-notice {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .learning-summary,
  .next-activity-summary {
    grid-template-columns: 1fr;
  }

  .next-activity-summary {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 18px;
  }

  .path-heading {
    align-items: stretch;
    display: grid;
  }

  .mobile-path-filter {
    display: block;
  }


  .path-overview-grid,
  .teaching-pack-grid {
    grid-template-columns: 1fr;
  }

  .material-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard,
  .lesson-grid {
    grid-template-columns: 1fr;
  }
}

/*
 * Learning Courtyard
 * Architectural principles: datum, circulation, threshold, rhythm, and bays.
 */
:root {
  --architect-paper: #f4f1e9;
  --architect-plaster: #fffdf8;
  --architect-ink: #18312f;
  --architect-frame: #176b64;
  --architect-clay: #bd5b42;
  --architect-sun: #d6a93f;
  --architect-line: #b9c8c2;
}

body {
  background: var(--architect-paper);
  color: var(--architect-ink);
}

.topbar {
  background: var(--architect-plaster);
  border-bottom: 3px solid var(--architect-frame);
  box-shadow: none;
  padding-bottom: 18px;
  padding-top: 18px;
}

.brand-mark { border-radius: 0; }

.view-tabs {
  background: transparent;
  border: 1px solid var(--architect-line);
  border-radius: 0;
  gap: 0;
  padding: 0;
}

.view-tabs .tab-button {
  background: var(--architect-plaster) !important;
  border-left: 1px solid var(--architect-line);
  border-radius: 0;
  color: var(--architect-frame);
  min-width: 92px;
}

.view-tabs .tab-button:first-child { border-left: 0; }

.view-tabs .tab-button.active {
  background: var(--architect-frame) !important;
  color: white;
  position: relative;
}

.view-tabs .tab-button.active::after {
  background: var(--architect-sun);
  bottom: -7px;
  content: "";
  height: 4px;
  left: 18px;
  position: absolute;
  right: 18px;
}

.status-pill {
  background: transparent;
  border: 1px solid var(--architect-frame);
  border-radius: 0;
}

.app-shell {
  gap: 40px;
  max-width: 1200px;
}

.app-view { gap: 40px; }

.intro {
  align-items: stretch;
  gap: 0;
  grid-template-columns: 7fr 5fr;
}

.intro-copy {
  background: var(--architect-plaster);
  border-left: 9px solid var(--architect-frame);
  border-radius: 0;
  box-shadow: none;
  min-height: 390px;
  padding: 54px 58px;
  position: relative;
}

.intro-copy::after {
  background: var(--architect-clay);
  bottom: 0;
  content: "";
  height: 9px;
  left: 0;
  position: absolute;
  width: 34%;
}

.intro-copy h2 {
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1.03;
  max-width: 720px;
}

.learning-scene {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  min-height: 390px;
  position: relative;
}

.learning-scene::after {
  border: 2px solid rgba(255, 253, 248, 0.85);
  bottom: 22px;
  content: "";
  left: 22px;
  pointer-events: none;
  position: absolute;
  right: 22px;
  top: 22px;
}

.learning-scene img {
  min-height: 390px;
  object-position: center;
}

.eyebrow {
  letter-spacing: 0;
  position: relative;
}

.eyebrow::before {
  background: var(--architect-clay);
  content: "";
  display: inline-block;
  height: 3px;
  margin-right: 9px;
  vertical-align: middle;
  width: 28px;
}

.controls,
.batch-manager,
.home-profile {
  background: #e5eee9;
  border: 1px solid var(--architect-line);
  border-left: 7px solid var(--architect-frame);
  border-radius: 0;
  box-shadow: none;
}

input,
select,
textarea {
  border-color: var(--architect-line);
  border-radius: 2px;
}

button,
.button-link {
  border-radius: 2px;
}

button:not(.secondary-button):not(.danger-button):not(.learner-directory-item):not(.course-path-card):not(.path-filter-chip),
.button-link {
  background: var(--architect-frame);
}

.secondary-button {
  background: transparent;
  border: 1px solid var(--architect-frame);
  color: var(--architect-frame);
}

.danger-button { background: var(--architect-clay); }

.learning-summary {
  border-bottom: 1px solid var(--architect-line);
  border-top: 1px solid var(--architect-line);
  gap: 0;
}

.learning-progress-summary {
  border-right: 1px solid var(--architect-line);
  padding: 34px 42px 34px 0;
}

.learning-progress-summary::after { display: none; }

.next-activity-summary {
  background: var(--architect-plaster);
  border-radius: 0;
  box-shadow: none;
  padding: 34px 0 34px 42px;
}

.resource-notice {
  background: transparent;
  border: 1px solid var(--architect-line);
  border-left: 7px solid var(--architect-sun);
  border-radius: 0;
}

.path-overview,
.teaching-packs,
.suggested-teaching,
.resource-center,
.teacher-view,
.home-learning {
  box-shadow: none;
}

.path-heading,
.section-heading,
.resource-center > .section-heading,
.teacher-view > div:first-child,
.home-learning > .section-heading {
  border-top: 3px solid var(--architect-frame);
  max-width: none;
  padding-top: 22px;
}

.path-overview-grid,
.teaching-pack-grid,
.resource-category-grid {
  gap: 1px;
  background: var(--architect-line);
  border: 1px solid var(--architect-line);
}

.path-overview-card,
.teaching-pack-grid article,
.resource-category-card {
  background: var(--architect-plaster);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.path-overview-card:hover,
.resource-category-card:hover {
  box-shadow: inset 0 -5px 0 var(--architect-sun);
  transform: none;
}

.lesson-grid {
  background: var(--architect-line);
  border: 1px solid var(--architect-line);
  gap: 1px;
}

.lesson-card {
  background: var(--architect-plaster);
  border: 0;
  border-radius: 0;
}

.lesson-card.complete { box-shadow: inset 6px 0 0 var(--leaf); }

.lesson-reader,
.teaching-file {
  background: var(--architect-plaster);
  border: 1px solid var(--architect-line);
  border-radius: 0;
  box-shadow: none;
  position: relative;
}

.lesson-reader::before,
.teaching-file::before {
  background: var(--architect-frame);
  content: "";
  height: 8px;
  left: -1px;
  position: absolute;
  top: -1px;
  width: 34%;
}

.lesson-sources,
.resource-facts,
.teaching-file-actions {
  border-radius: 0;
}

.teacher-summary {
  border-color: var(--architect-frame);
}

.summary-tile {
  background: var(--architect-plaster);
  border-color: var(--architect-line);
}

.summary-tile strong { color: var(--architect-frame); }

.file-viewer {
  border-radius: 0;
}

.class-notebook {
  background: #fff4df;
  border-left-color: var(--architect-clay);
  border-radius: 0;
}

.notebook-form { border-radius: 0; }

.home-current-plan {
  background: var(--architect-frame);
  border-radius: 0;
  position: relative;
}

.home-current-plan::after {
  background: var(--architect-sun);
  content: "";
  height: 100%;
  position: absolute;
  right: 0;
  top: 0;
  width: 9px;
}

.home-path-grid {
  background: var(--architect-line);
  border: 1px solid var(--architect-line);
  gap: 1px;
}

.home-path-card {
  background: var(--architect-plaster);
  border-radius: 0;
  box-shadow: none;
}

.home-path-card.current {
  background: #e5eee9;
  box-shadow: inset 7px 0 0 var(--architect-frame);
}

.offline-guide {
  background: #e5eee9;
  border: 1px solid var(--architect-line);
  border-radius: 0;
  position: relative;
}

.offline-guide::before {
  background: var(--architect-sun);
  content: "";
  height: 8px;
  left: -1px;
  position: absolute;
  top: -1px;
  width: 25%;
}

.offline-note { border-radius: 0; }

@media (max-width: 820px) {
  .topbar { border-bottom-width: 2px; }

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

  .view-tabs .tab-button {
    border: 1px solid var(--architect-line);
    min-height: 46px;
  }

  .view-tabs .tab-button.active::after { bottom: 0; }

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

  .intro-copy {
    border-left-width: 7px;
    min-height: 0;
    padding: 40px 28px 46px;
  }

  .intro-copy h2 { font-size: 40px; }

  .learning-scene,
  .learning-scene img { min-height: 250px; }

  .controls,
  .batch-manager,
  .home-profile { border-left-width: 6px; }

  .learning-progress-summary {
    border-bottom: 1px solid var(--architect-line);
    border-right: 0;
    padding: 26px 0;
  }

  .next-activity-summary { padding: 26px 0; }

  .lesson-reader,
  .teaching-file,
  .class-notebook,
  .offline-guide { border-radius: 0; }
}

/* Canva-inspired hero silhouettes with a matching inset photo frame. */
.intro-copy {
  border-left: 6px solid #a98973;
  border-radius: 34px 34px 34px 86px;
}

.intro-copy::after {
  display: none;
}

.learning-scene,
.learning-scene img {
  border-radius: 86px 30px 86px 30px;
}

.learning-scene::after {
  border-radius: 66px 18px 66px 18px;
  bottom: 24px;
  left: 24px;
  right: 24px;
  top: 24px;
}

@media (max-width: 820px) {
  .intro-copy {
    border-left-width: 5px;
    border-radius: 26px 26px 26px 58px;
  }

  .learning-scene,
  .learning-scene img { border-radius: 58px 22px 58px 22px; }

  .learning-scene::after {
    border-radius: 42px 13px 42px 13px;
    bottom: 17px;
    left: 17px;
    right: 17px;
    top: 17px;
  }
}

/* Cool learning palette coordinated with the mint-to-sky action gradient. */
:root {
  --ink: #18383f;
  --muted: #587078;
  --paper: #f4faf8;
  --line: #c6dbd8;
  --teal: #397c7a;
  --leaf: #65a989;
  --gold: #94b9ff;
  --coral: #c96855;
  --sky: #dceef5;
  --surface: #ffffff;
  --shadow: 0 14px 34px rgba(43, 88, 92, 0.1);
  --architect-paper: #f4faf8;
  --architect-plaster: #ffffff;
  --architect-ink: #18383f;
  --architect-frame: #4d8f8a;
  --architect-clay: #c96855;
  --architect-sun: #94b9ff;
  --architect-line: #c6dbd8;
}

body { background: #f4faf8; }

.topbar { border-bottom-color: #75aaa5; }

.view-tabs .tab-button {
  background: #ffffff !important;
  border-color: #bdd5d3;
  color: #285f64;
}

.view-tabs .tab-button.active {
  background: linear-gradient(90deg, #cdffd8, #94b9ff) !important;
  border-color: #8fc4c4;
  color: #18383f;
}

.view-tabs .tab-button.active::after { background: #4d8f8a; }

.status-pill {
  border-color: #75aaa5;
  color: #285f64;
}

.intro-copy {
  background: #ffffff;
  border-left-color: #86b8b1;
}

.eyebrow::before { background: #65a989; }

.controls,
.batch-manager,
.home-profile {
  background: #e9f5f1;
  border-color: #bdd8d2;
  border-left-color: #75aaa5;
}

input,
select,
textarea {
  border-color: #bcd5d4;
  color: #18383f;
}

.secondary-button {
  border-color: #4d8f8a;
  color: #285f64;
}

.resource-notice {
  background: #f1f8ff;
  border-color: #c3dce5;
  border-left-color: #94b9ff;
}

.path-heading,
.section-heading,
.resource-center > .section-heading,
.teacher-view > div:first-child,
.home-learning > .section-heading { border-top-color: #75aaa5; }

.path-overview-card,
.lesson-card,
.resource-category-card,
.home-path-card,
.teaching-pack-grid article,
.teacher-guide-card {
  background: #ffffff;
  border-color: #c6dbd8;
  box-shadow: 0 9px 24px rgba(43, 88, 92, 0.08);
}

button.path-overview-card,
button.path-overview-card:not(.secondary-button):not(.danger-button) {
  background: #ffffff !important;
  color: #18383f;
}

button.path-overview-card:hover {
  background: #eaf7f4 !important;
  border-color: #75aaa5;
  box-shadow: 0 10px 25px rgba(43, 88, 92, 0.12);
}

button.path-overview-card[aria-pressed="true"] {
  background: #dff3ed !important;
  border-color: #4d8f8a;
  box-shadow: inset 0 0 0 2px #4d8f8a;
}

.path-overview-card h3 { color: #18383f; }
.path-overview-card p { color: #587078; }
.path-overview-card span { color: #4d7d7b; }

.path-overview-card.proposed { background: #f5f9f8; }

.learning-summary,
.teacher-summary { border-color: #bcd5d4; }

.progress-track { background: #dcebe8; }
.progress-fill { background: #65a989; }

.next-activity-summary,
.lesson-reader,
.teaching-file { background: #ffffff; }

.lesson-reader::before,
.teaching-file::before { background: #75aaa5; }

.lesson-sources,
.resource-facts,
.teaching-file-actions { background: #eaf5f2; }

.summary-tile strong { color: #397c7a; }

.class-notebook {
  background: #eef5ff;
  border-left-color: #94b9ff;
}

.home-current-plan { background: #397c7a; }
.home-current-plan::after { background: #94b9ff; }

.home-path-card.current {
  background: #e9f5f1;
  box-shadow: inset 5px 0 0 #65a989, var(--shadow);
}

.offline-guide {
  background: #e9f5f1;
  border-color: #bdd8d2;
}

.offline-guide::before { background: #94b9ff; }

.offline-note {
  background: #ffffff;
  border-left-color: #94b9ff;
  color: #59656b;
}

.review-badge {
  background: #edf3ff;
  border-color: #bfd2f7;
  color: #385a78;
}

/* Airier pastel surfaces and controls. */
button:not(.secondary-button):not(.danger-button):not(.path-overview-card):not(.learner-directory-item):not(.course-path-card):not(.path-filter-chip),
.button-link {
  background: linear-gradient(90deg, #e8ffed, #dceaff);
  border-color: #c8dcdf;
  color: #18383f;
}

button:not(.secondary-button):not(.danger-button):not(.path-overview-card):not(.learner-directory-item):not(.course-path-card):not(.path-filter-chip):hover,
.button-link:hover {
  background: linear-gradient(90deg, #dcf8e3, #cfe2ff);
  border-color: #aeced2;
}

.view-tabs .tab-button.active {
  background: linear-gradient(90deg, #e8ffed, #dceaff) !important;
  border-color: #c8dcdf;
}

.view-tabs .tab-button.active::after { background: #86b8b1; }

.controls,
.batch-manager,
.home-profile,
.offline-guide { background: #f1f8f6; }

.home-current-plan {
  background: linear-gradient(90deg, #e6f8ee, #e5efff);
  border: 1px solid #c8dcdf;
  box-shadow: 0 10px 26px rgba(43, 88, 92, 0.07);
}

.home-current-plan .eyebrow,
.home-current-plan h3,
.home-current-plan p { color: #24464d; }

.home-current-plan::after { background: #bdd5ff; }

.home-path-card.current { background: #f0f9f5; }

.class-notebook {
  background: #f6f9ff;
  border-left-color: #c3d8ff;
}

.notebook-form { background: rgba(255, 255, 255, 0.82); }

.danger-button {
  background: #f4d5cf;
  border-color: #e6b9b0;
  color: #743c33;
}

.danger-button:hover {
  background: #efc7bf;
  border-color: #dca49a;
  color: #643027;
}

/* Final component geometry: soft architectural modules and balanced bays. */
.topbar {
  padding: 14px clamp(18px, 5vw, 72px);
}

.brand-lockup {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  flex: 0 0 auto;
  height: 46px;
  width: 46px;
}

.brand-lockup h1 {
  font-size: 24px;
  white-space: nowrap;
}

.topbar-actions { gap: 16px; }

.view-tabs {
  border-radius: 12px;
  gap: 2px;
  overflow: hidden;
}

.view-tabs .tab-button,
.status-pill,
input,
select,
textarea,
button,
.button-link { border-radius: 10px; }

.intro { gap: 18px; }

.intro-copy { box-shadow: var(--shadow); }

.learning-scene { box-shadow: var(--shadow); }

.controls,
.batch-manager,
.home-profile { border-radius: 16px; }

.next-activity-summary {
  border-radius: 16px;
  padding-left: 34px;
  padding-right: 34px;
}

.resource-notice { border-radius: 14px; }

.path-overview-grid {
  background: transparent;
  border: 0;
  gap: 16px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.path-overview-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  grid-column: span 2;
}

.path-overview-card:nth-child(4),
.path-overview-card:nth-child(5) { grid-column: span 3; }

.lesson-grid,
.resource-category-grid,
.home-path-grid,
.teaching-pack-grid {
  background: transparent;
  border: 0;
  gap: 16px;
}

.lesson-card,
.resource-category-card,
.home-path-card,
.teaching-pack-grid article,
.teacher-guide-card,
.class-notebook { border-radius: 16px; }

.lesson-reader,
.teaching-file,
.offline-guide { border-radius: 18px; }

.lesson-reader::before,
.teaching-file::before,
.offline-guide::before { border-radius: 18px 0 8px 0; }

.lesson-sources,
.resource-facts,
.teaching-file-actions,
.file-viewer,
.notebook-form { border-radius: 12px; }

.home-current-plan { border-radius: 16px; }
.home-current-plan::after { border-radius: 0 16px 16px 0; }
.offline-note { border-radius: 10px; }

@media (max-width: 820px) {
  .topbar {
    align-items: stretch;
    padding: 14px 18px 16px;
  }

  .brand-mark {
    height: 40px;
    width: 40px;
  }

  .brand-lockup h1 {
    font-size: 20px;
    white-space: normal;
  }

  .view-tabs {
    gap: 5px;
    overflow: visible;
  }

  .intro { gap: 14px; }

  .path-overview-grid { grid-template-columns: 1fr; }

  .path-overview-card,
  .path-overview-card:nth-child(4),
  .path-overview-card:nth-child(5) { grid-column: auto; }

  .next-activity-summary { padding: 26px 20px; }
}

/* Course browser: image-led path discovery with compact subject filters. */
.course-path-browser {
  background: #ffffff;
  border: 1px solid #bfd8d6;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(43, 88, 92, 0.08);
  overflow: hidden;
}

.course-browser-header {
  background: #eaf5f5;
  border-bottom: 1px solid #bfd8d6;
  padding: clamp(24px, 4vw, 44px);
}

.course-browser-header h2 {
  font-size: clamp(30px, 4vw, 48px);
  margin: 4px 0 10px;
}

.course-browser-header > p:last-of-type {
  color: #4f6870;
  margin: 0;
  max-width: 720px;
}

.path-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

button.path-filter-chip {
  background: #ffffff;
  border: 1px solid #a9cbca;
  border-radius: 8px;
  color: #18383f;
  min-height: 42px;
  padding: 9px 18px;
}

button.path-filter-chip:hover {
  background: #f5fbfa;
  border-color: #6fa7a4;
}

button.path-filter-chip.active-path-button {
  background: #d8ece9;
  border-color: #4d8f8a;
  box-shadow: inset 0 0 0 1px #4d8f8a;
}

.course-path-content {
  padding: clamp(22px, 3.5vw, 40px);
}

.course-path-heading {
  align-items: end;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.course-path-heading h3 {
  font-size: 25px;
  margin: 3px 0 0;
}

.course-path-heading > p {
  color: #61767c;
  font-size: 14px;
  margin: 0;
  text-align: right;
}

.course-path-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

button.course-path-card {
  background: #ffffff;
  border: 1px solid #c4d9d8;
  border-radius: 8px;
  color: #18383f;
  display: grid;
  min-height: 100%;
  overflow: hidden;
  padding: 0;
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

button.course-path-card:hover {
  background: #ffffff;
  border-color: #6fa7a4;
  box-shadow: 0 12px 28px rgba(43, 88, 92, 0.14);
  transform: translateY(-2px);
}

button.course-path-card[aria-pressed="true"] {
  border-color: #3f8883;
  box-shadow: inset 0 0 0 2px #3f8883, 0 10px 24px rgba(43, 88, 92, 0.12);
}

.course-path-card > img {
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  width: 100%;
}

.course-path-body {
  align-content: start;
  display: grid;
  gap: 7px;
  padding: 17px 18px 18px;
}

.course-path-body small {
  color: #547378;
  font-size: 12px;
  font-weight: 700;
}

.course-path-body strong {
  color: #17383f;
  font-size: 19px;
  line-height: 1.25;
}

.course-path-body > span {
  color: #5c7177;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
}

.course-path-body b {
  color: #2f7775;
  font-size: 13px;
  margin-top: 3px;
}

.planned-paths {
  border-top: 1px solid #d3e2e1;
  margin-top: 34px;
  padding-top: 28px;
}

.course-path-heading.compact h3 { font-size: 21px; }

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

.planned-path-card {
  background: #f6faf9;
  border: 1px dashed #b9d2d0;
  border-radius: 8px;
  display: grid;
  grid-template-columns: minmax(150px, 34%) 1fr;
  overflow: hidden;
}

.planned-path-card img {
  height: 100%;
  min-height: 150px;
  object-fit: cover;
  width: 100%;
}

.planned-path-card div { padding: 17px; }
.planned-path-card span { color: #5b7d7b; font-size: 12px; font-weight: 700; }
.planned-path-card h4 { font-size: 18px; margin: 6px 0 7px; }
.planned-path-card p { color: #5c7177; font-size: 14px; line-height: 1.45; margin: 0; }

@media (max-width: 1050px) {
  .course-path-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .planned-path-card { grid-template-columns: 1fr; }
  .planned-path-card img { aspect-ratio: 16 / 7; min-height: 0; }
}

@media (max-width: 680px) {
  .course-browser-header,
  .course-path-content { padding: 20px; }

  .course-browser-header h2 { font-size: 31px; }
  .path-filter-row { gap: 7px; margin-top: 18px; }
  button.path-filter-chip { flex: 1 1 auto; padding-inline: 12px; }

  .course-path-heading {
    align-items: start;
    display: grid;
    gap: 6px;
  }

  .course-path-heading > p { text-align: left; }
  .course-path-grid,
  .planned-path-grid { grid-template-columns: 1fr; }
}

/* Learn hero: the Arakan landscape becomes the architectural underlay. */
.intro {
  border: 1px solid #b8d2d0;
  border-radius: 8px;
  display: grid;
  grid-template-columns: 1fr;
  min-height: clamp(390px, 46vw, 540px);
  overflow: hidden;
  position: relative;
}

.intro::after {
  background: rgba(14, 42, 45, 0.48);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.learning-scene {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  inset: 0;
  min-height: 100%;
  position: absolute;
}

.learning-scene::after { display: none; }

.learning-scene img {
  border-radius: 0;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center 56%;
  width: 100%;
}

.intro-copy {
  align-content: end;
  align-self: stretch;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: grid;
  max-width: 760px;
  min-height: 100%;
  padding: clamp(34px, 6vw, 76px);
  position: relative;
  z-index: 2;
}

.intro-copy::after { display: none; }

.intro-copy .eyebrow,
.intro-copy h2,
.intro-copy p {
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(5, 24, 26, 0.34);
}

.intro-copy .eyebrow::before { background: #a8d8cc; }

.intro-copy h2 {
  font-size: clamp(42px, 5.5vw, 72px);
  line-height: 1.02;
  max-width: 700px;
}

.intro-copy p {
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.55;
  margin-top: 18px;
  max-width: 650px;
}

@media (max-width: 680px) {
  .intro { min-height: 430px; }

  .intro::after { background: rgba(14, 42, 45, 0.56); }

  .intro-copy {
    align-content: end;
    padding: 30px 24px;
  }

  .intro-copy h2 { font-size: 41px; }
  .learning-scene img { object-position: 58% center; }
}

/* Teaching Desk: compact operational layout for repeated class work. */
.teacher-view {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  gap: 24px;
  padding: clamp(24px, 4vw, 48px);
}

.teacher-view > div:first-child {
  border-top-width: 2px;
  padding-top: 18px;
}

.teacher-view > div:first-child h2 {
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.06;
  max-width: 850px;
}

.teacher-view > div:first-child > p:last-child {
  font-size: 16px;
  margin-bottom: 0;
  max-width: 780px;
}

.batch-manager {
  background: #f3f8f7;
  border: 1px solid #bfd8d6;
  border-left: 5px solid #75aaa5;
  border-radius: 8px;
  gap: 18px;
  padding: 22px;
}

.batch-manager h3 { font-size: 23px; }
.batch-manager > div:first-child > p:last-child { font-size: 14px; }

.batch-controls {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.batch-controls > label:first-child { grid-column: span 7; }
.batch-controls > .batch-actions { grid-column: span 5; justify-content: flex-end; }
.batch-controls > label:nth-of-type(2) { grid-column: span 7; }
.batch-controls > label:nth-of-type(3) { grid-column: span 3; }
.batch-controls > #addBatch { grid-column: span 2; }

.batch-controls label {
  color: #4d676d;
  font-size: 13px;
}

.batch-controls input,
.batch-controls select { background: #ffffff; }

.batch-actions button,
.batch-controls > #addBatch {
  min-height: 44px;
  padding-inline: 18px;
}

.batch-message {
  min-height: 0;
  padding: 0;
}

.batch-message:empty { display: none; }

.teacher-summary {
  background: #ffffff;
  border: 1px solid #c6d9d8;
  border-radius: 8px;
  gap: 0;
  overflow: hidden;
}

.summary-tile {
  align-items: center;
  background: #ffffff;
  border: 0;
  border-right: 1px solid #d5e3e2;
  display: flex;
  justify-content: space-between;
  min-width: 0;
  padding: 15px 18px;
}

.summary-tile:last-child { border-right: 0; }

.summary-tile .eyebrow {
  font-size: 11px;
  margin: 0;
}

.summary-tile strong {
  font-size: 25px;
  line-height: 1;
}

.teaching-file {
  background: #ffffff;
  border: 1px solid #c6d9d8;
  border-radius: 8px;
  gap: 18px 24px;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.8fr);
  padding: 24px;
}

.teaching-file::before {
  border-radius: 8px 0 0 0;
  height: 6px;
  width: 26%;
}

.teaching-file > div:first-child {
  align-content: start;
  display: grid;
}

.teaching-file h3 { font-size: 25px; }

.teaching-file > div:first-child > p:last-child {
  font-size: 14px;
  max-width: 680px;
}

.teaching-file-actions {
  align-content: end;
  align-items: end;
  background: #f1f7f6;
  border: 1px solid #d1e1df;
  border-radius: 8px;
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 14px;
}

.file-picker {
  grid-column: 1 / -1;
}

.file-picker input[type="file"] {
  background: #ffffff;
  padding: 5px;
}

.file-picker input[type="file"]::file-selector-button {
  background: #e1f1ee;
  border: 1px solid #aecfca;
  border-radius: 7px;
  color: #18383f;
  font: inherit;
  font-weight: 700;
  margin-right: 10px;
  padding: 8px 12px;
}

.teaching-file-actions button {
  min-height: 42px;
  padding-inline: 10px;
}

.teaching-file > .textbook-status,
.teaching-file > .file-viewer,
.teaching-file > .offline-materials {
  grid-column: 1 / -1;
}

.teaching-file > .textbook-status {
  color: #60757b;
  font-size: 13px;
  margin-top: -6px;
}

.file-viewer.empty {
  background: #f7faf9;
  min-height: 220px;
}

@media (max-width: 1000px) {
  .batch-controls > label:first-child,
  .batch-controls > label:nth-of-type(2) { grid-column: span 8; }

  .batch-controls > .batch-actions { grid-column: span 4; }
  .batch-controls > label:nth-of-type(3) { grid-column: span 4; }
  .batch-controls > #addBatch { grid-column: span 12; }

  .teaching-file { grid-template-columns: 1fr; }
  .teaching-file-actions { grid-column: 1; }
}

@media (max-width: 680px) {
  .teacher-view { padding: 20px 0; }
  .teacher-view > div:first-child { margin-inline: 18px; }
  .teacher-view > div:first-child h2 { font-size: 36px; }

  .batch-manager,
  .teaching-file { border-left-width: 4px; border-radius: 8px; padding: 18px; }

  .batch-controls > label:first-child,
  .batch-controls > label:nth-of-type(2),
  .batch-controls > label:nth-of-type(3),
  .batch-controls > .batch-actions,
  .batch-controls > #addBatch { grid-column: 1 / -1; }

  .batch-actions { justify-content: stretch; }
  .batch-actions button { flex: 1; }

  .teacher-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary-tile:nth-child(2) { border-right: 0; }
  .summary-tile:nth-child(-n + 2) { border-bottom: 1px solid #d5e3e2; }

  .teaching-file-actions { grid-template-columns: 1fr; }
  .file-picker,
  .teaching-file-actions button { grid-column: 1; }
}

/* Resource Library: quiet two-column directory with consistent metadata. */
.resource-center {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  gap: 28px;
  padding: clamp(24px, 4vw, 48px);
}

.resource-center > .section-heading {
  border-top-width: 2px;
  padding-top: 18px;
}

.resource-center > .section-heading h2 {
  font-size: clamp(34px, 4vw, 46px);
  line-height: 1.08;
}

.resource-center > .section-heading > p:last-child {
  font-size: 16px;
  margin-bottom: 0;
  max-width: 780px;
}

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

.resource-category-card {
  align-content: start;
  background: #f7fbfa;
  border: 1px solid #c6d9d8;
  border-left: 4px solid #72aaa5;
  border-radius: 8px;
  box-shadow: none;
  display: grid;
  gap: 12px;
  min-height: 100%;
  padding: 20px;
}

.resource-category-card:nth-child(even) {
  background: #f7f9fc;
  border-left-color: #8eafe1;
}

.resource-category-card:hover {
  border-color: #8bb7b3;
  box-shadow: 0 8px 20px rgba(43, 88, 92, 0.08);
}

.resource-card-header span {
  color: #55777a;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.resource-card-header h3 {
  color: #17383f;
  font-size: 22px;
  margin-top: 5px;
}

.resource-category-card .resource-description {
  color: #506a71;
  line-height: 1.5;
  margin: 0;
}

.resource-category-card .path-subjects {
  color: #3f7474;
  font-size: 12px;
  margin: 0;
}

.resource-facts {
  background: transparent;
  border-bottom: 1px solid #d5e3e2;
  border-radius: 0;
  border-top: 1px solid #d5e3e2;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 2px 0 0;
  padding: 0;
}

.resource-facts div {
  gap: 4px;
  padding: 12px 14px 12px 0;
}

.resource-facts div + div {
  border-left: 1px solid #d5e3e2;
  padding-left: 14px;
}

.resource-facts dt {
  color: #345d62;
  font-size: 11px;
  text-transform: uppercase;
}

.resource-facts dd {
  color: #5b7177;
  font-size: 12px;
  line-height: 1.4;
}

.resource-link-list {
  align-items: center;
  display: flex;
  gap: 7px;
  margin-top: auto;
}

.resource-link-list a {
  background: #ffffff;
  border: 1px solid #a9c9c7;
  border-radius: 7px;
  color: #286c6c;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 11px;
  text-decoration: none;
}

.resource-link-list a:hover {
  background: #e9f5f2;
  border-color: #6fa7a4;
}

@media (max-width: 820px) {
  .resource-center { padding: 24px 18px; }
  .resource-category-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .resource-facts { grid-template-columns: 1fr; }

  .resource-facts div + div {
    border-left: 0;
    border-top: 1px solid #d5e3e2;
    padding-left: 0;
  }
}

/* Myanmar glyphs extend farther above and below the baseline than Latin text. */
html[lang="my"] body {
  line-height: 1.75;
}

html[lang="my"] h1,
html[lang="my"] h2,
html[lang="my"] h3,
html[lang="my"] h4,
html[lang="my"] h5,
html[lang="my"] h6 {
  line-height: 1.55;
  overflow-wrap: anywhere;
}

html[lang="my"] p,
html[lang="my"] li,
html[lang="my"] dd,
html[lang="my"] label {
  line-height: 1.75;
}

html[lang="my"] .eyebrow {
  line-height: 1.8;
  margin-bottom: 10px;
  min-height: 1.8em;
}

html[lang="my"] .section-heading,
html[lang="my"] .teacher-view > div:first-child,
html[lang="my"] .batch-manager > div:first-child,
html[lang="my"] .teaching-file > div:first-child,
html[lang="my"] .suggested-teaching,
html[lang="my"] .teaching-packs {
  row-gap: 10px;
}

html[lang="my"] .teacher-view > div:first-child h2 {
  line-height: 1.5;
}

html[lang="my"] .batch-manager h3,
html[lang="my"] .teaching-file h3,
html[lang="my"] .suggested-teaching h3 {
  line-height: 1.55;
  margin-top: 0;
}

html[lang="my"] .summary-tile {
  min-height: 66px;
}

html[lang="my"] .summary-tile .eyebrow {
  line-height: 1.65;
  margin-bottom: 0;
  min-height: 0;
}

html[lang="my"] button,
html[lang="my"] input,
html[lang="my"] select,
html[lang="my"] textarea,
html[lang="my"] .resource-link-list a {
  line-height: 1.55;
}

html[lang="my"] .teacher-activity-column > header {
  align-items: flex-start;
  min-height: 56px;
  padding-bottom: 12px;
}

html[lang="my"] .teacher-activity-column > header h4 {
  line-height: 1.65;
  padding-right: 8px;
}

html[lang="my"] .teacher-activity-item summary {
  line-height: 1.7;
  min-height: 48px;
  padding-block: 10px;
}

html[lang="my"] .teaching-pack-grid article {
  align-content: start;
  row-gap: 12px;
}

html[lang="my"] .teaching-pack-grid h4,
html[lang="my"] .teaching-pack-grid p {
  line-height: 1.7;
}
