/* Shared by React marketing pages and static service/region pages. */
.public-footer-navigation,
.public-footer .public-footer-navigation {
  --public-footer-heading: #fffdf9;
  --public-footer-link: #b9c1cc;
  --public-footer-focus: #8caeff;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  min-width: 0;
  margin: 0;
  font-size: 0.875rem;
}

.public-footer-navigation[data-footer-tone="light"] {
  --public-footer-heading: #101a2b;
  --public-footer-link: #4f5968;
  --public-footer-focus: #2e62d0;
}

.public-footer-group { min-width: 0; }
.public-footer-navigation .public-footer-group > h2 {
  margin: 0 0 14px;
  color: var(--public-footer-heading);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0;
  word-break: keep-all;
}
.public-footer-navigation .public-footer-group > ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.public-footer-group li { min-width: 0; }
.public-footer-navigation .public-footer-group a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 0;
  color: var(--public-footer-link);
  font-size: 0.875rem;
  line-height: 1.55;
  text-decoration: none;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.public-footer-navigation .public-footer-group a:hover {
  color: var(--public-footer-heading);
  text-decoration: none;
  text-underline-offset: 4px;
}
.public-footer-navigation .public-footer-group a:focus-visible {
  border-radius: 2px;
  outline: 2px solid var(--public-footer-focus);
  outline-offset: 4px;
}

.search-footer.public-footer {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.7fr);
  gap: 40px 56px;
}
.search-footer.public-footer > .public-footer-brand { min-width: 0; }
.search-footer.public-footer > .public-footer-brand > p { margin-bottom: 0; }
.search-footer.public-footer > .search-operator {
  grid-column: 1 / -1;
  max-width: none;
  margin-top: 0;
}
.search-footer.public-footer > .search-operator a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  vertical-align: middle;
}

@media (max-width: 980px) {
  .search-footer.public-footer { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
  .public-footer-navigation,
  .public-footer .public-footer-navigation {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
  }
  .public-footer-navigation .public-footer-group > h2 { margin-bottom: 10px; }
  .public-footer-group:last-child { grid-column: 1 / -1; }
  .public-footer-navigation .public-footer-group:last-child > ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
  }
  .search-footer.public-footer { gap: 32px; }
}

@media (max-width: 360px) {
  .public-footer-navigation,
  .public-footer .public-footer-navigation,
  .public-footer-navigation .public-footer-group:last-child > ul { grid-template-columns: minmax(0, 1fr); }
}

/* Current public pages opt in; archived landing compositions keep their layout. */
html body footer[data-footer-layout="compact"][data-footer-layout] {
  display: grid;
  grid-template-columns: minmax(140px, .42fr) minmax(0, 1fr);
  align-items: start;
  justify-items: stretch;
  gap: 16px 32px;
  padding-block: 24px 32px;
  text-align: left;
}
html body footer[data-footer-layout="compact"][data-footer-layout] > .public-footer-navigation[data-footer-layout="compact"] {
  display: block;
  grid-column: auto;
  grid-row: auto;
  min-width: 0;
  margin: 0;
  justify-self: stretch;
}
html body .public-footer-navigation[data-footer-layout="compact"] > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
html body .public-footer-navigation[data-footer-layout="compact"] li { min-width: 0; }
html body .public-footer-navigation[data-footer-layout="compact"] a {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  color: var(--public-footer-link);
  font-family: var(--public-font-sans, inherit);
  font-size: .875rem;
  font-weight: 450;
  line-height: 1.6;
  letter-spacing: var(--public-type-tracking, 0);
  text-decoration: none;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
html body .public-footer-navigation[data-footer-layout="compact"] a:hover { color: var(--public-footer-heading); text-decoration: none; }

/* Keep navigation and operator contact links equally quiet, including hover. */
html body footer.public-footer a,
html body footer[data-footer-layout="compact"] a {
  text-decoration: none;
}
html body .public-footer-navigation[data-footer-layout="compact"] a:focus-visible { outline: 2px solid var(--public-footer-focus); outline-offset: 4px; }
html body footer[data-footer-layout="compact"][data-footer-layout] > :is(.operator-disclosure, .search-operator, .story-operator) {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  grid-row: auto;
  gap: 4px 16px;
  width: auto;
  max-width: none;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid #89939e40;
}
html body footer[data-footer-layout="compact"][data-footer-layout] > small {
  grid-column: 1 / -1;
  grid-row: auto;
  justify-self: start;
  margin: 0;
  padding: 0;
  border: 0;
  text-align: left;
}
html body footer[data-footer-layout="compact"][data-footer-layout] :is(.public-footer-brand, .story-brand) + p,
html body footer[data-footer-layout="compact"][data-footer-layout] > .public-footer-brand > p { margin: 8px 0 0; }

@media (max-width: 980px) {
  html body footer[data-footer-layout="compact"][data-footer-layout] { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  html body footer[data-footer-layout="compact"][data-footer-layout] > :is(.operator-disclosure, .search-operator, .story-operator) { display: grid; }
}
/* Campaign action bars remain reachable without covering the disclosure. */
@media (max-width: 820px) {
  html body footer[data-footer-layout="compact"][data-footer-layout]:is(.cafe-footer, .studio-footer) { padding-bottom: 104px; }
}
