/* Shared product library: brand pages, discovery and model enquiries. */
.brand-library { --ink:#163843; --muted:#5e7077; --accent:#df610c; }
.library-skip { position:absolute; z-index:100; top:0; left:16px; padding:12px; background:#fff; transform:translateY(-120%); }
.library-skip:focus { transform:none; }
.sr-label { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.library-hero { display:grid; grid-template-columns:1fr .45fr; align-items:center; gap:70px; padding:70px max(24px,calc((100vw - 1140px)/2)); color:#fff; background:radial-gradient(ellipse at 75% 40%,#2a6173,transparent 55%),#112e38; }
.library-hero h1 { margin:20px 0; font:700 clamp(2.8rem,5.5vw,5rem)/1.04 Sora,sans-serif; letter-spacing:-.06em; }
.library-hero p { max-width:660px; color:#d1dfe2; font-size:1.05rem; line-height:1.8; }
.library-hero-links { display:flex; flex-wrap:wrap; gap:12px; margin-top:28px; }
.library-hero-links a { padding:13px 17px; border:1px solid #abcbd555; border-radius:7px; font-size:.86rem; font-weight:800; transition:transform .2s,background .2s; }
.library-hero-links a:first-child { color:#172d35; background:#ffd2ad; border-color:#ffd2ad; }
.library-hero-links a:hover { transform:translateY(-3px); background:#fff; color:#173944; }
.library-hero-note { padding:28px 0 28px 32px; border-left:1px solid #ffffff40; }
.library-hero-note strong { display:block; font:600 clamp(2.2rem,4vw,3.5rem)/1.2 Sora,sans-serif; letter-spacing:-.055em; }
.library-hero-note > span { display:block; margin-top:8px; color:#ffbb87; font-size:.8rem; }
.library-hero-note p { font-size:.9rem; line-height:1.9; }
.library-sticky { position:sticky; top:0; z-index:20; display:flex; justify-content:center; gap:8px; overflow-x:auto; white-space:nowrap; padding:12px 20px; background:#f5f9f8ed; border-bottom:1px solid #d8e5e8; backdrop-filter:blur(16px); }
.library-sticky a { padding:10px 16px; border-radius:6px; color:var(--ink); font-size:.8rem; font-weight:800; transition:background .2s; }
.library-sticky a:hover { background:#e0eef0; }
.library-main { max-width:1190px; margin:auto; padding:44px 24px 75px; }
.library-main > section { scroll-margin-top:90px; margin-bottom:55px; }
.library-section-heading { display:flex; align-items:end; justify-content:space-between; gap:25px; margin-bottom:24px; }
.library-section-heading h2,.brand-family-navigation h2 { margin:11px 0 0; font:650 clamp(1.5rem,3vw,2.25rem)/1.2 Sora,sans-serif; letter-spacing:-.045em; }
.library-section-heading p { max-width:380px; color:var(--muted); line-height:1.65; margin:0; font-size:.85rem; }
.library-section-heading .guide-section-index,.brand-family-navigation .guide-section-index { color:#b94b00; }
.library-finder { padding:28px; background:#fff; border:1px solid #cfdee3; border-radius:12px; box-shadow:0 15px 40px #143c4a08; }
.library-search-fields { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.library-search-fields input { flex:1 1 300px; min-width:0; width:100%; min-height:52px; border:1px solid #b7cbd3; border-radius:7px; padding:13px 15px; font:inherit; background:#f7fafb; color:var(--ink); }
.library-search-fields select { flex:0 1 180px; min-height:52px; max-width:100%; padding:12px; border:1px solid #b7cbd3; border-radius:7px; font:inherit; color:var(--ink); background:#fff; }
.library-search-fields button,.library-all-purpose,.brand-collapse-all { min-height:44px; padding:10px 14px; border:1px solid #b3c7ce; border-radius:6px; background:#fff; color:var(--ink); font:700 .78rem/1.4 Inter,sans-serif; cursor:pointer; transition:background .2s,transform .2s; }
.library-search-fields button:hover,.library-all-purpose:hover,.brand-collapse-all:hover { background:#e7f1f3; }
.library-finder > label { display:block; margin-bottom:15px; font-weight:800; color:var(--ink); }
.library-finder > p { color:var(--muted); font-size:.8rem; line-height:1.7; margin:14px 0 0; }
.library-finder > a { display:inline-block; margin-top:14px; color:#1c6783; text-decoration:underline; font-size:.83rem; font-weight:800; }
.purpose-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.purpose-button { display:grid; align-content:start; gap:9px; padding:19px; border:1px solid #c9dce1; border-radius:8px; background:#ffffffb8; color:var(--ink); font:inherit; text-align:left; cursor:pointer; transition:background .2s,border-color .2s,transform .2s; scroll-margin-top:90px; }
.purpose-button strong { font-size:.88rem; }
.purpose-button span { color:var(--muted); font-size:.74rem; line-height:1.5; }
.purpose-button[aria-pressed="true"] { background:#173d4a; color:#fff; border-color:#173d4a; box-shadow:0 8px 25px #143c4a18; }
.purpose-button[aria-pressed="true"] span { color:#d2e5eb; }
.purpose-button:hover { transform:translateY(-2px); border-color:#1c6783; }
.library-brand-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.library-brand-card { position:relative; display:flex; flex-direction:column; align-items:start; min-width:0; min-height:300px; padding:25px; border:1px solid #cddde2; border-radius:12px; background:#fff; box-shadow:0 8px 28px #143c4a05; transition:transform .22s,box-shadow .22s,border-color .22s; }
.library-brand-card:hover { transform:translateY(-5px); box-shadow:0 18px 38px #143c4a15; border-color:#91b4c1; }
.library-brand-logo { display:flex; align-items:center; justify-content:flex-start; width:170px; height:76px; margin-bottom:21px; }
.library-brand-logo img { width:150px; height:66px; object-fit:contain; }
.library-brand-meta { color:#b75009; font-size:.68rem; letter-spacing:.01em; font-weight:700; }
.library-brand-card h3 { font:650 1.4rem/1.25 Sora,sans-serif; letter-spacing:-.035em; color:var(--ink); margin:11px 0 8px; }
.library-brand-card p { color:var(--muted); font-size:.83rem; line-height:1.7; margin:0 0 21px; }
.library-brand-action { display:flex; align-items:center; justify-content:space-between; gap:15px; width:100%; margin-top:auto; padding-top:17px; border-top:1px solid #e3ecef; color:#1c6783; font-weight:800; font-size:.8rem; }
.brand-wordmark { font:800 1.4rem/1.2 Sora,sans-serif; color:#b32b30; }
.library-results { margin-top:25px; border-top:1px solid #d9e6ea; }
.search-brand-section h3 { margin:22px 0 10px; color:var(--ink); font:700 1.1rem Sora,sans-serif; }
.library-result { display:grid; gap:7px; padding:16px; border:1px solid #d5e3e8; border-radius:7px; background:#f8fbfb; margin-bottom:10px; transition:background .2s; }
.library-result:hover { background:#e8f3f5; }
.library-result strong { color:#174d61; font-size:.94rem; }
.library-result span { color:var(--muted); font-size:.74rem; }
.library-result small { color:#3a6678; font-size:.74rem; overflow-wrap:anywhere; line-height:1.5; }
.library-help { display:flex; align-items:center; justify-content:space-between; gap:30px; padding:32px; border-radius:12px; background:#dfeef0; }
.library-help h2 { margin:10px 0; font:650 clamp(1.4rem,2.6vw,2rem)/1.25 Sora,sans-serif; color:var(--ink); letter-spacing:-.035em; }
.library-help p { max-width:650px; color:var(--muted); font-size:.85rem; line-height:1.7; }
.library-help .guide-section-index { color:#a84b0a; }
.library-help > a { flex:none; padding:14px 18px; border-radius:6px; color:#fff; background:#174d61; font-weight:800; font-size:.85rem; }
.library-footer { display:flex; justify-content:space-between; align-items:center; gap:25px; max-width:1190px; margin:auto; padding:25px 24px 45px; border-top:1px solid #d3e1e5; color:var(--muted); font-size:.8rem; line-height:1.8; }
.library-footer nav { display:flex; flex-wrap:wrap; gap:24px; color:#1c6783; font-weight:800; }
.library-top { position:fixed; right:20px; bottom:22px; z-index:25; width:45px; height:45px; border:1px solid #547787; border-radius:50%; background:#173d4a; color:#fff; cursor:pointer; box-shadow:0 8px 22px #163c4a20; }
.library-toast { position:fixed; left:50%; bottom:100px; transform:translate(-50%,12px); pointer-events:none; z-index:45; max-width:calc(100% - 32px); padding:12px 20px; border-radius:8px; background:#173d4a; color:white; box-shadow:0 8px 30px #143c4a30; opacity:0; transition:opacity .2s,transform .2s; font-size:.84rem; }
.library-toast.is-visible { opacity:1; transform:translate(-50%,0); }
.library-brand-hero { display:grid; grid-template-columns:200px 1fr; gap:40px; align-items:center; max-width:1140px; margin:auto; padding:45px 24px; }
.library-brand-hero-logo { display:grid; place-items:center; min-height:145px; padding:20px; background:#fff; border:1px solid #cfdee3; border-radius:12px; }
.library-brand-hero-logo img { width:150px; height:66px; object-fit:contain; }
.library-brand-hero h1 { margin:12px 0 15px; font:650 clamp(2rem,4vw,3.5rem)/1.08 Sora,sans-serif; letter-spacing:-.05em; color:var(--ink); }
.library-brand-hero p { max-width:720px; color:var(--muted); line-height:1.7; font-size:.95rem; }
.library-brand-hero .guide-section-index { color:#b94b00; }
.brand-guide-meta { display:flex; flex-wrap:wrap; gap:10px; margin-top:22px; }
.brand-guide-meta span { padding:8px 11px; border:1px solid #c9dce2; border-radius:5px; font-size:.75rem; color:#386074; background:#fff; }
.brand-family-navigation > p { color:var(--muted); line-height:1.7; font-size:.9rem; }
.brand-family-jumps { display:flex; flex-wrap:wrap; gap:9px; margin-top:21px; }
.brand-family-jumps a { display:flex; align-items:center; gap:12px; padding:12px 15px; border:1px solid #bfd5dd; border-radius:6px; background:#fff; color:#174d61; font-size:.82rem; font-weight:700; transition:background .2s; }
.brand-family-jumps a:hover { background:#e3f0f3; }
.brand-family-jumps span { font-size:.68rem; color:#b85108; }
.brand-library .product-model-group > summary { grid-template-columns:1fr auto 24px; }
.brand-library .product-model-group > summary::after { grid-column:3; }
.brand-library .product-family-summary { grid-template-columns:1fr auto; }
.brand-library .family-open-label { grid-column:auto; }
.brand-library .product-family-body { animation:family-enter .2s ease-out; }
.product-guide-table-wrap { overscroll-behavior-x:contain; }
.model-select-button { border:0; border-radius:3px; padding:4px 3px; margin:-4px -3px; background:transparent; color:#174d61; font:inherit; font-weight:800; text-align:left; cursor:pointer; }
.model-select-button:hover { text-decoration:underline; text-underline-offset:4px; }
.model-select-button[aria-pressed="true"] { background:#ffdfc7; color:#702800; }
.product-guide-table tr.is-selected td,.product-guide-table tr.is-selected th { background:#fff0e5; }
.model-selection { position:fixed; display:flex; align-items:center; gap:15px; bottom:0; left:0; right:0; z-index:35; padding:16px max(24px,calc((100vw - 1140px)/2)); background:#143743; color:#fff; border-top:2px solid #e67c35; box-shadow:0 -8px 32px #173d4a25; }
.model-selection > div { display:grid; gap:5px; margin-right:auto; min-width:0; }
.model-selection > div span { color:#aaceD9; font-size:.68rem; }
.model-selection strong { font-size:1rem; overflow-wrap:anywhere; }
.model-selection button,.model-selection a { flex:none; padding:10px 14px; border:1px solid #ffffff60; border-radius:5px; font:700 .78rem Inter,sans-serif; background:transparent; color:#fff; cursor:pointer; }
.model-selection a { background:#ffd2ad; border-color:#ffd2ad; color:#163843; }
.brand-guide-empty { padding:20px; background:#fff1e5; color:#823c0d; border-radius:8px; line-height:1.7; }
button:active { transform:translateY(1px); }
input:focus-visible,select:focus-visible,button:focus-visible { outline:3px solid #e98742; outline-offset:3px; }
html.lenis { scroll-behavior:auto !important; }
#brand-families,.product-model-card,.product-model-group,.brand-family-navigation,.library-finder,input { scroll-margin-top:90px; }
@keyframes family-enter { from { opacity:.35; transform:translateY(6px); } to { opacity:1; transform:none; } }
@media(max-width:900px) {
 .library-hero { gap:30px; grid-template-columns:1fr .4fr; }
 .library-brand-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .purpose-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
 .library-brand-hero { grid-template-columns:150px 1fr; gap:25px; }
 .library-brand-hero-logo { min-height:120px; }
}
@media(max-width:600px) {
 .guide-nav { padding:16px; gap:12px; align-items:start; }
 .guide-brand { font-size:.8rem; gap:8px; }
 .guide-brand img { width:33px; height:33px; }
 .guide-nav-actions a { font-size:.7rem; min-height:38px; padding:8px; }
 .library-hero { grid-template-columns:1fr; gap:28px; padding:38px 20px; }
 .library-hero-note { display:none; }
 .library-hero p { font-size:.95rem; }
 .library-hero-links { flex-direction:column; align-items:start; }
 .library-sticky { justify-content:flex-start; padding:9px 12px; gap:3px; }
 .library-sticky a { padding:11px 12px; font-size:.73rem; }
 .library-main { padding:28px 16px 45px; }
 .library-main > section { margin-bottom:36px; }
 .library-section-heading { display:block; }
 .library-section-heading p,.library-section-heading button { margin-top:16px; }
 .library-finder { padding:20px; }
 .library-search-fields input { flex-basis:100%; }
 .library-search-fields select { flex:1; }
 .purpose-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .purpose-button { padding:15px; }
 .library-brand-grid { grid-template-columns:1fr; gap:13px; }
 .library-brand-card { min-height:0; padding:22px; }
 .library-brand-logo { height:55px; margin-bottom:17px; }
 .library-brand-logo img { width:130px; height:55px; }
 .library-help { display:block; padding:23px; }
 .library-help > a { display:inline-block; margin-top:10px; }
 .library-footer { display:block; padding:22px 20px 90px; }
 .library-brand-hero { grid-template-columns:1fr; padding:30px 20px; gap:21px; }
 .library-brand-hero-logo { min-height:0; height:78px; width:160px; padding:10px; }
 .library-brand-hero-logo img { width:130px; height:54px; }
 .brand-library .product-family-summary { grid-template-columns:1fr; }
 .brand-library .family-open-label { grid-column:1; }
 .model-selection { gap:9px; flex-wrap:wrap; padding:12px 16px; }
 .model-selection > div { flex:1 1 calc(100% - 40px); }
 .model-selection #selected-model-dismiss { position:absolute; right:12px; top:11px; padding:5px 9px; }
 .model-selection button,.model-selection a { padding:10px 13px; }
 .library-top { bottom:18px; right:16px; }
 body:has(.model-selection:not([hidden])) .library-top { bottom:140px; }
}
@media(prefers-reduced-motion:reduce) {
 *,*::before,*::after { animation:none !important; transition:none !important; scroll-behavior:auto !important; }
}
[hidden] { display:none !important; }

/* Logos identify the maker; photographs identify the part. */
.library-brand-logo { width:100%; height:64px; margin:0 0 18px; }
.library-brand-logo img { max-width:160px; width:auto; height:54px; }
.library-card-products { display:grid; grid-template-columns:1fr 1fr; gap:8px; align-items:center; width:100%; height:160px; margin:0 0 22px; padding:10px; border:1px solid #e0e9ec; border-radius:9px; background:#fff; overflow:hidden; }
.library-card-products.is-single { grid-template-columns:1fr; }
.library-card-products img { display:block; width:100%; height:136px; object-fit:contain; transition:transform .25s ease; }
.library-brand-card:hover .library-card-products img { transform:scale(1.04); }
.library-brand-card:not(:has(.library-card-products)) .library-brand-logo { height:242px; justify-content:center; border:1px solid #e0e9ec; border-radius:9px; background:#fff; }
.library-brand-card:not(:has(.library-card-products)) .library-brand-logo img { width:180px; max-width:90%; height:90px; }
.brand-product-gallery { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; grid-column:1/-1; padding-top:5px; }
.brand-product-gallery a { display:grid; grid-template-rows:150px auto; min-width:0; padding:15px; background:#fff; border:1px solid #d4e3e7; border-radius:10px; transition:border-color .2s,transform .2s; }
.brand-product-gallery a:hover { border-color:#487d91; transform:translateY(-3px); }
.brand-product-gallery img { width:100%; height:140px; object-fit:contain; }
.brand-product-gallery a > span { display:flex; align-items:center; justify-content:space-between; gap:12px; border-top:1px solid #e1ebee; padding-top:13px; font:700 .8rem/1.5 Inter,sans-serif; color:#174d61; }
.brand-library .product-family-summary.has-product-image { grid-template-columns:140px minmax(0,1fr) auto; }
.family-product-preview { display:grid; place-items:center; min-width:0; height:120px; padding:8px; background:#fff; border:1px solid #dce8eb; border-radius:8px; }
.family-product-preview img { display:block; width:100%; height:102px; object-fit:contain; }
.library-result { display:flex; align-items:center; gap:18px; }
.library-result-image { flex:none; width:92px; height:80px; padding:6px; border:1px solid #e1e9ec; border-radius:6px; background:#fff; object-fit:contain; }
.library-result-copy { display:grid; gap:7px; min-width:0; }
@media(max-width:850px) {
 .brand-library .product-family-summary.has-product-image { grid-template-columns:110px minmax(0,1fr); gap:16px; }
 .has-product-image .family-product-preview { grid-row:1/3; height:105px; }
 .has-product-image .family-open-label { grid-column:2; }
 .brand-product-gallery { gap:10px; }
 .brand-product-gallery a { padding:10px; grid-template-rows:120px auto; }
 .brand-product-gallery img { height:110px; }
}
@media(max-width:600px) {
 .library-brand-logo { height:50px; margin-bottom:14px; }
 .library-card-products { height:165px; margin-bottom:19px; }
 .library-brand-card:not(:has(.library-card-products)) .library-brand-logo { height:220px; }
 .library-brand-hero:has(.brand-product-gallery) { gap:20px; }
 .brand-product-gallery { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .brand-product-gallery a { grid-template-rows:100px auto; }
 .brand-product-gallery img { height:90px; }
 .brand-product-gallery a > span { font-size:.72rem; }
 .brand-product-gallery a:only-child { grid-column:1/-1; grid-template-rows:145px auto; }
 .brand-product-gallery a:only-child img { height:135px; }
 .brand-library .product-family-summary.has-product-image { grid-template-columns:82px minmax(0,1fr); gap:14px; }
 .has-product-image .family-product-preview { height:90px; grid-row:1; }
 .family-product-preview img { height:72px; }
 .has-product-image .family-purpose,.has-product-image .family-count { font-size:.75rem; }
 .brand-library .has-product-image .family-open-label { grid-column:1/-1; justify-self:start; }
 .library-result { gap:12px; }
 .library-result-image { width:65px; height:65px; }
}
@media(prefers-reduced-motion:reduce) { .library-brand-card:hover .library-card-products img,.brand-product-gallery a:hover { transform:none; } }
.brand-supplier-line { font-size:.8rem !important; color:#356174 !important; font-weight:700; }
.brand-sourcing { padding:30px; background:#fff; border:1px solid #d4e3e7; border-radius:12px; }
.brand-sourcing h2 { color:#173944; font:650 clamp(1.4rem,2.5vw,2rem)/1.25 Sora,sans-serif; letter-spacing:-.035em; }
.brand-sourcing p { color:#53676f; font-size:.9rem; line-height:1.8; }
.brand-order-notes { display:grid; grid-template-columns:1fr 1fr; gap:28px; margin:24px 0; padding-top:10px; border-top:1px solid #dce7ea; }
.brand-order-notes h3 { color:#174d61; font:700 1rem/1.5 Inter,sans-serif; }
.brand-sourcing > a { color:#1c6783; font-size:.85rem; font-weight:800; text-decoration:underline; text-underline-offset:4px; }
@media(max-width:600px) { .brand-sourcing { padding:22px; } .brand-order-notes { grid-template-columns:1fr; gap:12px; } }
.library-price-promise,.brand-price-promise { display:grid; gap:7px; padding:16px 18px; border-left:3px solid #e77829; border-radius:0 7px 7px 0; }
.library-hero .library-price-promise { margin:24px 0 0; font-size:.87rem; line-height:1.65; color:#fff; background:#ffffff0b; }
.library-price-promise strong { color:#ffd2ad; }
.brand-price-promise { margin:22px 0 0; font-size:.86rem !important; line-height:1.65 !important; color:#234e60 !important; background:#fff2e7; }
.brand-price-promise strong { color:#173944; }
.brand-price-promise span { display:block; }
