/* Feature-page teaching-context control, scoped to the planning header.
   Matches shared-proposals.css and o2c-header-type.css without importing
   those files' unrelated page-navigation and hero rules. */
#audience-control { position: relative; flex: none; min-width: 0; }
.planner-context-menu { position: relative; flex: none; color: #22272A; }
.planner-context-menu > summary {
  display: flex; align-items: center; gap: 8px;
  min-height: 38px; padding: 7px 11px; border: 0; border-radius: 24px;
  background: #F6F6F4; color: #22272A;
  font: 600 12px/1.25 Inter, sans-serif;
  list-style: none; cursor: pointer; white-space: nowrap;
}
.planner-context-menu > summary::-webkit-details-marker { display: none; }
.planner-context-menu > summary::marker { content: ''; }
.planner-context-menu > summary i { width: 6px; height: 6px; flex: none; border-radius: 50%; background: #71934c; }
.planner-context-menu > summary svg {
  width: 15px; height: 15px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round;
}
.planner-context-menu > summary:hover,
.planner-context-menu[open] > summary { background: #E4E4E0; }
.planner-context-menu .ln-context-panel {
  position: absolute; right: 0; top: calc(100% + 13px); z-index: 50;
  display: grid; gap: 4px; width: 250px; max-width: calc(100vw - 32px);
  padding: 10px; border: 1px solid #E4E4E0; border-radius: 14px;
  background: #FFFFFF; box-shadow: 0 15px 50px #123c3120;
}
.planner-context-menu .ln-context-panel > span {
  padding: 8px 10px 6px; color: #5B6470;
  font-size: 12px; font-weight: 650; line-height: 1.4;
  letter-spacing: .08em; text-transform: uppercase;
}
.planner-context-menu .ln-context-panel button {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  box-sizing: border-box; min-height: 44px; width: 100%; padding: 10px 14px;
  border: 0; border-radius: 8px; background: #FFFFFF; color: #22272A;
  font: 500 16px/1.25 Inter, sans-serif; text-align: left; cursor: pointer;
}
.planner-context-menu .ln-context-panel b { visibility: hidden; font-size: 15px; font-weight: 650; }
.planner-context-menu .ln-context-panel [aria-pressed="true"] { background: #F6F6F4; }
.planner-context-menu .ln-context-panel [aria-pressed="true"] b { visibility: visible; }
.planner-context-menu .ln-context-panel button:is(:hover, :focus-visible) { background: #F6F6F4; }
.planner-context-menu :is(summary, button):focus-visible { outline: 2px solid #1F3A33; outline-offset: 2px; }
@media (max-width: 650px) {
  .planner-context-menu > summary { min-height: 38px; gap: 6px; padding: 7px 9px; font-size: 11px; }
  .planner-context-menu > summary i { display: none; }
}
