/* SourcingPromo — case studies, guides, downloads, decoration methods and /resources/.
   Every rule here is prefixed `content-` so it can never reach another page's markup, and every
   value comes from tokens.css. Mobile first: one column, then the two-column reading layouts from
   960px. Nothing here needs JavaScript; the only interactive part is the download gate, which is
   the shared disclosure behaviour driven by data attributes. */

/* ---------- page rhythm ---------- */
.content-body{padding-top:0}
.content-intro{max-width:70ch;margin-top:.5rem}
.content-section-title{margin-bottom:1.25rem}
.content-after{margin-top:1.25rem}
.content-text{color:var(--ink-2);max-width:70ch;line-height:1.6}
.content-updated{margin-top:-.25rem}

/* ---------- chip rows (topics, categories, methods) ---------- */
.content-chips{display:block}
.content-chips__list{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:.5rem}
.content-chips__list--plain{flex-wrap:wrap}
.content-chip{
  display:inline-flex;align-items:center;gap:.45rem;
  padding:.32rem .7rem;border:1px solid var(--line-strong);border-radius:var(--radius-pill);
  background:var(--paper);color:var(--ink-2);font-size:var(--step--1);font-weight:560;
  text-decoration:none;line-height:1.3;
}
.content-chip:hover{border-color:var(--ink);color:var(--ink);background:var(--sand)}
.content-chip__count{
  font-size:.75rem;color:var(--ink-3);font-variant-numeric:tabular-nums;
  background:var(--sand-2);border-radius:var(--radius-pill);padding:0 .4rem;
}

/* ---------- cards ---------- */
.content-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,17rem),1fr))}
.content-grid--tight{grid-template-columns:repeat(auto-fit,minmax(min(100%,11rem),1fr));gap:1rem}
.content-grid--docs{grid-template-columns:repeat(auto-fit,minmax(min(100%,22rem),1fr))}
.content-card{min-width:0}
.content-card__media{display:block}
.content-card__img{width:100%;height:100%;object-fit:cover}
.content-card__placeholder{width:100%;height:100%;letter-spacing:.08em}
.content-card__lead{
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;
}
.content-card__meta{margin:0}
.content-card__action{margin-top:auto;padding-top:.9rem}
.content-card--method .card__body{gap:.6rem}
.content-card--doc .card__body{gap:.55rem}
.content-tags{display:flex;flex-wrap:wrap;gap:.4rem;margin:0}

/* ---------- empty states ---------- */
.content-empty{max-width:60ch;margin-inline:auto;display:flex;flex-direction:column;gap:.7rem}
.content-empty p{margin:0}
.content-empty__actions{justify-content:center;margin-top:.4rem}

/* ---------- guides (grouped on the hub, listed on a topic page) ---------- */
.content-group{border-top:1px solid var(--line);padding-top:1.5rem;margin-top:2rem}
.content-group:first-of-type{margin-top:0}
.content-group__head{display:flex;flex-direction:column;gap:.3rem}
.content-group__head h2{font-size:var(--step-2)}
.content-group__head h2 a{text-decoration:none}
.content-group__desc{max-width:66ch;margin:0}
.content-group__foot{margin-top:.9rem}
.content-guides{list-style:none;margin:1.1rem 0 0;padding:0;display:grid;gap:.9rem}
.content-guide{
  border:1px solid var(--line);border-radius:var(--radius);background:var(--paper);
  padding:1rem 1.1rem;display:flex;flex-direction:column;gap:.4rem;
}
.content-guide:hover{border-color:var(--line-strong)}
.content-guide__title{font-size:var(--step-1);letter-spacing:-.01em}
.content-guide__title a{text-decoration:none}
.content-guide__answer{margin:0;color:var(--ink-2);font-size:.9375rem;line-height:1.55;max-width:70ch}
.content-guide__meta{margin:0}

/* ---------- one guide ---------- */
.content-lead{
  border-left:3px solid var(--brand);background:var(--brand-tint);
  border-radius:0 var(--radius) var(--radius) 0;padding:1rem 1.15rem;
  display:flex;flex-direction:column;gap:.35rem;max-width:72ch;
}
.content-lead__label{
  font-size:.75rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  color:var(--brand-dark);margin:0;
}
.content-lead__text{margin:0;font-size:var(--step-1);line-height:1.5;color:var(--ink)}
.content-scope{
  border:1px dashed var(--line-strong);border-radius:var(--radius);
  padding:.9rem 1.05rem;max-width:72ch;background:var(--sand);
}
.content-scope__title{font-size:var(--step--1);font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-3);margin-bottom:.3rem}
.content-scope p{margin:0;color:var(--ink-2);font-size:.9375rem;line-height:1.55}

