/* Consult site · HTML/CSS illustrations (Mac call, Before you hang up).
   Append to assets/site.css or load after it. CSP-safe: no inline styles.
   Each illustration scales like an image: sizes are in em, and the em is set from
   the figure's width with container query units (fallback: fixed 11px). */

/* ---- New tokens (attention amber), light then dark ---- */
:root {
  --warn: #b45309;                       /* 4.9:1 on ivory */
  --warn-soft: rgba(217, 119, 6, 0.10);
  --warn-line: rgba(217, 119, 6, 0.32);
}
@media (prefers-color-scheme: dark) {
  :root {
    --warn: #f59e0b;
    --warn-soft: rgba(245, 158, 11, 0.12);
    --warn-line: rgba(245, 158, 11, 0.30);
  }
}

.i-eye-off { -webkit-mask-image: url(icons/eye-off.svg); mask-image: url(icons/eye-off.svg); }

/* ---- Shared frame ---- */
.ill {
  container-type: inline-size;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-card-lg);
  background: var(--surface-2);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.ill-stage {
  font-size: 11px;
  font-family: var(--font-text);
  color: var(--text);
  line-height: 1.35;
  position: relative;
}
@supports (width: 1cqi) {
  .ill-mac .ill-stage { font-size: 2.1cqi; }   /* 13.4px at 640px wide */
  .ill-byhu .ill-stage { font-size: 2cqi; }    /* 12.8px at 640px wide */
}
.ill p { margin: 0; }

/* =========================================================
   1 · Consult for Mac beside a video call   (16:10)
   ========================================================= */
.ill-mac .ill-stage {
  aspect-ratio: 16 / 10;
  padding: 1.4em;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 17em;
  gap: 1.1em;
}

/* Generic call window: no app branding */
.mac-call {
  display: flex; flex-direction: column;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 0.9em;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.mac-bar {
  display: flex; align-items: center; gap: 0.8em;
  height: 2.2em; padding: 0 0.9em; flex: none;
  border-bottom: 1px solid var(--border);
}
.mac-dots { display: inline-flex; gap: 0.4em; }
.mac-dots span { width: 0.7em; height: 0.7em; border-radius: 50%; background: var(--border-strong); }
.mac-title { font-size: 0.85em; color: var(--text-2); font-variant-numeric: tabular-nums; }
.mac-video {
  position: relative; flex: 1; min-height: 0;
  margin: 0.7em; border-radius: 0.6em;
  background: var(--surface-3);
  display: flex; align-items: center; justify-content: center;
}
.mac-av {
  width: 4.4em; height: 4.4em; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-1); color: var(--text-2);
  font-size: 1.2em; font-weight: 600; letter-spacing: 0.02em;
}
.mac-name {
  position: absolute; left: 0.7em; bottom: 0.7em;
  padding: 0.25em 0.6em; border-radius: 0.4em;
  background: var(--surface-1); color: var(--text);
  font-size: 0.8em; font-weight: 500;
}
.mac-self {
  position: absolute; right: 0.7em; bottom: 0.7em;
  width: 7em; aspect-ratio: 16 / 10; border-radius: 0.5em;
  background: var(--surface-2); border: 1px solid var(--border-strong);
  display: flex; align-items: flex-end; padding: 0.35em 0.45em;
  font-size: 0.75em; color: var(--text-2);
}
.mac-tools { display: flex; justify-content: center; gap: 0.6em; padding: 0 0 0.8em; flex: none; }
.mac-tools span { width: 2.2em; height: 2.2em; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border); }
.mac-tools .end { width: 3.6em; border-radius: 999px; background: color-mix(in srgb, var(--text-2) 35%, var(--surface-2)); border-color: transparent; }

/* Consult companion panel */
.mac-panel {
  display: flex; flex-direction: column; gap: 0.8em;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.9em;
  padding: 0.9em;
  box-shadow: var(--shadow-soft);
  min-height: 0;
}
.mp-head { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 0.45em 0.55em; padding-bottom: 0.7em; border-bottom: 1px solid var(--border); }
.mp-head .mp-mark { width: 1.5em; height: 1.5em; }
.mp-title { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.mp-title b { font-size: 0.9em; font-weight: 600; line-height: 1.25; }
.mp-title span { font-size: 0.75em; color: var(--text-2); font-variant-numeric: tabular-nums; }
.mp-pill {
  margin-left: 2.85em; flex: none; /* aligns under the title: (1.5em mark + 0.55em gap) / 0.72 */
  padding: 0.2em 0.6em; border-radius: 999px;
  border: 1px solid var(--border-strong); color: var(--text-2);
  font-size: 0.72em; font-weight: 500; font-variant-numeric: tabular-nums;
}
.mp-label { font-size: 0.68em; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); }

