/*
 * BestSMS site theme.
 * Sits on top of stock Bootstrap 5 (loaded before this file) and Font Awesome /
 * Bootstrap Icons. Everything here is original to BestSMS.
 *
 * Sections: 1 tokens, 2 base, 3 Bootstrap theming, 4 layout, 5 header and nav,
 * 6 hero, 7 page header, 8 content blocks, 9 pricing, 10 FAQ, 11 forms and
 * modal, 12 footer, 13 utilities.
 */

/* 1. Tokens ---------------------------------------------------------------- */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/PlusJakartaSans-var.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #10243a;
  --brand: #1769d2;
  --brand-strong: #0f55ae;
  --focus: #318beb;
  --mist: #f2f7fc;
  --slate: #536579;
  --line: #d9e4f0;
  --white: #fff;
  --ok: #1769d2;
  --no: #b3261e;
  --bubble: 20px 20px 20px 4px;
  --bubble-sm: 12px 12px 12px 3px;
  --shadow: 0 1px 2px rgba(16, 36, 58, .06), 0 14px 32px -14px rgba(16, 36, 58, .2);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(24px, 4vw, 32px);
  --bs-font-sans-serif: var(--font);
}

/* 2. Base ------------------------------------------------------------------ */
html { scroll-behavior: smooth; }

body {
  font: 400 1.0625rem/1.65 var(--font);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font);
  font-weight: 750;
  letter-spacing: -.02em;
  line-height: 1.18;
  color: var(--ink);
}
h1 { font-size: clamp(2rem, 1.2rem + 3vw, 3.06rem); }
h2 { font-size: clamp(1.6rem, 1.1rem + 1.9vw, 2.44rem); }
h3 { font-size: clamp(1.3rem, 1rem + 1vw, 1.56rem); }
h4, .h4 { font-size: 1.25rem; }
.h5 { font-size: 1.0625rem; font-weight: 700; letter-spacing: -.01em; }
h5 { font-size: 1.0625rem; font-weight: 700; letter-spacing: -.01em; }

p { max-width: 70ch; }
.text-center p, .s-head p, .s-footer p, .s-pagehead p { margin-inline: auto; }
.s-footer p, .s-pagehead p { margin-inline: 0; }

a { color: var(--brand); text-underline-offset: .2em; }
a:hover { color: var(--brand-strong); }