/* ---------- two-column reading layouts ----------
   The method page is deliberately not in this group: it reads as one column, with width spent on the
   blocks that are made of cells (see the method block at the end of this file). */
.content-guide-layout,
.content-case,
.content-topic{display:grid;gap:clamp(1.5rem,4vw,2.75rem)}
.content-guide-layout__main,
.content-case__main,
.content-topic__main{min-width:0}
@media (min-width:960px){
  .content-guide-layout{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr)}
  .content-case{grid-template-columns:minmax(0,1.55fr) minmax(0,1fr)}
  .content-topic{grid-template-columns:minmax(0,1.75fr) minmax(0,1fr)}
  .content-guide-layout__aside,
  .content-case__aside,
  .content-topic__aside{position:sticky;top:5.5rem;align-self:start}
}
.content-prose{max-width:var(--maxw-narrow)}
.content-split{display:grid;gap:1rem}
@media (min-width:720px){.content-split{grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr))}}

/* ---------- blocks inside a single record ---------- */
.content-block{display:flex;flex-direction:column;gap:.6rem;min-width:0}
.content-block h2{font-size:var(--step-2)}
.content-block h3{font-size:var(--step-1)}
.content-block__head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:.5rem 1rem;margin-bottom:1rem}
.content-block__head h2{margin:0}
.content-client{max-width:60ch}
.content-facts{margin-top:.35rem}
.content-list{margin:0;padding-left:1.15rem;display:grid;gap:.45rem;color:var(--ink-2);max-width:72ch}
.content-list li{line-height:1.55}
.content-list--prepare{max-width:66ch}
.content-steps{list-style:none;margin:0;padding:0;display:grid;gap:.85rem;counter-reset:content-step}
.content-steps>li{
  position:relative;padding-left:2.2rem;counter-increment:content-step;
  color:var(--ink-2);line-height:1.55;max-width:70ch;
}
.content-steps>li::before{
  content:counter(content-step);position:absolute;left:0;top:0;
  width:1.55rem;height:1.55rem;border-radius:var(--radius-pill);
  background:var(--brand-tint);color:var(--brand-dark);
  font-size:.75rem;font-weight:700;display:grid;place-items:center;
}
.content-figures{list-style:none;margin:0;padding:0;display:grid;gap:.75rem;grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr))}
.content-figure{margin:0;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:var(--sand)}
.content-figure__img{width:100%;height:100%;object-fit:cover;aspect-ratio:4/3}

/* ---------- side panels ---------- */
.content-panel{
  background:var(--paper);border:1px solid var(--line);border-radius:var(--radius-lg);
  padding:1.1rem 1.2rem;display:flex;flex-direction:column;gap:.7rem;min-width:0;
}
.content-panel--sand{background:var(--sand)}
.content-panel--ok{background:#E8F3EE;border-color:#CBE3D8}
.content-panel__title{font-size:var(--step-1)}
.content-links{list-style:none;margin:0;padding:0;display:grid;gap:.55rem}
.content-links li{display:flex;flex-direction:column;gap:.1rem;min-width:0}
.content-links a{font-weight:560;text-decoration:none;border-bottom:1px solid var(--line-strong);align-self:flex-start}
.content-links a:hover{border-bottom-color:var(--brand)}
.content-links__note{display:block;line-height:1.45}
.content-back{margin-top:1.5rem}

/* ---------- topic pages ---------- */
.content-topic__aside{display:flex;flex-direction:column;gap:.6rem}

/* ---------- hub blocks ---------- */
.content-hubcard{
  display:grid;gap:1.25rem;align-items:start;
  border:1px solid var(--line);border-radius:var(--radius-lg);padding:clamp(1.1rem,2.5vw,1.75rem);
  background:var(--sand);
}
@media (min-width:860px){.content-hubcard{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)}}
.content-hubcard__text{display:flex;flex-direction:column;gap:.7rem}
.content-explanation,.content-explain__grid{display:grid;gap:1.25rem}
@media (min-width:720px){.content-explain__grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,18rem),1fr))}}
.content-requested{padding-top:0}

/* ---------- the download gate ----------
   A button, then the email form inside the shared disclosure panel. The form reuses .form-inquiry,
   .field and .form-actions from forms.css; only the wrapper and the spacing are new. */
.content-gate{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem .8rem;margin-top:.4rem}
.content-gate--direct{gap:.6rem}
.content-gate--empty{margin:0;max-width:50ch;line-height:1.5}
.content-gate__open{flex:0 0 auto}
.content-gate__meta{line-height:1.4}
.content-gate__inner{
  display:flex;flex-direction:column;gap:.9rem;margin-top:.9rem;
  border-top:1px solid var(--line);padding-top:.9rem;
}
.content-gate__note{
  margin:0;font-size:var(--step--1);line-height:1.5;color:var(--ink-2);max-width:58ch;
}
.content-gate__form{display:flex;flex-direction:column;gap:.9rem;min-width:0}
.content-gate__form .form-actions{border-top:0;padding-top:0}
.content-gate__form .field>input{max-width:26rem}

