/* ============================================================
   Diagram styles: knowledge graph, DNA before/after, loops
   Palette: near-black ink · white · teal
   ============================================================ */

/* ---------- Knowledge graph ---------- */
.kg-wrap { position: relative; }
.kg-svg { width: 100%; height: auto; overflow: visible; }

.kg-node circle {
  fill: var(--teal-soft);
  stroke: var(--teal);
  stroke-width: 2.5;
  filter: drop-shadow(0 8px 14px rgba(18,20,23,.12));
  cursor: pointer;
  transition: fill .2s ease;
}
.kg-node:hover circle { fill: #d2e7e1; }
.kg-node text {
  font-family: var(--r-main-font); font-weight: 600; font-size: 13px;
  fill: var(--ink); text-anchor: middle; pointer-events: none;
}

.kg-edge {
  stroke: var(--teal); stroke-width: 2.5; fill: none;
  stroke-dasharray: 320; stroke-dashoffset: 320; cursor: pointer; opacity: .75;
}
.kg-arrowhead { fill: var(--teal); }

/* AI tracing a path through the graph (board-game token) */
.kg-token { fill: var(--ink); stroke: #fff; stroke-width: 2.5;
  filter: drop-shadow(0 0 6px rgba(17,124,112,.95)); }
.kg-token-halo { fill: var(--teal); opacity: .25; animation: kgpulse 1.6s ease-in-out infinite; }
@keyframes kgpulse { 0%,100% { opacity: .12; transform: scale(.8); } 50% { opacity: .3; transform: scale(1.15); } }
html.static-mode .kg-token-g { display: none; }   /* keep the moving token out of the PDF */
.reveal .fragment.visible .kg-edge,
.kg-edge.visible { animation: kgdraw 0.7s ease forwards; }
@keyframes kgdraw { to { stroke-dashoffset: 0; } }

.kg-edge-label {
  font-family: var(--r-heading-font); font-weight: 500; font-size: 10.5px;
  letter-spacing: .08em; fill: var(--muted); text-anchor: middle; text-transform: uppercase;
}

.kg-tip {
  position: absolute; top: 6%; right: 0; background: var(--ink); color: #fff;
  font-family: var(--r-main-font); font-size: .42em; line-height: 1.4;
  padding: .7em .9em; border-radius: 10px; max-width: 240px;
  opacity: 0; transform: translateY(-6px); transition: all .2s ease;
  pointer-events: none; box-shadow: 0 14px 30px -16px rgba(0,0,0,.5);
}
.kg-tip.on { opacity: 1; transform: translateY(0); }
.kg-tip b { color: #6fd6c4; }

/* ---------- DNA before / after ---------- */
.ba-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.2em; align-items: stretch; }
.ba-panel {
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px;
  padding: 1.1em 1em .9em; display: flex; flex-direction: column; align-items: center;
  box-shadow: 0 20px 44px -30px rgba(18,20,23,.3);
}
.ba-divider { display: flex; align-items: center; color: var(--teal); font-size: 1.6em; }
.ba-caption { margin-top: .7em; font-size: .5em; color: var(--muted); text-align: center; line-height: 1.4; }
.ba-caption strong { color: var(--teal); }
.ba-svg { width: 100%; height: 190px; }

.draw { stroke-dasharray: 600; stroke-dashoffset: 600; animation: kgdraw 1.6s ease forwards; }
.helix-rung { stroke: var(--muted); stroke-width: 2.5; opacity: .6; stroke-linecap: round; }
.helix-a { stroke: var(--teal); stroke-width: 5; fill: none; stroke-linecap: round; }
.helix-b { stroke: var(--ink); stroke-width: 5; fill: none; stroke-linecap: round; }
.helix-label { font-family: var(--r-heading-font); font-weight:600; font-size:11px; letter-spacing:.1em; text-transform:uppercase; }

.static-bar { fill: var(--muted); opacity: .45; }
.dyn-bar { fill: var(--teal); }

/* before/after tiers + learner units */
.tier-lbl { font-family: var(--r-heading-font); font-weight: 600; text-transform: uppercase;
  letter-spacing: .12em; font-size: .32em; color: var(--muted); margin: .5em 0 .15em; }
.tier-cap { font-size: .34em; color: var(--body); margin-top: .15em; }
.tier-arrow { color: var(--teal); font-size: .8em; line-height: 1; margin: .15em 0; }

.lrn-head, .lrn-body { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; }
.exp-card { fill: var(--muted); opacity: .4; }           /* before: identical */
.exp-a { fill: var(--teal); }                             /* after: varied */
.exp-b { fill: var(--teal-soft); stroke: var(--teal); stroke-width: 2; }
.exp-c { fill: var(--teal); opacity: .55; }
.exp-d { fill: none; stroke: var(--ink); stroke-width: 2.5; }

.figic { fill: none; stroke: var(--ink); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.boxic { fill: #fff; stroke: var(--ink); stroke-width: 3; }

/* two learners: human + machine */
.learner-panel { flex: 1; background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 1.5em 1em 1.3em; text-align: center; }
.learner-panel.lit { background: var(--teal-soft); border-color: var(--teal); }
.learner-panel svg { width: 96px; height: 96px; display: block; margin: 0 auto .7em; }
.lp-label { font-family: var(--r-heading-font); font-weight: 600; font-size: .62em; color: var(--ink); }
.learner-panel.lit .lp-label { color: var(--teal); }
.lp-sub { font-size: .42em; color: var(--muted); margin-top: .3em; }
.fig-h { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.fig-m { fill: none; stroke: var(--teal); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.fig-m-core { fill: var(--teal); }

/* ---------- Go board ---------- */
.rkc-goboard { width: 300px; height: 300px; }
.go-line { stroke: var(--muted); stroke-width: 1; opacity: .5; }
.go-black { fill: var(--ink); }
.go-white { fill: #fff; stroke: var(--ink); stroke-width: 1.5; }
.go-mark { fill: var(--teal); }

/* ---------- Triad: board / win / rules ---------- */
.triad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1em; }
.triad-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 1.1em 1em; text-align: center;
}
.triad-card.lit { background: var(--teal-soft); border-color: var(--teal); }
.triad-card .ic { font-size: 1.6em; color: var(--teal); }
.triad-card h3 { font-family: var(--r-heading-font); font-weight: 600; font-size: .62em; letter-spacing: .04em; margin: .4em 0 .2em; color: var(--ink); }
.triad-card p { font-size: .4em; color: var(--muted); line-height: 1.4; margin: 0; }

/* ---------- Source cards (who's using knowledge graphs) ---------- */
.src-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 1em 1.1em; text-align: left; display: flex; flex-direction: column;
}
.src-card h3 { font-family: var(--r-heading-font); font-weight: 600; font-size: .58em;
  color: var(--teal); margin: 0 0 .4em; }
.src-card p { font-size: .42em; line-height: 1.55; color: var(--body); margin: 0 0 .7em; flex: 1; }
.src-card a { font-size: .4em; }

/* ---------- Two-column before/after cards ---------- */
.ab { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1em; align-items: stretch; }
.ab-card { border-radius: 16px; padding: 1em 1.1em; border: 1px solid var(--line); }
.ab-card.before { background: var(--card); }
.ab-card.after { background: var(--teal-soft); border-color: var(--teal); }
.ab-card .lbl { font-family: var(--r-heading-font); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: .42em; color: var(--muted); margin-bottom: .4em; }
.ab-card.after .lbl { color: var(--teal); }
.ab-card .txt { font-size: .5em; line-height: 1.5; color: var(--body); }
.ab-arrow { display: flex; align-items: center; color: var(--teal); font-size: 1.4em; }
.rule-list { font-size: .46em; line-height: 1.45; margin: .35em 0 0; padding-left: 1.1em; }
.rule-list li { margin: .32em 0; color: var(--body); }

/* ---------- Success brief (markdown spec for the machine) ---------- */
.ab-card.brief { padding: 0; overflow: hidden; text-align: left; }
.brief-bar { display: flex; justify-content: space-between; align-items: center;
  background: var(--teal-soft); border-bottom: 1px solid var(--teal); padding: .45em .85em; }
.brief-bar .lbl { margin: 0; color: var(--teal); }
.brief-file { font-size: .38em; color: var(--teal); opacity: .7; letter-spacing: .03em; }
.brief-body { padding: .7em .95em .85em; }
.md-h { font-weight: 700; color: var(--ink); font-size: .4em; margin: .15em 0 .25em; letter-spacing: 0; }
.md-h .hsh { color: var(--teal); font-weight: 700; margin-right: .15em; }
.md-p { font-size: .33em; line-height: 1.5; color: var(--body); margin: 0 0 .2em; }
.md-lead { font-size: .33em; color: var(--muted); margin: .1em 0 .25em; }
.md-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1em; margin-top: .55em; }
.md-ul { list-style: none; margin: 0; padding: 0; }
.md-ul li { position: relative; padding-left: .95em; font-size: .315em; line-height: 1.45;
  color: var(--body); margin: .1em 0; }
.md-ul li::before { content: "*"; position: absolute; left: 0; top: .05em; color: var(--teal); font-weight: 700; }

/* word-choice highlight + overlay on the success brief */
.wc-hl { background: var(--teal-soft); color: var(--ink); font-weight: 700; border-radius: 4px;
  padding: 0 .12em; box-shadow: inset 0 -2px 0 var(--teal); }
.wc-overlay { position: absolute; left: 8%; bottom: 6%; width: 58%; z-index: 5;
  background: #fff; border: 1px solid var(--teal); border-left: 6px solid var(--teal);
  border-radius: 14px; box-shadow: 0 30px 70px -22px rgba(18,20,23,.5); padding: 1em 1.2em; }
.wo-h { font-family: var(--r-heading-font); font-weight: 600; font-size: .5em; color: var(--ink); margin-bottom: .55em; }
.wo-h b { color: var(--teal); }
.wo-row { display: flex; align-items: baseline; gap: .6em; font-size: .46em; margin: .28em 0; }
.wo-alt { font-weight: 700; color: var(--teal); min-width: 7.5em; }
.wo-desc { color: var(--body); }
.wo-foot { font-size: .42em; color: var(--muted); font-style: italic; margin-top: .7em; }

/* ---------- Step flow ---------- */
.steps { display: flex; align-items: stretch; gap: .7em; }
.step { flex: 1; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: .9em 1em; }
.step .n { font-family: var(--r-heading-font); font-weight: 600; color: var(--teal); font-size: .55em; letter-spacing: .1em; }
.step h3 { font-family: var(--r-heading-font); font-weight: 600; font-size: .56em; margin: .25em 0 .2em; color: var(--ink); }
.step p { font-size: .4em; color: var(--muted); line-height: 1.4; margin: 0; }
.step-arrow { display: flex; align-items: center; color: var(--teal); font-size: 1em; }

/* ---------- Two ways to teach the rubric ---------- */
.way-list { font-size: .46em; line-height: 1.5; margin: .35em 0 .5em; padding-left: 1.3em; flex: 1; }
.way-list li { margin: .35em 0; color: var(--body); }
.way-foot { font-size: .42em; color: var(--muted); border-top: 1px solid var(--line);
  padding-top: .6em; margin-top: auto; }
.ab-card.after .way-foot { border-top-color: rgba(17,124,112,.3); }
.ab-card.after .way-foot strong { color: var(--teal); }

/* ---------- LLM instinct: logical vs pedagogical move ---------- */
.instinct { display: flex; flex-direction: column; gap: 1em; margin-top: .3em; }
.inst-row { display: flex; align-items: center; gap: .9em; border-radius: 16px; padding: .9em 1.2em; border: 1px solid var(--line); }
.inst-row.logical { background: var(--card); }
.inst-row.pedagogical { background: var(--teal-soft); border-color: var(--teal); }
.inst-row svg { width: 34px; height: 34px; flex: 0 0 auto; }
.inst-cue { font-size: .5em; font-weight: 700; color: var(--ink); white-space: nowrap; }
.inst-arrow { color: var(--muted); font-size: .8em; }
.inst-row.pedagogical .inst-arrow { color: var(--teal); }
.inst-resp { font-size: .5em; color: var(--body); font-style: italic; }
.inst-tag { margin-left: auto; font-family: var(--r-heading-font); font-weight: 600; font-size: .36em;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: right; line-height: 1.3; }
.inst-row.pedagogical .inst-tag { color: var(--teal); }

/* ---------- Why be selective: two reasons ---------- */
.reasons { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4em; margin-top: .3em; }
.reason-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 1.2em 1.3em; }
.reason-card .ic { font-size: 1.5em; color: var(--teal); }
.reason-card h3 { font-family: var(--r-heading-font); font-weight: 600; font-size: .62em; margin: .3em 0 .25em; color: var(--ink); }
.reason-card p { font-size: .46em; line-height: 1.5; color: var(--body); margin: 0; }

/* ---------- Rules for you, not people like you ---------- */
.rules-you { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.4em; align-items: center; }
.ry-panel { border-radius: 18px; padding: 1.3em 1.2em; text-align: center; border: 1px solid var(--line); background: var(--card); }
.ry-panel.you { background: var(--teal-soft); border-color: var(--teal); }
.ry-figs { display: flex; flex-wrap: wrap; gap: .45em; justify-content: center; max-width: 10.5em; margin: 0 auto .7em; min-height: 84px; align-items: center; }
.ry-figs svg { width: 40px; height: 40px; }
.ry-fig-big { width: 84px; height: 84px; margin: 0 auto .6em; display: block; }
.ry-label { font-family: var(--r-heading-font); font-weight: 600; font-size: .54em; color: var(--ink); }
.ry-panel.you .ry-label { color: var(--teal); }
.ry-sub { font-size: .42em; color: var(--muted); line-height: 1.45; margin-top: .35em; }
.ry-vs { font-family: var(--r-heading-font); font-weight: 600; color: var(--teal); font-size: .55em; }
.fig-grey { fill: none; stroke: var(--muted); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; opacity: .55; }
.fig-teal { fill: none; stroke: var(--teal); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Teaching feedback loop (AI <-> learner) ---------- */
.fbloop-svg { width: 100%; max-width: 720px; height: auto; margin: .3em auto 0; display: block; overflow: visible; }
.fb-node { fill: var(--teal-soft); stroke: var(--teal); stroke-width: 2.5; }
.fb-node.human { fill: var(--card); stroke: var(--ink); }
.fb-text { font-family: var(--r-heading-font); font-weight: 600; font-size: 18px; fill: var(--ink); text-anchor: middle; }
.fb-sub { font-family: var(--r-main-font); font-size: 12px; fill: var(--muted); text-anchor: middle; }
.fb-edge { fill: none; stroke: var(--teal); stroke-width: 2.5; }
.fb-edge-lbl { font-family: var(--r-heading-font); font-weight: 600; font-size: 12.5px; letter-spacing: .04em;
  fill: var(--muted); text-anchor: middle; text-transform: uppercase; }

/* ---------- Synthetic learner profile cards ---------- */
.profile-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 1.2em 1.3em; text-align: left; }
.profile-card.lit { background: var(--teal-soft); border-color: var(--teal); }
.pc-head { display: flex; align-items: center; gap: .65em; margin-bottom: .7em; }
.pc-head svg { width: 40px; height: 40px; flex: 0 0 auto; }
.pc-name { font-family: var(--r-heading-font); font-weight: 600; font-size: .6em; color: var(--ink); }
.pc-tag { font-size: .4em; color: var(--muted); }
.dim { margin: .45em 0; }
.dim-row { display: flex; justify-content: space-between; align-items: baseline; font-size: .42em; margin-bottom: .25em; }
.dim-name { color: var(--body); font-weight: 600; }
.dim-val { color: var(--teal); font-weight: 700; font-family: var(--r-heading-font); letter-spacing: .04em; text-transform: uppercase; font-size: .9em; }
.dim-track { display: flex; gap: 4px; }
.dim-seg { flex: 1; height: 7px; border-radius: 3px; background: var(--line); }
.dim-seg.on { background: var(--teal); }
.pc-misc { font-size: .4em; color: var(--muted); margin-top: .6em; border-top: 1px solid var(--line); padding-top: .55em; }
.pc-misc b { color: var(--ink); font-weight: 700; }

.roster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1em; }
.profile-card.mini { padding: .95em 1em; }
.profile-card.mini .pc-name { font-size: .52em; }
.profile-card.mini .dim-row { font-size: .38em; margin-bottom: .2em; }
.profile-card.mini .dim { margin: .35em 0; }
.profile-card.mini .dim-seg { height: 6px; }