.mp-card {
  background: var(--bg);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--border));
  border-radius: 0.8em; padding: 0.8em;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 20%, transparent);
  display: flex; flex-direction: column; gap: 0.55em;
}
.mp-card .chip { font-size: 0.66em; padding: 0.2em 0.6em; border-radius: 0.45em; }
.mp-card .urg span { width: 0.42em; height: 0.42em; }
.mp-q { font-size: 0.95em; font-weight: 500; line-height: 1.38; }
.mp-why { font-size: 0.8em; color: var(--text-2); line-height: 1.4; }
.mp-foot { display: flex; align-items: center; gap: 0.4em; padding-top: 0.55em; border-top: 1px solid var(--border); }
.mp-time { margin-right: auto; display: inline-flex; align-items: center; gap: 0.35em; font-size: 0.75em; color: var(--text-2); font-variant-numeric: tabular-nums; }
.mp-foot .act { width: 2em; height: 2em; border-radius: 0.5em; font-size: 0.9em; }

.mp-hidden {
  margin-top: auto;
  display: flex; align-items: center; gap: 0.45em;
  padding: 0.5em 0.65em; border-radius: 0.55em;
  background: var(--surface-1); border: 1px solid var(--border);
  font-size: 0.75em; color: var(--text-2);
}
.mp-hidden .icon { color: var(--text-2); }

/* =========================================================
   2 · Before you hang up rail   (4:3, replaces the During shot)
   ========================================================= */
.ill-byhu .ill-stage {
  aspect-ratio: 4 / 3;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  background: var(--bg);
}

/* Notes page, left (the consultant's lane) */
.byhu-page {
  background-color: var(--surface-1);
  background-image: repeating-linear-gradient(to bottom, transparent 0 2.4em, var(--rule) 2.4em calc(2.4em + 1px));
  background-position: 0 4.2em;
  border-right: 1px solid var(--border);
  padding: 1.3em 1.4em;
  overflow: hidden;
}
.byhu-meta { font-size: 0.78em; color: var(--text-2); height: 3.6em; font-variant-numeric: tabular-nums; }
.byhu-ink { font-family: var(--font-hand); color: var(--ink); font-size: 1.25em; line-height: calc(2.4em / 1.25); }
.byhu-ink .mid { color: var(--ink-mid); }

/* Rail, right (Consult's lane) */
.byhu-rail {
  position: relative;
  display: flex; flex-direction: column; gap: 0.8em;
  padding: 1.1em 1.2em 0;
  overflow: hidden;
  min-height: 0;
}
.byhu-head { display: flex; align-items: center; gap: 0.8em; }
.byhu-title { font-family: var(--font-display); font-size: 1.15em; font-weight: 600; letter-spacing: -0.01em; }
.byhu-back {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 0.35em;
  padding: 0.4em 0.8em; border-radius: 0.6em;
  background: var(--surface-1); border: 1px solid var(--border-strong);
  font-size: 0.8em; font-weight: 600; color: var(--text);
}
.byhu-strip {
  display: flex; align-items: flex-start; gap: 0.55em;
  padding: 0.65em 0.8em; border-radius: 0.7em;
  background: var(--warn-soft); border: 1px solid var(--warn-line);
  font-size: 0.82em; line-height: 1.4; color: var(--text);
}
.byhu-strip .icon { color: var(--warn); margin-top: 0.15em; }

.byhu-list { display: flex; flex-direction: column; gap: 0.6em; }
.byhu-row {
  display: flex; flex-direction: column; gap: 0.5em;
  padding: 0.75em 0.8em; border-radius: 0.75em;
  background: var(--surface-1); border: 1px solid var(--border);
}
.byhu-row .chip { align-self: flex-start; font-size: 0.66em; padding: 0.2em 0.6em; border-radius: 0.45em; }
.byhu-q { font-size: 0.9em; font-weight: 500; line-height: 1.38; }
.byhu-acts { display: flex; gap: 0.4em; }
.byhu-act {
  display: inline-flex; align-items: center; gap: 0.35em;
  padding: 0.3em 0.65em; border-radius: 0.5em;
  border: 1px solid var(--border); background: var(--bg);
  font-size: 0.75em; font-weight: 600; color: var(--text-2);
}
.byhu-act.asked { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 30%, var(--border)); }
.byhu-act.save { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 30%, var(--border)); }

/* Scroll fade at the bottom of the rail (design system: fades, not scrims) */
.byhu-rail::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 5em;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}
