/* =========================================================
   Wounds page — 여섯 상처
   Colors: CSS custom properties only (dark mode via tokens).
   ========================================================= */

/* ---------- Hero ---------- */
.wh-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .8fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
}
.wh-hero .display { max-width: 13ch; }
@media (max-width: 960px) {
  .wh-hero { grid-template-columns: 1fr; align-items: start; }
}

.field-rules {
  position: relative;
  padding: 1.35rem 1.35rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.field-rules__spectrum { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; margin-bottom: 1.1rem; }
.field-rules__spectrum span { height: 4px; border-radius: 2px; background: var(--w); }
.field-rules__kicker { margin: 0 0 .25rem; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.field-rules__title { margin: 0 0 .9rem; font-size: 1.15rem; }
.field-rules__list { list-style: none; margin: 0; padding: 0; counter-reset: rule; }
.field-rules__list li {
  position: relative;
  counter-increment: rule;
  padding: .7rem 0 .7rem 2.3rem;
  border-top: 1px dashed var(--rule);
  font-size: 14px; line-height: 1.6; color: var(--ink-2);
}
.field-rules__list li::before {
  content: counter(rule, decimal-leading-zero);
  position: absolute; left: 0; top: .78rem;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; color: var(--accent);
}
.field-rules__list b { display: block; color: var(--ink); font-weight: 600; font-size: 14.5px; }

/* ---------- Notices ---------- */
.notices .callout { font-size: 15px; padding: 1.2rem 1.35rem; }
.notices .callout__title { margin-bottom: .6rem; }

/* ---------- §01 Map ---------- */
.mapfig__body {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
@media (max-width: 900px) { .mapfig__body { grid-template-columns: 1fr; } }

.mapfig__plot { position: relative; min-width: 0; }
.mapfig__ticks {
  display: flex; justify-content: space-between; gap: 1rem;
  margin-bottom: .5rem;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; color: var(--ink-3);
}

.hexmap { display: block; width: 100%; max-width: 480px; height: auto; margin-inline: auto; overflow: visible; }
.hexmap__hub { fill: var(--paper-2); stroke: var(--ink-2); stroke-width: 1.25; }
.hexmap__hub-inner { fill: none; stroke: var(--rule-strong); stroke-width: 1; stroke-dasharray: 3 4; }
.hexmap__hub-kicker { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; fill: var(--ink-3); }
.hexmap__hub-label { font-family: var(--font-serif); font-size: 19px; font-weight: 700; fill: var(--ink); }
.hexmap__hub-count { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; fill: var(--accent); }

.hexmap__bond { stroke: var(--w); stroke-width: 5; stroke-linecap: round; opacity: 0; transition: opacity .25s ease; }
.hexmap__bond.is-on { opacity: 1; }

.hexmap__node { cursor: pointer; outline: none; transition: opacity .25s ease; }
.hexmap__tile {
  fill: var(--surface);
  stroke: var(--w);
  stroke-opacity: .55;
  stroke-width: 1.5;
  transition: fill .2s ease, stroke-width .2s ease, stroke-opacity .2s ease;
}
.hexmap__glyph { color: var(--w); overflow: visible; }
.hexmap__name { font-family: var(--font-serif); font-size: 17px; font-weight: 700; fill: var(--ink); }
.hexmap__code { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; fill: var(--ink-3); }
.hexmap__key { stroke: var(--w); stroke-width: 3; stroke-linecap: round; }

.hexmap__node:hover .hexmap__tile,
.hexmap__node.is-peek .hexmap__tile {
  fill: color-mix(in srgb, var(--w) 10%, var(--surface));
  stroke-opacity: 1; stroke-width: 2.5;
}
.hexmap__node:focus-visible .hexmap__tile {
  fill: color-mix(in srgb, var(--w) 10%, var(--surface));
  stroke: var(--accent); stroke-opacity: 1; stroke-width: 4;
}
.hexmap.is-filtering .hexmap__node:not(.is-hit) { opacity: .22; }
.hexmap__node.is-hit .hexmap__tile {
  fill: color-mix(in srgb, var(--w) 15%, var(--surface));
  stroke-opacity: 1; stroke-width: 3;
}

@media (max-width: 520px) {
  .hexmap__code { display: none; }
  .hexmap__name { font-size: 19px; }
}

/* Behavior lens */
.lens { min-width: 0; }
.lens__kicker { margin: 0 0 .3rem; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.lens__title { margin: 0 0 .5rem; font-size: 1.3rem; }
.lens__desc { margin: 0 0 1rem; font-size: 14.5px; color: var(--ink-2); }
.lens__chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.2rem; }
.lens__chips .chip { font-size: 13px; padding: .36rem .72rem; }
html:not(.js) .lens__chips { display: none; }

.lens__out { padding-top: 1rem; border-top: 1px solid var(--rule); }
.lens__head { margin: 0 0 .6rem; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .05em; color: var(--ink-3); }
.lens__list { list-style: none; margin: 0; padding: 0; }
.lens__list li + li { margin-top: .35rem; }
.lens__list a {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .55rem .7rem;
  border: 1px solid var(--rule); border-left: 3px solid var(--w);
  border-radius: var(--radius);
  background: var(--surface);
  color: inherit; text-decoration: none;
  transition: border-color .15s, background .15s;
}
.lens__list a:hover,
.lens__list li.is-peek a { background: color-mix(in srgb, var(--w) 8%, var(--surface)); border-color: var(--w); }
.lens__list .glyph { width: 22px; height: 22px; margin-top: .15rem; }
.lens__txt { display: flex; flex-direction: column; min-width: 0; }
.lens__txt b { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.lens__reading { font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
.lens__note { margin: .9rem 0 0; font-size: 12.5px; color: var(--ink-3); }

/* ---------- §02 Atlas ---------- */
.atlas-filter {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem;
  padding: .9rem 1rem;
  background: var(--surface);
  border: 1px solid var(--rule); border-radius: var(--radius-lg);
}
.atlas-filter__chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.atlas-filter__status { margin: 0; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .04em; color: var(--ink-3); }
html:not(.js) .atlas-filter { display: none; }
.atlas-caveat { margin: 1rem 0 clamp(1.5rem, 3vw, 2rem); max-width: 80ch; color: var(--ink-3); }

.wound {
  display: grid;
  grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-block: clamp(2.25rem, 5vw, 3.5rem);
  border-top: 1px solid var(--rule-strong);
}
@media (max-width: 900px) { .wound { grid-template-columns: 1fr; } }

.wound__plate {
  position: sticky; top: calc(var(--header-h) + 1.25rem);
  align-self: start;
  padding: 1.1rem 1.15rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--w);
  border-radius: var(--radius-lg);
  transition: box-shadow .3s ease;
}
@media (max-width: 900px) { .wound__plate { position: static; } }
.wound:target .wound__plate { box-shadow: 0 0 0 3px color-mix(in srgb, var(--w) 35%, transparent); }

.wound__plate-head {
  display: flex; justify-content: space-between; gap: 1rem;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3);
}
.wound__specimen {
  display: grid; place-items: center;
  margin: .8rem 0 1rem;
  aspect-ratio: 16 / 9;
  border: 1px dashed var(--rule-strong); border-radius: var(--radius);
  background-color: color-mix(in srgb, var(--w) 6%, transparent);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 16px 16px;
}
.wound__specimen .glyph { width: 64px; height: 64px; }
/* P2 specimen plates: the image fills the existing 16:9 box (plate stays the same height);
   the glyph is kept as a small corner key. */
.wound__specimen { position: relative; overflow: hidden; }
.wound__specimen > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wound__specimen > img + .glyph {
  position: absolute; right: .45rem; bottom: .45rem;
  width: 28px; height: 28px; padding: 4px;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius);
}
:root[data-theme="dark"] .wound__specimen > img { filter: brightness(.84) contrast(1.05); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wound__specimen > img { filter: brightness(.84) contrast(1.05); } }
/* P2 concept scenes at the top of each wound body (shared .sec-plate, 2:1 crop) */
.wound__scene { --plate-ar: 2 / 1; }
.wound__name { margin: 0 0 .3rem; font-size: clamp(1.45rem, 2.4vw, 1.75rem); }
.wound__fear {
  margin: 0 0 1rem;
  padding-left: .8rem;
  border-left: 2px solid var(--w);
  font-family: var(--font-serif); font-size: 1.05rem; font-weight: 500; line-height: 1.55; color: var(--ink);
}
.wound__kv { margin-bottom: 1rem; font-size: 14px; }
.wound__kv dt { font-size: 10.5px; }

.wound__body { min-width: 0; }
.wound__lead { margin: 0 0 1.5rem; font-size: 1.06rem; line-height: 1.85; color: var(--ink); max-width: 68ch; }
.wound__body h4 {
  margin: 0 0 .6rem;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3);
}
.wound__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 2rem; margin-bottom: 1.6rem; }
.wound__cols p { margin: 0; font-size: 15px; color: var(--ink-2); }
@media (max-width: 640px) { .wound__cols { grid-template-columns: 1fr; } }
.wound__list { margin: 0; padding-left: 1.1em; font-size: 15px; color: var(--ink-2); }
.wound__list li { margin: .25em 0; }
.wound__list li::marker { color: var(--w); }

