/* Additions for the live program. Approved prototype design is in the unchanged base.css. */
.brand-mark img{display:block;width:100%;height:100%;object-fit:contain}.account-link{font-size:15px;white-space:nowrap}
.header-right{min-width:0}.header-right .search-open{min-width:0}.header-right .search-open span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.draft-banner{display:flex;justify-content:center;align-items:center;gap:20px;padding:12px 24px;background:#fff5d8;border-bottom:1px solid #ead58d;color:#775818;font-size:14px}
.wrap-code{white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal}.code-block button{color:#b3d0ff}.lesson-figure img{height:auto;max-width:100%}
.directory-pending{color:#8998ac!important;cursor:default}.course-nav-item.directory-pending small{font-size:11px;margin-left:auto;color:#9aa6b5}

.pagination{display:flex;gap:10px;justify-content:center;margin:35px}.pagination a{min-width:42px;padding:6px 12px;border:1px solid #dce6f5;border-radius:8px;text-align:center}.pagination .selected{background:var(--blue);color:white;border-color:var(--blue)}
.pill-filters a{display:inline-flex;padding:8px 18px;border:1px solid #e3eaf5;border-radius:24px;color:#53657e;font-size:16px}.pill-filters a.selected{background:var(--blue);color:white;border-color:var(--blue)}
.search-list{display:grid;gap:12px}.search-result{display:block;border:1px solid #e3eaf5;padding:22px;border-radius:12px}.search-result p{font-size:15px;color:#61728b;margin:8px 0}.search-result.unavailable{background:#f7f8fa;color:#768396;border-style:dashed;cursor:default}.search-result.unavailable strong{color:#768396}.search-result.unavailable p{color:#7b8797}
.product-facts{padding:28px;background:#f5f8fd;border:1px solid #e2eaf6;border-radius:16px;margin-bottom:40px}.product-facts dl{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.product-facts dt{color:#72839a;font-size:14px}.product-facts dd{margin:5px 0;font-size:17px}
.account-panel{max-width:620px;border:1px solid #e0e8f3;border-radius:16px;padding:32px;margin:30px auto 80px}.account-panel label{display:block;margin-top:20px}.account-panel input{display:block;width:100%;padding:12px;border:1px solid #cedbef;border-radius:8px;font:inherit}.account-panel .hero-actions{margin-top:24px;gap:12px}
.button.primary{color:white}.dialog-head input{min-width:0}.course-badge{overflow-wrap:anywhere}.catalog-content .list-search{margin-bottom:24px}
.tool-workspace{border:1px solid #dce5f3;border-radius:15px;overflow:hidden;margin:28px 0}.tool-toolbar{display:flex;gap:12px;padding:18px;background:#f7faff;flex-wrap:wrap;align-items:center}.tool-toolbar label{font-size:14px;display:flex;gap:8px;align-items:center}.tool-toolbar input,.tool-toolbar select{padding:8px;border:1px solid #ccdaee;border-radius:6px}.tool-panes{display:grid;grid-template-columns:1fr 1fr}.tool-pane{padding:18px;min-width:0}.tool-pane+ .tool-pane{border-left:1px solid #e3eaf5}.tool-pane>label{display:block;font-size:15px;font-weight:600;margin-bottom:10px}.tool-pane textarea{width:100%;min-height:370px;resize:vertical;border:1px solid #dce5f3;border-radius:9px;padding:18px;font:15px/1.8 Consolas,monospace;color:#263c5e;white-space:pre-wrap;overflow-wrap:anywhere}.tool-result-actions{display:flex;gap:16px;margin-bottom:12px}.tool-result-actions button{color:#2563eb;font-size:14px}.tool-status-error{color:#bb2835}.regex-options{display:flex;gap:12px;flex-wrap:wrap}.regex-options label{display:flex;align-items:center;gap:8px}.regex-options input{font:16px Consolas,monospace}.regex-options input[name=pattern]{min-width:280px}.try-page .learning-toolbar{gap:12px}.try-page .learning-toolbar>div:last-child{display:flex;gap:8px;flex-wrap:wrap}.source-tabs button{padding:9px 14px;border-radius:6px;font-size:14px}.source-tabs button[aria-selected=true]{background:#e4eeff;color:#205ede}.try-page .editor-label textarea{white-space:pre-wrap;overflow-wrap:anywhere;font:15px/1.8 Consolas,monospace}.try-page .preview-stage iframe{background:#fff;width:100%;height:100%;border:0}.try-page .run-status{font-size:14px}.try-page .preview-toolbar{font-size:14px}.dialog-head input{min-width:0}
@media(max-width:1200px){.header-right .search-open span{display:none}}
@media(max-width:900px){.tool-panes{grid-template-columns:1fr}.tool-pane+ .tool-pane{border-left:0;border-top:1px solid #e3eaf5}.product-facts dl{grid-template-columns:1fr 1fr}}
@media(max-width:760px){.account-link{font-size:14px}.header-right{gap:8px}.search-open kbd,.saved-link{display:none}.draft-banner{display:block;text-align:center}.draft-banner span{display:block}.tool-pane textarea{min-height:260px}.product-facts dl{grid-template-columns:1fr}.account-panel{padding:22px}.course-badge{display:none}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{animation:none!important;transition:none!important}}
[hidden]{display:none!important}

.large-search .search-submit{flex-shrink:0;white-space:nowrap;border:1px solid var(--line);border-radius:4px;padding:3px 8px;font-size:12px;color:var(--muted);background:#fafbfd}.list-search .search-submit{white-space:nowrap;flex-shrink:0;color:var(--blue);padding:8px 12px}

/* Functional bindings in the copied prototype; no page typography/geometry overrides. */
.prototype-search-submit{flex-shrink:0;white-space:nowrap;border:1px solid var(--line);border-radius:4px;background:#fafbfd;color:var(--muted);font-size:12px;padding:3px 8px}
.workspace-toolbar label{display:inline-flex;gap:6px;align-items:center;font-size:13px}.workspace-toolbar input:not([type=checkbox]){border:1px solid var(--line);border-radius:5px;padding:6px;max-width:250px}.output-label>button{white-space:nowrap}.workspace-toolbar>div{flex-wrap:wrap}

.empty-state{grid-column:1/-1}

/* Requested tutorial navigation and bookmark controls, on the original page layout. */
.course-nav-controls{display:flex;justify-content:space-between;gap:8px;padding:0 8px 9px}.course-nav-controls button{padding:4px 6px;color:#3867b5;font-size:12px;border-radius:5px}.course-nav-controls button:hover{background:#eef4ff}.course-nav-controls button:focus-visible,.course-nav-section>summary:focus-visible{outline:2px solid #2563eb;outline-offset:-2px}
.course-nav-section{border-top:1px solid #edf1f7}.course-nav-section>summary{display:flex;align-items:center;gap:6px;padding:12px 9px;margin:0;list-style:none;background:#fff;color:#526984;font-size:13px;font-weight:650;letter-spacing:0}.course-nav-section>summary::-webkit-details-marker{display:none}.course-nav-section>summary>span{flex:1}.course-nav-section>summary>small{margin:0;font-size:11px;color:#8b9bb0;font-weight:400}.course-nav-section>summary>svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;flex:none;transform:rotate(-90deg);transition:transform .15s}.course-nav-section[open]>summary>svg{transform:rotate(0)}.course-nav-section[open]>summary{color:#245bc7;background:#f8faff}.course-nav-items{padding-bottom:7px}
.saved-entry{display:inline-flex;align-items:center;gap:7px;border:1px solid #d6e4fc;background:#f1f6ff;color:#245bc7;padding:8px 12px;border-radius:9px;white-space:nowrap;font-size:14px;font-weight:650}.saved-entry .icon{width:18px;height:18px}.saved-entry:hover{background:#e6efff}.button.bookmark-button{display:inline-flex;align-items:center;gap:8px;padding:10px 16px;border:1px solid #bcd2fb;border-radius:9px;background:#edf4ff;color:#245bc7;font-size:14px;font-weight:650;white-space:nowrap}.bookmark-button .icon{width:18px;height:18px}.button.bookmark-button:hover{background:#dfeaff}.button.bookmark-button.is-saved{background:#2563eb;border-color:#2563eb;color:#fff}.bookmark-button.is-saved .icon{fill:currentColor}.bookmark-button:focus-visible,.saved-entry:focus-visible{outline:2px solid #2563eb;outline-offset:3px}
.lesson-figure>a{width:fit-content;max-width:100%;margin-inline:auto}.lesson-figure img{width:auto;max-width:100%;height:auto;margin-inline:auto}
@media(max-width:760px){.saved-entry{gap:5px;padding:7px 9px;font-size:13px}.saved-entry .icon{width:16px;height:16px}.article-meta .bookmark-button{padding:8px 12px}.header-right{gap:7px}}

/* Shared flow fixes: contain long text and code in their own column at every width. */
main .container,main .container>*,.lesson-body,.article-body,.course-main,.course-overview,.course-overview>*,.reading-layout>*,.tool-pane,.workspace-pane,.tool-title-row>div,.prev-next>a,.search-result{min-width:0}
main :is(h1,h2,h3,h4,p,li,dt,dd,figcaption,summary),.crumb a,.course-nav-item,.course-example-item,.toc a,.search-result strong{overflow-wrap:anywhere;word-break:normal}
.crumb{flex-wrap:wrap;row-gap:6px}.crumb>a,.crumb-current{min-width:0}.hero-actions,.article-meta,.code-actions,.tool-toolbar,.preview-toolbar{flex-wrap:wrap;row-gap:10px}.hero-actions .button,.article-meta .button{white-space:normal;line-height:1.6}.code-actions{display:flex;align-items:center;gap:12px}.code-actions button{white-space:nowrap;flex:none}.code-block{min-width:0;max-width:100%}.code-block pre{max-width:100%;overflow:auto;tab-size:2}.code-block pre.wrap-code{white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal}.code-block pre.wrap-code>code{white-space:inherit;overflow-wrap:inherit;word-break:inherit}.code-block pre:not(.wrap-code){white-space:pre;overflow-wrap:normal}.code-block pre:not(.wrap-code)>code{white-space:inherit;overflow-wrap:inherit}.table-scroll{max-width:100%;overflow-x:auto}.table-scroll :is(td,th){overflow-wrap:anywhere;white-space:normal}.lesson-body :is(img,video,iframe),.article-body :is(img,video,iframe){max-width:100%}.chapter-row>span,.chapter-row>.icon{flex-shrink:0}.chapter-row>div{flex:1;min-width:0}.course-nav-item{align-items:baseline}.course-example-item{min-width:0}.search-result{white-space:normal;overflow-wrap:anywhere}.search-result>strong,.search-result>p{white-space:normal}.environment-line{white-space:normal;overflow-wrap:anywhere}
.large-search input{min-width:0;flex:1}.large-search>.button{flex-shrink:0;white-space:nowrap}.pagination{flex-wrap:wrap;margin-inline:0}.workspace-toolbar>div{min-width:0}.workspace-toolbar label{max-width:100%}.workspace-toolbar input:not([type=checkbox]){min-width:0;max-width:100%}
@media(max-width:760px){.prev-next{flex-direction:column}.prev-next a:last-child{text-align:left}.tool-toolbar input,.regex-options input[name=pattern]{min-width:0;max-width:100%}.tool-toolbar label{max-width:100%;flex-wrap:wrap}.product-facts{padding:20px}.article-meta{align-items:center;gap:10px}.code-block>div{gap:8px;padding:10px 12px}.code-actions{gap:10px}.tool-title-row h1{overflow-wrap:anywhere}.header-inner>.brand{min-width:0;flex-shrink:1}.header-right{flex-shrink:0}.member-page-links{gap:12px}}
@media(max-width:360px){.header .header-inner{width:calc(100% - 24px);gap:8px}.header-inner>.brand{flex:0 0 auto;gap:7px;font-size:17px}.header-inner>.brand small{display:none}.header .brand-mark{width:28px;height:28px;flex:none}.header-right{gap:4px}.header-right .icon-button{width:30px;height:30px;padding:6px}.header-right .search-open{width:30px;height:30px;padding:6px}.header-right .saved-entry{font-size:12px;padding:6px 7px;gap:4px}.header-right .account-link{font-size:12px;max-width:62px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.topic-rail{flex-wrap:wrap;gap:8px}.topic-rail>a{flex:0 0 auto;white-space:nowrap}.topic-rail>span{flex-basis:100%}}

.language-switch{position:relative;font-size:13px}.language-switch summary{cursor:pointer;color:var(--muted)}.language-switch>div{position:absolute;right:0;top:100%;background:#fff;padding:12px;box-shadow:0 5px 18px #25345122;z-index:20;min-width:130px;border-radius:10px}.language-switch a{display:block;padding:7px}

.ai-product-icon{display:block;width:40px;height:40px;object-fit:contain;border-radius:8px;background:#fff}.tool-logo:has(.ai-product-icon){background:transparent}

/* Compact directory groups override generic details cards only inside the course sidebar. */
.course-directory{padding:0}.course-directory .course-nav-content{padding:9px}.course-directory .course-nav-list{padding:1px 4px 1px 0;border:0;border-radius:0;background:transparent}
.course-directory>summary{display:flex;align-items:center;gap:8px;padding:14px 12px;list-style:none;font-size:13px;line-height:1.6}.course-directory>summary::-webkit-details-marker{display:none}.course-directory>summary>small{flex:none;margin:0;white-space:nowrap;font-size:11px}.course-directory>summary::after{content:"";flex:none;width:6px;height:6px;margin-left:auto;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(-45deg)}.course-directory[open]>summary::after{transform:rotate(45deg)}
.course-directory .course-nav-section{padding:0;margin:0 0 9px;border:1px solid #e5ebf5;border-radius:9px;background:#fff;overflow:hidden;font-size:13px}
.course-directory .course-nav-section:last-child{margin-bottom:0}
.course-directory .course-nav-section>summary{min-height:44px;padding:11px 12px;gap:9px;line-height:1.6;background:#f8faff;font-size:13px;cursor:pointer}
.course-directory .course-nav-section>summary>span{min-width:0;flex:1;font-weight:650}
.course-directory .course-nav-section>summary>small{flex:none;white-space:nowrap;color:#8b9bb0;font-size:11px}
.course-directory .course-nav-section>summary>svg{width:15px;height:15px;flex:none}
.course-directory .course-nav-section[open]>summary{border-bottom:1px solid #e9eff9;background:#eef4ff;color:#245bc7}
.course-directory .course-nav-items{padding:5px}
.course-directory .course-nav-item{gap:8px;padding:9px 8px;border-radius:6px;font-size:12px;line-height:1.7}
.course-directory .course-nav-item>span:first-child{width:20px;flex:0 0 20px;font-size:10px}
.button.complete-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 16px;border:1px solid #d8e2f0;border-radius:9px;background:#fff;color:#607591;font-size:14px;font-weight:650;white-space:nowrap}
.complete-button .icon{width:18px;height:18px;flex:none}.button.complete-button:hover{background:#f2f8f6;border-color:#acd7c6;color:#21845c}.button.complete-button.is-complete{background:#eaf7f0;border-color:#9ed4b8;color:#21845c}.complete-button:focus-visible{outline:2px solid #26855e;outline-offset:3px}
.article-meta .button.bookmark-button,.article-meta .button.complete-button{height:44px;box-sizing:border-box}.complete-button [data-complete-label]{font:inherit;color:inherit}
@media(max-width:600px){.reading-main .article-header .article-meta:has([data-complete])>span:first-child{flex-basis:100%;margin-bottom:1px}.reading-main .article-header .article-meta:has([data-complete]){gap:10px 12px;align-items:center}}

/* Published news image slots keep the approved card and article structure. */
.story-cover.has-image,.featured-art.has-image{position:relative;overflow:hidden}.story-cover.has-image>img,.featured-art.has-image>img{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.story-cover.has-image>:not(img),.featured-art.has-image>:not(img){display:none}.article-visual:has(>img){display:flex;align-items:center;justify-content:center;background:#f5f8fc;overflow:hidden}.article-visual>img{display:block;max-width:100%;width:auto;height:auto;object-fit:contain}.news-article-head h1{overflow-wrap:anywhere}.news-reading{min-width:0}.news-reading .prose{min-width:0;overflow-wrap:anywhere}@media(max-width:600px){.news-article-head .article-meta{flex-wrap:wrap;gap:10px}.news-article-head .article-meta .button.bookmark-button{margin-left:0}.featured-copy h2,.story-copy h3{overflow-wrap:anywhere}.featured-art.has-image{min-height:210px}}

@media(max-width:600px){.news-article-head h1{font-size:28px;line-height:1.45;margin:16px 0}.news-article-head>p{font-size:14px;line-height:1.8}}

/* Topic hub, static info pages, HTML sitemap, and footer additions. */
.footer-links{flex-wrap:wrap;row-gap:10px}
.footer-bottom{flex-wrap:wrap;gap:12px 24px}
.static-page,.topic-hub-page,.sitemap-page{padding-bottom:68px}
.static-doc{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:36px;align-items:start;margin-top:24px}
.static-article{background:#fff;border:1px solid #e3ebf6;border-radius:16px;padding:34px 38px;min-width:0}
.static-article h2{font-size:21px;line-height:1.45;color:#172a45;margin:28px 0 12px}
.static-article h2:first-child{margin-top:0}
.static-article p,.static-article li{font-size:15px;line-height:1.9;color:#4f637e}
.static-article ul{padding-left:22px;margin:10px 0 16px}
.static-article li+li{margin-top:6px}
.static-aside{display:flex;flex-direction:column;gap:18px;position:sticky;top:100px}
.static-aside-card{background:#f8faff;border:1px solid #e3ebf6;border-radius:14px;padding:22px}
.static-aside-card h3{font-size:15px;margin:0 0 12px;color:#1c3154}
.static-aside-card p{font-size:13px;line-height:1.8;color:#667a95;margin:0 0 12px}
.static-aside-links{display:flex;flex-direction:column;gap:6px}
.static-aside-links a{display:block;padding:6px 10px;border-radius:8px;font-size:13.5px;color:#3565bd;transition:background .15s,color .15s}
.static-aside-links a:hover{background:#edf4ff;text-decoration:none}
.static-aside-links a.active{background:#e7f0ff;color:#1d4ed8;font-weight:650;box-shadow:inset 3px 0 0 #2563eb}
.about-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:12px;margin:0 0 28px}
.about-metrics a{display:flex;flex-direction:column;gap:4px;padding:16px 18px;border:1px solid #e2eaf6;border-radius:12px;background:#f8fbff;text-decoration:none;transition:border-color .15s,transform .15s}
.about-metrics a:hover{border-color:#9fc0fb;transform:translateY(-1px)}
.about-metrics strong{font-size:22px;line-height:1.25;color:#1d4ed8;letter-spacing:-.02em}
.about-metrics span{font-size:12.5px;color:#627896}
.sitemap-subhead{margin:0 0 10px;font-size:13px;font-weight:650;color:#5d7392}
.contact-channel-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:12px 0 24px}
.contact-channel-card{padding:18px 20px;border:1px solid #e2eaf6;border-radius:12px;background:#f8fbff}
.contact-channel-card strong{display:block;font-size:13px;color:#5c7290;margin-bottom:6px}
.contact-channel-card p{margin:0 0 6px;font-size:15px;font-weight:600;color:#172a45}
.contact-channel-card small{display:block;font-size:12.5px;line-height:1.65;color:#7386a1}
.contact-note-box{padding:18px 22px;border:1px solid #e1ebfa;border-radius:12px;background:#f7faff}
.contact-note-box p{margin:0 0 10px}
.contact-note-box ol{margin:0;padding-left:20px}
.contact-note-box li+li{margin-top:6px}
@media(max-width:680px){.contact-channel-grid{grid-template-columns:1fr}}
.topic-group{margin-top:34px}
.topic-group-head{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:16px}
.topic-group-head h2{font-size:21px;margin:0;color:#172a45}
.topic-group-head a{font-size:13px;color:#3565bd;white-space:nowrap}
.topic-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.topic-card{display:flex;flex-direction:column;gap:8px;padding:20px 22px;background:#fff;border:1px solid #e2eaf6;border-radius:12px;transition:border-color .15s,box-shadow .15s,transform .15s}
.topic-card:hover{border-color:#a5c2f4;box-shadow:0 8px 20px rgba(30,50,90,.07);transform:translateY(-1px)}
.topic-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.topic-card-top strong{font-size:16px;color:#1b3152}
.topic-card-count{flex:none;font-size:12px;color:#3b6cd1;background:#eef4ff;padding:2px 9px;border-radius:999px}
.topic-card p{margin:0;font-size:13px;line-height:1.75;color:#7386a1}
.sitemap-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin-top:24px}
.sitemap-card{background:#fff;border:1px solid #e3ebf6;border-radius:14px;padding:24px 26px;min-width:0}
.sitemap-card h2{font-size:18px;margin:0 0 14px;color:#172a45;display:flex;align-items:center;justify-content:space-between;gap:10px}
.sitemap-card h2 a{font-size:13px;font-weight:500;color:#3565bd}
.sitemap-links{display:flex;flex-wrap:wrap;gap:9px 12px}
.sitemap-links a{display:inline-flex;align-items:center;padding:6px 12px;border-radius:8px;background:#f5f8fe;border:1px solid #e5edf9;color:#344c6e;font-size:13px;line-height:1.5}
.sitemap-links a:hover{border-color:#9fc0fb;color:#2563eb;background:#edf4ff}
.sitemap-list{margin:0;padding-left:18px;display:grid;gap:8px}
.sitemap-list a{color:#354e72;font-size:14px;line-height:1.65}
.sitemap-list a:hover{color:#2563eb}
.tag-result-meta{display:inline-block;margin-top:6px;font-size:12px;color:#627896;background:#f3f6fc;padding:2px 8px;border-radius:5px}
.search-topics{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:0 0 24px;padding:16px 20px;background:#f6f9ff;border:1px solid #e1ebfb;border-radius:12px}
.search-topics>span{font-size:13px;color:#677d9c;font-weight:600}
.search-topics a{display:inline-flex;align-items:center;gap:6px;padding:6px 13px;border-radius:999px;background:#fff;border:1px solid #d5e3fa;color:#245bc7;font-size:13px}
.search-topics a:hover{background:#edf3ff;border-color:#9fbff8}
.search-hot-chips{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:20px}
.search-hot-chips a{padding:7px 14px;border-radius:999px;background:#eef4ff;color:#295ec9;font-size:13px}
.search-hot-chips a:hover{background:#dfeaff}
.search-mark{background:#fef08a;color:#1e293b;padding:0 2px;border-radius:3px}
@media(max-width:960px){.static-doc{grid-template-columns:1fr}.static-aside{position:static}.topic-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sitemap-grid{grid-template-columns:1fr}}
@media(max-width:600px){.static-article{padding:22px}.topic-card-grid{grid-template-columns:1fr}}

/* Site-wide visual declutter: hide repetitive mastheads/eyebrows while preserving semantic h1 for SEO/a11y. */
.sr-only,
.page-mast:not(.status-mast):not(.compact-mast),
.category-mast{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.eyebrow:not(.keep-eyebrow),.try-kicker,.site-search-top>div>span,.tools-hints,.learning-cta .tag,.course-badge>small,.editorial-note{display:none!important}
.crumb{padding:16px 0 14px}
.page-mast.compact-mast{padding:2px 0 18px}
.page-mast.compact-mast h1{font-size:24px;line-height:1.4;margin:0;color:#172a45}
.page-mast.compact-mast p{font-size:14px;line-height:1.75;color:#7386a1;margin:8px 0 0;max-width:780px}
.tools-mast{text-align:left;padding:0 0 24px}
.tools-mast .large-search{margin:0;width:min(640px,100%)}
.topic-hub-page>.topic-group:first-of-type{margin-top:8px}
.sitemap-page>.sitemap-grid{margin-top:6px}
.static-page>.static-doc{margin-top:4px}
main>.container:not(.home-content)>.learning-cta{display:none}
.tool-title-row{margin-top:4px}

/* Course hero alignment & collapsible chapter source/runtime-scope sections. */
.course-directory-layout .course-hero{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:32px}
.course-directory-layout .course-hero .course-badge{justify-self:end}
.code-block pre{padding:18px 20px}
.reading-layout>.lesson-body{width:100%;max-width:100%;min-width:0}
.teaching-collapse{margin:28px 0;padding:0;border:1px solid #dce6f5;border-radius:12px;background:#fff;overflow:hidden;min-width:0;max-width:100%}
.teaching-collapse-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 18px;margin:0;cursor:pointer;list-style:none;background:#f7faff;transition:background .15s}
.teaching-collapse-summary::-webkit-details-marker{display:none}
.teaching-collapse-summary:hover{background:#eef4ff}
.teaching-collapse[open]>.teaching-collapse-summary{border-bottom:1px solid #e4ecf8;background:#f2f6ff}
.teaching-collapse-main{display:flex;align-items:center;gap:10px;flex:1;min-width:0;flex-wrap:wrap}
.teaching-collapse-main>.icon{width:17px;height:17px;color:#2b63d9;flex:none}
.teaching-collapse-main h2{margin:0!important;padding:0!important;border:0!important;font-size:16px!important;line-height:1.5!important;color:#1d3557}
.teaching-collapse-meta{font-size:12px;color:#5a749b;background:#e8f0fe;padding:2px 9px;border-radius:999px;white-space:nowrap}
.teaching-collapse-toggle{display:inline-flex;align-items:center;gap:7px;flex:none;font-size:13px;font-weight:500;color:#2563eb;white-space:nowrap}
.teaching-collapse-toggle::after{content:"";width:7px;height:7px;border-right:1.7px solid currentColor;border-bottom:1.7px solid currentColor;transform:rotate(45deg);transition:transform .16s ease}
.teaching-collapse[open] .teaching-collapse-toggle::after{transform:rotate(-135deg) translate(-1px,-1px)}
.teaching-collapse .when-open{display:none}
.teaching-collapse[open] .when-closed{display:none}
.teaching-collapse[open] .when-open{display:inline}
.teaching-collapse-body{padding:18px 20px;min-width:0;max-width:100%}
.teaching-collapse-body>*:first-child{margin-top:0}
.teaching-collapse-body>*:last-child{margin-bottom:0}
.example-launch-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