/* The disclosure panel is animated by the behaviour runtime, so nothing here may set its height. */
.content-gate [data-panel]{min-width:0}
.content-gate>[data-trigger]{cursor:pointer}

/* ---------- focus ---------- */
.content-chip:focus-visible,
.content-guide__title a:focus-visible,
.content-links a:focus-visible,
.content-gate__open:focus-visible{outline:2px solid var(--focus);outline-offset:3px;border-radius:var(--radius-sm)}

/* ---------- one decoration method, in full ----------
   The hero photograph, the two columns that show what one colour and several colours look like, the
   cost lines, the comparison table, the steps, the case panels and the questions. Every block is
   read from the term's own fields; the only rules here are how they sit on the page and what an
   empty image slot looks like to the editor who is reviewing it. */
.method-actions{margin-top:.4rem}
.method-figure{
  margin:0;border:1px solid var(--line);border-radius:var(--radius);
  overflow:hidden;background:var(--sand);
}
.method-figure__img{display:block;width:100%;height:100%;object-fit:cover;aspect-ratio:16/10}
.method-figure--hero{margin-top:1.25rem}
.method-figure--hero .method-figure__img{aspect-ratio:21/9}
.method-figure--empty{border-style:dashed;border-color:var(--line-strong);background:var(--page)}
.method-figure--empty .method-figure__placeholder{
  aspect-ratio:16/10;border-radius:0;line-height:1.4;padding:1rem;text-align:center;
  font-size:.75rem;letter-spacing:.04em;
}
.method-figure--hero.method-figure--empty .method-figure__placeholder{aspect-ratio:21/9}
.method-pair .content-panel{gap:.55rem}
.method-pair .method-figure{margin-bottom:.15rem}

/* The cost lines are read as a strip of cells (see .method-facts-grid below). */

.method-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
.content-compare{min-width:34rem}
.content-compare th[scope="row"]{font-weight:620;color:var(--ink);text-transform:none;letter-spacing:0;font-size:var(--step-0);vertical-align:top}
.content-compare td,.content-compare th{vertical-align:top;line-height:1.5}
.content-compare td:not(:first-child),
.content-compare th:not(:first-child){text-align:left}
.content-compare td{color:var(--ink-2)}

.method-steps>li strong{color:var(--ink);font-weight:620}

.method-cases{grid-template-columns:minmax(0,1fr)}
@media (min-width:56rem){.method-cases{grid-template-columns:repeat(auto-fit,minmax(min(100%,18rem),1fr))}}
.method-case{gap:.85rem}
.method-case--empty{border-style:dashed;border-color:var(--line-strong);background:var(--page)}
.method-case__block{display:flex;flex-direction:column;gap:.15rem}
.method-case__label{
  margin:0;font-size:var(--step--1);font-weight:700;letter-spacing:.06em;
  text-transform:uppercase;color:var(--ink-3);
}
.method-case__figures{grid-template-columns:repeat(auto-fit,minmax(min(100%,9rem),1fr))}
.method-case__figures .method-figure__img{aspect-ratio:4/3}
.method-case__figures .method-figure--empty .method-figure__placeholder{aspect-ratio:4/3}
.method-case__cost{margin-top:.15rem}
.method-faq .pages-faq__items{margin-top:.35rem}

/* The services line under the method narrative. Every method page shares the same three services,
   so this is one line of links rather than three cards; the wrapper already supplies the gap. */
.method-services{margin:0}
.method-services a{text-decoration:underline;text-underline-offset:.15em}

/* ── First screen: the method on the left, the printed result on the right ──────────────
   Two columns on a wide window and one column on a phone, copy first: a reader on a narrow screen
   wants to know what the method is before seeing what it made. The image frame is 4/3 rather than
   the full-width 21/9 band it used to be, so it reads as a picture beside the text, not a banner.
   `.method-hero--solo` is the method that has no hero image yet: one column, no empty half. */
.method-hero{display:grid;gap:1.25rem;align-items:center}
.method-hero__copy{min-width:0}
.method-hero__media{min-width:0}
.method-hero .method-figure--hero{margin-top:0}
.method-hero .method-figure--hero .method-figure__img,
.method-hero .method-figure--hero .method-figure__placeholder{aspect-ratio:4/3}
@media (min-width:56rem){
  .method-hero{grid-template-columns:minmax(0,1.02fr) minmax(0,1fr);gap:2.5rem}
  .method-hero.method-hero--solo{grid-template-columns:minmax(0,1fr)}
}

