/* ═══════════════════════════════════════════════════════════════
   SERVICE LANDING PAGES – service-page.css
   Shared by the static pages listed in inc/service-pages.php.
   Design tokens, fonts and the header/footer come from main.css.
═══════════════════════════════════════════════════════════════ */

.sp-hero, .sp-facts, .sp-body, .sp-contact, .sp-related { --bs-gutter-x: 2rem; }

/* ─── Buttons ──────────────────────────────────────────────── */
.sp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 13px 26px;
  font-family: var(--font-body); font-size: .92rem; font-weight: 700; line-height: 1.2;
  border: 2px solid transparent; border-radius: 50px;
  text-align: center; cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.sp-btn:hover { transform: translateY(-2px); }
.sp-btn--gold  { background: var(--accent); color: var(--primary-dark); }
.sp-btn--gold:hover  { background: var(--accent-light); color: var(--primary-dark); box-shadow: 0 10px 26px rgba(212,164,55,.4); }
.sp-btn--wa    { background: #11803f; color: #fff; }
.sp-btn--wa:hover    { background: #0d6a34; color: #fff; box-shadow: 0 10px 26px rgba(17,128,63,.35); }
.sp-btn--navy  { background: var(--primary); color: #fff; }
.sp-btn--navy:hover  { background: var(--primary-light); color: #fff; box-shadow: 0 10px 26px rgba(30,58,95,.3); }
.sp-btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.sp-btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
.sp-btn--light { background: #fff; color: var(--primary); border-color: var(--border); }
.sp-btn--light:hover { border-color: var(--primary-light); color: var(--primary); }

.sp-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px;
  font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-dark);
}
.sp-eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--accent); border-radius: 2px; }

/* ─── Hero ─────────────────────────────────────────────────── */
.sp-hero {
  position: relative; overflow: hidden; color: #fff;
  padding: 44px 0 124px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
}
.sp-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(520px 320px at 88% 8%, rgba(212,164,55,.22), transparent 70%),
    radial-gradient(420px 300px at 4% 100%, rgba(122,139,111,.25), transparent 70%);
}
.sp-hero h1 {
  margin: 14px 0 16px; color: #fff;
  font-size: clamp(2.3rem, 5.2vw, 3.6rem); font-weight: 600; line-height: 1.1;
}
.sp-hero__lead { max-width: 58ch; margin: 0 0 26px; font-size: 1.1rem; line-height: 1.7; color: rgba(255,255,255,.86); }
.sp-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }

.sp-breadcrumb { margin-bottom: 22px; }
.sp-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; padding: 0; font-size: .82rem; color: rgba(255,255,255,.72); }
.sp-breadcrumb li + li::before { content: '/'; margin: 0 9px; opacity: .5; }
.sp-breadcrumb a { color: rgba(255,255,255,.88); text-decoration: underline; text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 3px; }
.sp-breadcrumb a:hover { color: var(--accent-light); }

.sp-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 18px; border: 1px solid var(--accent); border-radius: 50px;
  background: rgba(212,164,55,.16); color: var(--accent-light);
  font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}

.sp-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; font-size: .9rem; color: rgba(255,255,255,.85); }
.sp-trust i { margin-right: 6px; color: var(--accent-light); }

.sp-hero__media { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 5px solid rgba(255,255,255,.14); }
.sp-hero__media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.sp-hero__media figcaption {
  position: absolute; left: 16px; bottom: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 50px; background: rgba(255,255,255,.96);
  color: var(--primary); font-size: .8rem; font-weight: 700;
}
.sp-hero__media figcaption i { color: var(--accent-dark); }

