/* Shared department browser: home flyout, header navigation and full directory. */
.side-categories {max-height:410px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.side-categories > button {flex-shrink:0;min-height:44px;padding:10px 8px;border-radius:0;background:transparent!important;color:#26313b;font-weight:500;text-align:start}
.side-categories .category-label {min-width:0;align-items:center}
.side-categories .category-label > span {white-space:normal;overflow:visible;text-overflow:clip;line-height:1.45;font-size:13px}
.side-categories > button.is-active {background:#f2f4f5!important;color:#202c34;box-shadow:inset 3px 0 #226180}
.side-category-flyout {left:100%;width:min(940px,calc(100vw - 310px));min-height:460px;max-height:min(620px,calc(100dvh - 190px));background:#fff;border-radius:0 6px 6px 0;padding:24px;box-shadow:0 14px 32px #182c4021;visibility:hidden}
.side-panel.is-open .side-category-flyout {visibility:visible}
.side-panel:not(.is-open) .side-category-flyout {opacity:0;pointer-events:none}
.mega-category-rail,.category-popup-rail {background:#fff;overscroll-behavior:contain;scrollbar-width:thin;border-inline-end:1px solid #e4e7eb}
.mega-category-rail button,.category-popup-rail button {background:transparent;border:0;border-radius:0;min-height:46px;padding:11px 16px;line-height:1.45;font-size:14px;font-weight:500;text-align:start}
.mega-category-rail button span,.category-popup-rail button span {min-width:0;white-space:normal;overflow-wrap:anywhere}
.mega-category-rail button.is-active,.category-popup-rail button.is-active {background:#f2f4f5;font-weight:650;color:#162730}
.mega-category-rail button.is-active::before,.category-popup-rail button.is-active::before {background:#226180;border-radius:0;inset-inline-start:0;top:0;bottom:0}
.category-popup-overlay {z-index:1250;background:#19262e70}
.category-popup {z-index:1251;inset:48px max(20px,calc((100vw - 1280px)/2)) 40px}
.category-popup-shell {border-radius:8px;box-shadow:0 16px 64px #15263030}
.category-popup-body {grid-template-columns:260px minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
.category-popup-content {padding:26px 30px;scrollbar-width:thin;overscroll-behavior:contain}
.category-popup-head {gap:24px;padding:16px 22px}
.category-directory-search {display:flex;align-items:center;gap:10px;width:340px;max-width:50%;margin-inline-start:auto;border:1px solid #d8dee4;border-radius:5px;padding:8px 12px;background:#fff}
.category-directory-search input {width:100%;min-width:0;padding:0;border:0;background:transparent;outline:0;box-shadow:none;font-size:14px;color:#26313b}
.category-directory-search:focus-within {outline:2px solid #226180;outline-offset:2px}
.category-directory-search svg {width:18px;height:18px;flex-shrink:0;color:#637381}
.category-browser {color:#26313b;letter-spacing:0}
.category-browser button {appearance:none;border:0;background:transparent;box-shadow:none;color:inherit;font-family:inherit;letter-spacing:0;cursor:pointer;text-align:start;border-radius:3px}
.category-browser button:hover,.category-browser-result:hover {color:#226180;text-decoration:underline}
.category-browser button:focus-visible,.category-browser-result:focus-visible {outline:2px solid #226180;outline-offset:3px}
.category-browser svg,.category-browser-search-results svg {width:17px;height:17px;flex-shrink:0;stroke-width:1.7}
.category-browser-heading {display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:24px}
.category-browser-heading h3 {margin:0;color:#16232d;font-size:18px;font-weight:650;line-height:1.4;overflow-wrap:anywhere}
.category-browser-heading > button {display:flex;align-items:center;gap:7px;flex-shrink:0;padding:3px 0;color:#405a68;font-size:13px}
.category-browser-tiles {display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:24px 16px;padding:0 0 28px;border-bottom:1px solid #e8ebee;margin-bottom:26px}
.category-browser-tiles > button {display:flex;flex-direction:column;align-items:center;gap:12px;padding:0;font-size:13px;font-weight:500;line-height:1.5;text-align:center;min-width:0}
.category-browser-tiles > button > span:last-child {max-width:100%;min-height:39px;overflow-wrap:anywhere}
.category-browser-media {position:relative;display:grid;place-items:center;isolation:isolate;width:84px;height:84px;max-width:100%;aspect-ratio:1;border-radius:50%;overflow:hidden;background:#f2f4f5;color:#617c88;flex-shrink:0}
.category-browser-media > svg {width:32px;height:32px}
.category-department-icon {width:18px;height:18px;flex:0 0 18px;stroke-width:1.7}
.category-browser--directory .category-browser-tiles {border:0;margin:0;padding:0;row-gap:28px}
.category-browser-tile-label svg {display:inline-block;width:12px;height:12px;margin-inline-start:4px;vertical-align:middle}
.category-browser-media > img {position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#f2f4f5;z-index:1}
.category-browser-tiles > button:hover .category-browser-media {background:#eaf0f2}
.circle-category > .category-browser-media {margin-inline:auto}
.category-browser-groups {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px 24px}
.category-browser-groups section {min-width:0;border:0;background:none;box-shadow:none;border-radius:0;padding:0}
.category-browser-groups h4 {margin:0 0 10px;font-size:14px;font-weight:650;line-height:1.5}
.category-browser-groups h4 button {display:flex;align-items:center;gap:6px;padding:0;line-height:inherit;overflow-wrap:anywhere}
.category-browser-groups ul {list-style:none;margin:0;padding:0;display:grid;gap:8px}
.category-browser-groups li button {display:flex;align-items:center;gap:6px;width:100%;padding:0;font-size:13px;line-height:1.5;color:#5b6570;overflow-wrap:anywhere}
.category-browser-groups li svg {width:13px;height:13px}
.category-browser-more {display:flex;align-items:center;gap:7px;margin-top:12px;padding:4px 0!important;background:transparent!important;border:0;color:#226180!important;font-size:12px;cursor:pointer}
.category-browser-breadcrumb {display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin:0 0 18px;font-size:12px;line-height:1.5;color:#687784}
.category-browser-breadcrumb button {padding:0}
.category-browser-breadcrumb svg {width:12px;height:12px}
.category-browser-empty {display:grid;gap:14px;font-size:14px;line-height:1.5}
.category-browser-empty button {display:flex;align-items:center;gap:8px;color:#226180}
.category-browser-search-results > p {font-size:13px;color:#65717c;margin:0 0 15px}
.category-browser-result {display:flex;align-items:center;gap:14px;width:100%;padding:14px 0;border:0;border-bottom:1px solid #edf0f2;background:#fff;color:#283b47;text-align:start;cursor:pointer}
.category-browser-result > span {display:grid;gap:4px;min-width:0;flex:1}
.category-browser-result strong {font-size:14px;font-weight:600;overflow-wrap:anywhere}
.category-browser-result small {font-size:12px;font-weight:400;color:#70808c;overflow-wrap:anywhere}
@media(min-width:1200px) {.category-popup-content .category-browser-tiles {grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:1050px) {.category-popup-body {grid-template-columns:220px minmax(0,1fr)}.category-browser-tiles {grid-template-columns:repeat(3,minmax(0,1fr))}.category-browser-groups {grid-template-columns:repeat(2,minmax(0,1fr))}.side-category-flyout {width:calc(100vw - 270px)}}
@media(max-width:700px) {
  .category-popup {inset:0;height:100dvh}
  .category-popup-shell {border:0;border-radius:0}
  .category-popup-head {display:grid;grid-template-columns:minmax(0,1fr) 36px;gap:14px;padding:16px}
  .category-popup-title h2 {font-size:17px}
  .category-directory-search {grid-column:1/-1;grid-row:2;max-width:none;width:100%;margin:0}
  .category-popup-head > .close-button {grid-column:2;grid-row:1;width:36px;height:36px}
  .category-popup-body {grid-template-columns:125px minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
  .category-popup-rail {padding:0;border-bottom:0;border-inline-end:1px solid #e4e7eb}
  .category-popup-rail button {gap:7px;padding:12px 10px;font-size:12px;min-height:56px}
  .category-popup-rail button .cat-icon,.category-popup-rail button .category-department-icon {display:none}
  .category-popup-content {padding:18px 14px}
  .category-browser-heading {display:grid;gap:8px;margin-bottom:20px}
  .category-browser-heading h3 {font-size:16px}
  .category-browser-heading > button {font-size:12px;justify-self:start}
  .category-browser-tiles {grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 10px;padding-bottom:22px}
  .category-browser-media {width:64px;height:64px}
  .category-browser-media > svg {width:26px;height:26px}
  .category-browser-tiles > button {font-size:12px;gap:9px}
  .category-browser-groups {grid-template-columns:1fr;gap:24px}
  .category-browser-groups h4 {font-size:13px}
  .category-browser-groups li button {font-size:12px}
  .category-popup-body.is-searching {grid-template-columns:minmax(0,1fr)}
  .category-popup-body.is-searching .category-popup-rail {display:none}
  .category-browser-result {gap:10px}
}
@media(prefers-reduced-motion:reduce) {.side-category-flyout,.category-popup,.category-popup-overlay {transition:none}}

/* Averon original illustrated directory: scoped to the category drawer and browser. */
.category-popup-shell {border:1px solid #dce2e8;border-radius:22px;overflow:hidden;background:#fff;box-shadow:0 24px 80px #10283c40}
.category-popup-head {background:#102b40;color:#fff;padding:22px 26px;border-bottom:3px solid #d8af61}
.category-popup-head h2,.category-popup-head .category-popup-title {color:#fff}
.category-popup-head .close-button {color:#fff;background:#ffffff15;border:1px solid #ffffff35;border-radius:12px}
.category-directory-search {border-color:#e4dac5;border-radius:12px;box-shadow:0 2px 8px #071e3020;background:#fff}
.category-directory-search:focus-within {outline-color:#d8af61}
.category-popup-body {grid-template-columns:244px minmax(0,1fr);background:#fff}
.category-popup-rail {background:#f5f7f9;padding:14px 10px;border-inline-end:1px solid #e5e9ee}
.category-popup-rail button {margin-bottom:5px;border-radius:12px;padding:12px 14px;color:#425366;transition:background-color .15s,color .15s}
.category-popup-rail button.is-active {color:#102b40;background:#fff5dc;box-shadow:inset 3px 0 #c59a47;font-weight:650}
.category-popup-rail button.is-active::before {display:none}
.category-popup-content {padding:25px 28px;background:linear-gradient(180deg,#fcfbf7 0,#fff 280px)}
.category-browser {color:#243b50}
.category-browser-heading {align-items:center;gap:18px;padding:23px 25px;margin:0 0 22px;border-radius:18px;background:#102b40;color:#fff;position:relative;overflow:hidden}
.category-browser-heading::after {content:"";position:absolute;width:104px;height:104px;border:1px solid #d8af6145;border-radius:50%;right:21%;top:-58px;pointer-events:none}
.category-browser-heading-copy {position:relative;min-width:0}
.category-browser-eyebrow {display:block;color:#e3be7b;font-size:10px;font-weight:700;letter-spacing:.2em;margin-bottom:7px}
.category-browser-heading h3 {color:#fff;font-size:21px;line-height:1.25;font-weight:650;max-width:100%}
.category-browser-heading > button {border:1px solid #d8af6177;background:#ffffff0d;color:#fff;border-radius:10px;padding:10px 12px;font-size:12px;position:relative;z-index:1}
.category-browser-heading > button:hover {color:#ffdda0;background:#ffffff18}
.category-browser-breadcrumb {gap:8px;margin:0 0 16px;color:#677b8d;font-size:11px}
.category-browser-breadcrumb button {background:#f0f3f6;border-radius:7px;padding:5px 8px}
.category-browser-breadcrumb > span {color:#102b40;font-weight:650}
.category-browser-tiles {grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;padding-bottom:25px;border-bottom:1px solid #e5e9ee}
.category-browser-tiles > button {position:relative;justify-content:flex-start;align-items:stretch;gap:12px;text-align:start;padding:11px 11px 15px;background:#fff;border:1px solid #e1e7eb;border-radius:17px;box-shadow:0 3px 8px #17324905;transition:transform .15s,border-color .15s,box-shadow .15s}
.category-browser-tiles > button:hover {text-decoration:none;transform:translateY(-3px);border-color:#c7a05b;box-shadow:0 8px 20px #17324912;color:#102b40}
.category-browser-media--original {width:100%;height:auto;max-width:none;border-radius:13px;background:transparent;aspect-ratio:1;isolation:auto}
.category-browser-media--original > img {display:block;position:static;width:100%;height:100%;object-fit:contain;background:transparent;border-radius:13px}
.category-browser-tile-label {font-size:12px;line-height:1.45;font-weight:600;min-height:35px;padding-inline-end:16px;color:#203b51}
.category-browser-tiles > button > span:last-child {min-height:0}
.category-browser-tile-arrow {position:absolute;bottom:17px;inset-inline-end:12px;width:15px;height:15px;color:#b78d3f}
.category-browser-tile-arrow svg {width:14px;height:14px}
.category-browser-groups {gap:14px;grid-template-columns:repeat(2,minmax(0,1fr))}
.category-browser-groups section {border:1px solid #e1e7eb;border-radius:15px;padding:18px;background:#fff}
.category-browser-groups h4 {padding-bottom:12px;margin-bottom:12px;border-bottom:1px solid #edf0f2}
.category-browser-groups h4 button {color:#102b40;font-size:14px}
.category-browser-groups li button {color:#596d7e;font-size:12px;line-height:1.5}
.category-browser-groups li button:hover {color:#9d742a}
.category-browser-more {color:#9b7126!important;font-weight:600}
.category-browser-result {border:1px solid #e0e7ec;margin-bottom:9px;padding:14px 16px;border-radius:12px}
.category-browser-result:hover {background:#fff9ec;border-color:#d9bb7b;text-decoration:none}
.category-browser-result strong {color:#17344a}
.category-browser button:focus-visible,.category-popup-rail button:focus-visible,.category-browser-result:focus-visible {outline:3px solid #c8a158;outline-offset:3px}
.category-browser--directory .category-browser-tiles {row-gap:14px}
.circle-category > .category-browser-media--original {width:84px;height:84px}
@media(min-width:1200px){.category-popup-content .category-browser-tiles{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:1050px){.category-popup-body{grid-template-columns:208px minmax(0,1fr)}.category-browser-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}.category-popup-content{padding:20px}.category-browser-heading{padding:20px}.category-browser-heading h3{font-size:18px}}
@media(max-width:700px){
 .category-popup-shell{border:0;border-radius:0}.category-popup-head{padding:16px}.category-popup-body{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}
 .category-popup-rail{display:flex;gap:8px;padding:10px 12px;border-inline-end:0;border-bottom:1px solid #e5e9ee;overflow-x:auto;overflow-y:hidden;max-height:84px;scrollbar-width:thin}
 .category-popup-rail button{flex:0 0 145px;min-height:54px;margin:0;padding:8px 12px;border:1px solid #e0e6eb;background:#fff;font-size:11px}
 .category-popup-rail button.is-active{background:#fff5dc;border-color:#cfb071;box-shadow:none}
 .category-popup-content{padding:16px}.category-browser-heading{padding:17px;gap:13px;border-radius:14px;display:flex}.category-browser-heading h3{font-size:17px}.category-browser-heading > button{font-size:11px;padding:8px;white-space:nowrap}
 .category-browser-tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.category-browser-tiles > button{padding:10px;border-radius:14px}.category-browser-media--original{width:100%;height:auto}.category-browser-tile-label{font-size:12px;min-height:35px}
 .category-browser-groups{grid-template-columns:minmax(0,1fr)}.category-browser-groups section{padding:16px}.category-browser-breadcrumb{font-size:10px}.category-browser--directory .category-browser-tiles{row-gap:12px}
 .category-popup-body.is-searching{grid-template-rows:minmax(0,1fr)}.circle-category > .category-browser-media--original{width:64px;height:64px}
}
@media(prefers-reduced-motion:reduce){.category-browser-tiles > button,.category-popup-rail button{transition:none}}

/* Compact Averon directory. Scoped to the dialog so home navigation is unchanged. */
.category-popup .category-popup-head{min-height:60px;padding:9px 16px;gap:16px;border-bottom-width:2px}
.category-popup .category-popup-title h2{font-size:17px}
.category-popup .category-popup-head>.close-button{width:40px;height:40px;min-width:40px;min-height:40px;padding:0;border-radius:10px}
.category-popup .category-directory-search{min-height:40px;padding:6px 10px;border-radius:10px}
.category-popup .category-popup-body{grid-template-columns:224px minmax(0,1fr)}
.category-popup .category-popup-rail{padding:8px}
.category-popup .category-popup-rail button{min-height:42px;margin-bottom:4px;padding:8px 10px;gap:9px;border-radius:10px;font-size:13px;line-height:1.4}
.category-popup .category-popup-content{padding:16px}
.category-popup .category-browser-heading{min-height:50px;padding:5px 14px;margin:0 0 12px;gap:12px;border-radius:12px}
.category-popup .category-browser-heading::after,.category-popup .category-browser-eyebrow{display:none}
.category-popup .category-browser-heading h3{font-size:18px;line-height:1.3}
.category-popup .category-browser-heading>button{min-height:38px;padding:7px 10px;border-radius:8px;font-size:12px}
.category-popup .category-browser-breadcrumb{margin-bottom:10px;gap:6px}
.category-popup .category-browser-tiles{grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;padding-bottom:16px;margin-bottom:16px}
.category-popup .category-browser--directory .category-browser-tiles{padding:0;margin:0;row-gap:10px}
.category-popup .category-browser-tiles>button{gap:8px;padding:8px;border-radius:12px}
.category-popup .category-browser-media--original{width:100%;height:auto;max-width:120px;margin-inline:auto;border-radius:10px}
.category-popup .category-browser-media--original>img{border-radius:10px}
.category-popup .category-browser-tiles>button>.category-browser-tile-label{min-height:34px;padding-inline-end:12px;font-size:12px;line-height:1.4}
.category-popup .category-browser-tile-arrow{bottom:11px;inset-inline-end:8px}
.category-popup .category-browser-groups{gap:12px}
.category-popup .category-browser-groups section{padding:14px;border-radius:12px}
.category-popup .category-browser-groups h4{padding-bottom:9px;margin-bottom:9px}
.category-popup .category-browser-result{gap:10px;padding:10px 12px;margin-bottom:8px}
@media(max-width:1199px){.category-popup .category-browser-tiles{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:1050px){.category-popup .category-popup-body{grid-template-columns:190px minmax(0,1fr)}.category-popup .category-browser-tiles{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:850px){.category-popup .category-browser-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){
 .category-popup .category-popup-head{grid-template-columns:minmax(0,1fr) 40px;gap:8px;padding:9px 12px}
 .category-popup .category-popup-body{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}
 .category-popup .category-popup-body.is-searching{grid-template-rows:minmax(0,1fr)}
 .category-popup .category-popup-rail{gap:6px;padding:8px 12px;max-height:68px}
 .category-popup .category-popup-rail button{flex:0 0 156px;min-height:44px;margin:0;padding:6px 10px;font-size:11px}
 .category-popup .category-browser-heading{padding:5px 10px;gap:10px}
 .category-popup .category-browser-heading h3{font-size:16px}
 .category-popup .category-browser-heading>button{min-height:40px;padding:7px 9px;font-size:11px}
 .category-popup .category-browser-breadcrumb button,.category-popup .category-browser-groups button{min-height:40px}
 .category-popup .category-browser-result{min-height:48px}
}
@media(max-width:480px){.category-popup .category-browser-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Keep the browse focus heading accessible without repeating the selected rail label visually. */
.category-popup .category-browser-heading{position:absolute;width:1px;height:1px;min-height:0;padding:0;margin:0;border:0;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap}
.category-popup .category-browser-heading>button{display:none}
