body {
  --panel-blue: #087F8C;
  --panel-ivory: #FEFCF4;
  --panel-navy: #07356B;
  --panel-light-gold: #F0CF8D;
  --panel-ivory-gold: #AD853D;
  font-family: "Avenir Next", "Raleway", "Albert Sans", sans-serif;
}

body > header, body > footer, body main > .destination-strip {
  background: var(--panel-ivory);
  color: var(--panel-navy);
  border: 0;
}

body main > section:nth-of-type(odd) {
  --panel-background: var(--panel-blue);
  --panel-text: #FFFFFF;
  --panel-accent: var(--panel-light-gold);
}

body main > section:nth-of-type(even) {
  --panel-background: var(--panel-ivory);
  --panel-text: var(--panel-navy);
  --panel-accent: var(--panel-ivory-gold);
}

body main.story-page > section:nth-of-type(n),
body main > section:nth-of-type(n) {
  background: var(--panel-background);
  color: var(--panel-text);
  border: 0;
}

body main > section:nth-of-type(n) :is(h1, h2, h3, p, li, .story-prose, .contact-copy, .detail, .phone, .contact-email) {
  color: var(--panel-text);
}

body main > section:nth-of-type(n) :is(.story-label, .eyebrow, h1 > span, .service-cta-accent) {
  color: var(--panel-accent);
}

body main > section:nth-of-type(n) :is(h1, h2, h3) {
  font-family: inherit;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.025em;
  text-transform: none;
}

body main > section:nth-of-type(n) :is(h1, h2) { font-size: clamp(32px, 3.8vw, 46px); }
body main > section:nth-of-type(n) h3 { font-size: clamp(23px, 2.4vw, 32px); }
body main > section:nth-of-type(n) :is(p:not(.eyebrow, .story-label), li, .button, .contact-email, .phone) {
  font-size: 17px;
  line-height: 1.65;
}

body main > section:nth-of-type(n) :is(.story-highlights li, .service-overview-item) {
  background: transparent;
}
body main > section:nth-of-type(n) .button {
  color: var(--panel-text);
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 0;
}
body main > section:nth-of-type(n) .button:is(:hover,:focus-visible) {
  color: var(--panel-background);
  background: var(--panel-text);
  border-color: var(--panel-text);
}
body main > section:nth-of-type(n) .contact-email { text-decoration: underline; }
body main > section:nth-of-type(n) .phone { border-color: currentColor; }
body main > section:nth-of-type(n) .pale-sprig::before { background-color: var(--panel-accent); }
body .footer-tagline { color: var(--panel-ivory-gold); }

body main > .destination-strip { padding: clamp(16px, 2vw, 26px) 24px; }
body .destination-strip .destination-motifs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(10px, 3vw, 40px);
}
body .destination-motifs img:nth-child(n) {
  width: clamp(32px, 7vw, 78px);
  height: clamp(36px, 7vw, 78px);
  object-fit: contain;
}


body main > section:nth-of-type(odd) :is(p:not(.story-label, .eyebrow), li, strong, .detail strong) {
  color: #fff;
}

/* Temple Blue panels follow the homepage hero hierarchy. */
body main > section:nth-of-type(odd) :is(h1, h2, h3) {
  color: #fff;
}

body main > section:nth-of-type(odd) :is(.story-label, .eyebrow, .pale-sprig > span) {
  color: var(--panel-light-gold);
}

body main > section:nth-of-type(odd) .service-cta-accent {
  color: inherit;
}

/* Use the homepage type scale on the Services overview. */
body main.services-overview-page .story-hero h1,
body main.services-overview-page .story-experience .services-heading,
body main.services-overview-page .story-cta h2 {
  font-family: "Avenir Next", "Raleway", "Albert Sans", sans-serif;
  font-size: clamp(32px, 3.8vw, 46px);
  line-height: 1.2;
  font-weight: 400;
}

body main.services-overview-page .story-hero .story-split p,
body main.services-overview-page .story-cta p {
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
}

body main.services-overview-page .service-overview-item h3 {
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.25;
}

body main.services-overview-page .service-overview-item p {
  font-size: 16px;
  line-height: 1.65;
}

body main.services-overview-page .story-experience .services-heading {
  display: grid;
  grid-template-columns: 18px auto 18px;
  justify-content: center;
  text-align: center;
}
body main.services-overview-page .services-heading::after {
  content: "";
}
body main.services-overview-page .service-overview-item .button {
  align-self: center;
  justify-content: center;
  min-inline-size: 140px;
  padding: 11px 20px;
  gap: 16px;
  border-radius: 0;
}

body main.services-overview-page .service-overview-item .button:is(:hover, :focus-visible) {
  background: var(--panel-blue);
  border-color: var(--panel-blue);
  color: #fff;
}


