.palette-switcher { max-width: 760px; }
.palette-switcher .palette-current { font-weight: 700; margin: 0 0 20px; }
/* The palette list (2026-11-04): Default first, then A to Z, each name with the palette's first three colours at its left. A button
   and a listbox in front of the hidden <select>, which still holds the value. */
.palette-switcher .palette-field { position: relative; display: grid; gap: 8px; max-width: 420px; font-weight: 600; }
.palette-switcher select[hidden] { display: none; }
.palette-switcher .palette-pick { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 6px 12px; text-align: left;
  font: inherit; font-weight: 500; color: #24344f; background: #fff; border: var(--line); cursor: pointer; }
.palette-switcher .palette-pick:disabled { cursor: default; opacity: .6; }
.palette-switcher .palette-pick-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette-switcher .palette-caret { flex: none; color: var(--ink); transition: transform .15s; }
.palette-switcher .palette-pick[aria-expanded="true"] .palette-caret { transform: rotate(180deg); }
.palette-switcher .palette-trio { flex: none; display: inline-flex; border: var(--line); }
.palette-switcher .palette-trio i { display: block; width: 16px; height: 22px; background: #eef2f8; }
.palette-switcher .palette-list { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; right: 0; margin: 0; padding: 4px 0; list-style: none;
  max-height: min(60vh, 440px); overflow-y: auto; background: #fff; border: var(--line); box-shadow: 0 10px 28px rgba(29, 63, 145, .18); }
.palette-switcher .palette-list[hidden] { display: none; }
.palette-switcher .palette-list:focus { outline: none; }   /* the lit row shows where the keys are */
.palette-switcher .palette-list li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; cursor: pointer; font-weight: 500; color: #24344f; }
.palette-switcher .palette-list li:hover, .palette-switcher .palette-list li.on { background: var(--wash); }
.palette-switcher .palette-list li.on { box-shadow: inset 3px 0 var(--ink); }
.palette-switcher .palette-list li[aria-selected="true"] { font-weight: 700; color: var(--ink); }
.palette-switcher .palette-list li[aria-selected="true"]::after { content: '✓'; margin-left: auto; }
.palette-switcher .palette-swatches { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 20px 0; }
.palette-switcher .palette-chip { min-width: 0; }
.palette-switcher .palette-sample { display: block; height: 64px; border: 1px solid #b8c8df; }
.palette-switcher code { display: block; margin-top: 7px; font-size: 12px; }
.palette-switcher .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.palette-switcher .actions .btn { min-height: 44px; }
.palette-switcher .palette-note { margin: 16px 0 0; font-size: .9rem; }
/* The stamp in the palette's first three colors (2026-11-04). */
.palette-switcher .palette-logos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 20px; }
.palette-switcher .palette-logo { margin: 0; min-width: 0; }
.palette-switcher .palette-logo-stage { display: grid; place-items: center; padding: 14px; border: 1px solid #b8c8df; }
.palette-switcher .palette-logo-stage img { display: block; width: min(100%, 110px); height: auto; }
@media (max-width: 420px) {
  .palette-switcher .palette-swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .palette-switcher .palette-sample { height: 54px; }
}

.palette-switcher .palette-home-preview { display: block; width: 100%; height: 560px; border: 1px solid #b8c8df; background: #fff; }

/* each palette's short code before its name (Kevin, 2026-11-10): ESPN's team code, SOC for Default */
.palette-switcher .palette-abbr { display: inline-block; min-width: 3.4ch; margin-right: .5em; font: 700 .85em/1 'Space Mono', ui-monospace, monospace; letter-spacing: .02em; }
.palette-switcher .palette-abbr:empty { display: none; }
