/* ==========================================================================
   services.css: services hub, 20 service pages, industries hub, 6 industry pages.
   Owner: SERVICES agent. Classes are prefixed sv- (services) and in- (industries)
   and are used only by pages/services.py.
   Finished states are the default; JS (services.js / industries.js) animates FROM
   hidden states inside SD.mm. html.motion-on gates the only CSS-driven pre-states.
   ========================================================================== */

/* ---------- 0. Shared bits ---------------------------------------------- */
.sv-tick { width: 22px; height: 22px; flex: none; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.sv-tick__box { stroke: var(--rule-strong); stroke-width: 1.25; }
.sv-tick__mark { stroke: var(--accent); stroke-width: 2.2; }

.sv-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.sv-chip { display: inline-flex; align-items: center; gap: .45rem; min-height: 30px; padding: .2rem .7rem; border: 1px solid var(--rule-strong); border-radius: var(--r-pill);
  font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .02em; color: var(--fg); background: var(--surface); white-space: nowrap; }
.sv-chip__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }

.sv-split { display: grid; gap: clamp(1.5rem, 1rem + 2vw, 3rem); }
@media (min-width: 1000px) {
  .sv-split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(3rem, 2rem + 4vw, 7rem); align-items: start; }
  .sv-split--sticky .sv-split__head { position: sticky; top: calc(var(--header-h) + 2rem); }
}
.sv-split .section__head { margin-bottom: 0; }
.sv-prose { display: grid; gap: 1.1em; font-size: var(--fs-md); line-height: 1.72; max-width: 64ch; color: var(--fg); }
.sv-prose p:first-child { font-size: var(--fs-lead); line-height: 1.5; letter-spacing: -.004em; }
.sv-prose a { color: var(--link); text-decoration: underline; text-underline-offset: .2em; }

.sv-note { margin-top: clamp(1.5rem, 1rem + 2vw, 2.5rem); max-width: 64ch; padding: 1.1rem 1.25rem 1.2rem 1.4rem; border-left: 2px solid var(--accent); background: var(--surface);
  border-radius: 0 var(--r-sm) var(--r-sm) 0; box-shadow: var(--shadow-1); position: relative; }
.sv-note__h { display: flex; align-items: center; gap: .5rem; font-size: var(--fs-2xs); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--fg-2); margin-bottom: .45rem; }
.sv-note .note { color: var(--fg); font-size: var(--fs-base); line-height: 1.6; }

/* ---------- 1. Heroes + docket ------------------------------------------ */
.sv-hero .phero__title { max-width: 18ch; }
.sv-hero .eyebrow .mono { color: var(--accent); }
.sv-docket { width: 100%; max-width: 420px; margin-top: 1.5rem; border: 1px solid var(--rule-strong); border-radius: var(--r-md);
  background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  background-image: repeating-linear-gradient(180deg, transparent 0 39px, var(--ledger-line) 39px 40px); }
.sv-docket__head { display: flex; justify-content: space-between; align-items: center; padding: .8rem 1.1rem; border-bottom: 1px solid var(--rule-strong);
  font-family: var(--font-mono); font-size: var(--fs-2xs); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--fg-2); }
.sv-docket__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--saffron); }
.sv-docket dl { margin: 0; }
.sv-docket__row { display: flex; justify-content: space-between; gap: 1rem; min-height: 40px; align-items: center; padding: 0 1.1rem; border-bottom: 1px solid var(--rule); font-size: var(--fs-sm); }
.sv-docket__row dt { color: var(--fg-2); }
.sv-docket__row dd { margin: 0; text-align: right; color: var(--fg); }
.sv-docket__row a { color: var(--link); text-decoration: none; }
.sv-docket__row a:hover { text-decoration: underline; }
.sv-docket__forms { padding: .9rem 1.1rem 1.1rem; }
.sv-docket__forms > .mono { font-size: var(--fs-2xs); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--fg-2); margin-bottom: .6rem; }
.sv-chips--hero .sv-chip { background: transparent; min-height: 28px; font-size: .6875rem; }
@media (min-width: 1100px) {
  .sv-hero--svc .phero__inner, .sv-hero--ind1 .phero__inner { grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); column-gap: clamp(3rem, 5vw, 6rem); }
  .sv-hero--svc .phero__inner > *, .sv-hero--ind1 .phero__inner > * { grid-column: 1; }
  .sv-hero--svc .sv-docket, .sv-hero--ind1 .sv-docket { grid-column: 2; grid-row: 2 / span 5; align-self: end; margin-top: 0; }
  .sv-hero--svc .phero__meta, .sv-hero--ind1 .phero__meta { max-width: none; }
}
/* hub: desk jump index at the foot of the hero */
.sv-hero-index { width: 100%; margin-top: clamp(1rem, .5rem + 2vw, 2.5rem); }
.sv-hero-index ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); border-top: 1px solid var(--rule-strong); }
.sv-hero-index li { border-bottom: 1px solid var(--rule); }
.sv-hero-index a { display: flex; gap: .6rem; align-items: baseline; min-height: 48px; padding: .9rem 1rem .9rem 0; color: var(--fg); text-decoration: none; font-weight: 500; }
.sv-hero-index a .mono { color: var(--accent); font-size: var(--fs-xs); }
.sv-hero-index a:hover { color: var(--accent); }
@media (min-width: 900px) { .sv-hero-index li + li a { padding-left: 1rem; border-left: 1px solid var(--rule); } .sv-hero-index li { border-bottom: 0; } }

