/* Liquid glass pill copied from Brian Condon nav-base.css (read-only),
   plus his desktop .hd-nav treatment, retinted to Seaport green/black.
   Drawer styles stay in styles.css. */

:root {
  --display: var(--font, "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif);
  --navy: #080808;
  --red: #109647;
  --nav-h: 62px;
  --nav-bottom: calc(max(var(--sab, 0px), 6px) + 8px);
  --nav-clear: calc(var(--nav-h) + var(--nav-bottom) + 14px);
  /* Logo sits in the black bar at every size — no hanging card. Bigger than the old 52px in-bar mark. */
  --brand-hang: 0px;
  --logo-h: 64px;
  --logo-h-compact: 64px;
  --hdr: 84px;
  --plate-pad-top: 0px;
  --plate-pad-side: 0px;
  --plate-pad-bottom: 0px;
}
@media (min-width: 700px) {
  :root { --brand-hang: 0px; --logo-h: 72px; --logo-h-compact: 72px; --hdr: 92px; }
}
@media (min-width: 1000px) and (orientation: landscape) {
  :root { --nav-clear: 0px; --brand-hang: 0px; --logo-h: 80px; --logo-h-compact: 80px; --hdr: 100px;
    --plate-pad-top: 0px; --plate-pad-side: 0px; --plate-pad-bottom: 0px; }
}
@media (min-width: 1400px) and (orientation: landscape) {
  :root { --brand-hang: 0px; --logo-h: 84px; --logo-h-compact: 84px; --hdr: 104px; }
}
@media (min-width: 1000px) and (orientation: landscape) and (max-height: 520px) {
  :root { --brand-hang: 0px; --logo-h: 56px; --logo-h-compact: 56px; --hdr: 76px; }
}

.lg-nav { position: fixed; z-index: 50; left: 0; right: 0; bottom: var(--nav-bottom); padding: 0 max(14px, var(--sar, 0px)) 0 max(14px, var(--sal, 0px));
  display: flex; justify-content: center; pointer-events: none; }
.lg-shell { position: relative; pointer-events: auto; width: min(540px, 100%); height: var(--nav-h); border-radius: 999px;
  box-shadow: 0 22px 48px -18px rgba(0,0,0,.5), 0 3px 10px -2px rgba(0,0,0,.2); }
.lg-layer { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.lg-refract { -webkit-backdrop-filter: blur(20px) saturate(1.7) brightness(1.06); backdrop-filter: blur(18px) saturate(1.7) brightness(1.06); }
.lg-tint { background: linear-gradient(180deg, rgba(255,255,255,.80) 0%, rgba(246,246,246,.72) 45%, rgba(232,232,232,.80) 100%); }
.lg-spec { overflow: hidden; background: radial-gradient(130px 70px at calc(var(--lgx, .3) * 100%) 0%, rgba(255,255,255,.38), rgba(255,255,255,0) 70%), linear-gradient(180deg, rgba(255,255,255,.34) 0, rgba(255,255,255,0) 40%); }
.lg-rim { box-shadow: inset 0 1px 0 rgba(255,255,255,.95), inset 0 -1px 0 rgba(255,255,255,.35), inset 0 0 0 .75px rgba(255,255,255,.55), inset 0 -10px 18px -12px rgba(0,0,0,.25), inset 0 10px 16px -12px rgba(255,255,255,.75);
  border: .5px solid rgba(0,0,0,.14); }
html[data-theme="dark"] .lg-tint { background: linear-gradient(180deg, rgba(40,40,40,.78), rgba(24,24,24,.74) 50%, rgba(12,12,12,.82)); }
html[data-theme="dark"] .lg-rim { box-shadow: inset 0 1px 0 rgba(255,255,255,.22), inset 0 0 0 .75px rgba(255,255,255,.1), inset 0 -10px 18px -12px rgba(0,0,0,.5); border-color: rgba(255,255,255,.08); }
html[data-theme="dark"] .lg-spec { background: radial-gradient(130px 70px at calc(var(--lgx, .3) * 100%) 0%, rgba(255,255,255,.12), rgba(255,255,255,0) 70%), linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,0) 40%); }
.lg-track { position: relative; z-index: 1; height: 100%; display: flex; align-items: stretch; gap: 2px; padding: 5px; border-radius: inherit; touch-action: none; user-select: none; -webkit-user-select: none; }
.lg-item { position: relative; z-index: 2; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border-radius: 999px; text-decoration: none; color: #3a3a3a; font: 500 12px/1 var(--display); letter-spacing: .06em; text-transform: uppercase;
  -webkit-touch-callout: none; -webkit-user-drag: none; -webkit-tap-highlight-color: transparent; background: none; border: 0; cursor: pointer; padding: 0 2px; transition: color .25s; }
