/* Haven Measure visual treatment. Public page content and controls stay in the page templates. */
html[data-hml-executive] {
  --hme-ink: #142936;
  --hme-deep: #101d27;
  --hme-silver: #eeefef;
  --hme-lines: #ced5d7;
  --hme-red: #8a2435;
  --hme-pink: #edacbb;
}

[data-hml-executive] :is(.hm-header,.site-header,.hmb-header) {
  background: #fafbfa;
  border-bottom-color: #d7dcde;
}
[data-hml-executive] :is(.hm-brand,.hmb-brand,.site-brand) img {
  border: 1px solid #d8dcdc;
  border-radius: 3px;
}

[data-hml-executive] .hmc-hero {
  color: #f6f8f8;
  background: var(--hme-deep);
  padding-block: clamp(43px,6.3vw,102px);
  border-bottom: 3px solid var(--hme-red);
}
[data-hml-executive] .hmc-hero::before {
  inset: 0;
  background: linear-gradient(90deg,#101d27 0%,#101d27ef 31%,#101d2778 63%,#101d2740 100%),
    url(art/entrance.webp) right 53% / cover no-repeat;
  opacity: 1;
  filter: none;
  mask-image: none;
  mix-blend-mode: normal;
}
[data-hml-executive] .hmc-hero-layout {
  grid-template-columns: minmax(0,1.32fr) minmax(0,.68fr);
  gap: clamp(26px,6vw,104px);
}
[data-hml-executive] .hmc-hero h1 {
  color: #f6f8f8;
  max-width: 16.2ch;
  font-size: clamp(2.35rem,4.6vw,4.45rem);
  font-weight: 750;
  line-height: 1.02;
  letter-spacing: -.045em;
  text-wrap: balance;
}
[data-hml-executive] .hmc-hero h1::before {
  content: "";
  display: block;
  width: 54px;
  height: 3px;
  margin-bottom: 19px;
  background: var(--hme-pink);
}
[data-hml-executive] .hmc-hero h1 + p {
  margin-block: 20px 24px;
  color: #e1e8eb;
}
[data-hml-executive] body.hm-refined .hmc-hero .hmc-actions a.hmc-button-light {
  color: #f6f8f8;
  background: #142430b0;
  border-color: #b6c2c9;
}
[data-hml-executive] body.hm-refined .hmc-hero .hmc-actions a.hmc-button-light:hover { background: #2a4050; }
[data-hml-executive] .hmc-hero .hmc-fees {
  position: relative;
  align-self: end;
  padding: clamp(18px,2.3vw,30px);
  border: 1px solid #d0d9dc;
  border-top: 3px solid var(--hme-red);
  border-radius: 5px;
  background: linear-gradient(150deg,#fbfcfc,#edf0f0);
  color: var(--hme-ink);
  box-shadow: 0 18px 42px #0a11165e;
}
[data-hml-executive] .hmc-fees h2 {
  color: var(--hme-ink);
  margin-bottom: 13px;
  font-weight: 700;
  padding-right: 44px;
}
[data-hml-executive] .hmc-fees p { color: #455964; }
[data-hml-executive] .hmc-fees dd { color: var(--hme-red); }
[data-hml-executive] .hmc-fees::after {
  content: "";
  position: absolute;
  width: 34px;
  height: 34px;
  inset: 15px 17px auto auto;
  background: url(art/hm-monogram.webp) center / contain no-repeat;
  border: 1px solid #d0d5d5;
  border-radius: 2px;
  pointer-events: none;
}

[data-hml-executive] .hmc-services {
  background: linear-gradient(110deg,#f5f7f6 20%,#eef0f0f5 72%,#e7ebecdb), url(art/silver-concrete.webp) center / cover;
  padding-block: clamp(34px,5.6vw,82px);
}
[data-hml-executive] .hmc-services h2 { max-width: min(80%,34ch); }
[data-hml-executive] .hmc-card-grid { gap: clamp(13px,1.7vw,26px); }
[data-hml-executive] .hmc-card {
  padding: 0 19px 19px;
  grid-template-rows: auto auto 1fr auto;
  border-color: #d0d8dc;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 7px 22px #1229360c;
}
[data-hml-executive] .hmc-card::before {
  content: "";
  display: block;
  height: clamp(94px,9.2vw,134px);
  margin: 0 -19px 5px;
  background: linear-gradient(105deg,#0e1e2f50,#0e1e2f16), var(--hme-card-art) var(--hme-card-position,center) / cover no-repeat #192733;
  border-bottom: 2px solid var(--hme-red);
}
[data-hml-executive] .hmc-card:nth-child(1) { --hme-card-art: url(art/measurement.webp); }
[data-hml-executive] .hmc-card:nth-child(2) { --hme-card-art: url(art/record.webp); --hme-card-position: 50% 53%; }
[data-hml-executive] .hmc-card:nth-child(3) { --hme-card-art: url(art/site.webp); --hme-card-position: 46% 46%; }
[data-hml-executive] .hmc-card:nth-child(4) { --hme-card-art: url(art/quote.webp); --hme-card-position: 49% 63%; }
[data-hml-executive] .hmc-card:nth-child(5) { --hme-card-art: url(art/junction.webp); --hme-card-position: 50% 46%; }
[data-hml-executive] .hmc-card:nth-child(6) { --hme-card-art: url(art/scope.webp); --hme-card-position: 50% 46%; }
[data-hml-executive] .hmc-card h3 { font-size: clamp(1.06rem,1.5vw,1.22rem); }

[data-hml-executive] :is(.hm-review-product,.hm-journey-steps article,.hm-takeoff-example,.hm-service-link-card,.hmg-guide) {
  border-radius: 5px;
}
[data-hml-executive] .hm-review-product { box-shadow: 0 8px 28px #11242f0f; }
[data-hml-executive] :is(.hm-guide-intro,.hmg-intro) {
  background-image: linear-gradient(100deg,#f7f8f7 18%,#f3f5f5ed 60%,#e7ebedc9), url(art/silver-concrete.webp);
  background-size: cover;
}
[data-hml-executive] .hmg-intro { border-bottom: 2px solid var(--hme-red); }
[data-hml-executive] .hmg-guide { border-top: 1px solid #cbd2d4; }

[data-hml-executive] .hm-films {
  background: linear-gradient(136deg,#101c26,#1c303d);
  border-top: 2px solid var(--hme-red);
  color: #f3f6f7;
}
[data-hml-executive] body.hm-refined .hm-site #films .hm-films-head h2 { color: #f3f6f7; }
[data-hml-executive] body.hm-refined .hm-site #films .hm-films-head > div > p:last-child {
  color: #cfdadf;
}
[data-hml-executive] body.hm-refined .hm-site #films .hm-films-head .hm-kicker {
  color: var(--hme-pink) !important;
  -webkit-text-fill-color: currentColor;
}
[data-hml-executive] body.hm-refined .hm-site #films :is(.hm-scroll-toolbar > span,.hm-films-foot p) {
  color: #d9e3e7;
}
[data-hml-executive] body.hm-refined .hm-site #films .hm-films-foot .hm-film-jump {
  color: #f1c4cf;
}
[data-hml-executive] .hm-site .hm-films-grid { grid-auto-columns: calc((100% - 42px) / 3); }
[data-hml-executive] .hm-films .hm-film-card {
  background: #f4f6f6;
  border: 1px solid #c8d3d8;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 10px 34px #07111960;
}
[data-hml-executive] .hm-films .hm-film-card video {
  border-radius: 0;
  border-bottom: 2px solid var(--hme-red);
}
[data-hml-executive] .hm-films .hm-film-copy { color: var(--hme-ink); }
[data-hml-executive] .hm-films .hm-film-meta {
  color: var(--hme-red);
  min-height: 3em;
  padding-right: 42px;
}

/* Sample the same approved HM graphic used on the Shorts' closing frames. */
[data-hml-executive] [data-hme-mark] { position: relative; isolation: isolate; }
[data-hml-executive] [data-hme-mark]::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
  inset: 18px max(20px,calc((100% - 1280px) / 2)) auto auto;
  width: clamp(62px,9vw,118px);
  height: auto;
  aspect-ratio: 1;
  background: url(art/hm-monogram.webp) center / contain no-repeat;
  mask-image: radial-gradient(ellipse at center,#000 36%,#000d 54%,transparent 76%);
  opacity: .27;
  mix-blend-mode: multiply;
}
[data-hml-executive] [data-hme-mark="dark"]::after {
  inset-block-start: 22px;
  mix-blend-mode: screen;
  opacity: .3;
}
[data-hml-executive] [data-hme-mark="badge"]::after {
  inset: 15px 16px auto auto;
  width: 29px;
  z-index: 0;
  background-size: contain;
  border: 1px solid #d6dbdb;
  border-radius: 2px;
  mask-image: none;
  mix-blend-mode: normal;
  opacity: .85;
}
[data-hml-executive] .hm-footer[data-hme-mark]::after,
[data-hml-executive] .hmb-footer[data-hme-mark]::after {
  inset-block-start: auto;
  inset-block-end: 18px;
}

@media (min-width: 1440px) {
  [data-hml-executive] .hmc-hero::before { background-position: center, 72% 53%; }
}
@media (max-width: 1040px) {
  [data-hml-executive] .hm-site .hm-films-grid { grid-auto-columns: calc((100% - 21px) / 2); }
}
@media (max-width: 760px) {
  [data-hml-executive] .hmc-hero-layout { grid-template-columns: minmax(0,1fr); gap: 27px; }
  [data-hml-executive] .hmc-hero::before {
    background: linear-gradient(165deg,#101d27de 0%,#101d27ce 46%,#101d275f 100%),
      url(art/entrance.webp) 56% center / cover no-repeat;
  }
  [data-hml-executive] .hmc-hero h1 { max-width: 19ch; }
  [data-hml-executive] .hmc-hero h1::before { margin-bottom: 14px; }
  [data-hml-executive] .hmc-hero h1 + p { margin-block: 16px 18px; }
  [data-hml-executive] [data-hme-mark]:not([data-hme-mark="badge"])::after {
    inset-inline-end: 10px;
    opacity: .18;
  }
  [data-hml-executive] .hmc-services h2 { max-width: 16ch; }
  [data-hml-executive] .hm-site .hm-films-grid { grid-auto-columns: calc(100% - 10px); }
}
@media print {
  [data-hml-executive] [data-hme-mark]::after { content: none; }
}

:is(html[data-hm-public-path="/"] section#about,
html[data-hm-public-path="/"] section#clear-commitments,
html[data-hm-public-path="/"] section#colleague-recommendations,
html[data-hm-public-path="/"] section#contact,
html[data-hm-public-path="/"] section#faq,
html[data-hm-public-path="/"] section#find-help,
html[data-hm-public-path="/"] section#fixed-reviews,
html[data-hm-public-path="/"] section#individual-qs-tasks,
html[data-hm-public-path="/"] section#paperwork,
html[data-hm-public-path="/"] section#service-details,
html[data-hm-public-path="/"] section#service-picker,
html[data-hm-public-path="/"] section#services,
html[data-hm-public-path="/"] section#shortlist,
html[data-hm-public-path="/"] section#takeoffs-and-boqs,
html[data-hm-public-path="/"] section#the-detail,
html[data-hm-public-path="/"] section.hm-section.hm-fix-plan,
html[data-hm-public-path="/"] section.hm-section.hm-journey-steps,
html[data-hm-public-path="/"] section.hme-options,
html[data-hm-public-path="/business-policies"] section.hp-hero,
html[data-hm-public-path="/callum-wilson"] main.wrap,
html[data-hm-public-path="/customer-promise"] section.hp-hero,
html[data-hm-public-path="/practical-guides"] section.hmg-intro.hmg-wrap,
html[data-hm-public-path="/practical-guides"] section.hmg-next,
html[data-hm-public-path="/privacy"] section.hm-legal-intro,
html[data-hm-public-path="/secure-intake"] main#main,
html[data-hm-public-path="/service-guide"] div.hm-guide-intro,
html[data-hm-public-path="/service-guide"] section#individual-qs-tasks,
html[data-hm-public-path="/service-guide"] section#service-details,
html[data-hm-public-path="/service-terms"] header,
html[data-hm-public-path="/service-terms"] main,
html[data-hm-public-path="/services/extra-work-variations"] section.hero,
html[data-hm-public-path="/services/individual-qs-tasks"] section.hero,
html[data-hm-public-path="/services/payment-application-support"] section.hero,
html[data-hm-public-path="/services/project-check"] section.hero,
html[data-hm-public-path="/website-terms"] section.hm-legal-intro) {
  background-image: linear-gradient(110deg,#f7f8f8ee 4%,#f4f6f6de 47%,#edf1f1a8 100%),
    url(art/silver-concrete.webp) !important;
  background-size: auto, max(100%, 960px) auto;
  background-position: center, center top;
  background-repeat: no-repeat;
}
:is(html[data-hm-public-path="/"] footer.hm-footer,
html[data-hm-public-path="/"] section#films,
html[data-hm-public-path="/business-policies"] footer.hp-footer,
html[data-hm-public-path="/callum-wilson"] footer,
html[data-hm-public-path="/customer-promise"] footer.hp-footer,
html[data-hm-public-path="/practical-guides"] footer.hmb-footer,
html[data-hm-public-path="/privacy"] footer.hmb-footer,
html[data-hm-public-path="/secure-intake"] footer.hmb-footer,
html[data-hm-public-path="/service-guide"] footer.hm-guide-footer,
html[data-hm-public-path="/services/extra-work-variations"] footer.site-footer,
html[data-hm-public-path="/services/individual-qs-tasks"] footer.site-footer,
html[data-hm-public-path="/services/payment-application-support"] footer.site-footer,
html[data-hm-public-path="/services/project-check"] footer.site-footer,
html[data-hm-public-path="/website-terms"] footer.hmb-footer) {
  background-image: linear-gradient(106deg,#101d27f7 9%,#182a36eb 57%,#243b49c5 100%),
    url(art/silver-concrete.webp) !important;
  background-size: cover;
  background-position: center, right center;
  background-repeat: no-repeat;
}
[data-hml-silver] .hmc-fees::after,
[data-hml-silver] [data-hm-watermark]::after,
[data-hml-silver] [data-hme-mark]::after { content: none !important; }
[data-hml-silver] .hmc-fees h2 { padding-right: 0; }

[data-hml-silver] .hme-film-topline {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-block: 0 15px;
  min-block-size: 34px;
}
[data-hml-silver] .hme-film-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(8px,1vw,14px);
  color: #435965;
  font-size: .8rem;
  line-height: 1.2;
  white-space: nowrap;
}
[data-hml-silver] .hme-film-controls a {
  display: inline-grid;
  place-items: center;
  min-width: 39px;
  min-height: 32px;
  padding-inline: 7px;
  color: #8a2435;
  border: 1px solid #a8737c;
  border-radius: 3px;
  font-weight: 720;
  text-decoration: none;
}
[data-hml-silver] .hme-film-controls a:hover { background: #f4e9eb; }
[data-hml-silver] .hme-film-length { font-variant-numeric: tabular-nums; }

[data-hml-silver] #films #film-enquiry a.hm-text-link {
  color: #f2d8df !important;
  -webkit-text-fill-color: #f2d8df !important;
  text-decoration-color: #eb9eaf;
  text-underline-offset: .24em;
}
[data-hml-silver] #films #film-enquiry a.hm-text-link:hover {
  color: #fff !important;
}

[data-hml-silver] body.hm-refined .hm-site :is(#fixed-reviews,#shortlist)::after {
  background-image: none;
}
[data-hml-silver] :is(#fixed-reviews,#shortlist) {
  --hme-exterior-gap: 22px;
}
[data-hml-silver] :is(#fixed-reviews,#shortlist) .hm-section-heading {
  align-items: end;
  column-gap: var(--hme-exterior-gap);
}
[data-hml-silver] :is(#fixed-reviews,#shortlist) .hm-section-heading > p {
  margin: 0;
}
[data-hml-silver] .hm-site #fixed-reviews .hm-review-products {
  column-gap: var(--hme-exterior-gap);
}
[data-hml-silver] .hm-site #films :is(.hm-films-head,.hm-scroll-toolbar,.hm-films-foot) {
  padding-inline: 4px;
}
[data-hml-silver] #films {
  --film-columns: 3;
  --film-gap: 21px;
  --film-inset: 4px;
}
[data-hml-silver] .hm-site #films .hm-films-grid {
  padding-inline: var(--film-inset);
  /* The carousel's baseline stylesheet sets its own important gap. */
  column-gap: var(--film-gap) !important;
  scroll-padding-inline: var(--film-inset) !important;
  grid-auto-columns: calc((100% + var(--film-gap)) / var(--film-columns) - var(--film-gap));
}
[data-hml-silver] .hm-site #films .hm-films-foot {
  display: grid;
  grid-template-columns: repeat(var(--film-columns), minmax(0, 1fr));
  column-gap: var(--film-gap);
  align-items: baseline;
  scroll-margin-block-start: 55vh;
}
[data-hml-silver] .hm-site #films .hm-films-actions {
  grid-column: -2 / -1;
  display: grid;
  justify-items: start;
  gap: 12px;
}
@media (max-width: 1040px) {
  [data-hml-silver] #films { --film-columns: 2; }
}
@media (max-width: 760px) {
  [data-hml-silver] #films { --film-columns: 1; }
}
[data-hml-silver] .hm-site #the-detail .hm-detail-grid { align-items: start; }
[data-hml-silver] .hm-site #the-detail .hm-detail-grid > :first-child { align-self: start; }

[data-hml-silver] #fixed-reviews .hm-review-topline {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: baseline;
  gap: 12px;
}
[data-hml-silver] #fixed-reviews .hm-review-topline > :last-child {
  text-align: end;
  white-space: nowrap;
}
[data-hml-silver] #fixed-reviews .hm-card-actions {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 14px;
}
[data-hml-silver] #fixed-reviews .hm-card-actions .hm-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  justify-self: stretch;
  min-height: 46px;
  gap: 12px;
}
[data-hml-silver] #shortlist .hm-announcement:not(:empty) {
  display: block;
  width: fit-content;
  margin-block: 0 16px;
  padding: 7px 11px;
  background: #f8edf0;
  border-inline-start: 2px solid #8a2435;
  color: #772335;
}