/* ---------- 2. Services hub: register --------------------------------- */
.sv-register { display: grid; gap: 2rem; }
@media (min-width: 1000px) { .sv-register { grid-template-columns: 230px minmax(0, 1fr); gap: clamp(2.5rem, 4vw, 5rem); align-items: start; } }
.sv-rail { position: relative; }
@media (min-width: 1000px) { .sv-rail { position: sticky; top: calc(var(--header-h) + 2rem); } }
.sv-rail__head { font-size: var(--fs-2xs); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--fg-3); padding-bottom: .75rem; border-bottom: 1px solid var(--rule-strong); }
.sv-rail__list { list-style: none; margin: 0; padding: 0; }
.sv-rail__link { position: relative; display: grid; grid-template-columns: 2.2rem 1fr auto; gap: .5rem; align-items: baseline; min-height: 48px; padding: .8rem 0 .8rem .75rem;
  border-bottom: 1px solid var(--rule); color: var(--fg-2); text-decoration: none; font-size: var(--fs-sm); line-height: 1.35; }
.sv-rail__link::before { content: ""; position: absolute; left: 0; top: .6rem; bottom: .6rem; width: 2px; background: var(--green); transform: scaleY(0); transform-origin: top; transition: transform var(--dur-3) var(--ease-out); }
.sv-rail__no, .sv-rail__n { font-family: var(--font-mono); font-size: var(--fs-2xs); color: var(--fg-3); letter-spacing: .04em; }
.sv-rail__link:hover { color: var(--fg); }
.sv-rail__link.is-active { color: var(--fg); font-weight: 600; }
.sv-rail__link.is-active::before { transform: scaleY(1); }
.sv-rail__link.is-active .sv-rail__no { color: var(--green); }
.sv-rail__total { display: flex; justify-content: space-between; padding-top: .8rem; font-size: var(--fs-2xs); letter-spacing: .06em; text-transform: uppercase; color: var(--fg-2);
  border-top: 5px double var(--fg); margin-top: -1px; }
.sv-rail__fill { display: none; }
@media (max-width: 999px) { .sv-rail { display: none; } }
@media (max-width: 999px) {
  .sv-rail__list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1rem; }
  .sv-rail__list li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

