/* Service Rankings (service-rankings.js, Kate, 18 Nov 2026), from the local mockup docs/mockups/service-rankings.html. Tokens come from the page, so light and dark follow the site. */
#serviceRankingsContent .sr-sp{flex:1}
.sr-sec{margin-top:30px;scroll-margin-top:calc(var(--sx-top,104px) + 10px)}
.sr-sec>h3,.sr-how>h3{font-family:'Playfair Display',Georgia,serif;font-size:23px;font-weight:500;margin:0 0 4px;line-height:1.2}
.sr-learn{margin:4px 0 14px;max-width:78ch}
.sr-learn p{margin:4px 0;font-size:14.5px;color:var(--muted)}
.sr-learn p b{color:var(--text)}
.sr-learn .watch{border-left:3px solid var(--accent);padding:3px 0 3px 12px;color:var(--text)}
.sr-ans{margin-top:18px;padding:16px 20px;background:var(--surface,var(--bg));border:1px solid var(--border);border-radius:14px}
.sr-ans-k{font-size:11.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted2)}
.sr-ans-t{font-family:'Playfair Display',Georgia,serif;font-size:24px;line-height:1.3;margin-top:4px}
.sr-ans-s{font-size:14px;color:var(--muted);margin-top:6px}
.sr-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.sr-tile{padding:14px 16px;background:var(--surface,var(--bg));border:1px solid var(--border);border-radius:14px}
.sr-tk{font-size:11.5px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted2)}
.sr-tv{font-family:'Playfair Display',Georgia,serif;font-size:28px;line-height:1.15;margin:4px 0 2px;font-variant-numeric:tabular-nums}
.sr-tn{font-size:13px;color:var(--muted)}
.sr-hint{font-size:12.5px;color:var(--muted2);margin:8px 0 0;flex:1 1 280px}
/* the family list: one row per family, a bar for its revenue, the money and share, and the change on the period before */
.sr-famlist{display:flex;flex-direction:column}
.sr-fr{display:grid;grid-template-columns:170px minmax(0,1fr) 210px 72px;gap:14px;align-items:center;width:100%;border:0;border-bottom:1px solid var(--border2);background:none;padding:6px 10px;min-height:44px;cursor:pointer;text-align:left;color:inherit;border-radius:16px;font:inherit}
@media(hover:hover){.sr-fr:hover{background:var(--surface2,var(--border2))}}
.sr-fr.on{background:var(--surface2,var(--border2))}
.sr-fn{font-weight:600}
.sr-fbw{height:12px;background:var(--border2);border-radius:999px;overflow:hidden}
.sr-fbw i{display:block;height:100%;background:var(--text);border-radius:999px;opacity:.85}
.sr-fv{text-align:right;font-variant-numeric:tabular-nums}
.sr-fv em{font-style:normal;color:var(--muted2);margin-left:8px}
.sr-fch{text-align:right;font-variant-numeric:tabular-nums;font-weight:600}
.sr-fch.up{color:var(--good)}.sr-fch.dn{color:var(--bad)}.sr-fch.nw{color:var(--info,var(--muted))}
/* the toolbar of the top services: pinned under the masthead and the chips while that section is on screen */
.sr-bar{position:sticky;top:var(--sx-top,104px);z-index:24;background:var(--bg);display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;padding:6px 0;margin-bottom:10px;box-shadow:0 -12px 0 var(--bg)}
.sr-bar-plain{position:static;box-shadow:none}
.sr-phone{display:none}
.sr-card{background:var(--surface,var(--bg));border:1px solid var(--border);border-radius:14px}
.sr-stf{display:flex;align-items:center;gap:10px;white-space:nowrap}
.sr-rk{display:inline-grid;place-items:center;min-width:26px;height:26px;border-radius:999px;background:var(--border2);color:var(--muted);font-size:12.5px;font-weight:600;font-variant-numeric:tabular-nums;flex:0 0 auto}
.sr-sv{display:inline-flex;flex-direction:column;line-height:1.25}
.sr-sv em{font-style:normal;font-size:12px;color:var(--muted2)}
.sr-pager{display:flex;align-items:center;gap:10px;margin-top:10px;font-size:13.5px;color:var(--muted);flex-wrap:wrap}
.sr-pager .cm-pill:disabled{opacity:.4;cursor:default}
.sr-pgn{min-width:5.5em;text-align:center;color:var(--text);font-variant-numeric:tabular-nums}
.sr-how{margin-top:34px;text-align:center}
.sr-pick{display:inline-flex;max-width:100%;overflow-x:auto;margin:8px auto 14px}
.sr-howcard{max-width:640px;margin:0 auto;padding:14px 18px;background:var(--surface,var(--bg));border:1px solid var(--border);border-radius:14px}
.sr-hc-t{font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted2)}
.sr-hc-m{margin:4px 0 6px}
.sr-hc-big{font-family:'Playfair Display',Georgia,serif;font-size:30px;line-height:1.15;margin:4px 0;font-variant-numeric:tabular-nums}
.sr-hc-cv{font-size:13px;color:var(--muted);white-space:normal;overflow-wrap:anywhere}
.sr-foot{max-width:640px;margin:26px auto 0}
.sr-fd{margin:6px 0;border-top:1px solid var(--border2);padding:2px 0}
.sr-fd summary{cursor:pointer;padding:10px 0;min-height:44px;display:flex;align-items:center;font-weight:600;list-style:none}
.sr-fd summary::-webkit-details-marker{display:none}
.sr-fd summary::before{content:"+";display:inline-grid;place-items:center;width:22px;height:22px;margin-right:10px;border-radius:999px;background:var(--border2);color:var(--muted)}
.sr-fd[open] summary::before{content:"\2212"}
.sr-fd ul{margin:0 0 10px;padding-left:34px;color:var(--muted);font-size:14px}
.sr-fd li{margin:4px 0}
@media(max-width:760px){
  .sr-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
  .sr-tv{font-size:23px}
  .sr-fr{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"n v" "b c";gap:6px 10px;padding:8px 6px}
  .sr-fn{grid-area:n}.sr-fv{grid-area:v}.sr-fbw{grid-area:b}.sr-fch{grid-area:c}
  .sr-bar:not(.sr-bar-plain){flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
  .sr-bar::-webkit-scrollbar{display:none}
  .sr-phone{display:inline-flex}
  .sr-stf{white-space:normal}
  .sr-pager{flex-wrap:wrap}.sr-pager #srPgTxt{flex:1 1 100%}
  .sr-ans-t{font-size:20px}
  .sr-fd summary{font-size:15px}
}
