/* Shared components: buttons, badges, forms, interview paper, quotes, reader, sealed sheets, axis graphic. */

/* ---------- icons ---------- */
.icon { display: inline-grid; place-items: center; width: 1.1em; height: 1.1em; flex: none; vertical-align: -0.15em; }
.icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
/* The emblems are one monoline set at every size: strokes are screen pixels (1.5, thin 1, bold 2),
   not units scaled with the drawing. Knock-out discs take the medal's own background. */
.emblem { display: block; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.emblem * { vector-effect: non-scaling-stroke; }
.emblem .fill-soft { fill: color-mix(in srgb, currentColor 14%, transparent); }
.emblem .fill-solid { fill: currentColor; stroke: none; }
.emblem .thin { stroke-width: 1; }
.emblem .bold { stroke-width: 2; }
.emblem .knock { fill: var(--medal-bg, #fff); }
.emblem .dash { stroke-dasharray: 2 3; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms var(--ease), border-color 180ms, color 180ms, box-shadow 180ms;
}
.btn-sm { min-height: 40px; padding: 7px 14px; font-size: .95rem; border-radius: var(--radius-sm); }
@media (max-width: 1023px) { .btn-sm { min-height: 44px; } }
.btn-primary { background: var(--cool); color: #fff; }
.btn-primary:hover { background: var(--cool-ink); color: #fff; }
/* white on --warm is 3.98:1, below AA for 16px text: the human-side buttons use the deeper amber
   (--warm-ink, about 6.1:1); --warm stays for lines, dots and graphics */
.btn-warm { background: var(--warm-ink); color: #fff; }
.btn-warm:hover { background: #74440A; color: #fff; }
.btn-ghost { background: #fff; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--text-2); color: var(--text); }
.btn-quiet { background: transparent; color: var(--text-2); }
.btn-quiet:hover { color: var(--text); background: rgba(22, 24, 29, .04); }
.btn-danger { background: #fff; color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, #fff); }
.btn-danger:hover { background: var(--danger-soft); color: var(--danger); }
.btn-danger-solid { background: var(--danger); color: #fff; }
.btn-danger-solid:hover { background: #8f1c13; color: #fff; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: #fff;
  color: var(--text);
  transition: border-color 160ms, background-color 160ms, color 160ms;
}
.icon-btn .icon { width: 20px; height: 20px; }
.icon-btn:hover:not(:disabled) { border-color: var(--text-2); }
.icon-btn:disabled { opacity: .35; }
.icon-btn-main { width: 54px; height: 54px; background: var(--cool); border-color: var(--cool); color: #fff; }
.icon-btn-main:hover:not(:disabled) { background: var(--cool-ink); border-color: var(--cool-ink); }

.chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-2);
  background: #fff;
  color: var(--text-2);
  font-size: .94rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 160ms, background-color 160ms, color 160ms;
}
.chip-btn:hover { border-color: var(--text-2); color: var(--text); }
.chip-btn[aria-pressed="true"] { background: var(--cool-soft); border-color: var(--cool); color: var(--cool-ink); }
.live-btn { border-color: color-mix(in srgb, var(--cool) 45%, #fff); color: var(--cool-ink); }

/* a segmented control on a soft track; the chosen segment is a white key, not a black pill */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--bg-soft); padding: 3px; }
.seg button {
  min-height: 38px;
  min-width: 52px;
  padding: 4px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: none;
  color: var(--text-2);
  font-size: .92rem;
  font-weight: 600;
}
.seg button[aria-checked="true"] { background: #fff; color: var(--text); border-color: var(--line-2); box-shadow: 0 1px 2px rgba(22, 24, 29, .08); }
@media (max-width: 1023px) { .seg button { min-height: 44px; } }

/* ---------- badges, chips, callouts ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
  border: 1px solid transparent;
}
.badge .icon { width: 13px; height: 13px; }
.badge-ok { background: var(--ok-soft); color: #17664A; }
/* quiet status marks: a kept/populated state, and information that is not an error (a brittle axis) */
.badge-kept { background: #fff; color: var(--text-2); border-color: var(--line-2); }
.badge-kept .icon { color: var(--cool); }
.badge-quiet { background: transparent; color: var(--text-2); border: 1px dashed var(--line-2); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-warm { background: var(--warm-soft); color: var(--warm-ink); }
.badge-cool { background: var(--cool-soft); color: var(--cool-ink); }
.badge-muted { background: var(--bg-soft); color: var(--text-2); border-color: var(--line); }
.badge-outline { background: #fff; color: var(--text-2); border-color: var(--line-2); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--line);
  font-size: .93rem;
  color: var(--text);
  line-height: 1.45;
}

.callout {
  padding: 16px 20px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  color: var(--text-2);
}
.callout h4 { font-family: var(--f-body); font-size: 1rem; margin-bottom: 6px; color: var(--text); }
.callout-warm { background: var(--warm-wash); border-color: color-mix(in srgb, var(--warm) 25%, #fff); color: var(--text); }
.callout-cool { background: var(--cool-soft); border-color: color-mix(in srgb, var(--cool) 22%, #fff); color: var(--text); }
.callout-danger { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 25%, #fff); color: var(--text); }

.form-status { margin: 0; font-size: .95rem; color: var(--ok); min-height: 1.4em; }
.form-status.is-error { color: var(--danger); }

/* ---------- forms ---------- */
.check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; line-height: 1.55; }
.check input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: var(--warm);
  cursor: pointer;
}
.consent-box {
  padding: 18px 20px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  margin-bottom: 22px;
}
.survey-items { border: 0; margin: 0; padding: 0; min-width: 0; }
/* before consent only the answer keys are dimmed: the questions stay readable at full contrast */
.survey-items:disabled .lk-opt span { opacity: .5; background: var(--bg-soft); }
.survey-items:disabled .ta { opacity: .6; }
.consent-hint { margin: 10px 0 0; padding-inline-start: 34px; font-size: .9rem; color: var(--text-2); }
.survey-items > legend { font-family: var(--f-display); font-size: 1.35rem; font-weight: 700; margin-bottom: 14px; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.temp-badge {
  font-family: var(--f-body);
  font-size: .8rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--warm-soft);
  color: var(--warm-ink);
}
.lk { border: 0; padding: 18px 0; margin: 0; border-bottom: 1px solid var(--line); min-width: 0; }
.lk:last-of-type { border-bottom: 0; }
.lk-q { font-weight: 600; font-size: 1.02rem; padding: 0; margin-bottom: 12px; line-height: 1.5; }
.lk-scale { display: flex; gap: 8px; }
.lk-opt { position: relative; flex: 1; max-width: 64px; }
.lk-opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.lk-opt span {
  display: grid;
  place-items: center;
  height: 46px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-2);
  background: #fff;
  font-weight: 600;
  color: var(--text-2);
  transition: background-color 150ms, border-color 150ms, color 150ms;
}
.lk-opt input:hover + span { border-color: var(--text-2); }
.lk-opt input:checked + span { background: var(--warm-ink); border-color: var(--warm-ink); color: #fff; }
.lk-opt input:focus-visible + span { outline: 2px solid var(--cool); outline-offset: 2px; }
.lk-ends { display: flex; justify-content: space-between; max-width: calc(5 * 64px + 32px); margin-top: 6px; font-size: .8rem; color: var(--text-3); }
.form-actions, .data-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; }
.data-actions { margin-top: 28px; }

.ta, .tx {
  width: 100%;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 12px 14px;
  line-height: 1.6;
  color: var(--text);
  transition: border-color 160ms, box-shadow 160ms;
}
.ta { min-height: 130px; resize: vertical; }
.tx { min-height: 46px; }
.ta:focus, .tx:focus { outline: none; border-color: var(--cool); box-shadow: 0 0 0 3px var(--cool-soft); }
/* the visible ring DESIGN.md asks for (2px --cool, 2px offset), for keyboard focus */
.ta:focus-visible, .tx:focus-visible { outline: 2px solid var(--cool); outline-offset: 2px; }
.ta::placeholder, .tx::placeholder { color: #8A8E97; }
.field { display: grid; gap: 6px; }
.field-label { font-weight: 600; font-size: .98rem; }

/* ---------- interview paper ---------- */
.doc-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  padding: 24px clamp(18px, 2.4vw, 30px) 20px;
}
.doc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--paper-line); }
.doc-name { font-size: 1.4rem; }
.doc-meta { margin: 2px 0 0; color: var(--text-2); font-size: .92rem; }
.doc-body { position: relative; }
.doc-card.is-clamped .doc-body { max-height: 380px; overflow: hidden; }
.doc-card.is-clamped .doc-body::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 90px;
  background: linear-gradient(to bottom, rgba(251, 248, 241, 0), var(--paper));
}
.doc-more { margin-top: 10px; }
.turn { display: flex; gap: 12px; margin: 0 0 12px; }
.turn .who {
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 4px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .76rem;
  font-weight: 700;
}
.turn-q .who { background: #fff; border: 1px solid var(--line-2); color: var(--text-3); }
.turn-q .said { color: var(--text-3); font-size: .95rem; }
/* the answer is the participant's voice: the warm ink, not a black disc */
.turn-a .who { background: var(--warm-soft); color: var(--warm-ink); }
.turn-a .said { font-family: var(--f-display); font-size: 1.1rem; line-height: 1.7; color: var(--text); }

mark.hl {
  background: var(--warm-soft);
  color: inherit;
  border-radius: 4px;
  padding: 1px 2px;
  box-shadow: inset 0 -2px 0 var(--warm);
  animation: hl-in 1400ms var(--ease) both;
}
@keyframes hl-in { 0% { background: #F8D59A; } 100% { background: var(--warm-soft); } }

/* ---------- quotes ---------- */
.q {
  display: block;
  width: 100%;
  text-align: start;
  margin: 8px 0;
  padding: 10px 16px 10px 14px;
  border: 0;
  border-inline-start: 3px solid var(--warm);
  border-radius: 0 10px 10px 0;
  background: var(--paper);
  font-family: var(--f-display);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  cursor: pointer;
  transition: background-color 160ms;
}
[dir="rtl"] .q { border-radius: 10px 0 0 10px; }
.q:hover { background: var(--warm-soft); }
.q-src {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-family: var(--f-body);
  font-size: .82rem;
  color: var(--text-3);
}
.q-src .icon { width: 13px; height: 13px; }
.q-paper { background: var(--paper); }

/* ---------- reader dialog ---------- */
.reader {
  width: min(780px, calc(100vw - 24px));
  max-height: min(86vh, 900px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}
.reader[open] { display: flex; flex-direction: column; animation: dlg-in 260ms var(--ease); }
/* a light veil over the page, not a dark one; the dialog keeps its edge with a hairline and shadow */
.reader { box-shadow: var(--shadow-lift), 0 0 0 1px var(--line); }
.reader::backdrop { background: rgba(247, 247, 244, .8); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.reader-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 8px; }
.reader-head h2 { font-size: 1.4rem; }
.reader-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 20px 12px; border-bottom: 1px solid var(--line); }
.reader-tabs button {
  min-height: 38px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: none;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-2);
}
.reader-tabs { background: var(--bg-soft); padding-top: 10px; }
.reader-tabs button:hover { color: var(--text); }
.reader-tabs button[aria-selected="true"] { background: #fff; color: var(--text); border-color: var(--line-2); box-shadow: 0 1px 2px rgba(22, 24, 29, .08); }
@media (max-width: 1023px) { .reader-tabs button { min-height: 44px; } }
.reader-note { margin: 0; padding: 0 20px; color: var(--danger); font-size: .92rem; }
.reader-note:empty { display: none; }
.reader-body { overflow-y: auto; padding: 16px 20px 24px; background: #fff; }
.reader-body .doc-card { border: 0; padding: 18px 16px; }

/* ---------- sealed sheets (blind stages) ---------- */
.sealed { position: relative; isolation: isolate; }
.sealed-docs { display: flex; gap: 12px; justify-content: center; align-items: flex-end; height: 100%; }
.sealed .doc {
  position: relative;
  width: 30%;
  max-width: 120px;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-xs);
  background:
    repeating-linear-gradient(to bottom, transparent 0 11px, rgba(59, 79, 217, .28) 11px 13px) 14% 22% / 72% 62% no-repeat,
    var(--paper);
  border: 1px solid var(--paper-line);
}
.sealed .doc:nth-child(1) { transform: rotate(-5deg) translateY(4px); }
.sealed .doc:nth-child(3) { transform: rotate(4deg) translateY(6px); }
.sealed-glass {
  position: absolute;
  inset: -6px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .5);
  -webkit-backdrop-filter: blur(7px) saturate(.9);
  backdrop-filter: blur(7px) saturate(.9);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: inset 0 0 0 1px var(--line);
}

/* the sealed interview cards in the run panel */
/* Pages of interview behind frosted glass, crossed by one thin indigo line with an amber dot: the
   same picture as blind.webp, so the method section and the run tell the story in one image. */
.seal-set {
  position: relative;
  padding: 24px 22px 28px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
}
.seal-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.seal-card {
  width: 132px;
  padding: 14px 14px 16px;
  border-radius: var(--radius-xs);
  background: var(--paper);
  border: 1px solid var(--paper-line);
  box-shadow: 0 1px 2px rgba(22, 24, 29, .05), 0 8px 18px rgba(22, 24, 29, .06);
  min-height: 124px;
  transform: rotate(-1.6deg);
}
.seal-card:nth-child(even) { transform: rotate(1.4deg) translateY(4px); }
@media (max-width: 480px) {
  .seal-set { padding: 20px 14px 24px; }
  .seal-cards { gap: 10px; }
  .seal-card { width: 100px; min-height: 112px; padding: 12px 10px 14px; }
}
.seal-card strong { display: block; font-family: var(--f-display); font-size: 1rem; margin-bottom: 10px; color: var(--text); }
.seal-card .lines {
  height: 62px;
  /* handwriting-like strokes in indigo ink, as in the illustration */
  background: repeating-linear-gradient(to bottom, rgba(59, 79, 217, .34) 0 2px, transparent 2px 12px);
  border-radius: 2px;
  -webkit-mask-image: linear-gradient(to left, #000 60%, rgba(0, 0, 0, .35));
  mask-image: linear-gradient(to left, #000 60%, rgba(0, 0, 0, .35));
}
.seal-card .lines.short { width: 72%; }
.seal-glass {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 16px;
  text-align: center;
  background: linear-gradient(170deg, rgba(255, 255, 255, .36), rgba(255, 255, 255, .14) 55%, rgba(242, 244, 251, .3));
  -webkit-backdrop-filter: blur(3.5px) saturate(.9);
  backdrop-filter: blur(3.5px) saturate(.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 0 0 1px rgba(255, 255, 255, .6);
}
/* the thin line in front of the glass, with its amber point */
.seal-glass::before {
  content: "";
  position: absolute;
  inset-inline: 6%;
  top: 50%;
  height: 1.25px;
  background: linear-gradient(to left, transparent, var(--cool) 12%, var(--cool) 88%, transparent);
  opacity: .7;
  z-index: -1;
}
.seal-glass::after {
  content: "";
  position: absolute;
  inset-inline-start: 22%;
  top: calc(50% - 5px);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--warm);
  box-shadow: 0 0 0 4px rgba(252, 239, 217, .9);
  z-index: -1;
}
.seal-title { background: rgba(255, 255, 255, .88); padding: 2px 14px; border-radius: var(--radius-sm); }
.seal-eye {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line-2);
  color: var(--text);
  box-shadow: var(--shadow);
}
.seal-eye .icon { width: 26px; height: 26px; }
.seal-title { font-family: var(--f-display); font-size: 1.2rem; font-weight: 700; color: var(--text); margin: 0; }
.seal-set.is-sealing .seal-glass { animation: seal-down 800ms var(--ease) both; }
.seal-set.is-sealing .seal-eye { animation: pop 420ms var(--ease) 520ms both; }
@keyframes seal-down { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.sealed-why {
  margin: 14px 0 0;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 0;
  background: var(--bg-tint);
  color: var(--text-2);
  font-size: .97rem;
}

/* open (seeing) interview cards */
.open-set { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.open-card {
  display: block;
  text-align: start;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--paper);
  border: 1px solid var(--paper-line);
  cursor: pointer;
  transition: border-color 160ms, box-shadow 160ms;
  min-height: 44px;
}
.open-card:hover { border-color: var(--warm); box-shadow: var(--shadow); }
.open-card strong { display: flex; justify-content: space-between; gap: 6px; font-family: var(--f-display); font-size: 1rem; }
.open-card .ex { display: block; margin-top: 6px; font-family: var(--f-display); font-size: .88rem; line-height: 1.5; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.open-card.is-partial .ex { color: var(--text-3); }

/* ---------- the axis graphic (signature motif) ---------- */
.axis { margin: 12px 0 6px; }
.axis-poles { display: flex; justify-content: space-between; gap: 20px; font-size: .94rem; line-height: 1.4; margin-bottom: 10px; }
.axis-poles .pa, .axis-poles .pb { max-width: 46%; }
.axis-poles .pa { color: var(--text); font-weight: 600; }
.axis-poles .pb { color: var(--text); font-weight: 600; text-align: end; }
.axis-poles small { display: block; font-weight: 400; color: var(--text-3); font-size: .78rem; }
.axis-poles .pa small { color: var(--warm-ink); }
.axis-poles .pb small { color: var(--cool-ink); }
/* The axis is drawn as in the hero: a hairline between an amber pole (a: the participants' own label,
   from the interviews) and an indigo pole (b: the antithesis the agent constructed). */
.axis-track { position: relative; height: 30px; }
.axis-track::before {
  content: "";
  position: absolute;
  inset-inline: 7px;
  top: 50%;
  height: 1.25px;
  background: var(--text-2);
}
.axis[data-status="brittle"] .axis-track::before {
  background: linear-gradient(to left, var(--text-2) 0 34%, transparent 34% 66%, var(--text-2) 66% 100%);
}
.axis[data-status="brittle"] .axis-track::after {
  content: "";
  position: absolute;
  inset-inline: 36%;
  top: 50%;
  border-top: 1.5px dashed var(--line-2);
}
.axis[data-status="hypothetical"] .axis-track::before { background: repeating-linear-gradient(to left, var(--text-2) 0 6px, transparent 6px 10px); }
.axis-end {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border-radius: 50%;
  background: var(--text-2);
}
.axis-end.a { inset-inline-start: 0; background: var(--warm); }
.axis-end.b { inset-inline-end: 0; background: var(--cool); border: 0; }
.axis-pt {
  position: absolute;
  top: 50%;
  inset-inline-start: calc(7px + var(--pos) * (100% - 14px));
  width: 16px;
  height: 16px;
  margin-top: -8px;
  margin-inline-start: -8px;
  border-radius: 50%;
  background: var(--warm);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--warm);
  padding: 0;
  cursor: pointer;
  transition: transform 160ms var(--ease);
}
.axis-pt:hover { transform: scale(1.25); }
/* a finger-sized target around the small dot */
.axis-pt::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; }
/* the number of the point's quote card in the list below */
.axis-pt .pt-n {
  position: absolute;
  bottom: calc(100% + 3px);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-mono);
  font-size: 11px;
  line-height: 1;
  color: var(--warm-ink);
  pointer-events: none;
}
.axis-pt:hover .pt-n { transform: translateX(-50%) scale(.8); }
.axis-pt.hypo { width: 11px; height: 11px; margin-top: -5.5px; margin-inline-start: -5.5px; background: #fff; border: 1.5px dashed var(--text-2); box-shadow: none; cursor: default; }
.axis-pt.hypo:hover { transform: none; }

/* ---------- folds and code ---------- */
.fold { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; margin-bottom: 10px; }
.fold > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after {
  content: "";
  margin-inline-start: auto;
  width: 9px;
  height: 9px;
  border-right: 1.6px solid var(--text-2);
  border-bottom: 1.6px solid var(--text-2);
  transform: rotate(45deg);
  margin-top: -4px;
  transition: transform 200ms var(--ease);
}
.fold[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.fold-body { padding: 4px 16px 16px; }
pre.code {
  margin: 0;
  max-height: 460px;
  overflow: auto;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: .8rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  text-align: start;
}
pre.code[dir="ltr"] { text-align: left; }

/* ---------- pairs, tags, lists used in outputs ---------- */
.pair { display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr); align-items: center; gap: 4px; }
.pair-a, .pair-b { padding: 9px 12px; border-radius: var(--radius-sm); font-size: .96rem; line-height: 1.45; }
.pair-a { background: #fff; border: 1px solid var(--line-2); color: var(--text); }
.pair-b { background: var(--cool-soft); color: var(--cool-ink); font-weight: 600; }
.pair-link { height: 14px; position: relative; }
.pair-link::before { content: ""; position: absolute; inset-inline: 4px; top: 50%; border-top: 1.5px solid var(--text-2); }
.pair-link::after { content: ""; position: absolute; inset-inline-end: 2px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--cool); }
@media (max-width: 520px) {
  .pair { grid-template-columns: minmax(0, 1fr); }
  .pair-link { height: 16px; }
  .pair-link::before { inset-inline: auto; inset-inline-start: 18px; top: 0; bottom: 0; border-top: 0; border-inline-start: 1.5px solid var(--text-2); }
  .pair-link::after { display: none; }
}
.id-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
