/* Canonical shared footer treatment; no page canvas or background changes. */
body.tvc-public-shell :is(#home-footer,#tvc-overlay-footer)[data-tvc-shared-footer].tvc-shared-footer {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  grid-template-rows: minmax(0, auto) !important;
  align-items: center !important;
  justify-content: initial !important;
  gap: 12px clamp(12px, 2vw, 28px) !important;
  width: 100% !important;
  height: 62px !important;
  min-height: 62px !important;
  padding: 9px clamp(16px, 3.3vw, 42px) !important;
  margin: 0 !important;
  border: 0 !important;
  background: var(--tvc-public-bg) !important;
  color: var(--tvc-public-text) !important;
  font-family: var(--tvc-font-sans) !important;
}

/* The legacy Home stylesheet contains measured, page-local footer rules with
   important declarations. Reassert the shared footer contract on Home only. */
body.home-approved-direction.tvc-public-shell[data-tvc-canonical-page="/"] #page-home.active:not(.is-about-canvas):not(.is-curator-canvas) #home-footer[data-tvc-site-footer].tvc-shared-footer {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  grid-template-rows: minmax(0, auto) !important;
  align-items: center !important;
  justify-content: initial !important;
  gap: 12px clamp(12px, 2vw, 28px) !important;
  width: 100% !important;
  height: 62px !important;
  min-height: 62px !important;
  padding: 9px clamp(16px, 3.3vw, 42px) !important;
  margin: 0 !important;
  border: 0 !important;
  align-self: end;
}

body.home-approved-direction.tvc-public-shell[data-tvc-canonical-page="/"] #page-home.active:not(.is-about-canvas):not(.is-curator-canvas) #home-footer .tvc-footer-copy {
  grid-column: 2;
  grid-row: 1;
  justify-self: start;
  min-width: max-content !important;
  overflow: visible !important;
  font: 400 9px/1.35 var(--tvc-font-sans) !important;
  letter-spacing: .045em !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
}

body.home-approved-direction.tvc-public-shell[data-tvc-canonical-page="/"] #page-home.active:not(.is-about-canvas):not(.is-curator-canvas) #home-footer .tvc-footer-links {
  grid-column: 1;
  grid-row: 1;
  display: flex !important;
  gap: 2px !important;
  margin: 0 !important;
}

body.home-approved-direction.tvc-public-shell[data-tvc-canonical-page="/"] #page-home.active:not(.is-about-canvas):not(.is-curator-canvas) #home-footer .tvc-footer-advisory {
  grid-column: 3;
  grid-row: 1;
  display: block;
  width: 54px;
  max-height: 34px;
}

body.tvc-public-shell :is(#home-footer,#tvc-overlay-footer)[data-tvc-shared-footer].tvc-shared-footer .tvc-footer-links {
  grid-column: 1;
  grid-row: 1;
  display: flex !important;
  align-items: center;
  gap: 2px !important;
  margin: 0 !important;
}

body.tvc-public-shell :is(#home-footer,#tvc-overlay-footer)[data-tvc-shared-footer].tvc-shared-footer .tvc-footer-copy {
  grid-column: 2;
  grid-row: 1;
  justify-self: start;
  min-width: max-content !important;
  overflow: visible !important;
  color: var(--tvc-public-text) !important;
  font: 400 9px/1.35 var(--tvc-font-sans) !important;
  letter-spacing: .045em !important;
  opacity: .68;
  text-overflow: clip !important;
  white-space: nowrap !important;
}

body.tvc-public-shell :is(#home-footer,#tvc-overlay-footer)[data-tvc-shared-footer].tvc-shared-footer .tvc-footer-advisory {
  grid-column: 3;
  grid-row: 1;
  display: block;
  width: 54px;
  height: auto;
  max-height: 34px;
  object-fit: contain;
  opacity: .88;
}

body.tvc-public-shell :is(#home-footer,#tvc-overlay-footer)[data-tvc-shared-footer].tvc-shared-footer .tvc-footer-link {
  width: 30px !important;
  height: 32px !important;
  color: var(--tvc-public-text) !important;
  transition: opacity .18s ease, transform .18s ease;
}

body.tvc-public-shell :is(#home-footer,#tvc-overlay-footer)[data-tvc-shared-footer].tvc-shared-footer .tvc-footer-link:hover {
  opacity: .64;
  transform: translateY(-1px);
}

body.tvc-public-shell #home-footer[data-tvc-site-footer].tvc-shared-footer #home-footer-copyright,
body.tvc-public-shell #home-footer[data-tvc-site-footer].tvc-shared-footer .tvc-footer-legal {
  display: none !important;
}

/* A compact two-line composition protects the full legal line on narrow
   devices while preserving the familiar three social affordances. */
@media (max-width: 700px) {
  body.home-approved-direction.tvc-public-shell[data-tvc-canonical-page="/"] #page-home.active:not(.is-about-canvas):not(.is-curator-canvas) #home-footer[data-tvc-site-footer].tvc-shared-footer {
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-rows: 32px auto !important;
    gap: 0 14px !important;
    min-height: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
    height: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
    padding: 8px 14px !important;
  }

  body.home-approved-direction.tvc-public-shell[data-tvc-canonical-page="/"] #page-home.active:not(.is-about-canvas):not(.is-curator-canvas) #home-footer .tvc-footer-copy {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    min-width: 0 !important;
    max-width: 100%;
    font-size: clamp(6.5px, 2vw, 8px) !important;
    letter-spacing: .015em !important;
    white-space: nowrap !important;
    text-align: left;
  }

  body.home-approved-direction.tvc-public-shell[data-tvc-canonical-page="/"] #page-home.active:not(.is-about-canvas):not(.is-curator-canvas) #home-footer .tvc-footer-links {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  body.home-approved-direction.tvc-public-shell[data-tvc-canonical-page="/"] #page-home.active:not(.is-about-canvas):not(.is-curator-canvas) #home-footer .tvc-footer-advisory {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    justify-self: end;
    width: 52px;
    max-height: 34px;
  }
  body.tvc-public-shell :is(#home-footer,#tvc-overlay-footer)[data-tvc-shared-footer].tvc-shared-footer {
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-rows: 32px auto !important;
    gap: 0 14px !important;
    min-height: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
    height: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
    padding: 8px 14px !important;
  }
  body.tvc-public-shell :is(#home-footer,#tvc-overlay-footer)[data-tvc-shared-footer].tvc-shared-footer .tvc-footer-copy {
    min-width: 0 !important;
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    font-size: clamp(6.5px, 2vw, 8px) !important;
    letter-spacing: .015em !important;
    white-space: nowrap !important;
    text-align: left;
  }
  body.tvc-public-shell #home-footer .tvc-footer-rights { display: inline; }
  body.tvc-public-shell :is(#home-footer,#tvc-overlay-footer)[data-tvc-shared-footer].tvc-shared-footer .tvc-footer-advisory {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    width: 52px;
    max-height: 34px;
  }
  body.tvc-public-shell :is(#home-footer,#tvc-overlay-footer)[data-tvc-shared-footer].tvc-shared-footer .tvc-footer-link {
    width: 26px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.tvc-public-shell :is(#home-footer,#tvc-overlay-footer)[data-tvc-shared-footer].tvc-shared-footer .tvc-footer-link {
    transition: none !important;
  }
}