.cues { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem 1.5rem; }
@media (max-width: 640px) { .cues { grid-template-columns: 1fr; } }
.cues li { position: relative; padding-left: 1.5rem; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.cues li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: 11px; height: 11px;
  border: 1.5px solid var(--w); border-radius: 2px;
}
.cues li::after {
  content: ""; position: absolute; left: 3px; top: calc(.42em + 3px);
  width: 5px; height: 5px; border-radius: 1px; background: var(--w);
}

.heard {
  margin: 0 0 1.6rem;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--rule); border-radius: var(--radius-lg);
}
.heard__label { margin: 0 0 .6rem; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.heard__list { list-style: none; margin: 0; padding: 0; counter-reset: heard; }
.heard__list li {
  counter-increment: heard;
  display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); align-items: baseline;
  padding: .45rem 0;
  border-top: 1px dashed var(--rule);
  font-family: var(--font-serif); font-size: 15.5px; line-height: 1.6; color: var(--ink);
}
.heard__list li:first-child { border-top: 0; }
.heard__list li::before {
  content: counter(heard, decimal-leading-zero);
  font-family: var(--font-mono); font-size: 11px; color: var(--w);
}

.wound__pair { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 1rem; }
@media (max-width: 760px) { .wound__pair { grid-template-columns: 1fr; } }
.myth, .approach { padding: 1rem 1.1rem; border-radius: var(--radius-lg); font-size: 14.5px; color: var(--ink-2); }
.myth { border: 1px dashed var(--rule-strong); }
.myth p:last-child { margin: 0; }
.myth b { color: var(--ink); }
.approach { background: color-mix(in srgb, var(--w) 7%, var(--surface)); border: 1px solid color-mix(in srgb, var(--w) 30%, var(--rule)); }
.myth__label, .approach__label { margin: 0 0 .5rem; font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.approach__label { color: var(--ink); }
.approach ul { margin: 0 0 .75rem; padding-left: 1.1em; }
.approach li { margin: .3em 0; }
.approach li::marker { color: var(--w); }
.approach a { color: var(--accent); }
.approach__avoid { margin: 0; padding-top: .7rem; border-top: 1px dashed color-mix(in srgb, var(--w) 35%, var(--rule)); font-size: 13.5px; }
.approach__avoid b { margin-right: .4rem; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; color: var(--signal); }

/* ---------- §03 Plan ---------- */
.plan-intro {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem);
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
}
@media (max-width: 860px) { .plan-intro { grid-template-columns: 1fr; } }
.plan-intro__text p { font-size: 15.5px; color: var(--ink-2); max-width: 62ch; }
.plan-intro__text p:last-child { margin-bottom: 0; }
.plan-intro__rules { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.plan-intro__rules li { display: grid; grid-template-columns: 2rem minmax(0, 1fr); padding: .6rem 0; border-bottom: 1px solid var(--rule); font-size: 14.5px; color: var(--ink-2); }
.plan-intro__rules span { font-family: var(--font-mono); font-size: 11.5px; color: var(--w-security); padding-top: .15rem; }

.plan {
  --w: var(--w-security);
  padding: clamp(1rem, 3vw, 1.6rem);
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--w);
  border-radius: var(--radius-lg);
}
.plan__toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 1.5rem; }
.plan__meta { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: .8rem; flex: 1 1 420px; }
@media (max-width: 560px) { .plan__meta { grid-template-columns: 1fr; } }
.plan__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
html:not(.js) .plan__actions, html:not(.js) .plan__status-row { display: none; }

