/* M03 learning pages; route content remains editable in native WordPress blocks. */
.wbh-learning-page.wbh-m03 { min-width: 0; padding-block: clamp(2.25rem, 5vw, 4rem) clamp(3.5rem, 6vw, 5rem); }
.wbh-learning-page .wbh-learning-article { width: 100%; max-width: 860px; min-width: 0; margin-inline: auto; }
.wbh-learning-page .wbh-learning-header { margin: 0 0 2rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--wbh-line, #dce5e4); }
.wbh-learning-page .wbh-learning-back { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; margin-bottom: .85rem; color: var(--wbh-muted, #62737a); font-size: .85rem; text-decoration: none; overflow-wrap: anywhere; }
.wbh-learning-page .wbh-learning-header .wbh-learning-title { margin: 0; font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 700; line-height: 1.35; letter-spacing: -.035em; overflow-wrap: anywhere; }
.wbh-learning-page .wbh-learning-content { width: 100%; min-width: 0; max-width: 800px; }
.wbh-learning-page .wbh-m03-route { padding: 0; }
.wbh-m03-route { width: 100%; min-width: 0; max-width: 100%; margin: 0; font-size: 1rem; line-height: 1.95; overflow-wrap: anywhere; }
.wbh-m03-route .wp-block-group { min-width: 0; max-width: 100%; }
.wbh-m03-route > :first-child,
.wbh-m03-route > .wp-block-group__inner-container > :first-child { margin-top: 0; }
.wbh-m03-route h2 { margin: 2.2rem 0 .85rem; padding-bottom: .65rem; border-bottom: 1px solid var(--wbh-line, #dce5e4); font-size: clamp(1.45rem, 3vw, 1.8rem); font-weight: 700; line-height: 1.45; scroll-margin-top: 1.5rem; }
.wbh-m03-route h3 { margin: 1.6rem 0 .7rem; font-size: 1.2rem; font-weight: 650; line-height: 1.5; scroll-margin-top: 1.5rem; }
.wbh-m03-route :is(p, ul, ol, figure, blockquote) { margin: 0 0 1.3rem; }
.wbh-m03-route :is(ul, ol) { padding-left: 1.5em; }
.wbh-m03-route li + li { margin-top: .5rem; }
.wbh-m03-route li > :is(ul, ol) { margin-block: .6rem; }
.wbh-m03-route a { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; color: var(--wbh-ink, #102c36); text-decoration-thickness: 1px; overflow-wrap: anywhere; }
.wbh-m03-route a:hover { color: var(--wbh-blue, #005bee); }
.wbh-m03-route .wp-block-buttons { flex-wrap: wrap; gap: .75rem; margin-block: 1.3rem; }
.wbh-m03-route .wp-block-button { min-width: 0; max-width: 100%; }
.wbh-m03-route .wp-block-button .wp-block-button__link { min-height: 46px; max-width: 100%; padding: .75rem 1.2rem; border-radius: 999px; font-size: .9rem; line-height: 1.55; overflow-wrap: anywhere; }
.wbh-m03-route :is(.alignwide, .alignfull) { width: 100%; max-width: 100%; margin-inline: 0; }
.wbh-m03-route :is(img, video, iframe) { max-width: 100%; height: auto; }
.wbh-m03-route blockquote { margin-inline: 0; padding: 1rem 1.2rem; border-left: 3px solid var(--wbh-accent, #59a8b4); background: #eaf2f2; color: var(--wbh-muted, #62737a); }
.wbh-m03-route blockquote > :last-child { margin-bottom: 0; }
.wbh-m03-route code { padding: .12em .35em; border-radius: 4px; background: #eaf0ef; font-family: Consolas, "SFMono-Regular", monospace; font-size: .9em; overflow-wrap: anywhere; }
.wbh-m03-route pre { min-width: 0; max-width: 100%; margin: 0 0 1.3rem; padding: 1.2rem; overflow-x: auto; border: 1px solid var(--wbh-line, #dce5e4); border-radius: 8px; background: #eaf0ef; line-height: 1.7; white-space: pre; overflow-wrap: normal; }
.wbh-m03-route pre code { padding: 0; background: transparent; white-space: inherit; overflow-wrap: normal; }
.wbh-m03-route .wp-block-table { min-width: 0; max-width: 100%; overflow-x: auto; }
.wbh-m03-route table { max-width: 100%; border-collapse: collapse; font-size: .9rem; }
.wbh-learning-page .wbh-learning-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 2rem; }
.wbh-learning-page .wbh-learning-pagination .post-page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: .4rem .85rem; border: 1px solid var(--wbh-line, #dce5e4); border-radius: 7px; text-decoration: none; }
.wbh-learning-page a:focus-visible,
.wbh-m03-route a:focus-visible { outline: 3px solid var(--wbh-blue, #005bee); outline-offset: 3px; }
@media (max-width: 580px) {
    .wbh-learning-page .wbh-learning-header { margin-bottom: 1.6rem; padding-bottom: 1.2rem; }
    .wbh-m03-route h2 { margin-top: 1.8rem; }
    .wbh-m03-route .wp-block-button .wp-block-button__link { padding-inline: 1rem; }
    .wbh-m03-route pre { padding: 1rem; }
}
