/* Paint samples are interactive controls, arranged as an opening color fan. */
.palette-choices { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; max-width: 420px; margin-top: 26px; }
.palette-choice { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 66px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); font-size: .875rem; font-weight: 500; text-align: left; transition: border-color .25s,background .25s,transform .25s; }
.palette-choice-swatch { display: block; flex: 0 0 28px; height: 42px; border-radius: 2px; background: var(--swatch); border: 1px solid #0000000c; }
.palette-choice[aria-pressed=true] { border-color: var(--red); background: #fffafa; }
.palette-choice:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.palette-display { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #f7f7f5; }
.palette-fan { position: relative; height: 370px; isolation: isolate; }
.palette-sample { position: absolute; bottom: 26px; left: 50%; width: 115px; height: 292px; border: 1px solid #ffffffa6; border-radius: 4px; background: var(--swatch); color: #fff; box-shadow: 0 5px 14px #20202024; cursor: pointer; transform-origin: 50% calc(100% - 18px); transform: translateX(-50%) rotate(calc(var(--sample-angle) * var(--fan-spread,1))); z-index: var(--sample-index); transition: transform .7s cubic-bezier(.2,.7,.25,1),box-shadow .3s; }
.palette-sample-control { display: flex; flex-direction: column; width: 100%; min-height: 100px; padding: 17px 14px 14px; color: inherit; font: inherit; text-align: left; border: 0; background: transparent; border-radius: 4px; }
.palette-sample.dark-text { color: var(--ink); }
.palette-sample-number { font-size: .75rem; letter-spacing: .08em; }
.palette-sample-name { font-size: .875rem; font-weight: 500; line-height: 1.35; margin-top: 18px; }
.palette-sample-paper { position: absolute; bottom: 0; left: 0; right: 0; height: 54px; padding: 9px 12px; background: #fff; color: #353535; font-size: .75rem; line-height: 1.5; letter-spacing: .02em; }
.palette-sample.is-selected { transform: translate(-50%,-14px) rotate(calc(var(--sample-angle) * var(--fan-spread,1))); z-index: 8; box-shadow: 0 9px 22px #20202035; }
.palette-sample:focus-within { z-index: 10; }
.palette-sample-control:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; }
.palette-fan::after { content: ''; position: absolute; bottom: 34px; left: calc(50% - 5px); width: 10px; height: 10px; border-radius: 50%; background: #e6e3de; border: 1px solid #c3bfb8; z-index: 11; pointer-events: none; }
.motion-ready .palette-display:not(.is-visible) .palette-sample { transform: translateX(-50%) rotate(0deg); }
.palette-display .color-preview { min-height: 200px; padding: 22px 26px; border-radius: 0; box-shadow: none; transition: background-color .45s,color .3s; }
.palette-display .preview-kicker { font-size: .75rem; margin-bottom: 16px; }
.palette-display .preview-family { font-size: .75rem; }
.palette-display .color-preview h3 { font-size: 2.1rem; margin-block: 5px; }
.palette-display #color-hex { font-size: .875rem; }
.palette-display .color-pair { margin-top: 17px; padding-top: 14px; align-items: center; }
.palette-display .color-pair > span { font-size: .875rem; }
.palette-display .color-pair > div { gap: 8px; }
.palette-display .color-pair button { width: 36px; height: 36px; border: 2px solid #ffffffc0; }
@media (hover: hover) and (pointer: fine) {
  .palette-choice:hover { border-color: #a6a09b; transform: translateY(-2px); }
  .palette-choice[aria-pressed=true]:hover { border-color: var(--red); }
  .palette-sample:hover { transform: translate(-50%,-20px) rotate(calc(var(--sample-angle) * var(--fan-spread,1))); z-index: 9; }
}
@media (max-width: 760px) {
  .palette-choices { max-width: none; gap: 8px; margin-top: 22px; }
  .palette-choice { gap: 8px; min-height: 66px; padding: 9px; }
  .palette-choice-swatch { flex-basis: 24px; height: 40px; }
  .palette-fan { --fan-spread: .88; height: 278px; }
  .palette-sample { width: clamp(60px,19%,76px); height: 205px; }
  .palette-sample-control { min-height: 84px; padding: 13px 8px 10px; }
  .palette-sample-name { font-size: .75rem; margin-top: 14px; }
  .palette-sample-paper { padding-inline: 8px; }
  .palette-display .color-preview { padding: 22px 20px; }
  .palette-display .color-preview h3 { font-size: 1.85rem; }
  .palette-display .color-pair > div { gap: 4px; }
  .palette-display .color-pair button { width: 44px; height: 44px; border-width: 5px; }
}
@media (max-width: 360px) {
  .palette-choice { padding-inline: 7px; gap: 6px; }
  .palette-choice-swatch { flex-basis: 22px; }
  .palette-fan { height: 254px; }
  .palette-sample { height: 176px; }
}