.plan__status-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem;
  margin: 1.1rem 0 1.2rem; padding-top: 1rem; border-top: 1px solid var(--rule);
}
.plan__progress { display: flex; align-items: center; gap: .8rem; flex: 1 1 260px; max-width: 420px; }
.plan__progress-text { font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: var(--ink-2); white-space: nowrap; }
.plan__progress .progress { flex: 1; }
.plan__progress .progress__bar { background: var(--w); }
.plan__status { margin: 0; font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-3); }

.plan__weeks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
@media (max-width: 1000px) { .plan__weeks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .plan__weeks { grid-template-columns: 1fr; } }

.week {
  position: relative;
  display: flex; flex-direction: column; gap: .7rem;
  min-width: 0; margin: 0;
  padding: 2.6rem 1rem 1rem;
  background: var(--surface);
  border: 1px solid var(--rule); border-radius: var(--radius-lg);
  transition: border-color .2s;
}
.week.is-done { border-color: var(--w); }
.week__legend {
  position: absolute; top: .85rem; left: 1rem;
  display: flex; align-items: baseline; gap: .6rem;
  padding: 0;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em;
}
.week__n { font-weight: 600; color: var(--ink); }
.week.is-done .week__n { color: var(--w); }
.week__dates { color: var(--ink-3); font-size: 11px; }
.week__done {
  position: absolute; top: .7rem; right: .9rem;
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: 12.5px; color: var(--ink-3); cursor: pointer;
}
.week__done input { accent-color: var(--w); width: 15px; height: 15px; }
.week .field > label { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.week .input { font-weight: 600; font-size: 14.5px; padding: .55rem .7rem; }
.week .textarea { min-height: 96px; font-size: 14px; padding: .55rem .7rem; }
.plan__privacy { margin: 1.1rem 0 0; color: var(--ink-3); }
.plan__privacy .mono { margin-right: .5rem; font-size: 11px; letter-spacing: .1em; color: var(--ink-2); }
.plan__privacy code { font-family: var(--font-mono); font-size: .9em; background: var(--surface); padding: .05em .35em; border-radius: 3px; }

.plan-print { display: none; }

/* ---------- §04 Compare ---------- */
.compare-block + .compare-block { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.compare-block__head { max-width: 72ch; margin-bottom: 1.1rem; }
.compare-block__head h3 { margin: 0 0 .5rem; font-size: 1.3rem; }
.compare-block__head p { margin: 0; font-size: 15.5px; color: var(--ink-2); }
.compare { min-width: 620px; }
.compare thead th { width: 40%; }
.compare thead th:first-child { width: 20%; }
.compare__h { display: inline-flex; align-items: center; gap: .45rem; color: var(--ink); }
.compare tbody th { white-space: nowrap; }
.cmp-tag {
  display: inline-grid; place-items: center;
  width: 1.3rem; height: 1.3rem; margin-right: .55rem;
  border: 1px solid var(--rule-strong); border-radius: 3px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--ink-3);
  vertical-align: 1px;
}
.compare tr.is-same td, .compare tr.is-same th { background: var(--accent-soft); }
.compare tr.is-same .cmp-tag { border-color: var(--accent); color: var(--accent); }
.compare-q {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem .9rem;
  margin: 1rem 0 0;
  font-family: var(--font-serif); font-size: 1.05rem; color: var(--ink);
}
.compare-q__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }

