/* ===========================================================================
   SLOTS — a named hole in a page
   ===========================================================================

   A slot stands where something that does not exist yet will go, and names
   what to produce and its specs. Visitors never see one: slots appear only
   while <html> carries data-slots="draft", which scripts/slots.js sets from
   ?draft=1 and remembers in localStorage.

     <page>.html            the live page, no holes
     <page>.html?draft=1    every slot, with specs
     <page>.html?draft=0    back to live

   A section whose only evidence is a slot carries `section--wip` and is
   hidden whole on the live page, because a section that promises and shows
   nothing is worse than one that is absent.

   This started on pages/pipeline.html and moved here when the case studies
   needed it too — see PATTERNS.md and PIPELINE-SLOTS.md.
   =========================================================================== */

/* --- draft chrome --------------------------------------------------------- */

.draft-bar,
.slot { display: none; }

:root[data-slots="draft"] .draft-bar { display: block; }
:root[data-slots="draft"] .slot { display: block; }
:root[data-slots="draft"] .section--wip { display: block; }

.section--wip { display: none; }

.draft-bar {
  padding: 10px 0;
  background: var(--accent-amber-soft);
  border-bottom: 1px solid var(--accent-amber);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
}

.draft-bar .container { display: flex; align-items: baseline; gap: 9px; }
.draft-bar strong { color: var(--accent-amber); }

.draft-bar code {
  font-family: var(--mono);
  font-size: 12px;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(0, 0, 0, .25);
}

.draft-dot {
  flex: none;
  width: 7px; height: 7px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--accent-amber);
}

/* A slot is deliberately not pretty. It is a hole in the page with a label
   on it, and it should read as unfinished at a glance — the moment a slot
   looks designed, it stops being obvious that something is missing. */
.slot { margin-top: var(--s-32); }

.slot-box {
  padding: var(--s-24) var(--s-24) var(--s-20);
  border: 1.5px dashed var(--stroke-strong);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .015);
}

.slot-layer {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-amber);
  margin-bottom: 7px;
}

.slot-name {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--accent-text);
  margin-bottom: var(--s-8);
}

.slot-why {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 68ch;
  margin-bottom: var(--s-16);
}

.slot-spec {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 7px;
}

.slot-spec li {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
  padding-left: var(--s-16);
  position: relative;
}

.slot-spec li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 5px; height: 5px;
  border: 1px solid var(--accent-amber);
  border-radius: 1px;
}

.slot-spec code {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--accent-text);
  overflow-wrap: anywhere;
}

.slot-note {
  margin-top: var(--s-16);
  padding-top: var(--s-12);
  border-top: 1px solid var(--stroke);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-faint);
}

.slot-note strong { color: var(--text-muted); }

.slot-note code {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
}
