.department-menu { position: relative; }
.department-menu > summary {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  min-height: 44px;
  list-style: none;
  cursor: pointer;
  font-size: .84rem;
  font-weight: 600;
  white-space: nowrap;
}
.department-menu > summary::-webkit-details-marker { display: none; }
.department-menu > summary .icon { width: 13px; height: 13px; }
.department-menu[open] > summary { color: var(--orange); }
.department-panel {
  position: absolute;
  z-index: 3;
  top: calc(100% + 2px);
  left: 0;
  width: min(510px, 58vw);
  max-height: min(65dvh, 590px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px 18px;
  background: #22251f;
  color: #f7f6f1;
  border: 1px solid #575a50;
  border-radius: 6px;
  box-shadow: 0 16px 36px #0005;
}
.department-panel .all-departments {
  color: var(--orange);
  border-bottom: 1px solid #54574d;
  width: 100%;
}
#desktop-collections { display: grid; }
#desktop-collections > a,
#desktop-collections summary,
.collection-branch > div > a {
  display: flex;
  align-items: center;
  min-height: 42px;
  cursor: pointer;
  padding: 7px 3px;
  font-size: .86rem;
  line-height: 1.35;
  white-space: normal;
}
.collection-branch > summary { list-style: none; }
.collection-branch > summary::-webkit-details-marker { display: none; }
.collection-branch > summary::after {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 5px 3px auto;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  transform: rotate(45deg);
}
.collection-branch[open] > summary::after { transform: rotate(225deg); margin-bottom: -3px; }
.collection-branch > div {
  margin-inline-start: 9px;
  border-inline-start: 1px solid var(--line);
  padding-inline-start: 11px;
}
.department-panel .collection-branch > div > a { font-weight: 450; }
.resource-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 22px; }
.resource-groups section { align-self: start; }
.resource-groups h2 { font: 700 1.65rem/1.2 var(--display); margin-bottom: 8px; }
.resource-groups a,
.resource-groups button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 44px;
  width: 100%;
  padding: 8px 0;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font: 500 .9rem/1.4 var(--sans);
}
.resource-groups a:hover, .resource-groups button:hover,
.department-panel a:hover, .department-panel summary:hover { color: var(--orange); }
#catalog-controls { flex-wrap: wrap; }
.catalog-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
#collection-crumbs { color: var(--muted, #636363); font-size: .8rem; }
#collection-crumbs a { text-decoration: underline; text-underline-offset: 3px; }
.related-collections {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 5px 8px;
}
.related-collections a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 5px 8px;
  font-size: .8rem;
}
.related-collections a:hover { text-decoration: underline; }
.catalog-shortcuts { display: flex; flex-wrap: wrap; gap: 2px 14px; border-bottom: 1px solid var(--line); }
.catalog-shortcuts a { display: inline-flex; align-items: center; min-height: 44px; font-size: .85rem; }
.brand-logo, #catalog-thumbnail {
  width: 49px;
  height: 49px;
  padding: 4px;
  flex: none;
  object-fit: contain;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
}
.collection-heading { display: flow-root; }
#catalog-thumbnail { float: right; width: 76px; height: 76px; margin: 0 0 8px 12px; }
#campaign-groups section + section { margin-top: 32px; }
#campaign-groups h2 { margin: 0 0 13px; font: 700 1.8rem/1.2 var(--display); }
.campaign-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(255px, 100%), 1fr)); gap: 14px; align-items: start; }
.campaign-grid > * { display: block; min-width: 0; }
.campaign-grid :is(img,video) { display: block; width: 100%; height: auto; max-height: 330px; object-fit: contain; background: #fff; }
.campaign-grid video + a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; }
#stock .inner-heading a, #stock-reset, #stock-results td a, #stock-pages a { text-decoration: underline; text-underline-offset: 3px; }
#stock-search label { display: block; margin-bottom: 7px; font-weight: 650; }
#stock-search > div, #stock-pages { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
#stock-query { min-height: 44px; width: min(100%, 420px); min-width: 0; border-radius: 4px; border: 1px solid #777; padding: 8px 11px; background: var(--panel); color: inherit; font: inherit; }
#stock-status { margin: 18px 0 10px; }
#stock-results { max-width: 100%; overflow-x: auto; }
#stock-results table { width: 100%; border-collapse: collapse; font-size: .9rem; line-height: 1.4; }
#stock-results :is(th,td) { padding: 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
#stock-results th { background: var(--panel); }
#stock-results td:first-child { min-width: 155px; }
#stock-results td:not(:first-child) { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
#stock-results small { display: block; margin-top: 3px; color: var(--muted); }
#stock-pages { padding-top: 14px; font-size: .9rem; }
#stock-pages a { display: flex; align-items: center; min-height: 44px; padding-inline: 6px; }
@media (max-width: 767px) {
  :is(#resources, #stock, #promotions) { color-scheme: light; background: white; color: #242424; --panel: #f7f7f7; --line: #dedede; --muted: #555; --orange: #900906; }
  :is(#resources, #stock, #promotions) .breadcrumb, #resources .resource-groups a, #stock a:not(.breadcrumb) { color: #900906; }
  :is(#resources, #stock, #promotions) .inner-heading p { color: #505050; }
  #stock-query { flex: 1; background: white; }
  #stock-search .button-primary { background: #900906; color: white; }
  #stock-results :is(th,td) { padding: 8px 5px; }
  #brand-list .brand-link:has(.brand-logo:not([hidden])) { display: grid; grid-template-columns: 1fr auto; }
  #brand-list .brand-logo, #brand-list .brand-logo + strong { grid-column: 1/-1; }
  #brand-list .brand-logo { width: 48px; height: 40px; }
  #modal[data-view="menu"] .menu-collections { padding-inline-start: 12px; }
  #modal[data-view="menu"] .collection-branch summary { display: flex; align-items: center; }
  #modal[data-view="menu"] .collection-branch > div { --line: #e4d5d3; }
  #modal[data-view="menu"] .menu-collections a { padding-inline-start: 2px; }
  .related-collections a { min-height: 44px; }
}
