/* Step 3c: site footer, the back page of the paper. Same navy ink, glow and grain as the index menu. Scoped to our templates. */
.ai-site .site-footer { position: relative; isolation: isolate; overflow: hidden; margin-top: 56px; color: #c4d0ea; font-size: 14px;
  background:
    radial-gradient(50% 60% at 92% 0%, rgba(77, 178, 236, .32), rgba(77, 178, 236, 0) 70%),
    radial-gradient(40% 60% at 0% 100%, rgba(77, 178, 236, .16), rgba(77, 178, 236, 0) 70%),
    linear-gradient(160deg, #143890 0%, #0b2260 48%, #071540 100%);
  border-top: 6px double var(--sky); }
.ai-site .site-footer::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .08; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.ai-site .site-footer .wrap { padding-block: 36px 24px; }
.ai-site .site-footer a { transition: color .2s; }
.ai-site .site-footer a:hover, .ai-site .site-footer a:focus-visible { color: #ffffff; }

/* Brand row */
.ai-site .foot-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,.14); }
.ai-site .foot-mark img { width: 260px; height: auto; }
.ai-site .foot-tagline { margin: 0; font-family: var(--display); font-style: italic; font-size: 17px; color: #ffffff; }
.ai-site .foot-social { list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; gap: 10px; }
.ai-site .foot-social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: #ffffff; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); transition: background-color .2s, color .2s; }
.ai-site .foot-social a:hover, .ai-site .foot-social a:focus-visible { background: var(--sky); color: #0b2260; }

/* Three columns */
.ai-site .foot-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, .9fr); gap: 40px; padding-block: 30px 6px; }
.ai-site .site-footer .foot-h { color: #ffffff; font-family: var(--display); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; }
.ai-site .site-footer .foot-h::after { content: ""; display: block; width: 28px; height: 3px; margin-top: 8px; background: var(--sky); border-radius: 2px; }
.ai-site .foot-about p { margin: 0 0 16px; max-width: 52ch; line-height: 1.65; color: #c4d0ea; }
.ai-site .foot-contact { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.ai-site .foot-contact li { display: flex; gap: 10px; align-items: baseline; }
.ai-site .foot-contact span { min-width: 76px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8ea1cf; }
.ai-site .foot-contact a { color: #ffffff; font-weight: 600; }
.ai-site .foot-about .foot-more { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; }
.ai-site .foot-more a { color: var(--sky); font-weight: 700; }
.ai-site .foot-sections ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 24px; }
.ai-site .foot-sections li { break-inside: avoid; padding: 3px 0; }
.ai-site .foot-sections a { color: #dfe7f7; font-weight: 600; }

/* Latest edition card */
.ai-site .foot-edition { display: grid; gap: 10px; }
.ai-site .foot-edition img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; border-radius: 4px; box-shadow: 0 18px 40px rgba(2, 8, 30, .45), 0 0 0 1px rgba(255,255,255,.1); transition: transform .35s cubic-bezier(.3,.8,.2,1); }
.ai-site .foot-edition:hover img { transform: translateY(-3px) rotate(-.6deg); }
.ai-site .foot-edition-label { font-family: var(--display); font-size: 17px; color: #ffffff; font-weight: 600; }
.ai-site .foot-edition-cta { color: var(--sky); font-weight: 700; font-size: 13px; }

/* Bottom bar */
.ai-site .foot-bottom { margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; font-size: 13px; color: #8ea1cf; }
.ai-site .foot-bottom nav { display: flex; flex-wrap: wrap; gap: 18px; }
.ai-site .foot-bottom .credit { margin-left: auto; }
.ai-site .foot-bottom .credit a { color: #ffffff; font-weight: 600; }

/* Desktop: the newspaper column takes exactly the height of the About and Sections columns,
   so all three end on the same line. "contain: size" stops the cover from setting the height;
   the grid row stretches it, and the cover fills what the caption leaves (top of the page kept). */
@media (min-width: 961px) {
  .ai-site .foot-grid { align-items: stretch; }
  .ai-site .foot-paper { contain: size; min-height: 220px; display: flex; flex-direction: column; }
  .ai-site .foot-paper .foot-h { flex: none; }
  .ai-site .foot-edition { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
  .ai-site .foot-edition img { flex: 1 1 0; min-height: 0; aspect-ratio: auto; height: auto; }
  .ai-site .foot-edition-label, .ai-site .foot-edition-cta { flex: none; }
}
@media (max-width: 960px) {
  .ai-site .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ai-site .foot-paper { grid-column: 1 / -1; }
  .ai-site .foot-edition { grid-template-columns: 160px 1fr; align-items: center; column-gap: 18px; }
  .ai-site .foot-edition img { grid-row: span 2; }
}
@media (max-width: 640px) {
  .ai-site .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .ai-site .foot-social { margin-left: 0; }
  .ai-site .foot-mark img { width: 210px; }
  .ai-site .foot-edition { grid-template-columns: 120px 1fr; }
  .ai-site .foot-bottom .credit { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ai-site .foot-edition img, .ai-site .site-footer a { transition: none; }
}
