.bh-footer-reveal {
  overflow: clip;
  background: var(--barit-paper);
}

@media screen and (prefers-reduced-motion: no-preference) {
  .bh-footer-reveal > .bh-footer {
    transform: translateY(var(--footer-offset, 0px)) scale(var(--footer-scale, 1));
    transform-origin: center top;
  }

  .bh-footer-reveal:has(:focus-visible) > .bh-footer { transform: none; }
}

.bh-footer {
  --footer15-faint: #a9a9a9;
  --footer15-stroke: #858585;
  background-color: var(--barit-paper);
  padding-inline: var(--footer15-gap);
  padding-block-end: var(--footer15-gap);
  overflow: clip;
}

.bh-footer .footer-15__nav-wrap {
  flex: 0 1 auto;
  flex-wrap: wrap;
  gap: 18px clamp(20px, 3vw, 44px);
}

.bh-footer .footer-15__nav { gap: 8px; }
.bh-footer .footer-15__panel--nav {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) fit-content(24%);
  grid-template-areas: "menu notices social";
  align-content: center;
  align-items: end;
  gap: clamp(16px, 2vw, 48px);
}
.bh-footer .footer-15__nav-wrap { grid-area: menu; }
.bh-footer .footer-15__social { grid-area: social; }
.bh-footer-notices {
  grid-area: notices;
  place-self: center;
  container: footer-notices / inline-size;
  width: 100%;
  max-width: 56rem;
  min-width: 0;
  --notice-row-height: 44px;
}
.bh-footer-notices-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #474747;
}
.bh-footer-notices-head h2 { margin: 0; font: inherit; }
.bh-footer-notices-head a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  color: var(--footer15-text);
  font-weight: 700;
}
.bh-footer-notices-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--footer15-muted);
}
.bh-footer-notices-toggle[hidden] { display: none; }
.bh-footer-notices-window {
  max-height: calc(var(--notice-row-height) * var(--notice-visible-count));
  overflow: clip;
}
.bh-footer-notices-window li {
  height: var(--notice-row-height);
  border-bottom: 1px solid #303030;
}
.bh-footer-notices-window a {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  color: var(--footer15-muted);
}
.bh-footer-notices-window a:focus-visible { outline-offset: -2px; }
.bh-footer-notices-window a:is(:hover, :focus-visible) { color: var(--footer15-text); }
.bh-footer-notices-window a > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.bh-footer-notices-window time { margin-inline-start: auto; color: var(--footer15-faint); white-space: nowrap; }
@container footer-notices (max-width: 36rem) {
  .bh-footer-notices-window time { display: none; }
}
.bh-footer .footer-15__nav a { min-width: 24px; min-height: 28px; }
.bh-footer .footer-15__tags a { min-height: 44px; }

.bh-footer :is(.footer-15__nav a, .footer-15__legal-links a, .bh-footer-invoice) {
  color: var(--footer15-muted);
}

.bh-footer :is(.footer-15__nav a, .footer-15__legal-links a, .bh-footer-invoice, .footer-15__contact a):hover {
  color: var(--footer15-text);
  text-decoration: underline;
  text-underline-offset: .22em;
}

.bh-footer .footer-15__tags a:is(:hover, :focus-visible) {
  background: var(--footer15-input-bg);
  border-color: var(--footer15-text);
}

.bh-footer a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.bh-footer br { display: initial; }
.bh-footer p { margin: 0; }
.bh-footer h2 { color: var(--footer15-text); word-break: keep-all; }

.bh-footer .footer-15__news-bg {
  background-image: url("/assets/barit/home/orisa-index-15-footer.webp");
}

.bh-footer .footer-15__news-inner { gap: 14px; }
.bh-footer .footer-15__news-inner h2 { margin: 0; }
.bh-footer .footer-15__news-inner p { color: var(--footer15-text); word-break: keep-all; }
.bh-footer .bh-footer-cta {
  min-height: 50px;
  height: auto;
  padding: 12px 16px;
  border: 1px solid var(--footer15-stroke);
  background: #202020;
  color: var(--footer15-text);
  letter-spacing: normal;
  line-height: 1.3;
  text-decoration: none;
}

.bh-footer .bh-footer-cta:is(:hover, :focus-visible) {
  background: var(--footer15-text);
  color: var(--footer15-panel-bg);
}

.bh-footer .footer-15__brand-mark { width: clamp(72px, 6.6vw, 104px); }
.bh-footer .footer-15__brand-icon { filter: brightness(0) invert(1); }
.bh-footer .footer-15__mobile-logo { display: none; }
.bh-footer .footer-15__brand-head {
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(12px, 1.6vw, 24px);
}

.bh-footer .footer-15__brand-title {
  --barit-type-heading: clamp(1.625rem, 2.8vw, 2.625rem);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.15;
}

.bh-footer .footer-15__panel--brand {
  justify-content: center;
  gap: clamp(14px, 2.2vw, 28px);
}

.bh-footer .footer-15__keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bh-footer .footer-15__keywords li {
  padding: 4px 9px;
  border: 1px solid #414141;
  border-radius: 999px;
  background: var(--footer15-input-bg);
  color: var(--footer15-muted);
  line-height: 1.4;
}