.sv-desk { position: relative; padding-bottom: clamp(3rem, 2rem + 4vw, 6rem); scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.sv-desk:focus { outline: none; }
.sv-desk:focus-visible { outline: 2px solid var(--focus); outline-offset: 8px; border-radius: 4px; }
.sv-desk__margin { position: absolute; left: -1.25rem; top: .5rem; bottom: 3rem; width: 5px; border-left: 1px solid var(--ledger-margin); border-right: 1px solid var(--ledger-margin); transform-origin: top; display: none; }
@media (min-width: 1000px) { .sv-desk__margin { display: block; } }
.sv-desk__head { display: grid; gap: .75rem 2rem; padding-bottom: 1.5rem; border-bottom: 5px double var(--fg); }
@media (min-width: 760px) { .sv-desk__head { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "no title" "no sum" "no meta"; } .sv-desk__no { grid-area: no; } .sv-desk__title { grid-area: title; } .sv-desk__sum { grid-area: sum; } .sv-desk__meta { grid-area: meta; } }
.sv-desk__no { font-family: var(--font-mono); font-size: clamp(3.25rem, 2rem + 5vw, 6.5rem); line-height: .9; letter-spacing: -.04em; color: var(--fg-3); font-weight: 400; }
.sv-desk__title { display: grid; gap: .6rem; }
.sv-desk__h { font-size: var(--fs-h3); line-height: 1.12; display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .75rem; }
.sv-desk__h .hi { font-size: .55em; font-weight: 500; color: var(--fg-2); }
.sv-desk__tag { font-family: var(--font-mono); font-size: var(--fs-2xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; align-self: center; }
.sv-desk__paren { font-size: .5em; font-family: var(--font-mono); font-weight: 500; letter-spacing: .04em; color: var(--fg-2); text-transform: uppercase; }
.sv-desk__sum { color: var(--fg-2); max-width: 60ch; }
.sv-desk__meta { font-size: var(--fs-2xs); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--fg-3); }
.sv-desk__foot { margin-top: 1.25rem; color: var(--fg-2); }
.sv-desk--dark { padding: clamp(1.5rem, 1rem + 2.5vw, 3rem); border-radius: var(--r-lg); background-image: repeating-linear-gradient(180deg, transparent 0 47px, var(--ledger-line) 47px 48px); }
.sv-desk--dark .sv-desk__margin { display: none; }

.sv-rows { list-style: none; margin: 0; padding: 0; }
.sv-row { position: relative; display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: .5rem 1rem; padding: 1.5rem 0 1.6rem; isolation: isolate; }
.sv-row::before { content: ""; position: absolute; inset: 0 -1rem; z-index: -1; border-radius: var(--r-sm); background: var(--surface); transform: scaleX(0); transform-origin: left center; transition: transform var(--dur-4) var(--ease-out); }
.sv-row:hover::before, .sv-row:focus-within::before { transform: scaleX(1); }
.sv-row__rule { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--rule-strong); transform-origin: left center; }
.sv-row__no { grid-column: 1; grid-row: 1; padding-top: .35rem; font-size: var(--fs-xs); color: var(--fg-3); letter-spacing: .04em; }
.sv-row__main { grid-column: 2; display: grid; gap: .35rem; align-content: start; }
.sv-row__h { font-size: var(--fs-h4); line-height: 1.2; }
.sv-row__h a { color: var(--fg); text-decoration: none; background: linear-gradient(currentColor 0 0) 0 100% / 0 1px no-repeat; transition: background-size var(--dur-4) var(--ease-out); }
.sv-row__h a:hover, .sv-row__h a:focus-visible { background-size: 100% 1px; }
.sv-row__h a::after { content: ""; position: absolute; inset: 0; z-index: 0; } /* whole row is the target */
.sv-row__short { color: var(--fg-2); max-width: 58ch; }
.sv-row__inc { grid-column: 2; position: relative; z-index: 1; display: grid; }
.sv-row__inc-in { min-height: 0; overflow: hidden; }
.sv-row__inc-h { font-size: var(--fs-2xs); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--fg-3); padding: .9rem 0 .5rem; }
.sv-row__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem 1.5rem; }
@media (min-width: 700px) { .sv-row__list { grid-template-columns: 1fr 1fr; } }
.sv-row__list li { display: flex; gap: .6rem; align-items: flex-start; font-size: var(--fs-sm); line-height: 1.45; color: var(--fg); }
.sv-row__list .sv-tick { width: 18px; height: 18px; margin-top: .1rem; }
.sv-row__more { grid-column: 2; position: relative; z-index: 1; padding-top: .5rem; }
.sv-row__more .link { color: var(--link); font-weight: 600; font-size: var(--fs-sm); }
.sv-row__go { display: none; }
@media (min-width: 900px) {
  .sv-row { grid-template-columns: 4.5rem minmax(0, 1fr) auto; column-gap: 2rem; }
  .sv-row__more { grid-column: 3; grid-row: 1; align-self: start; padding-top: .3rem; }
  .sv-row__inc { grid-column: 2 / 4; }
}
/* Wide screens: the register reads across: no. | service | what's included | details.
   Hover / focus is the reveal: the row is inked in, the included ticks draw and the list lifts to full ink. */
@media (min-width: 1100px) {
  .sv-row { grid-template-columns: 4.5rem minmax(0, 5fr) minmax(0, 6fr) auto; }
  .sv-row__inc { grid-column: 3; grid-row: 1; }
  .sv-row__more { grid-column: 4; }
  .sv-row__inc-h { padding-top: .4rem; }
  .sv-row__list { grid-template-columns: 1fr; }
  .sv-row__list li { color: var(--fg-2); transition: color var(--dur-3) var(--ease-out); }
  .sv-row:hover .sv-row__list li, .sv-row:focus-within .sv-row__list li { color: var(--fg); }
  .sv-row__list .sv-tick__mark { transition: stroke var(--dur-3); }
}
@media (hover: hover) and (pointer: fine) {
  html.motion-on .sv-row__list .sv-tick__mark { stroke-dashoffset: 0; }
  .sv-row .sv-row__more .icon { transition: transform var(--dur-3) var(--ease-out); }
  .sv-row:hover .sv-row__more .icon { transform: translateX(4px); }
}
/* compact (deep-tech) rows */
.sv-row--compact { grid-template-columns: 3.5rem minmax(0, 1fr) auto; align-items: start; }
.sv-row--compact .sv-row__h { font-size: var(--fs-h5); }
.sv-row--compact .sv-row__h strong { font-weight: 600; }
.sv-row--compact .sv-row__go { display: inline-flex; grid-column: 3; grid-row: 1; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--rule-strong); align-items: center; justify-content: center; color: var(--accent); transition: transform var(--dur-3) var(--ease-out); }
.sv-row--compact:hover .sv-row__go { transform: rotate(45deg); }
.sv-row--compact::before { background: var(--surface-2); }

/* ---------- 3. CTA band -------------------------------------------------- */
/* the band itself (ledger lines, actions, contact line) is shared: base.css .cta-band__* */

