/* Service pages: hero facts, process steps, spec table, onward links, closing band.
   Follows the site system: square corners, 1px rules, the 48px module, theme variables only. */

/* Hero facts: a ruled strip, like the title block of a drawing */
.sv-facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: 32px 0 0; padding: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--line); background: var(--surface); }
.sv-facts > div { padding: 16px 20px 18px; border-inline-end: 1px solid var(--line); min-width: 0; }
.sv-facts > div:last-child { border-inline-end: 0; }
.sv-facts dt { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.sv-facts dd { margin: 4px 0 0; font-size: 17px; font-weight: 650; line-height: 1.35; color: var(--ink); text-wrap: balance; }
@media (max-width: 900px) {
  .sv-facts { grid-template-columns: 1fr 1fr; }
  .sv-facts > div:nth-child(2n) { border-inline-end: 0; }
  .sv-facts > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .sv-facts > div { padding: 14px 16px 16px; }
  .sv-facts dd { font-size: 16px; }
}
.sv-facts + div > .svc-block:first-child { border-top: 0; }

/* A plain section inside the page column */
.sv-sec { margin-top: var(--m); padding: var(--m) 0 0; border-top: 1px solid var(--rule); }
.sv-sec > h2 { margin: 0 0 10px; font-size: clamp(26px, 3.2vw, 40px); }
/* The shared FAQ block, brought onto the same rhythm when it sits among these sections */
.sv-sec + .faq { padding-top: var(--m); border-top: 1px solid var(--rule); max-width: none; }
.sv-sec + .faq > * { max-width: 820px; }
.faq:has(+ .sv-sec), .faq:has(+ .sv-band) { padding-bottom: 0; }
.sv-sub { margin: 0; color: var(--ink-2); max-width: 64ch; }

/* Process steps: a real sequence, so it is numbered */
.sv-steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: sv; }
.sv-steps li { counter-increment: sv; position: relative; padding: 28px 24px 0 0; border-top: 3px solid var(--maroon); }
[dir="rtl"] .sv-steps li { padding: 28px 0 0 24px; }
.sv-steps li::before { content: counter(sv); position: absolute; top: -3px; inset-inline-start: 0; width: 28px; height: 28px; display: grid; place-items: center; transform: translateY(-50%); background: var(--maroon); color: var(--surface); font: 650 14px/1 var(--font); }
.sv-steps h3 { margin: 0 0 6px; font-size: 19px; line-height: 1.25; }
.sv-steps p { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
@media (max-width: 900px) { .sv-steps { grid-template-columns: 1fr 1fr; row-gap: 40px; } }
@media (max-width: 560px) { .sv-steps { grid-template-columns: 1fr; } }

/* Spec table */
.sv-tablewrap { margin-top: 24px; overflow-x: auto; border: 1px solid var(--line); background: var(--surface); -webkit-overflow-scrolling: touch; }
.sv-table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 16px; }
.sv-table th, .sv-table td { text-align: start; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.sv-table thead th { font-size: 13px; font-weight: 650; color: var(--ink-3); border-bottom: 1px solid var(--rule); }
.sv-table tbody th { font-weight: 700; white-space: nowrap; color: var(--ink); }
.sv-table td { color: var(--ink-2); }
.sv-table tbody tr:last-child > * { border-bottom: 0; }
.sv-fine { margin: 14px 0 0; font-size: 15px; color: var(--ink-2); max-width: 78ch; }
.sv-fine a { color: var(--maroon); }

/* Two notes side by side */
.sv-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: var(--m); padding: 0; border: 1px solid var(--line); background: var(--surface); }
.sv-duo > div { padding: 24px; }
.sv-duo > div + div { border-inline-start: 1px solid var(--line); }
.sv-duo h2 { margin: 0 0 8px; font-size: 22px; line-height: 1.25; }
.sv-duo p { margin: 0; color: var(--ink-2); }
.sv-duo .sv-stop { border-top: 3px solid var(--warn); }
.sv-duo .sv-go { border-top: 3px solid var(--maroon); }
@media (max-width: 760px) { .sv-duo { grid-template-columns: 1fr; } .sv-duo > div + div { border-inline-start: 0; } }

/* Onward links */
.sv-next { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 24px; border: 1px solid var(--line); background: var(--surface); }
.sv-next a { display: flex; flex-direction: column; gap: 6px; min-height: 120px; padding: 20px; text-decoration: none; border-inline-end: 1px solid var(--line); transition: background-color .18s; }
.sv-next a:last-child { border-inline-end: 0; }
.sv-next b { font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--maroon); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.sv-next span { font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.sv-next a:hover { background: var(--plate); }
.sv-next a:hover b { text-decoration-thickness: 2px; }
@media (max-width: 900px) {
  .sv-next { grid-template-columns: 1fr 1fr; }
  .sv-next a:nth-child(2n) { border-inline-end: 0; }
  .sv-next a:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .sv-next { grid-template-columns: 1fr; }
  .sv-next a { min-height: 0; border-inline-end: 0; }
  .sv-next a + a { border-top: 1px solid var(--line); }
}

/* Closing band: the cobalt shadow of the screen, with its lattice */
.sv-band { margin-top: var(--m); padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1.4fr auto; gap: 28px; align-items: center; color: #FFFFFF; background-color: var(--cobalt);
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.055) 0 1px, transparent 1px 24px), repeating-linear-gradient(-45deg, rgba(255,255,255,.055) 0 1px, transparent 1px 24px); }
.sv-band h2 { margin: 0 0 10px; color: #FFFFFF; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.15; text-wrap: balance; }
.sv-band p { margin: 0; color: #D5DEEE; max-width: 54ch; }
.sv-band-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) { .sv-band { grid-template-columns: 1fr; } .sv-band-actions .btn { flex: 1 1 220px; } }

/* Phone: hero buttons full width like the closing band; a tighter fact strip so the floating Help pill does not cover it */
@media (max-width: 600px) {
  .hero-actions:has(+ .sv-facts) { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-actions:has(+ .sv-facts) .btn { display: flex; justify-content: center; width: 100%; margin: 0; text-align: center; }
  .sv-facts { margin-top: 20px; }
  .sv-facts > div { padding: 10px 14px 12px; }
  .sv-facts dd { font-size: 15px; }
}
