/* One compact tutorial: notation, a short explanation, and a shared letter key. */
.reader-page{margin:0;background:#fff;color:#172525;font-family:system-ui,sans-serif;line-height:1.6}
.reader-page main{padding:0}
.trick-sheet{box-sizing:border-box;width:100%;max-width:1200px;margin:0 auto;padding:24px clamp(18px,3.125vw,40px) 40px;color:var(--ink,#172525);font-family:var(--body,system-ui,sans-serif);line-height:1.6;min-width:0}
.trick-sheet *{box-sizing:border-box}
.trick-sheet h1{font-size:36px;line-height:1.2;letter-spacing:-.025em;margin:0;font-weight:700}
.sheet-caption{font-size:14px;color:var(--muted,#586567);margin:6px 0 18px}
.trick-sheet .explanation-toggle{display:flex;flex-direction:row;align-items:center;gap:9px;min-height:44px;margin:0 0 12px;font-size:14px;font-weight:400;cursor:pointer}
.trick-sheet .explanation-toggle input{width:18px;height:18px;min-height:18px;padding:0;margin:0;accent-color:var(--blue,#224ce0)}
.reader-controls{display:flex;align-items:center;gap:24px;flex-wrap:wrap;margin-bottom:12px}
.trick-sheet .reader-controls .explanation-toggle{margin:0}
.reader-choice{display:flex;gap:4px;border:0;padding:0;margin:0;min-width:0}
.reader-choice legend{font-size:13px;color:var(--muted,#586567);margin-bottom:4px}
.trick-sheet .reader-choice label{display:flex;flex-direction:row;align-items:center;gap:7px;min-height:44px;padding:8px 12px;font-size:14px;font-weight:400;border:1px solid var(--line,#dce2e6);border-radius:5px;cursor:pointer}
.trick-sheet .reader-choice label:has(:checked){background:var(--pale,#eef2ff);color:var(--blue,#224ce0);border-color:var(--blue,#224ce0)}
.trick-sheet .reader-choice input{width:16px;height:16px;min-height:16px;margin:0;padding:0;accent-color:var(--blue,#224ce0)}
.step-explanation[hidden]{display:none}
.notation-key[hidden]{display:none}
.sheet-body.longhand{grid-template-columns:minmax(0,1fr)}
.sheet-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,280px);gap:24px;align-items:start;margin-bottom:24px;min-width:0}
.trick-steps{list-style:none;padding:0;margin:0;min-width:0}
.trick-step{padding:5px 0;border-bottom:1px solid var(--line,#dce2e6);scroll-margin-top:16px;min-width:0}
.trick-step:has(.step-explanation:not([hidden])){padding-block:9px}
.trick-step:first-child{padding-top:0}
.trick-step h2{display:flex;align-items:baseline;gap:10px;margin:0;font-size:17px;line-height:1.4;letter-spacing:0;font-weight:600}
.step-number{flex:0 0 22px;color:var(--muted,#586567);font-size:14px;font-weight:400;font-variant-numeric:tabular-nums}
.trick-step code{font:inherit;color:var(--blue,#224ce0);white-space:normal;overflow-wrap:anywhere}
.trick-step .step-explanation{margin:4px 0 0 32px;font-size:14px;line-height:1.45;color:var(--muted,#586567);max-width:none;overflow-wrap:anywhere}
.notation-key{background:var(--pale,#eef2ff);padding:16px;border-radius:8px}
.notation-key summary{font:600 18px/1.4 var(--body,system-ui,sans-serif);color:var(--ink,#172525);cursor:pointer;min-height:44px;align-content:center}
.notation-key dl{margin:6px 0 0;font-size:14px;line-height:1.4}
.notation-key dl>div{display:grid;grid-template-columns:42px minmax(0,1fr);gap:8px;padding:3px 0}
.notation-key dt{color:var(--blue,#224ce0);font-weight:600}
.notation-key dd{margin:0}
.sheet-source{border-top:1px solid var(--line,#dce2e6);padding-top:18px;margin:0;font-size:14px;color:var(--muted,#586567)}
.trick-sheet a{color:var(--blue,#224ce0);text-underline-offset:3px}
.trick-sheet :focus-visible{outline:3px solid var(--blue,#224ce0);outline-offset:3px}
.trick-sheet ::selection{background:var(--pale,#eef2ff);color:var(--ink,#172525)}
.reader-sr{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
body:has(.trick-sheet)>.topbar,body:has(.trick-sheet)>#storage-alert{display:none}
.shell:has(.trick-sheet){display:block;max-width:none;margin:0}
.shell:has(.trick-sheet)>.sidebar{display:none}
.shell:has(.trick-sheet)>main{padding:0;max-width:none}
@media(max-width:759px){.sheet-body{display:flex;flex-direction:column;gap:16px}.notation-key{order:-1;width:100%;padding:12px 16px}.trick-steps{width:100%}}
@media(max-width:600px){.trick-sheet{padding:24px 18px}.trick-sheet h1{font-size:30px}}
@media print{.reader-controls{display:none!important}.trick-sheet{max-width:none;padding:0}.trick-step{break-inside:avoid}.trick-step code{color:#172525}.sheet-source a{color:inherit}}

/* Direction arrows are inline controls so their names work on touch and keyboard too. */
.turn-icon{display:inline-flex;position:relative;align-items:center;justify-content:center;width:28px;height:28px;padding:2px;margin:0 2px 0 0;border:0;background:transparent;color:inherit;vertical-align:middle;cursor:pointer;border-radius:4px}
.turn-icon svg{width:24px;height:24px;flex:none}
.turn-tip{position:absolute;left:0;bottom:calc(100% + 5px);z-index:3;padding:5px 8px;background:var(--ink,#172525);color:#fff;font:500 13px/1.4 var(--body,system-ui,sans-serif);border-radius:4px;white-space:nowrap;visibility:hidden;pointer-events:none}
.turn-icon:hover .turn-tip,.turn-icon:focus-visible .turn-tip,.turn-icon[aria-expanded="true"] .turn-tip{visibility:visible}
.turn-icon:focus-visible{outline:3px solid var(--blue,#224ce0);outline-offset:2px}
.notation-key dl>div:has(dt .turn-icon){align-items:center}
.trick-sheet:has(.turn-icon) .notation-key dl>div{grid-template-columns:94px minmax(0,1fr)}

/* Hand contacts replace memorized codes with the exact hand and finger. */
.hand-part-icon{display:inline-block;width:30px;height:30px;margin:0 2px;color:var(--blue,#224ce0);vertical-align:-9px;line-height:1}
.hand-part-icon svg{display:block;width:100%;height:100%;overflow:visible}
.hand-palm,.hand-digit{fill:#fff;stroke:currentColor;stroke-width:1.45;vector-effect:non-scaling-stroke}
.hand-wrist{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.hand-palm.is-active,.hand-digit.is-active{fill:var(--coral,#ed513a);stroke:var(--coral,#ed513a)}
.hand-wrist.is-active{stroke:var(--coral,#ed513a);stroke-width:3}
.notation-key dl>div:has(.hand-part-icon){align-items:center}
.notation-key .hand-part-icon{width:38px;height:38px;margin:0;vertical-align:middle}
.trick-sheet:has(.hand-part-icon) .notation-key dl>div{grid-template-columns:52px minmax(0,1fr)}
@media print{.turn-tip{display:none!important}}
