/* Damos en el Blanco — pàgines del paquet d'estratègia 2026-11 ([deb_s11_page]).
   Només s'encua a les pàgines que contenen el shortcode (inc/strategy-2026-11/pages.php).
   Reutilitza el DS (.deb-kicker, .deb-splittitle, .deb-rc__grid/.deb-rc__card, .deb-faq,
   .deb-btn, .deb-alink, .deb-test); aquí només hi ha el que és propi. Només tokens. */

.deb-s11 {
  padding: clamp(3rem, 7vw, 6rem) var(--page-margin) var(--space-16);
  color: var(--text);
}
.deb-s11 *,
.deb-s11 *::before,
.deb-s11 *::after { box-sizing: border-box; }

/* ---- Capçalera --------------------------------------------------------- */
.deb-s11__head { max-width: 62rem; }
.deb-s11__title {
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
  font-size: clamp(2.4rem, 6.4vw, 5.4rem);
  line-height: .96;
  letter-spacing: var(--tracking-tighter);
  color: var(--text-strong);
  margin: var(--space-5) 0 0;
  max-width: 18ch;
  overflow-wrap: break-word;
}
.deb-s11__intro {
  font-family: var(--font-mono);
  font-size: var(--text-md);
  line-height: 1.6;
  color: var(--text-muted);
  margin: var(--space-5) 0 0;
  max-width: 56ch;
}

/* ---- Blocs ------------------------------------------------------------- */
.deb-s11-block { margin-top: clamp(3.5rem, 8vw, 6rem); max-width: 72rem; min-width: 0; }
.deb-s11-h2 {
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  line-height: 1.06;
  letter-spacing: var(--tracking-tight);
  color: var(--text-strong);
  margin: 0 0 var(--space-5);
  max-width: 26ch;
  overflow-wrap: break-word;
}
.deb-s11-lead,
.deb-s11-prose p,
.deb-s11-list li,
.deb-s11-step p,
.deb-s11-gloss dd,
.deb-s11-cta__text {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--text-muted);
}
.deb-s11-lead { margin: 0 0 var(--space-6); max-width: 62ch; }
.deb-s11-prose p { margin: 0 0 var(--space-4); max-width: 62ch; }
.deb-s11-prose p:last-child { margin-bottom: 0; }
.deb-s11 a:not(.deb-btn):not(.deb-alink) { color: var(--text-strong); text-decoration: underline; text-underline-offset: 3px; }

/* list */
.deb-s11-list { list-style: none; margin: 0; padding: 0; max-width: 62ch; border-top: 1px solid var(--border-faint); }
.deb-s11-list li { position: relative; padding: 14px 0 14px 28px; border-bottom: 1px solid var(--border-faint); }
.deb-s11-list li::before { content: "✳"; position: absolute; left: 0; top: 14px; color: var(--text-strong); font-size: var(--text-xs); }

/* steps */
.deb-s11-steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.deb-s11-step { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: var(--space-5); padding: var(--space-6) 0; border-bottom: 1px solid var(--border-faint); }
.deb-s11-step__n { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: var(--tracking-caps); color: var(--text-muted); padding-top: .35em; }
.deb-s11-step__t { font-family: var(--font-display); font-weight: var(--fw-medium); font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 1.15; letter-spacing: var(--tracking-tight); color: var(--text-strong); margin: 0 0 var(--space-2); }
.deb-s11-step p { margin: 0; max-width: 62ch; }

/* cards (sobre .deb-rc__grid / .deb-rc__card del DS) */
.deb-s11 .deb-rc__grid { margin-top: 0; }
.deb-s11-card__t { font-family: var(--font-display); font-weight: var(--fw-medium); font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.08; letter-spacing: var(--tracking-tight); color: var(--text-strong); margin: 0; }
.deb-s11 .deb-rc__card p { color: var(--text-muted); }
.deb-s11 .deb-rc__card .deb-alink { margin-top: auto; align-self: flex-start; }

/* table: a mòbil, scroll horitzontal dins del seu contenidor */
.deb-s11-table { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--radius-md); }
.deb-s11-table:focus-visible { outline: none; box-shadow: var(--ring-focus); }
.deb-s11-table table { width: 100%; min-width: 34rem; border-collapse: collapse; font-family: var(--font-mono); font-size: var(--text-xs); line-height: 1.55; }
.deb-s11-table th,
.deb-s11-table td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--border-faint); }
.deb-s11-table th { color: var(--text-strong); font-weight: var(--fw-regular); text-transform: uppercase; letter-spacing: var(--tracking-caps); font-size: var(--text-2xs); background: var(--surface); }
.deb-s11-table td { color: var(--text-muted); }
.deb-s11-table td:first-child { color: var(--text-strong); white-space: nowrap; }
.deb-s11-table tr:last-child td { border-bottom: 0; }

