/**
 * Canonical content grid — nav logo, main, and footer share this box.
 * Bump UI_PUBLIC_STYLES_VERSION in page-shell.ts when this file changes.
 *
 * Gutters are intentional: never allow content flush to the viewport edge.
 * Use !important only against app-level resets that zero padding-inline.
 */
.page-shell-container {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--page-shell-max-width, 80rem);
  margin-inline: auto;
  padding-inline: var(
    --page-shell-padding-inline,
    clamp(1rem, 4vw, 2.5rem)
  );
}

/* Alias used by older chrome + platform home */
.platform-shell {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--page-shell-max-width, 80rem);
  margin-inline: auto;
  padding-inline: var(
    --page-shell-padding-inline,
    clamp(1rem, 4vw, 2.5rem)
  );
}

/* Canonical multi-column platform footer (all subdomains) */
.platform-footer {
  /* Vertical padding lives here so Tailwind purges / app resets cannot collapse it */
  padding-block: 2.75rem 2.5rem;
}

@media (min-width: 1024px) {
  .platform-footer {
    padding-block: 3.25rem 2.75rem;
  }
}

.platform-footer-inner {
  /* Horizontal gutters only — vertical is on .platform-footer */
  padding-block: 0;
}

.platform-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  column-gap: 1.75rem;
  row-gap: 2rem;
  align-items: start;
}

/*
 * Shared title band (brand mark + column h4s).
 * Equal min-height so body rows start on the same baseline —
 * brand blurb top-aligns with the first <li> in each column.
 */
.platform-footer-title-row {
  display: flex;
  align-items: center;
  min-height: 2rem;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/*
 * Body row: blurb + link lists.
 * Breathing room under titles so the first list item lines up with
 * the top of the brand paragraph (not cramped under the h4).
 */
.platform-footer-body {
  margin: 1.125rem 0 0;
  padding: 0;
}

.platform-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.platform-footer-links li {
  margin: 0;
  padding: 0;
  line-height: 1.35;
}

.platform-footer-brand,
.platform-footer-column {
  min-width: 0;
}

/* DEV / PROD badge next to version in brand row */
.platform-footer-mode-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  border: 1px solid color-mix(in srgb, var(--ink, #18181b) 14%, transparent);
  background: color-mix(in srgb, var(--surface-muted, #f5f5f4) 88%, transparent);
  padding: 0.1rem 0.4rem;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sticker-muted, #57534e);
  line-height: 1.2;
}

/* Build identity strip — always on for DEV and PROD debugging */
.platform-footer-meta {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--sticker-muted, #78716c);
  line-height: 1.4;
  word-break: break-word;
}

.platform-footer-copyright {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border, #e7e5e4);
}

.platform-footer-legal {
  margin: 0;
}

@media (max-width: 900px) {
  .platform-footer-grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 1.25rem;
    row-gap: 1.5rem;
  }
}

@media (max-width: 560px) {
  .platform-footer-grid {
    grid-template-columns: 1fr;
    row-gap: 1.25rem;
  }
}
