/* Cedilla Studio: palette collection pages (/palettes/<slug>,
   palette-collection.php). Same dark look as the Palettes app. */

body.pc-page {
  --blue: #5164F6;
  --pink: #FC5FAD;
  --paper: #fff;
  --muted: rgba(255, 255, 255, .62);
  --faint: rgba(255, 255, 255, .36);
  --line: rgba(255, 255, 255, .14);
  --panel: #0b0b0b;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  margin: 0;
  background: #000;
  color: var(--paper);
  font-family: 'Open Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.pc-page button { font: inherit; color: inherit; cursor: pointer; }
.pc-page a { color: inherit; }

/* Hero: the collection's colors as tall bands */
.pc-hero { position: relative; min-height: 440px; display: flex; align-items: flex-end; overflow: hidden; }
.pc-hero-bands { position: absolute; inset: 0; display: flex; }
.pc-hero-bands i { flex: 1; background: var(--c); }
.pc-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.1) 0%, rgba(0,0,0,.45) 45%, rgba(0,0,0,.88) 100%); }
.pc-hero-text { position: relative; z-index: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 120px 24px 40px; box-sizing: border-box; }
.pc-crumbs { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.8); }
.pc-crumbs a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.4); }
.pc-crumbs span { opacity: .5; margin: 0 6px; }
.pc-hero h1 { margin: 14px 0 8px; font-size: clamp(44px, 8vw, 96px); line-height: .95; font-weight: 300; letter-spacing: -.02em; }
.pc-kicker { margin: 14px 0 0; font-family: var(--mono); font-size: 13px; letter-spacing: .08em; color: rgba(255,255,255,.85); }

.pc-body { max-width: 1180px; margin: 0 auto; padding: 0 24px 80px; box-sizing: border-box; }
.pc-body h2 { margin: 0 0 10px; font-size: clamp(26px, 3.4vw, 36px); font-weight: 300; letter-spacing: -.01em; }
.pc-body p { color: var(--muted); line-height: 1.7; font-size: 15.5px; }

.pc-intro { max-width: 720px; padding: 36px 0 8px; }
.pc-intro p { font-size: 17px; color: rgba(255,255,255,.78); margin: 0 0 14px; }
.pc-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pc-toc a { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; text-decoration: none; color: var(--muted); }
.pc-toc a:hover { color: #fff; border-color: #fff; }

/* The main colors */
.pc-main-colors { margin: 48px 0 20px; padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); }
.pc-main-colors p { max-width: 760px; margin: 0 0 20px; }
.pc-chips { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.pc-chip { display: flex; flex-direction: column; gap: 10px; padding: 0; background: none; border: 0; text-align: left; }
.pc-chip i { display: block; aspect-ratio: 1 / 1; border-radius: 14px; background: var(--c); border: 1px solid var(--line); transition: transform .2s; }
.pc-chip:hover i { transform: translateY(-3px); }
.pc-chip b { display: block; font-size: 13.5px; font-weight: 600; }
.pc-chip em { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* Sections and palette cards */
.pc-section { padding-top: 56px; scroll-margin-top: 80px; }
.pc-section-text { max-width: 760px; margin: 0 0 24px; }
.pc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.pc-card { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--panel); }
.pc-strip { display: flex; height: 170px; }
.pc-sw { position: relative; flex: 1; border: 0; padding: 0; background: var(--c); transition: flex .25s; }
.pc-sw:hover { flex: 1.5; }
.pc-hex { position: absolute; left: 0; right: 0; bottom: 12px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; color: rgba(255,255,255,.92); text-align: center; }
.pc-sw.is-light .pc-hex { color: rgba(0,0,0,.72); }
.pc-card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 18px 20px 20px; }
.pc-num { margin: 0 0 4px !important; font-family: var(--mono); font-size: 11px !important; letter-spacing: .12em; color: var(--blue) !important; }
.pc-card h3 { margin: 0; font-size: 20px; font-weight: 400; }
.pc-note { margin: 4px 0 0 !important; font-size: 13.5px !important; line-height: 1.5 !important; }
.pc-card-actions { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.pc-page .pc-btn { display: inline-flex; align-items: center; justify-content: center; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; font-size: 12.5px; text-decoration: none; white-space: nowrap; color: #fff; }
.pc-page .pc-btn:hover { border-color: #fff; }
.pc-page .pc-btn--go { border: 0; background: linear-gradient(135deg, var(--pink), var(--blue)); }
.pc-page .pc-btn--go:hover { box-shadow: 0 0 18px rgba(81,100,246,.55); }
.pc-page .pc-btn--big { padding: 14px 26px; font-size: 15px; }

/* Make your own */
.pc-make { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin: 64px 0 0; padding: 32px; border-radius: 20px;
  background: linear-gradient(135deg, rgba(252,95,173,.16), rgba(81,100,246,.16)); border: 1px solid var(--line); }
.pc-make p { margin: 6px 0 0; max-width: 640px; }

/* Tips and FAQ */
.pc-tips { padding-top: 56px; max-width: 760px; }
.pc-tips ul { margin: 0; padding-left: 20px; }
.pc-tips li { margin: 0 0 10px; color: var(--muted); line-height: 1.7; font-size: 15.5px; }
.pc-tips a { color: #fff; }
.pc-faq { padding-top: 56px; max-width: 760px; scroll-margin-top: 80px; }
.pc-faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.pc-faq summary { cursor: pointer; list-style: none; font-size: 16.5px; }
.pc-faq summary::-webkit-details-marker { display: none; }
.pc-faq summary::after { content: '+'; float: right; color: var(--faint); }
.pc-faq details[open] summary::after { content: '–'; }
.pc-faq p { margin: 10px 0 0; }

/* Copied toast */
.pc-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); padding: 10px 18px; border-radius: 999px; background: #fff; color: #000;
  font-family: var(--mono); font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 1000; }
.pc-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 860px) {
  .pc-hero { min-height: 340px; }
  .pc-hero-text { padding: 100px 16px 28px; }
  .pc-body { padding: 0 16px 64px; }
  .pc-grid { grid-template-columns: minmax(0, 1fr); }
  .pc-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pc-main-colors { padding: 20px; }
  .pc-strip { height: 130px; }
  .pc-hex { font-size: 10px; bottom: 10px; }
  .pc-card-foot { flex-direction: column; align-items: stretch; }
  .pc-card-actions { flex-direction: row; }
  .pc-card-actions .pc-btn { flex: 1; }
  .pc-make { flex-direction: column; align-items: stretch; padding: 24px; }
}
