/* /palettes, the palettes by occasion tool (phase 5, nov 2026: docs/web/PALETAS-POR-OCASION.md). Tokens of site/css/site.css only.
   Head (.pl-head), the two chip rows (.pl-pick), the five strips (.pl-strips: rows of 72px on a phone, side by side from 900px),
   Where it goes (.pl-where), the actions (.pl-acts), the two text links (.pl-links) and the product close (.pl-close, a dark band).
   Text on a strip: paper by default, ink on a light color (.ink, L 60 or more), a paper tag where neither reaches 4.5:1 (.lo). */

.pl.sec { padding-top: clamp(32px, 6vw, 72px); }
.pl-head { display: grid; gap: var(--s3); margin-bottom: var(--s5); }
.pl-head h1 { font-size: var(--fs-6); line-height: 1; letter-spacing: -.015em; max-width: 16ch; }
.pl-head h1 em { color: var(--berry); }
.pl-lede { max-width: 44ch; font-size: var(--fs-3); line-height: 1.6; }

/* ---------- chips ---------- */
.pl-pick { display: grid; gap: var(--s2); margin-bottom: var(--s5); }
.pl-k { margin: var(--s2) 0 0; font: 600 12.5px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--graphite); }
.pl-chips { position: relative; list-style: none; margin: 0 calc(-1 * var(--gut)); padding: 4px var(--gut) 8px; display: flex; gap: var(--s2); overflow-x: auto; scrollbar-width: none; }
.pl-chips::-webkit-scrollbar { display: none; }
.pl-chips li { flex: none; }
.pl-chip { white-space: nowrap; text-decoration: none; min-height: 44px; }
.pl-chip[aria-current="true"] { background: var(--berry); border-color: var(--berry); color: var(--paper); }
.pl-dots { display: inline-flex; }
.pl-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1.5px var(--paper); }
.pl-dots i + i { margin-left: -3px; }
.pl-test { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s2); font: 600 14.5px/1.2 var(--sans); color: var(--ink); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.pl-test:hover { color: var(--berry); }
@media (min-width: 900px) {
  .pl-chips { flex-wrap: wrap; overflow: visible; margin: 0; padding: 4px 0; }
}

