/* Goaziro Education additions to the shared learning-workspace palette. */
.workspace.education .brand strong {
  color: var(--workspace-primary);
}
.workspace.education .portal-links {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}
.workspace.education .portal-links a {
  color: var(--workspace-label);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.workspace.education .portal-links a:hover {
  color: var(--workspace-primary);
}
.workspace.education .education-home {
  max-width: 1240px;
  padding-top: 44px;
}
.education-home .page-heading {
  max-width: 760px;
  margin-bottom: 28px;
}
.education-home .page-heading h1 {
  font-size: clamp(30px, 3vw, 42px);
}
.workspace.education .preview-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--workspace-lavender);
  border: 1px solid var(--workspace-tint-border);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 28px;
  color: var(--workspace-label);
  font-size: 14px;
}
.workspace.education .preview-note p {
  margin: 0;
}
.workspace.education .preview-note strong {
  color: var(--workspace-primary-hover);
}
.education-section {
  margin: 36px 0;
  scroll-margin-top: 96px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 20px;
}
.section-heading h2 {
  margin: 0 0 6px;
  font-size: 24px;
}
.section-heading p {
  margin: 0;
  color: var(--workspace-muted);
  font-size: 15px;
}
.stream-grid,
.medical-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.stream-card,
.medical-card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--workspace-border);
  border-radius: 10px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: start;
}
.stream-card {
  border-top: 3px solid var(--workspace-primary);
}
.stream-card.biology {
  border-top-color: var(--workspace-teal);
}
.workspace.education .subject-symbol {
  width: 48px;
  height: 48px;
  padding: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--workspace-lavender);
  color: var(--workspace-primary-hover);
  border-radius: 10px;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.workspace.education .subject-symbol.biology,
