/* ====================================================================
   PATCHWORK SKILL PAGE (/tools/patchwork/), after skills.css.
   The page's layout and type (split masthead, the three numbered
   sections, the install section) are in site.css under "Skill pages".
   This sheet holds the example: the request-to-result connector, the
   live wireframe with its review notes beside it, the second pass and
   the file.

   The example is a grayscale wireframe of a business listing (.pw-page):
   existing content is placeholder shapes, the proposed booking area
   (.pw-new) has real copy and working controls, and the one accent is
   the "Show proposed" outline, which is Patchwork's own mark. Tabs,
   switch and controls are driven by the inline script.
   ==================================================================== */

/* Neutral mono labels: section numbers, the connector, note heads */
.pw-part-n,
.pw-made,
.pw-notes-l,
.pw-notes .pw-notes-h,
.pw-pass-l { font: 600 var(--fs-label)/1.35 var(--mono); letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink-3); }
.pw-part-n { margin: 0; }

/* The request, and the dashed connector down to what Patchwork made */
.pw-demo .sp-ill { margin: 0 0 1.2rem; }
.pw-ask { max-width: 86rem; }
.pw-made { margin: 0 0 0 2rem; padding: 1.2rem 0 0 1.4rem; border-left: 1px dashed var(--ink-3); }
.pw-hint { margin: 0 0 1.6rem 2rem; padding: 0.4rem 0 1.2rem 1.4rem; border-left: 1px dashed var(--ink-3); font-size: var(--fs-caption); color: var(--ink-3); }
.pw-hero { display: grid; grid-template-columns: minmax(0, 1fr) 30rem; gap: 2.4rem; align-items: start; }
.pw-hero .pw-win { box-shadow: 0 1px 0 var(--line), 0 2.4rem 4.8rem -3.2rem rgba(23, 24, 26, 0.35); }
.pw-hero .pw-page { padding: 2rem 2.4rem 2.8rem; }
.pw-hero .pw-photo { height: 14rem; }
.pw-notes-l { margin: 0 0 1rem; }
.pw-part-art > * + * { margin-top: 1.2rem; }

.pw-win {
  --wf-line: #dcdcdc;
  --wf-fill: #ececec;
  --wf-ink: #2b2b2b;
  --wf-mid: #6b6b6b;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: #fff;
  overflow: hidden;
  container-type: inline-size;
}

