/* V10.6 hides only top-level header buttons, never dropdown destinations. */
.site-header .main-nav .nav-link[data-v106-hidden]{display:none!important}
#v106-top-navigation{margin:18px 0;padding:18px 20px;border:1px solid var(--border);border-radius:14px;background:var(--bg-card);color:var(--ink);min-width:0}
#v106-top-navigation legend{padding:0 8px;font:600 20px/1.4 Georgia,serif}
#v106-top-navigation p{font-size:14px;line-height:1.65;margin:8px 0 14px}
#v106-top-navigation .v106-nav-choice{display:flex;align-items:center;gap:12px;min-height:48px;padding:8px 0;border-bottom:1px solid var(--divider);cursor:pointer}
.v106-nav-choice input{width:20px;height:20px;accent-color:var(--gold);flex:0 0 auto}
.v106-nav-hint{color:var(--ink-soft)}
#v106-all-sections{position:relative;margin-left:auto;color:var(--ink)}
#v106-all-sections summary{min-height:44px;padding:10px 14px;background:var(--bg-card);color:var(--ink);border:1px solid var(--border);border-radius:9px;cursor:pointer;box-sizing:border-box}
#v106-all-sections nav{position:absolute;right:0;top:calc(100% + 8px);z-index:180;min-width:210px;max-height:65dvh;overflow:auto;padding:8px;background:var(--bg-card);color:var(--ink);border:1px solid var(--border);border-radius:12px;box-shadow:0 10px 30px #0004}
#v106-all-sections nav button{display:block;width:100%;min-height:44px;padding:10px 12px;background:var(--bg-card);color:var(--ink)!important;border:0;text-align:left;cursor:pointer}
#v106-all-sections nav button:hover{background:var(--bg-warm)}
#v106-top-navigation :is(input,button):focus-visible,#v106-all-sections :is(summary,button):focus-visible{outline:3px solid var(--gold);outline-offset:3px}

/* V10.7 contrast: the art tint follows the theme so text that sits directly on the background stays readable with any art. */
#v9-tint{background:rgba(252,247,233,.55)!important}
[data-theme=dark] #v9-tint{background:rgba(22,19,14,.62)!important}
body[data-v10-background="subtle"] #v9-tint{background:rgba(252,247,233,.3)!important}
[data-theme=dark] body[data-v10-background="subtle"] #v9-tint{background:rgba(22,19,14,.4)!important}

/* V10.7 collapsed sections: hard-clip the preview so nothing (e.g. a second row of filter chips) spills past the fade. */
.section-collapsible.collapsed>.section-collapse-content{overflow:hidden!important;clip-path:inset(0)}

/* V10.7 Library: when collapsed, show only the search box; filters and sort appear after "Show filters". */
#filter-pills-wrapper.collapsed>.section-collapse-content{max-height:none!important;clip-path:none}
#filter-pills-wrapper.collapsed>.section-collapse-content::after{display:none!important}
#filter-pills-wrapper.collapsed :is(#filter-pills,#library-sort-bar){display:none!important}

/* V10.7 Notes: Write a Note collapses to its header with an inline hint; Your Notes buttons get room and wrap on narrow screens. */
#fact-form-wrapper.collapsed>.section-collapse-content{display:none!important}
#fact-form-wrapper.collapsed>.section-collapse-preview-hint{text-align:right;margin:6px 0 0;padding:0 4px 4px}
#view-write .section-collapse-toggle:has(.my-facts-actions){flex-wrap:wrap;row-gap:10px}
#view-write .my-facts-actions{display:inline-flex;flex-wrap:wrap;gap:8px;margin-left:16px}
@media(max-width:620px){#view-write .my-facts-actions{flex-basis:100%;margin-left:0}}
