/* Shared lesson menus: keep the Web Forms menu's navigation and postbacks. */
.wp-lesson-bar.wp-lesson-bar-compact { padding-top: 0 !important; padding-bottom: 2px !important; }
.wp-lesson-bar-compact > tbody > tr > td { padding-top: 0 !important; padding-bottom: 0 !important; }
/* Web Forms emits a zero-size skip image in an otherwise full-height line. */
.wp-lesson-bar > tbody > tr > td > a[href$="_mnuHeader_SkipLink"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.wp-lesson-bar > tbody > tr > td > a[href$="_mnuHeader_SkipLink"]:focus {
  width: auto;
  height: auto;
  clip-path: none;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fffefa;
  color: #1d2f4f;
  outline: 3px solid #c56804;
  z-index: 1001;
}
.wp-lesson-bar a[href$="_mnuHeader_SkipLink"]:focus::after { content: "Hoppa över menyn"; }
html[lang="en"] .wp-lesson-bar a[href$="_mnuHeader_SkipLink"]:focus::after { content: "Skip menu"; }
input[type="image"].wp-exit-button {
  box-sizing: border-box;
  width: 44px !important;
  height: 44px !important;
  max-height: 44px !important;
  padding: 4px;
  border: 1px solid #ffffff80;
  border-radius: 10px;
  background: #fff6e5;
  vertical-align: middle;
  cursor: pointer;
}
input[type="image"].wp-exit-button:hover { background: #fff; }
input[type="image"].wp-exit-button:focus-visible { outline: 3px solid #e3aa29; outline-offset: 3px; }
input[type="image"].wp-exit-button:active { transform: translateY(1px); }
.wp-lesson-menu.statMenu {
  margin: 0;
  background: transparent;
  color: #1d2f4f;
  font: 600 15px/1.4 "Segoe UI", Arial, sans-serif;
}
.wp-lesson-menu > tbody > tr > td[id] { padding-right: 6px; }
.wp-lesson-menu > tbody > tr > td > table { width: auto !important; }
.wp-lesson-menu a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #1d2f4f !important;
  font: inherit !important;
  text-decoration: none !important;
  cursor: pointer !important;
}
.wp-lesson-menu a::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: .65;
}
.wp-lesson-menu a:hover, .wp-lesson-menu a:focus {
  background: var(--wp-surface, #fffefa);
  border-color: var(--wp-line, #e5e0d3);
  color: var(--wp-accent, #304fd0) !important;
}
.wp-lesson-menu a:focus-visible, .wp-lesson-dropdown a:focus-visible {
  outline: 3px solid #c56804;
  outline-offset: 2px;
}
.wp-lesson-dropdown.dynMenu {
  box-sizing: border-box;
  min-width: 248px;
  max-width: calc(100vw - 24px);
  height: auto !important;
  max-height: min(60vh, 520px);
  overflow-x: hidden;
  overflow-y: auto;
  clip: auto !important;
  padding: 8px;
  border: 1px solid var(--wp-line, #e5e0d3);
  border-radius: 12px;
  background: var(--wp-surface, #fffefa);
  color: #1d2f4f;
  box-shadow: 0 12px 32px -8px #1d2f4f33;
  font: 400 15px/1.4 "Segoe UI", Arial, sans-serif;
  z-index: 1000 !important;
}
.wp-lesson-dropdown table { width: 100%; border-spacing: 0; }
.wp-lesson-dropdown > table { position: static !important; top: auto !important; }
.wp-lesson-dropdown > div[id$="ItemsUp"], .wp-lesson-dropdown > div[id$="ItemsDn"] { display: none !important; }
.wp-lesson-dropdown td { padding: 0; white-space: normal !important; }
.wp-lesson-dropdown .dynMenuItem {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}
.wp-lesson-dropdown a.dynMenuItem {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 44px;
  padding: 11px 14px;
  border: 0;
  border-radius: 7px;
  color: #1d2f4f !important;
  font: 500 15px/1.4 "Segoe UI", Arial, sans-serif !important;
  text-align: left;
  text-decoration: none !important;
  white-space: normal;
  cursor: default;
}
.wp-lesson-dropdown a[href] { cursor: pointer; }
.wp-lesson-dropdown a[href]:hover, .wp-lesson-dropdown a[href]:focus {
  background: var(--wp-tint, #eef1fb);
  color: var(--wp-accent, #304fd0) !important;
}
.wp-lesson-dropdown a:has(img[src$="selected.gif"]) {
  background: var(--wp-tint, #eef1fb);
  color: var(--wp-accent, #304fd0) !important;
  font-weight: 700 !important;
}
.wp-lesson-dropdown img[src$="selected.gif"] { display: none; }
.wp-lesson-dropdown a:has(img[src$="selected.gif"])::after {
  content: "\2713";
  flex-shrink: 0;
  font-size: 18px;
  line-height: 1;
}
.wp-lesson-dropdown a.dynMenuItem:has(hr) { min-height: 0; padding: 7px 10px; }
.wp-lesson-dropdown hr { width: 100%; height: 0; margin: 0; border: 0; border-top: 1px solid var(--wp-line, #e5e0d3); }
@media (max-width: 600px) {
  .wp-lesson-menu a { padding-right: 12px; padding-left: 12px; }
  .wp-lesson-dropdown.dynMenu { min-width: min(248px, calc(100vw - 24px)); }
}