/* ── Product cards inside a method page ────────────────────────────────────────────────
   Two by two rather than a strip, and shorter than the catalogue card: on this page the grid is a
   sample of what the method prints, so the card keeps the four things a buyer scans — image, name,
   MOQ with the production window on one line, reference price — and leaves the rest to the product
   page. Scoped to .method-products, which only taxonomy-method.php puts on its grid, so the shared
   card keeps its own shape everywhere else. */
.method-products{grid-template-columns:repeat(2,minmax(0,1fr));gap:1.1rem}
@media (min-width:68rem){.method-products{grid-template-columns:repeat(4,minmax(0,1fr))}}
.method-products .cat-card .card__media{aspect-ratio:4/3}
.method-products .cat-card__title{min-height:0}
.method-products .cat-card__facts{
  display:flex;flex-wrap:wrap;align-items:baseline;gap:.1rem .9rem;
  margin-top:.15rem;padding-top:.45rem;
}
.method-products .cat-card__fact{display:flex;gap:.32rem;align-items:baseline}
.method-products .cat-card__fact dd{display:block;overflow:visible}
.method-products .cat-card__fact dt{white-space:nowrap}
.method-products .cat-card__price{padding-top:.55rem}
.method-products .cat-card__actions{margin-top:.6rem}
.method-products .cat-card__actions>*{flex:1 1 100%}
@media (max-width:26rem){
  .method-products{grid-template-columns:minmax(0,1fr)}
}

/* ── The method page: one column, and width spent on the blocks ────────────────────────
   The page explains one process and is mostly prose. Beside a permanent narrow rail it read as a
   single wall: eleven blocks of the same width, one after another, with six screens of empty rail
   next to them. So the two-column frame is gone. Prose keeps a reading measure; the blocks that are
   made of cells — the spec strip, the cost lines, the comparison table, the photograph pair, the
   steps, the cases, the product grid — take the full width, which is what gives the page its
   rhythm. The price panel sits inside the cost band, and the closing band carries the quote. */

/* A prose block that should not run the full 1240px: headings and one-line notes stay aligned with
   the measure used by the panels beside them. */
.method-measure{max-width:var(--maxw-narrow)}

/* Spec strip and cost lines: label above value, cells across the width instead of one row each.
   `.facts` is a label/value row list by default; inside a strip each cell becomes a column, so
   five specs read as one band rather than five stacked rows. */
.method-facts-grid{
  grid-template-columns:repeat(auto-fit,minmax(min(100%,12.5rem),1fr));
  gap:1rem 1.6rem;margin-top:.35rem;
}
.method-facts-grid>div{
  display:flex;flex-direction:column;gap:.2rem;
  padding:0 0 .7rem;border-bottom:1px solid var(--line);
}
.method-facts-grid dt{color:var(--ink-3);font-size:var(--step--1);line-height:1.35}
.method-facts-grid dd{margin:0;font-weight:520;line-height:1.45;color:var(--ink)}

/* The cost lines and the price panel the quote calculator uses, in one band. */
.method-cost-band{display:grid;gap:1.5rem}
.method-cost-band__main{display:flex;flex-direction:column;gap:.8rem;min-width:0}
.method-cost-band__side{gap:.6rem}
.method-cost-band.method-cost-band--solo{grid-template-columns:minmax(0,1fr)}
.method-cost-band--solo .method-cost-band__side{max-width:32rem}
@media (min-width:56rem){
  .method-cost-band{grid-template-columns:minmax(0,1.85fr) minmax(0,1fr);gap:2.2rem;align-items:start}
}

/* The steps read across the width as numbered cells on a wide window, and as a numbered list on
   a phone, where a row of five short cells would break mid-sentence. */
@media (min-width:56rem){
  .method-steps{grid-template-columns:repeat(auto-fit,minmax(min(100%,10.5rem),1fr));gap:1.2rem 1.6rem}
  .method-steps>li{max-width:none;padding-left:0;padding-top:2.3rem}
  .method-steps>li::before{top:0;left:0}
}

/* The closing band: the artwork note and the quote, across the page rather than in a rail. */
.method-cta{
  display:grid;gap:1rem;align-items:center;
  background:var(--sand);border:1px solid var(--line);border-radius:var(--radius-lg);
  padding:1.35rem 1.5rem;
}
.method-cta h2{font-size:var(--step-1);margin:0}
.method-cta .note{margin:.35rem 0 0;max-width:56ch}
.method-cta__actions{margin:0}
@media (min-width:56rem){
  .method-cta{grid-template-columns:minmax(0,1.7fr) auto;gap:2rem;padding:1.6rem 1.8rem}
  .method-cta__actions{justify-content:flex-end}
}