/* ---------- §05 Wound → scar ---------- */
.scarfig .figure__body { padding-bottom: clamp(1.25rem, 3vw, 1.75rem); }
.scarfig__line { display: block; width: 100%; height: auto; margin-bottom: .5rem; }
.scarfig__axis { stroke: var(--rule); stroke-width: 1; stroke-dasharray: 2 6; }
.scarfig__tear { fill: none; stroke: url(#scar-grad); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.scarfig__stitch { fill: none; stroke: var(--ink-2); stroke-width: 2; stroke-linecap: round; }
.scarfig__stations circle { fill: var(--surface); stroke: var(--ink); stroke-width: 1.75; }
.scarfig__stations circle.is-final { fill: var(--ink); }
.scarfig__end { font-family: var(--font-mono); font-size: 13px; letter-spacing: .1em; fill: var(--ink-3); }

.scar-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.scar-step { padding: 0 .9rem; text-align: center; }
.scar-step + .scar-step { border-left: 1px dashed var(--rule); }
.scar-step__n { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.scar-step__title { margin: .3rem 0 .45rem; font-size: 1.1rem; }
.scar-step p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--ink-2); text-align: left; }
.scar-step:last-child .scar-step__title { color: var(--accent); }

@media (max-width: 860px) {
  .scarfig__line { display: none; }
  .scar-steps { grid-template-columns: 1fr; gap: 0; }
  .scar-step {
    position: relative;
    padding: 0 0 1.25rem 2.1rem; text-align: left;
  }
  .scar-step + .scar-step { border-left: 0; }
  .scar-step::before {
    content: ""; position: absolute; left: 0; top: .3rem;
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--surface); border: 1.75px solid var(--ink);
  }
  .scar-step::after {
    content: ""; position: absolute; left: 6.5px; top: 1.3rem; bottom: .1rem;
    border-left: 2px dashed var(--rule-strong);
  }
  .scar-step:first-child::before { border-color: var(--signal); }
  .scar-step:last-child { padding-bottom: 0; }
  .scar-step:last-child::before { background: var(--ink); }
  .scar-step:last-child::after { display: none; }
}

