/*
 * Standalone blog post template
 * Used only by templates/template-standalone-post.php. Independent of the theme's main CSS.
 */

/* ---------- Fonts (files in ./fonts) ---------- */

/* ABC Otto (Dinamo, licensed): headings. Only a Regular weight is available. */
@font-face {
  font-family: "ABC Otto";
  src: url("fonts/ABCOtto-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Figtree (SIL OFL, see fonts/Figtree-OFL.txt): body copy. Variable weight 300–900. */
@font-face {
  font-family: "Figtree";
  src: url("fonts/Figtree-VariableFont_wght.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("fonts/Figtree-Italic-VariableFont_wght.woff2") format("woff2");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --sp-bg: #f9f9f7;
  --sp-header-bg: #f3f4ef;
  --sp-footer-bg: #f3f4ef;
  --sp-surface: #ffffff;
  --sp-chip: #f0eee9;
  --sp-chip-border: #e3e0d9;
  --sp-pill: #e7e5df;
  --sp-ink: #4a403a;
  --sp-ink-soft: #807369;
  --sp-muted: #75706a;
  --sp-accent: #b36000;
  --sp-accent-line: #c0742e;
  --sp-cta: #f99a2b;
  --sp-cta-hover: #ea8a17;
  --sp-rule: #e4e1da;

  --sp-heading: "ABC Otto", Georgia, "Times New Roman", serif;
  --sp-sans: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --sp-gutter: 16px;
  --sp-measure: 720px;
}

@media (min-width: 768px) {
  :root { --sp-gutter: 26px; }
}

/* ---------- Reset (scoped to this template) ---------- */

.sp *,
.sp *::before,
.sp *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body.sp {
  margin: 0;
  background: var(--sp-bg);
  color: var(--sp-ink);
  font-family: var(--sp-sans);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:where(.sp) img { max-width: 100%; height: auto; }
.sp a { color: inherit; }
/* :where() keeps this at zero specificity so component classes can set their own sizes */
:where(.sp) button,
:where(.sp) input { font: inherit; color: inherit; }

.sp svg { flex-shrink: 0; }

.sp-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.sp-skip {
  position: absolute;
  left: var(--sp-gutter);
  top: -100px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--sp-ink);
  color: #fff !important;
  border-radius: 8px;
}
.sp-skip:focus { top: 12px; }

.sp :focus-visible {
  outline: 2px solid var(--sp-accent);
  outline-offset: 3px;
}

/* ---------- Header ---------- */

.sp-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--sp-header-bg);
}

.admin-bar .sp-header { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .sp-header { top: 0; }
}

.sp-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 0 var(--sp-gutter);
  margin: 0 auto;
  max-width: 1440px;
}

.sp-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--sp-ink);
  margin-right: auto;
}

/* Full logo (mark + wordmark), assets/standalone-post/sp-logo.svg */
.sp-logo__img {
  display: block;
  width: auto;
  height: 36px;
}

@media (max-width: 599px) {
  .sp-logo__img { height: 30px; }
}

.sp-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.sp-menu-toggle svg,
.sp-icon-link svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
}

.sp-header__panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 8px var(--sp-gutter) 24px;
  background: var(--sp-header-bg);
  border-top: 1px solid var(--sp-rule);
  box-shadow: 0 12px 24px rgba(62, 54, 49, 0.08);
}

.sp-header.is-open .sp-header__panel {
  display: block;
  max-height: calc(100vh - 76px);
  overflow-y: auto;
}

.sp-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sp-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  padding: 10px 14px;
  border: 0;
  border-radius: 10px;
  background: none;
  font-size: 16px;
  line-height: 1.5;
  color: var(--sp-ink);
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.sp-nav__link:hover,
.sp-nav__toggle[aria-expanded="true"] {
  background: var(--sp-pill);
}

.sp-nav__toggle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.15s ease;
}
.sp-nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Dropdowns: an accordion inside the mobile panel, a floating card on desktop */
.sp-dropdown {
  display: grid;
  gap: 16px;
  padding: 12px 14px 20px;
}
.sp-dropdown[hidden] { display: none; }

.sp-dropdown__title {
  margin: 0;
  font-family: var(--sp-heading);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.25;
}

.sp-dropdown__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--sp-accent) !important;
  text-decoration: none;
}
.sp-dropdown__more:hover { text-decoration: underline; text-underline-offset: 4px; }

