/**
 * Site footer — single-row attribution bar (desktop,
tablet,
phone).
 * Aligns with app-header--modern warm shell tokens.
 */

:root {
  --site-footer-stack-height: calc(var(--footer-row-h, 2.5rem) + 1.1rem + env(safe-area-inset-bottom));
}.app-site-footer {
  --footer-bg: linear-gradient(180deg, rgba(255, 253, 248, 0.98) 0%, rgba(254, 246, 232, 0.96) 100%);
  --footer-border: rgba(231, 201, 120, 0.55);
  --footer-text: #57534e;
  --footer-text-soft: #78716c;
  --footer-accent: #b91c1c;
  --footer-gold: #a16207;
  --footer-surface: rgba(255, 255, 255, 0.72);
  --footer-radius: 10px;
  --footer-row-h: 2.5rem;

  position: relative;
  flex-shrink: 0;
  margin-top: auto;
  padding: 0.55rem max(0.65rem, env(safe-area-inset-right))
    calc(0.55rem + env(safe-area-inset-bottom)) max(0.65rem, env(safe-area-inset-left));
  border-top: 1px solid var(--footer-border);
  background: var(--footer-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}.app-site-footer__accent {
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 2px;
  transform: translateY(-1px);
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(185, 28, 28, 0.35) 22%,
    rgba(161, 98, 7, 0.42) 50%,
    rgba(185, 28, 28, 0.35) 78%,
    transparent 100%
  );
  pointer-events: none;
}/* One row: meta (left) · icon actions (right) */
.app-site-footer__inner {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 0.85rem;
  width: 100%;
  max-width: 72rem;
  min-height: var(--footer-row-h);
  margin: 0 auto;
  box-sizing: border-box;
}.app-site-footer__meta {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  flex: 1 1 auto;
  margin: 0;
  font-size: clamp(0.72rem, 1.6vw, 0.8125rem);
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--footer-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}.app-site-footer__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 6px;
  color: var(--footer-accent);
  background: rgba(185, 28, 28, 0.08);
  border: 1px solid rgba(185, 28, 28, 0.14);
}.app-site-footer__mark svg {
  display: block;
}.app-site-footer__year {
  flex-shrink: 0;
  font-weight: 600;
  color: var(--footer-text-soft);
  font-variant-numeric: tabular-nums;
}.app-site-footer__sep {
  flex-shrink: 0;
  color: rgba(161, 98, 7, 0.55);
  font-weight: 700;
  user-select: none;
}.app-site-footer__lead {
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--footer-text-soft);
  font-weight: 500;
}.app-site-footer__name {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--footer-accent);
}/* Compact icon group — stays on one row with meta */
.app-site-footer__actions {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  flex-shrink: 0;
  gap: 0;
  padding: 2px;
  border-radius: 999px;
  border: 1px solid rgba(185, 28, 28, 0.16);
  background: var(--footer-surface);
  box-shadow: 0 1px 2px rgba(63, 15, 25, 0.06);
  backdrop-filter: blur(6px);
}.app-site-footer__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  color: var(--footer-accent);
  text-decoration: none;
  transition:
    background 0.16s ease,
    color 0.16s ease,
    box-shadow 0.16s ease;
  -webkit-tap-highlight-color: transparent;
}.app-site-footer__action + .app-site-footer__action {
  margin-left: 1px;
  box-shadow: -1px 0 0 rgba(185, 28, 28, 0.1);
}.app-site-footer__action:hover {
  background: rgba(185, 28, 28, 0.1);
  color: #991b1b;
}.app-site-footer__action:focus-visible {
  outline: 2px solid var(--footer-accent);
  outline-offset: 2px;
  z-index: 1;
}.app-site-footer__action:active {
  background: rgba(254, 226, 226, 0.95);
}.app-site-footer__icon {
  display: block;
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
}/* Tablet / phone — one centered row,
tighter copy */
@media (max-width: 1400px) {
  :root {
    --site-footer-stack-height: calc(2.35rem + 0.9rem + env(safe-area-inset-bottom));
  }

  .app-site-footer {
    --footer-row-h: 2.35rem;
    padding-top: 0.45rem;
    padding-bottom: calc(0.45rem + env(safe-area-inset-bottom));
    text-align: center;
  }

  .app-site-footer__inner {
    justify-content: center;
    gap: 0.45rem 0.55rem;
  }

  .app-site-footer__meta {
    flex: 0 1 auto;
    justify-content: center;
    gap: 0.28rem;
    font-size: 0.7rem;
  }

  .app-site-footer__mark {
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 5px;
  }

  .app-site-footer__mark svg {
    width: 12px;
    height: 12px;
  }

  .app-site-footer__lead {
    display: none;
  }

  .app-site-footer__action {
    width: 2.15rem;
    height: 2.15rem;
  }
}

@media (max-width: 380px) {
  .app-site-footer__sep:first-of-type {
    display: none;
  }
}/* Fullscreen: tuck footer away for workspace focus */
html.pseudo-view-fullscreen .app-site-footer,
html.has-view-fullscreen .app-site-footer {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .app-site-footer__action {
    transition: none;
  }
}
