/* ═══════════════════════════════════════════════════════════════
   SITE FOOTER — shared by every page. The homepage does not load
   shared.css, so colours and fonts are spelled out here.

   Inner pages: a darker band, after Brookings, full width — the copyright
   and φρόνησις frame the wordmark, description and link columns.
   Homepage: one quiet line on the page colour (copyright and φρόνησις),
   after Google's home page.
   ═══════════════════════════════════════════════════════════════ */
.site-foot {
  margin-top: 2.5rem;
  background: #EDE9DF;
  border-top: 1px solid #D9D5CA;
  color: #1A1916;
  font-family: 'Times New Roman', Times, serif;
  line-height: 1.5;
}
.site-foot p, .site-foot ul, .site-foot h4 { margin: 0; }
.site-foot ul { list-style: none; padding: 0; }
.site-foot a { color: #4A4944; text-decoration: none; transition: color 0.18s; }
.site-foot a:hover { color: #A6472E; }

/* ── inner pages ──
   One three-column grid: the copyright line on the left and φρόνησις on
   the right frame the content between them. The wordmark and description
   start just right of the copyright; the link columns end just left of
   φρόνησις. (.site-foot-bottom is display:contents so its two children
   drop into the outer grid.) */
.site-foot:not(.site-foot--home) {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  column-gap: 2.6rem;
  padding: 1.6rem 28px 1.3rem;
}
.site-foot-inner {
  grid-column: 2; grid-row: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: start;
}
.site-foot-bottom { display: contents; }
.site-foot-bottom p { grid-column: 1; grid-row: 1; align-self: end; font-size: 0.68rem; letter-spacing: 0.06em; color: #8A8880; }
.site-foot-bottom .phronesis-greek { grid-column: 3; grid-row: 1; align-self: end; font-style: italic; font-size: 0.78rem; color: #8A8880; }

.site-foot-brand { padding-right: 2.6rem; }
.site-foot-mark { display: inline-block; font-size: 2.1rem; line-height: 1; letter-spacing: 0.01em; margin-bottom: 0.7rem; }
.site-foot .site-foot-mark { color: #2B4736; }
.site-foot .site-foot-mark:hover { color: #A6472E; }
.site-foot-brand p { max-width: 30rem; font-size: 0.95rem; line-height: 1.6; color: #4A4944; }
.site-foot-col { padding: 0 2.6rem; }
.site-foot-col + .site-foot-col { border-left: 1px solid #D9D5CA; }
.site-foot-col:last-child { padding-right: 0; }
.site-foot h4 {
  margin-bottom: 0.75rem; font-size: 0.68rem; font-weight: 400;
  letter-spacing: 0.16em; text-transform: uppercase; color: #8A8880;
}
.site-foot .site-foot-links { display: grid; gap: 0.4rem; font-size: 0.92rem; }
/* Resource Categories: two columns, four then three */
.site-foot .site-foot-cats { grid-template-rows: repeat(4, auto); grid-auto-flow: column; column-gap: 2.4rem; }
.site-foot .site-foot-social { display: flex; gap: 1.3rem; margin-top: 0.9rem; }
.site-foot-social img { display: block; width: 18px; height: 18px; opacity: 0.55; transition: opacity 0.18s; }
.site-foot-social a:hover img, .site-foot-social a:focus-visible img { opacity: 1; }

/* narrower screens: content on top, the copyright line beneath it */
@media (max-width: 1100px) {
  .site-foot:not(.site-foot--home) { grid-template-columns: 1fr auto; row-gap: 1.4rem; }
  .site-foot-inner { grid-column: 1 / -1; }
  .site-foot-bottom p { grid-column: 1; grid-row: 2; }
  .site-foot-bottom .phronesis-greek { grid-column: 2; grid-row: 2; }
}
@media (max-width: 900px) {
  .site-foot-inner { grid-template-columns: 1fr 1fr; row-gap: 1.6rem; }
  .site-foot-brand { grid-column: 1 / -1; padding-right: 0; }
  .site-foot-col { padding: 0 1.5rem 0 0; }
  .site-foot-col + .site-foot-col { padding-left: 1.5rem; }
}
@media (max-width: 600px) {
  .site-foot:not(.site-foot--home) { padding-left: 20px; padding-right: 20px; grid-template-columns: 1fr; row-gap: 0.4rem; }
  .site-foot-inner { grid-template-columns: 1fr; margin-bottom: 1.2rem; }
  .site-foot-col + .site-foot-col { border-left: none; padding-left: 0; }
  .site-foot-bottom p, .site-foot-bottom .phronesis-greek { grid-column: 1; text-align: center; }
  .site-foot-bottom .phronesis-greek { grid-row: 3; }
}

/* ── homepage: one line on the page colour, no band ── */
.site-foot.site-foot--home { margin-top: 0; background: transparent; border-top: none; }
/* full width, edge to edge like Google: the sides line up with the
   dice and menu icons in the masthead (28px in) */
.site-foot-home {
  padding: 1.2rem 28px 1.4rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
}
.site-foot-home p { font-size: 0.8rem; letter-spacing: 0.04em; color: #8A8880; }
.site-foot-home .phronesis-greek { font-style: italic; font-size: 0.85rem; color: #8A8880; }
@media (max-width: 700px) {
  .site-foot-home { flex-direction: column; gap: 0.4rem; text-align: center; }
}
