/* 11+ Coach. Large tap targets, no extra fonts, no layout animation. */
.tutor-page {
  margin: 0;
  background: var(--hm-cream, #fffaf0);
  color: var(--hm-ink, #233247);
  font-family: var(--hm-font, "Nunito", "Segoe UI", sans-serif);
}
.tutor-main {
  margin: 0 auto;
  max-width: 760px;
  padding: 16px 16px 48px;
}
.tutor-card {
  background: #fff;
  border: 1px solid var(--hm-line, #dfe4f0);
  border-radius: 22px;
  padding: 18px;
  margin-bottom: 16px;
}
.tutor-kicker {
  color: var(--hm-purple, #6558e8);
  font-weight: 800;
  margin: 0 0 6px;
}
.tutor-card h1,
.tutor-card h2 {
  margin: 0 0 8px;
  line-height: 1.2;
}
.tutor-lead,
.tutor-note,
.tutor-skill {
  color: var(--hm-muted, #59677a);
  margin: 0 0 14px;
}
.tutor-skill {
  font-weight: 700;
  margin-bottom: 6px;
}
.tutor-exam {
  background: var(--hm-cream, #fffaf0);
  border-radius: 16px;
  margin-top: 0;
  padding: 12px;
}
.tutor-week-row {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: 190px minmax(0, 1fr);
}
.tutor-pie {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  margin: 0 auto;
}
.tutor-pie-swatch {
  border-radius: 50%;
  flex: 0 0 12px;
  height: 12px;
  width: 12px;
}
.tutor-exam p {
  margin: 0 0 6px;
}
.tutor-grid {
  display: grid;
  gap: 12px;
}
.tutor-search-row {
  align-items: center;
  display: flex;
  gap: 8px;
}
.tutor-search-row input {
  flex: 0 1 560px;
  max-width: 560px;
  min-width: 0;
  width: 100%;
}
.tutor-plan-row {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.tutor-plan-row h2 { margin-top: 0; }
.tutor-search-row .tutor-button {
  flex: 0 1 320px;
  width: auto;
}
.tutor-time-row {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(110px, 0.85fr) minmax(140px, 0.8fr) minmax(140px, 0.8fr) minmax(280px, 2.4fr);
}
.tutor-field label,
.tutor-days span {
  display: block;
  font-weight: 800;
  margin-bottom: 6px;
}
.tutor-field input,
.tutor-field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--hm-line, #dfe4f0);
  border-radius: 14px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}
.tutor-results,
.tutor-matches {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}
.tutor-results button,
.tutor-matches button,
.tutor-button,
.tutor-start {
  min-height: 48px;
  border-radius: 14px;
  border: 0;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-align: left;
  padding: 12px 14px;
}
.tutor-results button,
.tutor-matches button,
.tutor-button.secondary {
  background: var(--hm-purple-soft, #f1efff);
  color: var(--hm-ink, #233247);
}
.tutor-button.primary,
.tutor-start {
  background: var(--hm-purple, #6558e8);
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.tutor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.tutor-days {
  align-content: flex-start;
  border: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 4px 6px;
  margin: 0;
  min-width: 0;
  padding: 0;
}
.tutor-days legend {
  font-weight: 800;
  margin-bottom: 6px;
  padding: 0;
  width: 100%;
}
.tutor-days label {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  margin: 0;
  font-weight: 700;
  white-space: nowrap;
}
.tutor-chip {
  background: var(--hm-teal-soft, #e7f8f2);
  border-radius: 14px;
  padding: 10px 12px;
}
.tutor-profile {
  background: var(--hm-blue-soft, #eaf5ff);
  border-radius: 14px;
  padding: 12px;
}
.tutor-task {
  align-items: center;
  border-top: 1px solid var(--hm-line, #dfe4f0);
  display: flex;
  gap: 8px;
  padding-top: 10px;
  margin-top: 10px;
}
.tutor-child h1 {
  font-size: 1.8rem;
}
.tutor-child .tutor-start {
  width: 100%;
  margin-top: 8px;
}
.tutor-secondary {
  display: inline-block;
  margin-top: 12px;
  color: var(--hm-purple-dark, #493bbd);
  font-weight: 800;
}
.tutor-status {
  min-height: 1.2em;
  font-weight: 700;
}
.tutor-upsell {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f4f7ea;
  font-weight: 700;
}
.tutor-upsell a {
  color: var(--hm-purple-dark, #493bbd);
  font-weight: 800;
}
.tutor-hidden { display: none; }
@media (max-width: 720px) {
  .tutor-time-row,
  .tutor-plan-row,
  .tutor-week-row { grid-template-columns: 1fr; }
  .tutor-days { flex-wrap: wrap; }
  .tutor-search-row { align-items: stretch; flex-direction: column; }
  .tutor-search-row .tutor-button { flex-basis: auto; }
}
@media (min-width: 800px) {
  .tutor-main { padding-top: 28px; }
  .tutor-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
}

/* 11+ Profile structured optional subject fields. */
.profile-field-help {
  display: block;
  color: var(--hm-muted, #68758d);
  margin-top: 5px;
  line-height: 1.35;
}
.profile-subject-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.profile-subject-field {
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--hm-line, #dfe4f0);
  border-radius: 14px;
  background: #fff;
}
.profile-subject-field legend {
  padding: 0 4px;
  font-weight: 800;
}
.profile-subject-options {
  display: grid;
  gap: 7px;
}
.profile-subject-options label {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  font-weight: 700;
}
.profile-subject-options input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
}
.profile-other-label {
  display: block;
  margin: 12px 0 6px;
  font-weight: 800;
}
.profile-subject-field > input[type="text"],
.profile-subject-field > input:not([type]) {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--hm-line, #dfe4f0);
  border-radius: 12px;
  padding: 9px 10px;
  font: inherit;
  background: #fff;
}
@media (max-width: 900px) {
  .profile-subject-row { grid-template-columns: 1fr; }
}

/* Application-school exam readiness. Shared purple/teal/cream palette. */
.tutor-school-section { max-width: 100%; }
.tutor-section-heading,
.tutor-detail-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}
.tutor-section-heading h2 { margin-bottom: 8px; }
.tutor-manage-link,
.tutor-school-action {
  color: #493bbd;
  font-weight: 800;
  text-underline-offset: 3px;
}
.tutor-manage-link { display: inline-flex; align-items: center; min-height: 44px; }
.tutor-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--hm-line, #dfe4f0);
  border-radius: 15px;
  -webkit-overflow-scrolling: touch;
}
.tutor-readiness-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
  font-size: .91rem;
  text-align: left;
}
.tutor-readiness-table th,
.tutor-readiness-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--hm-line, #dfe4f0);
  vertical-align: middle;
}
.tutor-readiness-table th { background: #f4f1ff; white-space: nowrap; }
.tutor-readiness-table tbody tr:last-child td { border-bottom: 0; }
.tutor-readiness-table tbody tr:hover { background: #fffaf0; }
.tutor-readiness-table td:nth-child(1) { width: 21%; min-width: 140px; }
.tutor-readiness-table td:nth-child(3) { width: 21%; min-width: 160px; }
.tutor-readiness-table td:nth-child(6) { min-width: 165px; }
.tutor-school-name,
.tutor-detail-heading button {
  padding: 5px 0;
  border: 0;
  background: none;
  color: #493bbd;
  cursor: pointer;
  text-align: left;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tutor-school-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  min-height: 38px;
  background: #f0ecff;
  border: none;
  border-radius: 10px;
  text-decoration: none;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.tutor-focus-link { color: #493bbd; font-weight: 700; }
.tutor-exam-soon { color: #bd2632; font-weight: 800; }
.tutor-muted { display: block; color: #59677a; font-size: .83rem; }
.tutor-readiness { display: grid; gap: 4px; min-width: 130px; }
.tutor-readiness-track {
  height: 9px;
  background: #e5e8f0;
  border-radius: 99px;
  overflow: hidden;
}
.tutor-readiness-unavailable { background: repeating-linear-gradient(45deg,#e5e8f0,#e5e8f0 5px,#f5f5f7 5px,#f5f5f7 10px); }
.tutor-readiness-fill { height: 100%; border-radius: inherit; }
.tutor-readiness-fill.is-low { background: #c38429; }
.tutor-readiness-fill.is-mid { background: #6558e8; }
.tutor-readiness-fill.is-high { background: #128878; }
.tutor-drilldown,
.tutor-all-schools {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #dfe4f0;
  background: #fffaf0;
  border-radius: 16px;
}
.tutor-drilldown h3,
.tutor-all-schools h3 { margin: 0 0 10px; }
.tutor-all-schools { background: #fff; }
.tutor-all-schools h3:not(:first-child) { margin-top: 20px; }
.tutor-exam-profile { padding: 8px 12px; border-left: 3px solid #128878; margin-bottom: 8px; }
.tutor-fact { margin: 4px 0; }
.tutor-common-plan-list { padding-left: 20px; }
.tutor-common-plan-list li { padding: 8px 0; display: list-item; }
.tutor-common-plan-list li > span { margin-right: 12px; }
.tutor-map-legend { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.tutor-map-legend-item { border-radius: 20px; padding: 5px 10px; font-size: .81rem; font-weight: 800; }
.tutor-map-centre { background: #6558e8; color: #fff; font-weight: 800; text-align: center; padding: 12px; border-radius: 14px; max-width: 330px; margin: 12px auto; }
.tutor-map-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.tutor-map-branch { padding: 12px; background: #fff; border-radius: 12px; min-width: 0; }
.tutor-map-branch h4 { margin: 0 0 8px; }
.tutor-map-skill { padding: 9px; border-left: 5px solid transparent; margin: 6px 0; border-radius: 9px; display: grid; gap: 5px; }
.tutor-map-not_started { border-color: #acb6c5; background: #ecf0f4; color: #303b47; }
.tutor-map-needs_practice { border-color: #d49730; background: #fff0d8; color: #5f410b; }
.tutor-map-improving { border-color: #6558e8; background: #efecff; color: #352c85; }
.tutor-map-confident { border-color: #128878; background: #dff4eb; color: #075b4c; }
.tutor-map-skill-name { font-weight: 700; overflow-wrap: anywhere; }
.tutor-skill-links { display: flex; gap: 8px; flex-wrap: wrap; }
.tutor-skill-links a { color: #493bbd; font-size: .82rem; font-weight: 800; padding: 5px 0; }
.tutor-school-name:focus-visible,
.tutor-school-action:focus-visible,
.tutor-focus-link:focus-visible,
.tutor-table-scroll:focus-visible { outline: 3px solid #128878; outline-offset: 2px; }
@media (max-width: 640px) {
  .tutor-map-grid { grid-template-columns: 1fr; }
  .tutor-drilldown, .tutor-all-schools { padding: 12px; }
  .tutor-school-section { padding: 12px; }
}

/* 11+ school-skills view uses the same illustrated Learning Path design. */
.tutor-learning-path{display:block;background:linear-gradient(140deg,#e3f4dd,#f8fae8);padding:14px;border:1px solid #b3d0a7;border-radius:22px}
.tutor-learning-path .tutor-learning-stage{background:#f2d49c;border:4px solid #d6a45c;border-radius:30px;padding:16px;margin:0 0 12px}
.tutor-learning-path .tutor-learning-stage:nth-child(odd){margin-right:5%}
.tutor-learning-path .tutor-learning-stage:nth-child(even){margin-left:5%}
.tutor-learning-stage h4{color:#5e452a;text-align:center;margin:0 0 10px}
.tutor-learning-stage .tutor-map-skill{border-radius:15px}
@media(max-width:600px){.tutor-learning-path .tutor-learning-stage:nth-child(n){margin:0 0 12px}}

/* 11+ entrance skills can be selected in any order; title opens an XP preview. */
.tutor-map-skill-preview{display:block;border:0;background:transparent;text-align:left;color:inherit;font:inherit;font-weight:800;cursor:pointer;padding:5px;border-radius:8px;width:100%}
.tutor-map-skill-preview:focus-visible{outline:3px solid #128878;outline-offset:2px}
.tutor-map-skill .hm-learning-xp-preview{width:100%}