@layer barit-typography {
  .barit-renewal .bh-footer .footer-15__keywords { font-size: var(--barit-type-note) !important; }
}

@media (prefers-reduced-motion: no-preference) {
  .bh-footer .is-footer-visible .footer-15__keywords li {
    animation: barit-footer-keyword-in .6s cubic-bezier(.22, 1, .36, 1) var(--keyword-delay, .42s) backwards;
  }

  .footer-15__keywords li:nth-child(2) { --keyword-delay: .69s; }
  .footer-15__keywords li:nth-child(3) { --keyword-delay: .54s; }
  .footer-15__keywords li:nth-child(4) { --keyword-delay: .88s; }

  @keyframes barit-footer-keyword-in {
    from { opacity: 0; transform: translateY(8px) scale(.94); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }
}

@media (min-width: 992px) {
  .bh-footer .footer-15__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .bh-footer .footer-15__panel--nav { grid-column: span 4; }
  .bh-footer .footer-15__panel--news { grid-column: span 2; }
  .bh-footer .footer-15__panel--brand,
  .bh-footer .footer-15__panel--contact { grid-column: span 3; }
}

.bh-footer .footer-15__contact { gap: 10px; min-width: 0; }
.bh-footer .footer-15__contact-row > div { min-width: 0; }
.bh-footer .footer-15__contact a { min-height: 26px; overflow-wrap: anywhere; }
.bh-footer .bh-footer-address { line-height: 1.5; word-break: keep-all; }
.bh-footer .bh-footer-invoice { display: inline-flex; gap: 6px; min-height: 32px; margin-block-start: 8px; align-items: center; }
.bh-footer .footer-15__legal-links a { display: inline-flex; min-height: 28px; align-items: center; }

@media (max-width: 767px) {
  .bh-footer .footer-15__panel--nav {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "menu" "notices";
    gap: 16px;
  }
  .bh-footer-notices-window time { display: none; }
  .bh-footer {
    --footer15-panel-min-h: 0px;
    --footer15-panel-radius: 20px;
    --footer15-gap: clamp(16px, 4vw, 22px);
    padding-block-start: clamp(40px, 8vw, 56px);
  }

  .bh-footer .footer-15__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(26px, 7vw, 36px);
    padding: clamp(28px, 7.5vw, 40px) clamp(20px, 5.6vw, 32px);
    border-radius: var(--footer15-panel-radius);
    background: var(--footer15-panel-bg);
  }

  .bh-footer .footer-15__panel {
    grid-column: 1 / -1;
    min-width: 0;
    padding: 0;
    overflow: visible;
    border-radius: 0;
    background: transparent;
  }

  .bh-footer .footer-15__nav-wrap {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0 10px;
    width: 100%;
  }

  .bh-footer .footer-15__nav { flex-flow: row wrap; gap: 0 14px; }
  .bh-footer .footer-15__nav a {
    min-height: 44px;
    line-height: 1.35;
    letter-spacing: -.02em;
    word-break: keep-all;
  }

  .bh-footer .footer-15__mobile-logo { display: block; width: 64px; }

  .bh-footer :is(
    .footer-15__nav li:not(.footer-15__home-link, .footer-15__production-link),
    .footer-15__home-link span, .footer-15__social, .footer-15__news-bg,
    .footer-15__news-inner h2, .footer-15__news-inner p,
    .footer-15__brand-head .footer-15__brand-mark, .footer-15__regional-link,
    .bh-footer-invoice, .footer-15__back-top
  ) { display: none; }

  .bh-footer .footer-15__panel--news { min-height: 0; }
  .bh-footer .footer-15__news-inner { max-width: none; }
  .bh-footer .bh-footer-cta {
    min-height: 44px;
    padding-block: 8px;
    border-radius: 999px;
    background: var(--footer15-text);
    color: var(--footer15-panel-bg);
  }

  .bh-footer .footer-15__panel--brand { gap: 16px; }
  .bh-footer .footer-15__brand-title { --barit-type-heading: clamp(1.375rem, 5.8vw, 1.875rem); }

  .bh-footer .footer-15__panel--contact {
    gap: 22px;
    padding-block-start: 24px;
    border-block-start: 1px solid #414141;
  }

  .bh-footer .footer-15__contact-row { gap: 14px; }
  .bh-footer .footer-15__intro { color: var(--footer15-muted); }
  .bh-footer .footer-15__contact {
    flex-flow: row wrap;
    align-items: center;
    gap: 6px 16px;
  }

  .bh-footer .footer-15__contact-line {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    letter-spacing: -.02em;
  }

  .bh-footer .bh-footer-address {
    display: block;
    flex-basis: 100%;
    padding-block: 3px;
    color: var(--footer15-muted);
    font-weight: 500;
  }

  .bh-footer .footer-15__legal { flex-flow: row wrap; align-items: center; gap: 6px 14px; }
  .bh-footer .footer-15__legal-links { gap: 4px 14px; }

  @layer barit-typography {
    .barit-renewal .bh-footer :is(.footer-15__nav a, .footer-15__intro, .footer-15__contact-line) {
      font-size: var(--barit-type-note) !important;
    }
  }
}
