/* Ordia Footer candidate source
   This file contains Footer-owned implementation CSS only.
   It must not redefine shared foundation tokens.
   Authenticated App Shell owns Footer placement in the app shell.
*/

.global-footer {
  border-top: 1px solid var(--ft-border, var(--border, rgba(255,255,255,0.08)));
}

.global-footer-app {
  width: 100%;
  margin-left: 0;
  padding: 0 0 2rem;
}

.global-footer-inner {
  width: min(var(--shell-frame-max, 1180px), 100%);
  margin: 0 auto;
  padding: 1rem var(--shell-inline-pad, 24px) 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.1rem 2rem;
  flex-wrap: wrap;
  box-sizing: border-box;
}

.global-footer-branding {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.global-footer-brand {
  font-family: var(--serif, "DM Serif Display", Georgia, serif);
  font-size: 1.08rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--footer-wordmark-gold, var(--tab-active-underline, #FFC000));
  line-height: 1;
}

.global-footer-meta,
.global-footer-links a,
.global-footer-version {
  font-family: var(--font, "DM Sans", sans-serif);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ft-text-muted, #8f9aa1);
}

.global-footer-meta a {
  color: inherit;
  text-decoration: none;
}

.global-footer-meta a:hover,
.global-footer-meta a:focus-visible {
  color: var(--ft-text-hover, #adb9c1);
  outline: none;
}

.global-footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.global-footer-links a {
  text-decoration: none;
  transition:
    color var(--anim-fast, 120ms) ease,
    text-decoration-color var(--anim-fast, 120ms) ease;
}

.global-footer-links a:hover,
.global-footer-links a:focus-visible {
  color: var(--text, #f2eee8);
  text-decoration: underline;
  text-underline-offset: 3px;
  outline: none;
}

.global-footer-version {
  white-space: nowrap;
}

@media (max-width: 1023px) {
  .global-footer-app {
    padding-bottom: 1.75rem;
  }

  .global-footer-inner {
    align-items: flex-start;
    padding-inline: var(--shell-inline-pad-tablet, 20px);
  }
}

@media (max-width: 767px) {
  .global-footer-app {
    padding-bottom: 1.5rem;
  }

  .global-footer-inner {
    justify-content: flex-start;
    gap: 8px 14px;
    padding-inline: var(--shell-inline-pad-mobile, 16px);
  }

  .global-footer-version {
    white-space: normal;
  }
}
