/* Navigation and content discovery only. Keep the established reading/workspace widths. */
body[data-theme-area="frontend"] .more-pages-layout { display:grid !important; grid-template-columns:240px minmax(0,1fr) !important; gap:28px; align-items:start; }
body[data-theme-area="frontend"] .more-pages-layout > .more-pages-rail { position:sticky; top:calc(var(--df-header-total,65px) + 16px); width:auto; min-width:0; max-height:calc(100dvh - var(--df-header-total,65px) - 40px); overflow:auto; }
body[data-theme-area="frontend"] .more-pages-layout > .more-pages-content { min-width:0; width:100%; }
.more-pages-directory > summary { list-style:none; font-weight:600; padding:12px 0; }
.more-pages-directory > summary::-webkit-details-marker { display:none; }
.more-pages-current { display:none; }
body[data-theme-area="frontend"] .more-pages-rail .catalog-title { font-size:15px; margin:0; line-height:1.6; }
body[data-theme-area="frontend"] .more-pages-rail .catalog-line { padding:12px; }
.more-pages-rail .catalog-category { display:none; }
@media(min-width:769px) {
 .more-pages-directory > summary { pointer-events:none; }
}
@media(min-width:769px) and (max-width:1199px) {
 body[data-theme-area="frontend"] #primaryNavigation { gap:6px; }
 body[data-theme-area="frontend"] #primaryNavigation .dfb-nav-link { font-size:13px; padding-inline:7px; }
 body[data-theme-area="frontend"] .dfb-user-menu-name,body[data-theme-area="frontend"] .site-search-trigger kbd { display:none; }
}
@media(max-width:768px) {
 body[data-theme-area="frontend"] .more-pages-layout { grid-template-columns:minmax(0,1fr) !important; gap:16px; }
 body[data-theme-area="frontend"] .more-pages-layout > .more-pages-rail { position:static; max-height:none; }
 .more-pages-directory > summary { display:flex; gap:12px; justify-content:space-between; cursor:pointer; min-height:44px; padding:12px; }
 .more-pages-directory > summary::after { content:""; flex:none; width:7px; height:7px; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:rotate(45deg); align-self:center; margin-right:3px; }
 .more-pages-directory[open] > summary::after { transform:rotate(225deg); }
 .more-pages-current { display:block; font-weight:400; color:var(--ink-muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:65%; }
 .more-pages-directory[open] .more-pages-list { max-height:45vh; overflow:auto; }
}
body[data-theme-area="frontend"] .dfb-nav-group { position:relative; flex:none; min-width:0; }
body[data-theme-area="frontend"] .dfb-nav-group > summary { cursor:pointer; list-style:none; display:flex; align-items:center; gap:6px; }
body[data-theme-area="frontend"] .dfb-nav-group > summary::-webkit-details-marker { display:none; }
body[data-theme-area="frontend"] .dfb-nav-group > summary::after { content:""; width:5px; height:5px; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:rotate(45deg); margin-top:-3px; }
body[data-theme-area="frontend"] .dfb-nav-group[open] > summary { color:var(--accent); background:var(--accent-soft); }
body[data-theme-area="frontend"] .dfb-nav-submenu { position:absolute; z-index:1100; left:0; top:calc(100% + 6px); display:grid; min-width:180px; padding:6px; border:1px solid var(--border); border-radius:10px; background:var(--surface); box-shadow:0 10px 28px #00000016; }
body[data-theme-area="frontend"] .dfb-nav-group:last-child .dfb-nav-submenu { left:auto; right:0; }
body[data-theme-area="frontend"] .dfb-nav-submenu a { display:flex; align-items:center; min-height:40px; padding:8px 12px; color:var(--ink); font-size:14px; text-decoration:none; border-radius:6px; white-space:nowrap; }
body[data-theme-area="frontend"] .dfb-nav-submenu a:hover, body[data-theme-area="frontend"] .dfb-nav-submenu a:focus-visible { background:var(--accent-soft); color:var(--accent); }
body[data-theme-area="frontend"] .dfb-nav-group > summary:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.frontend-page-directory, .tool-category-overview { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr)); gap:20px; }
.frontend-page-card, .tool-category-card { min-width:0; padding:24px; border:1px solid var(--border); border-radius:12px; background:var(--surface); }
.frontend-page-card h2, .tool-category-card h3 { font-size:20px; margin:0 0 10px; }
.frontend-page-card p, .tool-category-card p { color:var(--ink-muted); line-height:1.7; margin-bottom:16px; overflow-wrap:anywhere; }
.tool-filter-panel > .tool-query-bar:first-child { border-top:0; padding-top:0; margin-top:0; }
.frontend-extra-filters { min-width:0; flex:1 1 100%; width:100%; }
.frontend-extra-filters > summary { cursor:pointer; color:var(--ink-muted); font-size:14px; padding:8px 0; }
.frontend-extra-filters > .query-grid { padding-top:12px; }
.frontend-empty-overview { padding:28px; grid-column:1/-1; }
.frontend-empty-overview p { color:var(--ink-muted); line-height:1.7; }
.frontend-empty-overview .d-flex { flex-wrap:wrap; gap:12px; }
.public-profile-layout.has-only-aside { display:block; }
.public-profile-layout.has-only-aside .public-profile-primary { display:none; }
.public-profile-layout.has-only-aside .public-profile-aside { position:static; }
@media(min-width:769px) { body[data-theme-area="frontend"] #primaryNavigation { overflow:visible !important; } }
@media(max-width:768px) {
 body[data-theme-area="frontend"] .dfb-nav-group { width:100%; }
 body[data-theme-area="frontend"] .dfb-nav-submenu, body[data-theme-area="frontend"] .dfb-nav-group:last-child .dfb-nav-submenu { position:static; min-width:0; width:100%; box-shadow:none; margin-block:6px; }
 body[data-theme-area="frontend"] .dfb-nav-submenu a { min-height:44px; }
 .frontend-page-directory, .tool-category-overview { grid-template-columns:minmax(0,1fr); }
 .frontend-page-card, .tool-category-card { padding:20px; }
 .tool-category-overview { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
 .tool-category-card { padding:16px; }
 .tool-category-card h3 { font-size:16px; line-height:1.5; }
 .tool-category-card ul { display:none; }
 .tool-category-card .section-link { display:flex; align-items:center; min-height:44px; font-size:13px; }
 .frontend-extra-filters .query-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
 body[data-theme-area="frontend"].route-wiki-index .wiki-docs-menu-toggle { position:static !important; margin:0 0 14px; transform:none !important; }
}
/* Discovery surfaces share the catalog and navigation system; workbench widths stay unchanged. */
.discovery-page,.discovery-home { display:grid; gap:24px; min-width:0; }
.discovery-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.discovery-primary-actions { grid-template-columns:repeat(3,minmax(0,1fr)); }
.discovery-entry { display:block; color:inherit; padding:24px; text-decoration:none; border:1px solid var(--df-border,rgba(127,127,127,.2)); }
.discovery-entry h2 { margin:0 0 10px; font-size:20px; }
.discovery-entry p { margin:0; color:var(--df-text-secondary,inherit); line-height:1.7; }
.discovery-entry:hover { border-color:var(--df-primary,#547bda); }
.discovery-entry:focus-visible { outline:2px solid var(--df-primary,#547bda); outline-offset:3px; }
.discovery-home .df-hero { margin-bottom:0; }
.discovery-home .surface { min-width:0; }
.discovery-home-columns { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
.discovery-home-columns > .surface,.discovery-home > section.surface,.discovery-note { padding:24px; }
.discovery-home .section-head h2 { font-size:20px; margin:0; }
.discovery-filters { display:flex; flex-wrap:wrap; align-items:end; gap:16px; }
.discovery-filters label { display:grid; gap:6px; }
.discovery-resource-nav { margin-bottom:20px; flex-wrap:wrap; }
.discovery-page .catalog-line,.discovery-home .catalog-line { min-width:0; gap:16px; }
.discovery-page .catalog-title,.discovery-home .catalog-title { overflow-wrap:anywhere; }
@media(max-width:1000px) { .discovery-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .discovery-primary-actions { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:600px) { .discovery-grid,.discovery-primary-actions,.discovery-home-columns { grid-template-columns:minmax(0,1fr); } .discovery-entry,.discovery-home-columns > .surface,.discovery-home > section.surface { padding:18px; } .discovery-page .catalog-line,.discovery-home .catalog-line { flex-wrap:wrap; } .discovery-filters label { flex:1 1 140px; } }
