/* Service detail pages. Keep the site header, navigation and footer on their shared styles. */
@layer ciTypography {
  html body.ci-sitework-page .main-nav { position:relative!important; top:auto!important; }
  html body #ci-sitework { background:#fff!important; margin:0; padding:0; }
  #ci-sitework *, #ci-sitework *::before, #ci-sitework *::after { box-sizing:border-box; }
  html body #ci-sitework :is(h1,h2,p,a,li,figcaption,nav,span) {
    font-family:Arial,Helvetica,sans-serif!important; letter-spacing:normal!important; text-transform:none!important;
  }
  html body #ci-sitework :is(h1,h2) { text-align:left!important; font-weight:700!important; padding:0!important; margin:0 0 .65em!important; line-height:1.12!important; }
  html body #ci-sitework h1 { font-size:clamp(2.25rem,4.5vw,4.3rem)!important; letter-spacing:-.045em!important; max-width:19ch; }
  html body #ci-sitework h2 { font-size:clamp(1.45rem,2.7vw,2rem)!important; letter-spacing:-.025em!important; }
  html body #ci-sitework :is(p,li) { text-align:left!important; padding:0!important; font-size:1.08rem!important; line-height:1.65!important; font-weight:400!important; }
  html body #ci-sitework p { max-width:68ch; margin:0 0 .85em!important; }
  #ci-sitework .sw-wrap { width:min(100%,76rem); margin:auto; padding-inline:clamp(1.05rem,4vw,3.75rem); }
  #ci-sitework .sw-hero { background:#173441!important; border-bottom:4px solid #58b4d8; padding-block:clamp(2rem,5vw,5rem); }
  #ci-sitework .sw-hero-grid { display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,1fr); align-items:center; gap:clamp(1.6rem,4vw,4rem); }
  html body #ci-sitework .sw-hero :is(h1,p,figcaption) { color:#fff!important; }
  html body #ci-sitework .sw-hero .sw-back { color:#d7eef8!important; display:inline-flex; align-items:center; min-height:44px; margin-bottom:.45em; text-decoration:underline; text-underline-offset:.2em; }
  #ci-sitework figure { margin:0; min-width:0; }
  #ci-sitework figure img, #ci-sitework figure svg { display:block; width:100%; height:auto; max-width:100%; border-radius:.35rem; }
  #ci-sitework figure img { height:clamp(220px,26vw,340px); object-fit:cover; }
  #ci-sitework .sw-portrait { object-position:50% 47%; }
  html body #ci-sitework figcaption { margin:.55rem 0 0; font-size:.9rem!important; line-height:1.45!important; }
  #ci-sitework .sw-copy { padding-block:clamp(1.8rem,4vw,3.6rem); }
  #ci-sitework .sw-row { display:grid; grid-template-columns:minmax(14rem,.76fr) minmax(0,1.3fr); gap:clamp(.35rem,4vw,3rem); padding-block:clamp(1.3rem,3vw,2.3rem); border-bottom:1px solid #c5d1d6; }
  html body #ci-sitework .sw-row :is(h2,p,li) { color:#18333e!important; }
  html body #ci-sitework .sw-row a { color:#075474!important; text-decoration:underline; text-underline-offset:.15em; }
  #ci-sitework .sw-related { background:#eaf2f5!important; padding-block:clamp(1.8rem,3.5vw,3.2rem); }
  html body #ci-sitework .sw-related h2 { color:#18333e!important; }
  #ci-sitework .sw-related ul { list-style:none; display:flex; flex-wrap:wrap; gap:.55rem 1rem; margin:0 0 1rem; padding:0; }
  html body #ci-sitework .sw-related li a { display:inline-flex; align-items:center; min-height:44px; color:#075474!important; text-underline-offset:.2em; text-decoration:underline; }
  html body #ci-sitework .sw-cta { display:inline-flex; align-items:center; min-height:46px; max-width:100%; background:#075574!important; color:#fff!important; border:2px solid #9dd5ec; border-radius:.25rem; padding:.65rem 1.1rem; line-height:1.35!important; font-weight:700!important; text-decoration:none; }
  html body #ci-sitework .sw-cta:hover { background:#093e53!important; text-decoration:underline; }
  html body #ci-sitework a:focus-visible { outline:3px solid #c7800a!important; outline-offset:3px!important; }
  @media(max-width:760px) {
    #ci-sitework .sw-hero-grid,#ci-sitework .sw-row { grid-template-columns:minmax(0,1fr); }
    #ci-sitework figure img { height:clamp(205px,50vw,320px); }
    html body #ci-sitework .sw-row h2 { margin-bottom:.25em!important; }
  }
}
