/* HertzKit fix47: shared page frame, independent of tool-specific grids. */
:root{--hk-page-width:1160px;--hk-page-gutter:20px}
body .site-header>.wrap,body .site-footer>.wrap,
body main>.wrap,body main.wrap{
 width:100%;max-width:var(--hk-page-width)!important;
 margin-left:auto;margin-right:auto;
 padding-left:var(--hk-page-gutter);padding-right:var(--hk-page-gutter);
}
/* Learning blocks inserted inside an existing wrap must not add a second gutter. */
body main .wrap .wrap{width:100%;max-width:none;margin-left:0;margin-right:0;padding-left:0;padding-right:0}
body main.wrap{padding-top:48px;padding-bottom:72px}
body.hk-reading main,body.hk-tool main{padding-top:48px}
body.hk-reading h1,body.hk-tool h1{
 font-size:clamp(2rem,4vw,3rem);line-height:1.15;
 letter-spacing:-.035em;overflow-wrap:break-word;
}
/* Articles use the available width of the shared page frame. */
body.hk-guide .guide-body,body.hk-guide .guide-content,
body.hk-policy .legal-body{max-width:none;margin:32px 0;line-height:1.85}
body.hk-reading main h1{max-width:none}
body.hk-reading .tool-intro{line-height:1.7}
body.hk-tool .tool-intro{max-width:none;line-height:1.7}
body.hk-tool .tool-header{max-width:none}
/* Examples and FAQs use the tool frame; card padding remains intentional. */
body.hk-tool main .hk-tool-learning{width:100%;max-width:none}
body.hk-tool main .hk-tool-learning p,body.hk-tool main .help-block :where(p,ul,ol){max-width:none}
/* Reading blocks fill the same frame as the site header and footer. */
body:is(.hk-guide,.hk-policy,.hk-about,.hk-contact) main>.wrap>:not(script):not(style),
body:is(.hk-guide,.hk-policy,.hk-about,.hk-contact) main.wrap>:not(script):not(style){
 width:100%;max-width:none;margin-left:0;margin-right:0;
}
body.hk-about main>.wrap>p,body.hk-about main>.wrap>section p{max-width:none}
body.hk-contact main>.wrap>.tool-panel{max-width:none;margin-left:0;margin-right:0}
/* Intrinsic component caps (gauge, history, piano, etc.) remain in their own CSS. */
body main :where(.controls-row,.pro-actions,.practice-actions){row-gap:12px}
/* Width is explicit: inline-size containment otherwise collapses in flex rows. */
body .controls-row>.mic-level-panel{width:100%;max-width:100%;min-width:0;text-align:left}
@media(max-width:700px){
 body.hk-reading main,body.hk-tool main,body main.wrap{padding-top:28px}
 body.hk-reading h1,body.hk-tool h1{font-size:clamp(1.85rem,6vw,2.5rem)}
}
@media(max-width:360px){:root{--hk-page-gutter:16px}}

/* Shared reading column; catalogs and tool workspaces keep their wide frame. */
:root{--hk-reading-width:820px}
body:is(.hk-guide,.hk-policy,.hk-about,.hk-contact) main>.wrap,
body:is(.hk-guide,.hk-policy,.hk-about,.hk-contact) main.wrap{
 max-width:var(--hk-reading-width)!important;
}

.hk-guide-return{box-sizing:border-box;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.45rem 1rem;max-width:100%;margin:0 0 1rem;padding:.7rem .9rem;border:1px solid #38505a;border-radius:8px;background:#18282f;font-size:.9rem;line-height:1.45}.hk-guide-return span{flex:1 1 240px;min-width:0;overflow-wrap:anywhere;color:#cfdee3}.hk-guide-return a{display:inline-flex;align-items:center;min-height:44px;font-weight:600;white-space:normal}