.sp-dropdown__more svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sp-dropdown__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sp-dropdown__list li + li { border-top: 1px solid var(--sp-rule); }

.sp-dropdown__list a {
  display: block;
  padding: 10px 0;
  font-size: 15px;
  color: var(--sp-ink);
  text-decoration: none;
}
.sp-dropdown__list a:hover { color: var(--sp-accent); }

.sp-header__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}

.sp-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--sp-ink);
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.sp-icon-link:hover,
.sp-icon-link[aria-expanded="true"] { background: var(--sp-pill); }

/* Search panel: drops down below the header bar */
.sp-search {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 55;
  padding: 32px var(--sp-gutter) 40px;
  background: var(--sp-surface);
  border-top: 1px solid var(--sp-rule);
  box-shadow: 0 16px 32px rgba(62, 54, 49, 0.1);
  animation: sp-fade-in 0.2s ease;
}
.sp-search[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  .sp-search { animation: none; }
}

@keyframes sp-fade-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

.sp-search__form {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.sp-search__form svg {
  position: absolute;
  top: 50%;
  left: 18px;
  width: 22px;
  height: 22px;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--sp-muted);
  stroke-width: 1.75;
  stroke-linecap: round;
  pointer-events: none;
}

.sp-search__form input {
  width: 100%;
  padding: 16px 18px 16px 54px;
  border: 1px solid var(--sp-rule);
  border-radius: 10px;
  background: var(--sp-bg);
  font-size: 17px;
  color: var(--sp-ink);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.sp-search__form input::placeholder { color: var(--sp-muted); }
.sp-search__form input:hover { background: var(--sp-surface); }
.sp-search__form input:focus {
  outline: none;
  border-color: var(--sp-accent-line);
  background: var(--sp-surface);
}

.sp-signin {
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.sp-signin:hover { text-decoration: underline; text-underline-offset: 4px; }

.sp-demo {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border-radius: 10px;
  background: var(--sp-cta);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--sp-ink) !important;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}
.sp-demo:hover { background: var(--sp-cta-hover); }

@media (min-width: 1200px) {
  .sp-menu-toggle { display: none; }

  .sp-header__panel {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 24px;
    position: static;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }

  .sp-nav { margin-right: auto; }

  .sp-nav__list {
    display: flex;
    align-items: center;
    gap: 2px;
  }

  .sp-nav__item { position: relative; }

  .sp-nav__link { width: auto; }

  .sp-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    z-index: 60;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    width: 560px;
    padding: 28px;
    background: var(--sp-surface);
    border: 1px solid var(--sp-rule);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(62, 54, 49, 0.12);
  }

  .sp-dropdown__title { font-size: 24px; }

  .sp-dropdown__list a { white-space: normal; }

  .sp-header__actions {
    flex-wrap: nowrap;
    gap: 20px;
    margin-top: 0;
  }
}

/* ---------- Breadcrumb ---------- */

.sp-breadcrumb {
  max-width: 1440px;
  margin: 0 auto;
  padding: 44px var(--sp-gutter) 0;
  font-size: 15px;
  color: var(--sp-ink-soft);
}

.sp-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 0;
  list-style: none;
  margin: 0;
  padding: 0;
  line-height: 1.4;
}