[data-hml-silver] #haven-process-example .hm-output-line {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 12px;
  align-items: baseline;
}
[data-hml-silver] #haven-process-example .hm-output-line strong { text-align: end; }
[data-hml-silver] #haven-process-example :is(.hm-visual-label,.hm-output-top) {
  align-items: baseline;
}
[data-hml-silver] #haven-process-example :is(.hm-visual-label,.hm-output-top,.hm-output-foot) > :last-child {
  text-align: end;
}
[data-hml-silver] #haven-process-example .hm-motion-controls {
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
}
[data-hml-silver] #haven-process-example .hm-motion-controls button {
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
}
[data-hml-silver] #haven-process-example .hm-motion-controls > button {
  min-inline-size: 116px;
}

@media (min-width: 861px) {
  [data-hml-silver] :is(#fixed-reviews,#shortlist) > .hm-wrap {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--hme-exterior-gap);
  }
  [data-hml-silver] :is(#fixed-reviews,#shortlist) > .hm-wrap > * {
    grid-column: 1 / -1;
  }
  [data-hml-silver] .hm-site :is(#fixed-reviews,#shortlist) :is(.hm-section-heading,.hm-review-products,.hm-basket-grid) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-columns: subgrid;
    column-gap: var(--hme-exterior-gap);
  }
  [data-hml-silver] :is(#fixed-reviews,#shortlist) .hm-section-heading > p {
    justify-self: start;
    padding-inline: 0;
  }
  @supports (grid-template-rows: subgrid) {
    [data-hml-silver] #fixed-reviews .hm-review-products > .hm-review-product {
      display: grid;
      grid-row: span 8;
      grid-template-rows: subgrid;
      row-gap: 12px;
    }
    [data-hml-silver] #fixed-reviews .hm-review-product > * { margin-block: 0; }
  }
}
@media (max-width: 860px) {
  [data-hml-silver] .hm-site :is(#fixed-reviews,#shortlist) :is(.hm-section-heading,.hm-review-products,.hm-basket-grid) {
    grid-template-columns: minmax(0,1fr);
    gap: 12px;
  }
}

