/* 1.1.165 sitewide footer v3: Inter, ink-blue accent, 1200px column,
   labeled link columns. 2-col tight grid on mobile; 4 columns on desktop.
   Newsletter form behavior is unchanged; this file restyles only. */

.sr-footer.sr-footer--v3{
  --sr-accent:#2f5570;
  --sr-accent-soft:#e8f1f6;
  font-family:"Inter","Helvetica Neue",Arial,Helvetica,sans-serif;
  color:var(--sr-ink);
  background:var(--sr-paper);
  border-top:1px solid var(--sr-border,#e2e2dc);
  padding-block:40px 32px;
}
.sr-footer.sr-footer--v3,
.sr-footer.sr-footer--v3 *{box-sizing:border-box}

html body .sr-footer.sr-footer--v3 .sr-wrap{
  max-width:1200px;
  width:100%;
  margin-inline:auto;
  padding-inline:24px;
}

/* Wordmark matches the v3 header ("source."), not the old uppercase site title. */
html body .sr-footer.sr-footer--v3 .sr-brand,
html body .sr-footer.sr-footer--v3 .sr-wordmark{
  margin:0;
  font-family:"Inter","Helvetica Neue",Arial,Helvetica,sans-serif;
  font-weight:600;
  font-size:1.35rem;
  letter-spacing:normal;
  line-height:1.2;
  text-transform:none;
  white-space:nowrap;
}
html body .sr-footer.sr-footer--v3 .sr-brand a,
html body .sr-footer.sr-footer--v3 .sr-wordmark a{
  color:var(--sr-ink);
  text-decoration:none;
}

html body .sr-footer.sr-footer--v3 p{
  margin-top:0;
  max-width:none;
}
html body .sr-footer.sr-footer--v3 p.sr-small{
  margin:12px 0 0;
  max-width:36rem;
  font-size:13px;
  line-height:1.6;
  color:var(--sr-ink-muted,#55554f);
}
html body .sr-footer.sr-footer--v3 p.sr-legal{
  margin-top:10px;
  font-size:12px;
  line-height:1.55;
}

/* Brand + newsletter: two columns on desktop, stacked on mobile. */
html body .sr-footer.sr-footer--v3 .sr-footgrid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(260px,400px);
  gap:32px 48px;
  align-items:start;
}
html body .sr-footer.sr-footer--v3 .sr-footgrid > .wp-block-group:first-child{
  min-width:0;
  max-width:none;
}
html body .sr-footer.sr-footer--v3 .sr-footgrid > .sr-foot-signup{
  min-width:0;
  width:100%;
}
/* If a shortcode or wpautop wrapper remains, don't let it occupy a grid cell. */
html body .sr-footer.sr-footer--v3 .sr-footgrid > .wp-block-shortcode,
html body .sr-footer.sr-footer--v3 .sr-footgrid > p:has(.sr-cap--footer),
html body .sr-footer.sr-footer--v3 .sr-foot-signup:has(.sr-cap--footer){
  display:contents;
}
html body .sr-footer.sr-footer--v3 .sr-footgrid > p:empty,
html body .sr-footer.sr-footer--v3 .sr-footgrid > .wp-block-shortcode:empty{
  display:none;
}
html body .sr-footer.sr-footer--v3 .sr-footgrid > .sr-cap--footer,
html body .sr-footer.sr-footer--v3 .sr-footgrid .sr-cap--footer{
  grid-column:2;
  grid-row:1;
}


/* Newsletter card: v3 surface; keep the existing form markup and IDs. */
html body .sr-footer.sr-footer--v3 .sr-footgrid > .sr-cap--footer,
html body .sr-footer.sr-footer--v3 .sr-cap--footer{
  flex:none;
  display:flex;
  flex-direction:column;
  width:100%;
  max-width:none;
  margin:0;
  padding:18px 20px 16px;
  border:1px solid var(--sr-border,#e2e2dc);
  border-radius:12px;
  background:#fff;
  font-family:"Inter","Helvetica Neue",Arial,Helvetica,sans-serif;
}
html body .sr-footer.sr-footer--v3 .sr-cap--footer .sr-cap__title{
  margin:0 0 .35rem;
  max-width:none;
  font-size:1rem;
  font-weight:650;
  letter-spacing:-.02em;
  color:var(--sr-ink);
}
html body .sr-footer.sr-footer--v3 .sr-cap--footer .sr-cap__desc{
  margin:0 0 .6rem;
  max-width:none;
  font-size:.85rem;
  line-height:1.5;
  color:var(--sr-ink-muted,#55554f);
}
html body .sr-footer.sr-footer--v3 .sr-cap--footer .sr-cap__form{
  display:grid;
  grid-template-columns:1fr auto;
  gap:.45rem;
}
html body .sr-footer.sr-footer--v3 .sr-cap--footer .sr-cap__consent,
html body .sr-footer.sr-footer--v3 .sr-cap--footer .sr-cap__msg,
html body .sr-footer.sr-footer--v3 .sr-cap--footer .sr-cap__hp{
  grid-column:1 / -1;
}
html body .sr-footer.sr-footer--v3 .sr-cap--footer .sr-cap__input{
  width:100%;
  min-height:44px;
  padding:.6rem .75rem;
  border:1px solid var(--sr-border,#e2e2dc);
  border-radius:8px;
  background:var(--sr-paper,#fafaf8);
  font-size:16px;
  color:var(--sr-ink);
}
html body .sr-footer.sr-footer--v3 .sr-cap--footer .sr-cap__btn{
  min-height:44px;
  padding:.6rem 1rem;
  border:0;
  border-radius:8px;
  background:var(--sr-accent,#2f5570);
  color:#fff;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
  white-space:nowrap;
}
html body .sr-footer.sr-footer--v3 .sr-cap--footer .sr-cap__btn:hover{
  background:#26465c;
}
html body .sr-footer.sr-footer--v3 .sr-cap--footer .sr-cap__btn:focus-visible,
html body .sr-footer.sr-footer--v3 .sr-cap--footer .sr-cap__input:focus-visible{
  outline:2px solid var(--sr-accent,#2f5570);
  outline-offset:2px;
}
html body .sr-footer.sr-footer--v3 .sr-cap--footer .sr-cap__consent{
  display:flex;
  gap:.5rem;
  align-items:flex-start;
  font-size:.75rem;
  line-height:1.4;
  color:var(--sr-ink-muted,#55554f);
}
html body .sr-footer.sr-footer--v3 .sr-cap--footer .sr-cap__consent a{
  color:var(--sr-accent,#2f5570);
  text-decoration:underline;
  text-underline-offset:2px;
}
html body .sr-footer.sr-footer--v3 .sr-cap--footer .sr-cap__fine{
  margin:.45rem 0 0;
  max-width:none;
  font-size:.7rem;
  line-height:1.35;
  color:var(--sr-ink-muted,#55554f);
}
html body .sr-footer.sr-footer--v3 .sr-cap--footer .sr-cap__msg{
  margin:0;
  min-height:0;
  max-width:none;
}
html body .sr-footer.sr-footer--v3 .sr-cap--footer .sr-cap__msg:empty{display:none}

/* Labeled link columns. */
html body .sr-footer.sr-footer--v3 .sr-footlinks{
  width:100%;
  margin-top:36px;
  padding-top:28px;
  border-top:1px solid var(--sr-border,#e2e2dc);
}
html body .sr-footer.sr-footer--v3 .sr-footnav{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:24px 32px;
  align-items:start;
}
html body .sr-footer.sr-footer--v3 .sr-footnav__label{
  margin:0 0 10px;
  font-size:11px;
  font-weight:600;
  letter-spacing:.12em;
  line-height:1.3;
  text-transform:uppercase;
  color:var(--sr-accent,#2f5570);
}
html body .sr-footer.sr-footer--v3 .sr-footnav ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:6px;
}
html body .sr-footer.sr-footer--v3 .sr-footnav a{
  display:inline-flex;
  align-items:center;
  min-height:0;
  padding:2px 0;
  font-size:14px;
  line-height:1.45;
  color:var(--sr-ink);
  text-decoration:none;
  overflow-wrap:anywhere;
}
html body .sr-footer.sr-footer--v3 .sr-footnav a:hover{
  color:var(--sr-accent,#2f5570);
  text-decoration:underline;
  text-underline-offset:3px;
}
html body .sr-footer.sr-footer--v3 .sr-footnav a:focus-visible{
  outline:2px solid var(--sr-accent,#2f5570);
  outline-offset:3px;
}

/* Mobile / narrow: 2-column link grid, tight spacing, stacked top row. */
@media (max-width:767px){
  html body .sr-footer.sr-footer--v3 .sr-footgrid > .sr-cap--footer,
  html body .sr-footer.sr-footer--v3 .sr-footgrid .sr-cap--footer{
    grid-column:auto;
    grid-row:auto;
  }
  html body .sr-footer.sr-footer--v3{padding-block:28px 24px}
  html body .sr-footer.sr-footer--v3 .sr-wrap{padding-inline:16px}
  html body .sr-footer.sr-footer--v3 .sr-footgrid{
    display:grid;
    grid-template-columns:1fr;
    gap:20px;
  }
  html body .sr-footer.sr-footer--v3 .sr-footgrid > .sr-cap--footer,
  html body .sr-footer.sr-footer--v3 .sr-cap--footer{
    max-width:none;
    margin:0;
    padding:16px;
  }
  html body .sr-footer.sr-footer--v3 .sr-cap--footer .sr-cap__form{
    grid-template-columns:1fr;
  }
  html body .sr-footer.sr-footer--v3 .sr-footlinks{
    margin-top:20px;
    padding-top:18px;
  }
  html body .sr-footer.sr-footer--v3 .sr-footnav{
    grid-template-columns:1fr 1fr;
    gap:16px 12px;
  }
  html body .sr-footer.sr-footer--v3 .sr-footnav__label{margin:0 0 6px}
  html body .sr-footer.sr-footer--v3 .sr-footnav ul{gap:4px}
  html body .sr-footer.sr-footer--v3 .sr-footnav a{
    font-size:13px;
    line-height:1.35;
    padding:2px 0;
  }
  html body .sr-footer.sr-footer--v3 p.sr-small{margin-top:10px;max-width:none}
}

@media (prefers-reduced-motion:reduce){
  html body .sr-footer.sr-footer--v3 .sr-cap--footer .sr-cap__btn{transition:none}
}