/* ─── At a glance ──────────────────────────────────────────── */
.sp-facts { position: relative; z-index: 2; margin-top: -68px; }
.sp-facts__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  list-style: none; padding: 8px; background: #fff; border-radius: var(--radius-lg);
  border: 1px solid var(--border-light); box-shadow: var(--shadow-md);
}
.sp-facts__grid li { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.sp-facts__grid li + li { border-left: 1px solid var(--border-light); }
.sp-facts__grid i {
  flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 12px; background: rgba(212,164,55,.16); color: var(--accent-dark); font-size: 1.05rem;
}
.sp-facts__grid span { display: flex; flex-direction: column; font-size: .86rem; line-height: 1.4; color: var(--text-muted); }
.sp-facts__grid strong { font-size: .95rem; color: var(--primary); }

/* ─── Page body ────────────────────────────────────────────── */
.sp-body { padding: 56px 0 72px; }
.sp-article { font-size: 1.04rem; line-height: 1.8; color: var(--text-body); }
.sp-article p { margin: 0 0 1rem; }
.sp-article strong { color: var(--text-heading); font-weight: 700; }
.sp-article a:not(.sp-btn) {
  color: var(--primary); font-weight: 600;
  text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px;
}
.sp-article a:not(.sp-btn):hover { color: var(--accent-dark); }

.sp-intro { margin-bottom: 2.75rem; }
.sp-intro p:first-child { font-size: 1.2rem; line-height: 1.7; color: var(--text-heading); }

.sp-section { margin-bottom: 3.25rem; }
.sp-section > h2 {
  position: relative; margin: 0 0 1.1rem; padding-top: 16px;
  font-size: clamp(1.75rem, 3.3vw, 2.2rem); font-weight: 600; line-height: 1.2;
}
.sp-section > h2::before { content: ''; position: absolute; top: 0; left: 0; width: 44px; height: 3px; border-radius: 3px; background: var(--accent); }
.sp-article h3 { margin: 1.75rem 0 .6rem; font-size: 1.45rem; font-weight: 600; line-height: 1.3; }

/* Check list */
.sp-list { display: grid; gap: .7rem; margin: 0 0 1.4rem; padding: 0; list-style: none; }
.sp-list li { position: relative; padding-left: 2.1rem; }
.sp-list li::before {
  content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
  position: absolute; left: 0; top: .22rem; width: 1.4rem; height: 1.4rem;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(212,164,55,.2); color: var(--accent-dark); font-size: .68rem; line-height: 1;
}

/* Numbered steps */
.sp-steps { counter-reset: step; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.sp-steps li { counter-increment: step; position: relative; padding: 2px 0 1.3rem 3.5rem; }
.sp-steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 2.4rem; height: 2.4rem;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: .92rem; font-weight: 700; line-height: 1;
  box-shadow: 0 0 0 5px var(--bg-primary);
}
.sp-steps li::after { content: ''; position: absolute; left: 1.15rem; top: 2.5rem; bottom: .15rem; width: 2px; background: var(--border); }
.sp-steps li:last-child { padding-bottom: 0; }
.sp-steps li:last-child::after { display: none; }

/* Feature grid ("bold label: text" lists) */
.sp-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.sp-features li {
  padding: 18px 20px; font-size: .98rem; line-height: 1.65;
  background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius); box-shadow: var(--shadow);
}
.sp-features strong { display: block; margin-bottom: 4px; font-family: var(--font-display); font-size: 1.22rem; font-weight: 600; color: var(--primary); }
.sp-features strong::before {
  content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
  display: inline-grid; place-items: center; width: 1.35rem; height: 1.35rem; margin-right: 9px; vertical-align: 2px;
  border-radius: 50%; background: rgba(212,164,55,.2); color: var(--accent-dark); font-size: .64rem;
}

