/* Guides, enquiry and referral pages in the Signature design (docs/SIGNATURE-PAGES.md). The forms' own markup is GuideForm's, EnquiryForm's and ReferralForm's and is not changed: everything here is the page around them. */
html[data-look="signature"]{
  /* The hero: heading on the left, the form on the right, as on Book a call. Under the heading, what the guide covers,
     or the named person's portrait (otherwise one of Entourage's own photos). */
  .gd-top{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);grid-template-areas:"intro form" "aside form";grid-template-rows:auto minmax(0,1fr);column-gap:clamp(2rem,5vw,5rem);row-gap:1.5rem;padding-block:clamp(2.5rem,5vw,4.5rem) clamp(3.5rem,6vw,5.5rem);align-items:start}
  .gd-intro{grid-area:intro}
  .gd-form{grid-area:form}
  .gd-aside,.gd-inside{grid-area:aside}
  .gd-top .gd-h1{font-size:clamp(2rem,3.6vw,3.25rem)}
  .gd-more{margin:1rem 0 0;max-width:34em;font-size:1.0625rem;line-height:1.5}
  .gd-inside{margin:0}

  /* The enquiry form's card: the same Stone card as Book a call */
  .gd-card{padding:clamp(1.5rem,2.6vw,2.25rem);border-radius:var(--r-lg);background:var(--stone)}
  .gd-card .form,.gd-card .two{gap:1.5rem}
  .gd-card-h{max-width:none;margin:0 0 1.5rem}
  .gd-card-h:has(+ .gd-note){margin-bottom:0.5rem}
  .gd-note{margin:0 0 1.5rem;font-size:0.9375rem;line-height:1.5;color:var(--mid)}

  /* The photo fills the column beside the form */
  .gd-aside{align-self:stretch;display:flex;flex-direction:column;gap:1rem;margin:0;min-height:0;container-type:inline-size}
  .gd-ph{position:relative;flex:1 1 auto;min-height:20rem;overflow:hidden;border-radius:var(--r-lg);background:var(--grey)}
  .gd-ph img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 30%}
  /* a named person's portrait is a small image (480x640): never shown wider than its own 30rem, never shorter than 3:4,
     and never taller than 2:3 however long the form beside it */
  .gd-person .gd-ph{flex:1 1 auto;width:min(100%,30rem);aspect-ratio:3/4;min-height:0;max-height:min(150cqw,45rem)}
  .gd-person .gd-ph img{object-position:50% 0}
  /* a landscape photo of two people is never cropped tighter than a square, so neither is ever cut */
  .gd-wide .gd-ph{flex:1 1 auto;aspect-ratio:3/2;min-height:0;max-height:100cqw}
  .gd-wide .gd-ph img{object-position:50% 50%}
  .gd-aside figcaption{display:grid;gap:0.25rem}
  .gd-name{justify-self:start;font:300 clamp(1.5rem,2.3vw,2.125rem)/1.18 var(--serif);letter-spacing:-.015em;text-decoration:underline;text-decoration-color:transparent;text-decoration-thickness:1px;text-underline-offset:0.2em}
  .gd-name:hover{text-decoration-color:currentColor}
  .gd-aside figcaption span{font-size:0.9375rem;line-height:1.5;color:var(--mid)}
  /* On tablets and phones the named person sits with the intro, above the form, as a compact row; the photo beside the
     form is for computers only, so no photo is stacked on the closing panel's */
  .gd-who{display:none}

  /* After a successful send the card holds only the confirmation */
  .gd-card:has([data-sent].sent) .gd-card-h,.gd-card:has([data-sent].sent) .gd-note{display:none}
  /* and on a computer the card fills its side, top to bottom beside the photo, with the confirmation centred inside it,
     rather than a small card floating in an empty column. Tablets and phones keep it at its natural height. */
  @media (min-width:56.3125em){
    .gd-top:not(.gd-top-guide) .gd-card:has([data-sent].sent){align-self:stretch;display:flex;flex-direction:column;justify-content:center}
  }
  .gd-card .done,.gd-form .s-guide-form .done{gap:1rem}
  .gd-card .done .d2,.gd-card .done .d3,.gd-form .s-guide-form .done .d2,.gd-form .s-guide-form .done .d3{font:300 clamp(1.875rem,3vw,2.5rem)/1.1 var(--serif);letter-spacing:-.02em}
  .gd-card .done .lede,.gd-form .s-guide-form .done .lede{font-size:clamp(1.0625rem,1.3vw,1.1875rem);line-height:1.5}
  .gd-card .done .book,.gd-form .s-guide-form .done .book{margin-top:0.5rem}
  .gd-card .done .lede .line,.gd-form .s-guide-form .done .lede .line{display:inline;white-space:nowrap}
  .gd-card .form-off,.gd-form .form-off{font-size:1.0625rem;line-height:1.5}

  /* The items: the imported heading (kicker, heading, paragraph) over cards, or numbered rows for "How it works" */
  .gd-lead{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);column-gap:clamp(2rem,5vw,5rem);align-items:start;margin-bottom:clamp(1.5rem,3vw,2.5rem)}
  .gd-lead .kicker{grid-column:1/-1;margin:0 0 0.875rem;font:500 0.8125rem/1.3 var(--sans);letter-spacing:.08em;text-transform:uppercase;color:var(--mid)}
  .gd-lead h2{grid-column:1;margin:0;font:300 clamp(1.875rem,3vw,2.5rem)/1.1 var(--serif);letter-spacing:-.02em;text-wrap:balance}
  .gd-lead h2:last-child{grid-column:1/-1;max-width:22em}
  .gd-lead h2 ~ p{grid-column:2;margin:0;max-width:34em;font-size:clamp(1.0625rem,1.3vw,1.1875rem);line-height:1.5;color:var(--mid)}

  .gd-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(0.75rem,1.4vw,1.25rem);margin:0;padding:0;list-style:none}
  /* A partner's logo above the heading, in the label's place: a fixed height, whatever the logo's shape. 36px where the
     page is one column, 56px from the width where the form sits beside the heading (Dieter, 28 Nov 2026) */
  .gd-partner img{display:block;height:2.25rem;width:auto;max-width:100%}
  .gd-partner a{display:inline-block;border-radius:0.25rem}
  @media (min-width:56.3125em){
    .gd-partner img{height:3.5rem}
    .gd-partner:has(img){margin-bottom:1.25rem}
  }
  .gd-cards-4{grid-template-columns:repeat(4,minmax(0,1fr))}  /* four cards share one row on a computer, so none is left alone on a second row; two by two on a tablet */
  .gd-cards>li{padding:1.5rem;border-radius:var(--r-lg);background:#fff}
  .gd-cards h3{margin:0 0 0.625rem;font:500 1.25rem/1.3 var(--sans)}
  .gd-cards p{margin:0;color:var(--mid);line-height:1.55}
  .gd-cards p + p{margin-top:0.75rem}

  .gd-cards-2{grid-template-columns:repeat(2,minmax(0,1fr))}
  /* A guide's key points, under the guide's own sub-headings, in its card or row; the homepage guide list's green dot */
  .gd-cards ul,.gd-row-t ul{display:grid;gap:0.75rem;margin:0;padding:0;list-style:none}
  .gd-cards li li,.gd-row-t li{display:block;position:relative;margin:0;padding:0 0 0 1.125rem;border:0;border-radius:0;background:none;line-height:1.55;color:var(--mid)}
  .gd-cards li li::before,.gd-row-t li::before{content:"";position:absolute;left:0;top:0.575em;width:0.375rem;height:0.375rem;border-radius:50%;background:var(--forest)}
  .gd-cards li li b,.gd-row-t li b{display:block;font-weight:500;color:var(--ink)}
  .gd-related{margin:1.5rem 0 0}
  .gd-related a{padding-block:0.375rem}

  .gd-rows{margin:0;padding:0;list-style:none}
  .gd-rows>li{display:grid;grid-template-columns:5rem minmax(0,4fr) minmax(0,7fr);column-gap:clamp(1.5rem,3vw,3rem);align-items:start;padding-block:1.5rem;border-top:1px solid var(--ink)}
  .gd-rows>li:last-child{border-bottom:1px solid var(--ink)}
  .gd-rows .s-step-n{margin:0}
  .gd-rows h3{margin:0;font:300 clamp(1.5rem,2.3vw,2.125rem)/1.18 var(--serif);letter-spacing:-.015em}
  .gd-row-t p{margin:0;max-width:38em;line-height:1.55}
  .gd-row-t p + p{margin-top:0.75rem}

  /* The steps */
  .gd-steps .ar-more-h{margin-bottom:clamp(1.5rem,3vw,2.5rem)}

  /* About: photo and words side by side, alternating */
  .gd-about{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(2rem,5vw,5rem);align-items:center}
  .gd-about + .gd-about{margin-top:clamp(3rem,6vw,5.5rem)}
  .gd-flip .gd-about-ph{order:2}
  .gd-about-ph{overflow:hidden;border-radius:var(--r-lg);aspect-ratio:3/2;background:var(--grey)}
  .gd-about-ph img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 0}
  .gd-about-t .s-eyebrow{margin-bottom:0.5rem}
  .gd-about-t .ar-more-h{margin-bottom:1rem}
  .gd-about-t .book{margin-top:1.5rem}

  /* Questions: as on the service pages */
  .gd-qa{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:1.5rem clamp(2rem,5vw,5rem);align-items:start}

  /* Guide hero, up to 64em: the form's paired fields stack below 64em, so the form runs the full width under the heading
     and what the guide covers, rather than towering beside them */
  @media (max-width:64em){
    .gd-top-guide{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"intro aside" "form form";grid-template-rows:auto;align-items:start;row-gap:1.5rem}
  }
  /* Enquiry hero on a small computer: a narrower left column, so the card keeps its paired fields side by side (site.css
     stacks them below 64em) and the form is no taller than on a wide screen */
  @media (min-width:56.3125em) and (max-width:64em){
    .gd-top:not(.gd-top-guide){grid-template-columns:minmax(0,4fr) minmax(0,8fr)}
    .gd-card .two{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  }
  @media (min-width:44em) and (max-width:64em){
    .gd-top-guide .s-guide-form .two{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  }

  /* Tablet: one column. The form follows the heading; the photo runs edge to edge under it */
  @media (max-width:56.25em){
    .gd-top:not(.gd-top-guide){grid-template-columns:minmax(0,1fr);grid-template-areas:"intro" "form" "aside";grid-template-rows:auto;row-gap:1.5rem}
    .gd-aside{display:none}
    .gd-who{display:grid;grid-template-columns:3.5rem minmax(0,1fr);gap:1rem;align-items:center;margin:1.5rem 0 0}
    .gd-who img{width:3.5rem;height:3.5rem;border-radius:50%;object-fit:cover;object-position:50% 12%}
    .gd-who>span{display:grid;gap:0.125rem}
    .gd-who-solo{grid-template-columns:minmax(0,1fr)}  /* no photo in the staff data: name and role only */
    .gd-who-name{justify-self:start;font:500 1.0625rem/1.3 var(--sans);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:0.2em}
    .gd-who>span>span{font-size:0.9375rem;line-height:1.4;color:var(--mid)}
    .gd-lead{grid-template-columns:minmax(0,1fr);row-gap:1rem;align-items:start}
    .gd-lead .kicker,.gd-lead h2,.gd-lead h2:last-child,.gd-lead h2 ~ p{grid-column:1}
    .gd-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
    .gd-cards-3{grid-template-columns:repeat(3,minmax(0,1fr))}
    .gd-rows>li{grid-template-columns:4rem minmax(0,1fr);row-gap:0.625rem}
    .gd-rows .s-step-n{grid-row:1 / span 2}
    .gd-rows h3,.gd-row-t{grid-column:2}
    .gd-about{grid-template-columns:minmax(0,1fr);row-gap:1.5rem}
    .gd-flip .gd-about-ph{order:0}
    .gd-qa{grid-template-columns:minmax(0,1fr)}
  }
  /* Tablet: the card is wide enough for the form's paired fields to sit side by side again (as on Book a call) */
  @media (min-width:44em) and (max-width:56.25em){
    .gd-card .two{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  }
  @media (max-width:44em){
    .gd-top-guide{grid-template-columns:minmax(0,1fr);grid-template-areas:"intro" "aside" "form"}
    .gd-cards-2,.gd-cards-3{grid-template-columns:minmax(0,1fr)}
  }
  /* Phone: everything stacks; less space above the heading */
  @media (max-width:35em){
    .gd-top{padding-top:2rem}
    .gd-cards{grid-template-columns:minmax(0,1fr)}
    .gd-about-ph{margin-inline:calc(var(--gut) * -1);border-radius:0}
    .gd-rows>li{grid-template-columns:minmax(0,1fr)}
    .gd-rows .s-step-n{grid-row:auto;font-size:2.5rem}
    .gd-rows h3,.gd-row-t{grid-column:1}
  }
  /* Small phone: the send button runs the full width */
  @media (max-width:30em){
    .gd-form .acts .book{flex:1 1 100%;justify-content:center}
  }
  @media (max-width:22.5em){
    .gd-card{padding:1rem}
    .gd-card select{font-size:0.875rem}
  }
  /* Very large text on a small phone (200%): headings stay whole, the forms run edge to edge */
  @media (max-width:17.5em){
    .gd-top .gd-h1{font-size:clamp(1.25rem,13vw,1.875rem);line-height:1.08}
    .gd-who{grid-template-columns:minmax(0,1fr);gap:0.5rem}
    .gd-lead h2,.gd-rows h3,.gd-name{font-size:clamp(1.125rem,11.5vw,1.75rem);hyphens:none}
    .gd-card,.gd-form .s-guide-form{margin-inline:calc(var(--gut) * -1);padding-inline:var(--gut);border-radius:0}
    main .gd-form .acts .book{padding-inline:0.5rem}
    .gd-form .acts .book svg{display:none}
    .gd-cards>li{padding:0.75rem}
    .gd-card .done .d2,.gd-card .done .d3,.gd-form .s-guide-form .done .d3{font-size:clamp(1.125rem,11.5vw,1.75rem)}
    .gd-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}
    .gd-qa .faq summary i{width:1.25rem;height:1.25rem}
    .gd-qa .faq summary i::before,.gd-qa .faq summary i::after{left:0.3125rem;right:0.3125rem}
    .gd-qa .faq .a{padding:0 0.5rem 0.5rem;font-size:1rem}
    .gd-qa .s-faq{margin-inline:-0.625rem}
  }
}