html[data-theme="dark"] .lg-item { color: #bdbdbd; }
.lg-item svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.lg-item[data-open-menu] svg { fill: none; stroke: currentColor; stroke-width: 1.75; }
.lg-item[aria-current="page"] { color: var(--navy); font-weight: 600; }
html[data-theme="dark"] .lg-item[aria-current="page"] { color: #fff; }
.lg-item[aria-current="page"] .lg-dot { opacity: 1; }
.lg-icon, .lg-label { transition: transform .32s cubic-bezier(.2,1.6,.4,1); }
.lg-item.lensed .lg-icon { transform: scale(1.18) translateY(-1px); }
.lg-dot { position: absolute; top: 7px; right: calc(50% - 17px); width: 6px; height: 6px; border-radius: 50%; background: var(--red); opacity: 0; transition: opacity .25s; }
.lg-drop { position: absolute; z-index: 1; left: 0; top: 5px; bottom: 5px; width: 80px; border-radius: 999px; pointer-events: none; transform-origin: 0 50%; }
.lg-drop[hidden] { display: none; }
.lg-drop::before { content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(236,236,236,.78) 60%, rgba(255,255,255,.55));
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 1px rgba(255,255,255,.6), inset 0 0 0 .75px rgba(255,255,255,.7), inset 0 -6px 12px -8px rgba(120,120,120,.5), 0 6px 16px -8px rgba(0,0,0,.35), 0 1px 2px rgba(0,0,0,.12); }
.lg-drop::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.25px;
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.15) 38%, rgba(160,160,160,.25) 62%, rgba(255,255,255,.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
html[data-theme="dark"] .lg-drop::before { background: linear-gradient(180deg, rgba(255,255,255,.2), rgba(120,120,120,.34) 60%, rgba(255,255,255,.12)); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 0 0 .75px rgba(255,255,255,.18), 0 6px 16px -8px rgba(0,0,0,.6); }
.lg-drop.dragging::before { background: linear-gradient(180deg, rgba(255,255,255,.3), rgba(255,255,255,.08) 60%, rgba(255,255,255,.22)); box-shadow: inset 0 1.5px 0 #fff, inset 0 0 0 1px rgba(255,255,255,.7), inset 0 0 14px rgba(255,255,255,.35), 0 12px 26px -10px rgba(0,0,0,.4); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .lg-tint { background: rgba(250,250,250,.97); }
  html[data-theme="dark"] .lg-tint { background: rgba(18,18,18,.97); }
}
html.more-lock .lg-refract, html.lb-open .lg-refract { -webkit-backdrop-filter: none; backdrop-filter: none; }
html.more-lock .lg-tint, html.lb-open .lg-tint { background: rgba(246,246,246,.97); }
html[data-theme="dark"].more-lock .lg-tint, html[data-theme="dark"].lb-open .lg-tint { background: rgba(18,18,18,.97); }
@media (prefers-reduced-transparency: reduce) {
  .lg-refract { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  .lg-tint { background: #f5f5f5; }
  html[data-theme="dark"] .lg-tint { background: #141414; }
}
@media (orientation: landscape) and (max-height: 520px) {
  .lg-shell { width: min(580px, 100%); }
  .lg-item { flex-direction: row; gap: 6px; font-size: 12px; letter-spacing: .05em; white-space: nowrap; }
  .lg-item svg { width: 19px; height: 19px; flex: 0 0 auto; }
  .lg-dot { display: none; }
}
@media (orientation: landscape) and (max-height: 520px) and (max-width: 700px) {
  .lg-item { gap: 5px; font-size: 11px; letter-spacing: .03em; }
  .lg-item svg { width: 17px; height: 17px; }
}
@media (min-width: 700px) and (min-height: 600px) {
  .lg-shell { width: 600px; }
  .lg-item { flex-direction: row; gap: 8px; font-size: 14px; }
  .lg-item svg { width: 21px; height: 21px; }
  .lg-dot { top: 50%; margin-top: -3px; right: 10px; }
}
@media (min-width: 1000px) and (orientation: landscape) {
  .lg-nav { display: none; }
  .more-edge { display: none; }
}
.lg-nav .lg-item, .lg-nav .lg-label { white-space: nowrap; }
@media (max-width: 360px) {
  .lg-nav { padding-left: max(8px, var(--sal, 0px)); padding-right: max(8px, var(--sar, 0px)); }
  .lg-nav .lg-item { font-size: 11px; letter-spacing: .02em; padding: 0; }
}

/* Desktop header pill — Brian Condon site-main.css, on the black Seaport header */
.hd-nav { display: none; align-self: center; margin-left: auto; flex: 0 1 auto; }
@media (min-width: 1000px) and (orientation: landscape) {
  .hd-nav { display: flex; justify-content: flex-end; min-width: 0; }
  .hd-nav .lg-shell { width: max-content; max-width: 100%; height: 50px; box-shadow: none; }
  .hd-nav .lg-track { gap: 0; padding: 4px; }
  .hd-nav .lg-item { flex: 0 0 auto; padding: 0 11px; font-size: 12px; letter-spacing: .12em; color: #cfcfcf; flex-direction: row; gap: 6px; align-items: center; }
  .hd-nav .lg-item .lg-icon { display: flex; align-items: center; justify-content: center; width: 16px; height: 16px; flex: 0 0 16px; }
  .hd-nav .lg-item svg { width: 16px; height: 16px; display: block; }
  .hd-nav .lg-item[data-key="more"] .lg-icon { display: flex; width: 22px; height: 22px; flex: 0 0 22px; }
  .hd-nav .lg-item[data-key="more"] svg { width: 22px; height: 22px; }
  .hd-nav .lg-item[data-key="more"] .lg-label { display: none; }
  .hd-nav .lg-item[data-key="more"] { padding: 0 12px; gap: 0; }
  .hd-nav .lg-item[aria-current="page"] { color: #fff; }
  .hd-nav .lg-item.lensed { color: #fff; }
  .hd-nav .lg-dot { display: none; }
  .hd-nav .lg-tint { background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.04)); }
  .hd-nav .lg-rim { box-shadow: inset 0 1px 0 rgba(255,255,255,.18), inset 0 0 0 .75px rgba(255,255,255,.1); border-color: rgba(255,255,255,.08); }
  .hd-nav .lg-spec { background: radial-gradient(130px 60px at calc(var(--lgx, .3) * 100%) 0%, rgba(255,255,255,.12), rgba(255,255,255,0) 70%); }
  .hd-nav .lg-drop { top: 4px; bottom: 4px; }
  .hd-nav .lg-drop::before { background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(140,140,140,.22) 60%, rgba(255,255,255,.12)); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), inset 0 0 0 .75px rgba(255,255,255,.18), 0 6px 16px -8px rgba(0,0,0,.6); }
  .hd-nav .lg-drop::after { opacity: .45; }
  .hd-nav .lg-item.x-wide { display: none; }
}
@media (min-width: 1400px) and (orientation: landscape) {
  .hd-nav .lg-item.x-wide { display: flex; }
}

/* Mobile: white wordmark on the black bar, no card, header scrolls away.
   Desktop (1000px landscape): hanging logo card, sticky bar, compact on scroll. */
.site-header { overflow: visible; min-height: var(--hdr); position: relative; top: auto; z-index: 100; }
.sh-inner { overflow: visible; align-items: center; min-height: var(--hdr); height: var(--hdr); }
.brand-card {
  position: relative;
  z-index: 1010;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  align-self: center;
  text-decoration: none;
  color: inherit;
  margin-right: 8px;
  pointer-events: none;
}
.brand-plate {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--fg);
  border-radius: 0;
  padding: 0;
  margin-bottom: 0;
  box-shadow: none;
  transform: translateZ(0);
}
.brand-plate .logo-wordmark {
  height: var(--logo-h);
  width: auto;
  max-width: min(280px, 62vw);
  display: block;
}
/* Always the white mark on the black mobile header, regardless of theme. */
.brand-plate .logo-on-light { display: none; }
.brand-plate .logo-on-dark { display: block; }

.sh-burger {
  display: flex;
  margin-left: auto;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: #109647;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none;
  box-shadow: none;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}
.sh-burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

@media (min-width: 1000px) and (orientation: landscape) {
  .site-header { position: sticky; top: 0; z-index: 1000; }
  .sh-inner { align-items: center; }
  .brand-card { align-items: center; align-self: center; }
  .sh-burger { display: none !important; }
  .brand-plate {
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin-bottom: 0;
    box-shadow: none;
  }
  .brand-plate .logo-wordmark { max-width: min(360px, 42vw); }
  /* Header is always black, so the white lockup stays at every theme. */
  .brand-plate .logo-on-light { display: none; }
  .brand-plate .logo-on-dark { display: block; }
}
@media (max-width: 420px) {
  .brand-plate .logo-wordmark { max-width: min(230px, 64vw); }
}
@media (min-width: 1000px) and (orientation: landscape) and (max-height: 520px) {
  .brand-plate { padding: 4px 8px 5px; border-radius: 10px; }
}

/* Reserve space so the hanging badge never covers headlines or CTAs */
.hero-inner { padding-top: calc(5.5rem + var(--brand-hang)) !important; }
.page-hero { padding-top: calc(3.5rem + var(--brand-hang)); }
.crumbs { padding-top: calc(.9rem + var(--brand-hang)); }

body { padding-bottom: var(--nav-clear); }
.site-footer { padding-bottom: calc(2rem + var(--nav-clear)); }

@media (prefers-reduced-motion: reduce) {
  .brand-plate, .brand-plate .logo-wordmark { transition: none; }
}
