/* Shared fixed banner and the site-wide Contact Us footer.
   Keep the banner and footer markup in sync on every page.
   Fallback heights match the bar before banner.js measures it. */
:root { --banner-h: 104px; }
@media (max-width: 980px) { :root { --banner-h: 158px; } }
@media (max-width: 640px) { :root { --banner-h: 168px; } }

html { scroll-padding-top: calc(var(--banner-h) + 10px); }
body { padding-top: var(--banner-h); }

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 80;
  background: var(--ink, #2a2118);
  color: var(--parchment, #f4ead5);
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
}
.skip:focus { top: calc(var(--banner-h) + 8px); }

.banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  padding: calc(5px + env(safe-area-inset-top)) env(safe-area-inset-right) 6px env(safe-area-inset-left);
  transition: padding .22s ease;
  color: var(--ink, #2a2118);
  background:
    radial-gradient(1100px 90px at 50% -20%, rgba(255, 250, 236, .95), transparent 72%),
    radial-gradient(ellipse at 0% 40%, rgba(184, 137, 45, .2), transparent 34%),
    radial-gradient(ellipse at 100% 80%, rgba(107, 29, 42, .08), transparent 40%),
    linear-gradient(180deg, #fbf6ea 0%, #f3e6c8 58%, #e8d4ae 100%);
  border-top: 3px solid #6b1d2a;
  border-bottom: 4px solid #6b1d2a;
  box-shadow:
    inset 0 2px 0 #e8c96a,
    inset 0 -2px 0 #e8c96a,
    0 16px 28px -18px rgba(42, 33, 24, .8);
}

.banner-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 4px 28px 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 36px;
  flex-wrap: nowrap;
}

.banner-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 0 0 auto;
  text-decoration: none;
  color: inherit;
}
.banner-brand img {
  height: 72px;
  width: auto;
  display: block;
  filter: drop-shadow(0 3px 3px rgba(42, 33, 24, .22));
  transition: height .22s ease;
}
.banner.is-compact .banner-brand img { height: 56px; }
.banner.is-compact {
  padding-top: calc(3px + env(safe-area-inset-top));
  padding-bottom: 4px;
}
.banner.is-compact .banner-inner { padding-top: 2px; padding-bottom: 2px; gap: 8px 28px; }
.banner.is-compact .wordmark { font-size: 1.65rem; }
.banner.is-compact .badge { margin-top: 3px; padding: 3px 10px; }
.banner.is-compact .banner-nav a { padding-top: 4px; padding-bottom: 3px; }

.banner-id {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  min-width: 0;
}
.wordmark {
  font-family: var(--serif, Georgia, serif);
  font-weight: 700;
  font-size: 1.95rem;
  color: var(--garnet, #6b1d2a);
  letter-spacing: .01em;
}
.banner .badge { margin-top: 6px; }

.banner-nav {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 4px 28px;
  min-width: 0;
}
.banner-nav a {
  font-family: var(--serif, Georgia, serif);
  font-weight: 600;
  font-size: 1.28rem;
  color: var(--ink, #2a2118);
  text-decoration: none;
  padding: 10px 4px 8px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.banner-nav a:hover { color: var(--garnet, #6b1d2a); }
.banner-nav a[aria-current="page"] {
  color: var(--garnet, #6b1d2a);
  border-bottom-color: var(--gold, #b8892d);
}

.banner a:focus-visible,
.skip:focus-visible,
.site-foot a:focus-visible {
  outline: 3px solid var(--gold, #b8892d);
  outline-offset: 2px;
}

@media (max-width: 980px) {
  .banner-inner { flex-wrap: wrap; justify-content: center; gap: 4px 16px; padding: 4px 16px 6px; }
  .banner-nav { flex: 1 1 100%; justify-content: center; gap: 2px 22px; }
}

@media (max-width: 640px) {
  .banner-inner { gap: 2px 10px; }
  .banner-brand,
  .banner-nav { flex: 1 1 100%; justify-content: center; }
  .banner-nav { gap: 0 8px; }
  .banner-nav a {
    flex: 1 1 calc(50% - 8px);
    max-width: calc(50% - 8px);
    box-sizing: border-box;
    text-align: center;
    font-size: 1.08rem;
    padding: 8px 4px 6px;
  }
  .banner-id { align-items: center; }
  .banner-brand img { height: 56px; }
  .banner.is-compact .banner-brand img { height: 46px; }
  .banner.is-compact .wordmark { font-size: 1.45rem; }
  .wordmark { font-size: 1.65rem; }
}

@media (prefers-reduced-motion: reduce) {
  .banner,
  .banner-brand img,
  .contact-social a { transition: none; }
}

.site-foot {
  margin-top: 36px;
  text-align: center;
  color: var(--ink-soft, #5a4a3a);
}
.contact-banner {
  padding: 16px 22px 14px;
  background:
    radial-gradient(900px 80px at 50% -30%, rgba(255, 250, 236, .95), transparent 70%),
    radial-gradient(ellipse at 0% 50%, rgba(184, 137, 45, .18), transparent 36%),
    radial-gradient(ellipse at 100% 80%, rgba(107, 29, 42, .08), transparent 42%),
    linear-gradient(180deg, #fbf6ea 0%, #f3e6c8 58%, #e8d4ae 100%);
  border-top: 3px solid #6b1d2a;
  border-bottom: 3px solid #6b1d2a;
  box-shadow: inset 0 2px 0 #e8c96a, inset 0 -2px 0 #e8c96a;
}
.contact-banner h2 {
  margin: 0;
  font-family: var(--serif, Georgia, serif);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  line-height: 1;
  letter-spacing: .03em;
  color: var(--garnet, #6b1d2a);
}
.contact-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 820px;
  margin: 22px auto 0;
  padding: 0 18px;
}
.contact-social a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1 1 108px;
  max-width: 124px;
  min-height: 64px;
  padding: 8px 8px 7px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--garnet, #6b1d2a);
  background:
    linear-gradient(180deg, rgba(255, 252, 244, .92), rgba(243, 230, 200, .88));
  border: 1px solid rgba(184, 137, 45, .7);
  box-shadow: inset 0 0 0 1px rgba(255, 248, 230, .8);
  font-family: var(--sans, Inter, system-ui, sans-serif);
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.1;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.contact-social a:hover {
  background: var(--garnet, #6b1d2a);
  color: var(--parchment, #f4ead5);
  border-color: var(--garnet, #6b1d2a);
}
.contact-social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  display: block;
}
.contact-mail {
  margin: 16px 16px 0;
  font-family: var(--serif, Georgia, serif);
  font-size: 1.25rem;
}
.contact-mail a {
  color: var(--garnet, #6b1d2a);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 8px;
}
.contact-mail a:hover { text-decoration: underline; }
.site-foot .copy {
  font-size: .8rem;
  margin: 6px 16px 36px;
  opacity: .75;
}
@media (max-width: 640px) {
  .contact-social { gap: 8px; padding: 0 14px; }
  .contact-social a { flex-basis: 30%; max-width: none; min-height: 60px; font-size: .72rem; }
}