/* Tables */
.sp-table-wrap { margin: 1.25rem 0 1.6rem; overflow-x: auto; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.sp-table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.55; }
.sp-table thead th { padding: 13px 16px; background: var(--primary); color: #fff; font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
.sp-table th, .sp-table td { padding: 13px 16px; vertical-align: top; text-align: left; }
.sp-table tbody th { min-width: 9rem; font-weight: 700; color: var(--primary); }
.sp-table tbody tr + tr > * { border-top: 1px solid var(--border-light); }
.sp-table tbody tr:nth-child(even) { background: var(--bg-secondary); }

/* Callouts and notes */
.sp-note { margin: 1.1rem 0; padding: 12px 18px; font-size: .98rem; line-height: 1.7; background: rgba(212,164,55,.11); border-left: 3px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.sp-note p { margin: 0; }
.sp-section--care { padding: 26px 28px 14px; background: #EEF2EA; border: 1px solid rgba(122,139,111,.4); border-left: 5px solid var(--sage); border-radius: var(--radius); }
.sp-section--care > h2::before { background: var(--sage); }

/* Cards (benefits, poses) */
.sp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; margin: 1rem 0 1.6rem; }
.sp-card { padding: 22px; background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius); box-shadow: var(--shadow); }
.sp-card__icon {
  width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 14px;
  border-radius: 13px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: var(--accent-light); font-size: 1.1rem;
}
.sp-article .sp-card h3 { margin: 0 0 6px; font-size: 1.3rem; }
.sp-card p { margin: 0; font-size: .96rem; line-height: 1.7; }
.sp-cards--poses { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.sp-cards--poses .sp-steps { margin-bottom: 1rem; font-size: .96rem; line-height: 1.65; }
.sp-cards--poses .sp-steps li { padding-bottom: 1rem; }
.sp-cards--poses .sp-note { margin-bottom: 0; }

/* Question-and-answer blocks (myths, beginner questions) */
.sp-qa-list { display: grid; gap: 14px; margin: 1rem 0 1.6rem; }
.sp-qa { padding: 16px 22px; background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius); }
.sp-qa__q { margin-bottom: 4px !important; font-weight: 700; color: var(--primary); }
.sp-qa p:last-child { margin-bottom: 0; }

/* Testimonials */
.sp-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 1rem 0; }
.sp-quote { position: relative; margin: 0; padding: 28px 24px 22px; background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius); box-shadow: var(--shadow); }
.sp-quote::before { content: '\201C'; position: absolute; top: 4px; left: 18px; font: 700 4.4rem/1 var(--font-display); color: var(--accent); }
.sp-quote blockquote { margin: 1.5rem 0 1rem; font-size: 1.02rem; line-height: 1.7; color: var(--text-heading); }
.sp-quote figcaption { display: flex; align-items: center; gap: 12px; font-size: .88rem; line-height: 1.35; }
.sp-quote figcaption strong { display: block; color: var(--primary); }
.sp-quote__avatar { flex: 0 0 40px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; }
.sp-more { margin-top: 1rem; font-weight: 600; }

/* In-article call to action */
.sp-inline-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px;
  margin: 0 0 3.25rem; padding: 24px 28px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary)); border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
.sp-inline-cta__copy { flex: 1 1 280px; }
.sp-inline-cta p { margin: 0; font-size: .98rem; line-height: 1.6; color: rgba(255,255,255,.84); }
.sp-inline-cta p.sp-inline-cta__title { margin-bottom: 4px; font: 600 1.5rem/1.25 var(--font-display); color: #fff; }
.sp-inline-cta__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sp-inline-cta .sp-btn--navy { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.4); }
.sp-inline-cta .sp-btn--navy:hover { background: rgba(255,255,255,.24); }

