/* Aaron Lane credit footer. Loaded on every page. Does not restyle the Netlify badge. */

#unstuck-credit {
  box-sizing: border-box;
  font-size: 11px;
  line-height: 1.55;
  text-align: center;
  color: oklch(48% 0.03 50);
  color: var(--muted-foreground, oklch(48% 0.03 50));
}

#unstuck-credit p {
  margin: 0.28rem 0 0;
}

#unstuck-credit p:first-child {
  margin-top: 0;
}

#unstuck-credit a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

#unstuck-credit a:focus-visible {
  outline: 2px solid oklch(64% 0.17 38);
  outline-offset: 2px;
}

/*
  Edition pages: the script appends this footer as a sibling of the React
  root, after hydration. Give the app column extra bottom padding and pull
  the footer up into that space so it sits under the in-app crisis line,
  above the Netlify badge, without covering roadblock cards.
*/
.min-h-dvh .mx-auto.flex.min-h-dvh.w-full.max-w-md.flex-col {
  padding-bottom: max(
    calc(var(--nf-badge-clearance, 6.5rem) + 4.75rem),
    calc(env(safe-area-inset-bottom, 0px) + 10.25rem)
  );
}

body > footer#unstuck-credit {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 28rem;
  margin: calc(-1 * (var(--nf-badge-clearance, 6.5rem) + 4.5rem) + 0.35rem) auto 0;
  padding: 0.15rem 1.25rem max(4.75rem, calc(env(safe-area-inset-bottom, 0px) + 4.25rem));
}
