/*
  #907: the first-time unlock card for Hebrew menu labels -- shared/menu_unlock.js.

  A component sheet, like build_stamp.css and nav.css beside it: no :root and
  no body rule. It paints its own card and nothing else, and reads the bottom
  bar's own tokens from shared/nav.css, which every page that loads this also
  loads -- so the card is the bar's colours in both themes without a second
  palette. Its own file rather than study.css, which another branch owns.

  Two rules are load-bearing:
    - `.mu-choice` is at least 44px tall: both choices are real tap targets.
    - The primary choice is accent TEXT on the card's surface, not white on an
      accent fill: that is the pairing nav.css already draws the current bar
      item in, so it clears the contrast it clears there in either theme.
*/

.mu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147483300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.45);
}

.mu-card {
  width: 100%;
  max-width: 420px;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  box-sizing: border-box;
  padding: 20px 18px 16px;
  border-radius: 16px;
  border: 1px solid var(--milim-nav-rule, #D9D5CB);
  background: var(--milim-nav-surface, #FBFAF7);
  color: var(--milim-nav-ink, #1D2027);
  font-family: var(--ui, system-ui, -apple-system, sans-serif);
}

.mu-kicker {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--milim-nav-current, #2A4FC4);
}

.mu-title {
  margin: 4px 0 8px;
  font-size: 1.25rem;
  line-height: 1.25;
}

.mu-text,
.mu-trophy,
.mu-note {
  margin: 0 0 12px;
  font-size: 0.95rem;
  line-height: 1.4;
}

.mu-trophy {
  font-weight: 600;
}

.mu-note {
  font-size: 0.85rem;
  color: var(--milim-nav-muted, #5B5F66);
}

.mu-figure {
  margin: 0 0 12px;
}

.mu-caption {
  margin-bottom: 4px;
  font-size: 0.8rem;
  color: var(--milim-nav-muted, #5B5F66);
}

.mu-bar {
  display: flex;
  border: 1px solid var(--milim-nav-rule, #D9D5CB);
  border-radius: 10px;
  overflow: hidden;
}

.mu-item {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 2px;
  color: var(--milim-nav-ink, #1D2027);
}

.mu-icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mu-label {
  max-width: 100%;
  font-size: 0.7rem;
  line-height: 1.2;
  text-align: center;
  overflow-wrap: anywhere;
}

.mu-label[lang="he"] {
  font-family: var(--heb, system-ui, sans-serif);
  font-size: 0.8rem;
}

.mu-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.mu-choice {
  flex: 1 1 140px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--milim-nav-rule, #D9D5CB);
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.mu-choice-primary {
  border: 2px solid var(--milim-nav-current, #2A4FC4);
  color: var(--milim-nav-current, #2A4FC4);
}

.mu-choice:focus-visible {
  outline: 2px solid var(--milim-nav-current, #2A4FC4);
  outline-offset: 2px;
}