.sp-breadcrumb li {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

/* Chevron separator: centered box, equal space on both sides */
.sp-breadcrumb li + li::before {
  content: "";
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin: 0 12px;
  background-color: var(--sp-muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m6 3.5 4.5 4.5L6 12.5' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m6 3.5 4.5 4.5L6 12.5' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.sp-breadcrumb a { text-decoration: none; }
.sp-breadcrumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
.sp-breadcrumb [aria-current] { color: var(--sp-ink); font-weight: 500; }

/* ---------- Hero ---------- */

.sp-article { padding: 0 var(--sp-gutter); }

.sp-hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 0 56px;
  text-align: center;
}

@media (min-width: 768px) {
  .sp-hero { padding: 120px 0 72px; }
}

.sp-back {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
}
.sp-back svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.15s ease;
}
.sp-back:hover svg { transform: translateX(-3px); }

.sp-title {
  max-width: 980px;
  margin: 40px auto 0;
  font-family: var(--sp-heading);
  font-weight: 400;
  font-size: clamp(36px, 6vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.sp-authors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 64px;
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
}

.sp-author {
  display: flex;
  align-items: center;
  gap: 14px 22px;
  text-align: left;
}

.sp-author__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  background: var(--sp-ink);
}

.sp-author__name {
  font-size: 16px;
  font-weight: 500;
  color: var(--sp-accent) !important;
  text-decoration: none;
}
.sp-author__name:hover { text-decoration: underline; text-underline-offset: 4px; }

.sp-author__role {
  font-size: 14px;
  color: var(--sp-muted);
}

/* Mobile: left-aligned stack, avatar beside a name/role column */
@media (max-width: 599px) {
  .sp-authors {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .sp-author {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    column-gap: 14px;
    row-gap: 2px;
  }

  .sp-author__avatar { grid-row: span 2; }
  .sp-author__name { align-self: end; }
  .sp-author__role { align-self: start; }

  .sp-author:not(:has(.sp-author__role)) .sp-author__name {
    grid-row: span 2;
    align-self: center;
  }
}

.sp-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px 56px;
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  font-size: 16px;
}

.sp-meta svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sp-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 6px;
  border-bottom: 1.5px solid transparent;
  color: var(--sp-ink);
}

.sp-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 0 6px;
  border: 0;
  border-bottom: 1.5px solid var(--sp-accent-line);
  background: none;
  font-size: 16px;
  color: var(--sp-ink);
  text-decoration: none;
  cursor: pointer;
}
.sp-action svg { color: var(--sp-accent); }
.sp-action:hover { color: var(--sp-accent); }

.sp-action__on { display: none; }
.sp-action.is-bookmarked .sp-action__on { display: inline; }
.sp-action.is-bookmarked .sp-action__off { display: none; }
.sp-action.is-bookmarked svg { fill: var(--sp-accent); }

@media (max-width: 599px) {
  .sp-meta { gap: 16px 28px; }
}

.sp-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  list-style: none;
  margin: 64px 0 0;
  padding: 0;
}

.sp-tag {
  display: inline-block;
  padding: 9px 16px;
  border: 1px solid var(--sp-chip-border);
  border-radius: 6px;
  background: var(--sp-chip);
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.sp-tag:hover { background: var(--sp-pill); }

/* ---------- Body ---------- */

.sp-featured {
  max-width: 880px;
  margin: 0 auto 64px;
}
/* Never upscale: smaller images (often GIFs) stay at their natural size, centered */
.sp-featured img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 16px;
}

.sp-content {
  max-width: var(--sp-measure);
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.7;
  color: var(--sp-ink);
}

.sp-content > * { margin-top: 0; margin-bottom: 1.25em; }

.sp-content h2,
.sp-content h3,
.sp-content h4 {
  font-family: var(--sp-heading);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-top: 2em;
  margin-bottom: 0.6em;
}
.sp-content h2 { font-size: 34px; }
.sp-content h3 { font-size: 27px; }
.sp-content h4 { font-size: 22px; }

.sp-content a {
  color: var(--sp-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.sp-content ul,
.sp-content ol { padding-left: 1.4em; }
.sp-content li + li { margin-top: 0.4em; }

.sp-content blockquote {
  margin-left: 0;
  margin-right: 0;
  padding-left: 24px;
  border-left: 3px solid var(--sp-accent-line);
  font-family: var(--sp-heading);
  font-weight: 400;
  font-size: 23px;
  line-height: 1.5;
}

.sp-content img,
.sp-content video,
.sp-content iframe {
  display: block;
  max-width: 100%;
  border-radius: 12px;
}

.sp-content figure { margin-left: 0; margin-right: 0; }
.sp-content figcaption {
  margin-top: 10px;
  font-size: 15px;
  color: var(--sp-muted);
  text-align: center;
}

.sp-content code {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--sp-chip);
  font-size: 0.88em;
}

.sp-content pre {
  overflow-x: auto;
  padding: 20px;
  border-radius: 12px;
  background: var(--sp-ink);
  color: #f6f3ee;
  font-size: 15px;
  line-height: 1.6;
}
.sp-content pre code { padding: 0; background: none; }

.sp-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}
.sp-content th,
.sp-content td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--sp-rule);
  text-align: left;
}

.sp-content hr {
  border: 0;
  border-top: 1px solid var(--sp-rule);
  margin: 3em 0;
}

