/* OneWorld School of Thought — chapter-page extras (school-chapter-1.html … school-chapter-20.html, school-chapter-1-preview.html):
   interactive weekly-exercise checklist, reflection answer boxes, chapter diagrams and closing blocks.
   Builds on the chapter styles in school.css (same green and gold palette). */
.exercise .checklist{list-style:none;margin:.8em 0 0;padding:0;display:grid;gap:10px}
.exercise .checklist li{margin:0}
.exercise .checklist label{display:grid;grid-template-columns:28px 1fr;gap:4px 12px;align-items:start;padding:12px 14px;background:var(--paper);border:1px solid #e6d3a0;border-radius:12px;cursor:pointer;line-height:1.65;transition:background .15s,border-color .15s}
.exercise .checklist label:hover{border-color:var(--gold)}
.exercise .checklist input{grid-row:1/3;width:24px;height:24px;margin:3px 0 0;accent-color:var(--leaf);cursor:pointer}
.exercise .checklist input:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
.exercise .checklist .day{font-size:max(12.5px,.7em);font-weight:800;letter-spacing:1.2px;text-transform:uppercase;color:var(--gold-deep)}
.exercise .checklist .ct strong{color:var(--forest)}
.exercise .checklist li.is-done label{background:#eef2ec;border-color:#b9cdbf}
.exercise .checklist li.is-done .day{color:var(--leaf)}
.exercise .checklist li.is-done .day::after{content:" ✓"}
.check-progress{margin:.6em 0 0}
.check-meter{height:8px;border-radius:99px;background:#efe2bd;overflow:hidden}
.check-meter span{display:block;height:100%;width:0;border-radius:inherit;background:linear-gradient(90deg,var(--leaf),var(--gold));transition:width .25s ease}
.check-status{margin:.45em 0 0;font-size:max(14px,.8em);font-weight:700;color:var(--forest)}
.check-status.is-complete{color:var(--leaf)}
.check-reset{margin-top:12px;min-height:44px;padding:8px 16px;border:1px solid #d9bb6a;border-radius:10px;background:transparent;font:inherit;font-size:max(14px,.8em);font-weight:700;color:var(--gold-deep);cursor:pointer}
.check-reset:hover{background:var(--paper);border-color:var(--gold)}
.notes-abbr{font-size:max(14px,.82em);line-height:1.8;color:var(--muted);margin:0}
.ms-notes h4{font-size:1em;margin-top:1.4em}
@media(max-width:560px){.exercise .checklist label{padding:10px 12px;gap:2px 10px}}
@media print{.check-reset,.check-progress{display:none!important}.exercise .checklist label{border:0;padding:4px 0}}
/* Checklist counter (0/7 … 7/7) */
.check-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:.9em 0 0}
.check-title{margin:0;font-size:max(12.5px,.72em);font-weight:800;letter-spacing:1.2px;color:var(--gold-deep)}
.check-count{flex:0 0 auto;min-width:3.4em;text-align:center;padding:2px 12px;border-radius:999px;background:var(--forest);color:var(--gold-2);font-family:'Cormorant Garamond',Georgia,serif;font-weight:700;font-size:1.1em;line-height:1.5;font-variant-numeric:lining-nums tabular-nums}
.check-count.is-complete{background:var(--leaf);color:#fff}
.check-status:empty{display:none}

/* Epigraph and key lines */
.epigraph{margin:1.1em 0 0;padding:.2em 0 .2em 1em;border-left:3px solid var(--gold);font-family:var(--serif);font-size:1.12em;font-weight:600;line-height:1.6;color:var(--forest)}
.key-line{margin:1.4em 0;padding:.8em 1.1em;border-radius:12px;background:linear-gradient(140deg,var(--forest),var(--forest-3));color:var(--cream);font-family:var(--serif);font-size:1.15em;font-weight:700;line-height:1.55;text-align:center;border:1px solid #c9a24a66}
.chapter-body .big-questions{list-style:none;margin:1.2em 0;padding:0;display:grid;gap:8px}
.chapter-body .big-questions li{margin:0;padding:.55em 1em .55em 2.4em;position:relative;background:var(--cream);border-radius:10px;font-weight:600;color:var(--forest)}
.chapter-body .big-questions li::before{content:"?";position:absolute;left:.85em;top:.55em;font-family:'Cormorant Garamond',Georgia,serif;font-weight:700;color:var(--gold-deep)}

/* Church fathers and practical examples */
.fathers{display:grid;gap:12px;margin:1.4em 0}
.father,.example{padding:1em 1.2em;background:var(--cream);border:1px solid var(--line);border-left:3px solid var(--gold);border-radius:0 12px 12px 0}
.father h4,.example h4{margin:0 0 .4em}
.father>:last-child,.example>:last-child{margin-bottom:0}
.example{margin:1.2em 0}
.example h4{font-size:1.08em}
.chapter-body h4,.ms-section h3 .sec-t{font-variant-numeric:lining-nums}

/* Tables */
.ms-table tbody th [lang=en]{font-weight:600;color:var(--muted)}
.ms-pairs table{min-width:0}
.ms-pairs td{width:50%}
.ms-pairs td:first-child{color:#6b3b2a}
.ms-pairs td:last-child{color:var(--leaf);font-weight:700}
.ms-pairs td:first-child::after{content:"→";content:"→"/"";float:right;color:var(--gold-deep);font-weight:800;margin-left:.6em}
.ms-refs table{min-width:0}
.ms-refs td:first-child{font-weight:700;color:var(--forest);width:40%}
.ms-refs cite{font-style:italic}

/* Diagram 1 — concentric circles (1.3). Colours are set explicitly so labels keep their contrast. */
.dia-rings svg{width:min(320px,100%)}
.dia-rings .r-outer{fill:#fbf3dc;stroke:#c9a24a;stroke-width:2.5}
.dia-rings .r-mid{fill:#f1e2b6;stroke:#a88330;stroke-width:2}
.dia-rings .r-inner{fill:#2f6b52;stroke:#c9a24a;stroke-width:3}
.dia-rings text{font-family:var(--sans);text-anchor:middle;dominant-baseline:middle}
.dia-rings .r-lbl{font-size:22px;font-weight:700;fill:#0e2d23}
.dia-rings .r-core{font-size:22px;font-weight:700;fill:#ffffff}
.dia-rings .r-core-en{font-family:'Cormorant Garamond',Georgia,serif;font-size:19px;font-weight:700;fill:#e2c47e}
.diagram .dia-total{box-sizing:border-box;margin:.6em auto 0;width:min(300px,100%);padding-top:.7em;border-top:2px solid var(--gold);position:relative;font-weight:800;color:var(--forest)}
.dia-total::before,.dia-total::after{content:"";position:absolute;top:-8px;width:2px;height:8px;background:var(--gold)}
.dia-total::before{left:0}.dia-total::after{right:0}

/* Diagram 2 — vertical flow (1.6) */
.diagram .flow.flow-v{flex-direction:column;align-items:center;gap:28px}
.diagram .flow.flow-v li{min-width:min(220px,100%);justify-content:center}
.diagram .flow.flow-v li+li::before{content:"↓";left:50%;top:-25px;transform:translateX(-50%)}
.diagram .flow.flow-v li:last-child{background:var(--leaf);border-color:var(--gold);color:#fff}

/* Diagram 3 — person and the circles around them (1.7) */
.hub{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;max-width:440px;margin:0 auto}
.hub-list{display:contents;list-style:none;margin:0;padding:0}
.hub-list li{position:relative;z-index:1;margin:0;display:grid;place-items:center;min-height:60px;padding:.5em .4em;background:#fffcf4;border:2px solid #c9a24a;border-radius:12px;color:#0e2d23;font-weight:700;line-height:1.35;text-align:center}
.hub-n{grid-area:1/2}.hub-e{grid-area:2/3}.hub-s{grid-area:3/2}.hub-w{grid-area:2/1}
.hub-core{grid-area:2/2;position:relative;z-index:1;margin:0;display:grid;place-items:center}
.hub-core span{display:grid;place-items:center;width:min(100%,104px);aspect-ratio:1;border-radius:50%;background:#2f6b52;border:3px solid #c9a24a;color:#fff;font-weight:800;font-size:1.15em;box-shadow:0 6px 16px #0e2d2326}
.spoke{position:relative;z-index:0;pointer-events:none}
.spoke-v{grid-area:1/2/4/3;background:linear-gradient(#c9a24a,#c9a24a) center/3px 100% no-repeat}
.spoke-h{grid-area:2/1/3/4;background:linear-gradient(#c9a24a,#c9a24a) center/100% 3px no-repeat}

/* Reflection answers (1.10) */
.reflect{margin:2em 0 0}
.reflect h4{margin-top:0}
.reflect-note{margin:-.2em 0 .6em;font-size:max(13.5px,.78em);color:var(--muted)}
.reflection label{display:block;font-weight:700;color:var(--forest);cursor:pointer}
.reflection textarea{display:block;box-sizing:border-box;width:100%;min-height:88px;margin:.6em 0 0;padding:10px 12px;border:1px solid #d9c690;border-radius:10px;background:#fffcf4;color:var(--ink);font:inherit;font-size:max(16px,.9em);line-height:1.7;resize:vertical}
.reflection textarea::placeholder{color:#8a8f86;opacity:1}
.reflection textarea:focus{outline:2px solid var(--gold);outline-offset:1px;border-color:var(--gold)}
.reflect-tools{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;margin-top:14px}
.reflect-copy{min-height:44px;padding:8px 18px;border:0;border-radius:10px;background:var(--forest);color:var(--gold-2);font:inherit;font-size:max(15px,.85em);font-weight:700;cursor:pointer}
.reflect-copy:hover{background:var(--forest-3)}
.reflect-copy:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
.reflect-status{font-size:max(14px,.8em);font-weight:700;color:var(--leaf)}
.reflect-status.is-error{color:#8a2d1c}

/* Closing motto (1.11) and Chapter 2 notice */
.principle.motto{text-align:center;padding:1.5em 1.4em}
.principle.motto .lbl{letter-spacing:3px}
.principle .motto-ti{margin:0 0 .5em;font-family:var(--serif);font-size:1.3em;font-weight:700;line-height:1.5;color:#fff}
.principle .motto-en{margin:0;font-family:'Cormorant Garamond',Georgia,serif;font-size:1.15em;font-weight:700;color:var(--gold-2)}
.coming-next{margin:2.4em 0 0;padding:1.4em 1.2em 0;border-top:2px solid var(--line);text-align:center}
.coming-next::before{content:"";display:block;width:72px;height:2px;margin:0 auto .9em;background:var(--gold)}
.coming-next .cn-title,.coming-next .cn-en{font-variant-numeric:lining-nums}
.coming-next .cn-title{margin:0;font-family:var(--serif);font-size:1.25em;font-weight:700;color:var(--forest)}
.coming-next .cn-en{margin:.3em 0 0;font-family:'Cormorant Garamond',Georgia,serif;font-size:1.1em;font-weight:600;color:var(--muted)}
.coming-next .pill{font-family:var(--sans);vertical-align:middle}

@media(max-width:560px){
 .hub{gap:12px;grid-template-columns:minmax(0,.8fr) minmax(0,1fr) minmax(0,1.3fr)}
 .hub-list li{min-height:52px;padding:.4em .25em;font-size:.88em}
 .hub-core span{font-size:1em}
 .example,.father{padding:.9em 1em}
 .key-line{font-size:1.05em}
 .ms-pairs td:first-child::after{float:none;margin-left:.4em}
}
@media(forced-colors:active){
 .dia-rings circle{fill:Canvas;stroke:CanvasText}
 .dia-rings text{fill:CanvasText}
 .spoke-v,.spoke-h{background:none;forced-color-adjust:none}
 .spoke-v{background:linear-gradient(CanvasText,CanvasText) center/3px 100% no-repeat}
 .spoke-h{background:linear-gradient(CanvasText,CanvasText) center/100% 3px no-repeat}
}
@media print{.reflect-tools,.reflect-note{display:none!important}.reflection textarea{border:1px solid #999;min-height:4em}}

/* Chapter 2 diagrams. Colours are set explicitly so labels keep their contrast. */
.diagram .dia-title{margin:0 0 1.1em;font-size:max(14px,.86em);font-weight:800;letter-spacing:.3px;color:var(--gold-deep);line-height:1.55}
.diagram .dia-lead{margin:0 0 .35em;font-weight:700;color:var(--forest)}
/* Path of purpose (2.3) — vertical flow, last step highlighted */
.diagram .flow.flow-path li{min-width:min(260px,100%)}
/* Balance of life (2.6) — meaningful life at the centre, six areas around it */
.wheel{position:relative;width:min(540px,100%);aspect-ratio:1;margin:.6em auto 0;font-size:clamp(13.5px,.8em,16px)}
.wheel::before{content:"";position:absolute;inset:12%;border:2px dashed #c9a24a;border-radius:50%}
.wheel-core{position:absolute;left:50%;top:50%;z-index:1;width:34%;aspect-ratio:1;margin:0;transform:translate(-50%,-50%);display:grid;place-content:center;gap:.15em;padding:.6em;box-sizing:border-box;border-radius:50%;background:#2f6b52;border:3px solid #c9a24a;color:#fff;font-weight:800;line-height:1.35;text-align:center;box-shadow:0 6px 16px #0e2d2326}

.wheel-list{list-style:none;margin:0;padding:0}
.wheel-list li{position:absolute;z-index:1;width:30%;margin:0;transform:translate(-50%,-50%);display:grid;place-items:center;min-height:3.4em;padding:.45em .5em;box-sizing:border-box;background:#fffcf4;border:2px solid #c9a24a;border-radius:12px;color:#0e2d23;font-weight:700;line-height:1.35;text-align:center}
.wheel-list li:nth-child(1){left:50%;top:12%}
.wheel-list li:nth-child(2){left:82.9%;top:31%}
.wheel-list li:nth-child(3){left:82.9%;top:69%}
.wheel-list li:nth-child(4){left:50%;top:88%}
.wheel-list li:nth-child(5){left:17.1%;top:69%}
.wheel-list li:nth-child(6){left:17.1%;top:31%}
/* Influence of one person (2.7) — each circle wider than the one before */
.diagram .flow.flow-widen{align-items:center}
.diagram .flow.flow-widen li{justify-content:center;box-sizing:border-box;min-width:0}
.diagram .flow.flow-widen li:nth-child(1){width:min(100%,44%);background:#2f6b52;border-color:#c9a24a;color:#fff}
.diagram .flow.flow-widen li:nth-child(2){width:min(100%,58%)}
.diagram .flow.flow-widen li:nth-child(3){width:min(100%,72%);background:#fbf3dc}
.diagram .flow.flow-widen li:nth-child(4){width:min(100%,86%);background:#f1e2b6}
.diagram .flow.flow-widen li:nth-child(5){width:100%;background:#0e2d23;border-color:#c9a24a;color:#e2c47e}
.coming-next a{color:inherit;text-decoration:underline;text-decoration-color:var(--gold);text-underline-offset:4px}
.coming-next .cn-link{display:inline-flex;align-items:center;min-height:44px;margin-top:.5em;padding:6px 18px;border-radius:10px;background:var(--forest);color:var(--gold-2);font-family:var(--sans);font-size:max(15px,.85em);font-weight:700;text-decoration:none}
.coming-next .cn-link:hover{background:var(--forest-3)}
.coming-next .cn-link:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
@media(max-width:560px){
 .wheel{aspect-ratio:auto;display:grid;gap:12px;font-size:max(14px,.88em)}
 .wheel::before{display:none}
 .wheel-core{position:static;transform:none;width:min(150px,60%);justify-self:center}
 .wheel-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .wheel-list li{position:static;transform:none;width:auto}
 .diagram .flow.flow-widen li:nth-child(1){width:min(100%,60%)}
 .diagram .flow.flow-widen li:nth-child(2){width:min(100%,70%)}
 .diagram .flow.flow-widen li:nth-child(3){width:min(100%,80%)}
 .diagram .flow.flow-widen li:nth-child(4){width:min(100%,90%)}
}
@media(forced-colors:active){
 .wheel::before{border-color:CanvasText}
 .wheel-core,.wheel-list li,.diagram .flow.flow-widen li{forced-color-adjust:auto}
}

/* Chapter 3 diagrams and tables. Colours are set explicitly so labels keep their contrast. */
/* Inner world of the person (3.2) — SELF at the centre, six areas around it (builds on .wheel) */
.wheel-self .wheel-core .wc-en{font-family:'Cormorant Garamond',Georgia,serif;font-size:1.05em;font-weight:700;letter-spacing:2px;color:#e2c47e}
.wheel-self .wheel-list li>span{display:block}
.wheel-self .wl-en{display:block;font-family:'Cormorant Garamond',Georgia,serif;font-size:1.02em;font-weight:700;color:#7a5a12}
/* From emotion to a wise decision (3.6) — the pause step is marked in gold */
.diagram .flow.flow-pause li.is-pause{background:#f1e2b6;border:2px dashed #a88330;color:#0e2d23}
/* Path of personal change (3.8) — each step a little deeper green, ending in growth */
.diagram .flow.flow-grow li{min-width:min(260px,100%);justify-content:center}
.diagram .flow.flow-grow li:nth-child(1){background:#fffcf4}
.diagram .flow.flow-grow li:nth-child(2){background:#fbf3dc}
.diagram .flow.flow-grow li:nth-child(3){background:#f1e2b6}
.diagram .flow.flow-grow li:nth-child(4){background:#e3ecdf;border-color:#9fbfa9}
.diagram .flow.flow-grow li:nth-child(5){background:#c9dccd;border-color:#6f9c80}
/* Emotion → question to ask yourself (3.6) */
.ms-ask table{min-width:0}
.ms-ask tbody th{width:32%;color:var(--forest)}
.ms-ask td{color:#0e2d23;font-weight:600}
/* Outer image / possible inner state (3.7) */
.ms-mask table{min-width:0}
.ms-mask td{width:50%}
.ms-mask td:first-child{font-weight:700;color:var(--forest)}
.ms-mask td:last-child{color:#6b3b2a;font-style:normal}
@media(max-width:560px){.wheel-self .wl-en{font-size:.98em}}
@media(forced-colors:active){.diagram .flow.flow-pause li.is-pause,.diagram .flow.flow-grow li{forced-color-adjust:auto}}

/* Chapter 4 diagrams, tables and closing motto. Colours are set explicitly so labels keep their contrast in light and dark mode. */
/* Search for truth (4.3) — green and gold vertical flow ending in the decision */
.diagram .flow.flow-truth li{min-width:min(280px,100%);justify-content:center;background:#fffcf4;border:2px solid #c9a24a;color:#0e2d23;box-shadow:0 3px 10px #0e2d2312}
.diagram .flow.flow-truth li:nth-child(2){background:#fbf3dc}
.diagram .flow.flow-truth li:nth-child(3){background:#e3ecdf}
.diagram .flow.flow-truth li:last-child{background:#2f6b52;border-color:#c9a24a;color:#fff}
/* Consequences of dishonesty (4.6) — muted red steps with gold arrows, ending in conflict */
.diagram .flow.flow-warn li{min-width:min(260px,100%);justify-content:center;background:#fbf1ec;border:2px solid #c08a7a;color:#4a1d14;box-shadow:0 3px 10px #4a1d1410}
.diagram .flow.flow-warn li:nth-child(2){background:#f6e3dc}
.diagram .flow.flow-warn li:nth-child(3){background:#f0d4ca}
.diagram .flow.flow-warn li:nth-child(4){background:#e8c3b6;border-color:#a8604f}
.diagram .flow.flow-warn li:last-child{background:#8a3b2e;border-color:#c9a24a;color:#fff}
/* Foundations of peace (4.8) — peace at the centre, four foundations on a gold ring, joined to it by gold lines (builds on .wheel) */
.wheel.wheel-peace{width:min(420px,100%);font-size:clamp(14px,.85em,17px)}
.wheel-peace::before{inset:16%;border:3px solid #c9a24a}
.wheel-peace::after{content:"";position:absolute;inset:16%;z-index:0;pointer-events:none;
  background:linear-gradient(#c9a24a,#c9a24a) center/3px 100% no-repeat,linear-gradient(#c9a24a,#c9a24a) center/100% 3px no-repeat}
.wheel-peace .wheel-core{width:32%;font-size:1.25em}
.wheel-peace .wheel-list li{width:26%;min-height:3em;font-size:1.05em;box-shadow:0 3px 10px #0e2d2314}
.wheel-peace .wheel-list .wp-n{left:50%;top:16%}
.wheel-peace .wheel-list .wp-e{left:84%;top:50%}
.wheel-peace .wheel-list .wp-s{left:50%;top:84%}
.wheel-peace .wheel-list .wp-w{left:16%;top:50%}
/* Concept / meaning table (4.2) and the Ephesians line (4.7) */
.ms-concepts table{min-width:0}
.ms-concepts tbody th{width:30%}
.chapter-body .scripture-line{margin:1.4em 0;padding:.8em 1.2em;border-left:3px solid var(--gold);border-radius:0 12px 12px 0;background:linear-gradient(90deg,#fbf3dc,#fbf3dc66);font-family:var(--serif);font-size:1.04em;line-height:1.75;color:var(--forest)}
.chapter-body .scripture-line cite.ref{font-family:var(--sans);margin-left:.3em}
.principle .motto-en.motto-en-2{margin-top:.35em;font-size:1.02em;color:#f3e7c6}
@media(max-width:560px){
 /* Keep the four-part peace diagram circular on phones (its labels are short) */
 .wheel.wheel-peace{aspect-ratio:1;display:block;font-size:14px}
 .wheel-peace::before{display:block;inset:18%}
 .wheel-peace::after{inset:18%}
 .wheel-peace .wheel-core{position:absolute;transform:translate(-50%,-50%);width:34%;font-size:1.15em}
 .wheel-peace .wheel-list{display:block}
 .wheel-peace .wheel-list li{position:absolute;transform:translate(-50%,-50%);width:auto;min-width:29%;min-height:2.8em;padding:.35em .55em;font-size:1em;white-space:nowrap}
 .wheel-peace .wheel-list .wp-n{top:18%}.wheel-peace .wheel-list .wp-s{top:82%}
 .wheel-peace .wheel-list .wp-e{left:82%}.wheel-peace .wheel-list .wp-w{left:18%}
}
@media(forced-colors:active){
 .wheel-peace::after{background:linear-gradient(CanvasText,CanvasText) center/3px 100% no-repeat,linear-gradient(CanvasText,CanvasText) center/100% 3px no-repeat;forced-color-adjust:none}
 .diagram .flow.flow-truth li,.diagram .flow.flow-warn li{forced-color-adjust:auto}
}

/* Chapter 5 diagrams and tables. Colours are set explicitly so labels keep their contrast in light and dark mode. */
/* Dimensions of love (5.3) and Love and peace (5.8) — a green centre circle with boxes joined to it by gold lines.
   The square 3×3 grid has no gaps, so the cell centres sit at 1/6, 1/2 and 5/6 of each side; the SVG lines (in %)
   therefore always meet the middle of each box, at every screen width. */
.orbit{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));box-sizing:border-box;width:min(460px,100%);aspect-ratio:1;margin:.4em auto 0;font-size:clamp(14px,.86em,17px)}
.diagram .orbit-lines{position:absolute;inset:0;z-index:0;display:block;width:100%;height:100%;max-width:none;margin:0;overflow:visible;pointer-events:none}
.orbit-lines line{stroke:#c9a24a;stroke-width:3;stroke-linecap:round}
.orbit-lines ellipse{fill:none;stroke:#c9a24a;stroke-width:2;stroke-dasharray:5 7;opacity:.85}
.orbit-core{grid-area:2/2;position:relative;z-index:1;margin:0;display:grid;place-items:center}
.orbit-core span{display:grid;place-items:center;box-sizing:border-box;width:min(100%,7em);aspect-ratio:1;border-radius:50%;background:#2f6b52;border:3px solid #c9a24a;color:#fff;font-weight:800;font-size:1.2em;line-height:1.3;box-shadow:0 6px 16px #0e2d2326}
.orbit-list{display:contents;list-style:none;margin:0;padding:0}
.orbit-list li{position:relative;z-index:1;align-self:center;justify-self:center;box-sizing:border-box;width:calc(100% - 10px);min-height:3.2em;margin:0;display:grid;place-items:center;padding:.45em .4em;background:#fffcf4;border:2px solid #c9a24a;border-radius:12px;color:#0e2d23;font-weight:700;line-height:1.35;text-align:center;box-shadow:0 3px 10px #0e2d2314}
.orbit-list .o-n{grid-area:1/2}.orbit-list .o-w{grid-area:2/1}.orbit-list .o-e{grid-area:2/3}
.orbit-list .o-s{grid-area:3/2}.orbit-list .o-sw{grid-area:3/1}.orbit-list .o-se{grid-area:3/3}
/* In Diagram 1 the corner cells are empty, so the top and bottom boxes may widen across their row (still centred on the lines) */
.orbit-love .o-n,.orbit-love .o-s{grid-column:1/4;width:auto;min-width:calc(33.333% - 10px);max-width:100%;padding-inline:.9em;background:#fbf3dc}
/* Growth of love (5.6) — five green and gold steps, each a little deeper, ending in mature love */
.diagram .flow.flow-love li{min-width:min(260px,100%);justify-content:center;background:#fffcf4;border:2px solid #c9a24a;color:#0e2d23;box-shadow:0 3px 10px #0e2d2312}
.diagram .flow.flow-love li:nth-child(2){background:#fbf3dc}
.diagram .flow.flow-love li:nth-child(3){background:#f1e2b6}
.diagram .flow.flow-love li:nth-child(4){background:#e3ecdf}
.diagram .flow.flow-love li:last-child{background:#2f6b52;border-color:#c9a24a;color:#fff}
/* Types of love (5.3), emotion / mature love (5.6) and true love / control (5.7) */
.ms-loves tbody th{width:26%}
.ms-compare table,.ms-contrast table{min-width:0}
.ms-compare td,.ms-contrast td{width:50%}
.ms-compare td:last-child{color:var(--forest);font-weight:700}
.ms-contrast td:first-child{color:var(--leaf);font-weight:700}
.ms-contrast td:last-child{color:#6b3b2a}
@media(max-width:560px){
 .orbit{font-size:14px}
 .orbit-list li{width:calc(100% - 6px);min-height:3em;padding:.35em .25em}
 .orbit-love .o-n,.orbit-love .o-s{width:auto;min-width:calc(33.333% - 6px);padding-inline:.7em}
 .orbit-core span{font-size:1.1em}
}
@media(forced-colors:active){
 .orbit-lines line,.orbit-lines ellipse{stroke:CanvasText}
 .orbit-core span,.orbit-list li,.diagram .flow.flow-love li{forced-color-adjust:auto}
}

/* Chapter 6 diagrams and tables. Colours are set explicitly so labels keep their contrast in light and dark mode. */
/* The two dimensions of freedom (6.3) — a green centre circle joined by gold lines to two branches,
   external freedom (gold) and internal freedom (green), each with its four parts below it.
   The two branches always sit side by side in equal columns; long labels wrap inside their boxes. */
.branches{box-sizing:border-box;width:min(540px,100%);margin:.4em auto 0;font-size:clamp(14px,.86em,17px);line-height:1.35}
.branches .br-core{margin:0;display:flex;justify-content:center}
.br-core span{display:grid;place-items:center;box-sizing:border-box;width:6.4em;aspect-ratio:1;border-radius:50%;background:#2f6b52;border:3px solid #c9a24a;color:#fff;font-weight:800;font-size:1.2em;box-shadow:0 6px 16px #0e2d2326}
.branches .br-list{position:relative;list-style:none;margin:0;padding:26px 0 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto auto;column-gap:16px}
/* stem under the circle and the bar that joins the two branches (column centres sit at 25% − 4px and 75% + 4px) */
.br-list::before{content:"";position:absolute;left:50%;top:0;width:3px;height:13px;transform:translateX(-50%);background:#c9a24a}
.br-list::after{content:"";position:absolute;top:12px;left:calc(25% - 4px);right:calc(25% - 4px);height:3px;background:#c9a24a;border-radius:2px}
.branches .br{position:relative;margin:0;display:grid;grid-row:span 2;grid-template-rows:subgrid;justify-items:center}
.br::before{content:"";position:absolute;left:50%;top:-14px;width:3px;height:14px;transform:translateX(-50%);background:#c9a24a}
.branches .br-head{position:relative;z-index:1;box-sizing:border-box;width:100%;min-height:3.2em;margin:0;display:grid;place-items:center;padding:.5em .5em;border:2px solid #c9a24a;border-radius:12px;font-weight:800;text-align:center;box-shadow:0 3px 10px #0e2d2314}
.br-outer .br-head{background:#f1e2b6;color:#0e2d23}
.br-inner .br-head{background:#2f6b52;border-color:#c9a24a;color:#fff}
.branches .br-kids{position:relative;box-sizing:border-box;width:100%;list-style:none;margin:0;padding:16px 0 0;display:grid;gap:12px;align-content:start}
.br-kids::before{content:"";position:absolute;left:50%;top:0;bottom:1.4em;width:3px;transform:translateX(-50%);background:#c9a24a;opacity:.85}
.branches .br-kids li{position:relative;z-index:1;box-sizing:border-box;width:min(100%,10.5em);min-height:2.8em;margin:0 auto;display:grid;place-items:center;padding:.35em .5em;border:2px solid #c9a24a;border-radius:10px;font-weight:700;text-align:center;color:#0e2d23}
.br-outer .br-kids li{background:#fffcf4}
.br-inner .br-kids li{background:#e3ecdf;border-color:#2f6b52}
/* Responsible decision-making (6.6) — six green and gold steps, the conscience step marked in gold, ending in responsibility */
.diagram .flow.flow-decide li{min-width:min(260px,100%);justify-content:center;background:#fffcf4;border:2px solid #c9a24a;color:#0e2d23;box-shadow:0 3px 10px #0e2d2312}
.diagram .flow.flow-decide li:nth-child(2){background:#fbf3dc}
.diagram .flow.flow-decide li:nth-child(3){background:#f1e2b6;border-color:#a88330}
.diagram .flow.flow-decide li:nth-child(4){background:#e3ecdf}
.diagram .flow.flow-decide li:nth-child(5){background:#cfe0d3;border-color:#2f6b52}
.diagram .flow.flow-decide li:last-child{background:#2f6b52;border-color:#c9a24a;color:#fff}
/* Foundations of a free and peaceful society (6.8) — the .orbit grid (see Chapter 5) with a dashed gold ring.
   The bottom-middle cell is empty, so the two lower boxes may reach towards it for their longer labels. */
.orbit-society .orbit-core span{width:min(100%,7.4em);padding:.3em;font-size:1.02em}
.orbit-society .o-n{background:#f1e2b6}
.orbit-society .o-sw,.orbit-society .o-se{width:calc(100% - 10px)}
@media(max-width:560px){
 .branches{font-size:14px}
 .branches .br-list{column-gap:10px}
 .br-list::after{left:calc(25% - 2.5px);right:calc(25% - 2.5px)}
 .branches .br-head{min-height:3.9em;padding:.4em .3em}
 .branches .br-kids li{padding:.3em .3em}
 .orbit-society .orbit-core span{font-size:14px;padding:.2em}
 .orbit-society .o-sw{grid-column:1/3;justify-self:start;width:calc(75% - 8px);margin-left:3px}
 .orbit-society .o-se{grid-column:2/4;justify-self:end;width:calc(75% - 8px);margin-right:3px}
}
/* External / internal freedom (6.3) and freedom / matching responsibility (6.7) */
.ms-dims table,.ms-duty table{min-width:0}
.ms-dims td,.ms-duty td{width:50%}
.ms-dims td:last-child{color:var(--leaf);font-weight:700}
.ms-duty td:first-child{color:var(--forest);font-weight:700}
.ms-duty td:last-child{color:var(--leaf);font-weight:700}
@media(forced-colors:active){
 .br-list::before,.br-list::after,.br::before,.br-kids::before{background:CanvasText;forced-color-adjust:none}
 .br-core span,.branches .br-head,.branches .br-kids li,.diagram .flow.flow-decide li{forced-color-adjust:auto}
}

/* Chapter 7 diagrams and tables. Colours are set explicitly so labels keep their contrast in light and dark mode. */
/* The two paths of human choice (7.3) — a green centre circle joined by gold lines to two side-by-side paths:
   good (green, ending in peace) and evil (muted red, ending in conflict), each step joined by a gold arrow.
   Each path is a subgrid, so the steps of both paths stay level even when a label wraps onto two lines. */
.paths{box-sizing:border-box;width:min(540px,100%);margin:.4em auto 0;font-size:clamp(14px,.86em,17px);line-height:1.35}
.paths .pa-core{margin:0;display:flex;justify-content:center}
.pa-core span{display:grid;place-items:center;box-sizing:border-box;width:6.4em;aspect-ratio:1;padding:.3em;border-radius:50%;background:#2f6b52;border:3px solid #c9a24a;color:#fff;font-weight:800;font-size:1.15em;text-align:center;box-shadow:0 6px 16px #0e2d2326}
.paths .pa-list{position:relative;list-style:none;margin:0;padding:26px 0 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(4,auto);column-gap:16px;row-gap:30px}
/* stem under the circle and the bar that joins the two paths (column centres sit at 25% − 4px and 75% + 4px) */
.pa-list::before{content:"";position:absolute;left:50%;top:0;width:3px;height:13px;transform:translateX(-50%);background:#c9a24a}
.pa-list::after{content:"";position:absolute;top:12px;left:calc(25% - 4px);right:calc(25% - 4px);height:3px;background:#c9a24a;border-radius:2px}
.paths .pa{position:relative;margin:0;display:grid;grid-row:span 4;grid-template-rows:subgrid;row-gap:30px;justify-items:center}
.pa::before{content:"";position:absolute;left:50%;top:-14px;width:3px;height:14px;transform:translateX(-50%);background:#c9a24a}
.paths .pa-head{position:relative;z-index:1;box-sizing:border-box;width:100%;min-height:3em;margin:0;display:grid;place-items:center;padding:.45em .5em;border:2px solid #c9a24a;border-radius:12px;color:#fff;font-weight:800;font-size:1.08em;text-align:center;box-shadow:0 3px 10px #0e2d2314}
.pa-good .pa-head{background:#2f6b52}
.pa-evil .pa-head{background:#8a3b2e}
.paths .pa-steps{box-sizing:border-box;width:100%;list-style:none;margin:0;padding:0;display:grid;grid-row:2/span 3;grid-template-rows:subgrid;row-gap:30px;justify-items:center}
.paths .pa-steps li{position:relative;box-sizing:border-box;width:min(100%,11em);min-height:2.9em;margin:0;display:grid;place-items:center;padding:.4em .5em;border:2px solid #c9a24a;border-radius:10px;font-weight:700;text-align:center;overflow-wrap:anywhere;color:#0e2d23;box-shadow:0 3px 10px #0e2d2312}
.paths .pa-steps li::before{content:"↓";position:absolute;left:50%;top:-27px;transform:translateX(-50%);color:var(--gold-deep);font-weight:800;line-height:24px}
.pa-good .pa-steps li{background:#fffcf4}
.pa-good .pa-steps li:nth-child(2){background:#e3ecdf;border-color:#2f6b52}
.pa-good .pa-steps li:last-child{background:#0e2d23;border-color:#c9a24a;color:#e2c47e}
.pa-evil .pa-steps li{background:#fbf1ec;border-color:#c08a7a;color:#4a1d14}
.pa-evil .pa-steps li:nth-child(2){background:#f0d4ca;border-color:#a8604f}
.pa-evil .pa-steps li:last-child{background:#5c1f16;border-color:#c9a24a;color:#fff}
/* From thought to character (7.6) — six steps, from light gold to green, ending in character */
.diagram .flow.flow-character li{min-width:min(240px,100%);justify-content:center;background:#fffcf4;border:2px solid #c9a24a;color:#0e2d23;box-shadow:0 3px 10px #0e2d2312}
.diagram .flow.flow-character li:nth-child(2){background:#fbf3dc}
.diagram .flow.flow-character li:nth-child(3){background:#f1e2b6;border-color:#a88330}
.diagram .flow.flow-character li:nth-child(4){background:#e3ecdf;border-color:#6f9c80}
.diagram .flow.flow-character li:nth-child(5){background:#cfe0d3;border-color:#2f6b52}
.diagram .flow.flow-character li:last-child{background:#2f6b52;border-color:#c9a24a;color:#fff}
.diagram figcaption .fc-note{display:block;margin-top:.35em;font-family:'Cormorant Garamond',Georgia,serif;font-size:1.08em;font-weight:600;font-style:italic;color:var(--muted)}
/* Overcoming evil through goodness (7.8) — goodness in a green centre circle, six boxes on a gold ring
   (a regular hexagon), each joined to the centre by a gold line; an arrow below leads to trust and peace.
   The square keeps its shape at every width; the box positions match the SVG line ends (in %). */
.hexa{position:relative;box-sizing:border-box;width:min(440px,100%);aspect-ratio:1;margin:.4em auto 0;font-size:clamp(14px,.86em,17px);line-height:1.3}
.diagram .hexa-lines{position:absolute;inset:0;z-index:0;display:block;width:100%;height:100%;max-width:none;margin:0;overflow:visible;pointer-events:none}
.hexa-lines line{stroke:#c9a24a;stroke-width:3;stroke-linecap:round}
.hexa-lines ellipse{fill:none;stroke:#c9a24a;stroke-width:2.5;opacity:.9}
.hexa-core{position:absolute;left:50%;top:50%;z-index:1;width:30%;margin:0;transform:translate(-50%,-50%)}
.hexa-core span{display:grid;place-items:center;box-sizing:border-box;width:100%;aspect-ratio:1;border-radius:50%;background:#2f6b52;border:3px solid #c9a24a;color:#fff;font-weight:800;font-size:1.3em;box-shadow:0 6px 16px #0e2d2326}
.hexa-list{list-style:none;margin:0;padding:0}
.hexa-list li{position:absolute;z-index:1;box-sizing:border-box;min-width:25%;min-height:2.8em;margin:0;transform:translate(-50%,-50%);display:grid;place-items:center;padding:.35em .7em;background:#fffcf4;border:2px solid #c9a24a;border-radius:12px;color:#0e2d23;font-weight:700;text-align:center;white-space:nowrap;box-shadow:0 3px 10px #0e2d2314}
.hexa-list .hx-1{left:50%;top:14%}
.hexa-list .hx-2{left:81.177%;top:32%}
.hexa-list .hx-3{left:81.177%;top:68%}
.hexa-list .hx-4{left:50%;top:86%}
.hexa-list .hx-5{left:18.823%;top:68%}
.hexa-list .hx-6{left:18.823%;top:32%}
.hexa-list .hx-1,.hexa-list .hx-4{background:#fbf3dc}
.diagram .hexa-result{position:relative;margin:.2em 0 0;padding-top:34px;display:flex;justify-content:center}
.hexa-result::before{content:"↓";position:absolute;left:50%;top:2px;transform:translateX(-50%);color:var(--gold-deep);font-size:1.3em;font-weight:800;line-height:28px}
.hexa-result span{box-sizing:border-box;max-width:100%;padding:.6em 1.3em;border:2px solid #c9a24a;border-radius:12px;background:#0e2d23;color:#e2c47e;font-weight:800;font-size:1.08em;line-height:1.4;text-align:center;box-shadow:0 4px 12px #0e2d2320}
@media(max-width:560px){
 .paths{font-size:14px}
 .paths .pa-list{column-gap:10px}
 .pa-list::after{left:calc(25% - 2.5px);right:calc(25% - 2.5px)}
 .paths .pa-steps li{padding:.35em .3em}
 .hexa{font-size:14px}
 .hexa-core span{font-size:1.15em}
 .hexa-list li{min-width:24%;min-height:2.6em;padding:.3em .55em}
}
@media(max-width:340px){.hexa{font-size:13px}.hexa-list li{padding:.25em .4em}}
/* Good / evil (7.3) uses .ms-contrast (Chapter 5); excuse / responsible view (7.7) and evil act / good response (7.8) use .ms-pairs */
.ms-goodevil td{font-weight:700}
/* Chapter 7 references: long English titles may break inside a word on the narrowest phones instead of widening the page */
.ms-refs-wrap td{overflow-wrap:anywhere}
@media(forced-colors:active){
 .pa-list::before,.pa-list::after,.pa::before{background:CanvasText;forced-color-adjust:none}
 .hexa-lines line,.hexa-lines ellipse{stroke:CanvasText}
 .pa-core span,.paths .pa-head,.paths .pa-steps li,.diagram .flow.flow-character li,.hexa-core span,.hexa-list li,.hexa-result span{forced-color-adjust:auto}
}

/* Chapter 8 diagrams and tables. Colours are set explicitly so labels keep their contrast in light and dark mode. */
/* Two paths of character (8.3) — the Chapter 7 .paths layout with four steps under each head:
   humility (green, ending in trust) and pride (muted red, ending in conflict). The two paths stay level as subgrids. */
.paths.paths-tall .pa-list{grid-template-rows:repeat(5,auto)}
.paths.paths-tall .pa{grid-row:span 5}
.paths.paths-tall .pa-steps{grid-row:2/span 4}
.paths-tall .pa-core span{width:7.4em;font-size:1.02em;line-height:1.3}
.paths-tall .pa-good .pa-steps li:nth-child(3){background:#cfe0d3;border-color:#2f6b52}
.paths-tall .pa-evil .pa-steps li:nth-child(3){background:#ebc3b6;border-color:#a8604f}
/* Possible roots of pride (8.6) — a tree read from the bottom up: five roots (sand and gold) feed the trunk
   "ትዕቢት", which carries five branches (muted red). Roots and branches sit in two columns on either side of a
   gold spine, each joined to it by a short line, so every label keeps half the width even on the smallest phones.
   The markup lists roots → trunk → branches (the manuscript order); column-reverse draws the branches on top. */
.tree{box-sizing:border-box;width:min(560px,100%);margin:.4em auto 0;display:flex;flex-direction:column-reverse;font-size:clamp(14px,.86em,17px);line-height:1.35}
.tree ul{position:relative;list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:32px;row-gap:14px}
.tree ul::before{content:"";position:absolute;left:50%;width:3px;transform:translateX(-50%);background:#c9a24a}
.tree li{position:relative;z-index:1;box-sizing:border-box;min-height:2.9em;margin:0;display:grid;place-items:center;padding:.4em .6em;border:2px solid #c9a24a;border-radius:12px;font-weight:700;text-align:center;box-shadow:0 3px 10px #0e2d2312}
.tree li::after{content:"";position:absolute;top:50%;width:16px;height:3px;transform:translateY(-50%);background:#c9a24a}
.tr-branches{padding-bottom:22px!important}
.tr-branches::before{top:1.4em;bottom:0}
.tr-branches li{background:#fbf1ec;border-color:#c08a7a;color:#4a1d14}
.tr-branches li:first-child{grid-column:1/-1;justify-self:center;width:min(100%,13em);background:#f0d4ca;border-color:#a8604f}
.tr-branches li:first-child::after{display:none}
.tr-branches li:nth-child(2n)::after{right:-18px}
.tr-branches li:nth-child(2n+3)::after{left:-18px}
.tree .tr-trunk{position:relative;z-index:1;margin:0;display:flex;justify-content:center}
.tr-trunk span{box-sizing:border-box;min-width:7.5em;max-width:100%;padding:.65em 1.4em;border:3px solid #c9a24a;border-radius:14px;background:#4a2a17;color:#f1e2b6;font-weight:800;font-size:1.2em;line-height:1.3;text-align:center;box-shadow:0 6px 16px #0e2d2326}
.tr-roots{padding-top:22px!important;border-top:2px dashed #a8833099}
.tr-roots::before{top:0;bottom:1.4em;background:#a88330!important}
.tr-roots li{background:#f6ecd2;border-color:#a88330;color:#3b2a10}
.tr-roots li::after{background:#a88330}
.tr-roots li:nth-child(odd)::after{right:-18px}
.tr-roots li:nth-child(even)::after{left:-18px}
.tr-roots li:last-child{grid-column:1/-1;justify-self:center;width:min(100%,13em);background:#f1e2b6}
.tr-roots li:last-child::after{display:none}
/* Humility as a foundation for peace (8.8) reuses the six-step .flow-character colours (7.6), ending in green */
.ms-humble td{font-weight:700}
/* Low self-confidence / healthy humility / pride (8.7): three equal columns that wrap inside the screen */
.ms-three table{min-width:0;table-layout:fixed}
.ms-three th,.ms-three td{width:33.333%;overflow-wrap:break-word}
.ms-three td:first-child{color:#5b4a3a}
.ms-three td:nth-child(2){color:var(--leaf);font-weight:700}
.ms-three td:last-child{color:#6b3b2a}
@media(max-width:560px){
 .tree{font-size:14px}
 .tree ul{column-gap:20px;row-gap:12px}
 .tree li{padding:.35em .35em}
 .tree li::after{width:10px}
 .tr-branches li:nth-child(2n)::after,.tr-roots li:nth-child(odd)::after{right:-12px}
 .tr-branches li:nth-child(2n+3)::after,.tr-roots li:nth-child(even)::after{left:-12px}
 .tr-trunk span{font-size:1.12em;padding:.55em 1.1em}
 .paths-tall .pa-core span{width:7.2em;font-size:1em}
 .ms-three th,.ms-three td{padding:8px 7px}
}
@media(max-width:340px){
 .tree{font-size:13px}
 .tree ul{column-gap:14px}
 .tree li::after{width:7px}
 .tr-branches li:nth-child(2n)::after,.tr-roots li:nth-child(odd)::after{right:-9px}
 .tr-branches li:nth-child(2n+3)::after,.tr-roots li:nth-child(even)::after{left:-9px}
}
@media(forced-colors:active){
 .tree ul::before,.tree li::after{background:CanvasText!important;forced-color-adjust:none}
 .tree li,.tr-trunk span{forced-color-adjust:auto}
}

/* Chapter 9 diagrams and tables. Colours are set explicitly so labels keep their contrast in light and dark mode. */
/* The balance of mind and heart (9.3) — the mind (green) and the heart (gold) as two circles, joined by a gold line
   through the dark centre circle "ጥበብ", with an arrow down to the decision they lead to. On phones the two circles stay
   side by side and the centre circle moves below them, joined to both by gold lines, so every label keeps a readable size.
   The circles grow taller instead of clipping if a reader chooses a very large text size. */
.balance{position:relative;box-sizing:border-box;width:min(580px,100%);margin:.4em auto 0;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;column-gap:16px;font-size:clamp(14px,.86em,17px);line-height:1.35}
.balance::before{content:"";position:absolute;left:25%;right:25%;top:50%;z-index:0;height:3px;transform:translateY(-50%);background:#c9a24a}
.balance::after{content:"";position:absolute;left:50%;top:50%;bottom:-.3em;z-index:0;width:3px;transform:translateX(-50%);background:#c9a24a}
.bal-side{position:relative;z-index:1;box-sizing:border-box;aspect-ratio:1;border:3px solid;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1em .7em;text-align:center;box-shadow:0 6px 16px #0e2d231f}
.bal-mind{grid-area:1/1;background:#e3ecdf;border-color:#2f6b52;color:#0e2d23}
.bal-heart{grid-area:1/3;background:#fbf3dc;border-color:#c9a24a;color:#3b2a10}
.balance .bal-head{margin:0 0 .3em;font-weight:800;font-size:1.28em;line-height:1.3}
.bal-mind .bal-head{color:#1f5a41}
.bal-heart .bal-head{color:#8a5a14}
.bal-list{list-style:none;margin:0;padding:0;display:grid;gap:.12em;font-weight:700}
.balance .bal-list li{margin:0}
.balance .bal-core{grid-area:1/2;position:relative;z-index:2;margin:0;display:grid;place-items:center}
.bal-core span{display:grid;place-items:center;box-sizing:border-box;width:5.4em;aspect-ratio:1;border:3px solid #c9a24a;border-radius:50%;background:#0e2d23;color:#e2c47e;font-weight:800;font-size:1.15em;box-shadow:0 6px 16px #0e2d2333}
.diagram .bal-result{position:relative;margin:.3em 0 0;padding-top:34px;display:flex;justify-content:center}
.bal-result::before{content:"↓";position:absolute;left:50%;top:2px;transform:translateX(-50%);color:var(--gold-deep);font-size:1.3em;font-weight:800;line-height:28px}
.bal-result span{box-sizing:border-box;max-width:100%;padding:.6em 1.3em;border:2px solid #c9a24a;border-radius:12px;background:#2f6b52;color:#fff;font-weight:800;font-size:1.08em;line-height:1.45;text-align:center;box-shadow:0 4px 12px #0e2d2320}
/* Thoughts, emotions and actions (9.6) — a five-step vertical flow; the two-way arrow between thought and emotion shows
   that they influence each other, and the gold loop on the right leads the outcome back to the next situation. */
.loop{position:relative;box-sizing:border-box;width:min(100%,calc(17em + 46px));margin:.4em auto 0;padding-right:46px;font-size:clamp(14px,.86em,17px);line-height:1.4}
.diagram .flow.flow-loop{gap:30px}
.diagram .flow.flow-loop li{box-sizing:border-box;width:100%;min-width:0;justify-content:center;text-align:center;background:#fffcf4;border:2px solid #c9a24a;color:#0e2d23;box-shadow:0 3px 10px #0e2d2312}
.diagram .flow.flow-loop li+li::before{top:-27px}
.diagram .flow.flow-loop li:nth-child(2){background:#fbf3dc}
.diagram .flow.flow-loop li:nth-child(3){background:#f1e2b6;border-color:#a88330}
.diagram .flow.flow-loop li:nth-child(4){background:#e3ecdf;border-color:#6f9c80}
.diagram .flow.flow-loop li:last-child{background:#2f6b52;border-color:#c9a24a;color:#fff}
.diagram .flow.flow-loop li.lp-mutual::before{content:"↑↓";letter-spacing:-.12em}
.lp-return{position:absolute;right:6px;top:1.45em;bottom:1.45em;z-index:0;width:32px;border:3px solid #c9a24a;border-left:0;border-radius:0 18px 18px 0;pointer-events:none}
.lp-return::before{content:"";position:absolute;left:-10px;top:-1.5px;width:0;height:0;transform:translateY(-50%);border-top:7px solid transparent;border-bottom:7px solid transparent;border-right:10px solid #c9a24a}
/* The foundations of inner peace (9.8) — the Chapter 7 .hexa ring with inner peace at the centre; the six labels may wrap
   onto two lines inside their boxes so the longest one still fits on the narrowest phones. */
.hexa-peace .hexa-core{width:30%}
.hexa-peace .hexa-core span{padding:.25em;font-size:1.12em;line-height:1.25;text-align:center}
.hexa-peace .hexa-list li{width:max-content;min-width:24%;max-width:35%;white-space:normal;line-height:1.3;padding:.4em .55em}
.hexa-peace .hexa-list .hx-1,.hexa-peace .hexa-list .hx-4{max-width:44%}
.hexa-peace .hexa-list .hx-2,.hexa-peace .hexa-list .hx-5{background:#e3ecdf;border-color:#6f9c80}
/* Seven questions before a decision (9.7): numbered cards */
.chapter-body .ask-list{list-style:none;counter-reset:ask;margin:1em 0 1.3em;padding:0;display:grid;gap:8px}
.chapter-body .ask-list li{counter-increment:ask;position:relative;margin:0;padding:.55em 1em .55em 2.7em;background:var(--cream);border-radius:10px;font-weight:600;color:var(--forest)}
.chapter-body .ask-list li::before{content:counter(ask);position:absolute;left:.8em;top:.78em;display:grid;place-items:center;width:1.5em;height:1.5em;border-radius:50%;background:var(--forest);color:var(--gold-2);font-size:.82em;font-weight:800;line-height:1;font-variant-numeric:lining-nums}
/* Mind / heart (9.3) and emotion / possible message / wise response (9.6): three columns that wrap inside the screen */
.ms-trio table{min-width:0;table-layout:fixed}
.ms-trio thead th{width:37%}
.ms-trio thead th:first-child{width:26%}
.ms-trio th,.ms-trio td{overflow-wrap:break-word}
.ms-mindheart td:nth-of-type(1){color:var(--forest);font-weight:600}
.ms-mindheart td:nth-of-type(2){color:#7a4f12;font-weight:600}
.ms-feelings td:last-child{color:var(--leaf);font-weight:700}
@media(max-width:560px){
 .balance{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto auto;column-gap:10px;row-gap:12px;font-size:14px}
 .balance::before{left:calc((100% - 10px)/4);right:calc((100% - 10px)/4);top:auto;bottom:2.7em;transform:translateY(50%)}
 .balance::after{display:none}
 .bal-mind{grid-area:1/1}.bal-heart{grid-area:1/2}
 .bal-side{padding:1em .4em}
 .bal-side::after{content:"";position:absolute;left:50%;top:100%;width:3px;height:calc(12px + 2.7em);transform:translateX(-50%);background:#c9a24a}
 .balance .bal-head{font-size:1.18em}
 .balance .bal-core{grid-area:2/1/3/3}
 .bal-core span{width:4.9em;font-size:1.1em}
 .diagram .bal-result{padding-top:30px}
 .bal-result span{padding:.55em 1em;font-size:1.02em}
 .loop{font-size:14px;padding-right:40px;width:min(100%,calc(17em + 40px))}
 .lp-return{right:4px;width:28px}
 .hexa-peace .hexa-core span{font-size:1.02em}
 .hexa-peace .hexa-list li{padding:.22em .35em;line-height:1.2}
 .ms-trio th,.ms-trio td{padding:8px 7px}
 .chapter-body .ask-list li{padding:.5em .8em .5em 2.5em}
 .chapter-body .ask-list li::before{left:.7em}
}
@media(forced-colors:active){
 .balance::before,.balance::after,.bal-side::after{background:CanvasText;forced-color-adjust:none}
 .lp-return{border-color:CanvasText}
 .lp-return::before{border-right-color:CanvasText}
 .bal-side,.bal-core span,.bal-result span,.diagram .flow.flow-loop li,.chapter-body .ask-list li::before{forced-color-adjust:auto}
}

/* Chapter 10 diagrams and tables. Colours are set explicitly so labels keep their contrast in light and dark mode. */
/* Understanding suffering (10.3) — the Chapter 7 .paths layout: "መከራ" in the dark centre circle, joined by gold lines to
   what we can change (green) and what we cannot change (gold). The three items under each head are joined by plain gold
   lines instead of arrows (they are ways of responding, not steps in a sequence), and both branches meet again below in
   "ብጥበብን ብሓላፍነትን ምንባር". Each branch is a subgrid, so the items of both branches stay level when a label wraps. */
.paths-cope .pa-core span{background:#0e2d23;color:#e2c47e;font-size:1.2em}
.paths-cope .pa-can .pa-head{background:#2f6b52}
.paths-cope .pa-cannot .pa-head{background:#8a5a14}
.paths.paths-cope .pa-steps li::before{content:"";top:-32px;width:3px;height:30px;background:#c9a24a;line-height:0}
.paths-cope .pa-can .pa-steps li{background:#e3ecdf;border-color:#6f9c80;color:#0e2d23}
.paths-cope .pa-cannot .pa-steps li{background:#fbf3dc;border-color:#c9a24a;color:#3b2a10}
/* stubs under both branches, the bar that joins them (column centres sit at 25% − 4px and 75% + 4px) and the arrow down */
.paths-cope .pa::after{content:"";position:absolute;left:50%;top:100%;width:3px;height:14px;transform:translateX(-50%);background:#c9a24a}
.diagram .pa-end{position:relative;margin:0;padding-top:42px;display:flex;justify-content:center}
.pa-end::before{content:"";position:absolute;top:12px;left:calc(25% - 4px);right:calc(25% - 4px);height:3px;background:#c9a24a;border-radius:2px}
.pa-end::after{content:"↓";position:absolute;left:50%;top:12px;transform:translateX(-50%);color:var(--gold-deep);font-size:1.3em;font-weight:800;line-height:28px}
.pa-end span{box-sizing:border-box;max-width:100%;padding:.6em 1.3em;border:2px solid #c9a24a;border-radius:12px;background:#2f6b52;color:#fff;font-weight:800;font-size:1.08em;line-height:1.45;text-align:center;box-shadow:0 4px 12px #0e2d2320}
/* Possible paths after suffering (10.6) — the hard experience, an arrow to safety, support, time and care, then three
   possible paths side by side, joined by gold lines. The three paths have equal weight (none is "better").
   On phones the paths stack, each joined to a gold line on the left, so every label keeps the full width. */
.fork{box-sizing:border-box;width:min(580px,100%);margin:.4em auto 0;font-size:clamp(14px,.86em,17px);line-height:1.4}
.diagram .fork p{margin:0;display:flex;justify-content:center}
.fk-top span,.fk-mid span{box-sizing:border-box;max-width:100%;padding:.6em 1.3em;border:2px solid #c9a24a;border-radius:12px;font-weight:800;line-height:1.45;text-align:center;box-shadow:0 4px 12px #0e2d2320}
.fk-top span{background:#0e2d23;color:#e2c47e;font-size:1.1em}
.fk-mid span{background:#fbf3dc;color:#3b2a10;font-size:1.04em}
.diagram .fork .fk-mid{position:relative;padding-top:34px}
.fk-mid::before{content:"↓";position:absolute;left:50%;top:2px;transform:translateX(-50%);color:var(--gold-deep);font-size:1.3em;font-weight:800;line-height:28px}
.fork .fk-list{position:relative;list-style:none;margin:0;padding:30px 0 0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:12px;row-gap:12px}
.fk-list::before{content:"";position:absolute;left:50%;top:0;width:3px;height:15px;transform:translateX(-50%);background:#c9a24a}
.fk-list::after{content:"";position:absolute;top:13px;left:calc((100% - 24px)/6);right:calc((100% - 24px)/6);height:3px;background:#c9a24a;border-radius:2px}
.fork .fk-list li{position:relative;box-sizing:border-box;margin:0;min-height:3.4em;display:grid;place-items:center;padding:.5em .55em;border:2px solid #c9a24a;border-radius:12px;background:#fffcf4;color:#0e2d23;font-weight:700;text-align:center;overflow-wrap:break-word;box-shadow:0 3px 10px #0e2d2312}
.fork .fk-list li::before{content:"";position:absolute;left:50%;top:-16px;width:3px;height:14px;transform:translateX(-50%);background:#c9a24a}
.fork .fk-list li:nth-child(1){background:#f6efe2;border-color:#b89a6a;color:#3b2a10}
.fork .fk-list li:nth-child(3){background:#e3ecdf;border-color:#6f9c80}
/* From compassion to peace (10.8) — the Chapter 9 .hexa-peace ring with "ሰላም" at the centre */
.hexa-compassion .hexa-core span{font-size:1.3em}
/* Things that may grow after a hard experience (10.6) */
.chapter-body .grow-list{list-style:none;margin:1em 0 1.3em;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,13em),1fr));gap:8px}
.chapter-body .grow-list li{position:relative;margin:0;padding:.55em 1em .55em 2.3em;background:var(--cream);border-radius:10px;font-weight:600;color:var(--forest)}
.chapter-body .grow-list li::before{content:"";position:absolute;left:1em;top:50%;width:.55em;height:.55em;border-radius:50%;background:var(--gold);transform:translateY(-50%)}
/* Gentle note before the seven-day practice (10.10) */
.chapter-body .care-note{margin:1em 0 1.2em;padding:.75em 1em .75em 1.1em;border-left:3px solid var(--leaf);border-radius:0 10px 10px 0;background:#eef2ec;color:var(--forest);font-weight:600}
/* Kind of suffering / example / what may help (10.3) uses .ms-trio (Chapter 9); avoid / do (10.8) uses .ms-pairs */
.ms-kinds td:nth-of-type(1){color:#5b4a3a}
.ms-kinds td:nth-of-type(2){color:var(--leaf);font-weight:700}
@media(max-width:560px){
 .paths-cope .pa-core span{font-size:1.1em}
 .pa-end::before{left:calc(25% - 2.5px);right:calc(25% - 2.5px)}
 .pa-end span{padding:.55em 1em;font-size:1.02em}
 .fork{font-size:14px}
 .fk-top span,.fk-mid span{padding:.55em 1em}
 .fork .fk-list{grid-template-columns:minmax(0,1fr);padding:30px 0 0 28px}
 .fk-list::after{left:12px;right:calc(50% - 1.5px)}
 .fork .fk-list li{min-height:2.9em;padding:.45em .8em}
 /* gold line on the left from the bar down to the middle of the last path, with a short stub to each path */
 .fork .fk-list li::before{left:-18px;top:-14px;bottom:-2px;height:auto;transform:none}
 .fork .fk-list li:first-child::before{top:-19px}
 .fork .fk-list li:last-child::before{bottom:auto;height:calc(50% + 14px)}
 .fork .fk-list li:first-child:last-child::before{height:calc(50% + 19px)}
 .fork .fk-list li::after{content:"";position:absolute;left:-18px;top:50%;width:16px;height:3px;transform:translateY(-50%);background:#c9a24a}
 .hexa-compassion .hexa-core span{font-size:1.15em}
}
@media(forced-colors:active){
 .paths.paths-cope .pa-steps li::before,.paths-cope .pa::after,.pa-end::before,.fk-list::before,.fk-list::after,.fork .fk-list li::before,.fork .fk-list li::after{background:CanvasText;forced-color-adjust:none}
 .pa-end span,.fk-top span,.fk-mid span,.fork .fk-list li,.chapter-body .grow-list li::before{forced-color-adjust:auto}
}
/* Kinds of suffering (10.3) on narrow phones: each row becomes a small card — the kind of suffering as its heading, then the
   example and what may help, each introduced by its column heading (data-label) — so no word has to break inside a column. */
@media(max-width:400px){
 .ms-kinds thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
 .ms-kinds table,.ms-kinds tbody,.ms-kinds tr,.ms-kinds tbody th,.ms-kinds td{display:block;width:auto}
 .ms-kinds tr{border-bottom:1px solid #ece3cb}
 .ms-kinds tr:last-child{border-bottom:0}
 .ms-kinds tbody th,.ms-kinds td{border-bottom:0}
 .ms-kinds tbody th{padding:10px 12px 6px}
 .ms-kinds td{display:grid;grid-template-columns:minmax(0,6.6em) minmax(0,1fr);gap:10px;padding:3px 12px 7px}
 .ms-kinds td:last-child{padding-bottom:11px}
 .ms-kinds td::before{content:attr(data-label);font-size:.84em;font-weight:700;line-height:1.55;color:var(--muted);padding-top:.12em}
 .ms-kinds tbody tr:nth-child(even) td{background:transparent}
 .ms-kinds tbody tr:nth-child(even){background:#fcf8ee}
}

/* Chapter 11 diagrams, lists and reflection tools. Colours are set explicitly so labels keep their contrast in light and dark mode. */
/* Forgiveness and reconciliation (11.3) — two columns side by side: forgiveness (green) and reconciliation (gold), each a
   heading with its items as small boxes, joined below by gold lines to the closing line "ይቕረታን ዕርቂን ሓደ ኣይኮኑን።".
   The two columns stay side by side at every width; on phones the labels wrap inside their boxes. */
.twin{position:relative;box-sizing:border-box;width:min(560px,100%);margin:.4em auto 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;font-size:clamp(14px,.86em,17px);line-height:1.4}
.tw-col{position:relative;box-sizing:border-box;display:flex;flex-direction:column;border:2px solid;border-radius:14px;overflow:visible;box-shadow:0 4px 12px #0e2d2318}
.tw-forgive{background:#e3ecdf;border-color:#2f6b52}
.tw-reconcile{background:#fbf3dc;border-color:#c9a24a}
.diagram .tw-head{margin:0;padding:.55em .6em;border-radius:11px 11px 0 0;color:#fff;font-weight:800;font-size:1.18em;text-align:center}
.tw-forgive .tw-head{background:#2f6b52}
.tw-reconcile .tw-head{background:#8a5a14}
.tw-list{list-style:none;margin:0;padding:.75em .7em .85em;display:grid;gap:8px;flex:1;align-content:start}
.twin .tw-list li{margin:0;padding:.45em .6em;border:1.5px solid;border-radius:10px;background:#fffcf4;font-weight:700;text-align:center;overflow-wrap:break-word}
.tw-forgive .tw-list li{border-color:#6f9c80;color:#0e2d23}
.tw-reconcile .tw-list li{border-color:#c9a24a;color:#3b2a10}
/* a gold stub under each column and the bar that joins them above the closing line */
.tw-col::after{content:"";position:absolute;left:50%;top:100%;width:3px;height:16px;transform:translateX(-50%);background:#c9a24a}
.diagram .twin+figcaption{position:relative;margin-top:0;padding-top:38px;display:flex;justify-content:center}
.diagram .twin+figcaption::before{content:"";position:absolute;top:14px;left:calc(25% - 4px);right:calc(25% - 4px);height:3px;background:#c9a24a;border-radius:2px}
.diagram .twin+figcaption::after{content:"";position:absolute;left:50%;top:14px;width:3px;height:24px;transform:translateX(-50%);background:#c9a24a}
.tw-end{box-sizing:border-box;max-width:min(560px,100%);padding:.6em 1.3em;border:2px solid #c9a24a;border-radius:12px;background:#0e2d23;color:#e2c47e;font-size:1.08em;font-weight:800;line-height:1.45;text-align:center;box-shadow:0 4px 12px #0e2d2320}
/* The healing journey (11.6) — six steps from the inner wound (muted sand) through support and care (gold, then green)
   to hope and a new beginning (deep green), each joined to the next by a gold arrow */
.diagram .flow.flow-heal{gap:30px}
.diagram .flow.flow-heal li{box-sizing:border-box;width:min(100%,16em);min-width:0;justify-content:center;text-align:center;background:#fffcf4;border:2px solid #c9a24a;color:#0e2d23;box-shadow:0 3px 10px #0e2d2312}
.diagram .flow.flow-heal li+li::before{top:-27px}
.diagram .flow.flow-heal li:first-child{background:#f6efe2;border-color:#b89a6a;color:#3b2a10}
.diagram .flow.flow-heal li:nth-child(2){background:#fbf3dc}
.diagram .flow.flow-heal li:nth-child(3){background:#f1e2b6;border-color:#a88330}
.diagram .flow.flow-heal li:nth-child(4){background:#e3ecdf;border-color:#6f9c80}
.diagram .flow.flow-heal li:nth-child(5){background:#cfe0d3;border-color:#2f6b52}
.diagram .flow.flow-heal li:last-child{background:#2f6b52;border-color:#c9a24a;color:#fff}
/* Foundations of lasting peace (11.8) — the Chapter 7/9 ring (.hexa.hexa-peace) with seven foundations on a regular
   heptagon around "ነባሪ ሰላም"; the box positions match the SVG line ends (in %). */
.hepta .hexa-list li{min-width:22%;max-width:none;white-space:nowrap}
.hepta .hexa-list .hp-1{left:50%;top:14%}
.hepta .hexa-list .hp-2{left:78.146%;top:27.554%}
.hepta .hexa-list .hp-3{left:85.097%;top:58.011%}
.hepta .hexa-list .hp-4{left:65.62%;top:82.435%}
.hepta .hexa-list .hp-5{left:34.38%;top:82.435%}
.hepta .hexa-list .hp-6{left:14.903%;top:58.011%}
.hepta .hexa-list .hp-7{left:21.854%;top:27.554%}
.hepta .hexa-list .hp-1{background:#fbf3dc}
.hepta .hexa-list .hp-3,.hepta .hexa-list .hp-6{background:#e3ecdf;border-color:#6f9c80}
.hepta .hexa-core{width:31%}
.hepta .hexa-core span{font-size:1.1em}
/* What we learn from the Church Fathers (11.5): the .grow-list cards from Chapter 10, one sentence per row */
.chapter-body .learn-list{grid-template-columns:minmax(0,1fr)}
/* Delete saved reflection answers (11.10): a quieter outline button next to Copy; asks for confirmation first */
.reflect-clear{min-height:44px;padding:8px 16px;border:1.5px solid #b5715f;border-radius:10px;background:transparent;color:#8a2d1c;font:inherit;font-size:max(15px,.85em);font-weight:700;cursor:pointer}
.reflect-clear:hover{background:#fbf1ec}
.reflect-clear:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
@media(max-width:560px){
 .twin{gap:12px;font-size:14px}
 .diagram .twin+figcaption::before{left:calc(25% - 3px);right:calc(25% - 3px)}
 .tw-list{padding:.6em .5em .7em;gap:7px}
 .twin .tw-list li{padding:.4em .4em}
 .tw-end{padding:.55em 1em;font-size:1.02em}
 .hepta .hexa-list li{min-width:20%;padding:.25em .45em}
 .hepta .hexa-core span{font-size:1em}
}
@media(max-width:340px){
 .twin{gap:10px}
 .diagram .twin+figcaption::before{left:calc(25% - 2.5px);right:calc(25% - 2.5px)}
 .tw-list{padding:.55em .4em .65em}
 .twin .tw-list li{padding:.38em .3em}
 .hepta .hexa-list li{padding:.2em .32em}
}
@media(forced-colors:active){
 .tw-col::after,.diagram .twin+figcaption::before,.diagram .twin+figcaption::after{background:CanvasText;forced-color-adjust:none}
 .tw-col,.diagram .tw-head,.twin .tw-list li,.tw-end,.diagram .flow.flow-heal li{forced-color-adjust:auto}
}
@media print{.reflect-clear{display:none!important}}

/* Chapter 12 diagrams, lists and notes. Colours are set explicitly so labels keep their contrast in light and dark mode. */
/* The OneWorld view (12.2): two sentences in one green key-line panel */
.key-line.key-lines p{margin:0}
.key-line.key-lines p+p{margin-top:.45em}
/* Safety note after the healthy / harmful relationship table (12.7): the .care-note from Chapter 10 with two paragraphs */
.chapter-body .care-note.safety-note p{margin:0}
.chapter-body .care-note.safety-note p+p{margin-top:.5em}
/* The house of marriage (12.3) — an SVG roof (green, gold edge) with "ሰላምን ሓባራዊ ዕብየትን", six pillars standing under gold
   beams and the dark foundation "ክብሪ ሰብ፡ ናጻ ፍቓድን ድሕነትን". The labels are live text over the drawing, so they stay sharp
   and follow the reader's text size. The layout follows the width the diagram actually has (container queries):
   three storeys of two pillars on the narrowest phones, two storeys of three on larger phones, one row of six when wide.
   The beam positions between storeys are worked out from the padding and row gap (change them together). */
.house{container:house/inline-size;box-sizing:border-box;width:min(600px,100%);margin:.4em auto 0;font-size:clamp(14px,.86em,16px);line-height:1.35;filter:drop-shadow(0 4px 10px #0e2d231c)}
.hs-roof{position:relative;aspect-ratio:400/190;margin:0 -1%}
.diagram .hs-roof-art{position:absolute;inset:0;width:100%;height:100%;max-width:none;margin:0;overflow:visible}
.hs-roof-fill{fill:#2f6b52}
.hs-roof-line{fill:none;stroke:#c9a24a;stroke-width:4;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}
.diagram .hs-roof-t{position:absolute;left:50%;bottom:9%;z-index:1;box-sizing:border-box;width:max-content;max-width:56%;margin:0;transform:translateX(-50%);color:#fff;font-weight:800;font-size:1.08em;line-height:1.3;text-align:center}
.hs-pillars{--beam:#c9a24a;list-style:none;position:relative;margin:0;padding:20px 7% 10px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:1fr;gap:24px 12%;
 background:linear-gradient(var(--beam),var(--beam)) 0 0/100% 9px no-repeat,linear-gradient(var(--beam),var(--beam)) 0 calc(33.333% + 4.5px)/100% 9px no-repeat,linear-gradient(var(--beam),var(--beam)) 0 calc(66.667% + 5.5px)/100% 9px no-repeat,#fbf6e8;
 border-left:2px solid #e6d3a0;border-right:2px solid #e6d3a0}
.hs-pillars li{position:relative;box-sizing:border-box;display:grid;place-items:center;min-height:5.8em;margin:0;padding:1em 0;background:linear-gradient(90deg,#efe2bd,#fffcf4 28%,#fffcf4 72%,#efe2bd);border-left:2px solid #c9a24a;border-right:2px solid #c9a24a;color:#0e2d23;font-weight:800;text-align:center}
.hs-pillars li::before,.hs-pillars li::after{content:"";position:absolute;left:-9%;right:-9%;height:.62em;background:#a88330;border-radius:3px}
.hs-pillars li::before{top:0}
.hs-pillars li::after{bottom:0}
.hs-pillars li span{min-width:0;white-space:nowrap}
.diagram .hs-base{position:relative;margin:0 -1%;padding:.7em .9em;border-top:6px solid #c9a24a;border-radius:0 0 12px 12px;background:#0e2d23;color:#e2c47e;font-weight:800;font-size:1.04em;line-height:1.45;text-align:center}
@container house (min-width:340px){
 .hs-roof{aspect-ratio:400/160}
 .diagram .hs-roof-t{max-width:60%;bottom:10%}
 .hs-pillars{grid-template-columns:repeat(3,minmax(0,1fr));gap:30px 8%;padding:22px 7% 12px;background:linear-gradient(var(--beam),var(--beam)) 0 0/100% 9px no-repeat,linear-gradient(var(--beam),var(--beam)) 0 calc(50% + 5px)/100% 9px no-repeat,#fbf6e8}
 .hs-pillars li{min-height:7.2em;font-size:min(1em,4.6cqi)}
 .hs-pillars li::before,.hs-pillars li::after{left:-12%;right:-12%}
}
@container house (min-width:540px){
 .hs-roof{aspect-ratio:400/130}
 .diagram .hs-roof-t{max-width:62%;bottom:12%}
 .hs-pillars{grid-template-columns:repeat(6,minmax(0,1fr));gap:0 2%;padding:22px 3% 12px;background:linear-gradient(var(--beam),var(--beam)) 0 0/100% 9px no-repeat,#fbf6e8}
 .hs-pillars li{min-height:9em;font-size:min(1em,2.7cqi)}
 .hs-pillars li::before,.hs-pillars li::after{left:-8%;right:-8%}
}
/* Healthy communication (12.6) — six steps from listening (light gold) through understanding and respect (gold, then green)
   to agreement and action (deep green), each joined to the next by a gold arrow */
.diagram .flow.flow-talk{gap:30px}
.diagram .flow.flow-talk li{box-sizing:border-box;width:min(100%,16em);min-width:0;justify-content:center;text-align:center;background:#fffcf4;border:2px solid #c9a24a;color:#0e2d23;box-shadow:0 3px 10px #0e2d2312}
.diagram .flow.flow-talk li+li::before{top:-27px}
.diagram .flow.flow-talk li:nth-child(2){background:#fbf3dc}
.diagram .flow.flow-talk li:nth-child(3){background:#f1e2b6;border-color:#a88330}
.diagram .flow.flow-talk li:nth-child(4){background:#e3ecdf;border-color:#6f9c80}
.diagram .flow.flow-talk li:nth-child(5){background:#cfe0d3;border-color:#2f6b52}
.diagram .flow.flow-talk li:last-child{background:#2f6b52;border-color:#c9a24a;color:#fff}
/* From family to world peace (12.8) — five concentric SVG circles, inner peace in the green centre; each label sits in a small
   box on its own ring (box positions match the middle of each ring band, in %). Stacked above the centre where there is
   room; on the narrowest phones the labels alternate above and below the centre so they never touch. */
.rings5{container:rings/inline-size;position:relative;box-sizing:border-box;width:min(460px,100%);aspect-ratio:1;margin:.4em auto 0;font-size:clamp(13px,.84em,16px);line-height:1.25}
.diagram .rg-art{position:absolute;inset:0;width:100%;height:100%;max-width:none;margin:0;overflow:visible}
.rg-art circle{stroke:#c9a24a;stroke-width:2;vector-effect:non-scaling-stroke}
.rg-art .rg-c5{fill:#fbf3dc}
.rg-art .rg-c4{fill:#f1e2b6}
.rg-art .rg-c3{fill:#e3ecdf;stroke:#a88330}
.rg-art .rg-c2{fill:#bcd5c3;stroke:#a88330}
.rg-art .rg-c1{fill:#2f6b52;stroke-width:3}
.rg-list{list-style:none;margin:0;padding:0}
.rg-list li{position:absolute;left:50%;z-index:1;margin:0;transform:translate(-50%,-50%);display:flex;justify-content:center;width:max-content;max-width:94%}
.rg-list li span{box-sizing:border-box;padding:.18em .65em;border:1.5px solid #c9a24a;border-radius:999px;background:#fffcf4;color:#0e2d23;font-weight:800;text-align:center;white-space:nowrap}
.rg-list .rg-5{top:95%}
.rg-list .rg-4{top:13%}
.rg-list .rg-3{top:79%}
.rg-list .rg-2{top:29%}
.rg-list .rg-1{top:50%;max-width:30%}
.rg-list .rg-1 span{padding:0;border:0;background:none;color:#fff;font-size:1.1em;line-height:1.25;white-space:normal}
.rg-list .rg-4 span,.rg-list .rg-5 span{background:#fff}
@container rings (min-width:300px){
 .rg-list .rg-5{top:5%}
 .rg-list .rg-3{top:21%}
 .rg-list li span{font-size:min(1em,4.4cqi);padding:.12em .6em}
}
@media(max-width:560px){
 .house{font-size:14px}
 .diagram .hs-base{padding:.65em .8em;font-size:1em}
 .rings5{font-size:13px}
}
@media(forced-colors:active){
 .hs-roof-fill{fill:Canvas}.hs-roof-line{stroke:CanvasText}
 .hs-pillars{background:none;border-top:6px solid CanvasText;forced-color-adjust:none}
 .hs-pillars li,.diagram .hs-base,.diagram .hs-roof-t,.diagram .flow.flow-talk li,.rg-list li span{forced-color-adjust:auto}
 .hs-pillars li::before,.hs-pillars li::after{background:CanvasText}
 .rg-art circle{fill:Canvas;stroke:CanvasText}
 .rg-list .rg-1 span{color:CanvasText}
}
@media print{.house,.rings5{filter:none}}

/* Chapter 13 diagrams and epigraph. Colours are set explicitly so labels keep their contrast in light and dark mode. */
/* Two-sentence opening line (13): one gold bar on the left, the two sentences one under the other */
.epigraph.epigraph-lines p{margin:0}
.epigraph.epigraph-lines p+p{margin-top:.35em}
/* The inherent dignity of humanity (13.3) — "ክብሪ ሰብ" in a green circle, eight equally sized nodes around it, each joined
   to the centre by a gold line (SVG, drawn behind the live text labels). The layout follows the width the diagram has
   (container query): on the narrowest phones two columns of four nodes with the centre between them; on other phones a
   3 × 3 grid (centre in the middle cell, the eight nodes clockwise from the top); when there is room, a true circle of
   nodes on a dashed gold ring. Node order in the list is clockwise from the top. The SVG holds one set of lines per layout. */
.dignity{container:dignity/inline-size;box-sizing:border-box;width:min(560px,100%);margin:.4em auto 0;font-size:clamp(14px,.86em,16px);line-height:1.3}
.dg{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(5,1fr);gap:12px 14px}
.diagram .dg-art{position:absolute;inset:0;z-index:0;display:block;width:100%;height:100%;max-width:none;margin:0;overflow:visible;pointer-events:none}
.dg-art line{stroke:#c9a24a;stroke-width:2.5;stroke-linecap:round;vector-effect:non-scaling-stroke}
.dg-art .dg-orbit{fill:none;stroke:#c9a24a;stroke-width:2;stroke-dasharray:5 5;vector-effect:non-scaling-stroke}
.dg-ring,.dg-grid{display:none}
.dg-list{display:contents;list-style:none;margin:0;padding:0}
.dg-list li{position:relative;z-index:1;box-sizing:border-box;margin:0;display:grid;place-items:center;padding:.45em .3em;background:#fffcf4;border:2px solid #c9a24a;border-radius:12px;color:#0e2d23;font-weight:800;text-align:center;box-shadow:0 3px 10px #0e2d2314;min-height:3.6em}
.dg-1{grid-area:1/1}.dg-2{grid-area:1/2}.dg-3{grid-area:2/1}.dg-4{grid-area:2/2}
.dg-5{grid-area:4/1}.dg-6{grid-area:4/2}.dg-7{grid-area:5/1}.dg-8{grid-area:5/2}
.diagram .dg-core{grid-area:3/1/4/3;position:relative;z-index:1;margin:0;display:grid;place-items:center}
.dg-core span{box-sizing:border-box;display:grid;place-items:center;width:4.4em;aspect-ratio:1;padding:.3em;border-radius:50%;background:#2f6b52;border:3px solid #c9a24a;color:#fff;font-weight:800;font-size:1em;line-height:1.25;text-align:center;box-shadow:0 6px 16px #0e2d2326}
@container dignity (min-width:330px){
 .dg{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(3,1fr);gap:16px 10px}
 .dg-pair{display:none}.dg-grid{display:inline}
 .dg-list li{min-height:4.2em}
 .dg-1{grid-area:1/2}.dg-2{grid-area:1/3}.dg-3{grid-area:2/3}.dg-4{grid-area:3/3}
 .dg-5{grid-area:3/2}.dg-6{grid-area:3/1}.dg-7{grid-area:2/1}.dg-8{grid-area:1/1}
 .diagram .dg-core{grid-area:2/2}
 .dg-core span{width:min(100%,6em);font-size:1.12em}
}
@container dignity (min-width:500px){
 .dg{display:block;aspect-ratio:1}
 .dg-ring{display:inline}.dg-grid,.dg-pair{display:none}
 .dg-list li{position:absolute;width:24%;height:4.4em;min-height:0;transform:translate(-50%,-50%);padding:.35em .4em;font-size:min(1.05em,3.2cqi)}
 .dg-1{left:50%;top:13%}.dg-2{left:76.16%;top:23.84%}.dg-3{left:87%;top:50%}.dg-4{left:76.16%;top:76.16%}
 .dg-5{left:50%;top:87%}.dg-6{left:23.84%;top:76.16%}.dg-7{left:13%;top:50%}.dg-8{left:23.84%;top:23.84%}
 .diagram .dg-core{position:absolute;left:50%;top:50%;width:27%;transform:translate(-50%,-50%)}
 .dg-core span{width:100%;font-size:min(1.25em,4.2cqi)}
}
/* From prejudice to conflict (13.7) — two parallel vertical paths of five steps joined by gold arrows: prejudice (muted red,
   each step a little deeper, ending in hatred and conflict) beside the green prevention path (ending in peace).
   Each path is a subgrid, so the steps of both paths stay level even when a label wraps onto two lines. */
.twopaths{position:relative;box-sizing:border-box;width:min(540px,100%);margin:.4em auto 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(5,auto);column-gap:clamp(14px,6%,36px);font-size:clamp(14px,.86em,17px);line-height:1.35;
 background:linear-gradient(#e6d3a0,#e6d3a0) center/2px 100% no-repeat}
.twopaths .tp{list-style:none;margin:0;padding:0;display:grid;grid-row:1/span 5;grid-template-rows:subgrid;row-gap:30px}
.twopaths .tp li{position:relative;box-sizing:border-box;min-height:3em;margin:0;display:grid;place-items:center;padding:.45em .5em;border:2px solid #c9a24a;border-radius:10px;font-weight:700;text-align:center;box-shadow:0 3px 10px #0e2d2312}
.twopaths .tp li+li::before{content:"↓";content:"↓"/"";position:absolute;left:50%;top:-27px;transform:translateX(-50%);color:var(--gold-deep);font-weight:800;line-height:24px}
.tp-harm li{background:#fbf1ec;border-color:#c08a7a;color:#4a1d14}
.tp-harm li:nth-child(2){background:#f6e3dc}
.tp-harm li:nth-child(3){background:#f0d4ca}
.tp-harm li:nth-child(4){background:#e8c3b6;border-color:#a8604f}
.twopaths .tp-harm li:last-child{background:#8a3b2e;border-color:#c9a24a;color:#fff;font-weight:800}
.tp-peace li{background:#fffcf4;color:#0e2d23}
.tp-peace li:nth-child(2){background:#e3ecdf;border-color:#6f9c80}
.tp-peace li:nth-child(3){background:#cfe0d3;border-color:#2f6b52}
.tp-peace li:nth-child(4){background:#bcd5c3;border-color:#2f6b52}
.twopaths .tp-peace li:last-child{background:#2f6b52;border-color:#c9a24a;color:#fff;font-weight:800}
/* The foundation of a peaceful society (13.8) — a layered pyramid read from the bottom up: the dark foundation "ክብሪ ሰብ",
   then green, light green and sand levels, and the gold top "ነባሪ ሰላም". The list keeps the manuscript order (foundation
   first); grid rows put it on the bottom. Each level is a trapezoid (clip-path); --t / --b are the insets of its top and
   bottom edges, so the sides line up into one slope. All levels share the height of the tallest one. */
.pyramid{list-style:none;box-sizing:border-box;width:min(520px,100%);margin:.4em auto 0;padding:0;display:grid;grid-template-rows:repeat(5,1fr);row-gap:5px;font-size:clamp(14px,.86em,17px);line-height:1.3;filter:drop-shadow(0 4px 10px #0e2d231c)}
.pyramid li{box-sizing:border-box;min-height:3.4em;margin:0;display:grid;place-items:center;padding:.4em calc(var(--t) + 3%);
 clip-path:polygon(var(--t) 0,calc(100% - var(--t)) 0,calc(100% - var(--b)) 100%,var(--b) 100%);font-weight:800;text-align:center}
.pyramid .py-5{grid-row:1;--t:34%;--b:27.2%;background:#c9a24a;color:#0e2d23}
.pyramid .py-4{grid-row:2;--t:27.2%;--b:20.4%;background:#f1e2b6;color:#0e2d23}
.pyramid .py-3{grid-row:3;--t:20.4%;--b:13.6%;background:#cfe0d3;color:#0e2d23}
.pyramid .py-2{grid-row:4;--t:13.6%;--b:6.8%;background:#2f6b52;color:#fff}
.pyramid .py-1{grid-row:5;--t:6.8%;--b:0%;background:#0e2d23;color:#e2c47e;font-size:1.08em}
@media(max-width:560px){
 .twopaths{font-size:14px}
 .twopaths .tp li{padding:.4em .3em}
 .pyramid{font-size:14px}
}
@media(forced-colors:active){
 .dg-art line,.dg-art .dg-orbit{stroke:CanvasText}
 .dg-list li,.dg-core span,.twopaths .tp li{forced-color-adjust:auto}
 .twopaths{background:none}
 .pyramid li{clip-path:none;border:2px solid CanvasText;padding-inline:.6em;forced-color-adjust:auto}
}
@media print{.pyramid{filter:none}}

/* Chapter 14 diagrams and cards. Colours are set explicitly so labels keep their contrast in light and dark mode. */
/* Questions inside a card (14.8, step 5): lighter boxes so they stand out from the card */
.father .big-questions{margin:.6em 0}
.chapter-body .father .big-questions li{background:var(--paper)}
/* Levels of conflict (14.3) — the Chapter 12 .rings5 circles ("ውሽጢ ሰብ" in the green centre, then family, community, country
   and world) with double-headed arrows across every ring boundary: conflict at one level
   can influence the levels next to it. The arrows run along two shallow diagonals (clear of the labels on the vertical axis) from the
   middle of one ring to the middle of the next; each has a light outline so it stays visible on the dark centre and light rings. */
.rg-arrows line{stroke:#5a3a10;stroke-width:2.5;stroke-linecap:round;vector-effect:non-scaling-stroke}
.rg-arrows line.halo{stroke:#fffcf4;stroke-width:6}
.rg-arrows path{fill:#5a3a10;stroke:#fffcf4;stroke-width:1.5;stroke-linejoin:round;paint-order:stroke;vector-effect:non-scaling-stroke}
/* The conflict tree (14.6) — the visible signs of conflict are leaves in a green crown (SVG cloud, muted red leaf-shaped
   labels), "ግጭት" sits on the brown trunk, and the hidden causes are roots under a gold ground line. The labels are live
   text over the SVG drawing. The layout follows the width the diagram has (container query): on phones the leaves stand
   1 + 2 + 2 and the roots in two columns along one central tap root; when there is room the leaves stand 2 + 3 and the roots
   in four columns, each reached by its own root. Column gaps are in % so the SVG roots meet the middle of each column. */
.ctree{container:ctree/inline-size;box-sizing:border-box;width:min(580px,100%);margin:.4em auto 0;font-size:clamp(14px,.86em,17px);line-height:1.3;filter:drop-shadow(0 4px 10px #0e2d231c)}
.ct-crown{position:relative;z-index:1;padding:11% 9% calc(2.4em + 4%)}
.diagram .ct-crown-art,.diagram .ct-trunk-art,.diagram .ct-links{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;margin:0;overflow:visible;pointer-events:none}
.ct-cloud-line ellipse{fill:#6f9c80;stroke:#6f9c80;stroke-width:5;vector-effect:non-scaling-stroke}
.ct-cloud-fill ellipse{fill:#e3ecdf}
.ct-boughs{fill:none;stroke:#8a5a32;stroke-width:3;stroke-linecap:round;opacity:.75;vector-effect:non-scaling-stroke}
.ct-leaves{position:relative;list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 10px}
.ct-leaves li,.ct-root-list li{box-sizing:border-box;margin:0;display:grid;place-items:center;min-width:0;padding:.45em .5em;font-weight:800;text-align:center;box-shadow:0 3px 10px #0e2d2314}
.ct-leaves li{min-height:2.9em;background:#fbf1ec;border:2px solid #c08a7a;border-radius:1.3em .35em;color:#4a1d14}
.ct-leaves li:first-child{grid-column:1/-1;justify-self:center;width:min(100%,8.5em)}
.ct-trunk{position:relative;z-index:0;box-sizing:border-box;width:min(12em,56%);margin:-2.4em auto 0;padding:2.6em 0 1.4em;display:grid;place-items:center}
.ct-trunk-art path{fill:#5a3520}
.diagram .ct-trunk-t{position:relative;margin:0}
.ct-trunk-t span{display:block;box-sizing:border-box;padding:.4em 1.1em;border:3px solid #c9a24a;border-radius:12px;background:#3b2414;color:#f1e2b6;font-weight:800;font-size:1.2em;line-height:1.3;text-align:center}
.ct-roots{position:relative;padding:0 4% 14px;border-top:4px solid #a88330;border-radius:0 0 14px 14px;background:linear-gradient(#efe2bd,#fbf6e8 75%)}
.diagram .ct-fan{display:block;width:100%;height:2.2em;max-width:none;margin:0;overflow:visible}
.ct-fan path,.ct-links path{fill:none;stroke:#a88330;stroke-width:3;stroke-linecap:round;vector-effect:non-scaling-stroke}
.ct-fan-4,.ct-links-4{display:none}
.ct-rgrid{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(4,1fr);column-gap:10%}
.ct-links{z-index:0}
.ct-root-list{display:contents;list-style:none;margin:0;padding:0}
.ct-root-list li{position:relative;z-index:1;min-height:2.9em;margin:6px 0;background:#f6ecd2;border:2px solid #a88330;border-radius:10px;color:#3b2a10}
.ct-root-list li span,.ct-leaves li span{min-width:0;overflow-wrap:break-word}
@container ctree (min-width:460px){
 .ct-crown{padding:10% 8% calc(2.4em + 5%)}
 .ct-leaves{grid-template-columns:repeat(6,minmax(0,1fr));gap:14px 10px}
 .ct-leaves li:first-child{grid-column:2/4;justify-self:stretch;width:auto}
 .ct-leaves li:nth-child(2){grid-column:4/6}
 .ct-leaves li:nth-child(3){grid-column:1/3}
 .ct-leaves li:nth-child(4){grid-column:3/5}
 .ct-leaves li:nth-child(5){grid-column:5/7}
 .ct-fan-2,.ct-links-2{display:none}
 .ct-fan-4,.ct-links-4{display:inline}
 .ct-rgrid{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(2,1fr);column-gap:4%}
 .ct-root-list li{margin:10px 0}
}
/* Conflict escalation and resolution (14.8) — the Chapter 13 .twopaths with six steps per path: escalation (muted red, each
   step a little deeper, ending in hatred and conflict) beside resolution (green, with the fair solution in gold, ending in
   understanding and peace) */
.twopaths.twopaths-6{grid-template-rows:repeat(6,auto)}
.twopaths-6 .tp{grid-row:1/span 6}
.twopaths-6 .tp-harm li:nth-child(5){background:#e0b3a4;border-color:#a8604f}
.twopaths-6 .tp-peace li:nth-child(5){background:#f1e2b6;border-color:#a88330}
@media(max-width:560px){
 .ctree{font-size:14px}
 .ct-leaves li,.ct-root-list li{padding:.4em .35em}
}
@media(forced-colors:active){
 .rg-arrows line,.rg-arrows path{stroke:CanvasText}.rg-arrows path{fill:CanvasText}.rg-arrows line.halo{stroke:Canvas}
 .ct-cloud-line ellipse{fill:CanvasText;stroke:CanvasText}.ct-cloud-fill ellipse,.ct-trunk-art path{fill:Canvas}
 .ct-boughs,.ct-fan path,.ct-links path{stroke:CanvasText}
 .ct-roots{background:none;border-top-color:CanvasText}
 .ct-leaves li,.ct-root-list li,.ct-trunk-t span{forced-color-adjust:auto}
}
@media print{.ctree{filter:none}}

/* Chapter 15 diagrams and notes. Colours are set explicitly so labels keep their contrast in light and dark mode. */
/* Foundations of reconciliation (15.3) — the Chapter 7/9 ring (.hexa.hexa-peace) with "ዕርቂ" in the green centre, the six
   foundations on the gold ring, and the Chapter 7 arrow down to "ነባሪ ሰላም" */
.hexa-recon .hexa-core span{font-size:1.35em}
.hexa-recon .hexa-list .hx-2,.hexa-recon .hexa-list .hx-5{background:#fffcf4;border-color:#c9a24a}
.hexa-recon .hexa-list .hx-3,.hexa-recon .hexa-list .hx-6{background:#e3ecdf;border-color:#6f9c80}
/* The circle of unity (15.5), after Dorotheos of Gaza — "ኣምላኽ" in the green centre, six human figures on the outer ring,
   each joined to the centre by a gold line with an arrow toward God. Three hexagons join the six lines at the outer, middle
   and inner rings: the nearer the centre, the shorter the distance between neighbours. The square SVG keeps its shape at
   every width (a light disc, so it reads the same in dark mode); the centre label is live text. */
.unity{container:unity/inline-size;position:relative;box-sizing:border-box;width:min(440px,100%);aspect-ratio:1;margin:.4em auto 0;line-height:1.25}
.diagram .uc-art{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;margin:0;overflow:visible;pointer-events:none}
.uc-disc{fill:#fffcf4;stroke:#c9a24a;stroke-width:2}
.uc-glow{fill:#c9a24a;opacity:.16}
.uc-ray{stroke:#c9a24a;stroke-width:2.6;stroke-linecap:round}
.uc-hex{fill:none;stroke:#a88330;stroke-linejoin:round}
.uc-h1{stroke-width:1.4;stroke-dasharray:4 4;opacity:.75}
.uc-h2{stroke-width:1.6;stroke-dasharray:3.5 3;opacity:.85}
.uc-h3{stroke-width:1.8;stroke-dasharray:3 2.5}
.uc-dot{fill:#2f6b52;stroke:#fffcf4;stroke-width:1}
.uc-arrow{fill:#a88330}
.uc-fig{fill:#2f6b52}
.uc-fig .uc-halo{fill:#e3ecdf;stroke:#c9a24a;stroke-width:2}
.diagram .uc-core{position:absolute;left:50%;top:50%;z-index:1;width:26%;margin:0;transform:translate(-50%,-50%)}
.uc-core span{display:grid;place-items:center;box-sizing:border-box;width:100%;aspect-ratio:1;border-radius:50%;background:#2f6b52;border:3px solid #c9a24a;color:#fff;font-weight:800;font-size:clamp(14px,5.4cqi,23px);box-shadow:0 6px 16px #0e2d2326}
/* The bridge of reconciliation (15.8) — from "ግጭትን በደልን" across seven numbered sections to "ፍትሓዊ ሰላም", read in the
   manuscript order. The layout follows the width the diagram has (container query): on phones the bridge is seen from
   above — the conflict bank on top, the seven sections one under the other between two gold railings over the water, and
   the bank of just peace at the bottom; when there is room it is seen from the side — the seven sections side by side on the
   deck, the conflict bank under the first section, the bank of peace under the last, and a gold arch (SVG) between them. */
.bridge{container:bridge/inline-size;box-sizing:border-box;width:min(600px,100%);margin:.4em auto 0;font-size:clamp(14px,.86em,16px);line-height:1.3}
.rbr{position:relative;display:grid;grid-template-columns:minmax(0,1fr)}
.rbr-bank{position:relative;z-index:1;box-sizing:border-box;margin:0;display:grid;place-items:center;padding:.75em 1em;font-weight:800;font-size:1.06em;text-align:center}
.rbr-from{background:#8a3b2e;border:2px solid #c08a7a;border-radius:14px 14px 4px 4px;color:#fff}
.rbr-to{background:#2f6b52;border:2px solid #c9a24a;border-radius:4px 4px 14px 14px;color:#fff}
.rbr-mid{padding:12px 0;background:radial-gradient(circle at 50% 100%,#0000 5px,#b9d1c6 5.5px 7px,#0000 7.5px) 0 0/18px 11px,#dbe8e2}
.rbr-deck{list-style:none;box-sizing:border-box;width:min(80%,20em);margin:0 auto;padding:8px 10px;display:grid;gap:6px;background:#5a3520;border-inline:6px double #c9a24a;border-radius:4px;box-shadow:0 4px 12px #0e2d2326}
.rbr-deck li{box-sizing:border-box;margin:0;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:.6em;min-height:2.8em;padding:.35em .7em .35em .4em;border:2px solid #a88330;border-radius:6px;font-weight:800;color:#0e2d23;text-align:center}
.rbr-n{display:grid;place-items:center;width:1.7em;height:1.7em;border-radius:50%;background:#0e2d23;color:#e2c47e;font-family:'Cormorant Garamond',Georgia,serif;font-size:1em;font-weight:700;font-variant-numeric:lining-nums}
.rbr-t{min-width:0;overflow-wrap:break-word}
.rbr-deck .rbr-1{background:#f6ecd2}
.rbr-deck .rbr-2{background:#f1e2b6}
.rbr-deck .rbr-3{background:#fbf3dc}
.rbr-deck .rbr-4{background:#fffcf4}
.rbr-deck .rbr-5{background:#e3ecdf;border-color:#6f9c80}
.rbr-deck .rbr-6{background:#cfe0d3;border-color:#2f6b52}
.rbr-deck .rbr-7{background:#bcd5c3;border-color:#2f6b52}
.diagram .rbr-art{display:none}
@container bridge (min-width:560px){
 .rbr{grid-template-columns:22% minmax(0,1fr) 22%;grid-template-rows:auto minmax(7em,auto)}
 .rbr-mid{grid-column:1/-1;grid-row:1;padding:16px 0 0;background:none}
 .rbr-deck{position:relative;width:100%;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;padding:6px 4px;border-inline:0;border-radius:6px}
 .rbr-deck::before{content:"";position:absolute;left:4px;right:4px;top:-15px;height:12px;border-top:3px solid #c9a24a;
  background:repeating-linear-gradient(90deg,#c9a24a 0 3px,#0000 3px calc((100% - 3px)/7)) 0 0/100% 100% no-repeat;box-shadow:inset -3px 0 #c9a24a}
 .rbr-deck li{grid-template-columns:minmax(0,1fr);justify-items:center;align-content:center;gap:.25em;min-height:4.6em;padding:.4em .15em;font-size:clamp(13px,2.4cqi,15px)}
 .rbr-n{width:1.6em;height:1.6em}
 .rbr-from{grid-column:1;grid-row:2;border:0;border-radius:0 0 0 12px;padding:.6em 16% .6em .6em;clip-path:polygon(0 0,100% 0,84% 100%,0 100%)}
 .rbr-to{grid-column:3;grid-row:2;border:0;border-radius:0 0 12px 0;padding:.6em .6em .6em 16%;clip-path:polygon(0 0,100% 0,100% 100%,16% 100%)}
 .diagram .rbr-art{display:block;grid-column:1/-1;grid-row:2;position:absolute;inset:0;z-index:0;width:100%;height:100%;max-width:none;margin:0;overflow:visible;pointer-events:none}
}
.rbr-arch{fill:none;stroke:#a88330;stroke-width:6;stroke-linecap:round;vector-effect:non-scaling-stroke}
.rbr-posts{fill:none;stroke:#a88330;stroke-width:3;vector-effect:non-scaling-stroke}
.rbr-water{fill:#dbe8e2;stroke:#6f9c80;stroke-width:2;vector-effect:non-scaling-stroke}
@media(max-width:560px){.rbr-deck li{padding:.3em .55em .3em .35em}}
@media(forced-colors:active){
 .uc-disc,.uc-fig .uc-halo{fill:Canvas;stroke:CanvasText}
 .uc-ray,.uc-hex{stroke:CanvasText}
 .uc-fig,.uc-dot,.uc-arrow{fill:CanvasText}
 .uc-glow{display:none}
 .uc-core span,.rbr-bank,.rbr-deck li,.rbr-n{forced-color-adjust:auto}
 .rbr-mid{background:none}
 .rbr-deck{border-color:CanvasText;background:Canvas}
 .rbr-arch,.rbr-posts,.rbr-water{stroke:CanvasText}.rbr-water{fill:Canvas}
 .rbr-from,.rbr-to{clip-path:none;border:2px solid CanvasText}
}
@media print{.rbr-mid{background:none}}

/* Chapter 16 diagrams. Colours are set explicitly so labels keep their contrast in light and dark mode. */
/* The balance of justice and mercy (16.3) — "ጥበብ" in the green circle on top of a gold post; the gold beam carries two
   level pans on gold cords: justice (green) on the left, mercy (gold) on the right, each with its four parts. The post stands
   on the dark foundation "ሰብኣዊ ክብሪ", and the Chapter 7 arrow leads down to "ፍትሓዊ ሰላም". The pans stay side by side on
   every screen so the balance is always visible. The beam ends at the centre of each pan: its width is
   50% + (post + 2 × gap) / 2 (change --post and --gap together with it). */
.jscale{--post:12px;--gap:14px;box-sizing:border-box;width:min(560px,100%);margin:.4em auto 0;display:grid;grid-template-columns:minmax(0,1fr) var(--post) minmax(0,1fr);column-gap:var(--gap);font-size:clamp(14px,.86em,16px);line-height:1.3}
.diagram .js-core{grid-column:1/-1;grid-row:1;position:relative;margin:0;padding-bottom:7px;display:flex;justify-content:center}
.js-core::before{content:"";position:absolute;left:50%;bottom:0;width:calc(50% + (var(--post) + 2 * var(--gap)) / 2);height:7px;transform:translateX(-50%);border-radius:4px;background:linear-gradient(#e2c47e,#a88330)}
.js-core span{display:grid;place-items:center;box-sizing:border-box;width:5.2em;aspect-ratio:1;border-radius:50%;background:#2f6b52;border:3px solid #c9a24a;color:#fff;font-weight:800;font-size:1.12em;box-shadow:0 6px 16px #0e2d2326}
.js-post{grid-column:2;grid-row:2;background:linear-gradient(90deg,#a88330,#e2c47e 45%,#a88330)}
.js-pan{grid-row:2;min-width:0;display:flex;flex-direction:column;padding-bottom:20px}
.js-justice{grid-column:1}
.js-mercy{grid-column:3}
.diagram .js-hang{display:block;width:100%;height:2.4em;max-width:none;margin:0;overflow:visible}
.js-hang path{fill:none;stroke:#a88330;stroke-width:2;stroke-linecap:round;vector-effect:non-scaling-stroke}
.js-bowl{flex:1;box-sizing:border-box;padding:.5em .45em 1.2em;border:2px solid #c9a24a;border-top-width:5px;border-radius:6px 6px 50% 50%/6px 6px 2.2em 2.2em;box-shadow:0 4px 12px #0e2d231c}
.diagram .js-h{margin:0 0 .5em;padding:.3em .4em;border-radius:8px;font-weight:800;font-size:1.12em;line-height:1.3}
.js-list{list-style:none;margin:0;padding:0;display:grid;gap:5px}
.js-list li{box-sizing:border-box;margin:0;padding:.32em .3em;border:1.5px solid;border-radius:7px;background:#fffcf4;color:#0e2d23;font-weight:700;overflow-wrap:break-word}
.js-justice .js-bowl{background:#e3ecdf}
.js-justice .js-h{background:#2f6b52;color:#fff}
.js-justice .js-list li{border-color:#6f9c80}
.js-mercy .js-bowl{background:#fbf3dc}
.js-mercy .js-h{background:#c9a24a;color:#0e2d23}
.js-mercy .js-list li{border-color:#c9a24a}
.diagram .js-base{grid-column:1/-1;grid-row:3;margin:0;display:flex;justify-content:center}
.js-base span{box-sizing:border-box;min-width:min(17em,78%);padding:.6em 2em;border-top:5px solid #c9a24a;background:#0e2d23;color:#e2c47e;font-weight:800;font-size:1.04em;clip-path:polygon(9% 0,91% 0,100% 100%,0 100%)}
.js-result span{background:#2f6b52;color:#fff}
@media(max-width:400px){.jscale{--gap:10px;--post:10px}.js-bowl{padding-inline:.35em}.js-core span{width:4.8em}}
/* Three paths after wrongdoing (16.7) — "በደል" at the top; gold lines fork into three paths: A (hatred, muted red), B
   (concealment, muted sand) and C (truth and justice, green), which continues straight down to "ናብ ነባሪ ሰላም ዝወስድ መገዲ".
   The layout follows the width the diagram has (container query): on phones A and B stand side by side and path C runs down
   the middle below them; when there is room the three paths stand side by side with C in the middle. The fork bar reaches the
   centres of the outer paths: 50% + gap / 2 for two columns, 66.667% + 2 × gap / 3 for three (change them with --gap). */
.tri{container:tri/inline-size;box-sizing:border-box;width:min(640px,100%);margin:.4em auto 0;font-size:clamp(14px,.86em,16px);line-height:1.3}
.diagram .tri-start{margin:0;display:flex;justify-content:center}
.tri-start span{box-sizing:border-box;max-width:100%;padding:.55em 1.8em;border:2px solid #c08a7a;border-radius:12px;background:#5a2a20;color:#fff;font-weight:800;font-size:1.12em;box-shadow:0 4px 12px #0e2d2320}
.tri-paths{--gap:20px;--fork:#c9a24a;position:relative;padding-top:26px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px var(--gap);
 background:linear-gradient(var(--fork),var(--fork)) 50% 12px/calc(50% + var(--gap) / 2) 3px no-repeat,linear-gradient(var(--fork),var(--fork)) 50% 0/3px 100% no-repeat}
.tri-path{position:relative;box-sizing:border-box;min-width:0;align-self:start;padding:.55em .5em .65em;border:2px solid;border-radius:12px;box-shadow:0 3px 10px #0e2d2312}
.tri-a,.tri-b{grid-row:1}
.tri-a{grid-column:1}
.tri-b{grid-column:2}
.tri-c{grid-column:1/-1;grid-row:2;justify-self:center;width:min(100%,19em)}
.tri-a::before,.tri-b::before{content:"";position:absolute;left:50%;top:-16px;width:3px;height:14px;transform:translateX(-50%);background:var(--fork,#c9a24a)}
.diagram .tri-tag{display:grid;place-items:center;width:1.8em;height:1.8em;margin:0 auto .55em;border-radius:50%;font-family:'Cormorant Garamond',Georgia,serif;font-size:1.05em;font-weight:700;line-height:1}
.tri-path ol{list-style:none;margin:0;padding:0;display:grid;row-gap:22px}
.tri-path li{position:relative;box-sizing:border-box;min-height:2.7em;margin:0;display:grid;place-items:center;padding:.35em .4em;border:2px solid;border-radius:9px;font-weight:700;text-align:center;overflow-wrap:break-word}
.tri-path li+li::before,.diagram .tri-end::before{content:"↓";content:"↓"/"";position:absolute;left:50%;top:-21px;transform:translateX(-50%);color:var(--gold-deep);font-weight:800;line-height:20px}
.tri-a{background:#fdf6f2;border-color:#c08a7a}
.tri-a .tri-tag{background:#8a3b2e;color:#fff}
.tri-a li{background:#f6e3dc;border-color:#c08a7a;color:#4a1d14}
.tri-a li:nth-child(2){background:#ecc9bd;border-color:#a8604f}
.tri-a li:last-child{background:#8a3b2e;border-color:#c9a24a;color:#fff;font-weight:800}
.tri-b{background:#f7f4ee;border-color:#b5a68a}
.tri-b .tri-tag{background:#6b5a3e;color:#fff}
.tri-b li{background:#ece6d8;border-color:#b5a68a;color:#3d3424}
.tri-b li:nth-child(2){background:#ded4bf;border-color:#97876a}
.tri-b li:last-child{background:#6b5a3e;border-color:#c9a24a;color:#fff;font-weight:800}
.tri-c{background:#f3f7f1;border-color:#6f9c80}
.tri-c .tri-tag{background:#2f6b52;color:#fff;border:2px solid #c9a24a}
.tri-c li{background:#fffcf4;border-color:#c9a24a;color:#0e2d23}
.tri-c li:nth-child(2){background:#fbf3dc}
.tri-c li:nth-child(3){background:#f1e2b6;border-color:#a88330}
.tri-c li:nth-child(4){background:#e3ecdf;border-color:#6f9c80}
.tri-c li:nth-child(5){background:#cfe0d3;border-color:#2f6b52}
.tri-c li:nth-child(6){background:#bcd5c3;border-color:#2f6b52}
.diagram .tri-end{position:relative;margin:22px 0 0;display:grid;place-items:center}
.tri-end span{box-sizing:border-box;width:100%;padding:.6em .7em;border:2px solid #c9a24a;border-radius:12px;background:#2f6b52;color:#fff;font-weight:800;font-size:1.04em;text-align:center;line-height:1.4}
@container tri (min-width:540px){
 .tri-paths{--gap:16px;grid-template-columns:repeat(3,minmax(0,1fr));background-size:calc(66.667% + var(--gap) * 2 / 3) 3px,3px 100%}
 .tri-a{grid-column:1}
 .tri-c{grid-column:2;grid-row:1;width:auto;justify-self:stretch}
 .tri-b{grid-column:3}
}
@media(max-width:400px){.tri-paths{--gap:14px}.tri-path{padding-inline:.35em}.tri-path li{padding-inline:.25em}}
/* The house of just peace (16.8) — the Chapter 12 .house: "ነባሪ ሰላም" on the roof, six pillars, and a foundation of three
   equal parts (ሰብኣዊ ክብሪ · መሰላት · ድሕነት) divided by thin gold lines */
.diagram .hs-base.hs-base-3{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:.6em .3em}
.hs-base-3 li{display:grid;place-items:center;margin:0;padding:.1em .35em;line-height:1.35}
.hs-base-3 li+li{border-left:1px solid #c9a24a88}
@media(forced-colors:active){
 .js-core::before,.js-post{background:CanvasText}
 .js-hang path{stroke:CanvasText}
 .js-core span,.js-bowl,.js-h,.js-list li,.js-base span,.tri-start span,.tri-path,.tri-tag,.tri-path li,.tri-end span{forced-color-adjust:auto}
 .js-base span{clip-path:none;border:2px solid CanvasText}
 .tri-paths{background:none}
 .tri-a::before,.tri-b::before{background:CanvasText}
}
/* Chapter 17 diagrams. Colours are set explicitly so labels keep their contrast in light and dark mode. */
/* Inner / outer peace (17.3) uses .ms-compare with both columns in bold; what disturbs / what builds peace (17.6) uses .ms-pairs */
.ms-inout17 td:first-child{color:var(--leaf);font-weight:700}
.ms-refs17 tr[lang=en] td{-webkit-hyphens:auto;hyphens:auto}
/* The tree of peace (17.3) — the roots (truth, self-knowledge, faith, mercy) sit in the soil under a gold ground line and
   feed the brown trunk "ውሽጣዊ ሰላም"; the green crown (SVG cloud) carries the five branches as leaf-shaped labels, and the
   three fruits (peace in the family, the community and the world) hang at the top as gold fruits. The labels are live text
   over the SVG drawing. The layout follows the width the diagram has (container query): on phones the branches stand 3 + 2,
   when there is room all five stand in one row. The fruits and the four roots always stand in one row; the root columns
   use a % gap so the SVG roots meet the middle of each column (centres 11.4 · 37.1 · 62.9 · 88.6 with a 3% gap). */
.ptree{container:ptree/inline-size;box-sizing:border-box;width:min(580px,100%);margin:.4em auto 0;font-size:clamp(14px,.86em,17px);line-height:1.3;filter:drop-shadow(0 4px 10px #0e2d231c)}
.pt-crown{position:relative;z-index:1;padding:9% 6% calc(2.2em + 7%)}
.diagram .pt-crown-art,.diagram .pt-trunk-art{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;margin:0;overflow:visible;pointer-events:none}
.pt-cloud-line>*{fill:#6f9c80;stroke:#6f9c80;stroke-width:5;vector-effect:non-scaling-stroke}
.pt-cloud-fill>*{fill:#e3ecdf}
.pt-boughs{fill:none;stroke:#8a5a32;stroke-width:3;stroke-linecap:round;opacity:.7;vector-effect:non-scaling-stroke}
.pt-fruits,.pt-branches,.pt-root-list{position:relative;list-style:none;margin:0;padding:0;display:grid}
.pt-fruits li,.pt-branches li,.pt-root-list li{box-sizing:border-box;margin:0;display:grid;place-items:center;min-width:0;font-weight:800;text-align:center}
.pt-fruits li span,.pt-branches li span,.pt-root-list li span{min-width:0;overflow-wrap:break-word}
.pt-fruits{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:16px}
.pt-fruits li{position:relative;justify-self:center;width:min(100%,6.8em);aspect-ratio:1;padding:.35em;border:2px solid #a88330;border-radius:50%;background:radial-gradient(circle at 35% 30%,#f8e9bf,#e2c47e 58%,#c9a24a);color:#3b2a10;line-height:1.22;box-shadow:0 4px 10px #5a3a1029}
.pt-fruits li::before{content:"";position:absolute;top:-.42em;left:50%;width:.85em;height:.5em;border-radius:0 100% 0 100%;background:#2f6b52;transform:rotate(-14deg)}
.pt-branches{grid-template-columns:repeat(6,minmax(0,1fr));gap:10px 8px}
.pt-branches li{grid-column:span 2;min-height:2.7em;padding:.4em .35em;background:#fffcf4;border:2px solid #2f6b52;border-radius:1.3em .35em;color:#0e2d23;box-shadow:0 3px 10px #0e2d2314}
.pt-branches li:nth-child(4){grid-column:2/4}
.pt-branches li:nth-child(5){grid-column:4/6}
.pt-trunk{position:relative;z-index:0;box-sizing:border-box;width:min(13em,64%);margin:-2.2em auto 0;padding:2.6em 0 1.3em;display:grid;place-items:center}
.pt-trunk-art path{fill:#5a3520}
.diagram .pt-trunk-t{position:relative;margin:0;max-width:100%}
.pt-trunk-t span{display:block;box-sizing:border-box;padding:.45em 1em;border:3px solid #c9a24a;border-radius:12px;background:#2f6b52;color:#fff;font-weight:800;font-size:1.15em;line-height:1.3;text-align:center;box-shadow:0 6px 16px #0e2d2333}
.pt-roots{position:relative;padding:0 4% 14px;border-top:4px solid #a88330;border-radius:0 0 14px 14px;background:linear-gradient(#efe2bd,#fbf6e8 75%)}
.diagram .pt-fan{display:block;width:100%;height:2.4em;max-width:none;margin:0;overflow:visible}
.pt-fan path{fill:none;stroke:#a88330;stroke-width:3;stroke-linecap:round;vector-effect:non-scaling-stroke}
.pt-root-list{grid-template-columns:repeat(4,minmax(0,1fr));column-gap:3%}
.pt-root-list li{min-height:3.2em;padding:.4em .25em;background:#f6ecd2;border:2px solid #a88330;border-radius:10px;color:#3b2a10;line-height:1.25;box-shadow:0 3px 10px #0e2d2314}
@container ptree (min-width:540px){
 .pt-crown{padding:8% 7% calc(2.2em + 6%)}
 .pt-fruits{gap:14px;margin-bottom:20px}
 .pt-fruits li{width:min(100%,7.4em)}
 .pt-branches{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
 .pt-branches li,.pt-branches li:nth-child(4),.pt-branches li:nth-child(5){grid-column:auto}
}
@media(max-width:400px){.ptree{font-size:14px}.pt-crown{padding-inline:5%}.pt-fruits{gap:6px}.pt-roots{padding-inline:3%}}
@media(max-width:340px){.ptree{font-size:13px}}
/* From thought to wise action (17.7) — the vertical .flow from the situation (sand) through thought and feeling (gold) to the
   reflective pause "ምስትንታን" (dashed gold), then wise choice and action (green), ending in growth and peace (deep green) */
.diagram .flow.flow-wise{gap:30px}
.diagram .flow.flow-wise li{box-sizing:border-box;width:min(100%,15em);min-width:0;justify-content:center;text-align:center;background:#fffcf4;border:2px solid #c9a24a;color:#0e2d23;box-shadow:0 3px 10px #0e2d2312}
.diagram .flow.flow-wise li+li::before{top:-27px}
.diagram .flow.flow-wise li:nth-child(1){background:#f6efe2;border-color:#b89a6a;color:#3b2a10}
.diagram .flow.flow-wise li:nth-child(2){background:#fbf3dc}
.diagram .flow.flow-wise li:nth-child(3){background:#f1e2b6;border-color:#a88330}
.diagram .flow.flow-wise li.is-pause{background:#fff;border:2px dashed #a88330;color:#0e2d23}
.diagram .flow.flow-wise li:nth-child(5){background:#e3ecdf;border-color:#6f9c80}
.diagram .flow.flow-wise li:nth-child(6){background:#cfe0d3;border-color:#2f6b52}
.diagram .flow.flow-wise li:last-child{background:#2f6b52;border-color:#c9a24a;color:#fff}
/* The wheel of inner peace (17.8) — "ውሽጣዊ ሰላም" in the green centre; the ten elements stand evenly around a gold ring
   (every 36°, starting at the top, on a circle of radius 39%), each joined to the centre by a thin gold spoke. The wheel
   keeps its circular shape on phones: the labels are sized to the width of the wheel (container query units) and wrap onto
   two lines. Only when the wheel is narrower than 230px (very small phones) do the elements fall back to a two-column list under the centre. */
.pwheel{container:pwheel/inline-size;box-sizing:border-box;width:min(560px,100%);margin:.4em auto 0;line-height:1.25}
.pw-ring{position:relative;aspect-ratio:1}
.pw-ring::before{content:"";position:absolute;inset:11%;border-radius:50%;border:3px solid #c9a24a;background:radial-gradient(circle,#e3ecdf 0 52%,#f3f7f1 53%);box-shadow:0 4px 14px #0e2d231a}
.diagram .pw-spokes{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;margin:0;overflow:visible;pointer-events:none}
.pw-spokes line{stroke:#c9a24a;stroke-width:2;stroke-linecap:round;vector-effect:non-scaling-stroke}
.diagram .pw-core{position:absolute;left:50%;top:50%;z-index:1;width:30%;aspect-ratio:1;margin:0;transform:translate(-50%,-50%);display:grid;place-items:center;box-sizing:border-box;padding:.4em;border-radius:50%;background:#2f6b52;border:3px solid #c9a24a;color:#fff;font-weight:800;font-size:clamp(14px,4.2cqi,21px);text-align:center;box-shadow:0 6px 16px #0e2d2333}
.pw-list{list-style:none;margin:0;padding:0}
.pw-list li{position:absolute;z-index:1;box-sizing:border-box;width:21%;min-height:2.6em;margin:0;transform:translate(-50%,-50%);display:grid;place-items:center;padding:.3em .25em;background:#fffcf4;border:2px solid #c9a24a;border-radius:12px;color:#0e2d23;font-weight:800;font-size:clamp(13px,3.3cqi,16px);text-align:center;box-shadow:0 3px 10px #0e2d2314}
.pw-list li span{min-width:0;overflow-wrap:break-word}
.pw-list li:nth-child(even){background:#f3f7f1;border-color:#6f9c80}
.pw-list li:nth-child(1){left:50%;top:11%}
.pw-list li:nth-child(2){left:72.92%;top:18.45%}
.pw-list li:nth-child(3){left:87.09%;top:37.95%}
.pw-list li:nth-child(4){left:87.09%;top:62.05%}
.pw-list li:nth-child(5){left:72.92%;top:81.55%}
.pw-list li:nth-child(6){left:50%;top:89%}
.pw-list li:nth-child(7){left:27.08%;top:81.55%}
.pw-list li:nth-child(8){left:12.91%;top:62.05%}
.pw-list li:nth-child(9){left:12.91%;top:37.95%}
.pw-list li:nth-child(10){left:27.08%;top:18.45%}
@container pwheel (max-width:229px){
 .pw-ring{aspect-ratio:auto}
 .pw-ring::before,.diagram .pw-spokes{display:none}
 .diagram .pw-core{position:relative;left:auto;top:auto;transform:none;width:6.6em;margin:0 auto 12px}
 .pw-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .pw-list li{position:static;transform:none;width:auto}
}
@supports not (container-type:inline-size){.diagram .pw-core{font-size:1.1em}.pw-list li{font-size:max(13px,.8em)}}
@media(forced-colors:active){
 .pt-cloud-line>*{fill:CanvasText;stroke:CanvasText}.pt-cloud-fill>*,.pt-trunk-art path{fill:Canvas}
 .pt-boughs,.pt-fan path,.pw-spokes line{stroke:CanvasText}
 .pt-fruits li,.pt-branches li,.pt-trunk-t span,.pt-root-list li,.diagram .flow.flow-wise li,.diagram .pw-core,.pw-list li{forced-color-adjust:auto}
 .pt-fruits li::before{background:CanvasText}
 .pw-ring::before{border-color:CanvasText;background:none}
}
/* Chapter 18 diagrams, lists and tables. Colours are set explicitly so labels keep their contrast in light and dark mode. */
/* The house of social peace (18.3) — the Chapter 12 .house: "ሰላማዊ ማሕበረሰብ" on the roof, six pillars, and the three-part
   foundation from Chapter 16 (ሰብኣዊ ክብሪ · መሰላት ሰብ · ምትእምማን). Foundation / importance (18.3) uses .ms-concepts;
   what feeds conflict / what builds peace (18.6) uses .ms-pairs. */
.ms-found18 td{color:var(--leaf);font-weight:600}
.ms-refs18 tr[lang=en] td{-webkit-hyphens:auto;hyphens:auto}
.father .peace-def{margin:.5em 0;padding:.45em .8em;border-radius:8px;background:var(--paper);border:1px solid #e6d3a0}
.father .peace-def strong{color:var(--forest)}
/* Planned OneWorld Peace programmes (18.9, example 7): dashed outline cards, so they read as plans and not as running services */
.chapter-body .future-list{list-style:none;margin:.8em 0 1em;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,11.5em),1fr));gap:8px}
.chapter-body .future-list li{margin:0;padding:.5em .9em;border:1.5px dashed #c9a24a;border-radius:10px;background:var(--paper);font-weight:600;color:var(--forest);line-height:1.5}
/* Who contributes to peace in the community (18.11): one line per role, with a small gold mark */
.chapter-body .roles-list{list-style:none;margin:1em 0 1.3em;padding:0;display:grid;gap:6px}
.chapter-body .roles-list li{position:relative;margin:0;padding:.45em 1em .45em 2.1em;background:var(--cream);border-radius:10px;font-weight:600;color:var(--forest)}
.chapter-body .roles-list li::before{content:"";position:absolute;left:.9em;top:1.05em;width:.5em;height:.5em;border-radius:50%;background:var(--gold)}
/* Unity in diversity (18.7) — "ሓባራዊ ሰብኣውነት" in the green centre; the six kinds of difference stand evenly around it (every
   60°, starting at the top, on a circle of radius 30%), each joined to the centre by a thin gold spoke. The outer gold ring
   carries the four values ምክብባር · ፍትሒ · ምትሕብባር · ሰላም, read clockwise from the top right. Labels are sized to the
   width of the diagram (container query units), so the circle keeps its shape on phones; only below 240px (very small phones)
   does it become a list: the centre, the six differences in two columns, then the four values in one row. */
.udiv{container:udiv/inline-size;box-sizing:border-box;width:min(560px,100%);margin:.4em auto 0;line-height:1.2}
.ud-ring{position:relative;aspect-ratio:1}
.ud-ring::before{content:"";position:absolute;inset:3.5%;border-radius:50%;border:3px solid #c9a24a;background:radial-gradient(circle closest-side,#e3ecdf 0 85%,#c9a24a 85% 86%,#fbf3dc 86.5%);box-shadow:0 4px 14px #0e2d231a}
.diagram .ud-spokes{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;margin:0;overflow:visible;pointer-events:none}
.ud-spokes line{stroke:#c9a24a;stroke-width:2;stroke-linecap:round;vector-effect:non-scaling-stroke}
.diagram .ud-core{position:absolute;left:50%;top:50%;z-index:1;width:27%;aspect-ratio:1;margin:0;transform:translate(-50%,-50%);display:grid;place-items:center;box-sizing:border-box;padding:.35em;border-radius:50%;background:#2f6b52;border:3px solid #c9a24a;color:#fff;font-weight:800;font-size:clamp(12.5px,4.2cqi,21px);line-height:1.25;text-align:center;box-shadow:0 6px 16px #0e2d2333}
.ud-list,.ud-outer{list-style:none;margin:0;padding:0}
.ud-list li{position:absolute;z-index:1;box-sizing:border-box;width:26%;min-height:2.5em;margin:0;transform:translate(-50%,-50%);display:grid;place-items:center;padding:.2em .25em;background:#fffcf4;border:1.5px solid #c9a24a;border-radius:10px;color:#0e2d23;font-weight:800;font-size:clamp(12.5px,3.4cqi,16px);text-align:center;box-shadow:0 3px 10px #0e2d2314}
.ud-list li span,.ud-outer li span{min-width:0;overflow-wrap:break-word}
.ud-list li:nth-child(even){background:#f3f7f1;border-color:#6f9c80}
.ud-list li:nth-child(1){left:50%;top:20%}
.ud-list li:nth-child(2){left:75.98%;top:35%}
.ud-list li:nth-child(3){left:75.98%;top:65%}
.ud-list li:nth-child(4){left:50%;top:80%}
.ud-list li:nth-child(5){left:24.02%;top:65%}
.ud-list li:nth-child(6){left:24.02%;top:35%}
.ud-outer li{position:absolute;z-index:2;margin:0;transform:translate(-50%,-50%);display:flex;padding:.18em .7em;border:2px solid #a88330;border-radius:999px;background:#c9a24a;color:#1f1608;font-weight:800;font-size:clamp(12.5px,3.4cqi,16px);white-space:nowrap;box-shadow:0 3px 8px #5a3a1026}
.ud-outer li:nth-child(1){left:80.4%;top:19.6%}
.ud-outer li:nth-child(2){left:80.4%;top:80.4%}
.ud-outer li:nth-child(3){left:19.6%;top:80.4%}
.ud-outer li:nth-child(4){left:19.6%;top:19.6%}
@container udiv (max-width:239px){
 .ud-ring{aspect-ratio:auto}
 .ud-ring::before,.diagram .ud-spokes{display:none}
 .diagram .ud-core{position:relative;left:auto;top:auto;transform:none;width:7.2em;margin:0 auto 12px}
 .ud-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .ud-list li{position:static;transform:none;width:auto}
 .ud-outer{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin-top:12px;padding-top:12px;border-top:3px solid #c9a24a}
 .ud-outer li{position:static;transform:none}
}
/* The cycle of social peace (18.8) — seven steps on a gold ring, read clockwise from "ሓቂ" at the top (every 360°/7 on a circle
   of radius 39%), from light gold to the deep green "ሰላም". Arrowheads on the ring sit in the free space between the steps;
   the green dashed stretch with its own arrow leads from "ሰላም" back to "ሓቂ", so the work starts again. Labels are sized to
   the width of the diagram (container query units). Below 250px (very small phones) the steps become a vertical flow that
   ends with a loop arrow back to the start. */
.pcycle{container:pcycle/inline-size;box-sizing:border-box;width:min(520px,100%);margin:.4em auto 0;line-height:1.3}
.pc-ring{position:relative;aspect-ratio:1}
.diagram .pc-arcs{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;margin:0;overflow:visible;pointer-events:none}
.pc-track{fill:#f3f7f1;stroke:#c9a24a;stroke-width:3;vector-effect:non-scaling-stroke}
.pc-back{fill:none;stroke:#2f6b52;stroke-width:4;stroke-dasharray:7 5;stroke-linecap:round;vector-effect:non-scaling-stroke}
.pc-head{fill:#a88330}
.pc-head-back{fill:#2f6b52}
.diagram .pc-core{position:absolute;left:50%;top:50%;width:24%;aspect-ratio:1;margin:0;transform:translate(-50%,-50%);display:grid;place-items:center;border-radius:50%;background:#2f6b52;border:3px solid #c9a24a;color:#e2c47e;font-size:clamp(26px,10cqi,52px);font-weight:700;line-height:1;box-shadow:0 6px 16px #0e2d2333}
.pc-list{list-style:none;margin:0;padding:0}
.pc-list li{position:absolute;z-index:1;box-sizing:border-box;min-width:3.4em;margin:0;transform:translate(-50%,-50%);display:flex;justify-content:center;padding:.4em .55em;background:#fffcf4;border:2px solid #c9a24a;border-radius:12px;color:#0e2d23;font-weight:800;font-size:clamp(12.5px,4.7cqi,16px);white-space:nowrap;text-align:center;box-shadow:0 3px 10px #0e2d2314}
.pc-list li:nth-child(1){left:50%;top:11%}
.pc-list li:nth-child(2){left:80.49%;top:25.68%;background:#fbf3dc}
.pc-list li:nth-child(3){left:88.02%;top:58.68%;background:#f1e2b6;border-color:#a88330}
.pc-list li:nth-child(4){left:66.92%;top:85.14%;background:#e3ecdf;border-color:#6f9c80}
.pc-list li:nth-child(5){left:33.08%;top:85.14%;background:#cfe0d3;border-color:#2f6b52}
.pc-list li:nth-child(6){left:11.98%;top:58.68%;background:#bcd5c3;border-color:#2f6b52}
.pc-list li:nth-child(7){left:19.51%;top:25.68%;background:#2f6b52;border-color:#c9a24a;color:#fff}
@container pcycle (max-width:249px){
 .pc-ring{aspect-ratio:auto}
 .diagram .pc-arcs,.diagram .pc-core{display:none}
 .pc-list{display:flex;flex-direction:column;align-items:center;gap:26px;padding-bottom:2.4em;position:relative}
 .pc-list li{position:relative;left:auto!important;top:auto!important;transform:none;min-width:min(12em,100%)}
 .pc-list li+li::before{content:"↓";content:"↓"/"";position:absolute;left:50%;top:-24px;transform:translateX(-50%);color:#8a6a22;font-weight:800}
 .pc-list::after{content:"↺";content:"↺"/"";position:absolute;left:50%;bottom:0;transform:translateX(-50%);color:#2f6b52;font-size:1.6em;font-weight:800;line-height:1}
}
@supports not (container-type:inline-size){.diagram .ud-core,.ud-list li,.ud-outer li,.pc-list li{font-size:13px}.diagram .pc-core{font-size:34px}}
@media(forced-colors:active){
 .ud-ring::before{border-color:CanvasText;background:none}
 .ud-spokes line,.pc-track,.pc-back{stroke:CanvasText}
 .pc-track{fill:none}.pc-head,.pc-head-back{fill:CanvasText}
 .diagram .ud-core,.ud-list li,.ud-outer li,.diagram .pc-core,.pc-list li,.chapter-body .future-list li{forced-color-adjust:auto}
}
@media print{.udiv,.pcycle{filter:none}}

/* Chapter 19 diagrams, lists and tables. Colours are set explicitly so labels keep their contrast in light and dark mode. */
/* Unity / uniformity (19.3) uses .ms-contrast; divisive / unifying thinking (19.7) uses .ms-pairs; the seven foundations of the
   OneWorld vision (19.9) use .ms-concepts. The scripture reference under each 19.4 heading is a small gold label (.vref). */
.ms-unity19 td{font-weight:600}
.ms-vision19 td{color:var(--leaf);font-weight:600}
.ms-refs19 tr[lang=en] td{-webkit-hyphens:auto;hyphens:auto}
.chapter-body h4.ms-subhead{margin:1.5em 0 .5em;font-size:1.1em;color:var(--forest)}
.father .vref{display:inline-block;margin:0 0 .55em;padding:.12em .75em;border:1px solid #e6d3a0;border-radius:999px;background:#fbf3dc;color:#6b4e12;font-weight:700;font-size:.92em;line-height:1.5}
.chapter-body .fathers-note{margin:1.2em 0 0;padding:.7em 1em;border:1px dashed #d9bb6a;border-radius:12px;background:var(--paper)}
.father .roles-list{margin:.7em 0 0}
.father .roles-list li{background:var(--paper)}
/* The OneWorld Tree (19.3) — the Chapter 17 .ptree: the four roots (human dignity, truth, justice, love) in the soil feed the
   trunk "ሓባራዊ ሰብኣውነት"; the six branches stand 3 + 3 in the green crown and the four fruits hang at the top
   (2 + 2 on phones, one row of four when the diagram is at least 500px wide). */
.ptree-19 .pt-fruits{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 8px}
.ptree-19 .pt-branches{grid-template-columns:repeat(3,minmax(0,1fr))}
.ptree-19 .pt-branches li,.ptree-19 .pt-branches li:nth-child(4),.ptree-19 .pt-branches li:nth-child(5){grid-column:auto}
.ptree-19 .pt-trunk-t span{font-size:1.08em}
@container ptree (min-width:500px){
 .ptree-19 .pt-fruits{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
}
@container ptree (max-width:340px){
 .ptree-19 .pt-branches{gap:8px 5px}
 .ptree-19 .pt-branches li{padding:.4em .1em;font-size:.84em}
}
/* Two Paths of Humanity (19.6) — the Chapter 7/8 .paths fork: "ፍልልይ" in the dark centre circle, joined by gold lines to two
   paths of six steps each, read top to bottom: on the left from fear to conflict (muted red, each step a little deeper), on the
   right from knowledge to unity (green, each step a little deeper, the step before unity in gold). No heads: the first step of
   each path sits right under the fork. Each path is a subgrid, so the steps of both paths stay level when a label wraps. */
.paths.paths-fork6 .pa-list{grid-template-rows:repeat(6,auto)}
.paths.paths-fork6 .pa{grid-row:span 6}
.paths.paths-fork6 .pa-steps{grid-row:1/span 6}
.paths.paths-fork6 .pa-steps li:first-child::before{content:none}
.paths-fork6 .pa-core span{width:5.8em;background:#0e2d23;color:#e2c47e;font-size:1.2em}
.paths-fork6 .pa-harm .pa-steps li{background:#fbf1ec;border-color:#c08a7a;color:#4a1d14}
.paths-fork6 .pa-harm .pa-steps li:nth-child(2){background:#f6e3dc}
.paths-fork6 .pa-harm .pa-steps li:nth-child(3){background:#f0d4ca}
.paths-fork6 .pa-harm .pa-steps li:nth-child(4){background:#e8c3b6;border-color:#a8604f}
.paths-fork6 .pa-harm .pa-steps li:nth-child(5){background:#e0b3a4;border-color:#a8604f}
.paths-fork6 .pa-harm .pa-steps li:last-child{background:#8a3b2e;border-color:#c9a24a;color:#fff;font-weight:800}
.paths-fork6 .pa-unity .pa-steps li{background:#fffcf4;color:#0e2d23}
.paths-fork6 .pa-unity .pa-steps li:nth-child(2){background:#e3ecdf;border-color:#6f9c80}
.paths-fork6 .pa-unity .pa-steps li:nth-child(3){background:#cfe0d3;border-color:#2f6b52}
.paths-fork6 .pa-unity .pa-steps li:nth-child(4){background:#bcd5c3;border-color:#2f6b52}
.paths-fork6 .pa-unity .pa-steps li:nth-child(5){background:#f1e2b6;border-color:#a88330}
.paths-fork6 .pa-unity .pa-steps li:last-child{background:#2f6b52;border-color:#c9a24a;color:#fff;font-weight:800}
/* The OneWorld Model of Unity (19.8) — seven concentric SVG circles: "ሰብኣዊ ክብሪ" in the green centre, then the person, the
   family, the community, the nation and humanity (green fading into gold), and the outer gold ring "ሓንቲ ዓለም — ሓባራዊ ሓላፍነት".
   Each label sits in a small box in the middle of its own ring band (positions in %, from radii 27 · 38.4 · 49.8 · 61.2 ·
   72.6 · 84 · 98 on a 200 viewBox). The labels alternate above and below the centre, so neighbouring labels never touch on
   phones; the long outer label is a dark ribbon across the bottom of the outer ring and may wrap on the narrowest screens. */
.rings7{container:rings7/inline-size;position:relative;box-sizing:border-box;width:min(480px,100%);aspect-ratio:1;margin:.4em auto 1.1em;line-height:1.25;filter:drop-shadow(0 4px 10px #0e2d231c)}
.r7-art .r7-c6{fill:#f1e2b6}
.r7-art .r7-c5{fill:#fbf3dc}
.r7-art .r7-c4{fill:#f3efe0;stroke:#a88330}
.r7-art .r7-c3{fill:#e3ecdf;stroke:#a88330}
.r7-art .r7-c2{fill:#cfe0d3;stroke:#a88330}
.r7-art .r7-c1{fill:#a9c9b3;stroke:#a88330}
.r7-art .r7-c0{fill:#2f6b52;stroke-width:3}
.r7-list{list-style:none;margin:0;padding:0}
.r7-list li{position:absolute;left:50%;z-index:1;margin:0;transform:translate(-50%,-50%);display:flex;justify-content:center;width:max-content;max-width:94%}
.r7-list li span{box-sizing:border-box;padding:.14em .6em;border:1.5px solid #c9a24a;border-radius:999px;background:#fffcf4;color:#0e2d23;font-weight:800;font-size:clamp(12px,4.1cqi,17px);text-align:center;white-space:nowrap}
.r7-list .r7-0{top:50%;max-width:25%}
.r7-list .r7-0 span{padding:0;border:0;background:none;color:#fff;font-size:clamp(12.5px,4.4cqi,18px);line-height:1.25;white-space:normal}
.r7-list .r7-1{top:33.65%}
.r7-list .r7-2{top:72.05%}
.r7-list .r7-3{top:22.25%}
.r7-list .r7-4{top:83.45%}
.r7-list .r7-5{top:10.85%}
.r7-list .r7-6{top:95.5%}
.r7-list .r7-6 span{padding:.2em .9em;border-color:#c9a24a;background:#0e2d23;color:#e2c47e;white-space:normal;box-shadow:0 3px 10px #0e2d2333}
@media(forced-colors:active){
 .r7-art circle{fill:Canvas;stroke:CanvasText}
 .r7-list .r7-0 span{color:CanvasText}
 .r7-list li span,.father .vref{forced-color-adjust:auto}
}
@media print{.rings7{filter:none}}

/* Personal reading progress (every chapter page, assets/reading-progress.js): the reader marks a chapter as read with this
   button and can undo it; nothing is marked automatically. Read / not yet read indicators in the contents list are styled in school.css. */
.mark-read{margin:2.4em 0 0;padding:1em 1.2em 1.1em;border:1px solid #d9bb6a;border-radius:14px;background:#fbf3dc;text-align:center}
.mark-read.is-read{background:#eef2ec;border-color:#b9cdbf}
.mr-title{margin:0 0 .6em;font-size:max(12.5px,.72em);font-weight:800;letter-spacing:1.2px;color:var(--gold-deep)}
.mr-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px 14px}
.mr-btn{min-height:46px;padding:8px 20px;border:2px solid var(--leaf);border-radius:999px;background:var(--paper);color:var(--forest);font:inherit;font-size:max(15px,.88em);font-weight:800;cursor:pointer}
.mr-btn:hover{background:var(--leaf);color:#fff}
.mr-btn:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
.mark-read.is-read .mr-btn{border-color:#d9bb6a;border-width:1px;background:transparent;color:var(--gold-deep);font-weight:700;font-size:max(14px,.8em)}
.mark-read.is-read .mr-btn:hover{background:var(--paper);color:var(--gold-deep)}
.mr-btn{display:inline-flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:0 .35em;line-height:1.35}
.mr-b-en{font-family:'Cormorant Garamond',Georgia,serif;font-size:1.08em;font-weight:700}
.mr-state{margin:.6em 0 0;font-size:max(14px,.84em);font-weight:700;color:var(--forest)}
.mark-read.is-read .mr-state{color:var(--leaf)}
.mr-overall{max-width:460px;margin:.9em auto 0;padding:.7em .9em .8em;border-radius:12px;background:#ffffff99;border:1px solid #e9d9a8;text-align:left}
.mr-ov-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 10px;margin:0 0 .45em}
.mr-ov-l{font-size:max(13px,.78em);font-weight:800;color:var(--forest)}
.mr-ov-n{font-family:'Cormorant Garamond',Georgia,serif;font-size:max(17px,1.05em);font-weight:700;color:var(--leaf);font-variant-numeric:lining-nums tabular-nums}
.mr-ov-n.is-complete{color:var(--gold-deep)}
.mr-done{margin:.8em 0 0;font-weight:800;color:var(--leaf)}
.mr-done a{color:var(--forest);text-decoration-color:var(--gold);text-underline-offset:3px}
.mr-note{margin:.6em 0 0;font-size:max(13px,.76em);line-height:1.6;color:var(--muted)}
@media print{.mark-read{display:none!important}}

/* Chapter 20 diagrams, lists, declaration, book completion and certificate.
   Colours are set explicitly so labels keep their contrast in light and dark mode. */
.chapter-body .ms-rule{display:block;width:min(260px,60%);height:2px;margin:2.6em auto;border:0;background:linear-gradient(90deg,transparent,var(--gold),transparent)}
.ms-section h3 .sec-en{display:block;margin-top:.15em;font-family:'Cormorant Garamond',Georgia,serif;font-size:.7em;font-weight:600;color:var(--muted)}
.ms-legacy20 td{color:var(--leaf);font-weight:600}
.ms-sow20 td{font-weight:600}
.chapter-body .inherit-list{list-style:none;margin:1em 0 1.2em;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.chapter-body .inherit-list li{margin:0;padding:.35em 1em;border:1px solid #d9bb6a;border-radius:999px;background:#fbf3dc;color:var(--forest);font-weight:700}
.teach-pairs{margin:1.4em 0;display:grid;gap:0;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--cream)}
.teach-pairs p{margin:0;padding:.65em 1.1em;color:#6b3b2a}
.teach-pairs p.tp-yes{padding-left:2.4em;position:relative;background:var(--paper);color:var(--leaf);font-weight:700;border-bottom:1px solid var(--line)}
.teach-pairs p.tp-yes::before{content:"→";content:"→"/"";position:absolute;left:1em;color:var(--gold-deep);font-weight:800}
.teach-pairs p.tp-yes:last-child{border-bottom:0}
.teach-pairs.teach-both p{color:var(--forest);font-weight:600}
.teach-pairs.teach-both p.tp-yes{color:var(--leaf);font-weight:700}

/* The Seed of Tomorrow (20.3) — five steps read from top to bottom, from the seed (thought) through the root (values),
   the trunk (decision) and the branches (actions) to the fruit (the legacy for future generations). Each step has a small
   line drawing of that part of the tree; the colours deepen from sand to green, and the fruit is green with gold. */
.seedflow{list-style:none;margin:.2em auto 0;padding:0;max-width:440px;display:flex;flex-direction:column;gap:30px;text-align:left}
.seedflow li{position:relative;margin:0;display:grid;grid-template-columns:56px minmax(0,1fr);align-items:center;gap:14px;padding:10px 16px 10px 10px;border:2px solid #c9a24a;border-radius:16px;background:#fffcf4;color:#0e2d23;line-height:1.4;box-shadow:0 3px 10px #0e2d2314}
.seedflow li+li::before{content:"↓";content:"↓"/"";position:absolute;left:50%;top:-27px;transform:translateX(-50%);color:#8a6a22;font-weight:800;font-size:1.05em;line-height:1}
.seedflow .sf-ico{display:grid;place-items:center;width:56px;height:56px;border-radius:50%;background:#fbf3dc;border:2px solid #c9a24a;color:#6b4e12}
.diagram .seedflow .sf-ico svg{width:36px;height:36px;margin:0;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.seedflow .sf-part{font-weight:800;font-size:1.12em}
.seedflow .sf-sep{color:#a88330;font-weight:700}
.seedflow .sf-mean{font-weight:600}
.seedflow .sf-1{background:#fbf3dc}
.seedflow .sf-2{background:#f3efe0}.seedflow .sf-2 .sf-ico{background:#f1e2b6;color:#6b4a1e}
.seedflow .sf-3{background:#e3ecdf;border-color:#a88330}.seedflow .sf-3 .sf-ico{background:#f3efe0;color:#5a4a26}
.seedflow .sf-4{background:#cfe0d3;border-color:#2f6b52}.seedflow .sf-4 .sf-ico{background:#e3ecdf;border-color:#2f6b52;color:#1d4f3d}
.seedflow .sf-5{background:#2f6b52;border-color:#c9a24a;color:#fff}.seedflow .sf-5 .sf-ico{background:#0e2d23;color:#e2c47e}
.seedflow .sf-5 .sf-sep{color:#e2c47e}
@media(max-width:400px){.seedflow li{grid-template-columns:46px minmax(0,1fr);gap:10px;padding:8px 12px 8px 8px}.seedflow .sf-ico{width:46px;height:46px}.diagram .seedflow .sf-ico svg{width:30px;height:30px}}

/* The Cycle of Generations (20.6) — six steps on a gold ring, read clockwise from "ወለዲ" at the top (every 60° on a circle of
   radius 38%), from light gold to the green "ሓድሽ ኣብነትን ትምህርትን". Arrowheads sit between the steps; the green dashed
   stretch leads from the last step back to the first, so the cycle begins again with the next generation. The school emblem
   is in the centre (decoration only). Below 280px (very small phones) the steps become a vertical flow with a loop arrow. */
.gcycle{container:gcycle/inline-size;box-sizing:border-box;width:min(520px,100%);margin:.4em auto 0;line-height:1.3}
.gc-ring{position:relative;aspect-ratio:1}
.diagram .gc-arcs{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;margin:0;overflow:visible;pointer-events:none}
.gc-disc{fill:#f3f7f1}
.gc-track{fill:none;stroke:#c9a24a;stroke-width:3;vector-effect:non-scaling-stroke}
.gc-back{fill:none;stroke:#2f6b52;stroke-width:4;stroke-dasharray:7 5;stroke-linecap:round;vector-effect:non-scaling-stroke}
.gc-head{fill:#a88330}.gc-head-back{fill:#2f6b52}
.diagram .gc-core{position:absolute;left:50%;top:50%;width:25%;aspect-ratio:1;margin:0;transform:translate(-50%,-50%);display:grid;place-items:center;border-radius:50%;background:#2f6b52;border:3px solid #c9a24a;color:#e2c47e;box-shadow:0 6px 16px #0e2d2333}
.diagram .gc-core svg{width:72%;height:auto;margin:0}
.gc-list{list-style:none;margin:0;padding:0}
.gc-list li{position:absolute;z-index:1;width:max-content;max-width:31%;margin:0;transform:translate(-50%,-50%);display:flex;justify-content:center}
.gc-list li span{box-sizing:border-box;display:block;padding:.4em .6em;background:#fffcf4;border:2px solid #c9a24a;border-radius:12px;color:#0e2d23;font-weight:800;font-size:clamp(12.5px,4.3cqi,16px);text-align:center;box-shadow:0 3px 10px #0e2d2314}
.gc-list li:nth-child(1){left:50%;top:12%}
.gc-list li:nth-child(2){left:82.91%;top:31%}.gc-list li:nth-child(2) span{background:#fbf3dc}
.gc-list li:nth-child(3){left:82.91%;top:69%}.gc-list li:nth-child(3) span{background:#f1e2b6;border-color:#a88330}
.gc-list li:nth-child(4){left:50%;top:88%}.gc-list li:nth-child(4) span{background:#e3ecdf;border-color:#6f9c80}
.gc-list li:nth-child(5){left:17.09%;top:69%}.gc-list li:nth-child(5) span{background:#cfe0d3;border-color:#2f6b52}
.gc-list li:nth-child(6){left:17.09%;top:31%}.gc-list li:nth-child(6) span{background:#2f6b52;border-color:#c9a24a;color:#fff}
@container gcycle (max-width:279px){
 .gc-ring{aspect-ratio:auto}
 .diagram .gc-arcs,.diagram .gc-core{display:none}
 .gc-list{display:flex;flex-direction:column;align-items:center;gap:26px;padding-bottom:2.4em;position:relative}
 .gc-list li{position:relative;left:auto!important;top:auto!important;transform:none;max-width:100%}
 .gc-list li span{min-width:min(12em,100%)}
 .gc-list li+li::before{content:"↓";content:"↓"/"";position:absolute;left:50%;top:-24px;transform:translateX(-50%);color:#8a6a22;font-weight:800}
 .gc-list::after{content:"↺";content:"↺"/"";position:absolute;left:50%;bottom:0;transform:translateX(-50%);color:#2f6b52;font-size:1.6em;font-weight:800;line-height:1}
}

/* The OneWorld Journey (20.8) — eight steps rising like a staircase. On phones each step is a row, step 1 at the bottom and
   every step a little further to the right (the markup keeps the order 1 → 8). From 600px (container query) the steps stand
   side by side and grow taller from left to right. Colours deepen from sand through green to the deep green last step. */
.stairs{container:stairs/inline-size;box-sizing:border-box;width:min(680px,100%);margin:.4em auto 0}
.st-list{list-style:none;margin:0;padding:0 0 8px;display:flex;flex-direction:column-reverse;gap:6px;border-bottom:3px solid #c9a24a}
.st-list li{--i:0;box-sizing:border-box;position:relative;margin:0 0 0 calc(var(--i)*4.2%);display:flex;flex-direction:column;align-items:flex-start;gap:3px;padding:.5em .8em .55em;border:1.5px solid #c9a24a;border-top-width:4px;border-radius:10px 10px 4px 4px;background:#fffcf4;color:#0e2d23;text-align:left;line-height:1.35;box-shadow:0 3px 8px #0e2d2314}
.st-n{flex:0 0 auto;padding:0 .55em;border:1px solid #d9bb6a;border-radius:999px;background:#fff8e6;color:#6b4e12;font-family:'Cormorant Garamond',Georgia,serif;font-weight:700;font-size:.82em;line-height:1.5;white-space:nowrap;font-variant-numeric:lining-nums}
.st-t{font-weight:800;min-width:0}
.st-list li:nth-child(1){--i:0;background:#fbf3dc}
.st-list li:nth-child(2){--i:1;background:#f6ebcb}
.st-list li:nth-child(3){--i:2;background:#f1e2b6;border-color:#a88330}
.st-list li:nth-child(4){--i:3;background:#e3ecdf;border-color:#a88330}
.st-list li:nth-child(5){--i:4;background:#cfe0d3;border-color:#2f6b52}
.st-list li:nth-child(6){--i:5;background:#bcd5c3;border-color:#2f6b52}
.st-list li:nth-child(7){--i:6;background:#1d4f3d;border-color:#c9a24a;color:#fff}
.st-list li:nth-child(8){--i:7;background:#0e2d23;border-color:#c9a24a;color:#e2c47e}
.st-list li:nth-child(n+7) .st-n{background:#ffffff14;border-color:#c9a24a99;color:#e2c47e}
@container stairs (min-width:600px){
 .st-list{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));align-items:end;gap:6px;padding-bottom:0}
 .st-list li{margin:0;min-height:calc(5.6em + var(--i)*1.3em);flex-direction:column;align-items:center;justify-content:flex-start;gap:6px;padding:.55em .3em .7em;border-radius:10px 10px 0 0;border-bottom:0;text-align:center}
 .st-n{font-size:.82em;padding:.05em .45em}
 .st-t{font-size:.86em}
}
@media(forced-colors:active){
 .gc-track,.gc-back{stroke:CanvasText}.gc-disc{fill:none}.gc-head,.gc-head-back{fill:CanvasText}
 .seedflow li,.gc-list li span,.diagram .gc-core,.st-list li,.st-n{forced-color-adjust:auto}
}

/* The OneWorld Declaration (after 20.11): the text on a green panel, then the optional personal commitment
   (assets/book-completion.js). Agreeing is never required. */
.declaration{margin:1.2em 0;padding:1.6em 1.4em;border-radius:16px;background:linear-gradient(160deg,#0e2d23,#1d4f3d);color:#f7f1e3;border:1px solid #c9a24a88;box-shadow:inset 0 0 0 6px #0e2d23,inset 0 0 0 7px #c9a24a55;text-align:center;font-family:var(--serif);font-size:1.06em;line-height:1.7}
.declaration p{margin:0}
.declaration p+p{margin-top:.3em}
.declaration p:first-child{margin-bottom:.5em;font-size:1.22em;font-weight:700;color:#e2c47e}
.declaration .decl-gap{margin-top:1.1em}
.declaration .decl-strong{font-weight:700;color:#e2c47e}
.decl-tools{margin:1.4em 0 0;padding:1.1em 1.2em;border:1px dashed #d9bb6a;border-radius:14px;background:var(--cream)}
.chapter-body .decl-tools h4{margin:0 0 .35em}
.decl-opt{font-family:var(--sans);font-size:.72em;font-weight:700;color:var(--muted)}
.decl-note{margin:0 0 .9em;font-size:max(13.5px,.8em);line-height:1.65;color:var(--muted)}
.decl-accept{display:grid;grid-template-columns:26px minmax(0,1fr);gap:10px;align-items:start;padding:12px 14px;border:1px solid #e6d3a0;border-radius:12px;background:var(--paper);color:var(--forest);font-weight:700;line-height:1.6;cursor:pointer}
.decl-accept:hover{border-color:var(--gold)}
.decl-accept input{width:22px;height:22px;margin:3px 0 0;accent-color:var(--leaf);cursor:pointer}
.decl-accept input:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
.decl-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(200px,100%),1fr));gap:12px;margin:12px 0 0}
.decl-field label{display:block;margin:0 0 4px;font-weight:700;color:var(--forest)}
.decl-field input{box-sizing:border-box;width:100%;min-height:46px;padding:8px 12px;border:1px solid #d9c690;border-radius:10px;background:#fffcf4;color:var(--ink);font:inherit;font-size:max(16px,.9em)}
.decl-field input:focus{outline:2px solid var(--gold);outline-offset:1px;border-color:var(--gold)}
.decl-buttons{display:flex;flex-wrap:wrap;align-items:center;gap:10px 12px;margin-top:14px}
.reflect-copy.decl-print{background:var(--leaf);color:#fff}
.reflect-copy:disabled{opacity:.5;cursor:not-allowed}
.motto-final{margin-top:0}
@media print{.decl-tools{display:none!important}.declaration{background:none;color:#000;box-shadow:none;border:2px solid #c9a24a}.declaration p:first-child,.declaration .decl-strong{color:#0e2d23}}

/* Book completion (end of Chapter 20). The personal message shows only when the reader has marked all 20 chapters as read
   on this device (assets/reading-progress.js); otherwise the same panel shows the reader's progress. */
.book-complete{position:relative;margin:2.4em 0 0;padding:2em 1.4em 1.6em;border-radius:20px;text-align:center;color:#f7f1e3;border:1px solid #c9a24a99;overflow:hidden;
 background:radial-gradient(circle at 85% 8%,#2f6b5288 0,transparent 45%),radial-gradient(circle at 8% 100%,#c9a24a33 0,transparent 45%),linear-gradient(150deg,#0e2d23,#143b2e 55%,#1d4f3d);
 box-shadow:inset 0 0 0 6px #0e2d23,inset 0 0 0 7px #c9a24a66,0 10px 30px #0e2d2333}
.book-complete .bc-emblem{display:block;width:84px;height:84px;margin:0 auto .5em;color:#e2c47e}
.bc-kicker{margin:0;font-family:'Cormorant Garamond',Georgia,serif;font-size:.95em;font-weight:700;letter-spacing:3px;text-transform:uppercase;color:#e2c47e}
.book-complete h3{margin:.15em 0 .45em;font-family:var(--serif);font-size:clamp(1.6em,5.4vw,2.3em);line-height:1.25;color:#fff}
.book-complete h3:focus{outline:none}
.bc-h-en{display:block;font-family:'Cormorant Garamond',Georgia,serif;font-size:.55em;font-weight:600;color:#e2c47e}
.bc-sub{margin:0 0 .4em;font-family:var(--serif);font-size:1.2em;font-weight:700}
.bc-en{margin:0 0 .8em;font-family:'Cormorant Garamond',Georgia,serif;font-size:1.1em;font-weight:600;color:#e2c47e}
.bc-close{display:inline-block;margin:.3em 0 0;padding:.55em 1.2em;border:1px solid #c9a24a99;border-radius:999px;background:#ffffff0d;color:#fff;font-weight:800}
.bc-wait p{margin:0 0 .5em;color:#e9efe9}
.bc-wait .bc-en{font-size:1em}
.read-map{max-width:560px;margin:1.4em auto 0;padding:1em;border:1px solid #c9a24a55;border-radius:14px;background:#ffffff0f;text-align:left}
.rm-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.rm-title{margin:0;font-size:max(13px,.8em);font-weight:800;letter-spacing:.5px;color:#e2c47e}
.read-map .rm-count{background:#0e2d23;border:1px solid #c9a24a88}
.read-map .check-meter{margin:.6em 0 .8em;background:#ffffff22}
.rm-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:6px}
.rm-list li{margin:0}
.rm-list a{position:relative;display:grid;place-items:center;min-height:40px;border:1.5px solid #c9a24a66;border-radius:10px;color:#f7f1e3;text-decoration:none;font-family:'Cormorant Garamond',Georgia,serif;font-size:1.08em;font-weight:700;font-variant-numeric:lining-nums}
.rm-list a:hover{border-color:#e2c47e;background:#ffffff14}
.rm-list a:focus-visible{outline:2px solid #e2c47e;outline-offset:2px}
.rm-list li.is-read a{background:#2f6b52;border-color:#e2c47e;color:#fff}
.rm-list li.is-read a::after{content:"✓";content:"✓"/"";position:absolute;top:2px;right:4px;font:700 10px/1 var(--sans);color:#e2c47e}
.rm-note{margin:.8em 0 0;font-size:max(12.5px,.74em);line-height:1.6;color:#c9d6cf}
.bc-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(210px,100%),1fr));gap:10px;margin:1.6em 0 0}
.bc-btn{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:58px;padding:10px 14px;border:1.5px solid #c9a24a99;border-radius:12px;background:#ffffff0a;color:#f7f1e3;text-decoration:none;font-weight:800;line-height:1.35}
.bc-btn small{font-family:'Cormorant Garamond',Georgia,serif;font-size:.95em;font-weight:600;color:#e2c47e}
.bc-btn:hover{background:#ffffff1a;border-color:#e2c47e}
.bc-btn:focus-visible{outline:2px solid #e2c47e;outline-offset:3px}
.bc-btn.bc-main{background:#c9a24a;border-color:#c9a24a;color:#0e2d23}
.bc-btn.bc-main small{color:#0e2d23}
.bc-btn.bc-main:hover{background:#e2c47e}
@media(max-width:480px){.rm-list{grid-template-columns:repeat(5,minmax(0,1fr))}.book-complete{padding:1.6em 1em 1.2em}}
@media print{.book-complete,.certificate-sec{display:none!important}}

/* Reading-completion certificate (optional, Chapter 20). Shown only after all 20 chapters are marked as read. Landscape
   A4 proportions on wider screens; on phones the card grows with its text. It is a personal certificate only: no
   signature, accreditation or verification is shown or implied. */
.certificate-sec{margin:2.4em 0 0}
.cert-locked{margin:0;padding:1em 1.2em;border:1px dashed #d9bb6a;border-radius:14px;background:var(--cream);color:var(--muted);font-size:max(14px,.85em);line-height:1.7}
.cert-tools{container:cert/inline-size}
.cert-name-field{max-width:420px;margin:0 0 1em}
.certificate{box-sizing:border-box;width:100%;max-width:820px;margin:0 auto;aspect-ratio:297/210;padding:2.2cqi;border-radius:4px;background:#0e2d23;color:#0e2d23;box-shadow:0 10px 30px #0e2d2333;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.cert-inner{box-sizing:border-box;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:2cqi 6cqi;border:max(2px,.45cqi) solid #c9a24a;outline:1px solid #c9a24a;outline-offset:-1.3cqi;text-align:center;line-height:1.3;
 background:radial-gradient(circle at 50% 0,#fbf3dc 0,transparent 60%),#fffcf4}
.diagram .cert-emblem,.cert-emblem{display:block;width:max(40px,8.5cqi);height:max(40px,8.5cqi);margin:0 auto .6cqi;color:#a88330}
.cert-inner p{margin:0}
.cert-org{font-family:'Cormorant Garamond',Georgia,serif;font-size:max(13px,2.7cqi);font-weight:700;letter-spacing:.6cqi;color:#0e2d23}
.cert-school{margin-bottom:1.3cqi!important;font-size:max(9.5px,1.45cqi);font-weight:800;letter-spacing:.5cqi;color:#8a6a22}
.cert-title{font-family:'Cormorant Garamond',Georgia,serif;font-size:max(19px,4.6cqi);font-weight:700;line-height:1.1;color:#1d4f3d}
.cert-title-ti{margin:.4cqi 0 1.8cqi!important;font-family:var(--serif);font-size:max(13px,2.3cqi);font-weight:700;color:#8a6a22}
.cert-name{box-sizing:border-box;min-width:55%;min-height:1.35em;margin-bottom:.4cqi!important;padding:0 .8em .1em;border-bottom:1px solid #c9a24a;font-family:'Cormorant Garamond','Noto Serif Ethiopic',Georgia,serif;font-size:max(18px,4cqi);font-weight:700;color:#0e2d23}
.cert-lbl{margin-top:1.2cqi!important;font-size:max(10px,1.35cqi);font-weight:800;letter-spacing:.15cqi;color:#56645b}
.cert-book{font-family:'Cormorant Garamond',Georgia,serif;font-size:max(17px,3.4cqi);font-style:italic;font-weight:700;color:#0e2d23}
.cert-meta{margin-top:.35cqi!important;font-size:max(11px,1.6cqi);color:#1c2a23}
.cert-motto{margin-top:1.5cqi!important;font-family:'Cormorant Garamond',Georgia,serif;font-size:max(13px,2.2cqi);font-weight:700;color:#1d4f3d}
.cert-disclaimer{max-width:92%;margin-top:1.3cqi!important;font-size:max(9.5px,1.12cqi);line-height:1.45;color:#56645b}
@container cert (max-width:560px){
 .certificate{aspect-ratio:auto;padding:10px}
 .cert-inner{padding:20px 14px;outline-offset:-6px}
}
@supports not (container-type:inline-size){.certificate{aspect-ratio:auto;padding:12px}.cert-inner{padding:24px 18px}}

/* Printing one sheet only (assets/book-completion.js puts a copy in #print-root and adds html.is-printing) */
#print-root{display:none}
@media print{
 html.is-printing body>*:not(#print-root):not(svg){display:none!important}
 html.is-printing body{background:#fff}
 html.is-printing #print-root{display:block}
 #print-root .print-cert{container:cert/inline-size;width:100%}
 #print-root .certificate{width:100%;max-width:none;height:186mm;aspect-ratio:auto;box-shadow:none;break-inside:avoid}
 #print-root .print-decl{font-family:var(--sans);color:#1c2a23;text-align:center;font-size:15px;line-height:1.6}
 #print-root .ps-head svg{display:block;width:60px;height:60px;margin:0 auto 6px;color:#a88330}
 #print-root .ps-kicker{margin:0;font-size:11px;font-weight:800;letter-spacing:2px;color:#8a6a22}
 #print-root .ps-title{margin:.2em 0 0;font-family:var(--serif);font-size:26px;color:#0e2d23}
 #print-root .ps-sub{margin:0 0 12px;font-family:'Cormorant Garamond',Georgia,serif;font-size:18px;font-weight:700;color:#1d4f3d}
 #print-root .declaration{margin:0;padding:14px 20px;background:none;color:#1c2a23;border:2px solid #c9a24a;box-shadow:none;font-size:15px;line-height:1.6;-webkit-print-color-adjust:exact;print-color-adjust:exact}
 #print-root .declaration p:first-child,#print-root .declaration .decl-strong{color:#0e2d23}
 #print-root .ps-accept{margin:14px 0 0;font-weight:700}
 #print-root .ps-fields{display:flex;flex-wrap:wrap;justify-content:center;gap:12px 32px;margin:22px 0 0}
 #print-root .ps-field{display:flex;align-items:flex-end;gap:8px;margin:0}
 #print-root .ps-l{font-weight:700}
 #print-root .ps-v{min-width:170px;padding:0 4px;border-bottom:1px solid #555;text-align:left}
 #print-root .ps-motto{margin:22px 0 0;font-family:'Cormorant Garamond',Georgia,serif;font-size:15px;font-weight:700;color:#1d4f3d}
}