/* ---------- Feedback loops ---------- */
.loops { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6em; }
.loop-card { text-align: center; }
.loop-card .cap { font-family: var(--r-heading-font); font-weight: 600; font-size: .6em; color: var(--ink); margin-top: .4em; }
.loop-card .sub { font-size: .42em; color: var(--muted); }
.loop-svg { width: 200px; height: 200px; }
.loop-ring { fill: none; stroke: var(--teal); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 8 14; }
.loop-ring.b { stroke: var(--ink); }
.loop-core { fill: var(--teal-soft); }
.loop-core.b { fill: var(--card); }
.loop-label { font-family: var(--r-main-font); font-weight: 700; font-size: 15px; fill: var(--ink); text-anchor: middle; }

/* ---------- Architecture: the system you built around the model ---------- */
.arch-svg { width: 100%; max-width: 880px; height: auto; margin: .2em auto 0; display: block; overflow: visible; }
.arch-cap { font-family: var(--r-heading-font); font-weight: 600; font-size: 12px;
  letter-spacing: .12em; text-transform: uppercase; fill: var(--muted); }
.arch-card { fill: var(--card); stroke: var(--line); stroke-width: 1.5; }
.arch-ic { font-size: 17px; fill: var(--teal); }
.arch-file { font-family: var(--r-main-font); font-weight: 700; font-size: 15px; fill: var(--teal); }
.arch-engine { fill: var(--ink); }
.arch-eng-t { font-family: var(--r-heading-font); font-weight: 600; font-size: 21px; fill: #fff; text-anchor: middle; }
.arch-eng-sub { font-family: var(--r-main-font); font-size: 13px; fill: var(--muted-dark); text-anchor: middle; }
.arch-state { fill: var(--teal-soft); stroke: var(--teal); stroke-width: 1.5; }
.arch-state-t { font-family: var(--r-main-font); font-weight: 700; font-size: 14px; fill: var(--ink); text-anchor: middle; }
.arch-note { font-family: var(--r-main-font); font-size: 11.5px; fill: var(--muted); text-anchor: middle; }
.arch-learner { fill: var(--card); stroke: var(--ink); stroke-width: 2.5; }
.arch-learner-t { font-family: var(--r-heading-font); font-weight: 600; font-size: 16px; fill: var(--ink); text-anchor: middle; }
.arch-edge { stroke: var(--muted); stroke-width: 2; fill: none; }
.arch-loop { stroke: var(--teal); stroke-width: 2.5; fill: none; stroke-dasharray: 6 7; }
.arch-edge-t { font-family: var(--r-heading-font); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; fill: var(--muted); text-anchor: middle; }
.arch-loop-t { font-family: var(--r-heading-font); font-weight: 600; font-size: 12px; letter-spacing: .08em;
  text-transform: uppercase; fill: var(--teal); text-anchor: middle; }

/* ---------- Continuous evidence: discrete -> continuous ---------- */
.cont-svg { width: 100%; max-width: 820px; height: auto; display: block; margin: .3em auto .1em; overflow: visible; }
.ct-when { font-family: var(--r-heading-font); font-weight: 600; font-size: 18px; }
.ct-when.then { fill: var(--muted); }
.ct-when.now { fill: var(--teal); }
.ct-track { stroke: var(--muted); stroke-width: 3; }
.ct-dot { fill: var(--muted); }
.ct-dotlbl { font-family: var(--r-main-font); font-size: 13px; fill: var(--muted); text-anchor: middle; }
.ct-bar { fill: var(--teal-soft); stroke: var(--teal); stroke-width: 2; }
.ct-tick { stroke: var(--teal); stroke-width: 1.5; opacity: .5; }
.signals { display: flex; flex-wrap: wrap; justify-content: center; gap: .5em; margin: .3em auto 0; max-width: 32em; }
.signals .chip { font-size: .42em; }

/* ---------- Role shift tree: moving upstream ---------- */
.shift-svg { width: 100%; max-width: 880px; height: auto; display: block; margin: .3em auto 0; overflow: visible; }
.sf-head { font-family: var(--r-heading-font); font-weight: 600; font-size: 22px; text-anchor: middle; }
.sf-head.then { fill: var(--muted); }
.sf-head.now { fill: var(--teal); }
.sf-node { fill: var(--teal-soft); stroke: var(--teal); stroke-width: 2.5; }
.sf-node.sys { fill: var(--teal); }
.sf-node.content { fill: #fff; stroke: var(--ink); stroke-width: 2.5; }
.sf-lbl { font-family: var(--r-heading-font); font-weight: 600; font-size: 17px; fill: var(--ink); }
.sf-edge { fill: none; stroke: var(--muted); stroke-width: 2.5; }
.sf-cap { font-family: var(--r-main-font); font-size: 15px; fill: var(--muted); text-anchor: middle; }

/* ---------- Role shift: I build the maker (legacy rows) ---------- */
.shift { display: flex; flex-direction: column; gap: 1.5em; margin: .8em 0 0; }
.shift-row { display: flex; align-items: center; gap: 1.1em; }
.shift-tag { font-family: var(--r-heading-font); font-weight: 600; font-size: .5em; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); width: 3em; flex: 0 0 auto; }
.shift-row.now .shift-tag { color: var(--teal); }
.flow { display: flex; align-items: center; gap: .55em; }
.flow-node { font-family: var(--r-heading-font); font-weight: 600; font-size: .5em; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: .5em 1.05em; white-space: nowrap; }
.flow-node.lit { background: var(--teal-soft); border-color: var(--teal); color: var(--teal); }
.flow-arrow { color: var(--muted); font-size: .6em; }

/* ---------- Human + AI equation ---------- */
.equation { display: flex; align-items: center; justify-content: center; gap: .9em; margin: .6em auto 0; }
.eq-term { background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 1.3em 1em 1.2em; text-align: center; width: 220px; }
.eq-term.lit { background: var(--teal-soft); border-color: var(--teal); }
.eq-term svg { width: 58px; height: 58px; display: block; margin: 0 auto .5em; }
.et-label { font-family: var(--r-heading-font); font-weight: 600; font-size: .6em; color: var(--ink); }
.eq-term.lit .et-label { color: var(--teal); }
.et-sub { font-size: .4em; color: var(--muted); margin-top: .35em; line-height: 1.45; }
.eq-op { font-family: var(--r-heading-font); font-weight: 300; font-size: 1.3em; color: var(--muted); flex: 0 0 auto; }
.eq-result { text-align: center; width: 180px; }
.er-main { font-family: var(--r-heading-font); font-weight: 600; font-size: .72em; color: var(--teal); line-height: 1.15; }

/* ---------- Sierpinski ecosystem ---------- */
.sierp { width: 100%; max-width: 540px; height: auto; display: block; margin: 0 auto; overflow: visible; }
.sierp polygon { stroke: #9aa0a6; stroke-width: 1; }
.sierp .hole { fill: #ffffff; }
.sierp-label { font-family: var(--r-heading-font); font-weight: 700; font-size: 21px; fill: var(--ink); }
.sierp-center { font-family: var(--r-heading-font); font-weight: 700; font-size: 22px; fill: var(--ink); text-anchor: middle; }

/* ---------- Ecosystem ---------- */
.eco-svg { width: 100%; max-width: 760px; height: 360px; margin: 0 auto; display: block; }
.eco-node { fill: var(--teal-soft); stroke: var(--teal); stroke-width: 2.5; }
.eco-node.human { fill: var(--card); stroke: var(--ink); }
.eco-text { font-family: var(--r-heading-font); font-weight: 600; font-size: 16px; fill: var(--ink); text-anchor: middle; }
.eco-edge { stroke: var(--muted); stroke-width: 2.5; fill: none; marker-end: url(#arrow); }

