/* Tools and guides portals: use available width; allow natural wrapping at smaller widths. */
.hk-home .hk-catalog-heading{max-width:none}
.hk-home .hk-catalog-heading h1{max-width:100%;overflow-wrap:normal;word-break:normal}
.hk-guide-index .hk-learning-paths>p{max-width:none}

/* One heading scale for the two catalogues; the home remains slightly larger. */
.hk-home .hk-catalog-heading h1,.hk-guide-index .hk-guide-launch h1{font-size:clamp(2rem,3.6vw,3rem);line-height:1.18;max-width:none;letter-spacing:-.025em;margin:12px 0 16px;text-wrap:wrap}
.hk-home .hk-catalog-heading .tool-intro,.hk-guide-index .hk-guide-launch .tool-intro{font-size:1rem;line-height:1.65;max-width:none;margin:0 0 22px}
.hk-guide-index .hk-learning-paths>h2,.hk-guide-index .hk-guide-library-heading h2,.hk-home .hk-catalog-page .library-heading h2{font-size:1.375rem;line-height:1.35}
.hk-guide-index .hk-learning-grid h3{font-size:1.1rem;line-height:1.4;text-wrap:balance}
.hk-guide-index .hk-guide-library-heading{flex-wrap:wrap;align-items:center;gap:.6rem 1rem;scroll-margin-top:1rem}
.hk-guide-index .hk-guide-library-heading h2{margin:0}
.hk-guide-index #guide-view-toggle{min-height:44px;margin-left:auto;white-space:normal;font-size:.85rem}
.hk-guide-index .guide-topic-directory{margin:1.1rem 0 2rem;padding:1.25rem;border:1px solid #344e59;border-radius:12px;background:#152229}
.hk-guide-index .guide-topic-directory h3{font-family:var(--font-body);font-size:1.1rem;line-height:1.4;margin:0 0 .4rem}
.hk-guide-index .guide-topic-directory>p{margin:0 0 1rem;color:var(--text-muted);font-size:.9rem;line-height:1.6}
.hk-guide-index .guide-topic-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.65rem}
.hk-guide-index .guide-topic-options button{display:flex;justify-content:space-between;align-items:center;gap:.8rem;min-width:0;min-height:64px;padding:.8rem 1rem;text-align:left;border:1px solid #38525c;border-radius:8px;background:#101d23;color:var(--text);font:inherit;cursor:pointer}
.hk-guide-index .guide-topic-options button:hover{background:#1a3038;border-color:#76d5d0}
.hk-guide-index .guide-topic-options button span:first-child{font-size:.9rem;line-height:1.5;font-weight:600}
.hk-guide-index .guide-topic-options button span:last-child{flex-shrink:0;min-width:1.7rem;padding:.15rem .35rem;border-radius:5px;color:#b9d7dd;background:#20343d;font-size:.8rem;text-align:center}
.hk-guide-index .guide-topic-options button:focus-visible,.hk-guide-index #guide-view-toggle:focus-visible{outline:2px solid #8be0d7;outline-offset:3px}
.hk-guide-index .guide-topic-directory[hidden]{display:none}
.hk-guide-index .guide-categories>.guide-topic{scroll-margin-top:1rem}
.hk-guide-index .guide-categories .catalog-title,.hk-home .hk-catalog-page .catalog-title{line-height:1.45}
@media(max-width:800px){.hk-guide-index .guide-topic-options{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.hk-guide-index .guide-topic-options{grid-template-columns:1fr}.hk-guide-index .guide-topic-directory{padding:1rem}.hk-guide-index #guide-view-toggle{margin-left:0}.hk-guide-index .hk-guide-library-heading>span{margin-left:auto}}