/* ---------- 4. Service page sections ----------------------------------- */
/* Structure comparison */
.sv-cmp { display: grid; gap: clamp(1rem, .6rem + 1.4vw, 1.75rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.sv-cmp__card { height: 100%; }
.sv-cmp__pts { list-style: none; margin: auto 0 0; padding: 1rem 0 0; border-top: 1px solid var(--rule); display: grid; gap: .55rem; }
.sv-cmp__pts li { display: flex; gap: .6rem; font-size: var(--fs-sm); }
.sv-cmp__pts .sv-tick { width: 18px; height: 18px; margin-top: .1rem; }

/* Scope (What we do): base */
.sv-scope { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.sv-scope__item { position: relative; display: grid; grid-template-columns: 3rem 26px minmax(0, 1fr); gap: 1rem; align-items: start; padding: 1.15rem 0; border-bottom: 1px solid var(--rule); font-size: var(--fs-md); line-height: 1.5; }
.sv-scope__item:first-child { border-top: 1px solid var(--rule-strong); }
.sv-scope__no { font-size: var(--fs-xs); color: var(--fg-3); padding-top: .25rem; letter-spacing: .04em; }
.sv-scope .sv-tick { width: 26px; height: 26px; }
.sv-scope__text { color: var(--fg); }
/* ticks (Market Entry): checklist */
.sv-scope--ticks .sv-scope__item { grid-template-columns: 30px minmax(0, 1fr) auto; }
.sv-scope--ticks .sv-scope__no { grid-column: 3; grid-row: 1; }
.sv-scope--ticks .sv-tick { grid-column: 1; grid-row: 1; }
.sv-scope--ticks .sv-scope__text { grid-column: 2; grid-row: 1; }
.sv-scope--ticks .sv-tick__box { stroke: var(--green); stroke-width: 1.4; }
/* schedule (Tax): lines of a return form */
.sv-form-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: .8rem 1.1rem; border: 1px solid var(--rule-strong); border-bottom: 0; border-radius: var(--r-sm) var(--r-sm) 0 0;
  font-size: var(--fs-2xs); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--fg-2); background: var(--surface-2); }
.sv-scope--schedule { border: 1px solid var(--rule-strong); border-radius: 0 0 var(--r-sm) var(--r-sm); background: var(--surface);
  background-image: repeating-linear-gradient(180deg, transparent 0 31px, var(--ledger-line) 31px 32px); }
.sv-scope--schedule .sv-scope__item { grid-template-columns: 5rem minmax(0, 1fr) 26px; padding: 1.05rem 1.1rem; }
.sv-scope--schedule .sv-scope__item:first-child { border-top: 0; }
.sv-scope--schedule .sv-scope__item:last-child { border-bottom: 0; }
.sv-scope--schedule .sv-scope__no { grid-column: 1; }
.sv-scope--schedule .sv-scope__text { grid-column: 2; grid-row: 1; }
.sv-scope--schedule .sv-tick { grid-column: 3; grid-row: 1; }
.sv-scope--schedule .sv-scope__no { border-right: 1px solid var(--rule); padding-right: .75rem; }
/* cycle (Managed Services): rail with a live counter */
.sv-count { display: none; }
@media (min-width: 1000px) {
  .sv-count { display: flex; align-items: baseline; gap: .6rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule-strong); }
  .sv-count__cur { font-size: clamp(3.5rem, 2rem + 4vw, 6rem); line-height: .9; letter-spacing: -.04em; color: var(--green); font-variant-numeric: tabular-nums; }
  .sv-count__of { font-size: var(--fs-lead); color: var(--fg-3); }
}
.sv-scope-wrap--cycle { position: relative; padding-left: 2.5rem; }
.sv-scope__track { position: absolute; left: 10px; top: 1.6rem; bottom: 1.6rem; width: 1px; background: var(--rule-strong); }
.sv-scope__rail { position: absolute; left: -.5px; top: 0; bottom: 0; width: 2px; background: var(--green); transform-origin: top; }
.sv-scope--cycle .sv-scope__item { position: relative; }
.sv-scope--cycle .sv-scope__item { grid-template-columns: 3rem minmax(0, 1fr); border-top: 0; }
.sv-scope--cycle .sv-scope__item:first-child { border-top: 0; }
.sv-scope--cycle .sv-tick { position: absolute; left: -2.5rem; top: 1.2rem; width: 22px; height: 22px; background: var(--bg); border-radius: 50%; }
.sv-scope--cycle .sv-tick__box { d: path("M11 1.5a9.5 9.5 0 1 1 0 19a9.5 9.5 0 1 1 0-19z"); stroke: var(--green); }
.sv-scope--cycle .sv-tick__mark { stroke-width: 2; transform: translate(-1px, -1px); }
/* clauses (Legal & Sector): numbered clauses with a margin double rule */
.sv-scope--clauses { position: relative; padding-left: clamp(1rem, .5rem + 2vw, 2rem); border-left: 5px double var(--ledger-margin); }
.sv-scope--clauses .sv-scope__item { grid-template-columns: 4.25rem minmax(0, 1fr); border-top: 0; }
.sv-scope--clauses .sv-scope__item:first-child { border-top: 0; padding-top: .25rem; }
.sv-scope--clauses .sv-tick { display: none; }
.sv-scope--clauses .sv-scope__no { font-size: var(--fs-sm); color: var(--green); font-weight: 600; }
/* pipeline (Deep-Tech, dark): connected stages */
.sv-what--pipeline .sv-split { grid-template-columns: 1fr; }
.sv-what--pipeline .sv-split__head { position: static; }
.sv-scope--pipeline { position: relative; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.sv-scope--pipeline .sv-scope__item { grid-template-columns: 1fr; gap: .75rem; padding: 1.35rem 1.25rem 1.5rem; border: 1px solid var(--rule-strong); border-radius: var(--r-md); background: var(--surface);
  font-size: var(--fs-base); align-content: start; }
.sv-scope--pipeline .sv-scope__item:first-child { border-top: 1px solid var(--rule-strong); }
.sv-scope--pipeline .sv-scope__no { display: flex; align-items: center; gap: .6rem; color: var(--accent); padding: 0; }
.sv-scope--pipeline .sv-scope__no::before { content: "Stage"; color: var(--fg-3); }
.sv-scope--pipeline .sv-scope__no::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--accent), transparent); }
.sv-scope--pipeline .sv-tick { position: absolute; right: 1.1rem; top: 1.2rem; width: 20px; height: 20px; }
.sv-scope--pipeline .sv-tick__box { stroke: var(--rule-strong); }
.sv-what--pipeline .sv-split__body { position: relative; }

