.fxm-library-page{color:#fff5e7}
.fxm-library-page main{width:min(95%,94rem);margin:auto;padding:clamp(1rem,2.8vw,2.75rem) 0 3.5rem}
.fxm-library-hero{position:relative;isolation:isolate;display:grid;align-items:center;min-height:14rem;padding:clamp(1rem,4vw,4rem);overflow:hidden;border:1px solid #bd9377;border-radius:1rem;background:#09241c}
.fxm-library-hero img{position:absolute;z-index:-2;inset:0 0 0 auto;width:63%;height:100%;object-fit:cover;object-position:center 47%}
.fxm-library-hero::before{content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(90deg,#09241c 22%,#09241cf0 47%,#09241c40 88%)}
.fxm-library-hero h1{font:400 clamp(2.5rem,6vw,5rem)/1.05 "House Roman",Georgia,serif;margin:.1em 0}
.fxm-library-hero p{max-width:34rem;margin:.6rem 0}
.fxm-library-hero .eyebrow,.fxm-library-hero em{color:#ebbe9e}
.fxm-library-toolbar{display:grid;grid-template-columns:minmax(0,1fr) minmax(9rem,14rem);align-items:end;gap:.75rem;margin:1.25rem 0}
.fxm-library-toolbar label{display:block;margin:0 0 .35rem;color:#ffefe0}
.fxm-library-toolbar .fxm-search-row{margin:0}
.fxm-library-toolbar :is(input,select){width:100%;min-width:0;min-height:46px;margin:0;padding:.55rem .65rem;background:#fffaef;color:#17352a;border:1px solid #bd9377;border-radius:.45rem;font:inherit}
.fxm-library-toolbar button,.fxm-library-buttons button,.fxm-library-more{background:#e6b99d;color:#0b241b;min-height:44px;padding:.5rem .9rem;border:1px solid #e6b99d;border-radius:.4rem;font:inherit;font-weight:700;cursor:pointer}
.fxm-library-layout{display:grid;grid-template-columns:minmax(14rem,17rem) minmax(0,1fr);align-items:start;gap:clamp(.85rem,2vw,2rem)}
.fxm-library-disclosure{min-width:0;background:#122d23e8;border:1px solid #bd9377;border-radius:.8rem;overflow:hidden;color:#fff5e7}
.fxm-library-disclosure summary{display:flex;align-items:center;justify-content:space-between;gap:.5rem;min-height:46px;padding:.75rem 1rem;font:400 1.4rem/1.15 "House Roman",Georgia,serif;cursor:pointer}
.fxm-library-disclosure:not([open]) #fxm-library-filter-content{display:none}
.fxm-library-disclosure>div{padding:0 .85rem 1rem}
.fxm-library-disclosure fieldset{border:0;border-top:1px solid #bd937777;margin:.65rem 0 0;padding:0;min-width:0}
.fxm-library-disclosure legend{padding:.1rem .15rem;font-family:"House Roman",Georgia,serif;color:#f5c9ae}
.fxm-library-filter-list{max-height:13rem;overflow:auto;overscroll-behavior:contain;scrollbar-color:#bc957b #112b21}
.fxm-library-filter-list label{display:grid;grid-template-columns:1rem minmax(0,1fr) auto;align-items:center;gap:.5rem;min-height:44px;margin:0;padding:.4rem .28rem;border-bottom:1px solid #bd937732;color:#fff4e8;overflow-wrap:anywhere;cursor:pointer;font-size:.9rem}
.fxm-library-filter-list small{color:#f5c9ae}
.fxm-library-filter-list input{width:1rem;height:1rem;min-height:0;margin:0;accent-color:#efbd9e}
.fxm-library-filter-list label:has(input:checked){background:#39635288}
.fxm-library-disclosure p{font-size:.81rem;color:#eddfd1;margin:.7rem 0}
.fxm-library-buttons{display:flex;flex-wrap:wrap;gap:.4rem}
.fxm-library-buttons button:last-child{background:transparent;color:#fff2e5;font-weight:400}
.fxm-library-results{min-width:0}
.fxm-library-meta{display:flex;flex-wrap:wrap;align-items:center;gap:.3rem 1rem;margin:0 0 .6rem;color:#fff4e6}
.fxm-library-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(.45rem,1.2vw,1.05rem);padding:0;margin:0;list-style:none}
.fxm-library-grid a{display:grid;grid-template-rows:auto 1fr;height:100%;border:1px solid #bd9377;border-radius:.8rem;overflow:hidden;text-decoration:none;color:#18392b;background:#f5ede2}
.fxm-library-grid img{display:block;width:100%;height:auto;aspect-ratio:1.2;object-fit:contain;background:#eee3d6}
.fxm-library-grid a>div{padding:clamp(.5rem,1.15vw,1rem);min-width:0;overflow-wrap:anywhere}
.fxm-library-grid h2{font:400 clamp(1.25rem,2.2vw,2rem)/1.12 "House Roman",Georgia,serif;margin:.25rem 0;color:#153629}
.fxm-library-grid p{font-size:clamp(.72rem,1.15vw,.93rem);margin:.3rem 0}
.fxm-library-grid small{font-size:.74rem;color:#764631}
.fxm-library-grid a>div>span{display:block;margin-top:.6rem;font-size:.85rem;text-decoration:underline;text-underline-offset:.2em}
.fxm-library-empty{grid-column:1/-1;padding:.9rem;border:1px solid #bd9377;border-radius:.5rem;background:#193b2e}
.fxm-library-more{display:block;margin:1rem auto}
.fxm-library-page [hidden]{display:none!important}
.fxm-library-page main :focus-visible{outline:3px solid #e5a374;outline-offset:2px}
@media(max-width:1050px){.fxm-library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:859px){.fxm-library-layout{display:block}.fxm-library-disclosure{margin-bottom:1rem}.fxm-library-hero img{width:74%}}
@media(max-width:560px){.fxm-library-toolbar{grid-template-columns:minmax(0,1fr)}.fxm-library-hero{min-height:13rem}.fxm-library-hero img{width:100%}.fxm-library-hero::before{background:linear-gradient(90deg,#09241cf8,#09241c85)}.fxm-library-grid a>div>span{font-size:.75rem}}

/* MSA-style catalogue rhythm, using the FXM palette and standard native radios. */
.fxm-library-page main{width:min(calc(100% - 2rem),90rem)}
.fxm-library-layout{grid-template-columns:minmax(13rem,15rem) minmax(0,1fr);gap:clamp(1rem,2.1vw,1.65rem)}
.fxm-library-filter-list label{grid-template-columns:1rem minmax(0,1fr) auto;gap:.63rem;min-height:44px;padding:.4rem .34rem;font-weight:500}
.fxm-library-filter-list input[type=radio]{appearance:auto;display:block;width:.94rem;height:.94rem;min-width:0;min-height:0;max-width:.94rem;max-height:.94rem;padding:0;margin:0;border:0;border-radius:50%;background:transparent;accent-color:#efbd9e}
.fxm-library-filter-list:not([data-library-filter=range]):not([data-library-filter=family]):not([data-library-filter=note]){max-height:none}
.fxm-library-grid img{height:clamp(9.5rem,16vw,13.2rem);aspect-ratio:auto;padding:.42rem .65rem;background:#f8eee4}
.fxm-library-grid a>div{display:flex;flex-direction:column;padding:clamp(.63rem,1.4vw,1.05rem)}
.fxm-library-grid a>div>span{margin-top:auto;padding-top:.6rem}
@media(max-width:560px){.fxm-library-page main{width:calc(100% - 1.15rem)}.fxm-library-grid img{height:clamp(8.9rem,35vw,11rem)}.fxm-library-layout{gap:.85rem}}

.fxm-library-paths{display:flex;gap:.45rem;flex-wrap:wrap;margin:1rem 0 0}
.fxm-library-paths a{padding:.42rem .66rem;color:#fff3e7;background:#132d24;border:1px solid #bd9377;border-radius:.43rem}
.fxm-library-toolbar .fxm-search-row{display:grid;grid-template-columns:1.45rem minmax(0,1fr) auto;align-items:center;gap:.25rem;padding:.19rem .22rem .19rem .63rem;border:1px solid #bd9377;border-radius:.55rem;background:#fffaf0;color:#173a2e}
.fxm-library-toolbar .fxm-search-row input{min-height:42px;border:0;border-radius:0;background:transparent;padding:.42rem .13rem}
.fxm-library-toolbar .fxm-search-row button{border-radius:.38rem;padding:.35rem .85rem;line-height:1.1;border:0;min-height:42px}
.fxm-library-toolbar .fxm-search-row:focus-within{outline:2px solid #edbd99;outline-offset:3px}
.fxm-library-toolbar .fxm-search-row input:focus-visible{outline:none}
.fxm-library-note-choice{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;border-bottom:1px solid #bd937732}
.fxm-library-note-choice label{border:0}
.fxm-library-info{min-width:44px;min-height:44px;display:inline-grid;place-items:center;border:0;border-radius:.4rem;background:transparent;color:#f3c9ad;cursor:pointer;padding:0}
.fxm-library-filter-help{font:700 1rem Arial,sans-serif;vertical-align:middle;margin:-.45rem -.33rem}
.fxm-library-info:hover,.fxm-library-info:focus-visible{background:#345042}
.fxm-library-insight{position:fixed;width:min(calc(100% - 2rem),30rem);max-width:100%;box-sizing:border-box;padding:1rem 3.2rem 1rem 1rem;border:1px solid #b78463;border-radius:.65rem;background:#fff8ef;color:#173b2d;text-align:left;overflow-wrap:anywhere}
.fxm-library-insight::backdrop{background:#0a2018be}
.fxm-library-insight h2{margin:.05rem 0 .55rem}
.fxm-library-insight a{color:#1a543f;text-decoration:underline}
.fxm-library-insight-close{min-width:44px;min-height:44px;position:absolute;right:.2rem;top:.2rem;border:0;background:transparent;color:#6e452e;cursor:pointer;font-size:1.4rem}
@media(max-width:480px){.fxm-library-toolbar .fxm-search-row button{padding:.35rem .55rem}.fxm-library-paths a{font-size:.87rem}}

/* Match MSA's two-track search shell. The magnifier overlays the input; it is not a grid track. */
#fxm-library-search{position:relative;min-width:0}
.fxm-library-toolbar #fxm-library-search .fxm-search-row{position:relative;display:grid;grid-template-columns:minmax(0,1fr) max-content;gap:0;align-items:stretch;padding:0;min-width:0;overflow:hidden;border-radius:.85rem}
.fxm-library-toolbar #fxm-library-search .fxm-search-row .fxm-library-search-icon{position:absolute;inset:50% auto auto .72rem;transform:translateY(-50%);color:#79533d;pointer-events:none}
.fxm-library-toolbar #fxm-library-search .fxm-search-row input{min-width:0;width:100%;min-height:48px;padding:.52rem .38rem .52rem 2.35rem;grid-column:1;grid-row:1}
.fxm-library-toolbar #fxm-library-search .fxm-search-row button{grid-column:2;grid-row:1;min-width:0;max-width:none;min-height:48px;margin:0;padding:.45rem clamp(.7rem,2vw,1.4rem);border-radius:0;background:#173e30;color:#fff2e7;white-space:nowrap}
.fxm-library-toolbar #fxm-library-search .fxm-search-row button:focus-visible{outline:2px solid #f2c9ab;outline-offset:-3px}
.fxm-library-suggestions{position:absolute;z-index:6;top:100%;left:0;right:0;max-height:20rem;overflow:auto;display:block;list-style:none;margin:.25rem 0 0;padding:.22rem;background:#fff9f0;color:#16362b;border:1px solid #bd9377;border-radius:.55rem;box-shadow:0 .55rem 1.75rem #061b1445}
.fxm-library-suggestions a{display:flex;flex-wrap:wrap;column-gap:.5rem;align-items:center;min-height:44px;padding:.38rem .64rem;color:#173e30;text-decoration:none;border-radius:.35rem}
.fxm-library-suggestions a small{color:#694a39}
.fxm-library-suggestions a[aria-selected=true],.fxm-library-suggestions a:hover{background:#e9d9c8}
.fxm-library-range-choice{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;border-bottom:1px solid #bd937732}
.fxm-library-range-choice label{border-bottom:0}
.fxm-library-range-choice .fxm-library-info{min-width:44px;min-height:44px;font:700 1rem Arial,sans-serif}
.fxm-library-grid .fxm-library-reference-card{position:relative;min-width:0}
.fxm-library-grid .fxm-library-reference-info{position:absolute;top:.38rem;right:.38rem;padding:0;border:1px solid #bd9377;border-radius:50%;background:#fff8ec;color:#654331;min-width:44px;min-height:44px;display:grid;place-items:center;cursor:pointer}
.fxm-library-grid .fxm-library-reference-info:is(:hover,:focus-visible){background:#eee0cf}
.fxm-library-insight-references{max-height:min(35vh,16rem);overflow:auto;padding-left:1.2rem;margin:.7rem 0}
.fxm-library-insight-references li{margin:.45rem 0}
.fxm-library-insight-disclosure{font-size:.84rem;color:#5d4637;line-height:1.5}

.fxm-library-suggestions img{width:1.38rem;height:1.38rem;object-fit:cover;border-radius:50%;flex:none;background:#f3e6d8}

.fxm-library-info-glyph{display:inline-block;font:700 1.06rem/1 Arial,sans-serif}
.fxm-library-disclosure .fxm-library-filter-intro{margin:.25rem .15rem .65rem}

/* Details mirror the MSA range insight without changing the selected range. */
.fxm-library-range-insight{margin:.45rem 0 .65rem;padding:.65rem .75rem;border:1px solid #c79778;border-radius:.44rem;background:#163a2e;color:#fff3e9;overflow-wrap:anywhere}
.fxm-library-range-insight strong{font:400 1.14rem/1.25 "House Roman",Georgia,serif}
.fxm-library-range-insight p{margin:.25rem 0;font-size:.82rem;line-height:1.45}
#fxm-library-range-houses{color:#f5c9ae}
#fxm-library-range-about{min-height:44px;max-width:100%;padding:0;border:0;background:none;color:#ffe2cc;text-align:left;text-decoration:underline;text-underline-offset:.2em;font:inherit;font-size:.78rem;cursor:pointer}
.fxm-library-range-choice .fxm-library-info[aria-expanded=true]{background:#31594a;color:#ffe5d3}
