@import url("./course-menu.css?v=20261116.1");
.teacher-navigation { color: var(--ink, #183b34); font: 14px/1.5 "PingFang SC", "Noto Sans CJK SC", sans-serif; }
.teacher-navigation .teacher-nav-home { display: block; padding: 12px 14px; margin-bottom: 8px; color: inherit; text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line, #d9ded5); }
.teacher-nav-context { margin: 0 14px 22px; color: var(--muted, #69766e); font-size: 12px; overflow-wrap: anywhere; }
.teacher-nav-group { margin-bottom: 14px; }
.teacher-nav-group-title { padding: 7px 14px; color: var(--muted, #69766e); font-size: 11px; font-weight: 600; letter-spacing: .12em; cursor: pointer; }
.teacher-navigation .teacher-nav-items { list-style: none; padding: 0; margin: 5px 0; display: grid; gap: 3px; }
.teacher-navigation .teacher-nav-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 14px 11px 25px; border-radius: 3px; border-left: 3px solid transparent; color: inherit; text-decoration: none; background: transparent; }
.teacher-navigation a.teacher-nav-link:hover { background: #e5ebe2; }
.teacher-navigation .teacher-nav-link.is-current { background: #e2eae0; border-left-color: #235449; color: #143f37; font-weight: 600; }
.teacher-nav-link[aria-disabled="true"] { opacity: .5; }
.teacher-nav-state { font-size: 10px; color: #8a6116; font-weight: 400; }
.teacher-navigation a:focus-visible, .teacher-nav-group-title:focus-visible { outline: 2px solid #8a6116; outline-offset: 2px; }

.teacher-navigation .stage-copy { display: grid; gap: 2px; }
.teacher-navigation .stage-copy b { font-size: 14px; font-weight: 500; }
.teacher-navigation .stage-copy small { font-size: 11px; color: var(--muted, #69766e); font-weight: 400; }
.teacher-navigation .is-current .stage-copy b { font-weight: 600; }

/* The shared menu uses a light selected background, including overview pages. */
.teacher-navigation .teacher-nav-link.is-current .stage-copy,
.teacher-navigation .teacher-nav-link.is-current .stage-copy b,
.teacher-navigation .teacher-nav-link.is-current .stage-copy small { color: var(--pine, #143f37); }

@media (max-width: 1099px) {
  .task-navigation > .teacher-navigation {
    display: flex;
    align-items: stretch;
    width: max-content;
    min-width: 100%;
    padding: 4px;
  }
  .task-navigation > .teacher-navigation .teacher-nav-home {
    flex: none;
    display: flex;
    align-items: center;
    min-height: 44px;
    margin: 0 4px 0 0;
    padding: 8px 11px;
    border-bottom: 0;
  }
  .task-navigation > .teacher-navigation .teacher-nav-context,
  .task-navigation > .teacher-navigation .teacher-nav-group-title { display: none; }
  .task-navigation > .teacher-navigation .teacher-nav-group { display: contents; }
  .task-navigation > .teacher-navigation .teacher-nav-items {
    flex: none;
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
  }
  .task-navigation > .teacher-navigation .teacher-nav-item { flex: none; min-width: 0; }
  .task-navigation > .teacher-navigation .teacher-nav-link {
    min-height: 44px;
    padding: 8px 11px;
    border-left: 0;
  }
  .task-navigation > .teacher-navigation .teacher-nav-link .stage-copy small,
  .task-navigation > .teacher-navigation .teacher-nav-state { display: none; }
}

/* One discoverable menu replaces clipped horizontal navigation. */
.teacher-nav-disclosure>summary{display:none;min-height:44px;padding:10px 12px;font-weight:600;cursor:pointer;overflow-wrap:anywhere}
.teacher-nav-disclosure>summary:focus-visible{outline:3px solid #8a6116;outline-offset:2px}
.teacher-nav-disclosure,.teacher-nav-content{min-width:0}
@media(max-width:1099px){
 .teacher-nav-disclosure>summary{display:list-item}
 .teacher-navigation .teacher-nav-content .teacher-nav-context{display:block;margin:10px 14px}
 .teacher-navigation .teacher-nav-content .teacher-nav-group{display:block}
 .teacher-navigation .teacher-nav-content .teacher-nav-group-title{display:block}
 .teacher-navigation .teacher-nav-content .teacher-nav-items{display:grid;gap:4px}
 .teacher-navigation .teacher-nav-content .teacher-nav-link{white-space:normal;overflow-wrap:anywhere;min-height:44px}
 .teacher-navigation .teacher-nav-content .teacher-nav-link .stage-copy small{display:block}
 .task-navigation>.teacher-navigation{display:block;width:auto;min-width:0}
 .task-navigation>.teacher-navigation .teacher-nav-group{display:block}
 .task-navigation>.teacher-navigation .teacher-nav-group-title{display:block;letter-spacing:normal}
 .task-navigation>.teacher-navigation .teacher-nav-items{display:grid}
}

/* The workspace has its own disclosure; keep its expanded menu vertical and
   bounded without pushing the current document out of view. */
@media(max-width:1099px){
 #course-navigation{min-height:0;max-height:min(240px,40vh);overflow-y:auto;overflow-x:hidden}
 #course-navigation>#task-list.teacher-navigation{display:block;width:auto;min-width:0}
 #task-list.teacher-navigation .teacher-nav-home{display:block}
 #task-list.teacher-navigation .teacher-nav-context,#task-list.teacher-navigation .teacher-nav-group-title{display:block}
 #task-list.teacher-navigation .teacher-nav-group{display:block}
 #task-list.teacher-navigation .teacher-nav-items{display:grid}
 #task-list.teacher-navigation .teacher-nav-link{white-space:normal;overflow-wrap:anywhere}
}

/* Course functions and global tools have separate, predictable homes. */
.teacher-navigation .teacher-nav-group-title {font-size:13px;letter-spacing:0;min-height:44px;box-sizing:border-box;padding:12px 14px;}
.teacher-navigation .teacher-nav-group {margin:6px 0;}
.teacher-navigation .teacher-nav-link {box-sizing:border-box;min-height:44px;padding:10px 14px;width:100%;font:inherit;text-align:left;cursor:pointer;}
.teacher-navigation button.teacher-nav-link {border:0;border-left:3px solid transparent;background:transparent;color:inherit;}
.teacher-navigation .stage-copy small {font-size:12px;}
.teacher-navigation .teacher-nav-context {margin:8px 14px 16px;font-size:14px;font-weight:600;}
.task-navigation:has(#course-nav-title) .teacher-nav-context {display:none;}
.task-navigation:has(#course-nav-title) .stage-nav-note {display:none;}
.task-navigation .stage-nav-heading {padding-bottom:12px;}
.teacher-course-meta > summary {cursor:pointer;font-size:13px;padding:10px 0;min-height:44px;box-sizing:border-box;}
.teacher-course-meta #course-meta {display:block;padding:0 0 12px;}
.teacher-nav-content {max-height:calc(100dvh - 180px);overflow:auto;overscroll-behavior:contain;}
.teacher-tools-menu {position:relative;font:14px/1.5 "PingFang SC",sans-serif;flex:none;margin:0;}
.teacher-tools-menu > summary {cursor:pointer;min-height:44px;padding:10px 12px;box-sizing:border-box;border:1px solid #cbdad3;border-radius:7px;background:#fff;color:#183b34;}
.teacher-tool-links {position:absolute;z-index:40;inset:calc(100% + 6px) 0 auto auto;min-width:188px;max-width:calc(100vw - 32px);padding:6px;background:#fff;border:1px solid #cbdad3;border-radius:7px;box-shadow:0 5px 16px #163c3017;display:grid;gap:2px;}
.teacher-tool-links a {display:flex;align-items:center;box-sizing:border-box;min-height:44px;padding:10px 12px;color:#183b34;text-decoration:none;font-size:14px;white-space:normal;}
.teacher-tool-links a:hover {background:#eff4f2;}
.teacher-tools-menu :focus-visible {outline:3px solid #568e82;outline-offset:2px;}
.teacher-course-settings {width:min(480px,calc(100vw - 32px));box-sizing:border-box;max-height:85dvh;overflow:auto;padding:24px;border:1px solid #cbdad3;border-radius:10px;background:#fff;color:#183b34;font:14px/1.6 "PingFang SC",sans-serif;}
.teacher-course-settings::backdrop {background:#183b3466;}
.teacher-course-settings h2 {margin:0 0 20px;font-size:22px;}
.teacher-course-settings label {display:grid;gap:6px;margin:16px 0;}
.teacher-course-settings input {box-sizing:border-box;min-width:0;width:100%;min-height:44px;padding:9px 12px;border:1px solid #b9ccc4;border-radius:6px;background:#fff;color:inherit;font:inherit;}
.teacher-course-settings [role=status] {font-size:13px;overflow-wrap:anywhere;}
.teacher-settings-actions {display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin:20px 0 12px;}
.teacher-settings-actions button {min-height:44px;padding:9px 12px;border:1px solid #b9ccc4;border-radius:6px;background:#f7faf9;color:#175a50;font:inherit;cursor:pointer;}
.teacher-settings-actions button[type=submit] {background:#175a50;color:white;}
.teacher-course-settings a {color:#175a50;}
.teacher-course-settings :focus-visible {outline:3px solid #568e82;outline-offset:2px;}
.teacher-course-settings button:disabled {opacity:.6;cursor:default;}
@media(max-width:1099px){.teacher-nav-content{max-height:60dvh}.teacher-tool-links{max-height:65dvh;overflow:auto;}}
.course-bar .topbar-actions {min-width:0;flex-wrap:wrap;gap:8px;}

.teacher-navigation .teacher-nav-group-title {
  min-height: 0;
  margin: 12px 14px 3px;
  padding: 0;
  color: var(--mist-muted, #526b65);
  cursor: default;
}
.teacher-course-settings-button {
  box-sizing: border-box;
  min-height: 44px;
  padding: 8px 12px;
  color: var(--mist-primary, #175a50);
  background: transparent;
  border: 0;
  border-radius: 6px;
  font: inherit;
  white-space: nowrap;
  cursor: pointer;
}
.journey-bar, .evaluation-bar { flex-wrap: wrap; }


.teacher-workbench-links {
  display: grid;
  gap: 2px;
  margin: 12px 0 0;
  padding: 8px 0 0;
  border-top: 1px solid var(--mist-border, #cbdad3);
}
.teacher-workbench-links a {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 44px;
  padding: 8px 14px;
  color: var(--mist-primary, #175a50);
  text-decoration: none;
  border-radius: 6px;
}
.teacher-workbench-links a:hover, .teacher-workbench-links a[aria-current="page"],
.teacher-course-settings-button:hover { background: var(--mist-surface, #eff4f2); }
.teacher-workbench-links a:focus-visible, .teacher-course-settings-button:focus-visible {
  outline: 3px solid #568e82;
  outline-offset: -2px;
}
.course-header-context { display: flex; align-items: center; gap: 4px 8px; flex-wrap: wrap; min-width: 0; }
.course-header-context > .course-meta { overflow-wrap: anywhere; }