/* Deliverables: documents */
.sv-docs-wrap { position: relative; }
.sv-docs { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(1rem, .6rem + 1.4vw, 1.5rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); perspective: 1400px; }
.sv-doc { min-width: 0; }
.sv-doc__sheet { position: relative; display: flex; flex-direction: column; gap: .9rem; height: 100%; min-height: 230px; padding: 1.25rem 1.25rem 1.4rem; border-radius: 6px;
  background: #FFFFFF; color: #0F1E2A; box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 24px 48px -24px rgba(0,0,0,.45), 0 2px 6px rgba(0,0,0,.12);
  background-image: linear-gradient(90deg, transparent 22px, rgba(180, 35, 24, .16) 22px 23px, transparent 23px), repeating-linear-gradient(180deg, transparent 0 27px, rgba(42, 115, 194, .10) 27px 28px);
  background-position: 0 0, 0 60px; }
.sv-doc__sheet::after { content: ""; position: absolute; top: 0; right: 0; width: 26px; height: 26px; background: linear-gradient(225deg, var(--bg) 0 50%, #DCE5EC 50% 100%); border-bottom-left-radius: 4px; box-shadow: -2px 2px 3px rgba(0,0,0,.08); }
.sv-doc__ref { display: flex; justify-content: space-between; gap: .5rem; font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase; color: #44566A; padding-right: 26px; padding-bottom: .6rem; border-bottom: 1px solid #D8E2EA; }
.sv-doc__ref span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv-doc__title { font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; line-height: 1.35; letter-spacing: -.004em; color: #0F1E2A; }
.sv-doc__lines { margin-top: auto; display: grid; gap: 7px; }
.sv-doc__lines i { display: block; height: 5px; border-radius: 3px; background: #E6EDF2; }
.sv-doc__lines i:nth-child(1) { width: 92%; } .sv-doc__lines i:nth-child(2) { width: 76%; } .sv-doc__lines i:nth-child(3) { width: 48%; }
.sv-docs-wrap--schedule .sv-doc__sheet { border-top: 4px solid var(--green); }
.sv-docs-wrap--clauses .sv-doc__lines i:nth-child(3) { width: 30%; height: 12px; background: none; border-bottom: 1.5px solid #9DB0C0; border-radius: 0; }
.sv-docs-wrap--pipeline .sv-doc__sheet { background-color: var(--ink-2); color: #F2F7F4; background-image: repeating-linear-gradient(180deg, transparent 0 27px, rgba(111,209,165,.08) 27px 28px); }
.sv-docs-wrap--pipeline .sv-doc__title { color: #F2F7F4; font-family: var(--font-mono); font-weight: 500; font-size: .98rem; }
.sv-docs-wrap--pipeline .sv-doc__ref { color: rgba(206,224,215,.8); border-color: rgba(111,209,165,.2); }
.sv-docs-wrap--pipeline .sv-doc__lines i { background: rgba(111,209,165,.14); }
.sv-docs-wrap--pipeline .sv-doc__sheet::after { background: linear-gradient(225deg, var(--bg) 0 50%, #173a2d 50% 100%); }
/* stamp (tax + legal) */
.sv-stamp { position: absolute; z-index: 3; right: clamp(0rem, 2vw, 2rem); top: clamp(-5.5rem, -4rem - 2vw, -4rem); display: grid; justify-items: center; gap: .1rem; padding: .55rem 1rem .6rem;
  border: 2px solid var(--mint); border-radius: 8px; color: var(--mint); background: var(--bg); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .12em; transform: rotate(-6deg);
  box-shadow: inset 0 0 0 3px var(--bg), inset 0 0 0 4px color-mix(in srgb, var(--mint) 55%, transparent); pointer-events: none; }
.sv-stamp span { font-size: .625rem; }
.sv-stamp strong { font-size: .8125rem; font-weight: 700; }
@media (max-width: 899px) { .sv-stamp { position: relative; right: auto; top: auto; justify-self: end; margin: -1rem 0 1.25rem auto; width: max-content; } .sv-docs-wrap { display: grid; } }

/* Who it is for */
.sv-who { list-style: none; margin: 0; padding: 0; }
.sv-who__item { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 1rem; padding: 1.35rem 0; border-bottom: 1px solid var(--rule); font-size: var(--fs-lead); line-height: 1.4; letter-spacing: -.004em; }
.sv-who__item:first-child { border-top: 1px solid var(--rule-strong); }
.sv-who__no { font-size: var(--fs-xs); color: var(--fg-3); padding-top: .45rem; }

/* Process rail (steps / audit methodology) */
.sv-proc-wrap { position: relative; }
.sv-proc { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; z-index: 1; }
.sv-proc__step { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 1.1rem; padding-bottom: 1.75rem; }
.sv-proc__dot { position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--rule-strong);
  font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--fg); }
.sv-proc__dot::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--mint); transform: scale(1); z-index: -1; }
.sv-proc__dot span { color: var(--ink); font-weight: 600; }
.sv-proc__body { display: grid; gap: .3rem; padding-top: .35rem; }
.sv-proc__no { font-size: var(--fs-2xs); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--fg-3); }
.sv-proc__h { font-size: var(--fs-h5); font-family: var(--font-display); line-height: 1.3; }
.sv-proc__body p:last-child { color: var(--fg-2); font-size: var(--fs-sm); }
.sv-proc__track { position: absolute; left: 22px; top: 22px; bottom: 3rem; width: 1px; background: var(--rule-strong); }
.sv-proc__fill { position: absolute; inset: 0; background: var(--mint); transform-origin: top; }
@media (min-width: 1000px) {
  .sv-proc { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 1.5rem; }
  .sv-proc__step { grid-template-columns: 1fr; gap: 1.25rem; padding-bottom: 0; }
  .sv-proc__track { left: 22px; right: 0; top: 22px; bottom: auto; width: auto; height: 1px; }
  .sv-proc__fill { transform-origin: left; }
}

/* Related compliance */
.sv-rc { display: grid; gap: clamp(2rem, 1rem + 3vw, 4rem); }
@media (min-width: 900px) { .sv-rc { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); } }
.sv-rc__h { font-size: var(--fs-2xs); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--fg-2); font-weight: 600; padding-bottom: .75rem; border-bottom: 5px double var(--fg); margin-bottom: 0; }
.sv-ledger { list-style: none; margin: 0; padding: 0; }
.sv-ledger__link { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 56px; padding: .85rem 0; border-bottom: 1px solid var(--rule); color: var(--fg); text-decoration: none; font-weight: 500; }
.sv-ledger__link .icon { color: var(--green); transition: transform var(--dur-3) var(--ease-out); flex: none; }
.sv-ledger__link:hover { color: var(--green); }
.sv-ledger__link:hover .icon { transform: translateX(4px); }
.sv-feed { list-style: none; margin: 0; padding: 0; }
.sv-feed__item { display: flex; flex-direction: column; gap: .25rem; padding: .95rem 0; border-bottom: 1px solid var(--rule); }
.sv-feed__item time { order: -1; font-size: var(--fs-2xs); letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); }
.sv-feed__item a { color: var(--fg); text-decoration: none; font-weight: 500; line-height: 1.4; }
.sv-feed__item a:hover { color: var(--link); text-decoration: underline; text-underline-offset: .2em; }
.sv-rc__more { padding-top: 1rem; }
.sv-rc__more .link { color: var(--link); font-weight: 600; font-size: var(--fs-sm); }
.sv-rc__forms { margin-top: clamp(2rem, 1rem + 3vw, 3.5rem); }
.sv-rc__forms .sv-rc__h { border-bottom: 0; padding-bottom: .9rem; }

/* More in this desk */
.sv-more-sec .section__index { margin-bottom: 1.75rem; }
.sv-more { display: grid; gap: clamp(2rem, 1rem + 3vw, 4rem); margin-bottom: clamp(3rem, 2rem + 4vw, 5.5rem); }
@media (min-width: 1000px) { .sv-more { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
.sv-more__h { font-size: var(--fs-2xs); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--fg-2); font-weight: 600; padding-bottom: .75rem; border-bottom: 5px double var(--fg); }
.sv-sib { list-style: none; margin: 0; padding: 0; }
.sv-sib__link { position: relative; display: flex; gap: .9rem; align-items: baseline; min-height: 52px; padding: .9rem 0 .9rem .9rem; border-bottom: 1px solid var(--rule); color: var(--fg); text-decoration: none; }
.sv-sib__link .mono { font-size: var(--fs-2xs); color: var(--fg-3); }
.sv-sib__link:hover { color: var(--green); }
.sv-sib__link[aria-current="page"] { font-weight: 600; background: var(--surface); }
.sv-sib__link[aria-current="page"]::before { content: ""; position: absolute; left: 0; top: .5rem; bottom: .5rem; width: 2px; background: var(--green); }
.sv-sib__link[aria-current="page"]::after { content: "This page"; margin-left: auto; padding-right: .75rem; font-family: var(--font-mono); font-size: var(--fs-2xs); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--green); }
.sv-more__rel { display: grid; gap: 2rem; align-content: start; }
.sv-rels { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .sv-rels { grid-template-columns: 1fr 1fr; } }
.sv-rels--wide { margin-top: 0; }
@media (min-width: 1000px) { .sv-rels--wide { grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); } }
.sv-rel { height: 100%; gap: .5rem; text-decoration: none; padding: 1.25rem 1.35rem 1.4rem; }
.sv-rel__name { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h5); line-height: 1.25; color: var(--fg); }
.sv-rel__short { color: var(--fg-2); }
.sv-rel:hover .sv-rel__name { color: var(--accent); }
.sv-ind-chips { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.sv-ind-chip { display: inline-flex; align-items: center; min-height: 40px; padding: .35rem 1rem; border: 1px solid var(--rule-strong); border-radius: var(--r-pill); color: var(--fg); text-decoration: none; font-size: var(--fs-sm); font-weight: 500; transition: border-color var(--dur-2), color var(--dur-2); }
.sv-ind-chip:hover { border-color: var(--green); color: var(--green); }
.sv-hand p { padding-top: 1rem; color: var(--fg-2); max-width: 60ch; }
.sv-hand a { color: var(--link); text-decoration: underline; text-underline-offset: .2em; }
.sv-more--ind { margin-bottom: 0; align-items: start; }
.sv-more--ind .sv-more__rel { gap: 0; }

/* FAQs */
.sv-faq-sec .accordion__summary { font-size: var(--fs-h5); }

/* ---------- 5. Industries hub ------------------------------------------ */
.in-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(1rem, .6rem + 1.4vw, 1.75rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); }
.in-card-li { min-width: 0; }
.in-card { height: 100%; gap: .9rem; }
.in-card__top { display: flex; justify-content: space-between; gap: 1rem; font-size: var(--fs-2xs); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); padding-bottom: .75rem; border-bottom: 1px solid var(--rule); }
.in-card__top span:first-child { color: var(--green); font-weight: 600; }
.in-card__h { font-size: var(--fs-h4); line-height: 1.2; }
.in-card__h a { color: var(--fg); text-decoration: none; }
.in-card__h a::after { content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; }
.in-card__short { color: var(--fg-2); font-size: var(--fs-sm); }
.in-card__lbl { font-size: var(--fs-2xs); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--fg-3); margin-top: .25rem; }
.in-card__obs { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.in-card__obs li { display: flex; gap: .55rem; font-size: var(--fs-sm); line-height: 1.4; }
.in-card__obs .sv-tick { width: 18px; height: 18px; margin-top: .05rem; }
.in-card__more { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--rule); position: relative; z-index: 1; }
.in-card__more .link { color: var(--link); font-weight: 600; font-size: var(--fs-sm); }
.in-card:hover .in-card__h a { color: var(--green); }

