/* Public handbook shared by the worksheet, public page and PDF controls. */
.hanenkam-guide-button { display:inline-flex; align-items:center; justify-content:center; gap:6px; width:auto; min-height:32px; padding:6px 9px; border:1px solid #c5d9e3; border-radius:8px; color:#226688; background:#edf4f8; font:inherit; font-size:.69rem; font-weight:650; line-height:1.25; text-decoration:none; cursor:pointer; }
.hanenkam-guide-button .material-symbols-outlined { flex:0 0 18px; width:18px; overflow:hidden; font-size:18px; }
.hanenkam-guide-button:hover { background:#dcebf2; border-color:#226688; }
.hanenkam-guide-button:disabled { opacity:.45; cursor:default; }
.panel-heading__title .hanenkam-guide-button { margin-top:7px; margin-right:6px; }
.hanenkam-guide-entry { padding:10px 16px 0; }
.pdf-download-guide:has(.hanenkam-guide-button) { margin:18px 0; }
.hanenkam-guide { text-align:left; }
.hanenkam-guide { --guide-ink:#19364a; --guide-copy:#526b7a; --guide-line:#d7e0e7; --guide-paper:#fff; --guide-wash:#f5f8fa; --guide-blue:#226688; --guide-orange:#a15c35; color:var(--guide-ink); background:var(--guide-paper); width:min(1380px,calc(100vw - 40px)); max-width:none; height:min(930px,calc(100svh - 40px)); max-height:none; margin:auto; padding:0; border:1px solid var(--guide-line); border-radius:20px; box-shadow:0 30px 110px #0c253c55; overflow:hidden; }
.hanenkam-guide[open] { display:flex; flex-direction:column; }
.hanenkam-guide::backdrop { background:#102a3d99; backdrop-filter:blur(5px); }
.hanenkam-guide :is(button,a,select,summary):focus-visible { outline:3px solid var(--guide-blue); outline-offset:3px; }
.hanenkam-guide button { font-family:inherit; cursor:pointer; }
.hanenkam-guide button:disabled { opacity:.4; cursor:default; }
.hanenkam-guide__top { display:flex; flex:0 0 auto; align-items:center; gap:22px; padding:17px 24px; border-bottom:1px solid var(--guide-line); background:linear-gradient(105deg,#f8f6f0,#edf4f8); }
.hanenkam-guide__top img { display:block; width:128px; height:auto; }
.hanenkam-guide__top>span { font-size:.65rem; font-weight:750; letter-spacing:.12em; color:var(--guide-blue); }
.hanenkam-guide__top small { margin-left:auto; color:var(--guide-copy); font-size:.69rem; }
.hanenkam-guide__close { display:grid; place-items:center; flex:0 0 36px; width:36px; height:36px; padding:0; border:1px solid var(--guide-line); border-radius:50%; color:var(--guide-ink); background:var(--guide-paper); }
.hanenkam-guide__close .material-symbols-outlined { font-size:21px; }
.hanenkam-guide__workspace { display:grid; grid-template-columns:245px minmax(0,1fr); flex:1; min-height:0; }
.hanenkam-guide__steps { padding:24px 13px; border-right:1px solid var(--guide-line); background:var(--guide-wash); overflow-y:auto; overscroll-behavior:contain; }
.hanenkam-guide__steps>p { margin:0 10px 16px; font-size:.58rem; font-weight:750; letter-spacing:.1em; color:var(--guide-copy); }
.hanenkam-guide__steps button { display:flex; align-items:center; gap:10px; width:100%; padding:12px 9px; border:1px solid transparent; border-radius:9px; background:transparent; color:var(--guide-copy); font-size:.74rem; line-height:1.45; text-align:left; }
.hanenkam-guide__steps b { flex:0 0 25px; font-size:.65rem; font-variant-numeric:tabular-nums; }
.hanenkam-guide__steps button:hover { background:#eaf1f5; }
.hanenkam-guide__steps button.is-current { border-color:#bfd4df; background:#e7f0f5; color:var(--guide-ink); font-weight:700; }
.hanenkam-guide__steps button.is-current b { color:var(--guide-orange); }
.hanenkam-guide__main { min-width:0; min-height:0; padding:30px clamp(20px,3vw,46px); overflow-y:auto; overscroll-behavior:contain; }
.hanenkam-guide__intro { margin-bottom:25px; max-width:810px; }
.hanenkam-guide__eyebrow { margin:0 0 10px; color:var(--guide-blue); font-size:.66rem; font-weight:750; letter-spacing:.14em; }
.hanenkam-guide__intro h2 { margin:0 0 13px; color:var(--guide-ink); font-family:var(--font-display); font-size:clamp(1.7rem,2.7vw,2.6rem); line-height:1.16; letter-spacing:-.035em; }
.hanenkam-guide__intro>p:last-child { margin:0; color:var(--guide-copy); font-size:.9rem; line-height:1.75; }
.hanenkam-guide__drawing-tools { display:flex; flex-wrap:wrap; align-items:center; gap:12px 18px; margin-bottom:11px; font-size:.69rem; color:var(--guide-copy); }
.hanenkam-guide__drawing-tools>span { display:flex; align-items:center; gap:7px; }
.guide-key { display:inline-block; width:18px; height:3px; border-radius:3px; }
.guide-key--active { background:var(--guide-orange); }.guide-key--base { background:var(--guide-blue); }
.hanenkam-guide__drawing-tools>div { display:flex; align-items:center; gap:10px; margin-left:auto; }
.hanenkam-guide__drawing-tools button { width:30px; height:30px; border:1px solid var(--guide-line); border-radius:7px; background:var(--guide-paper); color:var(--guide-ink); font-size:18px; }
.hanenkam-guide__figure { margin:0 0 22px; border:1px solid var(--guide-line); border-radius:13px; background:#fffdf9; overflow:hidden; }
.hanenkam-guide__drawing-scroll { overflow:auto; max-height:570px; }
.hanenkam-guide__drawing { min-width:0; width:calc(min(100%,855px) * var(--guide-zoom,1)); margin-inline:auto; }
.hanenkam-guide__drawing svg { display:block; width:100%; height:auto; font-family:var(--font-sans),sans-serif; }
.hanenkam-guide__figure figcaption { padding:13px 18px; border-top:1px solid var(--guide-line); background:var(--guide-wash); color:var(--guide-copy); font-size:.72rem; line-height:1.6; }
.hanenkam-guide__selector { display:flex; flex-wrap:wrap; align-items:center; gap:16px 30px; margin:18px 0 26px; padding:17px 20px; border:1px solid var(--guide-line); border-radius:11px; background:var(--guide-wash); }
.hanenkam-guide__selector label { display:grid; gap:7px; color:var(--guide-copy); font-size:.72rem; }
.hanenkam-guide__selector select { width:100%; min-height:40px; padding:7px 28px 7px 10px; border:1px solid #c5d9e3; border-radius:7px; background:var(--guide-paper); color:var(--guide-ink); font:inherit; font-size:.83rem; }
.hanenkam-guide__selector>div { display:flex; flex-wrap:wrap; gap:14px 28px; }
.hanenkam-guide__selector>div>span { display:grid; gap:4px; color:var(--guide-copy); font-size:.67rem; }
.hanenkam-guide__selector strong { color:var(--guide-ink); font-size:.91rem; font-variant-numeric:tabular-nums; }
.hanenkam-guide__measurements { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1px; margin:22px 0; padding:1px; border:1px solid var(--guide-line); border-radius:11px; overflow:hidden; background:var(--guide-line); }
.hanenkam-guide__measurements>div { display:grid; gap:7px; padding:15px 17px; background:var(--guide-paper); }
.hanenkam-guide__measurements span { color:var(--guide-copy); font-size:.68rem; }
.hanenkam-guide__measurements strong { color:var(--guide-ink); font-size:.84rem; line-height:1.5; font-variant-numeric:tabular-nums; }
.hanenkam-guide__instructions h3 { margin:27px 0 18px; color:var(--guide-ink); font-size:1.08rem; }
.hanenkam-guide__instructions ol { display:grid; gap:16px; margin:0 0 24px; padding-left:25px; }
.hanenkam-guide__instructions li { padding-left:9px; color:var(--guide-copy); font-size:.86rem; line-height:1.8; }
.hanenkam-guide__instructions li::marker { color:var(--guide-blue); font-weight:750; }
.hanenkam-guide__check { display:flex; align-items:flex-start; gap:13px; margin:22px 0 17px; padding:18px 20px; border:1px solid #bdd8cc; border-radius:11px; color:#276348; background:#f0f8f3; }
.hanenkam-guide__check>.material-symbols-outlined { margin-top:2px; font-size:22px; }
.hanenkam-guide__check strong { font-size:.8rem; }.hanenkam-guide__check p { margin:6px 0 0; font-size:.81rem; line-height:1.7; }
.hanenkam-guide__attention { margin:0 0 22px; padding:0 3px; color:var(--guide-copy); font-size:.78rem; line-height:1.8; }
.hanenkam-guide__attention strong { color:var(--guide-orange); }
.hanenkam-guide__navigation { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:28px; padding-top:22px; border-top:1px solid var(--guide-line); }
.hanenkam-guide__navigation button,.hanenkam-guide__message button { min-height:43px; padding:10px 16px; border:1px solid var(--guide-line); border-radius:9px; background:var(--guide-paper); color:var(--guide-blue); font-size:.77rem; font-weight:650; }
.hanenkam-guide__navigation button:last-child { background:var(--guide-blue); border-color:var(--guide-blue); color:white; }
.hanenkam-guide__navigation>span { font-size:.72rem; color:var(--guide-copy); white-space:nowrap; }
.hanenkam-guide__message { padding:48px; color:var(--guide-copy); }
.hanenkam-guide__point-table,.hanenkam-guide__sources { margin:22px 0; padding:18px; border:1px solid var(--guide-line); border-radius:10px; color:var(--guide-copy); font-size:.77rem; line-height:1.7; }
.hanenkam-guide__point-table summary,.hanenkam-guide__sources summary { color:var(--guide-ink); cursor:pointer; font-weight:650; }
.hanenkam-guide__point-table>div { overflow:auto; max-height:290px; }
.hanenkam-guide__point-table table { width:100%; border-collapse:collapse; font-variant-numeric:tabular-nums; }
.hanenkam-guide__point-table :is(th,td) { padding:8px 12px; border-bottom:1px solid var(--guide-line); text-align:right; white-space:nowrap; }
.hanenkam-guide__point-table th:first-child { text-align:left; }
.hanenkam-guide__sources a { color:var(--guide-blue); text-decoration:underline; }
/* SVG geometry uses physical solution coordinates and a consistent visual key. */
.hanenkam-guide svg path,.hanenkam-guide svg rect,.hanenkam-guide svg circle { vector-effect:non-scaling-stroke; }
.hanenkam-guide .g-paper { fill:#fffdf9; }.hanenkam-guide .g-grid { fill:none; stroke:#e9e8e0; stroke-width:.5; }
.hanenkam-guide .g-base,.hanenkam-guide .g-outline { fill:none; stroke:#3b7591; stroke-width:1.5; }
.hanenkam-guide .g-active { fill:none; stroke:#b66638; stroke-width:2.6; }
.hanenkam-guide .g-active-dashed { fill:none; stroke:#b66638; stroke-width:2; stroke-dasharray:7 5; }
.hanenkam-guide .g-centre { fill:none; stroke:#6694aa; stroke-width:1; stroke-dasharray:10 4 2 4; }
.hanenkam-guide .g-construction { fill:none; stroke:#bfa381; stroke-width:1; stroke-dasharray:4 4; }
.hanenkam-guide .g-ray { fill:none; stroke:#91aab4; stroke-width:.7; opacity:.55; }
.hanenkam-guide .g-point { fill:#226688; stroke:#fffdf9; stroke-width:2; }.hanenkam-guide .g-point-active { fill:#b66638; stroke:#fffdf9; stroke-width:2; }
.hanenkam-guide .g-dimension { fill:none; stroke:#526b7a; stroke-width:.9; color:#526b7a; marker-start:url(#guide-arrow); marker-end:url(#guide-arrow); }
.hanenkam-guide .g-measure { fill:#19364a; font-size:16px; font-weight:650; paint-order:stroke; stroke:#fffdf9; stroke-width:6px; stroke-linejoin:round; }
.hanenkam-guide .g-point-label { fill:#8b4c29; font-size:18px; font-weight:750; paint-order:stroke; stroke:#fffdf9; stroke-width:5px; }
.hanenkam-guide .g-kicker { fill:#226688; font-size:13px; font-weight:750; letter-spacing:1px; }
.hanenkam-guide .g-subtitle { fill:#526b7a; font-size:15px; }.hanenkam-guide .g-small { fill:#526b7a; font-size:13px; }
.hanenkam-guide .g-stone { fill:#e4b89d; stroke:#8c614b; stroke-width:.8; }.hanenkam-guide .g-stone-alt { fill:#b4cedb; stroke:#48768b; stroke-width:.8; }
.hanenkam-guide .g-stone-active { fill:#cd8a61; stroke:#8b4d2c; stroke-width:1.7; }.hanenkam-guide .g-natural { fill:#d9d7cc; stroke:#827e6f; stroke-width:1; }
.hanenkam-guide .g-blank { fill:#f3eadd; stroke:#b5a084; stroke-width:1; stroke-dasharray:5 3; }.hanenkam-guide .g-hatch { fill:none; stroke:#c9b9a5; stroke-width:.7; }
.hanenkam-guide .g-profile { fill:#f1e8d3; stroke:#b9a684; stroke-width:1; }.hanenkam-guide .g-sheet { fill:#fff; stroke:#c7d8e0; stroke-width:1.3; }
.hanenkam-guide .g-stone-number { fill:#664738; font-size:10px; font-weight:650; text-anchor:middle; }
.hanenkam-guide .g-badge { fill:#fff; stroke:#b66638; stroke-width:1; }.hanenkam-guide .g-badge-text { fill:#8b4c29; font-size:12px; font-weight:700; }
@media(max-width:800px) {
 .hanenkam-guide { width:calc(100vw - 16px); height:calc(100svh - 16px); border-radius:13px; }
 .hanenkam-guide__workspace { display:flex; flex-direction:column; }
 .hanenkam-guide__top { gap:12px; padding:12px 15px; }.hanenkam-guide__top img { width:100px; }.hanenkam-guide__top>span { display:none; }.hanenkam-guide__top small { font-size:.6rem; }
 .hanenkam-guide__steps { display:flex; flex:0 0 auto; gap:5px; padding:10px 12px; border:0; border-bottom:1px solid var(--guide-line); overflow-x:auto; }
 .hanenkam-guide__steps>p,.hanenkam-guide__steps button>span { display:none; }.hanenkam-guide__steps button { flex:0 0 39px; width:39px; height:37px; justify-content:center; padding:0; }.hanenkam-guide__steps b { flex:auto; text-align:center; }
 .hanenkam-guide__main { padding:22px 18px; }.hanenkam-guide__intro h2 { font-size:1.8rem; }.hanenkam-guide__intro>p:last-child { font-size:.84rem; }
 .hanenkam-guide__drawing-tools::after { content:"Veeg de tekening opzij om alle lijnen te bekijken."; flex-basis:100%; color:var(--guide-copy); font-size:.65rem; }
 .hanenkam-guide__figure figcaption { font-size:.67rem; padding:12px; }.hanenkam-guide__selector { padding:14px; gap:16px; }.hanenkam-guide__selector label { width:100%; }.hanenkam-guide__selector select { font-size:16px; }
 .hanenkam-guide__instructions li { font-size:.82rem; }.hanenkam-guide__measurements { grid-template-columns:1fr; }.hanenkam-guide__measurements>div { padding:12px 14px; }
 .hanenkam-guide__navigation { gap:7px; }.hanenkam-guide__navigation button { padding:9px 10px; font-size:.7rem; }
 .hanenkam-guide__drawing-scroll { max-height:460px; }.hanenkam-guide__drawing { min-width:680px; width:calc(max(100%,680px) * var(--guide-zoom,1)); }
}
@media print {
 .hanenkam-guide,.hanenkam-guide-button,.hanenkam-guide-entry { display:none!important; }
}

/* Keep navigation reachable while the instruction itself scrolls. */
.hanenkam-guide__workspace { grid-template-rows:minmax(0,1fr) auto; }
.hanenkam-guide__steps { grid-row:1 / -1; }
.hanenkam-guide__main { grid-column:2; grid-row:1; }
.hanenkam-guide__workspace>.hanenkam-guide__navigation { grid-column:2; margin:0; padding:12px 28px; background:var(--guide-paper); }
.hanenkam-guide__division-summary { padding:16px; border:1px solid var(--guide-line); border-radius:10px; font-size:.9rem; line-height:1.7; color:var(--guide-ink); background:var(--guide-wash); }
.guide-division { display:grid; gap:22px; margin-bottom:22px; }
.guide-division__calculation { border:1px solid var(--guide-line); border-radius:12px; overflow:hidden; }
.guide-division__calculation>summary { padding:17px 20px; background:var(--guide-wash); color:var(--guide-ink); font-weight:750; font-size:1rem; cursor:pointer; }
.guide-division__math { padding:0 20px 20px; font-size:.94rem; line-height:1.7; color:var(--guide-copy); }
.guide-division__math ol { display:grid; gap:20px; list-style:none; padding:0; }
.guide-division__math li strong { display:block; color:var(--guide-ink); }
.guide-division__math li p { margin:5px 0 0; }
.guide-division__formula:not(:empty) { padding:12px 14px; margin-top:10px; border-left:3px solid var(--guide-blue); border-radius:0 8px 8px 0; background:var(--guide-wash); color:var(--guide-ink); font-size:1.04rem; font-weight:750; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.guide-division__units { font-size:.84rem; }
.guide-division__answer { display:grid; gap:5px; padding:16px; margin:20px 0; border:1px solid #bdd8cc; border-radius:10px; background:#f0f8f3; color:#276348; }
.guide-division__answer>span { font-size:.76rem; text-transform:uppercase; letter-spacing:.07em; }
.guide-division__math details { margin-top:16px; }
.guide-division__math details summary { cursor:pointer; color:var(--guide-blue); font-weight:650; }
.guide-division__heading { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:12px; color:var(--guide-ink); font-weight:750; }
.guide-division__heading small { white-space:nowrap; color:var(--guide-copy); font-variant-numeric:tabular-nums; }
.guide-division__controls { display:flex; flex-wrap:wrap; gap:8px; }
.guide-division :is(.guide-division__controls,.guide-division__frames) button { min-height:44px; padding:10px 14px; border:1px solid var(--guide-line); border-radius:8px; background:#fff; color:var(--guide-ink); font-size:.88rem; font-weight:650; }
.guide-division__controls button.guide-division__play { background:var(--guide-blue); color:white; border-color:var(--guide-blue); }
.guide-division__narration { min-height:140px; padding:18px 0 10px; }
.guide-division__narration h3 { margin:0 0 8px; color:var(--guide-ink); font-size:1.13rem; }
.guide-division__narration p { margin:0; color:var(--guide-copy); font-size:1rem; line-height:1.7; }
.guide-division__frames { display:grid; grid-template-columns:repeat(8,minmax(0,1fr)); gap:5px; }
.guide-division__frames button[aria-current=step] { border-color:var(--guide-blue); background:#e7f0f5; color:var(--guide-blue); }
.guide-division__hint { color:var(--guide-copy); font-size:.85rem; line-height:1.6; }
.guide-division .hanenkam-guide__drawing { width:min(100%,640px); }
.guide-division .hanenkam-guide__figure { margin:0 0 14px; }
.guide-division .division-stone { fill:#e3b291; stroke:#987259; stroke-width:.7; }
.guide-division .division-stone-center { fill:#b5d4e3; stroke:#226688; stroke-width:1.6; }
.guide-division .division-stone-pending { fill:#f5eee4; stroke:#d1c6b8; stroke-width:.5; }
.guide-division .division-label { font-size:24px; font-weight:650; fill:var(--guide-ink); paint-order:stroke; stroke:#fffdf9; stroke-width:5px; stroke-linejoin:round; }
.guide-division .division-gauge { fill:none; stroke:#19364a; stroke-width:2; }
.guide-division .division-ray { fill:none; stroke:#b66638; stroke-width:1.5; }
.guide-division .division-draw { stroke-dasharray:1; stroke-dashoffset:1; animation:guide-draw-line 1.3s ease-out forwards; animation-delay:var(--division-delay,0s); }
@keyframes guide-draw-line { to { stroke-dashoffset:0; } }
@media(prefers-reduced-motion:reduce) { .guide-division .division-draw { animation:none; stroke-dashoffset:0; } }
@media(max-width:800px) {
 .guide-division__calculation>summary { padding:15px 12px; }
 .guide-division__math { padding:0 12px 15px; font-size:1rem; }
 .guide-division__frames { grid-template-columns:repeat(4,minmax(0,1fr)); }
 .guide-division__narration { min-height:0; }
 .guide-division__controls button { flex:1; padding-inline:8px!important; }
}
@media(max-width:800px) {
 .hanenkam-guide__main { flex:1 1 auto; padding:18px 14px; }
 .hanenkam-guide__steps button { flex-basis:44px; width:44px; height:44px; }
 .hanenkam-guide__workspace>.hanenkam-guide__navigation { flex:0 0 auto; padding:10px 12px max(10px,env(safe-area-inset-bottom)); }
 .hanenkam-guide__navigation button { min-height:44px; font-size:.76rem; }
 .hanenkam-guide__drawing { min-width:0; width:calc(100% * var(--guide-zoom,1)); }
 .hanenkam-guide__drawing-tools::after { content:"Hele tekening in beeld. Tik op + voor details; veeg daarna om te kijken."; font-size:.75rem; line-height:1.5; }
 .hanenkam-guide__drawing-tools button { width:44px; height:44px; }
 .hanenkam-guide__instructions li { font-size:1rem; line-height:1.65; padding-left:5px; }
 .hanenkam-guide__intro>p:last-child,.hanenkam-guide__check p,.hanenkam-guide__attention { font-size:.93rem; line-height:1.65; }
 .hanenkam-guide__figure figcaption { font-size:.81rem; }
 .hanenkam-guide__measurements span { font-size:.8rem; }
 .hanenkam-guide__measurements strong { font-size:.95rem; }
 .hanenkam-guide__selector>div>span { font-size:.79rem; }
}

/* Complete workshop: physical pieces, measured points and cutting contours. */
.stone-workshop { min-width:0; margin-bottom:24px; }
.stone-workshop__route { padding:22px; background:linear-gradient(120deg,#f5f2e9,#edf4f8); border:1px solid var(--guide-line); border-radius:14px; margin-bottom:18px; }
.stone-workshop__route>span { color:var(--guide-blue); font-size:.7rem; letter-spacing:.1em; font-weight:750; }
.stone-workshop h3 { margin:10px 0; color:var(--guide-ink); font-size:1.2rem; line-height:1.35; }
.stone-workshop h4 { margin:0 0 12px; color:var(--guide-ink); font-size:1rem; }
.stone-workshop p,.stone-workshop li { color:var(--guide-copy); font-size:.95rem; line-height:1.7; }
.stone-workshop__route p { margin:0; }
.stone-workshop__tabs { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:7px; margin:0 0 18px; }
.stone-workshop button { min-height:44px; border:1px solid #c4d4de; border-radius:8px; padding:10px 13px; background:#fff; color:var(--guide-blue); font:inherit; font-size:.86rem; font-weight:650; }
.stone-workshop__tabs button[aria-selected=true] { background:var(--guide-ink); border-color:var(--guide-ink); color:#fff; }
.stone-workshop__totals { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; padding:15px 0; margin-bottom:12px; border-block:1px solid var(--guide-line); }
.stone-workshop__totals>span { display:grid; gap:4px; color:var(--guide-copy); font-size:.78rem; }
.stone-workshop__totals b { color:var(--guide-ink); font-size:1.5rem; }
.stone-workshop__table { max-width:100%; overflow:auto; overscroll-behavior-inline:contain; border:1px solid var(--guide-line); border-radius:10px; }
.stone-workshop table { width:100%; border-collapse:collapse; font-size:.84rem; font-variant-numeric:tabular-nums; }
.stone-workshop caption { padding:12px; text-align:left; color:var(--guide-copy); font-size:.8rem; }
.stone-workshop :is(th,td) { padding:11px 12px; border-bottom:1px solid var(--guide-line); text-align:left; white-space:nowrap; }
.stone-workshop th { color:var(--guide-ink); background:var(--guide-wash); }
.stone-workshop td { color:var(--guide-copy); }
.stone-workshop tbody tr:last-child>* { border-bottom:0; }
.stone-workshop__details { margin:18px 0; padding:16px; border:1px solid var(--guide-line); border-radius:10px; }
.stone-workshop summary { cursor:pointer; color:var(--guide-ink); font-weight:700; font-size:.95rem; line-height:1.5; }
.stone-workshop__explain { padding:20px; background:var(--guide-wash); border:1px solid var(--guide-line); border-radius:12px; margin:22px 0; }
.stone-workshop__explain ol { padding-left:22px; }
.stone-workshop__explain li { padding:0 0 12px 5px; }
.stone-workshop__next { display:block; width:100%; margin:18px 0; text-align:center; background:var(--guide-blue)!important; color:#fff!important; }
.stone-workshop__pick { display:flex; flex-wrap:wrap; align-items:end; gap:12px; margin:18px 0; }
.stone-workshop__pick label,.stone-workshop__playbar label { display:grid; gap:7px; flex:1; color:var(--guide-copy); font-size:.83rem; min-width:0; }
.stone-workshop :is(select,input[type=number]) { width:100%; min-height:44px; padding:8px 10px; font:inherit; font-size:16px; border:1px solid #c4d4de; border-radius:8px; color:var(--guide-ink); background:#fff; }
.stone-workshop__identity { display:grid; gap:8px; padding:18px; margin:15px 0; border-left:4px solid var(--guide-blue); border-radius:0 10px 10px 0; background:var(--guide-wash); }
.stone-workshop__identity strong { color:var(--guide-ink); font-size:1.15rem; }
.stone-workshop__identity span { color:var(--guide-copy); font-size:.86rem; line-height:1.5; }
.stone-workshop__playbar { display:flex; flex-wrap:wrap; align-items:end; gap:8px; margin:20px 0; }
.stone-workshop__playbar label { flex:0 0 135px; }
.stone-workshop__play { background:var(--guide-blue)!important; color:#fff!important; }
.stone-workshop__narration { min-height:155px; }
.stone-workshop__narration h3 { font-size:1.3rem; }
.stone-workshop__narration p { margin:8px 0 18px; font-size:1.02rem; }
.stone-workshop__scrub { display:flex; align-items:center; gap:16px; margin:16px 0; }
.stone-workshop__scrub label { display:grid; gap:8px; flex:1; color:var(--guide-copy); font-size:.82rem; }
.stone-workshop__scrub input { min-height:32px; width:100%; accent-color:var(--guide-blue); }
.stone-workshop__scrub>span { min-width:60px; color:var(--guide-ink); font-size:.88rem; font-variant-numeric:tabular-nums; }
.stone-workshop__chapters { display:flex; flex-wrap:wrap; gap:7px; margin-bottom:24px; }
.stone-workshop__chapters button { font-size:.79rem; flex:1; }
.stone-workshop__point-list,.stone-workshop__cut-math { margin:24px 0; }
.stone-workshop__equations { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.stone-workshop__equations>div { display:grid; gap:10px; padding:16px; border:1px solid var(--guide-line); border-radius:10px; background:var(--guide-wash); }
.stone-workshop__equations span { color:var(--guide-copy); font-size:.8rem; }
.stone-workshop__equations strong { color:var(--guide-ink); font-size:1rem; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.stone-workshop svg { font-family:var(--font-sans),sans-serif; }
.stone-workshop .w-title { fill:#19364a; font-size:25px; font-weight:750; }
.stone-workshop .w-caption { fill:#526b7a; font-size:21px; }
.stone-workshop .w-value { fill:#19364a; font-size:23px; font-weight:700; paint-order:stroke; stroke:#fffdf9; stroke-width:5px; }
.stone-workshop .w-blank { fill:#f7eee1; stroke:#9e8e7e; stroke-width:1; }
.stone-workshop .w-kept,.stone-workshop .w-lower { fill:#b8d6e5; stroke:#457892; stroke-width:.8; }
.stone-workshop .w-upper { fill:#e4b38e; stroke:#96664b; stroke-width:.8; }
.stone-workshop .w-selected { fill:#82b1cc; stroke:#19364a; stroke-width:2; }
.stone-workshop .w-stone-id { fill:#19364a; font-size:16px; font-weight:750; paint-order:stroke; stroke:#fff9; stroke-width:2px; }
.stone-workshop .w-hatch { fill:none; stroke:#c87951; stroke-width:1; }
.stone-workshop .w-datum { fill:none; stroke:#8396a2; stroke-width:.8; stroke-dasharray:5 4; }
.stone-workshop .w-outline { fill:none; stroke:#226688; stroke-width:2; }
.stone-workshop .w-zero { fill:#19364a; }
.stone-workshop .w-construction { fill:none; stroke:#8da4b1; stroke-width:1; stroke-dasharray:4 3; }
.stone-workshop .w-measure,.stone-workshop .w-cut { fill:none; stroke:#ad572e; stroke-width:2.5; }
.stone-workshop .w-point-label { fill:#19364a; font-size:25px; font-weight:750; paint-order:stroke; stroke:#fffdf9; stroke-width:5px; }
.stone-workshop .w-cross { fill:none; stroke:#19364a; stroke-width:1.5; }
.stone-workshop .w-triangle { fill:none; stroke:#6b7280; stroke-width:1.4; stroke-dasharray:6 4; }
.stone-workshop .w-transfer { fill:#d9e8ef55; stroke:#548ba6; stroke-width:1; stroke-dasharray:5 3; }
.stone-workshop .w-kerf { fill:none; stroke:#cb563d; opacity:.65; stroke-linecap:butt; vector-effect:none; }
.stone-workshop .w-draw { stroke-dasharray:1; stroke-dashoffset:1; animation:guide-draw-line 1.25s ease-in-out forwards; }
.stone-workshop .w-pencil { fill:#e2a63d; stroke:#674522; stroke-width:2; animation:workshop-pencil 1.25s ease-in-out forwards; }
@keyframes workshop-pencil { from{transform:translate(0,0)}to{transform:translate(var(--pencil-x),var(--pencil-y))} }
@media(prefers-reduced-motion:reduce) { .stone-workshop .w-draw { animation:none; stroke-dashoffset:0; }.stone-workshop .w-pencil { display:none; } }
@media(max-width:800px) {
 .stone-workshop__route { padding:16px; }.stone-workshop__tabs { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .stone-workshop__totals { grid-template-columns:1fr 1fr; }.stone-workshop__totals>span { font-size:.85rem; }
 .stone-workshop__pick { flex-direction:column; align-items:stretch; }.stone-workshop__pick label { flex:auto; }
 .stone-workshop__playbar button { flex:1; padding-inline:7px; }.stone-workshop__playbar label { flex:1 0 100%; }
 .stone-workshop__narration { min-height:0; }.stone-workshop__equations { grid-template-columns:1fr; }
 .stone-workshop__explain { padding:16px; }.stone-workshop p,.stone-workshop li { font-size:1rem; }
 .stone-workshop__chapters { display:grid; grid-template-columns:1fr 1fr; }.stone-workshop__identity span { font-size:.95rem; }
}

.stone-workshop__tabs,.stone-workshop__playbar { scroll-margin-top:12px; }

/* The guide begins with an animated lesson, including preparation. */
.guide-opening { margin-bottom:24px; }
/* Zoom must settle before the animation-frame callback centres the drawing.
   The global reduced-motion duration otherwise introduces a width transition. */
.guide-opening .hanenkam-guide__drawing { transition-property:none; }
.guide-opening .guide-division__controls button,.guide-opening__frames button { min-height:44px; padding:10px 14px; border:1px solid var(--guide-line); border-radius:8px; background:#fff; color:var(--guide-ink); font:inherit; font-size:.88rem; font-weight:650; }
.guide-opening .guide-division__controls .guide-division__play { background:var(--guide-blue); color:#fff; border-color:var(--guide-blue); }
.guide-opening__frames { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:7px; }
.guide-opening__frames button[aria-current=step] { background:#e7f0f5; border-color:var(--guide-blue); color:var(--guide-blue); }
.guide-opening .opening-title { fill:var(--guide-ink); font-size:25px; font-weight:750; }
.guide-opening .opening-caption { fill:var(--guide-copy); font-size:21px; }
.guide-opening .opening-value,.guide-opening .opening-label { fill:var(--guide-ink); font-size:24px; font-weight:700; paint-order:stroke; stroke:#fffdf9; stroke-width:5px; stroke-linejoin:round; }
.guide-opening .opening-measure { stroke:#526b7a; stroke-width:1; fill:none; }
.guide-opening .opening-square { stroke:#526b7a; stroke-width:1.4; fill:none; }
.guide-opening .opening-board { fill:#f3eadc; stroke:#bca88f; stroke-width:1; }
.guide-opening .opening-ruler { fill:#e8c47d; stroke:#94733f; stroke-width:1; }
.guide-opening .opening-tool-line { stroke:#826541; stroke-width:1.5; fill:none; }
.guide-opening .opening-square-tool { fill:#b8d3df; stroke:#487d96; stroke-width:1; }
.guide-opening .opening-brick { fill:#cd9471; stroke:#91634b; stroke-width:1; }
.guide-opening .opening-brick-top { fill:#e4b397; stroke:#91634b; stroke-width:1; }
.guide-opening .opening-brick-side { fill:#b87957; stroke:#91634b; stroke-width:1; }
.guide-opening .opening-pencil { fill:#e4ae44; stroke:#86612b; stroke-width:1; }
.guide-opening .opening-pencil-tip { fill:#79634d; }
.guide-opening .opening-draw { stroke-dasharray:1; stroke-dashoffset:1; animation:guide-draw-line 1.3s ease-out forwards; }
.guide-opening .opening-pop { animation:opening-appear .55s ease-out both; }
@keyframes opening-appear { from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)} }
@media(prefers-reduced-motion:reduce) { .guide-opening .opening-draw { animation:none; stroke-dashoffset:0; }.guide-opening .opening-pop { animation:none; } }
@media(max-width:800px) { .guide-opening .guide-division__controls button { flex:1; padding-inline:7px; } }

/* The practical lesson starts with whole stock, not a wall of instructions. */
.hanenkam-guide__notes { margin:18px 0; padding:14px 16px; border:1px solid var(--guide-line); border-radius:10px; }
.hanenkam-guide__notes>summary { cursor:pointer; color:var(--guide-ink); font-weight:650; font-size:.9rem; }
.hanenkam-guide__notes[open]>summary { margin-bottom:18px; }
.laying-switch { margin:0 0 16px; width:100%; }
.laying-lesson { min-width:0; }
.laying-lesson__choose label,.laying-lesson__cut-choice label,.laying-lesson__tempo { display:grid; gap:6px; color:var(--guide-copy); font-size:.85rem; }
.laying-lesson__choose { max-width:360px; margin-bottom:16px; }
.laying-lesson__narration>span { color:var(--guide-blue); font-size:.72rem; letter-spacing:.08em; font-weight:750; }
.laying-lesson__narration h3 { margin:8px 0; font-size:1.4rem; }
.laying-lesson__narration p { margin:0 0 15px; max-width:65ch; }
.laying-lesson__controls { display:flex; gap:8px; margin-bottom:16px; }
.laying-lesson__controls button { flex:1; }
.laying-lesson__chapters { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:7px; margin:16px 0; }
.laying-lesson__chapters button { display:flex; gap:7px; text-align:left; align-items:baseline; }
.laying-lesson__chapters span { font-size:.74rem; line-height:1.35; }
.laying-lesson__chapters [aria-current=step] { background:var(--guide-ink); border-color:var(--guide-ink); color:#fff; }
.laying-lesson__tempo { max-width:180px; }
.laying-lesson__hint { font-size:.84rem!important; }
.laying-lesson__cut-choice { display:grid; grid-template-columns:1fr 140px; gap:12px; margin:18px 0; }
.laying-lesson__sum { display:flex; gap:7px; flex-wrap:wrap; align-items:center; padding:15px; border:1px solid var(--guide-line); border-radius:12px; background:var(--guide-wash); }
.laying-lesson__sum>div { display:grid; gap:7px; padding:12px; border-radius:8px; background:#dbeaf2; flex:1; }
.laying-lesson__sum>div.is-joint { background:#fff; border:1px solid #bbc7ca; }
.laying-lesson__sum>div.is-upper { background:#f0d8c5; }
.laying-lesson__sum span { font-size:.76rem; color:var(--guide-copy); white-space:nowrap; }
.laying-lesson__sum strong { color:var(--guide-ink); font-size:1rem; white-space:nowrap; }
.laying-lesson__sum>p { flex-basis:100%; margin:5px 0 0; }
.laying-scene .hanenkam-guide__drawing { transition-property:none; }
.laying-scene .laying-title { fill:var(--guide-ink); font-size:26px; font-weight:750; }
.laying-scene .laying-caption { fill:var(--guide-copy); font-size:22px; }
.laying-scene .laying-small { fill:var(--guide-copy); font-size:20px; font-weight:650; }
.laying-scene .laying-value { fill:var(--guide-ink); font-size:28px; font-weight:750; paint-order:stroke; stroke:#fffdf9; stroke-width:5px; stroke-linejoin:round; }
.laying-scene .laying-whole { fill:#dfb38e; stroke:#a16f4d; stroke-width:1; }
.laying-scene .laying-overlap { fill:#dfb38e44; stroke:#a16f4d66; }
.laying-scene .laying-waste { stroke:none; opacity:.65; }
.laying-scene .laying-ghost { fill:#d8e4eb33; stroke:#738e9c; stroke-width:1; stroke-dasharray:5 4; }
.laying-scene .laying-outline { fill:#aed1e366; stroke:#23678c; stroke-width:1.5; }
.laying-scene .laying-mark { fill:none; stroke:#b56236; stroke-width:2; }
.laying-scene .laying-joint { fill:white; stroke:#8098a5; stroke-width:1.5; }
.laying-scene .laying-arrive { animation:laying-place 1s cubic-bezier(.2,.7,.3,1) var(--laying-delay,0ms) both; }
.laying-scene .laying-draw { stroke-dasharray:1; stroke-dashoffset:1; animation:guide-draw-line 1.6s ease-out forwards; }
.laying-scene[data-frame="9"] .w-kerf { stroke-dasharray:1; stroke-dashoffset:1; animation:guide-draw-line 2.4s linear forwards; }
.laying-scene[data-frame="9"] .w-cut { stroke-dasharray:1; stroke-dashoffset:1; animation:guide-draw-line 2.4s linear forwards; }
.laying-scene[data-frame="10"] .w-blank { fill:none; stroke-dasharray:5 4; opacity:.35; }
.laying-scene[data-frame="10"] .w-waste { animation:laying-waste-away 1.6s ease-in forwards; }
.laying-scene[data-frame="10"] .w-cross,.laying-scene[data-frame="10"] .w-point-label { opacity:.35; }
@keyframes laying-place { from{opacity:0;transform:translateY(-38px)}to{opacity:1;transform:translateY(0)} }
@keyframes laying-waste-away { from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(32px)} }
@media(max-width:800px) {
 .laying-lesson__choose { max-width:none; }.laying-lesson__narration h3 { font-size:1.15rem; }
 .laying-lesson__chapters { grid-template-columns:repeat(3,minmax(0,1fr)); }
 .laying-lesson__chapters button { flex-direction:column; gap:3px; padding:8px; }
 .laying-lesson__cut-choice { grid-template-columns:1fr; }
 .laying-lesson__sum { gap:5px; padding:10px; }.laying-lesson__sum>div { min-width:calc(50% - 22px); padding:10px; }
 .laying-lesson__sum>div:nth-of-type(3) { margin-left:0; }
 .laying-lesson__sum span { white-space:normal; }
}
@media(prefers-reduced-motion:reduce) {
 .laying-scene .laying-arrive,.laying-scene .laying-draw,.laying-scene .w-kerf,.laying-scene .w-cut { animation:none!important; stroke-dashoffset:0; }
 .laying-scene[data-frame="10"] .w-waste { animation:none; opacity:0; }
}
.laying-lesson__narration { scroll-margin-top:14px; }
.laying-lesson__remainder { color:var(--guide-ink)!important; font-weight:700; }
/* Keep the moving drawing in the first phone viewport. The current step is
   already identified by the fixed step navigation and the lesson heading. */
#workshop-panel:has(>.laying-lesson) { display:flex; flex-direction:column; }
#workshop-panel:has(>.laying-lesson)>.laying-switch { order:2; margin-top:18px; }
#workshop-panel:has(>.laying-lesson)>.stone-workshop__next { order:3; }
@media(max-width:800px) {
 .hanenkam-guide__main:has(.laying-lesson)>.hanenkam-guide__intro { margin-bottom:12px; }
 .hanenkam-guide__main:has(.laying-lesson)>.hanenkam-guide__intro h2 { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
 .hanenkam-guide__main:has(.laying-lesson)>.hanenkam-guide__intro>p:last-child { display:none; }
 .stone-workshop:has(.laying-lesson)>.stone-workshop__tabs { grid-template-columns:repeat(4,minmax(0,1fr)); gap:5px; margin-bottom:12px; }
 .stone-workshop:has(.laying-lesson)>.stone-workshop__tabs button { padding:7px 4px; font-size:.72rem; }
 .laying-lesson__choose { margin-bottom:10px; }.laying-lesson__choose label { font-size:0; gap:0; }
 .laying-lesson__narration p { font-size:.88rem; line-height:1.5; margin-bottom:12px; }
 .laying-lesson .hanenkam-guide__drawing-tools::after { content:none; }
 .laying-lesson .hanenkam-guide__drawing-tools { margin-bottom:10px; }
}
@media(max-width:800px) { .laying-lesson__controls { margin-bottom:8px; } }
.setting-film__stock {margin:0;padding:10px 16px;border-bottom:1px solid #d9e4ec;background:#f4f8fb;color:#43596d;font-size:12px;line-height:1.65;font-variant-numeric:tabular-nums;}
.setting-film__stock:empty {display:none;}
