/* Footer v2 — 2026-10-23
   Purpose: tighter grid, a real status object, a calmer bottom bar.
   Light-only site: values are tuned for the white/off-white theme.
   Kept as a separate hand-authored stylesheet so the generated
   base/sub tables stay untouched (they are content-hashed). */

.spec:not(:has(*)) { display: none !important; }

.footer-v2 {
  background: #FBFBFA !important;
  border-top: 1px solid rgba(17, 24, 39, .09) !important;
}

.footer-v2 .footer-inner {
  max-width: 1440px;
  padding: 0 32px;
}

.footer-v2 .footer-top {
  display: grid;
  grid-template-columns: minmax(300px, 1.25fr) minmax(130px, .65fr) minmax(150px, .8fr) minmax(240px, 1.05fr);
  column-gap: 48px;
  row-gap: 40px;
  padding: 64px 0 40px;
  align-items: start;
}

.footer-v2 .footer-brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.footer-v2 .footer-brand-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-v2 .footer-copy {
  margin: 0;
  max-width: 36ch;
  font-size: 13.5px;
  line-height: 1.6;
  letter-spacing: 0;
  color: rgba(17, 24, 39, .62) !important;
}

.footer-v2 .footer-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 7px 11px;
  border: 1px solid rgba(17, 24, 39, .12);
  border-radius: 999px;
  background: #fff;
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 10.5px;
  line-height: 1;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: rgba(17, 24, 39, .64) !important;
  text-decoration: none;
  transition: border-color .15s ease, color .15s ease;
}

.footer-v2 .footer-status:hover {
  border-color: rgba(17, 24, 39, .26);
  color: #111827 !important;
}

.footer-v2 .footer-status-dot {
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: #1D4ED8;
}

.footer-v2 .footer-status-arrow {
  transition: transform .18s ease;
}

.footer-v2 .footer-status:hover .footer-status-arrow {
  transform: translateX(2px);
}

.footer-v2 .footer-cols {
  display: contents;
}

.footer-v2 .footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.footer-v2 .footer-col h2,
.footer-v2 .footer-col h3,
.footer-v2 .footer-col h4 {
  margin: 0 !important;
  padding: 0 0 12px !important;
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace) !important;
  font-size: 10.5px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  letter-spacing: .14em !important;
  text-transform: uppercase !important;
  color: rgba(17, 24, 39, .6) !important;
}

.footer-v2 .footer-col a {
  width: fit-content;
  font-size: 13.5px;
  line-height: 1.5;
  letter-spacing: 0;
  color: rgba(17, 24, 39, .7) !important;
  text-decoration: none;
  transition: color .15s ease;
}

.footer-v2 .footer-col a:hover {
  color: #111827 !important;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* The Legal group has seven links; two columns keep it from
   driving the whole footer's height. */
.footer-v2 .footer-col:last-child {
  display: block;
  column-count: 2;
  column-gap: 28px;
}

.footer-v2 .footer-col:last-child h2,
.footer-v2 .footer-col:last-child h3,
.footer-v2 .footer-col:last-child h4 {
  column-span: all;
}

.footer-v2 .footer-col:last-child a {
  display: block;
  break-inside: avoid;
  margin-bottom: 10px;
}

.footer-v2 .footer-bottom {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1440px;
  min-height: 0;
  margin: 0 auto;
  padding: 18px 32px 24px;
  border-top: 1px solid rgba(17, 24, 39, .09);
  font-size: 11.5px;
  line-height: 1.5;
  letter-spacing: .02em;
  color: rgba(17, 24, 39, .62) !important;
}

.footer-v2 .footer-bottom span[aria-hidden="true"] {
  display: none !important;
}

.footer-v2 .footer-bottom a {
  color: rgba(17, 24, 39, .62) !important;
  text-decoration: none;
}

.footer-v2 .footer-bottom a:hover {
  color: #111827 !important;
}

.footer-v2 .footer-bottom a:first-of-type {
  margin-left: auto;
}

.footer-v2 a:focus-visible {
  outline: 2px solid #1D4ED8;
  outline-offset: 3px;
  border-radius: 2px;
}

@media (max-width: 1100px) {
  .footer-v2 .footer-top {
    grid-template-columns: minmax(280px, 1.2fr) minmax(120px, .6fr) minmax(140px, .8fr) minmax(200px, 1fr);
    column-gap: 32px;
  }
}

@media (max-width: 980px) {
  .footer-v2 .footer-top {
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
    row-gap: 36px;
    padding: 48px 0 32px;
  }

  .footer-v2 .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-v2 .footer-col:last-child {
    grid-column: 1 / -1;
  }

  .footer-v2 .footer-bottom a:first-of-type {
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .footer-v2 .footer-inner {
    padding: 0 20px;
  }

  .footer-v2 .footer-top {
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
    row-gap: 32px;
    padding: 40px 0 28px;
  }

  .footer-v2 .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-v2 .footer-col:last-child {
    grid-column: 1 / -1;
  }

  .footer-v2 .footer-bottom {
    flex-wrap: wrap;
    gap: 6px 10px;
    padding: 16px 20px 24px;
  }
}

/* Beta badge — same geometry as the old Live pill, blue instead of green. */
html body .ver-beta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(29, 78, 216, .08);
  color: #1D4ED8 !important;
  border: 1px solid rgba(29, 78, 216, .28);
  white-space: nowrap;
  vertical-align: middle;
  margin-left: 0;
}
html body .ver-beta::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1D4ED8;
  flex: none;
}

/* Beta page: three pillars in one row on desktop. */
.beta-pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 980px) {
  .beta-pillars { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .beta-pillars { grid-template-columns: 1fr; }
}

/* The legal-page subset sets `.pmain .ver` color with !important;
   match its specificity so the Beta pill stays blue. */
html body .pmain .ver-beta {
  color: #1D4ED8 !important;
}

/* The 2026-10 UI merge added a light-only table with `footer.footer`
   and `#v2`-scoped color rules. Re-assert the v2 surface at ID level
   so the footer keeps its off-white separation from the page. */
html body #v2 footer.footer.footer-v2,
html body footer.footer.footer-v2 {
  background-color: #FBFBFA !important;
}
html body #v2 footer.footer-v2 .footer-status,
html body footer.footer.footer-v2 .footer-status {
  color: rgba(17, 24, 39, .64) !important;
}

html body #v2 footer.footer-v2 .footer-bottom,
html body footer.footer.footer-v2 .footer-bottom,
html body #v2 footer.footer-v2 .footer-bottom a,
html body footer.footer.footer-v2 .footer-bottom a {
  color: rgba(17, 24, 39, .62) !important;
}
