/* Global sections, personal utilities, and page context have distinct ownership. */
html[lang] .topbar{height:78px;min-height:78px;flex-wrap:nowrap;gap:24px;padding:0 3vw}
html[lang] .topbar .brand{flex:0 1 auto;min-width:0;font-size:1rem;line-height:1.25}
html[lang] .topbar .brand-mark{flex:none}
html[lang] .topbar .public-navigation{display:flex;align-items:center;justify-content:flex-end;gap:20px;margin-left:auto;min-width:0}
html[lang] .topbar .public-navigation .site-navigation{position:static;display:flex;width:auto;flex-direction:row;gap:22px;padding:0;border:0;box-shadow:none;overflow:visible;max-height:none;background:none}
html[lang] .topbar .public-navigation .site-navigation a{position:relative;display:flex;align-items:center;min-height:48px;padding:4px 0;white-space:nowrap;font-size:.9375rem;font-weight:600;line-height:1.5;text-decoration:none;border-bottom:3px solid transparent;color:var(--ink)}
html[lang] .topbar .public-navigation .site-navigation a:hover{color:var(--blue)}
html[lang] .topbar .public-navigation .site-navigation a[aria-current]{border-bottom-color:var(--blue);color:var(--blue)}
html[lang] .topbar .public-navigation .menu-toggle{display:none}
html[lang] .topbar .public-navigation button{font-family:inherit;font-size:.9375rem;font-weight:600;line-height:1.3;color:var(--ink);cursor:pointer;background:transparent;border:1px solid var(--line);min-height:44px;padding:10px 12px;white-space:nowrap}
html[lang] .topbar .public-navigation button span{margin-left:7px;font:inherit}
html[lang] .topbar .public-navigation .personal-navigation{position:relative;border-left:1px solid var(--line);padding-left:20px}
html[lang] .topbar .public-navigation .personal-toggle{border-color:transparent}
html[lang] .topbar .public-navigation .personal-toggle[data-current="true"]{color:var(--blue);background:#213cff0b}
html[lang] .topbar .public-navigation .personal-links{position:absolute;right:0;top:calc(100% + 8px);display:flex;flex-direction:column;width:max-content;min-width:190px;max-width:calc(100vw - 24px);gap:0;padding:8px;border:1px solid var(--line);background:var(--paper);box-shadow:0 10px 24px #11120f12;z-index:12}
html[lang] .topbar .public-navigation .personal-links[hidden]{display:none}
html[lang] .topbar .public-navigation .personal-links a{display:flex;align-items:center;min-height:46px;padding:10px 12px;font-size:.9375rem;white-space:normal;line-height:1.5;color:var(--ink);text-decoration:none}
html[lang] .topbar .public-navigation .personal-links a:hover{background:#213cff0b;color:var(--blue)}
html[lang] .topbar .language-switch{flex:none;margin:0;font-size:.875rem}
.public-navigation a:focus-visible,.public-navigation button:focus-visible,[data-navigation-mode] a:focus-visible,[data-navigation-mode] summary:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
.interview-sidebar[data-navigation-mode]{padding-right:24px;top:106px;max-height:calc(100dvh - 130px)}
[data-navigation-mode] .sidebar-heading{padding:2px 8px 16px}
[data-navigation-mode] .sidebar-heading h2{font-size:1rem;margin:0;line-height:1.5}
[data-navigation-mode] .sidebar-heading p{font-size:.8125rem;line-height:1.7;color:var(--muted);margin:8px 0 0}
[data-navigation-mode] .context-reset{display:inline-block;padding:10px 0 4px;font-size:.8125rem;color:var(--blue);text-underline-offset:3px}
[data-navigation-mode] .question-tree{font-size:.875rem}
[data-navigation-mode] .context-anchor{display:flex;align-items:baseline;gap:10px;min-height:46px;padding:10px 8px;line-height:1.7;border-top:1px solid #d5d5cd}
[data-navigation-mode] .context-index{font:400 .75rem/1.7 ui-monospace,monospace;color:var(--muted);flex:none}
[data-navigation-mode] .context-category{display:flex;justify-content:space-between;gap:12px;min-height:46px;padding:10px 8px;line-height:1.7;border-top:1px solid #d5d5cd}
[data-navigation-mode] .context-category .tree-count{flex:none}
[data-navigation-mode] .question-tree a[aria-current]{background:#213cff0b;color:var(--blue);font-weight:650;box-shadow:inset 3px 0 var(--blue)}
[data-navigation-mode] .question-tree summary{line-height:1.65;padding:12px 8px}
[data-navigation-mode] .tree-children a{padding:10px;line-height:1.65}
.interview-shell:has(>[data-navigation-mode="map"]) .curriculum-nav,.interview-shell:has(>[data-navigation-mode="roadmap"]) .roadmap-nav{display:none}
.interview-detail:has(>[data-navigation-mode="practice"]){grid-template-columns:250px minmax(0,1fr);max-width:1400px}
.interview-detail:has(>[data-navigation-mode="practice"]) .question-toc,.interview-detail:has(>[data-navigation-mode="practice"]) .question-mobile-toc{display:none}
.interview-shell:not(:has(>.interview-sidebar)):not(:has(>.interview-mobile-nav)){grid-template-columns:minmax(0,1fr);max-width:1160px}
/* Published descriptions contain plain URLs; allow text to wrap within its column. */
.interview-heading p{overflow-wrap:anywhere;min-width:0}
.interview-shell:has(>[data-navigation-mode="roadmap"]) .interview-main{overflow-wrap:anywhere;min-width:0}
.interview-shell:has(>[data-navigation-mode="roadmap"]) .roadmap-stage>div{min-width:0}
.interview-shell:has(>[data-navigation-mode="roadmap"]) pre{max-width:100%;overflow-x:auto}
.interview-shell:has(>[data-navigation-mode="practice"]) .question-row-actions{min-width:0;max-width:100%;flex-wrap:wrap}
.interview-shell:has(>[data-navigation-mode="practice"]) .question-row-actions a{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.6}
@media(max-width:1000px){
 html[lang] .topbar{height:auto;min-height:74px;padding:10px 4vw;gap:14px;flex-wrap:wrap}
 html[lang] .topbar .brand{flex:1 1 200px}
 html[lang] .topbar .public-navigation{gap:8px;flex:none;margin-left:auto}
 html[lang] .topbar .public-navigation .menu-toggle{display:inline-flex;align-items:center}
 html[lang] .topbar .public-navigation .personal-navigation{padding-left:0;border-left:0;position:static}
 html[lang] .topbar .public-navigation .site-navigation{display:none;position:absolute;top:100%;left:0;right:0;flex-direction:column;width:auto;gap:0;padding:12px 4vw;max-height:calc(100dvh - 130px);overflow-y:auto;background:var(--paper);border-bottom:1px solid var(--line);box-shadow:0 12px 18px #11120f12}
 html[lang] .topbar .public-navigation .site-navigation[data-open="true"]{display:flex}
 html[lang] .topbar .public-navigation .site-navigation a{min-height:48px;font-size:1rem;padding:10px 12px;border-bottom:0;border-left:3px solid transparent}
 html[lang] .topbar .public-navigation .site-navigation a[aria-current]{border-left-color:var(--blue);background:#213cff0b}
 html[lang] .topbar .public-navigation .personal-links{right:4vw;top:100%;max-height:calc(100dvh - 130px);overflow-y:auto}
}
@media(max-width:950px){
 .interview-detail:has(>[data-navigation-mode="practice"]){grid-template-columns:minmax(0,1fr)}
 .interview-mobile-nav[data-navigation-mode]{background:transparent;border:1px solid var(--line);padding:0 16px;min-width:0}
 .interview-mobile-nav[data-navigation-mode]>summary{font-size:.9375rem;line-height:1.5;padding:13px 0}
 .interview-mobile-nav[data-navigation-mode]>summary>span{display:block;float:none;line-height:1.6;font-size:.8125rem;margin-top:4px;max-width:100%}
 .interview-mobile-nav[data-navigation-mode] .context-navigation{padding:0 0 12px}
}
@media(max-width:520px){
 html[lang] .topbar{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:8px;row-gap:6px;padding:10px 4vw}
 html[lang] .topbar .brand{grid-column:1;grid-row:1;font-size:.875rem;gap:8px}
 html[lang] .topbar .brand-mark{width:30px;height:30px}
 html[lang] .topbar .language-switch{grid-column:2;grid-row:1;margin-left:auto;gap:2px}
 html[lang] .topbar .public-navigation{grid-column:1/-1;grid-row:2;justify-content:space-between;margin-left:0}
 html[lang] .topbar .public-navigation button{font-size:.875rem;min-height:44px;padding:9px 12px}
 html[lang] .topbar .public-navigation .personal-links{left:4vw;right:4vw;width:auto;max-width:none}
 [data-navigation-mode] .context-anchor,[data-navigation-mode] .context-category{font-size:.875rem}
}