.in-tbl { min-width: 760px; }
.in-tbl td:not(:first-child), .in-tbl th:not(:first-child) { text-align: center; }
.in-tbl tbody td:first-child a { font-weight: 600; white-space: nowrap; color: var(--fg); text-decoration: none; }
.in-tbl tbody td:first-child a:hover { color: var(--link); text-decoration: underline; }
.in-tbl thead th:first-child { vertical-align: bottom; }
.in-tbl thead th a { color: var(--fg-2); text-decoration: none; }
.in-tbl thead th a:hover { color: var(--link); text-decoration: underline; }
.in-yes { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--success-bg); color: var(--success); }
.in-no { color: var(--fg-3); }
@media (min-width: 900px) {
  .in-tbl thead th:not(:first-child) { vertical-align: bottom; height: 190px; padding: .9rem .4rem; white-space: nowrap; }
  .in-tbl thead th:not(:first-child) a { writing-mode: vertical-rl; transform: rotate(180deg); display: inline-block; line-height: 1.2; letter-spacing: .06em; }
}
.in-tbl tbody tr { transition: background-color var(--dur-2); }
.in-tbl tbody tr:hover { background: var(--surface-2); }

/* ---------- 6. Industry page: obligations map --------------------------- */
.in-map { display: grid; gap: 2rem; }
@media (min-width: 1000px) { .in-map { grid-template-columns: 300px minmax(0, 1fr); gap: clamp(3rem, 5vw, 6rem); align-items: start; } }
.in-map__index { position: relative; }
@media (min-width: 1000px) { .in-map__index { position: sticky; top: calc(var(--header-h) + 2rem); } }
.in-map__lbl { font-size: var(--fs-2xs); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--fg-3); padding-bottom: .75rem; border-bottom: 5px double var(--fg); }
.in-map__index ol { list-style: none; margin: 0; padding: 0; position: relative; }
.in-map__link { position: relative; display: flex; gap: .8rem; align-items: baseline; min-height: 48px; padding: .75rem 0 .75rem .9rem; border-bottom: 1px solid var(--rule); color: var(--fg-2); text-decoration: none; font-size: var(--fs-sm); line-height: 1.4; }
.in-map__link .mono { font-size: var(--fs-2xs); color: var(--fg-3); }
.in-map__link::before { content: ""; position: absolute; left: 0; top: .55rem; bottom: .55rem; width: 2px; background: var(--green); transform: scaleY(0); transform-origin: top; transition: transform var(--dur-3) var(--ease-out); }
.in-map__link:hover { color: var(--fg); }
.in-map__link.is-active { color: var(--fg); font-weight: 600; }
.in-map__link.is-active::before { transform: scaleY(1); }
.in-map__link.is-active .mono { color: var(--green); }
.in-map__fill { display: none; }
@media (max-width: 999px) { .in-map__index { display: none; } }
.in-map__list { display: grid; }
.in-ob { position: relative; display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: 1rem; padding: 1.75rem 0 2rem; scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.in-ob:first-child { padding-top: .25rem; }
.in-ob:focus { outline: none; }
.in-ob__no { font-family: var(--font-mono); font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); line-height: 1; letter-spacing: -.03em; color: var(--fg-3); }
.in-ob__body { display: grid; gap: .7rem; }
.in-ob__h { font-size: var(--fs-h4); line-height: 1.22; }
.in-ob__h .badge { vertical-align: middle; margin-left: .35rem; font-family: var(--font-mono); }
.in-ob__body > p { color: var(--fg-2); max-width: 66ch; }
.in-ob__svc { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .9rem; padding-top: .35rem; }
.in-ob__svc .mono { font-size: var(--fs-2xs); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--fg-3); }
.in-ob__svc .link { color: var(--link); font-weight: 600; }
.in-ob__rule { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--rule-strong); transform-origin: left center; }
@media (min-width: 760px) { .in-ob { grid-template-columns: 5rem minmax(0, 1fr); } }