/* ---------- the five strips ---------- */
.pl-strips { list-style: none; margin: 0; padding: 0; display: grid; border-radius: var(--r-sm); overflow: hidden; }
.pl-strip { position: relative; background: var(--c); color: var(--paper); }
.pl-strip.pl-ink { color: var(--ink); }
.pl-strip.metal { background-image: repeating-linear-gradient(100deg, rgba(255, 255, 255, .16) 0 2px, rgba(255, 255, 255, 0) 2px 7px, rgba(0, 0, 0, .05) 7px 8px); }
@media (prefers-reduced-motion: no-preference) {
  .pl-strip { transition: background-color .4s var(--ease); }
}
.pl-sw { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "role hex" "name copy"; align-items: center; gap: 2px var(--s3);
  width: 100%; min-height: 72px; margin: 0; padding: 10px 64px 10px var(--s3); border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.pl-sw:focus-visible { outline: 3px solid var(--ink); outline-offset: -6px; box-shadow: inset 0 0 0 6px var(--paper); }
.pl-role { grid-area: role; font: 600 12.5px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.pl-name { grid-area: name; font: 400 21px/1.1 var(--serif); letter-spacing: -.01em; }
.pl-hex { grid-area: hex; justify-self: end; font: 500 13px/1.2 ui-monospace, "SF Mono", Consolas, monospace; letter-spacing: .04em; }
.pl-copy { grid-area: copy; justify-self: end; font: 600 12.5px/1.2 var(--sans); letter-spacing: .06em; opacity: .9; }
.pl:not(.pl-on) .pl-copy { display: none; }
.pl-copy.is-copied { opacity: 1; }
.pl-strip.lo .pl-role, .pl-strip.lo .pl-hex, .pl-strip.lo .pl-copy { padding: 2px 6px; background: var(--paper); color: var(--ink); }
.pl-strip.lo .pl-name { padding: 0 6px; background: var(--paper); color: var(--ink); justify-self: start; }
.pl-lock { position: absolute; top: 50%; right: 12px; translate: 0 -50%; display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1.5px solid currentColor; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; opacity: .75; }
.pl-lock[hidden] { display: none; }
.pl-strip.lo .pl-lock { background: var(--paper); color: var(--ink); border-color: var(--paper); opacity: 1; }
.pl-lock:hover, .pl-lock:focus-visible, .pl-lock[aria-pressed="true"] { opacity: 1; }
.pl-lock[aria-pressed="true"] { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.pl-lock .sh { transform-origin: 13px 9px; transform: translateY(-1.5px) rotate(28deg); }
.pl-lock[aria-pressed="true"] .sh { transform: none; }
@media (prefers-reduced-motion: no-preference) { .pl-lock .sh { transition: transform .3s var(--ease); } }

@media (min-width: 900px) {
  .pl-strips { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .pl-sw { grid-template-columns: 1fr; grid-template-areas: "role" "." "name" "hex" "copy"; grid-template-rows: auto 1fr auto auto auto;
    align-items: start; gap: 6px; min-height: clamp(320px, 38vw, 460px); padding: var(--s4) var(--s3); }
  .pl-hex, .pl-copy { justify-self: start; }
  .pl-copy { margin-top: var(--s2); }
  .pl-name { font-size: clamp(22px, 1.9vw, 28px); }
  .pl-lock { top: var(--s3); right: var(--s3); translate: none; }
  .pl:not(.pl-on) .pl-sw, .pl-strip .pl-sw { padding-right: var(--s3); }
  .pl-strip .pl-role { margin-right: 52px; }
}

/* ---------- where it goes ---------- */
.pl-where { margin-top: var(--s5); display: grid; gap: var(--s3); }
.pl-where-list { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.pl-where-list li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: var(--s3); min-height: 48px; border-bottom: 1px solid var(--line); font-size: var(--fs-2); }
.pl-where-list i { width: 18px; height: 18px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px var(--line); }
.pl-where-list b { font-weight: 600; }
.pl-where-list span { color: var(--ink-2); text-align: right; }
.pl-denim { margin: 0; font-size: var(--fs-2); color: var(--ink-2); }
@media (min-width: 900px) {
  .pl-where-list { grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: var(--s3); border-top: 0; }
  .pl-where-list li { grid-template-columns: 18px minmax(0, 1fr); grid-template-rows: auto auto; align-items: start; row-gap: 2px; padding: var(--s3) 0; border-top: 1px solid var(--line); border-bottom: 0; }
  .pl-where-list i { grid-row: span 2; margin-top: 2px; }
  .pl-where-list span { text-align: left; grid-column: 2; }
}

/* ---------- actions and links ---------- */
.pl-acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); margin-top: var(--s5); }
.pl-acts[hidden] { display: none; }
.pl-act { min-height: 48px; padding: 10px 20px; border: 1px solid var(--ink); border-radius: var(--r-pill); background: transparent; color: var(--ink); font: 600 15px/1.2 var(--sans); cursor: pointer; }
.pl-act:hover, .pl-act.is-copied { background: var(--ink); color: var(--paper); }
.pl-hint { flex-basis: 100%; margin: 0; font-size: var(--fs-1); color: var(--graphite); }
@media (hover: none) { .pl-hint { display: none; } }
.pl-links { list-style: none; margin: var(--s5) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); }
.pl-links .link { min-height: 44px; }

/* ---------- close: the Phone Palette ---------- */
.pl-close h2 { margin-top: var(--s3); font-size: clamp(40px, 5vw, 72px); line-height: 1; max-width: 16ch; }
.pl-close-line { margin-top: var(--s4); max-width: 46ch; font-size: var(--fs-4); line-height: 1.5; }
.pl-cta { margin-top: var(--s5); }
.palettes-page main:has(> .pl-close:last-child) + .site-footer .ftr { margin-top: 0; }