.scar-cards { margin-top: clamp(1.75rem, 4vw, 2.5rem); }
.scar-card h3 { margin: .85rem 0 .45rem; font-size: 1.12rem; }
.scar-card p { margin: 0; font-size: 15px; color: var(--ink-2); }

.scar-evidence {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2rem);
  margin-top: clamp(1.25rem, 3vw, 1.75rem);
  align-items: start;
}
@media (max-width: 860px) { .scar-evidence { grid-template-columns: 1fr; } }
.scar-evidence__note h3 { margin: .85rem 0 .5rem; font-size: 1.15rem; }
.scar-evidence__note p { margin: 0; font-size: 15px; color: var(--ink-2); }
.scar-evidence__note a, .log-sample a { color: var(--accent); }

.log-sample {
  background: var(--surface);
  border: 1px solid var(--rule); border-radius: var(--radius);
  background-image: repeating-linear-gradient(transparent 0 35px, var(--grid-line) 35px 36px);
}
.log-sample__head {
  display: flex; justify-content: space-between; gap: 1rem;
  margin: 0; padding: .7rem 1rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3);
}
.log-sample__rows { margin: 0; padding: .4rem 1rem; }
.log-sample__rows > div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: .8rem; padding: .45rem 0; border-bottom: 1px dashed var(--rule); }
.log-sample__rows > div:last-child { border-bottom: 0; }
.log-sample__rows dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; color: var(--ink-3); padding-top: .15rem; }
.log-sample__rows dd { margin: 0; font-size: 14.5px; color: var(--ink); }
.log-sample__rows .wound-dot { margin-right: .3rem; vertical-align: 0; }
.log-sample__foot { margin: 0; padding: .7rem 1rem; border-top: 1px solid var(--rule); font-size: 13px; color: var(--ink-3); }
@media (max-width: 420px) { .log-sample__rows > div { grid-template-columns: 1fr; gap: .1rem; } }

