/* Shared reading rhythm; instrument controls retain their existing layout. */
.tap-guide.guide{display:block}
.tap-introduction,.tap-guide{max-width:760px;margin:0 auto 28px;line-height:1.7;color:var(--mist)}
.tap-introduction{font-size:14px}.tap-guide{margin-top:40px}.tap-guide h2,.reading-guide h2{font-size:clamp(21px,3vw,28px);line-height:1.3;margin:38px 0 16px;color:var(--felt)}
.tap-guide p,.reading-guide p{margin:16px 0}.tap-guide li{margin:12px 0}.tap-guide ol{padding-left:24px}
.tempo-example{margin:24px 0;padding:24px;border:1px solid #ffffff25;border-radius:16px}.tempo-example button{min-height:48px;white-space:normal}.tempo-example p{font-size:13px;margin-bottom:0}
.reading-guide{padding-bottom:64px}.reading-guide article{max-width:700px;margin:32px auto 0;font-size:17px;line-height:1.8;color:var(--mist)}
.reading-guide h1{font-size:clamp(32px,5vw,48px);line-height:1.16;letter-spacing:-.03em;color:var(--felt);margin-bottom:28px}.reading-guide h3{font-size:20px;line-height:1.4;color:var(--felt);margin:28px 0 12px}
.reading-guide article a,.tap-guide a{text-decoration:underline;text-underline-offset:4px;color:var(--foot)}.reading-guide strong,.tap-guide strong{color:var(--felt)}
.reading-guide figure{margin:32px 0}.reading-guide figure img{display:block;width:100%;height:auto;border:0;border-radius:0}.reading-guide figcaption{font-size:13px;line-height:1.5;margin-top:10px}
.guide-table{overflow:auto} .guide-table table{width:100%;border-collapse:collapse}.guide-table th,.guide-table td{text-align:left;padding:12px;border-bottom:1px solid #ffffff25}
.reading-guide a:focus-visible,.tap-guide a:focus-visible,.tempo-example button:focus-visible{outline:2px solid var(--foot);outline-offset:4px}
@media(max-width:760px){.tap-introduction{font-size:13px;line-height:1.5;margin-bottom:20px}.reading-guide article{font-size:16px}.tempo-example{padding:18px}.reading-guide h1{overflow-wrap:break-word}}

/* Bilingual collection reached from Free tools; tool workspaces remain separate. */
.guides-intro{max-width:760px;padding:28px 0 48px}.guides-intro h1{font-size:clamp(34px,5vw,56px);line-height:1.14;letter-spacing:-.03em}.guides-intro>p{font-size:18px;line-height:1.7;margin-top:20px;max-width:55ch}
.guides-directory{border-top:1px solid var(--line);padding:32px 0 48px;display:grid;grid-template-columns:minmax(160px,1fr) minmax(0,2.5fr);gap:40px}.guides-directory>h2{font-size:16px;color:var(--mist);line-height:1.5}.guide-entry{max-width:700px}.guide-topic{font-size:13px;color:var(--foot);margin-bottom:14px}.guide-entry h3{font-size:clamp(25px,3vw,36px);line-height:1.25;margin-bottom:18px}.guide-entry h3 a{color:var(--felt);text-decoration:none}.guide-entry h3 a:hover{text-decoration:underline;text-underline-offset:5px}.guide-entry>p:not(.guide-topic){font-size:16px;line-height:1.8;max-width:57ch}.guide-entry-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px 28px;margin-top:28px}.guide-related-tool,.guides-tools>a{display:inline-flex;align-items:center;min-height:44px;color:var(--foot);text-underline-offset:4px}.guides-tools{border-top:1px solid var(--line);padding:32px 0 48px}.guides-tools h2{font-size:24px;margin-bottom:12px}.guides-tools p{margin-bottom:12px}.guides-hub a:focus-visible{outline:2px solid var(--foot);outline-offset:4px}
@media(max-width:760px){.guides-intro{padding:16px 0 32px}.guides-intro>p{font-size:16px}.guides-directory{grid-template-columns:1fr;gap:24px;padding:24px 0 32px}.guide-entry-actions{gap:12px 20px}}
/* The collection lives under Free tools in both languages. */
.guide-group-items{display:grid;gap:40px;min-width:0}.guide-entry+.guide-entry{padding-top:32px;border-top:1px solid var(--line)}
.guide-next{margin-top:40px;padding-top:24px;border-top:1px solid var(--line)}.guide-next a{display:inline-flex;align-items:center;min-height:44px;margin-right:24px}.guide-open-tool a{display:inline-flex;align-items:center;min-height:44px}
.reading-guide article li{margin:12px 0}.reading-guide h1{overflow-wrap:anywhere}.breadcrumbs{flex-wrap:wrap}

/* Task-led reading: answer first, optional section jumps, then evidence in context. */
.reading-guide .guide-lead{font-size:19px;line-height:1.75;color:var(--felt)}
.reading-guide .guide-open-tool .site-cta{text-decoration:none;color:#042530;margin:4px 0 12px}
.guide-contents{display:flex;flex-direction:column;align-items:flex-start;gap:0;border-block:1px solid var(--line);padding:12px 0;margin:24px 0 36px;font-size:14px}
.guide-contents a{display:inline-flex;align-items:center;min-height:44px;text-decoration:none!important;line-height:1.5}
.guide-contents a:hover{text-decoration:underline!important}
.reading-guide h2[id]{scroll-margin-top:110px}.reading-guide article ol,.reading-guide article ul{padding-left:24px}
.guide-image-link{display:block;cursor:zoom-in}.guide-image-link:focus-visible{outline:2px solid var(--foot);outline-offset:4px}
.reading-guide figcaption{color:var(--mist);font-size:14px;line-height:1.65}
.guide-entry{display:grid;grid-template-columns:160px minmax(0,1fr);gap:24px;max-width:none;align-items:start}
.guide-thumbnail{display:block;overflow:hidden;background:var(--ink)}
.guide-thumbnail img{width:100%;height:auto;max-height:150px;object-fit:cover;object-position:top;display:block}
.guide-entry h3{font-size:clamp(22px,2.5vw,28px);margin-bottom:12px}.guide-entry-copy>p{font-size:15px;line-height:1.75}.guide-topic{margin-bottom:8px}.guide-entry-actions{margin-top:16px}
@media(max-width:760px){.reading-guide .guide-lead{font-size:18px}.guide-entry{grid-template-columns:120px minmax(0,1fr);gap:18px}.guide-entry-actions .site-cta{font-size:14px}}
@media(max-width:430px){.guide-entry{grid-template-columns:1fr;gap:18px}.guide-thumbnail{max-width:220px}.guide-thumbnail img{max-height:140px}.reading-guide h1{font-size:32px}.guide-table{font-size:14px}.guide-table th,.guide-table td{padding:10px 8px}.guide-entry-actions{gap:8px 20px}}

/* Image inspection stays in context; controls remain visible while panning. */
.guide-image-viewer{position:fixed;inset:0;width:min(1200px,calc(100% - 24px));height:calc(100dvh - 24px);max-width:none;max-height:none;margin:auto;padding:16px;border:1px solid #ffffff30;border-radius:16px;background:#101416;color:var(--felt);overflow:hidden}
.guide-image-viewer[open]{display:flex;flex-direction:column;gap:12px}
.guide-image-viewer::backdrop{background:#000d}
.image-viewer-toolbar{display:flex;justify-content:flex-end;gap:8px;flex:none}
.image-viewer-toolbar button{font:inherit;font-size:14px;min-width:44px;min-height:44px;padding:8px 18px;border:1px solid #ffffff40;border-radius:9px;background:transparent;color:inherit;cursor:pointer}
.image-viewer-toolbar button:last-child{background:var(--felt);color:#040404;border-color:transparent}
.image-viewer-toolbar button:disabled{opacity:.45;cursor:wait}
.image-viewer-toolbar button:focus-visible,.image-viewer-stage:focus-visible{outline:2px solid var(--foot);outline-offset:2px}
.image-viewer-stage{flex:1;min-height:0;min-width:0;display:flex;align-items:center;justify-content:center;overflow:auto;overscroll-behavior:contain;border-radius:8px;background:#040404}
.image-viewer-stage img{display:block;max-width:100%;max-height:100%;object-fit:contain;flex:none}
.image-viewer-stage img[hidden]{display:none}
.image-viewer-stage.is-zoomed{display:block}
.image-viewer-stage.is-zoomed img{max-width:none;max-height:none;height:auto;margin:auto}
.image-viewer-caption{flex:none;max-height:5em;overflow:auto;font-size:14px;line-height:1.5;color:var(--mist);margin:0}
@media(max-width:430px){.guide-image-viewer{width:100%;height:100dvh;margin:0;padding:12px 12px max(12px,env(safe-area-inset-bottom));border-radius:0;border:0}.image-viewer-caption{font-size:13px}}

/* Same primary link style and reading-entry rhythm throughout the collection. */
.reading-guide .guide-open-tool .site-cta{color:#040404}
@media(max-width:760px){.guide-entry-actions .site-cta{font-size:16px}}
