@import url("reading-layout.css?v=20261014-ux");
/* Layout only. Shared button feedback, circular branding, link destinations,
   QR artwork and the no-JavaScript language routes remain unchanged. */
:root body .site-footer {
  background: #063e40;
  color: #dbe8ed;
  padding-block: clamp(1.5rem, 3vw, 2.5rem) 1.25rem;
  padding-inline: env(safe-area-inset-left, 0px) env(safe-area-inset-right, 0px);
  font: 1rem/1.65 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.site-footer .container {
  width: min(calc(100% - 2rem), 70rem);
  margin-inline: auto;
  padding-inline: 0;
}
:root body .site-footer .footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 1.25rem;
}
.site-footer .footer-grid > div { min-width: 0; }
:root body .site-footer .footer-grid > div:first-child {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(5rem, 100%);
}
:root body .site-footer .footer-brand {
  display: inline-flex;
  flex: none;
  width: 100%;
  max-width: 100%;
  align-items: center;
  gap: .75rem;
  margin: 0;
  color: #fff;
  font-size: 1rem;
  font-weight: 850;
  line-height: inherit;
  letter-spacing: -.02em;
  text-decoration: none;
  vertical-align: top;
}
:root body .site-footer .footer-logo {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  margin: 0;
  aspect-ratio: 1;
  object-fit: contain;
  object-position: center;
  background: #fff;
  border-radius: 50%;
}
.site-footer h2 {
  margin: 0 0 .75rem;
  color: #e8c36e;
  font: 700 1rem/1.4 Georgia, "Times New Roman", serif;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.site-footer p { max-width: none; margin: 0; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer a { color: #fff; text-underline-offset: .2em; }
/* Equal tracks replace the uneven tag-like wrapping, without restyling pills. */
:root body .site-footer .footer-grid > div > ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  align-items: stretch;
  justify-items: stretch;
  gap: .75rem;
  margin: 0;
}
.site-footer .footer-grid > div > ul > li { min-width: 0; max-width: 100%; }
.site-footer .footer-grid > div > ul > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
:root body .site-footer .footer-grid > div > ul > li > a {
  width: 100%;
  height: 100%;
  min-height: 48px;
}
/* Keep the QR link first in the visual and keyboard order. The three contact
   buttons form a stable stack beside it instead of wrapping unpredictably. */
:root body .site-footer .footer-grid .footer-connect {
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
  gap: 1rem;
  align-items: center;
  width: 100%;
  max-width: 25rem;
  margin-inline: auto;
}
:root body .site-footer .footer-connect > a {
  display: inline-flex;
  justify-self: center;
  align-items: center;
  min-width: 0;
  max-width: 100%;
}
:root body .site-footer .footer-qr {
  display: block;
  width: 7rem;
  height: auto;
  max-width: 100%;
  aspect-ratio: 1;
  padding: .35rem;
  object-fit: contain;
  object-position: center;
  background: #fff;
  border-radius: .65rem;
}
:root body .site-footer .footer-grid .footer-connect p,
:root body .site-footer .footer-grid > div > h2 + p {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: .75rem;
  min-width: 0;
  margin: 0;
}
:root body .site-footer .footer-grid .footer-connect p > a,
:root body .site-footer .footer-grid > div > h2 + p > a { width: 100%; }
:root body .site-footer .footer-grid .footer-connect p > br,
:root body .site-footer .footer-grid > div > h2 + p > br { display: none; }
/* White contact icons retain contrast when a button's background changes. */
.site-footer .footer-contact-icon {
  display: block;
  flex: 0 0 auto;
  box-sizing: content-box;
  width: 1.25rem;
  height: 1.25rem;
  padding: .125rem;
  object-fit: contain;
  background: #004b50;
  border-radius: .25rem;
}
:root body .site-footer .footer-note {
  width: min(calc(100% - 2rem), 70rem);
  max-width: none;
  margin: 1.25rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgb(255 255 255 / .2);
  text-align: center;
  color: #c6dddd;
  font-size: .85rem;
}
/* Group identity and independently verifiable PPN membership. */
:root body .site-footer .footer-membership {
  /* Scale both axes by 1/sqrt(2) for a further 50% reduction in area. */
  --membership-scale: .70710678;
  margin: .75rem auto 0;
  text-align: center;
  overflow-wrap: anywhere;
}
/* Scale the badge, logo and typography together without reserving empty space. */
:root body .site-footer > p.footer-membership > a[href] {
  flex-direction: column;
  gap: calc(.25rem * var(--membership-scale));
  width: calc(13.5rem * var(--membership-scale));
  max-width: 100%;
  padding: calc(.375rem * var(--membership-scale));
  border-radius: calc(.625rem * var(--membership-scale));
  font-size: calc(.75rem * var(--membership-scale));
  background: #fff;
  color: #d1765f;
}
.site-footer .footer-ppn-logo {
  display: block;
  flex: none;
  width: calc(6.25rem * var(--membership-scale));
  max-width: 100%;
  height: auto;
  object-fit: contain;
  background: #fff;
  border-radius: calc(.35rem * var(--membership-scale));
}
.site-footer .footer-membership > a > span {
  max-width: 100%;
}
/* Reduce the existing credit's typography, padding and height by 33%. */
:root body .site-footer > p.container > a[href="https://samobrienolinger.github.io/SamOBrienOlinger/"] {
  font-size: .5025rem;
  min-height: 32.16px;
  padding: .469rem 1.005rem;
}
/* The existing minimal 404 footer and no-script language links stay available. */
.site-footer > p.container:not(.footer-note) { text-align: center; }
.site-footer .translation-fallback { margin-top: 1.5rem; }
.site-footer .translation-fallback ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  gap: .75rem;
}
.site-footer .translation-fallback li > a { width: 100%; }
@media (min-width: 44rem) {
  :root body .site-footer .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2rem;
  }
  .site-footer h2 { text-align: start; }
  :root body .site-footer .footer-grid .footer-connect { margin-inline: 0; }
}
@media (min-width: 64rem) {
  :root body .site-footer .footer-grid {
    grid-template-columns: minmax(0, .35fr) minmax(0, 1.25fr) minmax(0, 1fr);
    gap: clamp(1.75rem, 3.5vw, 3rem);
  }
  :root body .site-footer .footer-grid > div:first-child {
    grid-column: auto;
    justify-self: start;
    width: min(7rem, 100%);
  }
}
@media (prefers-contrast: more) {
  :root body .site-footer { background: #003f40; }
}
@media print { .site-footer { display: none !important; } }