/* ---------- §06 Overlap ---------- */
.overlap {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
@media (max-width: 900px) { .overlap { grid-template-columns: 1fr; } }
.overlap__text h3 { margin-top: 0; }
.overlap__text p { font-size: 16px; }

.mixfig__case {
  display: flex; justify-content: space-between; gap: 1rem;
  margin: 0 0 .9rem;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3);
}
.mixfig__legend { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-bottom: 1rem; font-size: 12.5px; color: var(--ink-2); }
.mixfig__key { display: inline-flex; align-items: center; gap: .45rem; }
.mixfig__key::before { content: ""; width: 22px; height: 8px; border-radius: 2px; }
.mixfig__key--now::before { border: 1px solid var(--ink-3); background: repeating-linear-gradient(135deg, var(--ink-3) 0 1px, transparent 1px 4px); }
.mixfig__key--drive::before { background: var(--ink); }

.mix { list-style: none; margin: 0; padding: 0; }
.mix__row {
  display: grid; grid-template-columns: 4.6rem minmax(0, 1fr) 4.2rem; align-items: center; gap: .3rem .8rem;
  padding: .55rem 0; border-top: 1px solid var(--rule);
}
.mix__row:first-child { border-top: 0; }
.mix__name { display: inline-flex; align-items: center; gap: .4rem; font-size: 14px; font-weight: 600; color: var(--ink); }
.mix__bars { display: flex; flex-direction: column; gap: 4px; }
.mix__bar { display: block; height: 9px; width: calc(var(--v) * 1%); border-radius: 2px; }
.mix__bar--now {
  border: 1px solid var(--w);
  background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--w) 55%, transparent) 0 1px, transparent 1px 4px);
}
.mix__bar--drive { background: var(--w); }
.mix__val { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-3); text-align: right; font-variant-numeric: tabular-nums; }
.mix__tag {
  grid-column: 2 / -1;
  justify-self: start;
  padding: .05rem .5rem;
  border-radius: 3px;
  background: var(--w); color: var(--paper);
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em;
}
.mix__tag--ghost { background: transparent; color: var(--ink-2); border: 1px dashed var(--w); }
.mix__row.is-primary { background: color-mix(in srgb, var(--w) 7%, transparent); margin-inline: -.6rem; padding-inline: .6rem; border-radius: var(--radius); }

.triage { margin-top: clamp(2rem, 4vw, 3rem); }
.triage__title { margin: 0 0 1rem; font-size: 1.2rem; }
.triage__title .mono { margin-right: .5rem; font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); vertical-align: 2px; }
.triage__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; counter-reset: none; }
@media (max-width: 960px) { .triage__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .triage__list { grid-template-columns: 1fr; } }
.triage__list li { padding: 1rem 1.05rem; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); }
.triage__n { display: block; margin-bottom: .45rem; font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; color: var(--accent); }
.triage__list b { display: block; margin-bottom: .35rem; font-size: 15px; color: var(--ink); }
.triage__list p { margin: 0; font-size: 14px; color: var(--ink-2); }

.ethics-grid { margin-top: clamp(1.5rem, 3vw, 2rem); }
.ethics-card a { color: var(--accent); }
.ethics-tests { list-style: none; margin: .5rem 0 0; padding: 0; }
.ethics-tests li { padding: .4rem 0; border-top: 1px dashed var(--rule-strong); font-size: 14.5px; }
.ethics-tests b { display: inline-block; min-width: 2.6rem; margin-right: .4rem; font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; color: var(--ink); }

