/* QLOGIX "Quarter" - parts shared by the sub-pages built by pages/build.py (customs clearance, how it works,
   case studies). Loaded after styles.css (tokens, .label, .bar, .h2, .btn, .tlink, .sec-head, .art, [data-reveal])
   and before the page's own sheet. Everything here is prefixed sp-. */

.sp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.label > span { min-width: 0; }

/* ---------- breadcrumb ---------- */
.sp-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 22px; font-size: .9375rem; color: var(--muted); }
.sp-crumbs a { position: relative; text-decoration: none; font-weight: 500; color: var(--navy-900); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .4s var(--ease); }
@media (hover: hover) { .sp-crumbs a:hover { background-size: 100% 1.5px; } }
.sp-crumbs a::before { content: ""; position: absolute; inset: -10px -8px; } /* a 44px tap target around the short link */
.sp-crumbs li { display: flex; align-items: center; gap: 10px; }
.sp-crumbs li + li::before { content: ""; width: 6px; height: 6px; border: solid var(--navy-400); border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); }
.sp-crumbs [aria-current="page"] { color: var(--muted); }

/* ---------- hero: copy left, the page's own picture right (same grid as the homepage hero) ---------- */
.sp-hero { position: relative; padding-top: clamp(100px, 12vh, 160px); padding-bottom: clamp(40px, 5vw, 80px); }
.sp-hero__grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 80px); align-items: center; }
.sp-hero__h1 {
  margin-top: 26px;
  font-family: var(--display);
  font-size: clamp(3rem, min(7.6vw, 12vh), 7.4rem);
  font-weight: 800; line-height: .92; letter-spacing: -.03em;
  font-variation-settings: "opsz" 96;
  overflow-wrap: break-word; text-wrap: balance;
}
.sp-hero__h1 em { font-style: normal; color: var(--brand-600); }
.sp-hero__h1--m { font-size: clamp(2.4rem, min(5.4vw, 9vh), 5.25rem); line-height: .96; } /* long titles (case studies) */
.sp-hero__lead { margin-top: clamp(22px, 3.4vh, 34px); max-width: 38ch; font-size: clamp(1.125rem, 1.5vw, 1.375rem); line-height: 1.5; color: var(--muted); }
.sp-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(24px, 3.8vh, 38px); }
.sp-hero__side { position: relative; }
.js .sp-hero__cta[data-reveal] { transition-delay: .25s; }

/* small check items under a lead (e.g. "In-house declarant team") */
.sp-ticks { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 26px; }
.sp-ticks li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .9875rem; }
.sp-ticks li::before { content: ""; flex: none; width: 18px; height: 10px; margin-top: -4px; border: solid var(--brand-600); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg); }

/* ---------- a row of figures, set like the homepage facts ---------- */
.sp-facts { border-block: 1px solid var(--navy-100); padding-block: clamp(18px, 2.2vw, 30px); }
.sp-facts ul { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px clamp(20px, 2.6vw, 48px); }
.sp-facts li { display: flex; align-items: center; gap: .6em; font-size: clamp(1rem, 1.4vw, 1.25rem); line-height: 1.25; color: var(--muted); }
.sp-facts li span { max-width: 10em; }
.sp-facts li + li::before { content: ""; flex: none; width: 34px; height: 6px; margin-right: clamp(20px, 2.6vw, 48px); background: var(--brand-400); border-radius: 1px; }
.sp-facts b { flex: none; white-space: nowrap; font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 4.6vw, 4.5rem); letter-spacing: -.035em; line-height: 1; color: var(--navy-950); }

/* ---------- a section ---------- */
.sp-sec { padding-block: var(--sec); }

