/* Service hubs and service pages in the Signature design */
html[data-look="signature"]{
  /* Heroes: on Stone, the header no longer over a photo */
  .sv-hero{background:var(--stone)}
  .sv-h1{margin:0;font:300 clamp(2.75rem,6.4vw,6rem)/1.02 var(--serif);letter-spacing:-.028em;text-wrap:balance;overflow-wrap:break-word}
  .sv-h1-page{margin-top:1rem;font-size:clamp(2.5rem,5vw,4.5rem);line-height:1.04;letter-spacing:-.022em}
  .sv-lede{margin:0;max-width:34em;font-size:clamp(1.0625rem,1.3vw,1.1875rem);line-height:1.5;color:var(--ink)}
  .sv-acts .line{flex:0 0 auto}

  /* Back link above the service's name, as on a staff profile */
  .sv-crumb{margin:0;font:500 0.8125rem/1.3 var(--sans);letter-spacing:.08em;text-transform:uppercase}
  .sv-crumb a{color:var(--forest);text-decoration:underline;text-decoration-color:transparent;text-underline-offset:0.25em}
  .sv-crumb a:hover{text-decoration-color:currentColor}

  /* Hub hero: headline left, lede and buttons right, a wide photo under both */
  .sv-hero-hub{padding-top:clamp(2.5rem,5vw,4.5rem);padding-bottom:clamp(2.5rem,5vw,4.5rem)}
  .sv-hero-hub .sv-hero-t{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:end;gap:1.5rem 4rem;margin-bottom:clamp(1.5rem,3vw,2.5rem)}
  .sv-hero-hub .sv-hero-t>:first-child{flex:1 1 24rem}
  .sv-hero-s{flex:0 1 28rem}
  .sv-hero-s .sv-acts{margin-top:1.5rem}
  .sv-hero-hub .sv-hero-ph{margin:0;overflow:hidden;border-radius:var(--r-lg);background:var(--grey);height:clamp(15rem,34vw,34rem)}
  .sv-hero-hub .sv-hero-ph img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 35%}

  /* Service hero: words left, photo right */
  .sv-wrap{width:min(68rem,100%);margin-inline:auto}
  .sv-hero-page{padding-block:clamp(2.5rem,5vw,4.5rem)}
  .sv-hero-in{display:grid;grid-template-columns:minmax(0,6fr) minmax(0,5fr);column-gap:clamp(2rem,5vw,5rem);align-items:center}
  .sv-hero-in .sv-lede{margin-top:1rem}
  .sv-hero-in .sv-acts{margin-top:1.5rem}
  .sv-hero-page .sv-hero-ph{margin:0;overflow:hidden;border-radius:var(--r-lg);background:var(--grey);aspect-ratio:4/3}
  .sv-hero-page .sv-hero-ph img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 30%}

  /* How we help: cards on Stone */
  .sv-cards{display:grid;gap:1rem;margin:0;padding:0;list-style:none}
  .sv-cards-3{grid-template-columns:repeat(3,minmax(0,1fr))}
  .sv-cards-4{grid-template-columns:repeat(4,minmax(0,1fr))}
  .sv-cards li{padding:clamp(1.5rem,2.4vw,2.25rem);border-radius:var(--r-lg);background:var(--stone)}
  .sv-cards h3{margin:0 0 1rem;font:300 clamp(1.5rem,2.3vw,2.125rem)/1.18 var(--serif);letter-spacing:-.015em;text-wrap:balance}
  .sv-cards p{margin:0;color:var(--mid);line-height:1.55}

  /* What happens: heading and button share a row; the text links follow the steps */
  .sv-head-h{flex:1 1 20rem;max-width:13em}
  .sv-next{margin-top:clamp(1.5rem,3vw,2.5rem);gap:1rem 2.5rem}
  .sv-next .s-more{color:var(--forest);min-height:2.75rem}

  /* Service list: two columns of ruled rows */
  .sv-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:clamp(2rem,5vw,5rem);margin:0;padding:0;list-style:none}
  .sv-list li{border-top:1px solid var(--rule)}
  .sv-list li:last-child,.sv-list li:nth-last-child(2):nth-child(odd){border-bottom:1px solid var(--rule)}
  .sv-list-book h3{color:var(--forest)}
  .sv-list a{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;height:100%;padding:1.25rem 0;color:var(--ink)}
  .sv-list h3{margin:0;font:400 clamp(1.3125rem,1.8vw,1.5rem)/1.25 var(--serif);letter-spacing:-.01em}
  .sv-list p{margin:0.375rem 0 0;max-width:34em;font-size:1rem;line-height:1.5;color:var(--mid)}
  .sv-list svg{flex:0 0 auto;width:0.875rem;height:0.875rem;color:var(--forest)}
  .sv-list a:hover h3{color:var(--forest)}
  .sv-list a:hover svg{transform:translateX(0.25rem)}
  @media (prefers-reduced-motion:no-preference){
    .sv-list svg{transition:transform .3s var(--ease)}
  }

  /* Questions: heading left, answers right */
  .sv-qa{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:1.5rem clamp(2rem,5vw,5rem);align-items:start}
  .sv-qa-t .s-eyebrow{margin-bottom:0.5rem}

  /* Reading: the page's text at the article's measure, with a rail beside it that stays with the reader: the booking
     panel and the hub's other services. The pair is centred on the page, as the article's column is. */
  .sv-read{display:grid;grid-template-columns:minmax(0,41rem) minmax(15rem,22rem);justify-content:space-between;column-gap:clamp(2rem,5vw,5rem);align-items:start}
  .sv-rail{position:sticky;top:calc(var(--mast) + 1.5rem);display:grid;gap:1.5rem}
  .sv-aside{display:grid;justify-items:start;gap:1rem;padding:clamp(1.5rem,2.4vw,2rem);border-radius:var(--r-lg);background:var(--forest);color:#fff}
  .sv-aside-h{margin:0;font:300 clamp(1.875rem,2.6vw,2.25rem)/1.1 var(--serif);letter-spacing:-.02em;text-wrap:balance}
  .sv-aside p{margin:0;color:rgba(255,255,255,.88);line-height:1.5}
  .sv-aside .book{margin-top:0.5rem;background:#fff;color:var(--forest);border-color:#fff}
  .sv-aside .book:hover{background:var(--sand);border-color:var(--sand)}
  .sv-aside .s-more{color:#fff;min-height:2.75rem}
  .sv-rail-more{display:none;padding:1.5rem 1.75rem;border:1px solid var(--rule);border-radius:var(--r-lg)}
  .sv-rail-h{margin:0 0 0.75rem;font:500 0.8125rem/1.3 var(--sans);letter-spacing:.08em;text-transform:uppercase;color:var(--mid)}
  .sv-rail-more ul{margin:0;padding:0;list-style:none}
  .sv-rail-more li{border-top:1px solid var(--rule)}
  .sv-rail-more li:first-child{border-top:0}
  .sv-rail-more a{display:block;padding:0.3125rem 0;font:500 1rem/1.4 var(--sans);color:var(--forest)}
  .sv-rail-more a:hover{text-decoration:underline;text-underline-offset:0.2em}
  /* A short page: no rail. The text is centred, the booking panel follows it, and the other services keep their section */
  .sv-read-solo{grid-template-columns:minmax(0,41rem);justify-content:center;row-gap:3rem}
  .sv-read-solo .sv-rail{position:static}
  /* Only what fits stays with the reader. The booking panel always does. The hub's other services join it in the rail
     only when the window is tall enough to show the panel and the whole list with room to spare (the height depends on
     how many services there are: up to 1, 3, 6 or 10); otherwise they keep their own section under the text. */
  @media (min-width:56.26em) and (min-height:36rem){
    .sv-rail-more.sv-t-1{display:block}
    .sv-more-b.sv-t-1{display:none}
  }
  @media (min-width:56.26em) and (min-height:40.5rem){
    .sv-rail-more.sv-t-3{display:block}
    .sv-more-b.sv-t-3{display:none}
  }
  @media (min-width:56.26em) and (min-height:46.5rem){
    .sv-rail-more.sv-t-6{display:block}
    .sv-more-b.sv-t-6{display:none}
  }
  @media (min-width:56.26em) and (min-height:55rem){
    .sv-rail-more.sv-t-10{display:block}
    .sv-more-b.sv-t-10{display:none}
  }

  /* In the text: photos, the points on Stone, kickers and stacked headings */
  .sv-body .sv-fig{margin:0 0 1.5rem}
  .sv-body .sv-fig img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;object-position:50% 25%;margin:0;border-radius:var(--r-lg)}
  /* A portrait or a small picture sits beside its block's words, at a size it stays sharp at */
  .sv-body .sv-duo{display:grid;grid-template-columns:minmax(0,1fr) 15rem;column-gap:2rem;align-items:start;margin:0 0 1.5rem}
  .sv-body .sv-duo-t>:first-child{margin-top:0}
  .sv-body .sv-duo-t>:last-child{margin-bottom:0}
  .sv-body .sv-fig-side{margin:0.375rem 0 0}
  .sv-body .sv-fig-side img{aspect-ratio:1/1;object-position:50% 50%}
  .sv-body .sv-fig-tall img{aspect-ratio:4/5;object-position:50% 0}
  .sv-body .sv-points{display:grid;gap:0.75rem;margin:0 0 1.5rem;padding:0;list-style:none}
  .sv-body .sv-points li{margin:0;padding:clamp(1.25rem,2.4vw,1.75rem);border-radius:var(--r-lg);background:var(--stone)}
  .sv-body .sv-points li::marker{content:none}
  .sv-body .sv-points h3{margin:0 0 0.5rem}
  .sv-body .sv-points li>p{margin:0}
  .sv-body .sv-points li>p+p{margin-top:0.75rem}
  .sv-body .sv-points li>:last-child{margin-bottom:0}
  .sv-body .sv-vids{list-style:none;padding:0}
  .sv-body .kicker{margin:3rem 0 0.5rem;font:500 0.8125rem/1.3 var(--sans);letter-spacing:.08em;text-transform:uppercase;color:var(--mid)}
  .sv-body .kicker:first-child{margin-top:0}
  .sv-body .kicker+h2{margin-top:0}
  .sv-body h2+h2,.sv-body h2+h3{margin-top:0}
  .sv-body .lead-in{font:inherit;margin:0 0 1.5rem}

  /* More in: heading on its baseline */
  .sv-more-head{align-items:baseline;margin-bottom:1.5rem}

  /* Smaller computers: four cards become two by two */
  @media (max-width:75em){
    .sv-cards-4{grid-template-columns:repeat(2,minmax(0,1fr))}
  }

  /* Tablet: the panel joins the text; questions stack; the service photo fills its side top to bottom */
  @media (max-width:56.25em){
    .sv-cards-3{grid-template-columns:repeat(2,minmax(0,1fr))}
    .sv-qa{grid-template-columns:minmax(0,1fr)}
    .sv-read{grid-template-columns:minmax(0,41rem);justify-content:start;row-gap:3rem}
    .sv-rail{position:static}
    .sv-hero-in{align-items:stretch}
    .sv-hero-page .sv-hero-ph{height:100%;aspect-ratio:auto}
    .sv-hero-page .sv-hero-ph img{min-height:100%}
  }

  /* One column of services */
  @media (max-width:48em){
    .sv-list{grid-template-columns:minmax(0,1fr)}
    .sv-list li:nth-last-child(2):nth-child(odd){border-bottom:0}
    .sv-list li:last-child{border-bottom:1px solid var(--rule)}
  }

  /* Phone: one column; both photos run edge to edge */
  @media (max-width:36em){
    .sv-cards-3,.sv-cards-4{grid-template-columns:minmax(0,1fr)}
    .sv-hero-hub,.sv-hero-page{padding-bottom:0}
    .sv-hero-hub .sv-hero-t{margin-bottom:1.5rem}
    .sv-hero-in{grid-template-columns:minmax(0,1fr);row-gap:1.5rem}
    .sv-hero-hub .sv-hero-ph,.sv-hero-page .sv-hero-ph{margin-inline:calc(var(--gut) * -1);border-radius:0}
    .sv-hero-hub .sv-hero-ph{height:auto;aspect-ratio:4/3}
    .sv-hero-page .sv-hero-ph{height:auto;aspect-ratio:3/2}
    .sv-hero-page .sv-hero-ph img{min-height:0}
    .sv-body .sv-duo{grid-template-columns:minmax(0,1fr);row-gap:1.5rem}
    .sv-body .sv-fig-side{order:-1;margin-top:0}
    .sv-body .sv-fig-side img{aspect-ratio:3/2;object-position:50% 25%}
    .sv-body .sv-fig-tall img{aspect-ratio:4/5;object-position:50% 0}
    .sv-body .sv-fig{margin-inline:calc(var(--gut) * -1)}
    .sv-body .sv-fig img{border-radius:0}
  }

  /* Small phone: the main buttons run the full width */
  @media (max-width:30em){
    .sv-acts .book,.s-sec .s-head .book{flex:1 1 100%;justify-content:center}
  }

  /* Very large text on a small phone */
  @media (max-width:17.5em){
    .sv-h1,.sv-h1-page{font-size:clamp(1.25rem,13vw,1.875rem);line-height:1.08;letter-spacing:-.015em}
    .sv-cards h3,.sv-aside-h{font-size:clamp(1.0625rem,10vw,1.5rem);line-height:1.15}
    .sv-list h3{font-size:clamp(1rem,9vw,1.125rem)}
    .sv-cards li,.sv-body .sv-points li{padding:0.625rem}
    .sv-aside{padding:1rem}
    .sv-cards p,.sv-body .sv-points p{hyphens:manual}
    .sv-acts .line,.sv-aside .s-more{padding-inline:0;text-align:left}
    .sv-acts .line{hyphens:manual}
    .sv-h1-page{font-size:clamp(1.25rem,11.5vw,1.625rem)}  /* "Conveyancing" stays whole */
    .sv-aside{justify-items:stretch}
    main .sv-aside .book{padding-inline:0.5rem}
    .sv-aside .book svg{display:none}
    /* service rows: the arrow gives its room to the name, so a long name ("Development Site") stays whole */
    .sv-list a{gap:0.5rem}
    .sv-list svg{display:none}
    .sv-list h3,.sv-list p{hyphens:manual;overflow-wrap:break-word}
    /* questions on these pages: less padding and a smaller mark, so a question's words stay whole */
    .sv-qa .faq summary{grid-template-columns:minmax(0,1fr) 1.25rem;gap:0.5rem;padding:0.5rem;font-size:0.875rem;hyphens:manual;overflow-wrap:break-word;word-break:normal}
    .sv-qa .faq summary i{width:1.25rem;height:1.25rem}
    .sv-qa .faq summary i::before,.sv-qa .faq summary i::after{left:0.3125rem;right:0.3125rem}
    .sv-qa .faq .a{padding:0 0.5rem 0.5rem;font-size:1rem}
    .sv-qa .s-faq{margin-inline:-0.625rem}
  }
}