[data-hml-silver] .hme-options {
  background: linear-gradient(110deg,#f7f8f8,#e8edef);
  padding-block: clamp(29px,4.8vw,67px);
  border-block: 1px solid #cbd4d7;
  scroll-margin-top: 88px;
}
[data-hml-silver] .hme-options > .hm-wrap {
  max-width: 1024px;
}
[data-hml-silver] .hme-option {
  border: 1px solid #c9d3d7;
  border-radius: 4px;
  background: #fbfcfc;
}
[data-hml-silver] .hme-option + .hme-option { margin-top: 9px; }
[data-hml-silver] .hme-option > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 19px;
  min-height: 47px;
  color: #142936;
  font-size: .97rem;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}
[data-hml-silver] .hme-option > summary::-webkit-details-marker { display: none; }
[data-hml-silver] .hme-option > summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border: solid #8a2435;
  border-width: 0 2px 2px 0;
  transform: translateY(-2px) rotate(45deg);
  flex: none;
}
[data-hml-silver] .hme-option[open] > summary::after {
  transform: translateY(2px) rotate(225deg);
}
[data-hml-silver] .hme-option[open] > summary { border-bottom: 1px solid #c9d3d7; }
[data-hml-silver] .hme-option > :is(section,.hm-section) {
  margin: 0;
  border: 0;
  scroll-margin-top: 100px;
}
@media (max-width: 450px) {
  [data-hml-silver] .hme-option > summary { padding-inline: 14px; }
}