/* ---------- numbered typographic rows (title left, text + list right) ---------- */
.sp-rows { border-bottom: 1.5px solid var(--navy-200); }
.sp-row {
  display: grid; grid-template-columns: clamp(48px, 7vw, 120px) minmax(0, 1fr) minmax(0, 1fr); gap: 20px clamp(24px, 4vw, 72px); align-items: start;
  padding-block: clamp(28px, 3.6vw, 60px); border-top: 1.5px solid var(--navy-200);
}
.sp-row__n { padding-top: .5em; font-family: var(--display); font-weight: 600; font-size: 1.0625rem; color: var(--brand-700); font-variant-numeric: tabular-nums; }
.sp-row h3 { font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 3.8vw, 3.6rem); line-height: 1; letter-spacing: -.032em; text-wrap: balance; overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
.sp-row h3 i { display: block; font-style: normal; font-weight: 400; color: var(--muted); }
.sp-row__b { display: grid; gap: clamp(18px, 2vw, 28px); padding-top: .35em; }
.sp-row__b p { max-width: 48ch; font-size: 1.1875rem; line-height: 1.5; color: var(--muted); }
.sp-list { display: grid; gap: 12px; }
.sp-list li { position: relative; padding-left: 30px; font-weight: 500; line-height: 1.4; }
.sp-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 16px; height: 4px; background: var(--brand-400); }

/* ---------- navy band (quarter corner top-left, like the homepage's full-bleed bands) ---------- */
.sp-band { --ring: #fff; padding-block: var(--sec); background: var(--navy-950); color: #fff; border-radius: var(--q) 0 0 0; }
.sp-band .label { color: var(--brand-300); }
.sp-band .label .bar { background: var(--brand-400); }
.sp-band .h2 em { color: var(--brand-400); }
.sp-band .sec-head__lead { color: var(--on-dark); }

/* ---------- closing band (brand blue, quarter corner top-right, live dial) ---------- */
.sp-cta { position: relative; z-index: 1; padding-block: var(--sec); background: var(--brand-400); color: var(--navy-950); border-radius: 0 var(--q) 0 0; }
.sp-cta__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 112px); align-items: end; }
.sp-cta__copy { display: grid; gap: 26px; }
.sp-cta .h2 { font-size: clamp(2.9rem, 7.2vw, 7rem); line-height: .92; }
.sp-cta .h2 em { color: #fff; }
.sp-cta__act { display: grid; gap: clamp(22px, 2.6vw, 34px); padding-bottom: .6vw; }
.sp-cta__now { display: grid; grid-template-columns: clamp(72px, 7vw, 104px) minmax(0, 1fr); gap: clamp(16px, 2vw, 28px); align-items: center; }
.sp-cta__now p { max-width: 34ch; font-size: 1.125rem; font-weight: 500; }
.sp-cta__btns { display: flex; flex-wrap: wrap; gap: 14px; }
.sp-cta .btn--ghost { --hov: var(--brand-200); box-shadow: inset 0 0 0 1.5px var(--navy-950); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .sp-facts li + li::before { display: none; }
  .sp-facts ul { display: grid; grid-template-columns: repeat(3, auto); }
  .sp-row { grid-template-columns: clamp(40px, 6vw, 80px) minmax(0, 1fr); }
  .sp-row__b { grid-column: 2; padding-top: 0; }
}
@media (max-width: 960px) {
  .sp-hero__grid, .sp-cta__grid { grid-template-columns: 1fr; }
  .sp-hero__side { margin-top: 12px; max-width: 560px; }
  .sp-cta__grid { align-items: start; }
}
@media (max-width: 640px) {
  .sp-facts { padding-block: 8px; }
  .sp-facts ul { grid-template-columns: 1fr; gap: 0; justify-content: stretch; }
  .sp-facts li { display: grid; grid-template-columns: 8.5rem 1fr; align-items: baseline; gap: 12px; padding: 12px 0; font-size: 1rem; }
  .sp-facts li span { max-width: none; }
  .sp-facts li + li { border-top: 1px solid var(--navy-100); }
  .sp-facts b { font-size: 2rem; }
  .sp-row { grid-template-columns: 1fr; gap: 12px; }
  .sp-row__n { padding-top: 0; }
  .sp-row__b { grid-column: 1; margin-top: 6px; }
  .sp-cta__btns .btn { flex: 1 1 100%; justify-content: space-between; }
  .sp-cta__btns .btn--ghost { justify-content: center; }
}
@media print {
  .sp-band, .sp-cta { border-radius: 0; }
  .sp-cta__now svg { display: none; }
  .sp-cta__now { grid-template-columns: 1fr; }
}
