/* A Bear Site Core v1.2 — original A Bear header/footer, dynamic data */

body > #site-header,
body > header#site-header,
body > #site-footer,
body > footer#site-footer {
  display: none !important;
}

/* Prevent a previously installed A Bear header/footer from stacking with Site Core. */
.abear-site-header:not(#abear-master-header),
.abear-site-footer:not(#abear-master-footer) {
  display: none !important;
}

#abear-master-header,
#abear-master-header *,
#abear-master-footer,
#abear-master-footer * {
  box-sizing: border-box;
}

.abear-site-header,
.abear-site-footer {
  width: 100%;
  margin: 0;
  background: #fff;
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
}

.abear-site-header a,
.abear-site-footer a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================
   HEADER — MATCHES ORIGINAL A BEAR HEADER
========================================================== */

.abear-site-header {
  position: relative;
  z-index: 100000;
  border: 0;
  overflow: visible;
}

.abear-site-header-inner,
.abear-site-footer-inner {
  width: min(1420px, calc(100% - 48px));
  margin: 0 auto;
}

.abear-site-header-inner {
  overflow: visible;
}

.abear-site-header-main {
  position: relative;
  z-index: 100001;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 112px;
  padding: 18px 0;
}

.abear-site-logo {
  display: block;
  flex: 0 0 auto;
  line-height: 0;
}

.abear-site-logo img {
  display: block;
  width: 142px;
  height: auto;
}

.abear-site-header-main > .abear-site-primary-nav {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.abear-site-primary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px 24px;
}

.abear-site-primary-nav > a,
.abear-site-collections-menu > summary {
  color: #111;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.4;
}

.abear-site-primary-nav > a:hover,
.abear-site-primary-nav > a:focus-visible,
.abear-site-collections-menu > summary:hover,
.abear-site-collections-menu > summary:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.abear-site-primary-nav .abear-site-page-link.is-current {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.abear-site-collections-menu {
  position: relative;
  margin: 0;
  padding: 0;
}

.abear-site-collections-menu > summary {
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}

.abear-site-collections-menu > summary::-webkit-details-marker {
  display: none;
}

.abear-site-collections-menu > summary::after {
  content: " ▾";
  font-size: 10px;
}

.abear-site-collections-menu[open] > summary::after {
  content: " ▴";
}

.abear-site-collections-menu.is-current > summary {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.abear-site-collections-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  width: min(420px, calc(100vw - 32px));
  max-height: 70vh;
  overflow: auto;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #111;
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
}

.abear-site-collection-links {
  display: block;
}

.abear-site-collections-dropdown .abear-site-collection-link {
  display: block;
  color: #111;
  text-decoration: none;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 14px;
  line-height: 1.25;
  padding: 8px 0;
  border-bottom: 1px solid #ddd;
}

.abear-site-collections-dropdown .abear-site-collection-link:last-child {
  border-bottom: 0;
}

.abear-site-collection-link:hover,
.abear-site-collection-link:focus-visible {
  text-decoration: underline;
}

.abear-site-collection-link.is-current {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================
   FOOTER — MATCHES ORIGINAL A BEAR FOOTER
========================================================== */

.abear-site-footer {
  border-top: 0;
  margin-top: 0;
  padding: 0 0 34px;
}

.abear-footer-top-rule {
  border-top: 4px solid #111;
  border-bottom: 1px solid #111;
  padding: 10px 14px 11px;
  text-align: center;
  font-family: "Arial Narrow", Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.25;
}

.abear-site-footer-main {
  display: grid;
  grid-template-columns: minmax(190px,.72fr) minmax(0,1.35fr) minmax(0,1.35fr);
  padding: 10px 0 0;
  border-bottom: 1px solid #111;
}

.abear-footer-column {
  min-width: 0;
  padding: 17px 22px 28px;
}

.abear-footer-column + .abear-footer-column {
  border-left: 1px solid #111;
}

.abear-footer-heading {
  margin: 0 0 8px;
  padding: 0 0 8px;
  border-bottom: 3px solid #111;
  font-family: "Arial Narrow", Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  line-height: 1;
  text-transform: uppercase;
}

.abear-footer-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.abear-footer-link-list li {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid #d9d9d9;
}

.abear-footer-link-list li:last-child {
  border-bottom: 0;
}

.abear-footer-link-list a,
.abear-footer-collection-list .abear-site-collection-link {
  display: block;
  padding: 6px 0 7px;
  color: #111;
  text-decoration: none;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.15;
}

.abear-footer-link-list a:hover,
.abear-footer-link-list a:focus-visible,
.abear-footer-collection-list .abear-site-collection-link:hover,
.abear-footer-collection-list .abear-site-collection-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.abear-footer-link-list .abear-site-page-link.is-current {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.abear-footer-collection-list {
  display: block;
}

.abear-footer-collection-row {
  border-bottom: 1px solid #d9d9d9;
}

.abear-footer-collection-row:last-child {
  border-bottom: 0;
}

.abear-footer-collection-list .abear-site-collection-link.is-current {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.abear-footer-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: start;
  gap: 18px;
  padding: 12px 0 0;
  font-family: "Arial Narrow", Arial, Helvetica, sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.abear-footer-bottom-center {
  text-align: center;
}

.abear-footer-bottom-right {
  text-align: right;
}

.abear-footer-empty {
  margin: 0;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 13px;
  font-style: italic;
}

.abear-artwork-medium {
  font-family: "Libre Caslon Text", Georgia, serif;
  font-size: 13px;
}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 900px) {
  .abear-site-header-inner,
  .abear-site-footer-inner {
    width: calc(100% - 28px);
  }

  .abear-site-header-main {
    flex-direction: column;
    min-height: 0;
    padding: 14px 0 13px;
    gap: 11px;
  }

  .abear-site-logo img {
    width: 96px;
  }

  .abear-site-header-main > .abear-site-primary-nav {
    position: static;
    transform: none;
    justify-content: center;
  }

  .abear-site-primary-nav {
    gap: 8px 14px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .abear-site-primary-nav > a,
  .abear-site-collections-menu > summary {
    font-size: 10px;
  }

  .abear-site-collections-dropdown {
    top: calc(100% + 10px);
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(360px, calc(100vw - 28px));
    max-height: 65vh;
  }

  .abear-footer-top-rule {
    font-size: 9px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .abear-site-footer-main {
    grid-template-columns: 1fr;
    padding-top: 8px;
  }

  .abear-footer-column {
    padding: 16px 0 22px;
  }

  .abear-footer-column + .abear-footer-column {
    border-left: 0;
    border-top: 1px solid #111;
  }

  .abear-footer-heading {
    border-bottom-width: 2px;
  }

  .abear-footer-bottom {
    grid-template-columns: 1fr;
    gap: 4px;
    padding-top: 11px;
  }

  .abear-footer-bottom,
  .abear-footer-bottom-center,
  .abear-footer-bottom-right {
    text-align: left;
  }
}

@media (max-width: 520px) {
  .abear-site-header-main {
    align-items: center;
  }

  .abear-site-primary-nav {
    padding-top: 0;
    justify-content: center;
  }

  .abear-site-logo img {
    width: 92px;
  }
}