@media (min-width: 761px) {
  body main.services-overview-page .story-hero .story-split {
    align-items: center;
  }
  body main.services-overview-page .story-hero h1 {
    position: relative;
    margin-block: 0;
  }
  body main.services-overview-page .story-hero .story-prose p:first-child {
    margin-top: 0;
  }
  body main.services-overview-page .story-hero .story-prose p:last-child {
    margin-bottom: 0;
  }
}

body main #contact .contact-tagline {
  color: var(--panel-light-gold);
  font-family: Cochin, Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(21px, 2.3vw, 28px);
  line-height: 1.3;
  margin: 24px 0 0;
}

body main.sahby-story > section:nth-of-type(odd) :is(h1, h2, h3, p, li, a) {
  color: #fff;
}
body main.sahby-story > section:nth-of-type(odd) :is(.story-label, h1 > span) {
  color: var(--panel-light-gold);
}
body main.sahby-story > section:nth-of-type(odd) .button:is(:hover, :focus-visible) {
  background: var(--panel-light-gold);
  color: var(--panel-navy);
  border-color: var(--panel-light-gold);
}

/* Industry experience uses the hero's white and gold hierarchy. */
body main.sahby-story #industry-experience :is(h2, p, li) {
  color: #fff;
}
body main.sahby-story #industry-experience :is(.story-label, h3) {
  color: var(--panel-light-gold);
}
body main.sahby-story #industry-experience .heading-sprig::before {
  background-color: var(--panel-light-gold);
}