/* ---------- Back to top ---------- */

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.sp-back-to-top {
  margin: 120px 0;
  text-align: center;
}

.sp-back-to-top a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  background: var(--sp-surface);
  border: 1px solid var(--sp-rule);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(62, 54, 49, 0.08);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.sp-back-to-top a:hover {
  border-color: var(--sp-chip-border);
  box-shadow: 0 3px 8px rgba(62, 54, 49, 0.12);
}

.sp-back-to-top svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sp-back-to-top + .sp-written-by { margin-top: 0; }

@media (max-width: 599px) {
  .sp-back-to-top { margin: 72px 0; }
}

/* ---------- Written by ---------- */

.sp-written-by {
  max-width: var(--sp-measure);
  margin: 96px auto;
  padding: 32px;
  background: var(--sp-surface);
  border: 1px solid var(--sp-rule);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(62, 54, 49, 0.06);
}

@media (max-width: 599px) {
  .sp-written-by { padding: 24px 20px; }
}

.sp-written-by__title {
  margin: 0 0 24px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
}

/* Short divider between authors */
.sp-bio + .sp-bio {
  margin-top: 24px;
  padding-top: 24px;
  background: linear-gradient(var(--sp-rule), var(--sp-rule)) top left / 100px 1px no-repeat;
}

.sp-bio__head {
  display: flex;
  align-items: center;
  gap: 24px;
}

.sp-bio__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  background: var(--sp-ink);
}

.sp-bio__name {
  margin: 0;
  font-family: var(--sp-heading);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.2;
}

.sp-bio__role {
  margin: 6px 0 0;
  font-size: 15px;
  color: var(--sp-muted);
}

.sp-bio__text {
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--sp-ink);
}
.sp-bio__text p { margin: 0 0 0.8em; }
.sp-bio__text p:last-child { margin-bottom: 0; }

.sp-bio__more {
  display: inline-block;
  margin-top: 14px;
  font-size: 16px;
  font-weight: 500;
  color: var(--sp-accent) !important;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.sp-bio__more:hover { text-decoration-thickness: 2px; }

@media (max-width: 599px) {
  .sp-bio__head { gap: 16px; }
  .sp-bio__avatar { width: 56px; height: 56px; }
  .sp-bio__name { font-size: 22px; }
}

/* ---------- Footer ---------- */

.sp-footer {
  font-size: 14px;
  color: var(--sp-ink);
}

.sp-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sp-footer a { text-decoration: none; }
.sp-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Rounded panel inset from the page edges */
.sp-footer__panel {
  display: grid;
  gap: 48px;
  margin: 0 var(--sp-gutter);
  padding: 48px 24px;
  background: var(--sp-footer-bg);
  border-radius: 12px;
}

.sp-footer__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: var(--sp-ink);
}

/* logo-mark.png is dark; render it white on the badge */
.sp-footer__badge img {
  width: 64px;
  height: auto;
  filter: brightness(0) invert(1);
}

.sp-footer__blurb {
  max-width: 220px;
  margin: 48px 0 0;
  font-size: 12px;
  line-height: 1.4;
}

.sp-footer__columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 24px;
}

.sp-footer__group + .sp-footer__group { margin-top: 40px; }

.sp-footer__heading {
  margin: 0 0 16px;
  font-family: var(--sp-sans);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
}

.sp-footer__group li + li { margin-top: 14px; }

.sp-footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: 20px;
  padding: 36px var(--sp-gutter);
  background: var(--sp-surface);
  font-size: 12px;
  color: var(--sp-ink-soft);
}

.sp-footer__bar p { margin: 0; }

.sp-footer__utility {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 40px;
}

@media (max-width: 479px) {
  .sp-footer__columns { grid-template-columns: minmax(0, 1fr); }
}

@media (min-width: 1024px) {
  .sp-footer__panel {
    grid-template-columns: minmax(220px, 1fr) minmax(0, 4fr);
    gap: 40px;
    padding: 96px 48px;
  }

  .sp-footer__columns { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Third-party ---------- */

/* HubSpot's floating "Cookie Settings" button (same as lib/scripts.php for conversational forms) */
#hs_show_banner_button { display: none !important; }

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .sp *,
  .sp *::before,
  .sp *::after { transition: none !important; }
}