img { max-width: 100%; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.s-skip {
  position: absolute; left: 8px; top: -80px; z-index: 2000;
  background: var(--ink); color: var(--white);
  padding: 10px 16px; border-radius: 8px;
}
.s-skip:focus { top: 8px; color: var(--white); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* 3. Bootstrap theming ----------------------------------------------------- */
.text-primary { color: var(--brand) !important; }
.text-dark { color: var(--ink) !important; }
.text-muted { color: var(--slate) !important; }
.text-danger { color: var(--no) !important; }
.bg-light { background: var(--mist) !important; }
.bg-white { background: var(--white) !important; }
.rounded { border-radius: var(--bubble) !important; }
.shadow { box-shadow: var(--shadow) !important; }
.display-4, .display-5 { font-weight: 750; letter-spacing: -.02em; }

.btn {
  font-weight: 650;
  border-radius: var(--bubble);
  padding: .7rem 1.25rem;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-lg { padding: .85rem 1.5rem; font-size: 1.0625rem; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--white); }
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  background: var(--brand-strong); border-color: var(--brand-strong); color: var(--white);
}
.btn-info { background: var(--mist); border-color: var(--line); color: var(--brand); }
.btn-info:hover, .btn-info:focus { background: #e4eefa; border-color: var(--line); color: var(--brand-strong); }
.btn-danger { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn-danger:hover, .btn-danger:focus { background: #1b3a5a; border-color: #1b3a5a; color: var(--white); }
.btn-light { background: var(--white); border-color: var(--line); color: var(--ink); }
.btn-light:hover { background: var(--mist); color: var(--ink); }
.btn-secondary { background: var(--mist); border-color: var(--line); color: var(--ink); }
.btn-secondary:hover { background: #e4eefa; color: var(--ink); }
.btn-outline-primary { color: var(--brand); border-color: var(--brand); }
.btn-outline-primary:hover { background: var(--brand); border-color: var(--brand); color: var(--white); }
.btn-outline-light { color: var(--ink); border-color: var(--line); background: var(--white); }
.btn-outline-light:hover { background: var(--mist); color: var(--ink); border-color: var(--line); }
.btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; box-shadow: none; }

/* 4. Layout ---------------------------------------------------------------- */
.container-fluid { --bs-gutter-x: 0; }
.container { max-width: 1200px; padding-inline: var(--gutter); }
main { display: block; min-height: 50vh; }

.s-section { padding-block: clamp(56px, 8vw, 104px); }
.s-section--mist { background: var(--mist); }

/* Section heading block (replaces the template's underlined title). */
.s-head {
  max-width: 640px;
  margin: 0 auto clamp(28px, 4vw, 52px);
  text-align: center;
}
.s-head h1, .s-head h2, .s-head h3 { margin: 0; }
.s-head--left { margin-inline: 0; text-align: left; }
.s-head--sm { max-width: none; margin-bottom: 1.25rem; }
.s-head--sm h2, .s-head--sm h3 { font-size: 1.5rem; }
.s-kicker {
  margin: 0 0 .5rem;
  font-weight: 650;
  font-size: .9375rem;
  letter-spacing: 0;
  color: var(--brand);
}
.s-head .s-kicker { margin-inline: auto; }
.s-head--left .s-kicker { margin-inline: 0; }

/* 5. Header and nav -------------------------------------------------------- */
.s-header {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.s-header .navbar { min-height: 76px; padding: .6rem 0; }
.s-brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: 1.4rem; font-weight: 800; letter-spacing: -.03em;
  color: var(--ink); text-decoration: none;
}
.s-brand:hover { color: var(--ink); }
.s-brand__glyph {
  width: 34px; height: 34px; flex: none;
  color: var(--brand);
}
.s-header .nav-link {
  color: var(--ink); font-size: .92rem; font-weight: 650; padding: .6rem .75rem;
  border-radius: 8px;
}
.s-header .s-nav-actions .btn { white-space: nowrap; font-size: .9rem; padding: .58rem .9rem; }
.s-header .nav-link:hover, .s-header .nav-link:focus { color: var(--brand); background: var(--mist); }
.s-header .nav-link.active { color: var(--brand); }
.s-header .dropdown-toggle::after { margin-left: .4em; vertical-align: .18em; }
.s-header .dropdown-menu {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: .5rem;
  box-shadow: var(--shadow);
  min-width: 15rem;
}
.s-header .dropdown-item {
  border-radius: 8px; padding: .5rem .75rem; font-weight: 500; color: var(--ink);
}
.s-header .dropdown-item:hover, .s-header .dropdown-item:focus { background: var(--mist); color: var(--brand); }
.s-header .dropdown-divider { border-color: var(--line); margin: .4rem .5rem; }
.s-header .navbar-toggler {
  border: 1px solid var(--line); border-radius: 10px; padding: .45rem .7rem; color: var(--ink);
}
.s-header .navbar-toggler:focus { box-shadow: none; outline: 3px solid var(--focus); outline-offset: 2px; }
.s-header .s-nav-actions { display: flex; gap: .6rem; align-items: center; }

@media (max-width: 991.98px) {
  .s-header .navbar-collapse {
    margin-top: .75rem; padding-top: .5rem; border-top: 1px solid var(--line);
    max-height: calc(100vh - 80px); overflow-y: auto;
  }
  .s-header .dropdown-menu { border: 0; box-shadow: none; padding: 0 0 0 .75rem; }
  .s-header .s-nav-actions { padding: .75rem 0 1rem; }
}
@media (min-width: 992px) {
  .s-header .navbar-nav { align-items: center; gap: .15rem; }
  .s-header .s-nav-actions { margin-left: 1.1rem; }
}

/* 6. Home hero ------------------------------------------------------------- */
.s-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--white) 0%, var(--mist) 100%);
}
/* A static two-message chat sketch: the site's one decorative motif. */
.s-hero::before {
  content: ""; position: absolute; pointer-events: none;
  right: max(var(--gutter), calc((100vw - 1200px) / 2 + var(--gutter)));
  top: 50%; transform: translateY(-50%);
  width: min(34vw, 440px); aspect-ratio: 480 / 340;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 340'><rect x='10' y='10' width='330' height='130' rx='26' fill='%23e3eefb'/><path d='M30 138h36l-36 36z' fill='%23e3eefb'/><rect x='40' y='44' width='250' height='14' rx='7' fill='%23b9d1ee'/><rect x='40' y='72' width='200' height='14' rx='7' fill='%23b9d1ee'/><rect x='40' y='100' width='140' height='14' rx='7' fill='%23b9d1ee'/><rect x='140' y='170' width='330' height='110' rx='26' fill='%231769d2'/><path d='M444 278h-36l36 36z' fill='%231769d2'/><rect x='170' y='204' width='240' height='14' rx='7' fill='%23fff' fill-opacity='.9'/><rect x='170' y='232' width='170' height='14' rx='7' fill='%23fff' fill-opacity='.9'/></svg>") center / contain no-repeat;
}
@media (max-width: 767.98px) { .s-hero::before { display: none; } }
.s-hero .carousel-inner { position: relative; z-index: 1; }

/*
 * Slides are text in the same spot, so a plain crossfade stacks two headlines.
 * Fade them one after the other: the outgoing slide clears in the first
 * ~180ms of Bootstrap's 600ms window, then the incoming slide fades in.
 * Bootstrap ends the change after the outgoing slide's transition, so that
 * one keeps the full 600ms with a steep ease-out.
 */
.s-hero.carousel-fade .carousel-item {
  transition-duration: .35s; transition-delay: .25s; transition-timing-function: ease;
}
.s-hero.carousel-fade .carousel-item.active.carousel-item-start,
.s-hero.carousel-fade .carousel-item.active.carousel-item-end {
  transition: opacity .6s cubic-bezier(.1, .9, .2, 1) 0s;
}
.s-hero__slide {
  min-height: clamp(400px, 46vw, 560px);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding-block: clamp(40px, 6vw, 80px) clamp(64px, 8vw, 96px);
}
.s-hero__slide h2 {
  font-size: clamp(2.1rem, 1rem + 4vw, 3.75rem);
  letter-spacing: -.03em; line-height: 1.05;
  max-width: 14ch; margin: 0 0 1.5rem;
}
.s-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.s-hero .carousel-control-prev, .s-hero .carousel-control-next {
  top: auto; bottom: clamp(16px, 3vw, 28px); width: 44px; height: 44px;
  opacity: 1; border-radius: 50%; background: var(--white); border: 1px solid var(--line);
  z-index: 2;
}
.s-hero .carousel-control-prev { left: auto; right: calc(var(--gutter) + 56px); }
.s-hero .carousel-control-next { right: var(--gutter); }
.s-hero .carousel-control-prev-icon, .s-hero .carousel-control-next-icon {
  filter: invert(1) brightness(.3); width: 1rem; height: 1rem;
}
.s-hero.is-intro .carousel-item.active { animation: s-rise .5s ease-out both; }
@keyframes s-rise { from { opacity: .001; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* 7. Page header (all inner pages) ---------------------------------------- */
.s-pagehead {
  background: linear-gradient(180deg, var(--white) 0%, var(--mist) 100%);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(28px, 5vw, 56px);
  margin-bottom: clamp(32px, 5vw, 64px);
}
.s-pagehead h1 { margin: .35rem 0 0; font-size: clamp(1.9rem, 1.2rem + 2.6vw, 2.94rem); }
.s-crumbs { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .9375rem; color: var(--slate); }
.s-crumbs a { color: var(--slate); text-decoration: none; }
.s-crumbs a:hover { color: var(--brand); text-decoration: underline; }
.s-crumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* 8. Content blocks -------------------------------------------------------- */
/* Icon chip (feature and use-case icons). */
.s-chip {
  width: 52px; height: 52px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  background: #e3eefb; color: var(--brand);
  border-radius: var(--bubble-sm); font-size: 1.15rem;
}
.s-chip i { color: inherit !important; }

/* Entry-point cards under the hero. */
.s-entry {
  display: flex; align-items: center; gap: 1rem;
  height: 100%; padding: 1.5rem;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--bubble); box-shadow: var(--shadow);
  color: var(--ink); text-decoration: none;
}
.s-entry .s-chip { margin: 0; width: 60px; height: 60px; }
.s-entry__label { margin: 0; color: var(--slate); font-weight: 600; font-size: .9375rem; }
.s-entry h2 { margin: 0; font-size: 1.6rem; }
.s-entry:hover { color: var(--ink); border-color: var(--brand); }
.s-entry:focus-visible { outline-offset: 4px; }

/* Service and use-case tiles. */
.s-tile {
  position: relative; height: 100%;
  display: flex; flex-direction: column; align-items: flex-start;
  padding: clamp(22px, 3vw, 32px);
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--bubble);
}
.s-tile > img { max-height: 72px; width: auto; margin-bottom: 1rem; }
.s-tile h3 { margin-bottom: .6rem; }
.s-tile p { margin-bottom: 1.25rem !important; color: var(--slate); flex: 1 1 auto; }
.s-tile .btn {
  margin-top: auto; width: 44px; height: 44px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
}
.s-clickable { cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.s-clickable:hover { border-color: var(--brand); box-shadow: var(--shadow); }

/* Footer link lists and other simple lists. */
.s-links { display: flex; flex-direction: column; gap: .5rem; }
.s-links a { color: var(--ink); text-decoration: none; }
.s-links a:hover { color: var(--brand); text-decoration: underline; }

.s-note { text-align: center; color: var(--slate); margin: 1.5rem auto 0; }

/* Screenshots and framed images. */
.s-frame { border-radius: var(--bubble); box-shadow: var(--shadow); }

/* 9. Pricing --------------------------------------------------------------- */
.s-plans { align-items: stretch; }
.s-plan {
  display: flex; flex-direction: column; height: 100%;
  background: var(--mist); border: 1px solid var(--line);
  border-radius: var(--bubble);
  padding: clamp(22px, 3vw, 36px);
}
.s-plan--featured {
  background: var(--white); border-color: var(--brand);
  box-shadow: var(--shadow); border-width: 2px;
}
.s-plan__head { padding-bottom: 1rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.s-plan__head h3 { margin: 0 0 .15rem; color: var(--brand); font-size: 1.4rem; }
.s-plan__head p { margin: 0; color: var(--slate); font-size: .9375rem; }
.s-plan__price {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
  gap: .5rem 1rem; margin-bottom: 1.25rem;
}
.s-plan__price strong { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.s-plan__price small { font-size: .9375rem; color: var(--slate); font-weight: 600; }
.s-plan__price .s-plan__sms, .s-plan__price .s-plan__fee { display: flex; align-items: baseline; gap: .3rem; }
.s-plan__poa { justify-content: flex-start; }
.s-checks { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .75rem; }
.s-checks li { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.s-checks .fa-check { color: var(--ok); margin-top: .3rem; }
.s-checks .fa-times { color: var(--no); margin-top: .3rem; }
.s-plan__actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: .6rem; }
.s-only-sm { display: none; }
@media (max-width: 575.98px) {
  .s-only-sm { display: inline; }
  .s-not-sm { display: none; }
}

/* 10. FAQ ------------------------------------------------------------------ */
.s-faq {
  background: var(--mist); border-radius: var(--bubble-sm);
  padding: 1.1rem 1.4rem; margin-bottom: .6rem;
}
.s-faq__q {
  position: relative; cursor: pointer; padding-right: 2rem;
}
.s-faq__q h5 { margin: 0; font-size: 1.0625rem; }
.s-faq__q::after {
  content: ""; position: absolute; right: .2rem; top: .35rem;
  width: .6rem; height: .6rem;
  border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: rotate(-135deg); transition: transform .2s;
}
.s-faq__q.collapsed::after { transform: rotate(45deg); }
.s-faq__a { padding-top: .75rem; color: var(--ink); }
.s-faq__a p { margin-bottom: .5rem; }

/* 11. Forms and modal ------------------------------------------------------ */
.form-control, .form-select {
  border: 1px solid var(--line) !important;
  background-color: var(--white) !important;
  border-radius: 12px; color: var(--ink);
}
.form-control::placeholder { color: var(--slate); opacity: .8; }
.form-control:focus, .form-select:focus {
  border-color: var(--focus) !important;
  box-shadow: 0 0 0 3px rgba(49, 139, 235, .25);
}
.modal-content { border: 0; border-radius: var(--bubble); box-shadow: var(--shadow); }
.modal-header, .modal-footer { border-color: var(--line); }

/* Progress spinner used inside buttons by page scripts. */
.s-spinner {
  display: inline-block; width: 1em; height: 1em; vertical-align: -.15em;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: s-spin .8s linear infinite;
}
@keyframes s-spin { to { transform: rotate(360deg); } }

/* 12. Footer --------------------------------------------------------------- */
.s-footer { background: var(--mist); border-top: 1px solid var(--line); margin-top: clamp(40px, 6vw, 80px); }
.s-footer__main { padding-block: clamp(40px, 6vw, 72px); }
.s-footer .s-brand { margin-bottom: .75rem; }
.s-footer h3 { font-size: 1.05rem; margin-bottom: 1rem; }
.s-footer h3 a { color: var(--ink); text-decoration: none; }
.s-footer h3 a:hover { color: var(--brand); }
.s-footer__blurb { color: var(--slate); margin-bottom: 1.25rem; }
.s-footer__legal { border-top: 1px solid var(--line); padding-block: 1.25rem; color: var(--slate); font-size: .9375rem; }
.s-footer__legal p { margin: 0; max-width: none; }
.s-footer__legal a { color: var(--slate); }

.s-totop {
  position: fixed; right: 20px; bottom: 20px; z-index: 1020;
  width: 44px; height: 44px; border-radius: 50%;
  display: none; align-items: center; justify-content: center;
  background: var(--brand); color: var(--white); text-decoration: none;
  box-shadow: var(--shadow);
}
.s-totop.is-visible { display: inline-flex; }
.s-totop:hover { background: var(--brand-strong); color: var(--white); }

/* 13. Utilities ------------------------------------------------------------ */
.s-img-fill { object-fit: cover; }

/* Additions: page header details, entry row */
.s-pagehead__pre { color: var(--slate); font-weight: 600; }
.s-pagehead .container-fluid { margin-top: 1.25rem; }
.s-pagehead .input-group { max-width: 640px; }
.s-entries { padding-bottom: clamp(24px, 4vw, 48px); }

/* Panel card used around embedded forms */
.s-card {
  background: var(--mist); border-radius: var(--bubble);
  padding: clamp(22px, 3vw, 36px);
}
.s-card form { width: 100%; }

/* Wide tables (legal pages) scroll inside their own box on phones */
main .table { display: block; max-width: 100%; overflow-x: auto; }

/* API code samples: the only monospace on the site */
.s-code {
  margin: .6rem 0; padding: .75rem 1.25rem; overflow: auto;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  font: 400 .9rem/1.6 ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
  color: var(--ink);
}
.s-code span { white-space: nowrap; color: var(--ink); }

/* Screenshot frame used on tool pages */
.s-shot { border: 1px solid var(--line); border-radius: var(--bubble); overflow: hidden; background: var(--white); }

/* Narrow desktop (992-1199px): keep the whole nav on one row */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .s-header .nav-link { padding: .6rem .5rem; font-size: .88rem; }
  .s-header .s-nav-actions { margin-left: .5rem; gap: .4rem; }
  .s-header .s-nav-actions .btn { padding: .5rem .7rem; }
  .s-header .s-nav-actions .btn i { display: none; }
  .s-brand { font-size: 1.25rem; }
}

/* Footer link groups (1200px and up): Use Cases a little wider, Quick Links narrower */
@media (min-width: 1200px) {
  .s-footer__main .col-lg-8 > .row > div:nth-child(1) { flex: 0 0 auto; width: 33%; }
  .s-footer__main .col-lg-8 > .row > div:nth-child(2) { flex: 0 0 auto; width: 39%; }
  .s-footer__main .col-lg-8 > .row > div:nth-child(3) { flex: 0 0 auto; width: 28%; }
}

/* Smaller sidebar titles (opt in with s-head--xs) */
.s-head--sm.s-head--xs h2, .s-head--sm.s-head--xs h3 { font-size: 1.15rem; }

/* Current page in sidebar link lists */
.s-links a[aria-current="page"] {
  background: #e3eefb !important; color: var(--brand); font-weight: 750;
}

/*
 * Paired feature cells (desktop): two columns whose items share row lines,
 * so a long item on one side no longer pushes its neighbour out of line.
 * Each cell spans as many rows as it has items (s-span-N) and uses subgrid.
 */
@media (min-width: 992px) {
  .s-pairs {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem; margin: 0; --bs-gutter-x: 0; --bs-gutter-y: 0;
  }
  .s-pairs > .s-pairs__cell { width: auto; max-width: none; margin: 0; padding: 0; display: grid; }
  .s-pairs > .s-pairs__cell > .row { display: contents; }
  .s-pairs > .s-pairs__cell > .row > * { width: auto; max-width: none; margin: 0; padding: 0; }
  .s-pairs > .s-span-1 { grid-row: span 1; grid-template-rows: subgrid; }
  .s-pairs > .s-span-2 { grid-row: span 2; grid-template-rows: subgrid; }
  .s-pairs > .s-span-3 { grid-row: span 3; grid-template-rows: subgrid; }
  .s-pairs > .s-span-4 { grid-row: span 4; grid-template-rows: subgrid; }
}
