/*
  Hive layer v2. Shared by every Hivecore brand site.
  Canonical source: github.com/FabricioGomu/hivecore  (shared/hive-layer.css)
  Sites keep a vendored copy at /hive/hive-layer.css. Do not edit the copy:
  change this file, bump HIVE_LAYER_VERSION in hive-sync.mjs, and re-sync.

  The layer is always graphite, whatever the site's theme. Every brand lives
  between the same two Hivecore bands; that sameness is what makes the family
  visible. Each site sets --hive-brand to its own accent (the hairline under
  the strip and its own entry in the lists).
*/

.hive-strip,
.hive-footer {
  --hive-bg: #0b0d10;
  --hive-surface: #15191e;
  --hive-surface-2: #1c2128;
  --hive-text: #eef1f4;
  --hive-muted: #9aa4ae;
  --hive-line: rgba(255, 255, 255, 0.1);
  --hive-honey: #f2b84b;
  --hive-focus: #f2b84b;
  color-scheme: dark;
  background: var(--hive-bg);
  color: var(--hive-text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: normal;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}

.hive-strip *,
.hive-footer * {
  box-sizing: border-box;
}

.hive-strip a,
.hive-footer a {
  color: inherit;
  text-decoration: none;
}

.hive-strip a:focus-visible,
.hive-strip summary:focus-visible,
.hive-footer a:focus-visible {
  outline: 2px solid var(--hive-focus);
  outline-offset: 2px;
  border-radius: 6px;
}

.hive-hex {
  flex: none;
  width: 16px;
  height: 14px;
  fill: var(--hive-honey);
}

/* ---------- Strip: the thin band above each brand's own header ---------- */

.hive-strip {
  position: relative;
  z-index: 60;
  border-bottom: 2px solid var(--hive-brand, var(--hive-honey));
}

.hive-strip__inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 36px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hive-strip__home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hive-strip__home:hover {
  color: var(--hive-honey);
}

.hive-strip__tagline {
  margin-left: 4px;
  padding-left: 12px;
  border-left: 1px solid var(--hive-line);
  color: var(--hive-muted);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.hive-strip__menu {
  position: static;
}

.hive-strip__menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 2px;
  color: var(--hive-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.hive-strip__menu > summary::-webkit-details-marker {
  display: none;
}

.hive-strip__menu > summary::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.hive-strip__menu[open] > summary::after {
  margin-top: 3px;
  transform: rotate(-135deg);
}

.hive-strip__menu > summary:hover,
.hive-strip__menu[open] > summary {
  color: var(--hive-text);
}

.hive-strip__panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 2px;
  padding: 20px 0 24px;
  background: var(--hive-bg);
  border-bottom: 1px solid var(--hive-line);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.hive-strip__panel-inner {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.hive-strip__panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  color: var(--hive-muted);
  font-size: 12px;
}

.hive-strip__panel-head a {
  color: var(--hive-honey);
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- Brand list: shared by the strip panel and the footer ---------- */

.hive-brands {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hive-brands a {
  display: grid;
  grid-template-columns: 14px 1fr;
  column-gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--hive-surface);
}

.hive-brands a:hover {
  border-color: var(--hive-line);
  background: var(--hive-surface-2);
}

.hive-brands .hive-dot {
  grid-row: span 2;
  width: 12px;
  height: 10.4px;
  background: var(--hive-dot, var(--hive-honey));
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}

.hive-brands strong {
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
}

.hive-brands small {
  color: var(--hive-muted);
  font-size: 12px;
  line-height: 1.3;
}

.hive-brands [aria-current] {
  border-color: color-mix(in srgb, var(--hive-dot, var(--hive-honey)) 55%, transparent);
  background: color-mix(in srgb, var(--hive-dot, var(--hive-honey)) 10%, var(--hive-surface));
}

.hive-here {
  color: var(--hive-text);
  font-weight: 600;
}

/* ---------- Footer: the closing band under each brand's own footer ---------- */

.hive-footer {
  border-top: 2px solid var(--hive-brand, var(--hive-honey));
  padding: 40px 0 28px;
}

.hive-footer__inner {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
  display: grid;
  gap: 24px;
}

.hive-footer__intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 32px;
}

.hive-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hive-footer__brand .hive-hex {
  width: 22px;
  height: 19px;
}

.hive-footer__lede {
  max-width: 560px;
  margin: 8px 0 0;
  color: var(--hive-muted);
  font-size: 15px;
}

.hive-footer__more {
  color: var(--hive-honey);
  font-weight: 600;
  white-space: nowrap;
}

.hive-footer__group {
  display: grid;
  align-content: start;
  gap: 8px;
}

.hive-footer__group-label {
  margin: 0;
  color: var(--hive-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hive-footer__groups {
  display: grid;
  gap: 18px;
}

.hive-footer__groups {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.hive-footer .hive-brands {
  grid-template-columns: 1fr;
  align-content: start;
  gap: 2px;
}

.hive-footer .hive-brands a {
  margin-left: -10px;
  padding: 7px 10px;
  background: transparent;
}

.hive-footer .hive-brands a:hover {
  background: var(--hive-surface);
}

.hive-footer .hive-brands [aria-current] {
  background: color-mix(in srgb, var(--hive-dot, var(--hive-honey)) 10%, transparent);
}

.hive-footer__contact {
  display: grid;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--hive-line);
}

.hive-footer__contact ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hive-footer__contact a {
  display: inline-flex;
  gap: 8px;
  min-height: 40px;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--hive-line);
  border-radius: 999px;
  background: var(--hive-surface);
  font-weight: 600;
}

.hive-footer__contact a:hover {
  border-color: var(--hive-honey);
}

.hive-footer__contact span {
  color: var(--hive-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hive-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 18px;
  border-top: 1px solid var(--hive-line);
  color: var(--hive-muted);
  font-size: 12px;
}

.hive-footer__base a {
  color: var(--hive-text);
  font-weight: 600;
}

.hive-footer__base a:hover,
.hive-footer__more:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 760px) {
  .hive-footer__groups {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hive-footer .hive-brands {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .hive-strip__tagline {
    display: none;
  }

  .hive-brands {
    grid-template-columns: 1fr 1fr;
  }

  .hive-brands a {
    padding: 9px 10px;
  }

  .hive-brands small {
    display: none;
  }


}

@media (prefers-reduced-motion: reduce) {
  .hive-strip__menu > summary::after {
    transition: none;
  }
}

@media print {
  .hive-strip,
  .hive-footer {
    display: none;
  }
}
