/* Footer, on every page (lib/footer.js). Design: design/footer-options.html, option 1.
   Built from the theme's own variables and fonts; the footer top is always dark (data-scheme="dark"). */

/* Categories and More side by side on desktop (the theme stacks them in a one-column grid) */
@media (min-width: 1020px) {
  .cs-footer__top .cs-footer__nav { grid-template-columns: repeat(2, max-content); column-gap: 40px; justify-content: center; }
  .cs-footer__top .cs-col-center { min-width: 0; }
}

/* The theme sets the columns side by side from 1020px but only drops the stacked-layout top margin
   from 1200px, so between the two the right column (and the legal links) sat 24px low */
@media (min-width: 1020px) {
  .cs-footer__col:not(:first-child) { margin-top: 0; }
  .cs-footer__bottom .cs-footer__item { align-items: center; }
  .cs-footer__bottom .cs-footer__inner > * { margin-top: 0; }
}

/* ---- The Bournesmith Brief + social (right column) ---- */
.cs-footer__top .cs-col-right .cs-footer__inner { align-items: stretch; }
.bs-news { width: 100%; max-width: 360px; margin: 0 auto; text-align: left; }
@media (min-width: 1020px) { .bs-news { margin: 0; } }
.bs-news .bs-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bs-news .bs-news-title {
  margin: 0 0 12px; font-family: var(--cs-font-footer-menu-title-family, inherit), sans-serif;
  font-size: var(--cs-font-footer-menu-title-size, 1.25rem); font-weight: var(--cs-font-footer-menu-title-weight, 500);
  color: var(--cs-color-contrast-600, #9a9a9a);
}
.bs-news .bs-news-text { margin: 0 0 18px; font-size: 15px; line-height: 1.55; color: var(--cs-color-primary, #fff); }
.bs-news .bs-news-form { margin: 0; }
.bs-news .bs-news-row {
  display: flex; align-items: stretch; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; overflow: hidden;
}
.bs-news .bs-news-row:focus-within { border-color: rgba(255, 255, 255, .7); }
.bs-news .bs-news-field { flex: 1; min-width: 0; margin: 0; padding: 0; }
.bs-news .bs-news-field input[type=email] {
  width: 100%; height: 100%; margin: 0; padding: 13px 18px; border: 0 !important; border-radius: 0; box-shadow: none !important;
  background: transparent !important; color: var(--cs-color-primary, #fff); font: inherit; font-size: 15px; outline: none;
}
.bs-news .bs-news-field input::placeholder { color: rgba(255, 255, 255, .5); }
.bs-news .bs-news-btn {
  flex: none; margin: 3px; padding: 0 20px; border: 0; border-radius: 999px; cursor: pointer;
  background: #fff; color: #111; font: inherit; font-size: 14px; font-weight: 500; letter-spacing: .02em; line-height: 1;
}
.bs-news .bs-news-btn:hover, .bs-news .bs-news-btn:focus-visible { background: #e6e6e6; }
.bs-news .bs-news-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.bs-news .bs-news-btn:disabled { opacity: .6; cursor: default; }
.bs-news .bs-news-note { margin: 10px 0 0; font-size: 13px; color: var(--cs-color-contrast-600, #9a9a9a); }
/* the "I'm not a robot" check, once someone starts typing: compact, under the field */
.bs-news .csb-captcha-slot:empty { display: none; }
.bs-news .csb-captcha { max-width: none; margin: 12px 0 0; padding: .6rem .85rem; font-size: 14px; background: transparent; border-color: rgba(255, 255, 255, .2); }
.bs-news .csb-form-msg { margin-top: 10px; font-size: 14px; }
.bs-news .csb-form-msg.error { color: #ff8a80; }
.bs-news .csb-form-done { padding: 14px 18px; font-size: 15px; background: transparent; border-color: rgba(255, 255, 255, .2); color: var(--cs-color-primary, #fff); }

.bs-social { display: flex; gap: 10px; margin-top: 24px; }
.bs-social a {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px 0 12px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .2); color: var(--cs-color-primary, #fff); font-size: 14px; text-decoration: none;
}
.bs-social a:hover, .bs-social a:focus-visible { border-color: rgba(255, 255, 255, .6); }
/* stacked footer (tablet, phone): centred like the theme's other columns */
@media (max-width: 1019px) {
  .bs-news { text-align: center; }
  .bs-social { justify-content: center; }
}
.bs-social svg { fill: currentColor; }
