/* Editorial identities for the three directory sections. */
body .tools-page #category-vendors.vendor-section,
body .tools-page #category-resellers.vendor-section,
body .tools-page #category-resources.vendor-section { padding:64px 0 72px!important; border:0!important; background-image:none!important; }
body .tools-page #category-vendors.vendor-section { --ink:#f7f0e7; --ink-soft:#ded1c0; --border:rgba(238,218,190,.23); --border-strong:rgba(238,218,190,.38); --surface:#211d1a; --surface-2:#302822; --category-ink:#f7f0e7; --category-soft:#ded1c0; --category-line:rgba(238,218,190,.32); background-color:#171514!important; color:#f7f0e7; }
body .tools-page #category-resellers.vendor-section { --ink:#27221c; --ink-soft:#574b3e; --border:rgba(78,61,42,.22); --border-strong:rgba(78,61,42,.36); --surface:#fffaf0; --surface-2:#efe3d1; --category-ink:#27221c; --category-soft:#574b3e; --category-line:rgba(78,61,42,.30); background-color:#e8d9c1!important; color:#27221c; }
body .tools-page #category-resources.vendor-section { --ink:#fff5ee; --ink-soft:#ead9d2; --border:rgba(255,233,218,.22); --border-strong:rgba(255,233,218,.38); --surface:#542731; --surface-2:#67313b; --category-ink:#fff5ee; --category-soft:#ead9d2; --category-line:rgba(255,233,218,.30); background-color:#441b24!important; color:#fff5ee; }
.tools-page .vendor-section .vendor-category-heading { min-height:240px; display:flex; align-items:flex-end; gap:20px; padding:34px; margin:0 0 32px; border:1px solid rgba(255,244,224,.28); color:#fffaf2; background-size:cover; background-position:center; border-radius:3px; }
#category-vendors .vendor-category-heading { background-image:linear-gradient(90deg,rgba(12,12,12,.92),rgba(12,12,12,.44) 64%,rgba(12,12,12,.10)),url('../images/vendor-qsc-science-v3.webp'); }
#category-resellers .vendor-category-heading { background-image:linear-gradient(90deg,rgba(41,30,17,.88),rgba(41,30,17,.42) 64%,rgba(41,30,17,.08)),url('../images/vendor-helion-science-v3.webp'); }
#category-resources .vendor-category-heading { background-image:linear-gradient(90deg,rgba(61,12,24,.94),rgba(61,12,24,.64) 58%,rgba(61,12,24,.22)),url('../images/vendor-filler-outlet-science-v2.webp'); }
.tools-page .vendor-section .vendor-category-heading h2,.tools-page .vendor-section .vendor-category-heading p,.tools-page .vendor-section .vendor-category-heading svg { color:#fff8ed!important; }
.tools-page .vendor-section .vendor-category-heading h2 { font-size:clamp(32px,4vw,50px); }
.tools-page .vendor-section .vendor-category-heading p { color:#eee1d2!important; }
#category-vendors .directory-table { border:1px solid rgba(226,203,170,.38)!important; background:rgba(43,38,34,.76)!important; backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px); }
#category-vendors .directory-table th { background:rgba(117,88,54,.30)!important; color:#fff4e4!important; }
#category-vendors .directory-table td,#category-vendors .directory-table a { color:#f6ede2; }
#category-vendors .directory-table tbody tr:hover { background:rgba(223,190,142,.12); }
#category-resellers .directory-table tbody tr { background:rgba(255,252,246,.68)!important; border-color:rgba(108,78,44,.28)!important; border-top:4px solid #a4763f!important; box-shadow:0 18px 40px rgba(77,49,24,.12); backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px); }
#category-resellers .directory-table td,#category-resellers .directory-table a { color:#30271e; }
#category-resources .vendor-resource-list>a { background:rgba(139,78,88,.35)!important; color:#fff5ee; border-color:rgba(255,228,209,.35); box-shadow:0 18px 36px rgba(19,5,8,.2); backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px); }
#category-resources .vendor-resource-list p { color:#ead9d2; }
#category-resources .vendor-resource-list>a>span { border-color:#e9c8aa; }
/* Use the same identities in the homepage directory. */
body .home-page #homeVendors .category-vendors { --ink:#f8f1e8; --ink-soft:#e1d3c1; --border:rgba(245,223,193,.22); --border-strong:rgba(245,223,193,.36); --category-ink:#f8f1e8; --category-soft:#e1d3c1; --category-line:rgba(245,223,193,.28); background:linear-gradient(130deg,rgba(20,18,17,.96),rgba(20,18,17,.68)),url('../images/vendor-qsc-science-v3.webp') center/cover!important; color:#f8f1e8; }
body .home-page #homeVendors .category-resellers { --ink:#29221c; --ink-soft:#574b3e; --border:rgba(78,61,42,.22); --border-strong:rgba(78,61,42,.38); --surface:rgba(255,252,246,.72); --category-ink:#29221c; --category-soft:#574b3e; --category-line:rgba(78,61,42,.28); background:linear-gradient(130deg,rgba(234,219,194,.96),rgba(234,219,194,.72)),url('../images/vendor-helion-science-v3.webp') center/cover!important; color:#29221c; }
body .home-page #homeVendors .category-resources { --ink:#fff5ee; --ink-soft:#ead9d2; --border:rgba(255,233,218,.22); --border-strong:rgba(255,233,218,.38); --surface:rgba(139,78,88,.38); --category-ink:#fff5ee; --category-soft:#ead9d2; --category-line:rgba(255,233,218,.30); background:linear-gradient(130deg,rgba(68,27,36,.96),rgba(68,27,36,.70)),url('../images/vendor-filler-outlet-science-v2.webp') center/cover!important; color:#fff5ee; }
body .home-page #homeVendors .hv-group .vendor-category-heading h3,body .home-page #homeVendors .hv-group .vendor-category-heading p,body .home-page #homeVendors .hv-group li a,body .home-page #homeVendors .hv-group .hv-note,body .home-page #homeVendors .hv-group .hv-contact { color:var(--ink)!important; }
body .home-page #homeVendors .category-vendors li { background:rgba(42,37,33,.48); padding:0 14px; backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); }
body .home-page #homeVendors .category-resellers li { background:rgba(255,252,246,.65)!important; }
body .home-page #homeVendors .category-resources li { background:rgba(142,78,87,.38)!important; }
@media(max-width:900px){#category-vendors .directory-table { background:transparent!important; border:0!important; }#category-vendors .directory-table tbody tr { background:rgba(48,42,37,.78)!important; border-color:rgba(238,218,190,.35)!important; backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px); }}
@media(max-width:650px){body .tools-page #category-vendors.vendor-section,body .tools-page #category-resellers.vendor-section,body .tools-page #category-resources.vendor-section{padding:40px 0 48px!important}.tools-page .vendor-section .vendor-category-heading{min-height:190px;padding:22px;gap:12px}.tools-page .vendor-section .vendor-category-heading h2{font-size:32px}.tools-page .vendor-section .vendor-category-heading svg{width:26px;flex-basis:26px}}

.vendor-mobile-details,.hv-see-more { display:none; }
@media(max-width:900px){
  #category-vendors .directory-table tbody tr.mobile-vendor-ready td:not(:first-child),
  #category-resellers .directory-table tbody tr.mobile-vendor-ready td:not(:first-child) { display:none!important; }
  #category-vendors .directory-table tbody tr.mobile-vendor-ready td:first-child,
  #category-resellers .directory-table tbody tr.mobile-vendor-ready td:first-child { display:block; padding:0; border:0; }
  .vendor-section .mobile-vendor-ready .vendor-profile-detail { display:inline-block; margin:8px 0 0; padding:4px 0; font-size:16px; text-decoration:underline; text-underline-offset:4px; }
  .vendor-section .mobile-vendor-ready .vendor-mobile-details { display:block; margin:16px -2px -2px; cursor:default; }
  .vendor-section .mobile-vendor-ready .vendor-mobile-details summary,
  .hv-group .mobile-vendor-ready .vendor-mobile-details summary { list-style:none; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 0; border-top:1px solid var(--border-strong); font-size:16px; font-weight:600; cursor:pointer; }
  .vendor-mobile-details summary::-webkit-details-marker { display:none; }
  .vendor-mobile-details summary::after { content:''; width:9px; height:9px; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:rotate(45deg); margin:0 4px 5px; transition:transform .15s ease; }
  .vendor-mobile-details[open] summary::after { transform:rotate(225deg); margin-bottom:0; }
  .vendor-mobile-details summary:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
  .vendor-mobile-details dl { margin:0; padding:0 0 4px; }
  .vendor-mobile-details dl>div { display:grid; grid-template-columns:minmax(88px,.7fr) minmax(0,1.3fr); gap:12px; padding:7px 0; font-size:15px; line-height:1.45; }
  .vendor-mobile-details dt { color:var(--ink-soft); }
  .vendor-mobile-details dd { margin:0; overflow-wrap:anywhere; color:var(--ink); }
  .vendor-mobile-details p { margin:0 0 8px; color:var(--ink-soft); }
}
@media(max-width:760px){
  #homeVendors li.mobile-vendor-ready { cursor:pointer; }
  #homeVendors li.mobile-vendor-ready .hv-see-more { display:block; margin-top:8px; font-size:15px; text-decoration:underline; text-underline-offset:4px; }
  #homeVendors li.mobile-vendor-ready .hv-contact,
  #homeVendors li.mobile-vendor-ready .hv-note,
  #homeVendors li.mobile-vendor-ready .hv-arrow,
  #homeVendors li.mobile-vendor-ready > .hv-community-links { display:none!important; }
  #homeVendors li.mobile-vendor-ready .hv-mobile-details { display:block; padding:0 14px; cursor:default; }
  #homeVendors .category-resources li.mobile-vendor-ready .hv-mobile-details { padding:0 16px; }
}

/* BAC price disclosure and direct Korean storefront links. */
.bac-vendor-list,.korean-vendor-list { display:grid; gap:10px; }
.bac-vendor-card { min-width:0; background:#542831; color:#fff; border:1px solid rgba(255,255,255,.34); padding:16px 18px; cursor:pointer; }
.bac-vendor-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.bac-vendor-card .bac-vendor-name,.korean-vendor-link { color:#fff!important; font:400 21px/1.25 var(--font-display); text-decoration:none; overflow-wrap:anywhere; }
.bac-vendor-card .bac-tier { flex:none; color:#fff; letter-spacing:.08em; font-weight:600; }
.bac-vendor-actions { position:relative; min-height:44px; display:flex; align-items:center; padding-right:50px; flex-wrap:wrap; }
.bac-vendor-actions>a { color:#fff!important; text-decoration:underline; text-underline-offset:4px; padding:10px 0; }
.bac-vendor-details { flex:0 0 100%; }
.bac-vendor-details summary { position:absolute; top:0; right:0; display:grid; place-items:center; width:44px; height:44px; list-style:none; cursor:pointer; }
.bac-vendor-details summary::-webkit-details-marker { display:none; }
.bac-vendor-details summary::after { content:''; width:9px; height:9px; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:rotate(45deg); margin-bottom:5px; }
.bac-vendor-details[open] summary::after { transform:rotate(225deg); margin:5px 0 0; }
.bac-vendor-details dl { margin:0; padding:12px 0 0; border-top:1px solid rgba(255,255,255,.3); }
.bac-vendor-details dl>div { display:flex; justify-content:space-between; gap:15px; padding:4px 0; }
.bac-vendor-details dt,.bac-vendor-details dd { margin:0; color:#fff; font-size:15px; }
.korean-vendor-link { display:flex; align-items:center; min-height:48px; padding:12px 18px; background:#542831; border:1px solid rgba(255,255,255,.34); }
.bac-vendor-card a:focus-visible,.bac-vendor-details summary:focus-visible,.korean-vendor-link:focus-visible { outline:2px solid #fff; outline-offset:3px; }
#homeVendors .category-resources .bac-vendor-card a { padding:0; }
@media(min-width:900px){.bac-vendor-list,.korean-vendor-list{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Others uses neutral Navaro glass in both themes. */
:root:is([data-theme],:not([data-theme])) body .tools-page #category-resources.vendor-section { --ink:#202020; --ink-soft:#444; --category-ink:#202020; --category-soft:#444; --surface:#fff; --surface-2:#eee; --border:rgba(0,0,0,.18); --border-strong:rgba(0,0,0,.3); background:#eee!important; color:#202020; }
:root:is([data-theme],:not([data-theme])) body .home-page #homeVendors .category-resources { --ink:#202020; --ink-soft:#444; --category-ink:#202020; --category-soft:#444; --surface:#fff; --border:rgba(0,0,0,.18); --border-strong:rgba(0,0,0,.3); background:rgba(242,242,242,.92)!important; color:#202020; }
:root:is([data-theme],:not([data-theme])) #category-resources .other-resource-group h3,:root:is([data-theme],:not([data-theme])) #category-resources .stock-note,:root:is([data-theme],:not([data-theme])) #homeVendors .category-resources .hv-resource-group h4,:root:is([data-theme],:not([data-theme])) #homeVendors .category-resources .stock-note { color:#202020!important; }
:root:is([data-theme],:not([data-theme])) :is(#category-resources,#homeVendors .category-resources) :is(.bac-vendor-card,.korean-vendor-link) { background:rgba(255,255,255,.82)!important; border:1px solid rgba(0,0,0,.22)!important; color:#202020!important; backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); }
:root:is([data-theme],:not([data-theme])) :is(#category-resources,#homeVendors .category-resources) :is(.bac-vendor-name,.bac-tier,.bac-vendor-actions>a,.bac-vendor-details dt,.bac-vendor-details dd,.korean-vendor-link) { color:#202020!important; }
:root:is([data-theme],:not([data-theme])) :is(#category-resources,#homeVendors .category-resources) .bac-vendor-details dl { border-color:rgba(0,0,0,.25); }
:root[data-theme="dark"] body .tools-page #category-resources.vendor-section { --ink:#f7f7f7; --ink-soft:#ddd; --category-ink:#f7f7f7; --category-soft:#ddd; --surface:#252525; --surface-2:#303030; --border:rgba(255,255,255,.2); --border-strong:rgba(255,255,255,.38); background:#171717!important; color:#f7f7f7; }
:root[data-theme="dark"] body .home-page #homeVendors .category-resources { --ink:#f7f7f7; --ink-soft:#ddd; --category-ink:#f7f7f7; --category-soft:#ddd; --surface:#252525; --border:rgba(255,255,255,.2); --border-strong:rgba(255,255,255,.38); background:rgba(27,27,27,.94)!important; color:#f7f7f7; }
:root[data-theme="dark"] :is(#category-resources,#homeVendors .category-resources) :is(.bac-vendor-card,.korean-vendor-link) { background:rgba(43,43,43,.86)!important; border-color:rgba(255,255,255,.3)!important; color:#fff!important; }
:root[data-theme="dark"] :is(#category-resources,#homeVendors .category-resources) :is(.bac-vendor-name,.bac-tier,.bac-vendor-actions>a,.bac-vendor-details dt,.bac-vendor-details dd,.korean-vendor-link),:root[data-theme="dark"] #category-resources .other-resource-group h3,:root[data-theme="dark"] #category-resources .stock-note,:root[data-theme="dark"] #homeVendors .category-resources .hv-resource-group h4,:root[data-theme="dark"] #homeVendors .category-resources .stock-note { color:#fff!important; }
:root[data-theme="dark"] :is(#category-resources,#homeVendors .category-resources) .bac-vendor-details dl { border-color:rgba(255,255,255,.3); }

/* Readable neutral and burgundy directory surfaces in either theme. */
:root:is([data-theme],:not([data-theme])) body .tools-page #category-vendors.vendor-section { --ink:#f8f8f8; --ink-soft:#e4e4e4; --category-ink:#f8f8f8; --category-soft:#e4e4e4; --surface:#181818; --surface-2:#252525; --border:rgba(255,255,255,.22); --border-strong:rgba(255,255,255,.38); background-color:#121212!important; background-image:none!important; }
:root:is([data-theme],:not([data-theme])) body .tools-page #category-resellers.vendor-section { --ink:#202020; --ink-soft:#444; --category-ink:#202020; --category-soft:#444; --surface:#fafafa; --surface-2:#ededed; --border:rgba(0,0,0,.18); --border-strong:rgba(0,0,0,.32); background-color:#e8e8e8!important; background-image:none!important; }
:root:is([data-theme],:not([data-theme])) body .tools-page #category-resources.vendor-section { --ink:#fff; --ink-soft:#f3e2e5; --category-ink:#fff; --category-soft:#f3e2e5; --surface:#641f2d; --surface-2:#752838; --border:rgba(255,255,255,.25); --border-strong:rgba(255,255,255,.4); background-color:#481723!important; background-image:none!important; }
:root:is([data-theme],:not([data-theme])) body .tools-page #category-vendors .directory-table { background:#181818!important; }
:root:is([data-theme],:not([data-theme])) body .tools-page #category-vendors .directory-table thead th { background:#303030!important; color:#fff!important; }
:root:is([data-theme],:not([data-theme])) body .tools-page #category-vendors .directory-table tbody tr { background:#181818!important; }
:root:is([data-theme],:not([data-theme])) body .tools-page #category-vendors .directory-table tbody td,
:root:is([data-theme],:not([data-theme])) body .tools-page #category-vendors .directory-table tbody td a,
:root:is([data-theme],:not([data-theme])) body .tools-page #category-vendors .directory-table tbody td summary,
:root:is([data-theme],:not([data-theme])) body .tools-page #category-vendors .directory-table tbody td dt,
:root:is([data-theme],:not([data-theme])) body .tools-page #category-vendors .directory-table tbody td dd { color:#f8f8f8!important; background:transparent!important; }
:root:is([data-theme],:not([data-theme])) body .tools-page #category-resellers .directory-table tbody tr { background:#fafafa!important; border-color:#aaa!important; border-top-color:#9a263c!important; }
:root:is([data-theme],:not([data-theme])) body .tools-page #category-resellers .directory-table tbody td,
:root:is([data-theme],:not([data-theme])) body .tools-page #category-resellers .directory-table tbody td a,
:root:is([data-theme],:not([data-theme])) body .tools-page #category-resellers .directory-table tbody td summary,
:root:is([data-theme],:not([data-theme])) body .tools-page #category-resellers .directory-table tbody td dt,
:root:is([data-theme],:not([data-theme])) body .tools-page #category-resellers .directory-table tbody td dd { color:#202020!important; background:transparent!important; }
:root:is([data-theme],:not([data-theme])) body .tools-page #category-vendors .directory-table tbody td::before { color:#e4e4e4!important; }
:root:is([data-theme],:not([data-theme])) body .tools-page #category-resellers .directory-table tbody td::before { color:#444!important; }
:root:is([data-theme],:not([data-theme])) body .tools-page #category-resources .vendor-resource-list>a { background:#641f2d!important; color:#fff!important; }
:root:is([data-theme],:not([data-theme])) body .tools-page #category-resources .vendor-resource-list p,:root:is([data-theme],:not([data-theme])) body .tools-page #category-resources .vendor-resource-list strong { color:#fff!important; }
#category-vendors .vendor-category-heading,#category-resellers .vendor-category-heading,#category-resources .vendor-category-heading { background-blend-mode:normal; }
#category-resellers .vendor-category-heading { background-image:linear-gradient(90deg,rgba(18,18,18,.92),rgba(18,18,18,.48) 64%,rgba(18,18,18,.1)),url('../images/vendor-helion-science-v3.webp'); }
:root:is([data-theme],:not([data-theme])) body .home-page #homeVendors .category-vendors { --ink:#f8f8f8; --ink-soft:#e4e4e4; --category-ink:#f8f8f8; --category-soft:#e4e4e4; --surface:#181818; --border:rgba(255,255,255,.22); --border-strong:rgba(255,255,255,.38); background:linear-gradient(130deg,rgba(18,18,18,.97),rgba(18,18,18,.76)),url('../images/vendor-qsc-science-v3.webp') center/cover!important; }
:root:is([data-theme],:not([data-theme])) body .home-page #homeVendors .category-resellers { --ink:#202020; --ink-soft:#444; --category-ink:#202020; --category-soft:#444; --surface:#fafafa; --border:rgba(0,0,0,.18); --border-strong:rgba(0,0,0,.32); background:linear-gradient(130deg,rgba(245,245,245,.97),rgba(245,245,245,.88)),url('../images/vendor-helion-science-v3.webp') center/cover!important; }
:root:is([data-theme],:not([data-theme])) body .home-page #homeVendors .category-resources { --ink:#fff; --ink-soft:#f3e2e5; --category-ink:#fff; --category-soft:#f3e2e5; --surface:#641f2d; --border:rgba(255,255,255,.25); --border-strong:rgba(255,255,255,.4); background:linear-gradient(130deg,rgba(72,23,35,.97),rgba(72,23,35,.80)),url('../images/vendor-filler-outlet-science-v2.webp') center/cover!important; }
:root:is([data-theme],:not([data-theme])) body .home-page #homeVendors .category-vendors li { background:rgba(24,24,24,.9)!important; }
:root:is([data-theme],:not([data-theme])) body .home-page #homeVendors .category-resellers li { background:#fafafa!important; border-left-color:#9a263c!important; }
:root:is([data-theme],:not([data-theme])) body .home-page #homeVendors .category-resources li { background:#641f2d!important; }

/* A vendor row is one surface; its cells must not paint separate rectangles. */
:root:is([data-theme],:not([data-theme])) body .tools-page #category-vendors .directory-table tbody tr > td,
:root:is([data-theme],:not([data-theme])) body .tools-page #category-resellers .directory-table tbody tr > td { background:transparent!important; background-image:none!important; box-shadow:none!important; border-radius:0!important; }
:root:is([data-theme],:not([data-theme])) body .tools-page #category-vendors .directory-table tbody tr > td > a,
:root:is([data-theme],:not([data-theme])) body .tools-page #category-resellers .directory-table tbody tr > td > a { background:transparent!important; box-shadow:none!important; }
@media(max-width:900px){
  #category-vendors .directory-table tbody tr > td.field-empty,
  #category-resellers .directory-table tbody tr > td.field-empty { display:none!important; }
}

/* Canadian reseller surfaces must follow dark mode too. */
:root[data-theme="dark"] body .tools-page #category-resellers.vendor-section {
  --ink:#f7f7f7; --ink-soft:#e2e2e2; --category-ink:#f7f7f7; --category-soft:#e2e2e2;
  --surface:#202020; --surface-2:#292929; --border:rgba(255,255,255,.2); --border-strong:rgba(255,255,255,.38);
  background-color:#141414!important; color:#f7f7f7!important;
}
:root[data-theme="dark"] body .tools-page #category-resellers .directory-table tbody tr { background:#202020!important; border-color:#777!important; border-top-color:#bd5063!important; }
:root[data-theme="dark"] body .tools-page #category-resellers .directory-table tbody td,
:root[data-theme="dark"] body .tools-page #category-resellers .directory-table tbody td a,
:root[data-theme="dark"] body .tools-page #category-resellers .directory-table tbody td summary,
:root[data-theme="dark"] body .tools-page #category-resellers .directory-table tbody td dt,
:root[data-theme="dark"] body .tools-page #category-resellers .directory-table tbody td dd { color:#f7f7f7!important; }
:root[data-theme="dark"] body .tools-page #category-resellers .directory-table tbody td::before { color:#e2e2e2!important; }
:root[data-theme="dark"] body .home-page #homeVendors .category-resellers {
  --ink:#f7f7f7; --ink-soft:#e2e2e2; --category-ink:#f7f7f7; --category-soft:#e2e2e2;
  --surface:#202020; --border:rgba(255,255,255,.2); --border-strong:rgba(255,255,255,.38);
  background:linear-gradient(130deg,rgba(20,20,20,.97),rgba(20,20,20,.8)),url('../images/vendor-helion-science-v3.webp') center/cover!important;
}
:root[data-theme="dark"] body .home-page #homeVendors .category-resellers li { background:#202020!important; border-color:#777!important; border-left-color:#bd5063!important; }

/* Compact burgundy links for the two Others groups. */
#category-resources .other-resource-group { margin-top:30px; }
#category-resources .other-resource-group h3 { margin:0 0 14px; color:#fff!important; font:400 clamp(23px,2.3vw,30px)/1.2 var(--font-display); }
#category-resources .stock-note { color:#f2e5e8; margin:0 0 14px; }
:root:is([data-theme],:not([data-theme])) body .tools-page #category-resources .vendor-resource-list>a { min-height:0!important; padding:14px 17px!important; align-items:center; gap:14px; background:#542831!important; border:1px solid rgba(255,255,255,.32); box-shadow:none; }
#category-resources .vendor-resource-list strong { font-size:clamp(20px,2vw,24px); line-height:1.2; }
#category-resources .vendor-resource-list p { margin:4px 0 0; font-size:15px; }
#category-resources .vendor-resource-list>a>span { width:32px; height:32px; flex-basis:32px; }
#category-resources .vendor-resource-list>a>span svg { width:19px; height:19px; }
#category-resources .all-bac-link { display:inline-block; margin-top:18px; color:#fff!important; text-underline-offset:4px; }
#homeVendors .hv-resource-group { margin-top:24px; }
#homeVendors .hv-resource-group h4 { margin:0 0 12px; color:#fff!important; font:400 22px/1.25 var(--font-display); }
#homeVendors .hv-resource-group .stock-note { color:#f2e5e8; margin:0 0 12px; font-size:15px; }
:root:is([data-theme],:not([data-theme])) body .home-page #homeVendors .category-resources li { background:#542831!important; }
#homeVendors .category-resources li>a { padding:12px 14px!important; }
#homeVendors .category-resources .hv-row-main strong { font-size:19px; }
#homeVendors .category-resources .hv-contact { font-size:15px; }
#homeVendors .category-resources .all-bac-link { display:inline-block; margin:14px 0 0; color:#fff!important; text-underline-offset:4px; }
@media(max-width:650px){#category-resources .vendor-resource-list>a{min-height:0!important;padding:12px 15px!important}#category-resources .vendor-resource-list{gap:10px}#homeVendors .hv-resource-group h4{font-size:20px}}

/* Mobile vendor names, warehouse flags and separate expand control. */
.vendor-mobile-flag { display:none; }
@media(max-width:900px){
  .vendor-section .directory-table tr.mobile-vendor-ready td:first-child { position:relative; }
  .vendor-section .directory-table tr.mobile-vendor-ready .vendor-profile-link { display:block; padding-right:40px; }
  .vendor-section .directory-table tr.mobile-vendor-ready .vendor-mobile-flag { display:block; position:absolute; top:4px; right:0; width:28px; height:14px; object-fit:contain; border:1px solid rgba(128,128,128,.35); }
  .vendor-section .vendor-mobile-actions { position:relative; margin-top:8px; }
  .vendor-section .mobile-vendor-ready .vendor-mobile-actions .vendor-profile-detail { display:inline-flex; align-items:center; min-height:44px; margin:0; padding:6px 0; }
  .vendor-section .mobile-vendor-ready .vendor-mobile-actions .vendor-mobile-details { position:static; margin:0!important; padding:0; }
  .vendor-section .mobile-vendor-ready .vendor-mobile-actions .vendor-mobile-details summary { position:absolute; top:0; right:0; display:flex; align-items:center; justify-content:center; width:44px; height:44px; padding:0; border:0; }
  .vendor-section .mobile-vendor-ready .vendor-mobile-actions .vendor-mobile-details dl { border-top:1px solid var(--border-strong); padding:10px 0 0; }
}
@media(max-width:760px){
  #homeVendors li.mobile-vendor-ready .hv-row-main { display:flex; align-items:flex-start; gap:10px; }
  #homeVendors li.mobile-vendor-ready .hv-row-main strong { min-width:0; flex:1; overflow-wrap:anywhere; }
  #homeVendors li.mobile-vendor-ready .hv-row-main .vendor-mobile-flag { display:block; flex:0 0 28px; width:28px; height:14px; margin-top:4px; border:1px solid rgba(128,128,128,.35); }
  #homeVendors li.mobile-vendor-ready .hv-vendor-actions { position:relative; margin:0 14px 10px; }
  #homeVendors li.mobile-vendor-ready .hv-vendor-actions .hv-see-more { display:inline-flex!important; align-items:center; min-height:44px; margin:0!important; padding:6px 0!important; }
  #homeVendors li.mobile-vendor-ready .hv-vendor-actions .hv-mobile-details { position:static; margin:0!important; padding:0!important; }
  #homeVendors li.mobile-vendor-ready .hv-vendor-actions .hv-mobile-details summary { position:absolute; top:0; right:0; display:flex; align-items:center; justify-content:center; width:44px; height:44px; padding:0; border:0; }
  #homeVendors li.mobile-vendor-ready .hv-vendor-actions .hv-mobile-details dl { border-top:1px solid var(--border-strong); padding:10px 0 0; }
}
