/* Pinch: complex dishes taken apart (js/anatomy.js) */

.cx-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.cx-tabs .chip { white-space: nowrap; }
.cx { margin-top: 18px; }

.cx-head h3 { font-size: clamp(28px, 5vw, 38px); margin: 0; }
.cx-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 6px 0 4px; }
.cx-region { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.cx-pill { font-family: var(--f-mono); font-size: 11.5px; background: var(--ink); color: var(--paper); padding: 3px 10px; border-radius: 999px; font-weight: 600; }
.cx-head p { margin: 6px 0 0; color: var(--ink-2); font-size: 16px; max-width: 42em; line-height: 1.5; }

/* panels */
.cx-panel { margin-top: 22px; padding: 18px 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
@media (min-width: 720px) { .cx-panel { padding: 22px 24px 20px; } }
.cx-panel h4 { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-size: 21px; font-weight: 680; margin: 0 0 4px; }
.cx-n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--paper); font-family: var(--f-mono); font-size: 12px; font-weight: 600; }
.cx-panel .hint { margin: 0 0 12px; }

/* 1. exploded view */
.cx-stage { position: relative; width: 100%; max-width: 940px; margin: 0 auto; }
.cx-svg { display: block; overflow: visible; }
.cx-slab { cursor: pointer; }
.cx-fill, .cx-shadow, .cx-lead { transition: opacity .3s ease; }
.cx-edge { transition: opacity .3s ease, stroke .3s ease; }
.cx-slab.gone .cx-fill, .cx-slab.gone .cx-shadow { opacity: 0; }
.cx-slab.gone .cx-edge { stroke-dasharray: 5 5; stroke: var(--ink-3); }
.cx-slab.gone .cx-lead { opacity: .35; }
.cx-slab:hover .cx-edge { stroke-width: 3; }

.cx-lbl { position: absolute; transform: translateY(-50%); display: flex; flex-direction: column; gap: 5px; align-items: flex-start; transition: opacity .3s; }
.cx-lname { font-size: 13px; line-height: 1.25; font-weight: 650; transition: color .3s; }
.cx-lbl.gone .cx-lname { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--ink-3); font-weight: 500; }
.cx-lrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cx-take {
  font: inherit; font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: .02em;
  padding: 4px 10px; border-radius: 999px; cursor: pointer; line-height: 1.2; min-height: 26px;
  border: 1px solid var(--line-2); background: var(--paper); color: var(--ink);
  transition: background .15s, color .15s, border-color .15s;
}
.cx-take:hover { border-color: var(--ink); }
.cx-take[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cx-take[aria-pressed="true"]::before { content: "\2713\00a0"; }
.cx-take:focus-visible, .cx-reset:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.cx-dots { display: none; gap: 3px; }
.cx-d { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--ink); border-color: color-mix(in srgb, var(--ink) 45%, transparent); }
.cx-lbl.gone .cx-d { opacity: .3; }
@media (min-width: 560px) {
  .cx-lname { font-size: 15px; }
  .cx-dots { display: inline-flex; }
}
@media (max-width: 559px) {
  .cx-lname { font-size: 12.5px; }
  .cx-take { font-size: 10.5px; padding: 3px 8px; }
}