/* FAQ accordion */
.sp-faq .accordion-item { margin-bottom: 10px; overflow: hidden; background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-sm) !important; }
.sp-article .sp-faq .accordion-header { margin: 0; font-size: 1rem; }
.sp-faq .accordion-button { padding: 17px 22px; background: #fff; color: var(--primary); font-family: var(--font-body); font-size: 1rem; font-weight: 700; line-height: 1.45; }
.sp-faq .accordion-button:not(.collapsed) { background: #FBF6E9; color: var(--primary-dark); box-shadow: none; }
.sp-faq .accordion-button:focus { border-color: transparent; box-shadow: 0 0 0 3px rgba(212,164,55,.45); }
.sp-faq .accordion-button::after { flex-shrink: 0; }
.sp-faq .accordion-body { padding: 6px 22px 20px; font-size: .99rem; line-height: 1.75; background: #FBF6E9; }
.sp-faq .accordion-body p:last-child { margin-bottom: 0; }

/* ─── Sidebar ──────────────────────────────────────────────── */
/* Sticks within the full-height column; the TOC scrolls internally so the card never outgrows the viewport. */
.sp-aside { display: none; }
.sp-book { padding: 26px 24px; color: #fff; background: linear-gradient(145deg, var(--primary-dark), var(--primary)); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.sp-book__title { margin: 0 0 8px; font: 600 1.55rem/1.2 var(--font-display); color: #fff; }
.sp-book__text { margin: 0 0 18px; font-size: .93rem; line-height: 1.65; color: rgba(255,255,255,.82); }
.sp-book .sp-btn { width: 100%; margin-bottom: 10px; }
.sp-book__meta { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; font-size: .82rem; color: rgba(255,255,255,.72); }
.sp-book__meta i { color: var(--accent-light); }

.sp-toc { padding: 20px 22px 14px; background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.sp-toc__title { margin: 0 0 10px; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-dark); }
.sp-toc ol { max-height: max(150px, calc(100vh - 560px)); margin: 0; padding: 0 4px 0 0; overflow-y: auto; list-style: none; scrollbar-width: thin; }
.sp-toc a { display: block; padding: 7px 0 7px 14px; border-left: 2px solid var(--border); font-size: .86rem; line-height: 1.4; color: var(--text-body); transition: color .2s, border-color .2s; }
.sp-toc a:hover { color: var(--primary); border-left-color: var(--accent-light); }
.sp-toc a.is-active { border-left-color: var(--accent); color: var(--primary); font-weight: 700; }

.sp-toc-m { margin-bottom: 2rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.sp-toc-m summary { padding: 14px 18px; font-weight: 700; color: var(--primary); cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 48px; }
.sp-toc-m summary::-webkit-details-marker { display: none; }
.sp-toc-m summary::after { content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: .75rem; transition: transform .25s; }
.sp-toc-m[open] summary::after { transform: rotate(180deg); }
.sp-toc-m ol { margin: 0; padding: 0 18px 12px; list-style: none; }
.sp-toc-m a { display: block; padding: 9px 0; border-top: 1px solid var(--border-light); font-size: .93rem; color: var(--text-body); }

/* ─── Booking + map ────────────────────────────────────────── */
.sp-contact { padding: 76px 0; color: #fff; background: linear-gradient(135deg, var(--primary-dark), var(--primary)); }
.sp-contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: stretch; }
.sp-contact .sp-eyebrow { color: var(--accent-light); }
.sp-contact h2 { margin: 0 0 14px; color: #fff; font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 600; line-height: 1.15; }
.sp-contact__info > p { margin: 0 0 26px; font-size: 1.04rem; line-height: 1.7; color: rgba(255,255,255,.84); }
.sp-contact__list { display: grid; gap: 16px; margin: 0 0 28px; padding: 0; list-style: none; }
.sp-contact__list li { display: flex; gap: 14px; align-items: flex-start; }
.sp-contact__list i { flex: 0 0 42px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: rgba(212,164,55,.18); color: var(--accent-light); font-size: 1.05rem; }
.sp-contact__list span { display: flex; flex-direction: column; font-size: .98rem; line-height: 1.55; color: rgba(255,255,255,.88); }
.sp-contact__list strong { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-light); }
.sp-contact__list a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.4); text-underline-offset: 3px; }
.sp-contact__list a:hover { color: var(--accent-light); }
.sp-contact address { margin: 0; font-style: normal; }
.sp-contact__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.sp-contact__map { min-height: 380px; overflow: hidden; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.sp-contact__map iframe { display: block; width: 100%; height: 100%; min-height: 380px; border: 0; }

/* ─── Related programmes ───────────────────────────────────── */
.sp-related { padding: 76px 0; background: var(--bg-soft); }
.sp-related__head { max-width: 720px; margin-bottom: 34px; }
.sp-related__head h2 { margin: 0 0 12px; font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 600; }
.sp-related__head p { margin: 0; font-size: 1.02rem; line-height: 1.75; }
.sp-related__head a { color: var(--primary); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.sp-related__head a:hover { color: var(--accent-dark); }
.sp-related__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.sp-related__card {
  display: flex; flex-direction: column; overflow: hidden; color: var(--text-body);
  background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.sp-related__card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); color: var(--text-body); }
.sp-related__img img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.sp-related__body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 18px 22px 22px; }
.sp-related__body h3 { margin: 0; font-size: 1.35rem; font-weight: 600; line-height: 1.25; color: var(--primary); }
.sp-related__blurb { font-size: .94rem; line-height: 1.6; }
.sp-related__more { margin-top: auto; padding-top: 8px; font-size: .88rem; font-weight: 700; color: var(--accent-dark); }
.sp-related__more i { margin-left: 4px; transition: transform .25s; }
.sp-related__card:hover .sp-related__more i { transform: translateX(4px); }
.sp-hubs { display: flex; flex-wrap: wrap; gap: 10px; margin: 34px 0 0; padding: 0; list-style: none; }
.sp-hubs a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px;
  font-size: .9rem; font-weight: 600; color: var(--primary);
  background: #fff; border: 1px solid var(--border); border-radius: 50px;
  transition: border-color .25s, box-shadow .25s;
}
.sp-hubs a:hover { border-color: var(--accent); box-shadow: var(--shadow); color: var(--primary); }
.sp-hubs i { color: var(--accent-dark); }

/* ─── Breakpoints ──────────────────────────────────────────── */
@media (min-width: 992px) {
  .sp-aside { position: sticky; top: calc(var(--nav-h) + 24px); display: flex; flex-direction: column; gap: 18px; }
  .sp-toc-m { display: none; }
}
@media (max-width: 991px) {
  .sp-hero { padding-bottom: 112px; }
  .sp-facts__grid { grid-template-columns: repeat(2, 1fr); }
  .sp-facts__grid li:nth-child(3) { border-left: 0; }
  .sp-facts__grid li:nth-child(n+3) { border-top: 1px solid var(--border-light); }
  .sp-contact__grid { grid-template-columns: 1fr; }
  .sp-contact__map, .sp-contact__map iframe { min-height: 320px; }
}
@media (max-width: 640px) {
  .sp-hero { padding: 32px 0 104px; }
  .sp-hero__actions .sp-btn { flex: 1 1 100%; }
  .sp-facts { margin-top: -56px; }
  .sp-facts__grid { grid-template-columns: 1fr; padding: 4px; }
  .sp-facts__grid li { padding: 12px 14px; }
  .sp-facts__grid li + li { border-left: 0; border-top: 1px solid var(--border-light); }
  .sp-body { padding: 40px 0 56px; }
  .sp-section { margin-bottom: 2.6rem; }
  .sp-section--care { padding: 22px 20px 10px; }
  .sp-inline-cta { padding: 22px 20px; }
  .sp-inline-cta__actions, .sp-inline-cta__actions .sp-btn { width: 100%; }
  .sp-contact, .sp-related { padding: 56px 0; }
  .sp-contact__actions .sp-btn { flex: 1 1 100%; }

  /* Tables stack into labelled cards on small screens */
  .sp-table-wrap { overflow: visible; background: none; border: 0; box-shadow: none; }
  .sp-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .sp-table, .sp-table tbody, .sp-table tr, .sp-table th, .sp-table td { display: block; width: 100%; }
  .sp-table tbody tr { margin-bottom: 12px; overflow: hidden; background: #fff !important; border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
  .sp-table tbody tr + tr > * { border-top: 0; }
  .sp-table tbody th { min-width: 0; padding: 11px 16px; background: var(--primary); color: #fff; }
  .sp-article .sp-table tbody th a:not(.sp-btn) { color: #fff; text-decoration-color: var(--accent-light); }
  .sp-article .sp-table tbody th a:not(.sp-btn):hover { color: var(--accent-light); }
  .sp-table td { padding: 10px 16px; }
  .sp-table td + td { border-top: 1px solid var(--border-light); }
  .sp-table td::before { content: attr(data-label); display: block; margin-bottom: 1px; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-dark); }
  .sp-table td[data-label='']::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sp-btn, .sp-related__card, .sp-related__more i, .sp-toc a, .sp-toc-m summary::after { transition: none; }
  .sp-btn:hover, .sp-related__card:hover { transform: none; }
}