/* glossary */
.deb-s11-gloss { margin: 0; border-top: 1px solid var(--border); }
.deb-s11-gloss__row { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: var(--space-5); padding: var(--space-5) 0; border-bottom: 1px solid var(--border-faint); }
.deb-s11-gloss dt { font-family: var(--font-display); font-weight: var(--fw-medium); font-size: var(--text-lg); line-height: 1.2; color: var(--text-strong); }
.deb-s11-gloss dd { margin: 0; max-width: 62ch; }

/* faq: marcatge de [deb_faq]; aquí sense la línia i el marge de la secció original */
.deb-s11 .deb-s11-faq { padding: 0; margin: 0; border-top: 1px solid var(--border); }
.deb-s11 .deb-faq__q:focus-visible { outline: none; box-shadow: var(--ring-focus); border-radius: 2px; }

/* template: model per copiar */
.deb-s11-tpl { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; max-width: 62rem; }
.deb-s11-tpl__body { margin: 0; padding: var(--space-6); max-height: 26rem; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--font-mono); font-size: var(--text-xs); line-height: 1.75; color: var(--text); background: var(--surface); }
.deb-s11-tpl__body:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--focus-ring); }
.deb-s11-tpl__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: var(--space-4) var(--space-6); border-top: 1px solid var(--border); }
.deb-s11-tpl__status { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-strong); min-height: 1em; }

/* cta de tancament */
.deb-s11-cta { padding-top: var(--space-12); border-top: 1px solid var(--border); }
.deb-s11-cta .deb-s11-h2 { max-width: 22ch; }
.deb-s11-cta__text { margin: 0 0 var(--space-8); max-width: 56ch; }
.deb-s11-cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-6); }

/* note: lletra petita (contrast de --text-muted, no --text-subtle) */
.deb-s11-block--note { margin-top: var(--space-12); }
.deb-s11-note { font-family: var(--font-mono); font-size: var(--text-2xs); line-height: 1.7; color: var(--text-muted); margin: 0; max-width: 72ch; }

/* brand motion com a obertura (el component porta el seu propi CSS) */
.deb-s11-motion { max-width: none; margin-left: calc(-1 * var(--page-margin)); margin-right: calc(-1 * var(--page-margin)); }
.deb-s11-motion .deb-brand-motion { padding-left: var(--page-margin); padding-right: var(--page-margin); }
.deb-s11-motion__caption { font-family: var(--font-mono); font-size: var(--text-xs); line-height: 1.6; letter-spacing: var(--tracking-mono); color: var(--text-muted); margin: var(--space-4) 0 0; padding: 0 var(--page-margin); }

/* [deb_s11_public_work] */
.deb-s11-pw .deb-kicker { margin-bottom: var(--space-4); }
.deb-s11-pw__groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); gap: var(--space-8) var(--space-6); }
.deb-s11-pw__group { border-top: 1px solid var(--border); padding-top: var(--space-4); min-width: 0; }
.deb-s11-pw__t { font-family: var(--font-display); font-weight: var(--fw-medium); font-size: var(--text-lg); line-height: 1.2; color: var(--text-strong); margin: 0 0 var(--space-3); }
.deb-s11-pw__n { display: block; font-family: var(--font-mono); font-weight: var(--fw-regular); font-size: var(--text-2xs); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--text-muted); margin-top: 4px; }
.deb-s11-pw__list { list-style: none; margin: 0; padding: 0; font-family: var(--font-mono); font-size: var(--text-xs); line-height: 1.6; }
.deb-s11-pw__list li { padding: 6px 0; color: var(--text-muted); overflow-wrap: anywhere; }
.deb-s11 .deb-s11-pw__list a { color: var(--text-strong); }
.deb-s11-pw__all { margin: var(--space-8) 0 0; }

/* test municipal: el .deb-test de /test/ porta el seu propi padding de pàgina */
.deb-s11 .deb-s11-test { padding: 0; min-height: 0; max-width: 1000px; margin-top: clamp(2.5rem, 6vw, 4.5rem); }

/* ---- Guarda [[CONFIRMAR]] (només la veu qui té sessió amb edit_pages) ---- */
.deb-s11-notice { margin: 0 0 var(--space-8); padding: 12px 16px; border: 1px dashed var(--warning); border-radius: var(--radius-sm); font-family: var(--font-mono); font-size: var(--text-xs); line-height: 1.6; color: var(--text-strong); max-width: 72ch; }
.deb-s11-notice--soft { margin: var(--space-8) 0 0; border-color: var(--border-strong); color: var(--text-muted); }
mark.deb-s11-confirm { background: var(--warning); color: var(--ink-950, #111); padding: 0 .25em; border-radius: 2px; font-family: var(--font-mono); font-size: .85em; }

/* ---- Mòbil -------------------------------------------------------------- */
@media (max-width: 700px) {
  .deb-s11-step { grid-template-columns: 2.75rem minmax(0, 1fr); gap: var(--space-3); }
  .deb-s11-gloss__row { grid-template-columns: minmax(0, 1fr); gap: var(--space-2); }
  .deb-s11-tpl__body { padding: var(--space-4); }
  .deb-s11-tpl__actions { padding: var(--space-4); }
  .deb-s11-cta__actions { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .deb-s11 .deb-rc__card:hover { transform: none; }
}