@media (min-width: 761px) {
  body main.services-overview-page .service-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Carry the homepage typography and spacing across the Services pages. */
body main.services-page > section {
  padding-block: clamp(44px, 5.5vw, 78px);
}
body main.services-page > section > .wrap {
  max-width: 1280px;
  padding-inline: clamp(24px, 5.5vw, 64px);
}
body main.services-page .story-hero .story-split {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px clamp(28px, 5vw, 65px);
}
body main.services-page .story-hero .story-split p {
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
}
body main.services-page .story-experience .services-heading,
body main.services-page .preview-detail h2 {
  color: var(--panel-ivory-gold);
}
body main.services-page .preview-detail h2 {
  font-size: clamp(24px, 2.5vw, 34px);
}
body main.services-page .preview-detail p {
  color: var(--panel-navy);
  font-size: clamp(18px, 1.45vw, 20px);
  line-height: 1.6;
}
body main.services-page .story-cta p {
  max-width: 620px;
  margin: 18px auto 24px;
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
}
@media (max-width: 800px) {
  body main.services-page .story-hero .story-split {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Use the same logo sprig on both backgrounds, with a gold silhouette on blue. */
body main > section:nth-of-type(odd) .heading-sprig::before {
  background: var(--panel-light-gold);
  mask: url('/assets/sahby-logo-tagline.png') no-repeat -75.168px -1.728px / 99.533px 73.613px;
}

body main > section:nth-of-type(even) .heading-sprig::before {
  background: transparent url('/assets/sahby-logo-tagline.png') no-repeat -75.168px -1.728px / 99.533px 73.613px;
  mask: none;
}

/* Shared Services detail hero. */
body main.service-detail-page .story-hero .story-label{font-size:12px;letter-spacing:.18em;margin:0 0 clamp(18px,2vw,26px)}
body main.service-detail-page .story-hero .story-label::before{transform:none;margin:0}
body main.service-detail-page .story-hero .story-split h1{font-size:clamp(32px,3.8vw,46px);line-height:1.2;margin:0}
body main.service-detail-page .story-hero .story-split p{font-size:17px}
body main.service-detail-page .story-hero .story-split .pillar-subheading{font-size:clamp(24px,2.5vw,34px);line-height:1.2;color:var(--panel-light-gold);margin:0 0 12px;text-wrap:balance}
body main.service-detail-page .story-hero .service-detail-heading{align-self:start}
body main.service-detail-page .story-hero .story-split .service-detail-tagline{margin:26px 0 0;font:italic 400 clamp(21px,2.3vw,28px)/1.3 Cochin,Georgia,serif;color:var(--panel-light-gold)}
@media(min-width:801px){
body main.service-detail-page .story-hero .story-split{align-items:stretch}
body main.service-detail-page .story-hero .service-detail-heading{align-self:stretch;display:flex;flex-direction:column}
body main.service-detail-page .story-hero .story-split .service-detail-tagline{margin-top:auto;padding-top:16px}
body main.service-detail-page .story-hero .story-prose p:last-child{margin:0}
}
body main.service-detail-page .story-hero .story-prose{max-width:55ch}
body main.service-detail-page .story-hero .story-prose .pillar-subheading + p{margin:0}
@media(max-width:800px){body main.service-detail-page .story-hero .story-split .service-detail-tagline{margin-top:10px}}

/* Shared service detail cards and return link. */
body main.service-detail-page .preview-detail{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;max-width:1100px}
body main.service-detail-page .preview-detail article:nth-child(n){border:1px solid var(--panel-blue);margin:0;padding:clamp(20px,3vw,32px)}
:is(#representation-services,#consultancy-services) article h2{color:#A16D09}
:is(#representation-services,#consultancy-services) article p{color:var(--panel-navy)}
body main.service-detail-page .preview-detail > .button{grid-column:1/-1;justify-self:start;margin-top:12px;border-color:var(--panel-blue)}
@media(max-width:760px){body main.service-detail-page .preview-detail{grid-template-columns:minmax(0,1fr)}}

@media (min-width: 761px) {
  #consultancy-services .preview-detail > article:nth-child(3) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - 24px) / 2);
  }
}

body main.service-detail-page #consultancy-services .preview-detail > .button {
  justify-self: center;
}

body main.service-detail-page #consultancy-services .preview-detail {
  grid-template-rows: repeat(2, 1fr) auto;
  align-items: stretch;
}

@media (max-width: 760px) {
  body main.service-detail-page #consultancy-services .preview-detail {
    grid-template-rows: repeat(3, 1fr) auto;
  }
}

/* Filled action buttons on ivory sections. */
body main > section:nth-of-type(even):not(#service-options) .button {
  background: var(--panel-blue);
  border-color: var(--panel-blue);
  color: #fff;
}

body main > section:nth-of-type(even):not(#service-options) .button:is(:hover,:focus-visible) {
  background: var(--panel-ivory);
  border-color: var(--panel-blue);
  color: var(--panel-navy);
}

body main.service-detail-page .story-hero .story-split .pillar-subheading{font-size:clamp(27px,2.9vw,38px)}
body main.service-detail-page .story-hero .story-split .story-prose p:not(.pillar-subheading){font-size:clamp(18px,1.65vw,21px)}
@media(min-width:801px){
body main.service-detail-page .story-hero .story-split{align-items:start;row-gap:0}
body main.service-detail-page .story-hero .story-split :is(.service-detail-heading,.story-prose){display:contents}
body main.service-detail-page .story-hero .story-label{grid-column:1;grid-row:1;align-self:start;margin:0}
body main.service-detail-page .story-hero .service-title{display:contents}
body main.service-detail-page .story-hero .service-title h1{grid-column:1;grid-row:1 / 3;align-self:center}
body main.service-detail-page .story-hero .story-split .pillar-subheading{grid-column:2;grid-row:1;align-self:last baseline;margin:0;line-height:1.15}
body main.service-detail-page .story-hero .pillar-subheading span{display:block}
body main.service-detail-page .story-hero .story-prose > p:not(.pillar-subheading){grid-column:2;grid-row:2;padding-top:12px}
body main.service-detail-page .story-hero .story-split .service-detail-tagline{grid-column:1;grid-row:2;align-self:end;margin:0;padding:0}
}
body main.service-detail-page .story-hero .service-title .story-label{font-family:"Avenir Next", "Raleway", "Albert Sans", sans-serif;font-size:12px;font-weight:600;letter-spacing:.18em;line-height:1.8;gap:11px}
body main.service-detail-page .story-hero .service-title .story-label::before{width:18px;height:21px;flex-basis:18px;transform:none;margin:0}
body main.service-detail-page > .story-hero:nth-of-type(n){padding-block:clamp(36px,4.4vw,62px) clamp(44px,5.1vw,70px)}

@media (min-width: 1000px) {
  body main.service-detail-page > .story-hero:nth-of-type(n) {
    min-height: 337px;
  }
}

body main.service-detail-page .story-hero .story-split .story-prose .pillar-subheading {
  margin-bottom: 0;
}
body main.service-detail-page .story-hero .story-split .story-prose .pillar-subheading + p {
  padding-top: 1lh;
}

body main.service-detail-page .preview-detail > .service-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  margin-top: 12px;
}
body main.service-detail-page .preview-detail > .service-actions > .button {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: min(257px, 100%);
  padding-inline: 16px;
}
body main.service-detail-page .service-actions > .button:first-child {
  justify-self: start;
}
body main.service-detail-page .service-actions > .button:last-child {
  justify-self: end;
}
@media (max-width: 600px) {
  body main.service-detail-page .preview-detail > .service-actions {
    grid-template-columns: minmax(0, 1fr);
  }
}
#representation-services .service-actions{--service-action-color:#C17549}
body main.service-detail-page :is(#representation-services, #consultancy-services) .service-actions > .button{background:var(--service-action-color,var(--panel-blue));border-color:var(--service-action-color,var(--panel-blue));color:#fff}
body main.service-detail-page :is(#representation-services, #consultancy-services) .service-actions > .button:is(:hover,:focus-visible){background:var(--panel-ivory);border-color:var(--service-action-color,var(--panel-blue));color:var(--panel-navy)}