/* --- Head bar: layout tabs and the Show proposed switch -------------- */
.pw-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.6rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--wf-line);
  background: #f7f7f7;
}
.pw-tabs { display: flex; gap: 0.4rem; }
.pw-tabs button {
  padding: 0.6rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.3rem;
  background: transparent;
  font: 500 1.3rem var(--mono);
  color: var(--wf-mid);
  cursor: pointer;
}
.pw-tabs button b { margin-right: 0.4rem; color: var(--wf-ink); }
.pw-tabs button[aria-selected="true"] { border-color: var(--wf-ink); color: var(--wf-ink); }
.pw-toggle { display: inline-flex; align-items: center; gap: 0.8rem; margin: 0; font: 500 1.3rem var(--mono); color: var(--wf-ink); cursor: pointer; }
.pw-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pw-switch { position: relative; width: 3rem; height: 1.8rem; border-radius: 0.9rem; background: #c4c4c4; transition: background-color 150ms var(--ease-quiet); }
.pw-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: #fff; transition: transform 150ms var(--ease-quiet); }
.pw-toggle input:checked + .pw-switch { background: var(--orange); }
.pw-toggle input:checked + .pw-switch::after { transform: translateX(1.2rem); }
.pw-toggle input:focus-visible + .pw-switch { outline: 2px solid var(--orange); outline-offset: 2px; }

/* --- The page, as an outline ---------------------------------------- */
.pw-page { padding: 1.4rem; color: var(--wf-ink); }
.pw-page i { display: block; }
.pw-top { display: flex; align-items: center; gap: 1rem; padding-bottom: 1.2rem; }
.pw-logo { width: 2.2rem; height: 2.2rem; margin-right: auto; border-radius: 50%; background: #cfcfcf; }
.pw-l { height: 0.7rem; border-radius: 0.4rem; background: var(--wf-fill); }
.pw-l + .pw-l { margin-top: 0.7rem; }
.pw-top .pw-l { width: 4.2rem; margin: 0; }
.pw-l.w8 { width: 40%; height: 0.9rem; }
.pw-l.w12 { width: 62%; }
.pw-l.w60 { width: 60%; }
.pw-l.w80 { width: 80%; }
.pw-photo { height: 9.2rem; border-radius: 0.3rem; background: repeating-linear-gradient(135deg, #e6e6e6 0 0.8rem, #ededed 0.8rem 1.6rem); }
.pw-cols { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 1.6rem; margin-top: 1.6rem; align-items: start; }
.pw-biz { margin: 0 0 0.8rem; font-size: 1.9rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
.pw-sec { margin-top: 1.8rem; }
.pw-h { margin: 0 0 0.8rem; font-size: 1.3rem; font-weight: 600; color: var(--wf-mid); }
.pw-map { height: 7.4rem; border-radius: 0.3rem; background: var(--wf-fill); }

/* --- The proposal: real copy, working controls ---------------------- */
.pw-new {
  position: relative;
  margin-top: 1.8rem;
  padding: 1.4rem;
  border: 1px solid #cfcfcf;
  border-radius: 0.4rem;
  background: #fff;
  outline: 2px dashed transparent;
  outline-offset: 0.4rem;
  transition: outline-color 150ms var(--ease-quiet);
}
.pw-side { display: flex; flex-direction: column; gap: 1.8rem; }
.pw-side > * { margin-top: 0; }
.pw-page.is-a .pw-new[data-variant="b"],
.pw-page.is-b .pw-new[data-variant="a"] { display: none; }
.pw-page.is-marked .pw-new { outline-color: var(--orange); }
.pw-page.is-marked .pw-new::before {
  content: "Proposed";
  position: absolute;
  top: -1.5rem;
  right: 0.8rem;
  padding: 1px 0.6rem;
  border-radius: 2px;
  background: var(--orange);
  font: 600 1rem/1.5 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}
.pw-new-h { margin: 0 0 1rem; font-size: 1.5rem; font-weight: 600; }
.pw-select + .pw-sub { margin-top: 1.2rem; }
.pw-sub { margin: 0 0 0.6rem; font-size: 1.2rem; color: var(--wf-mid); }

.pw-svc { display: grid; gap: 0.6rem; }
.pw-svc button,
.pw-times button {
  border: 1px solid #cfcfcf;
  border-radius: 0.3rem;
  background: #fff;
  font: inherit;
  color: var(--wf-ink);
  cursor: pointer;
}
.pw-svc button { display: flex; justify-content: space-between; gap: 0.8rem; padding: 0.7rem 1rem; font-size: 1.3rem; text-align: left; }
.pw-svc em { font-style: normal; color: var(--wf-mid); white-space: nowrap; }
.pw-svc button[aria-checked="true"],
.pw-times button[aria-checked="true"] { border-color: var(--wf-ink); box-shadow: inset 0 0 0 1px var(--wf-ink); }
.pw-day { display: flex; justify-content: space-between; margin: 1.2rem 0 0.6rem; font-size: 1.3rem; font-weight: 600; }
.pw-day span { color: var(--wf-mid); font-weight: 400; }
.pw-times { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
.pw-times button { padding: 0.6rem 0.4rem; font-size: 1.2rem; }
.pw-times.is-list { grid-template-columns: minmax(0, 1fr); }
.pw-times.is-list button { padding: 0.8rem 1rem; font-size: 1.3rem; text-align: left; }
.pw-go { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.2rem; margin: 1.2rem 0 0; }
.pw-go small { font-size: 1.2rem; color: var(--wf-mid); }
.pw-cta { display: inline-block; padding: 0.8rem 1.2rem; border-radius: 0.3rem; background: var(--wf-ink); font-size: 1.3rem; font-weight: 600; color: #fff; }
.pw-card .pw-go { display: block; }
.pw-card .pw-cta { display: block; text-align: center; }
.pw-select select { width: 100%; padding: 0.7rem 0.8rem; border: 1px solid #cfcfcf; border-radius: 0.3rem; background: #fff; font: inherit; font-size: 1.3rem; color: var(--wf-ink); }
.pw-link { margin: 1rem 0 0; font-size: 1.3rem; font-weight: 600; text-decoration: underline; text-underline-offset: 0.3rem; }

/* --- Review notes and the second pass ------------------------------ */
.pw-notes {
  display: grid;
  gap: 1.6rem;
  padding: 1.6rem 2rem;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: #fff;
}
.pw-notes p { margin: 0; font-size: var(--fs-small); line-height: 1.45; color: var(--ink); }
.pw-notes p + p { margin-top: 0.6rem; }
.pw-notes .pw-notes-h { margin-bottom: 0.8rem; }
.pw-pass { padding: 2rem; border: 1px solid var(--line); border-radius: 1.2rem; background: #fff; color: #2b2b2b; --wf-ink: #2b2b2b; --wf-mid: #6b6b6b; }
.pw-pass-l { margin: 0 0 1.2rem; }
.pw-new.is-solo { max-width: 28rem; margin: 0; outline: 0; }

/* --- The file ------------------------------------------------------ */
.pw-file { display: flex; align-items: center; gap: 1.4rem; padding: 1.6rem 2rem; border: 1px solid var(--line); border-radius: 1.2rem; background: #fff; }
.pw-file svg { flex: none; width: 2.8rem; height: 2.8rem; color: var(--ink); }
.pw-file-n { margin: 0; font: 500 var(--fs-code) var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.pw-file-d { margin: 2px 0 0; font-size: var(--fs-caption); color: var(--ink-3); }

/* The attachment chip in the request */
.pw-att { font-weight: 500; color: var(--ink-3); }

/* A narrow wireframe stacks the sidebar under the main column, the way
   the listing page itself would */
@container (max-width: 480px) {
  .pw-cols { grid-template-columns: minmax(0, 1fr); }
  .pw-photo { height: 6.4rem; }
  .pw-tabs button { padding: 0.6rem 0.7rem; font-size: 1.2rem; white-space: nowrap; }
}
@media (max-width: 1000px) {
  .pw-hero { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .pw-pass { padding: 1.2rem; }
  .pw-hero .pw-page { padding: 1.4rem; }
  .pw-hero .pw-photo { height: 6.4rem; }
}
