/* NeoDigital — services.css: the "Everything we do" page only.
   Loaded after site.css, which owns the tokens, the type and the shared header and footer.
   Every class here starts with sv- so nothing leaks into other pages.
   The page markup is generated by tools/build_services.py from tools/services_data.json. */

.sv-vh{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* ---------- head: title on the left, the tag key on the right ---------- */
.sv-head{padding-block:1.25rem 0}
.sv-head__grid{display:grid;grid-template-columns:minmax(0,1fr);gap:3rem}
.sv-head .lede{margin-top:1.5rem;max-width:36ch}
.sv-head .lede a{padding-block:.6rem;text-decoration:underline;text-decoration-color:var(--warm)}

.sv-jump{margin-top:1.5rem}
.sv-jump{scroll-margin-top:1rem}
.sv-jump ul{display:flex;flex-wrap:wrap;gap:0 1.5rem}
.sv-jump a{display:inline-flex;align-items:center;gap:.4rem;min-height:2.75rem;font-weight:600;text-decoration:none;white-space:nowrap}
.sv-jump a span{color:var(--muted);font-weight:400}
@media (hover:hover){.sv-jump a:hover{text-decoration:underline;text-decoration-color:var(--warm);text-decoration-thickness:2px}}

.sv-key{position:relative;align-self:start;padding:1.5rem 1.25rem .75rem;background:var(--surface);border:1px solid var(--line-2);border-radius:calc(var(--radius) + .5rem);box-shadow:var(--shadow)}
.sv-key h2{max-width:12ch;font:var(--h3);letter-spacing:var(--h3-track)}
.sv-key__lede{margin-top:.6rem;max-width:38ch;font-size:1rem;line-height:1.5;color:var(--muted)}
.sv-key__rows{margin-top:1.1rem}
.sv-key__rows li{display:grid;grid-template-columns:5.75rem minmax(0,1fr);column-gap:1rem;align-items:start;padding-block:.9rem;border-top:1px solid var(--line)}
.sv-key__t{padding-top:.25rem}
.sv-key__p{color:var(--lede);line-height:1.4}
.sv-key__p strong{margin-right:.2rem;font:500 1.75rem/1.05 var(--display);letter-spacing:-.015em;color:var(--text)}
.sv-key__p small{display:block;margin-top:.15rem;font-size:1rem;color:var(--muted)}
.sv-key__foot{padding-top:.9rem;border-top:1px solid var(--line);font-size:1rem;line-height:1.5;color:var(--muted)}
.sv-key__foot+.sv-key__foot{padding-top:.6rem;border-top:0}
.sv-key .more{margin-top:.25rem}
.sv-offer{position:absolute;top:-1.15rem;right:.9rem;max-width:none;padding:.55rem .85rem .6rem;background:var(--warm);color:#1a1307;border-radius:.85rem;box-shadow:0 1.25rem 1.75rem -1rem rgba(0,0,0,.85);font-size:.8125rem;line-height:1.3;transform:rotate(3deg)}
.sv-offer b{display:block;font:600 1.3125rem/1.15 var(--display)}

/* ---------- tags: one accent, told apart by form ---------- */
.sv-tag{display:inline-block;padding:.2rem .55rem;border:1px solid transparent;border-radius:.5rem;font:600 .875rem/1.3 var(--body);color:var(--text);text-align:left}
.sv-tag--s{border-color:rgba(255,241,224,.42)}
.sv-tag--g{background:#37332c;border-color:#37332c}
.sv-tag--f{background:var(--accent);border-color:var(--accent);color:#fff}
.sv-tag--a{border-style:dashed;border-color:rgba(255,241,224,.5);color:var(--lede)}
.sv-tag--e{background:var(--text);border-color:var(--text);color:#111}
/* "New" is a quiet word beside the tag, not another box */
.sv-new{padding-block:.2rem;border-block:1px solid transparent;font:600 .875rem/1.3 var(--body);color:var(--warm)}
.sv-tag--inc{border-color:rgba(102,215,156,.55);color:var(--ok)}
.sv-tag--slow,.sv-tag--no{padding-inline:0;border-inline:0;border-color:transparent;font-weight:500;text-wrap:balance}
.sv-tag--slow{flex-basis:100%}
.sv-tag--slow{color:var(--warm)}
.sv-tag--no{color:var(--muted)}

/* ---------- search and filters (only shown when the script is running) ---------- */
.sv-sec{padding-block:3rem 3.5rem}
.sv-bar,.sv-row2,.sv-more{display:none}
.sv-js .sv-bar{display:grid}
.sv-js .sv-row2{display:flex}
.sv-bar{position:sticky;top:0;z-index:4;grid-template-columns:minmax(0,1fr) 8.5rem;align-items:center;gap:.4rem .5rem;padding-block:.5rem;background:var(--bg);border-bottom:1px solid var(--line)}
.sv-search{position:relative}
.sv-search svg{position:absolute;left:.85rem;top:50%;translate:0 -50%;color:var(--muted);pointer-events:none}
.sv-search input,.sv-shop select{display:block;width:100%;min-height:3.25rem;margin:0;background-color:var(--field);border:1px solid var(--line-2);border-radius:var(--radius);color:var(--text);font:inherit;-webkit-appearance:none;appearance:none}
.sv-search input{padding:0 .5rem 0 2.6rem;box-shadow:inset 0 2px 6px rgba(0,0,0,.45);caret-color:var(--warm)}
.sv-search input::placeholder{color:var(--muted);opacity:1}
.sv-search input::-webkit-search-cancel-button{-webkit-appearance:none;width:1.1rem;height:1.1rem;margin-left:.5rem;background:linear-gradient(var(--muted),var(--muted)) center/100% 2px no-repeat,linear-gradient(var(--muted),var(--muted)) center/2px 100% no-repeat;transform:rotate(45deg);cursor:pointer}
.sv-shop{display:block;min-width:0;font-weight:600;font-size:1rem;color:var(--muted)}
.sv-shop span{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.sv-shop select{padding:.7rem 2.1rem .7rem .8rem;font-weight:400;text-overflow:ellipsis;background-image:linear-gradient(45deg,transparent 50%,var(--text) 50%),linear-gradient(135deg,var(--text) 50%,transparent 50%);background-position:calc(100% - 1.2rem) 50%,calc(100% - .85rem) 50%;background-size:.35rem .35rem;background-repeat:no-repeat}
.sv-search input:focus-visible,.sv-shop select:focus-visible{outline:0;border-color:var(--focus);box-shadow:0 0 0 1px var(--focus)}
.sv-count{grid-column:1 / -1;line-height:1.3;color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}

.sv-row2{flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.25rem 1.5rem;padding-top:.5rem}
.sv-pk{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}
.sv-pk__l{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.sv-chip{min-width:2.75rem;min-height:2.75rem;padding:0 .75rem;border:1px solid var(--line-2);border-radius:var(--radius);background:transparent;color:var(--text);font:600 1rem/1 var(--body);cursor:pointer;transition:background-color .2s ease-out,border-color .2s ease-out,color .2s ease-out}
.sv-chip[aria-pressed="true"]{background:var(--text);border-color:var(--text);color:#111}
.sv-row2__end{display:flex;flex-wrap:wrap;gap:0 1.5rem}
.sv-text{min-height:2.75rem;padding:0;border:0;background:none;color:var(--text);font:600 1rem/1.2 var(--body);text-decoration:underline;text-decoration-color:var(--warm);text-decoration-thickness:2px;text-underline-offset:.3em;cursor:pointer}
.sv-chip:active,.sv-text:active,.sv-more:active{opacity:.7}
@media (hover:hover){.sv-chip:not([aria-pressed="true"]):hover{background:var(--surface-2)}}
.sv-sec .dent{margin:1.25rem 0 0}

/* ---------- the list ---------- */
.sv-list{margin-top:1.5rem}
.sv-grp{display:grid;grid-template-columns:minmax(0,1fr);gap:1.25rem;padding-block:2.5rem;border-top:1px solid var(--line-2);scroll-margin-top:6rem}
.sv-grp:first-child{padding-top:1.5rem;border-top:0}
.sv-grp__side{display:grid;grid-template-columns:minmax(0,1fr);gap:1rem;align-content:start}
.sv-grp__head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:.25rem 1rem}
.sv-grp__head h2{max-width:none;font:500 2rem/1.1 var(--display);letter-spacing:-.015em}
.sv-grp__n{color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums}
.sv-grp__n b{font-weight:600;color:var(--text)}
.sv-grp__note{max-width:52ch;font-size:1rem;line-height:1.55;color:var(--muted)}

/* the small picture for each group, drawn in the homepage's illustration style */
.sv-plate{margin:0}
.sv-plate__art{overflow:hidden;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}
.sv-plate svg{width:100%;height:auto}
.sv-plate figcaption{margin-top:.5rem;font-size:.875rem;line-height:1.4;color:var(--muted)}
.sv-plate text{font-family:var(--body);fill:var(--text)}
.sv-plate .b0{fill:#070707;stroke:var(--line-2)}
.sv-plate .s1{fill:var(--surface)}
.sv-plate .s2{fill:var(--surface-2)}
.sv-plate .s3{fill:#3a3631}
.sv-plate .dim{fill:#4a4741}
.sv-plate .ln{stroke:var(--line-2)}
.sv-plate .t{fill:var(--text)}
.sv-plate .w{fill:var(--warm)}
.sv-plate .a{fill:var(--accent)}
.sv-plate .paper{fill:#f3ecdf}
.sv-plate .ink{fill:#1a1307}
.sv-plate .ink-o{fill:none;stroke:#1a1307;stroke-width:1.5}
.sv-plate .tx{font-weight:600}
.sv-plate .tm,.sv-plate .t-m{fill:var(--muted)}
.sv-plate .tb{fill:var(--lede)}
.sv-plate .tw{fill:#fff;font-weight:600}
.sv-plate .td{font-family:var(--display)}
.sv-plate .tl{font-size:9.5px;font-weight:700;letter-spacing:.05em}
.sv-plate .t-ok{fill:var(--ok)}
.sv-plate .t-bad{fill:var(--bad)}
.sv-plate .t-ink{fill:#1a1307}
.sv-plate .t-s{stroke:var(--text)}
.sv-plate .m-s{stroke:var(--muted)}
.sv-plate .w-s{stroke:var(--warm)}
.sv-plate .ok-s{stroke:var(--ok)}
.sv-plate .ink-s{stroke:#1a1307}
.sv-plate .paper-s{stroke:#f3ecdf}
.sv-plate .hr{stroke:var(--line)}
.sv-plate .hr-ink{stroke:rgba(26,19,7,.2)}
.sv-plate .tick{stroke:#6a645c;stroke-width:1.5}

.sv-items li{display:grid;grid-template-columns:minmax(0,1fr);gap:.55rem;padding-block:1rem;border-top:1px solid var(--line);transition:background-color .2s ease-out}
/* A line is the thing itself, in the bright text colour. Where a line has a name, the name is the thing
   and the sentence under it is the explanation, in the quieter colour: the same grammar as the homepage rows. */
.sv-line{max-width:60ch;color:var(--text);text-wrap:pretty}
.sv-name{display:block;margin-bottom:.15rem;font-weight:600}
.sv-desc{color:var(--muted)}
.sv-tags{display:flex;flex-wrap:wrap;align-content:start;gap:.4rem;max-width:none}
@media (hover:hover){.sv-items li:hover{background:linear-gradient(90deg,transparent,rgba(255,241,224,.035),transparent)}}
/* the short list: a group shows its best few lines until it is opened, searched or filtered */
.sv-js .sv-list:not(.is-filtering) .sv-grp:not(.is-open) .sv-items>li:not([data-top]){display:none}
.sv-js .sv-more{display:flex}
.sv-list.is-filtering .sv-grp__foot{display:none}
/* foot of a group: open or close it, and (once it is long) a way back to the group links */
.sv-grp__foot{display:flex;align-items:center;justify-content:space-between;gap:1rem;max-width:none;border-top:1px solid var(--line)}
.sv-up{display:inline-flex;align-items:center;min-height:3.25rem;margin-left:auto;color:var(--muted);text-decoration:underline;text-decoration-color:var(--line-2);text-underline-offset:.3em;white-space:nowrap}
.sv-js .sv-list:not(.is-filtering) .sv-grp:not(.is-open) .sv-up{display:none}
.sv-js .sv-list:not(.is-filtering) .sv-grp:not(.is-open) .sv-grp__foot:not(:has(.sv-more)){display:none}
.sv-more{flex:1;align-items:center;gap:.65rem;min-height:3.25rem;padding:0;border:0;background:none;color:var(--text);font:600 1.0625rem/1.2 var(--body);text-align:left;cursor:pointer}
.sv-more::after{content:"";width:.45rem;height:.45rem;border:solid var(--warm);border-width:0 2px 2px 0;transform:translateY(-2px) rotate(45deg);transition:transform .2s ease-out}
.sv-more[aria-expanded="true"]::after{transform:translateY(2px) rotate(-135deg)}
@media (hover:hover){.sv-more:hover{text-decoration:underline;text-decoration-color:var(--warm);text-decoration-thickness:2px;text-underline-offset:.3em}}
.sv-none{max-width:60ch;padding-block:2.5rem 1rem;border-top:1px solid var(--line-2);color:var(--lede)}
.sv-none a{text-decoration:underline;text-decoration-color:var(--warm)}
::highlight(sv-hit){background-color:var(--warm);color:#1a1307}

/* ---------- closing section (this page has its own ending) ---------- */
.close .btn-row{margin-top:2.5rem}
.close .btn-row .btn{margin-top:0}

/* ---------- house rules ---------- */
.sv-rules{padding-block:0 4.5rem}
.sv-rules__grid{display:grid;grid-template-columns:minmax(0,1fr);gap:1.5rem;padding-top:3rem;border-top:1px solid var(--line-2)}

/* ---------- wider screens ---------- */
@media (min-width:30rem){
  .sv-key{padding:1.75rem 1.5rem .9rem}
  .sv-key__rows li{grid-template-columns:6.25rem minmax(0,1fr)}
  .sv-offer{right:1.5rem}
}
@media (min-width:48rem){
  .sv-head{padding-block:3rem 0}
  .sv-key h2{max-width:16ch}
  .sv-sec{padding-block:4rem 4.5rem}
  .sv-bar{grid-template-columns:minmax(0,1fr) minmax(0,15rem) auto;gap:.75rem 1.25rem;padding-block:.75rem}
  .sv-search svg{left:1rem}
  .sv-search input{padding:0 1rem 0 2.9rem}
  .sv-shop select{padding:.7rem 2.5rem .7rem .9rem}
  .sv-count{grid-column:auto;min-width:9.5rem;text-align:right}
  .sv-tag--no{flex-basis:100%}
  .sv-pk__l{position:static;width:auto;height:auto;margin:0 .25rem 0 0;overflow:visible;clip-path:none;font-weight:600;color:var(--muted)}
  .sv-grp{padding-block:3.5rem;scroll-margin-top:4.75rem}
  .sv-grp:first-child{padding-top:2rem}
  .sv-grp__side{grid-template-columns:20rem minmax(0,1fr);column-gap:2rem}
  .sv-plate{grid-row:1 / span 2}
  .sv-grp__head,.sv-grp__note{grid-column:2}
  .sv-items li{grid-template-columns:minmax(0,1fr) minmax(0,15rem);column-gap:2rem;padding-block:1.1rem}
  .sv-tags{justify-content:flex-end}
  .sv-tag--slow,.sv-tag--no{text-align:right}
  .sv-rules{padding-block:0 6rem}
  .sv-rules__grid{grid-template-columns:minmax(0,5fr) minmax(0,7fr);column-gap:3rem;padding-top:4rem}
}
@media (min-width:62rem){
  .sv-head{padding-block:4.5rem 0}
  .sv-head__grid{grid-template-columns:minmax(0,11fr) minmax(0,10fr);column-gap:4rem;align-items:center}
  .sv-key{margin-top:.75rem}
  .sv-bar{grid-template-columns:minmax(0,1fr) auto auto}
  .sv-shop{display:flex;align-items:center;gap:.75rem;white-space:nowrap}
  .sv-shop span{position:static;width:auto;height:auto;margin:0;overflow:visible;clip-path:none}
  .sv-shop select{width:17rem}
  .sv-grp{grid-template-columns:20rem minmax(0,1fr);column-gap:3.5rem}
  .sv-grp__side{position:sticky;top:6rem;align-self:start;grid-template-columns:minmax(0,1fr)}
  .sv-plate{grid-row:auto;order:-1}
  .sv-grp__head,.sv-grp__note{grid-column:auto}
  .sv-grp__head{display:grid;gap:.3rem}
  .sv-rules__grid{grid-template-columns:20rem minmax(0,1fr);column-gap:3.5rem}
}
@media (min-width:62rem) and (max-height:34rem){.sv-grp__side{position:static}}
@media print{
  .sv-bar,.sv-row2,.sv-grp__foot,.sv-jump,.sv-offer,.sv-plate{display:none!important}
  .sv-js .sv-list .sv-items>li{display:grid!important}
  .sv-key{box-shadow:none}
}
