/* ==========================================================================
   Special templates — prefix: .sp-
   Sample request, customer solutions, 404 and site search.
   Tokens: assets/css/tokens.css. Rules: DESIGN.md — navy/orange accents, 1px
   cold-grey lines, 2–6px radii, mono for numbers and labels, no heavy shadows.
   The ct- classes reused by these templates are styled by assets/css/contact.css
   (which they enqueue); no ct- rule is redefined outside a .sp- wrapper.
   ========================================================================== */

/* Section heading for this page family (ct-section.light leaves h2 size to the
   browser default, which is below the DESIGN.md level-2 range). */
.sp-heading { margin: 0 0 14px; color: var(--basalt); font-size: clamp(22px, 2.6vw, 28px); line-height: 1.25; letter-spacing: -0.01em; }

/* Sample request: two-column section, "what to send" checklist */
.sp-grid.ct-grid { grid-template-columns: 0.85fr 1.15fr; align-items: start; }
.sp-checklist { display: grid; gap: 12px; margin: 30px 0 0; padding: 0; list-style: none; }
.sp-check { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.08); color: #D3DEE2; font-size: 15px; line-height: 1.6; }
.sp-check b { padding-top: 2px; color: var(--orange); font-family: var(--font-mono); font-size: 13px; font-weight: 600; }
.sp-check strong { color: #FFFFFF; font-weight: 600; }
.sp-note { margin: 26px 0 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.08); color: #8FA3AC; font-size: 13px; line-height: 1.6; }
.sp-form-card .ct-form-grid { gap: 16px 18px; }
.sp-form-card textarea { min-height: 104px; }

/* Customer solutions: role cards, shared-requirements band, closing CTA */
.sp-roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 34px 0 0; padding: 0; list-style: none; }
.sp-role { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 24px; background: var(--white); border: 1px solid var(--line); border-top: 2px solid var(--navy); border-radius: 4px; transition: border-color 0.18s ease, transform 0.18s ease; }
.sp-role:hover { border-color: var(--navy); transform: translateY(-2px); }
.sp-role-num { color: var(--orange); font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; }
.sp-role-title { margin: 0; color: var(--basalt); font-size: 19px; line-height: 1.3; }
.sp-role-need { margin: 0; color: var(--slate); font-size: 15px; line-height: 1.6; }
.sp-role-link { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--mist); color: var(--navy); font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.sp-role:hover .sp-role-link { color: var(--orange); }

.sp-band { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 48px 0 56px; }
.sp-band-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.sp-band-item { padding: 16px 18px; background: var(--mineral); border: 1px solid var(--line); border-left: 2px solid var(--orange); }
.sp-band-item strong { display: block; margin-bottom: 6px; color: var(--navy); font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.sp-band-item span { color: var(--slate); font-size: 14px; line-height: 1.55; }

.sp-cta { background: var(--navy); border-top: 5px solid var(--orange); color: #FFFFFF; padding: 64px 0; }
.sp-cta h2 { margin: 0 0 14px; color: #FFFFFF; font-size: clamp(24px, 3.2vw, 32px); line-height: 1.18; letter-spacing: -0.02em; }
.sp-cta p { margin: 0; max-width: 660px; color: #C7D3D9; font-size: 17px; line-height: 1.6; }
.sp-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.sp-ghost { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 22px; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: var(--radius-control); color: #FFFFFF; font-size: 14px; font-weight: 600; }
.sp-ghost:hover { border-color: #FFFFFF; background: rgba(255, 255, 255, 0.06); }

/* 404 */
.sp-404-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.sp-404-search { padding: 28px; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--orange); border-radius: var(--radius-control); }
.sp-entries { margin: 0; padding: 0; list-style: none; }
.sp-entry { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.sp-entry b { padding-top: 4px; color: var(--orange); font-family: var(--font-mono); font-size: 12px; font-weight: 600; }
.sp-entry a { color: var(--navy); font-size: 16px; font-weight: 600; }
.sp-entry a:hover { color: var(--orange); }
.sp-entry span { grid-column: 2; color: var(--steel); font-size: 14px; line-height: 1.55; }
.sp-404-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

/* Reusable search form (components/search-form.php) */
.sp-search-form { display: grid; gap: 12px; }
.sp-search-label { color: var(--slate); font-size: 13px; font-weight: 600; }
.sp-search-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.sp-search-input { width: 100%; min-height: 48px; padding: 12px 14px; color: var(--basalt); background: var(--white); border: 1px solid #BCC9CE; border-radius: 3px; font-family: var(--font-sans); font-size: 15px; line-height: 1.4; }
.sp-search-input:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(16, 42, 58, 0.1); outline: none; }

/* Search results */
.sp-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; padding: 0; list-style: none; }
.sp-filter { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-control); color: var(--navy); font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.sp-filter:hover { border-color: var(--navy); }
.sp-filter.is-active { background: var(--navy); border-color: var(--navy); color: #FFFFFF; }
.sp-count { margin: 0 0 20px; color: var(--steel); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.sp-results { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.sp-result { padding: 22px 0; border-bottom: 1px solid var(--line); }
.sp-result-type { display: inline-block; margin: 0 0 10px; padding: 4px 8px; background: var(--mist); color: var(--slate); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.sp-result-title { margin: 0 0 8px; font-size: 20px; line-height: 1.3; }
.sp-result-title a { color: var(--navy); }
.sp-result-title a:hover { color: var(--orange); }
.sp-result-excerpt { margin: 0; color: var(--slate); font-size: 15px; line-height: 1.65; }
.sp-empty { max-width: 640px; padding: 32px; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--orange); border-radius: var(--radius-control); }
.sp-empty .sp-search-form { margin-bottom: 18px; }
.sp-empty-more { margin: 0; }
.sp-empty-more a { color: var(--navy); font-size: 15px; font-weight: 600; border-bottom: 2px solid transparent; }
.sp-empty-more a:hover { border-color: var(--orange); }

/* Pagination (the_posts_pagination output, scoped to .sp-pagination) */
.sp-pagination { margin: 36px 0 0; }
.sp-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 8px 14px; background: var(--white); border: 1px solid var(--line); border-radius: 3px; color: var(--navy); font-family: var(--font-mono); font-size: 13px; }
.sp-pagination .page-numbers.current { background: var(--navy); border-color: var(--navy); color: #FFFFFF; }
.sp-pagination .screen-reader-text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 1000px) {
  .sp-grid.ct-grid { grid-template-columns: 1fr; }
  .sp-404-grid { grid-template-columns: 1fr; gap: 36px; }
  .sp-roles, .sp-band-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .sp-roles, .sp-band-grid { grid-template-columns: 1fr; }
  .sp-search-row { grid-template-columns: 1fr; }
  .sp-search-row .sp-search-submit { width: 100%; justify-content: center; }
  .sp-404-search, .sp-empty { padding: 22px 18px; }
  .sp-cta { padding: 48px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .sp-role { transition: none; }
  .sp-role:hover { transform: none; }
}