/* ---------- §07 Research ---------- */
.research-card { display: flex; flex-direction: column; }
.research-card__kicker { margin: .9rem 0 0; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.research-card h3 { margin: .35rem 0 .55rem; font-size: 1.12rem; }
.research-card p { font-size: 14.5px; color: var(--ink-2); }
.research-card__link { margin: auto 0 0; padding-top: .8rem; border-top: 1px dashed var(--rule); font-size: 13.5px !important; color: var(--ink-3) !important; }

.limits {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--surface);
}
@media (max-width: 760px) { .limits { grid-template-columns: 1fr; } }
.limits__col { padding: 1.2rem 1.35rem; }
.limits__col--no { border-left: 1px solid var(--rule); }
@media (max-width: 760px) { .limits__col--no { border-left: 0; border-top: 1px solid var(--rule); } }
.limits__title { margin: 0 0 .7rem; font-size: 1.05rem; }
.limits__title .mono { display: block; margin-bottom: .2rem; font-size: 10.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ev-strong); }
.limits__col--no .limits__title .mono { color: var(--signal); }
.limits ul { margin: 0; padding-left: 1.1em; font-size: 14.5px; color: var(--ink-2); }
.limits li { margin: .35em 0; }
.research-more { margin: 1.4rem 0 0; font-size: 15px; color: var(--ink-2); }
.research-more a { color: var(--accent); font-weight: 600; }

/* ---------- References ---------- */
.refs-title { font-size: 1.35rem; margin-bottom: .5rem; }
.refs li { scroll-margin-top: calc(var(--header-h) + 24px); }
.refs li:target { background: var(--accent-soft); }
.refs-note { margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px dashed var(--rule-strong); color: var(--ink-3); }

/* ---------- CTA + related ---------- */
.wounds-cta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink); color: var(--paper); }
@media (max-width: 700px) { .wounds-cta { grid-template-columns: 1fr; } }
.wounds-cta__item {
  position: relative;
  display: flex; flex-direction: column; gap: .4rem;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  color: inherit; text-decoration: none;
  transition: background .2s;
}
.wounds-cta__item + .wounds-cta__item { border-left: 1px solid color-mix(in srgb, var(--paper) 18%, transparent); }
@media (max-width: 700px) { .wounds-cta__item + .wounds-cta__item { border-left: 0; border-top: 1px solid color-mix(in srgb, var(--paper) 18%, transparent); } }
.wounds-cta__item:hover { background: color-mix(in srgb, var(--paper) 7%, transparent); }
.wounds-cta__item:focus-visible { outline: 2px solid var(--paper); outline-offset: -6px; }
.wounds-cta__kicker { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: color-mix(in srgb, var(--paper) 65%, transparent); }
.wounds-cta__title { font-family: var(--font-serif); font-size: clamp(1.35rem, 2.6vw, 1.8rem); font-weight: 700; line-height: 1.3; }
.wounds-cta__desc { max-width: 44ch; font-size: 15px; color: color-mix(in srgb, var(--paper) 78%, transparent); }
.wounds-cta__go { margin-top: .6rem; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .06em; }

.related-title { margin: clamp(2.5rem, 5vw, 3.5rem) 0 1rem; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.related-card { display: flex; flex-direction: column; }
.related-card .card__title { display: block; font-family: var(--font-serif); font-weight: 700; line-height: 1.35; }
.related-card .card__body { display: block; font-size: 14px; }

/* ---------- Print ---------- */
@media print {
  .plan__toolbar, .plan__status-row, .plan__weeks, .plan__privacy, .lens__chips, .atlas-filter { display: none !important; }
  .plan { border: 0; padding: 0; background: none; }
  .plan-print { display: block; color: inherit; }
  .plan-print__meta { margin: 0 0 .6rem; font-size: 12px; }
  .plan-print table { width: 100%; border-collapse: collapse; font-size: 12px; color: inherit; }
  .plan-print th, .plan-print td { padding: 6px 8px; border: 1px solid currentColor; text-align: left; vertical-align: top; }
  .plan-print th { font-weight: 700; }
  .plan-print td { white-space: pre-wrap; }
  .wound__plate { position: static; }
  .wound, .week, .compare-block, .scarfig, .mixfig { break-inside: avoid; }

  body.is-printing-plan main > :not(#plan) { display: none !important; }
  body.is-printing-plan #plan { padding: 0; border: 0; }
  body.is-printing-plan #plan .plan-intro,
  body.is-printing-plan #plan .section-head__desc .evidence { display: none !important; }
  body.is-printing-plan #plan h2,
  body.is-printing-plan #plan .section-num,
  body.is-printing-plan #plan .section-head p { color: inherit; }
}
