/* Superchrome — artwork proof tool (proof.html). Builds on site.css + artwork.css. */
.sr { position: absolute; left: -9999px; }

.pf-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 0; padding: 0; margin: 0 0 36px; counter-reset: s; border-bottom: 2px solid var(--ink); }
.pf-steps li { counter-increment: s; margin: 0; padding: 10px 18px 10px 0; font: 700 15px/1 var(--display); color: var(--ink-soft); }
.pf-steps li::before { content: counter(s); display: inline-block; width: 24px; height: 24px; line-height: 24px; text-align: center; margin-right: 8px; border: 2px solid var(--rule); color: var(--ink-soft); }
.pf-steps li.on { color: var(--ink); }
.pf-steps li.on::before { background: var(--ink); border-color: var(--ink); color: #fff; }
.pf-steps li.done::before { content: "✓"; background: var(--cyan); border-color: var(--cyan); color: #fff; }

.pf-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 40px 64px; align-items: start; }
.pf-form { max-width: 40em; min-width: 0; }
.pf-sec { border-top: 2px solid var(--ink); padding: 18px 0 26px; }
.pf-sec h2 { font-size: clamp(22px, 2.2vw, 27px); letter-spacing: -0.035em; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.pf-sec h2 i { font-style: normal; display: inline-block; width: 30px; height: 30px; line-height: 30px; text-align: center; background: var(--ink); color: #fff; font-size: 16px; letter-spacing: 0; flex: none; }
.pf-sec h2 span { font-weight: 400; color: var(--ink-soft); font-size: 17px; letter-spacing: 0; }
.pf-sec textarea { min-height: 110px; }

input[type="number"], select {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 0; padding: 11px 12px;
}
select { appearance: none; -webkit-appearance: none; padding-right: 36px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2314161a' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center; }

.pf-checks { border: 0; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; }
.pf-checks label, .pf-inline label, .pf-confirm { font-weight: 400; display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; margin: 0; padding: 5px 0; cursor: pointer; }
.pf-checks input, .pf-inline input, .pf-confirm input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--magenta); flex: none; }
.pf-confirm { background: var(--booth); padding: 14px; margin: 16px 0 18px; }
.pf-mini .btn { padding: 11px 16px; font-size: 15px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.pf-approve { background: #fff; }
.pf-approve.flash { animation: pf-flash 1.2s ease-out; }
@keyframes pf-flash { from { background: #fffbe0; } to { background: #fff; } }

/* preview */
.pf-sticky { position: sticky; top: 20px; }
.pf-stage { position: relative; background: var(--booth); aspect-ratio: 1 / 1; display: grid; place-items: center; border: 1px solid var(--rule); }
.pf-stage canvas { width: 100%; height: 100%; display: block; }
.pf-empty { position: absolute; margin: 0; color: var(--ink-soft); font-size: 15px; }
.pf-legend { list-style: none; padding: 0; margin: 12px 0 18px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--ink-soft); }
.pf-legend li { margin: 0; display: flex; align-items: center; gap: 7px; }
.pf-legend i { display: inline-block; width: 22px; height: 0; border-top: 2px solid; }
.pf-legend .k-trim { border-color: var(--ink); }
.pf-legend .k-bleed { border-color: var(--magenta); border-top-style: dashed; }
.pf-legend .k-safe { border-color: var(--cyan); border-top-style: dashed; }

.pf-report { font-size: 15px; }
.pf-report:empty { display: none; }
.pf-report dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0 0 14px; }
.pf-report dt { color: var(--ink-soft); }
.pf-report dd { margin: 0; font-weight: 700; }
.pf-report ul { list-style: none; padding: 0; margin: 0; }
.pf-report li { margin: 0 0 6px; padding: 9px 12px 9px 36px; position: relative; background: var(--booth); }
.pf-report li::before { position: absolute; left: 12px; top: 9px; font-weight: 700; }
.pf-report li.good::before { content: "✓"; color: #0a7d3b; }
.pf-report li.warn { background: #fff6c2; }
.pf-report li.warn::before { content: "!"; color: #8a6d00; }
.pf-report li.bad { background: #fbe0ee; }
.pf-report li.bad::before { content: "✕"; color: var(--magenta); }

@media (max-width: 960px) {
  .pf-grid { grid-template-columns: minmax(0, 1fr); }
  .pf-preview { order: -1; }
  .pf-sticky { position: static; }
  .pf-stage { aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) {
  .pf-checks, .pf-form .two { grid-template-columns: 1fr; }
  .pf-steps li { padding-right: 12px; font-size: 14px; }
}
/* Enhance low-resolution images */
.pf-enh { margin: 12px 0 0; padding: 12px 14px; background: var(--booth); border-left: 4px solid var(--cyan); }
.pf-enh .btn { padding: 10px 16px; font-size: 15px; }
.pf-enh small { display: block; margin-top: 6px; color: var(--ink-soft); font-size: 13.5px; }
.pf-enh p { margin: 0 0 4px; font-size: 15px; }
.pf-enh.on { border-left-color: var(--magenta); }
.pf-enh button.link { background: none; border: 0; padding: 0; font: inherit; color: var(--magenta); text-decoration: underline; cursor: pointer; }
.pf-enh-lbl { margin: 0 0 8px; }
.pf-enh-opts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 4px; }
.pf-enh-opts .btn { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.pf-enh-opts .btn small { display: block; margin: 2px 0 0; font-size: 12.5px; font-weight: 400; color: inherit; opacity: .8; }
.pf-enh-opts .btn.cur { outline: 3px solid var(--magenta); outline-offset: 2px; opacity: 1; }
.pf-enh-mode { display: grid; gap: 4px; margin: 0 0 10px; font-size: 14.5px; }
.pf-enh-mode label { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; cursor: pointer; }
.pf-enh-mode small { display: inline; margin: 0; }
.pf-enh .aw-meter { background: #fff; }
