/* v4 specialist-services hub: text-only scope labels, room before the page link, larger lighter headings */
.spf-page--sp .spf-service .spf-labels{display:flex;flex-wrap:wrap;gap:0;margin:20px 0 0;padding:0;list-style:none;font-size:14px;letter-spacing:.06em;color:#aeb7c2}
.spf-page--sp .spf-service .spf-labels li{display:inline;margin:0}
.spf-page--sp .spf-service .spf-labels li+li:before{content:"·";margin:0 12px;color:var(--gold)}
.spf-page--sp .spf-service__mark .number{color:var(--gold)}
.spf-page--sp .section-head h2,.spf-page--sp .sp-intake h2{font-size:clamp(34px,3.4vw,50px);line-height:1.3}
.spf-page--sp .spf-service .text-link{display:inline-flex;margin-top:24px}

/* 10/12: the three specialist areas open in a dialog instead of their own pages */
.spf-service[data-dialog-card]{cursor:pointer}
.spf-service button.text-link{appearance:none;background:none;border:0;padding:0;font:inherit;color:inherit;cursor:pointer}
.sp-dialog{width:min(960px,calc(100% - 32px));max-height:min(88vh,900px);margin:auto;padding:0;border:1px solid var(--v4-line,rgba(246,245,239,.08));border-radius:12px;background:var(--v4-card,#152431);color:#f5f4ef;overflow:auto;overscroll-behavior:contain;box-shadow:0 30px 80px #0009}
.sp-dialog::backdrop{background:rgba(6,12,18,.72);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.sp-dialog[open]{animation:sp-dialog-in .5s cubic-bezier(.2,.7,.2,1)}
.sp-dialog[open]::backdrop{animation:sp-fade .5s ease}
@keyframes sp-dialog-in{from{opacity:0;translate:0 14px}to{opacity:1;translate:0 0}}
@keyframes sp-fade{from{opacity:0}to{opacity:1}}
.sp-dialog__image{margin:0;aspect-ratio:16/5;overflow:hidden}
.sp-dialog__image img{width:100%;height:100%;object-fit:cover;display:block;-webkit-mask-image:linear-gradient(#000 55%,transparent);mask-image:linear-gradient(#000 55%,transparent)}
.sp-dialog__body{padding:0 48px 40px;margin-top:-56px;position:relative}
.sp-dialog__body .eyebrow{color:var(--gold)}
.sp-dialog h2{font-family:var(--serif);font-size:clamp(30px,3vw,42px);font-weight:500;line-height:1.35;margin:10px 0 16px}
.sp-dialog .lede{max-width:46em;color:#d1d8df;font-size:16px;line-height:1.85}
.sp-dialog__items{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 32px;margin:28px 0 0}
.sp-dialog__items>div{padding-top:20px;border-top:1px solid var(--v4-line,rgba(246,245,239,.08))}
.sp-dialog__items h3{font-family:var(--serif);font-size:19px;font-weight:500;line-height:1.45;margin:0 0 10px}
.sp-dialog__items p{margin:0;font-size:14px;line-height:1.8;color:#aeb7c2}
.sp-dialog__note{margin:24px 0 0;font-size:14px;color:#aeb7c2}
.sp-dialog .actions{display:flex;flex-wrap:wrap;align-items:center;gap:24px;margin-top:28px}
.sp-dialog__close{position:sticky;top:12px;float:right;z-index:2;width:44px;height:44px;margin:12px 12px -56px 0;border:1px solid rgba(246,245,239,.22);border-radius:50%;background:rgba(10,18,25,.6);color:#f5f4ef;font-size:24px;line-height:1;cursor:pointer;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.sp-dialog__close:hover{background:rgba(239,181,46,.18);border-color:var(--gold)}
html:has(.sp-dialog[open]){overflow:hidden}
@media(max-width:760px){
  .sp-dialog{width:100%;max-width:none;max-height:92vh;margin:auto 0 0;border-radius:12px 12px 0 0;border-bottom:0}
  .sp-dialog__body{padding:4px 22px 32px;margin-top:-24px}
  .sp-dialog__items{grid-template-columns:1fr;gap:20px}
  .sp-dialog__image{aspect-ratio:16/8}
}
@media(prefers-reduced-motion:reduce){.sp-dialog[open],.sp-dialog[open]::backdrop{animation:none}}

/* 10/16: two areas now (technology has its own page), so the first no longer spans the row;
   the pair sits side by side at the same size */
html body .spf-services--bi>.spf-service:first-child{grid-column:auto;display:block}
html body .spf-services--bi>.spf-service:first-child .spf-service__image img{height:auto;min-height:0;aspect-ratio:1.9}
html body .spf-services--bi>.spf-service:first-child .spf-service__body{padding:28px 30px 32px}
html body .spf-services--bi>.spf-service:first-child h3{font-size:28px}

/* 10/21: the hero is the homepage card's office photograph, already toned like the card; the site-wide
   hero finish (saturate .72, brightness .84) on top dimmed it a second time */
.page-specialist-services main .spf-hero--sp .spf-hero__media>img{filter:none}
/* ...and its window blinds are bright where the header's white links sit (the car photo was dark at the top):
   a shade from the top, about .75 at the links (on average 6:1 instead of 2:1), gone by 300px */
.spf-hero--sp .spf-hero__media::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(7,22,34,.8) 0,rgba(7,22,34,.7) 70px,rgba(7,22,34,0) 300px);pointer-events:none}
