/* "+ New" (public/work/new-menu.js). A plainly labelled button and a short list under it -- a phone in a
   hallway, an older hand. Every colour is a token the Portal pages already define. */
.new-menu { position: relative; display: inline-block; }
.new-menu[hidden] { display: none; }
.new-menu-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; min-width: 112px; padding: var(--space-2) var(--space-4); border-radius: var(--r-sm);
  font: inherit; font-size: var(--text-sm, 13px); font-weight: 600; letter-spacing: .005em;
  color: #fff; background: var(--navy, #061d2d); border: 1px solid var(--navy, #061d2d); cursor: pointer;
}
.new-menu-btn:hover { background: var(--navy-2, #0d2f45); }
.new-menu-btn:focus-visible { outline: 3px solid var(--accent, #066164); outline-offset: 3px; }
.new-menu-list {
  position: absolute; z-index: 30; left: 0; top: calc(100% + 6px);
  width: min(320px, calc(100vw - 32px)); padding: 6px;
  background: var(--surface, #fff); border: 1px solid var(--line, #d9e1e3); border-radius: 14px;
  box-shadow: 0 10px 28px rgba(6, 29, 45, .14);
}
.new-menu-list[hidden] { display: none; }
.new-menu-item {
  display: block; min-height: 56px; padding: 11px 13px; border-radius: 10px;
  color: var(--navy, #061d2d); text-decoration: none;
}
.new-menu-item + .new-menu-item { margin-top: 2px; }
.new-menu-item:hover, .new-menu-item:focus-visible { background: var(--teal-pale, #e8f4f4); outline: none; }
.new-menu-item:focus-visible { box-shadow: inset 0 0 0 2px var(--accent, #066164); }
.new-menu-item-label { display: block; font-size: var(--text-base, 15px); font-weight: 600; line-height: 1.3; }
.new-menu-item-hint { display: block; margin-top: 2px; font-size: var(--text-sm, 13px); line-height: 1.35; color: var(--slate, #4c6f77); }
/* A page's back link on the left and "+ New" on the right, one row; the list then opens from the right edge so it
   never runs off a phone screen. */
.page-actions-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.page-actions-row .new-menu-list { left: auto; right: 0; }
@media (max-width: 560px) {
  .new-menu-btn { min-height: 44px; font-size: var(--text-sm, 13px); }
}