/* ---------- 7. Small screens ------------------------------------------- */
@media (max-width: 599px) {
  .sv-scope__item { grid-template-columns: 2.25rem 22px minmax(0, 1fr); gap: .75rem; font-size: var(--fs-base); }
  .sv-scope .sv-tick { width: 22px; height: 22px; }
  .sv-scope--schedule .sv-scope__item { grid-template-columns: 3.75rem minmax(0, 1fr) 22px; padding-inline: .8rem; }
  .sv-scope--clauses .sv-scope__item { grid-template-columns: 3.5rem minmax(0, 1fr); }
  .sv-who__item { font-size: var(--fs-md); grid-template-columns: 2.25rem minmax(0, 1fr); }
  .sv-row { grid-template-columns: 2.75rem minmax(0, 1fr); }
  .sv-row--compact { grid-template-columns: 2.75rem minmax(0, 1fr) auto; }
  .sv-sib__link[aria-current="page"]::after { display: none; }
  .sv-docket__row { font-size: var(--fs-xs); }
}
html.hc .sv-doc__sheet, html.hc .sv-docket, html.hc .in-card { background-image: none; }
@media print { .sv-rail, .in-map__index, .sv-stamp { display: none; } }

/* hover: included ticks draw (motion on only) */
@keyframes sv-tick-draw { from { stroke-dashoffset: 18; } to { stroke-dashoffset: 0; } }
html.motion-on .sv-row__list .sv-tick__mark, html.motion-on .in-card__obs .sv-tick__mark { stroke-dasharray: 18; }
html.motion-on .sv-row:hover .sv-row__list .sv-tick__mark, html.motion-on .sv-row:focus-within .sv-row__list .sv-tick__mark,
html.motion-on .in-card:hover .in-card__obs .sv-tick__mark { animation: sv-tick-draw 520ms var(--ease-out) both; }
html.motion-on .sv-row__list li:nth-child(2) .sv-tick__mark, html.motion-on .in-card__obs li:nth-child(2) .sv-tick__mark { animation-delay: 70ms; }
html.motion-on .sv-row__list li:nth-child(3) .sv-tick__mark, html.motion-on .in-card__obs li:nth-child(3) .sv-tick__mark { animation-delay: 140ms; }
html.motion-on .sv-row__list li:nth-child(4) .sv-tick__mark, html.motion-on .in-card__obs li:nth-child(4) .sv-tick__mark { animation-delay: 210ms; }
html.motion-on .in-card__obs li:nth-child(5) .sv-tick__mark { animation-delay: 280ms; }
html.motion-on .in-card__obs li:nth-child(6) .sv-tick__mark { animation-delay: 350ms; }