.workspace.education .subject-symbol.chemistry {
  background: var(--workspace-mint);
  color: var(--workspace-teal-text);
}
.workspace.education .subject-symbol.physics {
  background: var(--workspace-peach);
  color: #9b4e38;
}
.workspace.education svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.workspace.education .stream-card h3,
.workspace.education .medical-card h3 {
  font-size: 23px;
  margin: 0 0 10px;
}
.stream-card > p,
.medical-card > p {
  color: var(--workspace-muted);
  margin: 0 0 20px;
}
.subject-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.subject-tags li {
  border: 1px solid var(--workspace-border);
  border-radius: 5px;
  padding: 5px 10px;
  font-size: 13px;
  color: var(--workspace-label);
  background: var(--workspace-subtle);
}
.stream-card .dl-btn,
.medical-card .dl-btn {
  margin-top: auto;
}
.workspace.education .sample-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #f2ddb7;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}
.workspace.education .available-badge {
  background: var(--workspace-mint);
  color: var(--workspace-teal-text);
  border: 1px solid #b8d9ce;
}
.medical-card .sample-badge {
  margin-bottom: 16px;
}
.portal-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--workspace-border);
  color: var(--workspace-muted);
  font-size: 13px;
}
.portal-footer a {
  text-decoration: none;
}
.workspace.education .stream-picker {
  margin: 0 8px 24px;
}
.stream-picker label {
  display: block;
  margin-bottom: 8px;
}
.workspace.education .stream-picker select {
  width: 100%;
  font-size: 13px;
  padding: 9px;
}
.education-sidebar-intro {
  display: flex;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid var(--workspace-border);
  padding: 0 12px 18px;
  margin-bottom: 20px;
}
.education-sidebar-intro svg {
  color: var(--workspace-primary);
}
.education-sidebar-intro strong {
  display: block;
  font-size: 14px;
}
.education-sidebar-intro small {
  font-size: 12px;
  color: var(--workspace-muted);
}
.workspace.education .nav-group a {
  display: flex;
  align-items: center;
  gap: 10px;
}
.workspace.education .nav-group a svg {
  width: 18px;
  height: 18px;
}
.workspace.education .nav-bottom {
  margin-top: 24px;
}
.workspace.education .preview-note.compact {
  font-size: 13px;
  margin-bottom: 24px;
}
.workspace.education .preview-note.compact button {
  padding: 0;
  border: 0;
  min-height: 24px;
  background: none;
  color: var(--workspace-primary-hover);
  font-size: 13px;
  text-decoration: underline;
}
.workspace.education .stream-caption {
  font-size: 13px;
  margin: 8px 0 0;
  color: var(--workspace-muted);
}
.workspace.education .stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--workspace-border);
  padding: 20px;
  border-radius: 8px;
}
.stat-card .stat-label {
  color: var(--workspace-muted);
  font-size: 13px;
  margin-bottom: 8px;
}
.stat-card strong {
  display: block;
  color: var(--workspace-ink);
  font-size: 25px;
  font-weight: 700;
}
.stat-card small {
  display: block;
  margin-top: 6px;
  color: var(--workspace-muted);
  font-size: 12px;
}
.workspace.education .dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
  gap: 24px;
  align-items: start;
}
.workspace.education .subject-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.subject-card {
  background: #fff;
  border: 1px solid var(--workspace-border);
  border-radius: 8px;
  padding: 22px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: start;
}
.workspace.education .subject-card h2 {
  font-size: 19px;
  margin: 0 0 8px;
}
.subject-card p {
  font-size: 14px;
  color: var(--workspace-muted);
  flex: 1;
}
.workspace.education .subject-card .sample-badge {
  margin-bottom: 16px;
}
.subject-card .section-actions {
  margin-bottom: 0;
}
.workspace.education .subject-card .dl-btn {
  font-size: 14px;
  padding: 9px 14px;
}
.workspace.education .quick-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.quick-list a {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  border: 1px solid var(--workspace-border);
  border-radius: 6px;
  padding: 14px;
  background: #fff;
  color: var(--workspace-label);
  font-size: 14px;
  font-weight: 600;
}
.quick-list a:hover {
  border-color: var(--workspace-active-border);
  background: var(--workspace-subtle);
}
.quick-list svg {
  color: var(--workspace-primary);
}
.workspace.education .content-section {
  margin-top: 28px;
}
.workspace.education .section-heading .text-link {
  white-space: nowrap;
  font-size: 14px;
}
.workspace.education .wide-card {
  max-width: 880px;
}
.topic-list {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.topic-row {
  padding: 16px;
  border: 1px solid var(--workspace-border);
  border-radius: 6px;
  background: var(--workspace-subtle);
  display: flex;
  align-items: center;
  gap: 14px;
}
.topic-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--workspace-lavender);
  color: var(--workspace-primary-hover);
  font-size: 13px;
  font-weight: 700;
  border-radius: 6px;
  flex-shrink: 0;
}
.topic-row div {
  flex: 1;
  min-width: 0;
}
.topic-row strong {
  display: block;
  font-size: 15px;
}
.topic-row small {
  color: var(--workspace-muted);
  font-size: 13px;
}
.workspace.education .sample-note {
  color: var(--workspace-muted);
  font-size: 13px;
  margin-top: 16px;
}
.workspace.education .format-fieldset {
  border: 1px solid var(--workspace-border);
  border-radius: 6px;
  padding: 16px;
  margin: 20px 0;
}
.workspace.education .format-fieldset legend {
  padding: 0 6px;
  font-size: 14px;
  font-weight: 650;
  color: var(--workspace-label);
}
.workspace.education .format-fieldset label {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 400;
  margin: 8px 0;
}
.workspace.education .practice-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  color: var(--workspace-muted);
  font-size: 13px;
  margin-bottom: 20px;
}
.workspace.education .question-options {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.workspace.education .question-options legend {
  font-size: 20px;
  font-weight: 650;
  line-height: 1.5;
  padding: 0;
  margin-bottom: 24px;
  color: var(--workspace-ink);
}
.workspace.education .answer-option {
  display: flex;
  align-items: start;
  gap: 12px;
  padding: 14px 16px;
  margin: 12px 0;
  border: 1px solid var(--workspace-control-border);
  border-radius: 6px;
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  background: #fff;
}
.workspace.education .answer-option input {
  margin-top: 3px;
}
.workspace.education .answer-option:has(input:checked) {
  background: var(--workspace-lavender);
  border-color: var(--workspace-primary);
}
.workspace.education .feedback {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid #b8d9ce;
  border-radius: 8px;
  background: var(--workspace-mint);
  color: #14554f;
}
.workspace.education .feedback.review {
  background: var(--workspace-peach);
  border-color: #e9cbbc;
  color: #7b4532;
}
.workspace.education .feedback h2 {
  font-size: 18px;
  color: inherit;
  margin-bottom: 10px;
}
.workspace.education .feedback p:last-child {
  margin-bottom: 0;
}
.workspace.education .feedback a {
  color: var(--workspace-primary-hover);
}
.workspace.education .solution-steps {
  padding-left: 24px;
  line-height: 1.8;
}
.workspace.education .solution-steps li {
  margin-bottom: 10px;
}
.workspace.education .math-expression {
  font-size: 22px;
  font-weight: 600;
  padding: 18px;
  background: var(--workspace-subtle);
  border-radius: 6px;
}
.workspace.education .paper-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.paper-outline {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
  margin: 20px 0;
}
.paper-outline li {
  display: flex;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--workspace-border);
  border-radius: 6px;
  align-items: center;
  background: var(--workspace-subtle);
}
.paper-outline span {
  flex: 1;
}
.paper-outline small {
  color: var(--workspace-muted);
}
.workspace.education .progress-table th,
.workspace.education .progress-table td {
  vertical-align: middle;
}
.progress-status {
  display: inline-block;
  font-size: 12px;
  border-radius: 5px;
  padding: 4px 8px;
  background: var(--workspace-subtle);
  color: var(--workspace-muted);
  white-space: nowrap;
}
.progress-status.correct {
  background: var(--workspace-mint);
  color: var(--workspace-teal-text);
}
.progress-status.review {
  background: var(--workspace-peach);
  color: #7b4532;
}
.workspace.education .back-link {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  margin-bottom: 16px;
  font-size: 14px;
}
.workspace.education #page-title:focus {
  outline: none;
}
.workspace.education .nav-backdrop {
  position: fixed;
  inset: 61px 0 0;
  background: #24233955;
  z-index: 80;
  border: 0;
  border-radius: 0;
}
.workspace.education .app-topbar .sample-badge {
  margin-left: auto;
}
@media (max-width: 1150px) {
  .workspace.education .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .workspace.education .subject-grid,
  .workspace.education .paper-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .workspace.education .education-home {
    padding-top: 24px;
  }
  .workspace.education .portal-links {
    gap: 12px;
  }
  .workspace.education .portal-links a {
    font-size: 13px;
  }
  .workspace.education .portal-links .portal-home {
    display: none;
  }
  .workspace.education .portal-bar {
    flex-wrap: wrap;
  }
  .workspace.education .portal-bar .portal-links {
    width: 100%;
    margin-left: 0;
    padding-top: 4px;
  }
  .stream-grid,
  .medical-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .stream-card,
  .medical-card {
    padding: 22px;
  }
  .workspace.education .preview-note {
    padding: 14px 16px;
  }
  .workspace.education .stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .stat-card {
    padding: 12px;
  }
  .stat-card .stat-label {
    font-size: 12px;
    min-height: 36px;
  }
  .stat-card small {
    display: none;
  }
  .stat-card strong {
    font-size: 21px;
  }
  .workspace.education .subject-grid,
  .workspace.education .paper-grid {
    grid-template-columns: 1fr;
  }
  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }
  .workspace.education .app-topbar .app-name,
  .workspace.education .app-topbar > .sample-badge {
    display: none;
  }
  .workspace.education .app-topbar .brand {
    font-size: 17px;
  }
  .workspace.education .question-options legend {
    font-size: 18px;
  }
  .topic-row {
    padding: 12px;
    gap: 10px;
    align-items: start;
  }
  .workspace.education .topic-row .sample-badge {
    display: none;
  }
  .workspace.education .paper-outline li {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  .workspace.education *,
  .workspace.education *::before,
  .workspace.education *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.workspace.education .coming-soon-button:disabled {
  margin-top: auto;
  color: var(--workspace-muted);
  background: var(--workspace-subtle);
  border: 1px solid var(--workspace-control-border);
  opacity: 1;
  cursor: not-allowed;
}

/* ===== Clinic Light overrides for the Education portal ===== */
.workspace.education.cl-shell .education-home { padding-top: 26px; max-width: 1240px; }
.cl-hero h1 { color: #fff; font-size: clamp(28px, 3vw, 40px); line-height: 1.12; margin: 8px 0 10px; letter-spacing: -.035em; }
.cl-shell .education-section { margin-top: 34px; }
.cl-shell .section-heading h2 { font-size: 22px; letter-spacing: -.02em; }
.cl-shell .sample-badge { border-radius: 99px; font-weight: 700; font-size: 12px; padding: 4px 12px; }
.cl-shell .medical-grid, .cl-shell .stream-grid { gap: 18px; }
.cl-shell .medical-card, .cl-shell .stream-card { border-radius: var(--ui-radius); border: 1px solid var(--ui-line); box-shadow: var(--ui-shadow); padding: 24px; background: #fff; transition: transform .18s, box-shadow .18s; }
.cl-shell .medical-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -14px rgb(22 33 58 / 24%); }
.cl-shell .stream-card { border-top: 1px solid var(--ui-line); }
.cl-shell .medical-card .card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cl-shell .medical-card .app-symbol { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-weight: 700; font-size: 15px; color: #fff; background: var(--tone, var(--ui-accent)); }
.cl-shell .subject-symbol { border-radius: 14px; }
.cl-shell .subject-tags li { border-radius: 99px; background: var(--ui-accent-soft); border-color: transparent; color: var(--ui-accent-dark); font-weight: 600; }
.cl-shell .preview-note { border-radius: var(--ui-radius); background: var(--ui-accent-soft); border-color: #cfdaf8; }
.cl-shell .coming-soon-button { border-radius: var(--ui-radius-sm); }
.cl-shell .portal-footer { margin-top: 36px; }
.cl-shell .stat-card, .cl-shell .subject-card, .cl-shell .dashboard-grid > *, .cl-shell .question-card { border-radius: var(--ui-radius); box-shadow: var(--ui-shadow); border-color: var(--ui-line); }
.cl-shell .education-sidebar-intro, .cl-shell .stream-picker { margin-left: 4px; margin-right: 4px; }
.cl-shell .nav-backdrop { z-index: 110; }
@media (max-width: 860px) { .workspace.education.cl-shell .education-home { padding-top: 20px; } }
.cl-shell .medical-card .card-top { width: 100%; }

.cl-shell .portal-footer span a { color: var(--ui-accent); font-weight: 600; }
.cl-shell .portal-footer > span:last-child { display: inline-flex; flex-wrap: wrap; gap: 6px; }
