/* Ascent-branded dropdown menus (2026-11-12, Mark: pop-up boxes should use
   Ascent colors, e.g. a coral header with light gray and white features).
   Pairs with js/shared/ascent-select.js, which keeps the real <select> in the
   page (hidden) and shows this button and menu in its place. */
.as-native { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; overflow: hidden !important; margin: 0 !important; }
.as-btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left; cursor: pointer; background-image: none !important; appearance: none; -webkit-appearance: none; }
/* Fallback look (2026-11-17, Mark): when the <select> was styled by a
   descendant rule (e.g. ".form select") the button doesn't match it and fell
   back to Chrome's gray button. :where() keeps this at zero specificity, so
   any real field style still wins. */
:where(.as-btn) { min-height: 36px; padding: 7px 10px; color: var(--ink, #1E1B19); background-color: #F7F7F8; border: 1px solid #D5D9E0; border-radius: 8px; font: 500 13px/1.2 Inter, system-ui, sans-serif; box-sizing: border-box; }
:where(.as-btn):focus-visible { outline: 2px solid #F2B8A2; outline-offset: 1px; }
.as-btn[hidden] { display: none !important; }
.as-btn:disabled { cursor: not-allowed; opacity: .6; }
.as-btn .as-txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-btn.as-placeholder .as-txt { color: var(--dim, #6B645E); }
.as-btn .as-chev { flex: none; display: inline-flex; color: var(--dim, #6B645E); }
.as-btn[aria-expanded="true"] { border-color: var(--coral-500, #D85A30); box-shadow: 0 0 0 3px rgba(216,90,48,.14); }
.as-btn[aria-expanded="true"] .as-chev { transform: rotate(180deg); color: var(--coral-500, #D85A30); }
.as-btn.as-invalid { border-color: var(--coral-500, #D85A30); }

.as-pop { position: fixed; z-index: 100001; display: flex; flex-direction: column; background: #FFFFFF; border: 1px solid var(--border, #E6E1DC); border-radius: 12px; box-shadow: 0 16px 40px rgba(20,20,25,.20); overflow: hidden; font-family: Inter, system-ui, sans-serif; }
.as-pop-head { flex: none; padding: 9px 14px; background: linear-gradient(135deg, var(--coral-500, #D85A30), #C04A28); color: #FFFFFF; font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.as-pop-list { overflow-y: auto; padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.as-group { padding: 8px 10px 4px; font-size: 13.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dim, #6B645E); }
.as-opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; border-radius: 8px; font-size: 14px; color: var(--ink, #1E1B19); cursor: pointer; }
.as-opt.as-active { background: var(--mid, #F3F1EF); }
.as-opt.as-sel { background: var(--coral-50, #FDEEE8); color: #B5461F; font-weight: 700; }
.as-opt.as-sel.as-active { background: #FBE2D8; }
.as-opt .as-check { flex: none; color: var(--coral-500, #D85A30); }
.as-opt.as-ph { color: var(--dim, #6B645E); }
.as-opt.as-disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 640px) { .as-pop { left: 8px !important; right: 8px; max-width: none !important; } }