.cx-losebox { margin-top: 14px; display: flex; gap: 10px 16px; align-items: flex-start; flex-wrap: wrap; }
.cx-lose { list-style: none; margin: 0; padding: 0; flex: 1 1 22em; display: grid; gap: 8px; }
.cx-lose li { padding: 9px 12px; background: var(--paper-2); border-left: 4px solid var(--ink); border-radius: 4px 10px 10px 4px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.cx-lose li b { color: var(--ink); font-weight: 650; }
.cx-lose li.empty { background: transparent; border-left: 4px dashed var(--line-2); color: var(--ink-3); }
.cx-reset { flex: none; }

/* 2. wheel */
.cx-wheelrow { display: grid; gap: 14px; align-items: center; justify-items: center; }
.cx-wheel { width: 100%; max-width: 320px; height: auto; aspect-ratio: 1; }
.cx-wtext { width: 100%; }
.cx-cap { font-family: var(--f-display); font-size: clamp(22px, 3.4vw, 28px); font-weight: 680; line-height: 1.2; margin: 0 0 8px; letter-spacing: -.01em; }
.cx-drop { margin: 0 0 8px; color: var(--ink-2); font-size: 15.5px; line-height: 1.45; }
.cx-drop:empty { display: none; }
.cx-missing { margin: 0; padding: 10px 12px; border-left: 4px dashed var(--ink-3); background: var(--paper-2); border-radius: 4px 10px 10px 4px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
@media (min-width: 720px) { .cx-wheelrow { grid-template-columns: 320px 1fr; gap: 32px; justify-items: stretch; } .cx-wheel { justify-self: center; } }

/* 3. prep chart */
.cx-gantt { --nameW: 0px; margin-top: 12px; }
.cx-rows { position: relative; display: grid; gap: 4px; }
.cx-row { display: grid; grid-template-columns: 1fr; gap: 3px; position: relative; padding: 4px 0; transition: opacity .3s; }
.cx-rname { font-size: 13px; line-height: 1.25; font-weight: 600; }
.cx-track { position: relative; height: 22px; }
.cx-axis { padding: 0; }
.cx-axis .cx-rname { display: none; }
.cx-axis .cx-track { height: 16px; }
.cx-tick { position: absolute; top: 0; transform: translateX(-50%); font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); }
.cx-gl { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); }
.cx-bar { position: absolute; top: 2px; height: 18px; min-width: 6px; border-radius: 5px; background: var(--ink); box-shadow: inset 6px 0 0 var(--e); transition: opacity .3s; }
.cx-dur { position: absolute; top: 3px; font-family: var(--f-mono); font-size: 11px; color: var(--ink-2); white-space: nowrap; line-height: 16px; }
.cx-row.gone { opacity: .3; }
.cx-row.gone .cx-bar { background: transparent; outline: 1.5px dashed var(--ink-3); outline-offset: -1.5px; box-shadow: none; }
.cx-peak {
  position: absolute; top: 0; bottom: 0; pointer-events: none; border-radius: 6px;
  left: calc(var(--nameW) + (100% - var(--nameW)) * var(--a));
  width: calc((100% - var(--nameW)) * var(--w));
  background: color-mix(in srgb, var(--fat) 20%, transparent);
  border: 1.5px dashed color-mix(in srgb, var(--fat) 70%, transparent);
}
.cx-axlbl { margin: 6px 0 0; text-align: right; font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; }
.cx-pcap { margin: 10px 0 0; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
@media (min-width: 720px) {
  .cx-gantt { --nameW: 205px; }
  .cx-row { grid-template-columns: var(--nameW) 1fr; align-items: center; gap: 0; }
  .cx-rname { padding-right: 12px; font-size: 14px; }
  .cx-axis .cx-rname { display: block; }
}

/* 4. fingerprint */
.cx-fptop { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: flex-end; justify-content: space-between; margin-bottom: 14px; }
.cx-cmplbl { display: grid; gap: 4px; font-size: 13px; font-weight: 600; min-width: 11em; }
.cx-cmplbl select { padding: 8px 10px; font-size: 14px; }
.cx-fpwrap { max-width: 700px; }
.cx-fp { display: grid; grid-template-columns: 18px repeat(12, 1fr); column-gap: 5px; align-items: start; }
.cx-yax { display: flex; flex-direction: column; justify-content: space-between; height: 150px; font-family: var(--f-mono); font-size: 10.5px; color: var(--ink-3); text-align: right; line-height: 1; margin-top: -4px; padding-bottom: 0; }
.cx-yax span:last-child { transform: translateY(0); }
.cx-col { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.cx-plot {
  position: relative; height: 150px; border-bottom: 2px solid var(--ink);
  background: linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 33.333%;
}
.cx-bf { position: absolute; left: 14%; right: 14%; bottom: 0; border-radius: 5px 5px 0 0; background: var(--el); transition: height .35s ease; height: 0; }
.cx-cmpbar { position: absolute; left: 6%; right: 6%; bottom: 0; border: 2px dashed var(--ink); border-bottom: 0; border-radius: 6px 6px 0 0; opacity: 0; transition: height .35s ease, opacity .25s; height: 0; pointer-events: none; }
.cx-sym { text-align: center; font-family: var(--f-display); font-weight: 700; font-size: 13px; color: var(--el); }
@media (max-width: 480px) { .cx-fp { column-gap: 3px; grid-template-columns: 14px repeat(12, 1fr); } .cx-sym { font-size: 11.5px; } .cx-cmpbar { border-width: 1.5px; } }
@media (prefers-reduced-motion: reduce) {
  .cx-fill, .cx-shadow, .cx-lead, .cx-edge, .cx-bf, .cx-cmpbar, .cx-row, .cx-lbl { transition: none; }
}

/* close */
.cx-close {
  max-width: 40em; margin: 8px 0 28px; padding: 18px 20px; font-family: var(--f-display); font-size: clamp(19px, 2.4vw, 23px);
  line-height: 1.4; font-weight: 560; border-left: 5px solid var(--ink); background: var(--paper-2); border-radius: 4px var(--r) var(--r) 4px;
  font-variation-settings: "SOFT" 60;
}
