/* Public pages: one type scale at every width, plus viewport fixes. Loaded last, after any inline <style>.
   Not for app.html (the app follows the Harvey parity rules). */
:root{
  --mk-h1:clamp(34px,4.2vw,56px);
  --mk-h2:clamp(28px,3vw,40px);
  --mk-h2-doc:clamp(22px,2.2vw,28px);
  --mk-h3:clamp(20px,1.7vw,22px);
  --mk-lead:clamp(16px,1.35vw,18px);
}
/* page titles */
html body h1.bs-h1,html body h1.bs-about-h1,html body h1.bs-vs-h1,html body .rd-left h1,html body .sp-hero h1,html body .sp-art h1,
html body .bs-priv-hero h1,html body .bs-dpa-hero h1,html body .bs-ck-hero h1{font-size:var(--mk-h1)!important;line-height:1.1!important;letter-spacing:-.02em!important;overflow-wrap:break-word;min-width:0}
/* section titles */
html body h2.bs-h2,html body .bs-cta h2.bs-h2,html body .bs-strip h2,html body h2.in-title,html body h2.heritage-title,html body h2.bs-mx-h,
html body .bs-about-story-sticky h2,html body .bs-cmp-soon-box h2,html body .sp-video-text h2,html body .sp-sec h2,html body .bs-wrap>section>h2,html body .bs-wrap>h2{font-size:var(--mk-h2)!important;line-height:1.12!important;letter-spacing:-.01em!important}
/* long documents and question groups: one step down */
html body .bs-priv-content h2,html body .bs-dpa-body h2,html body .bs-ck-body h2,html body .sp-art h2,html body .sp-faq h2,html body h2.bs-vs-h2{font-size:var(--mk-h2-doc)!important;line-height:1.2!important}
/* card titles */
html body .bs-top h3,html body .bs-sol-card h3,html body .bs-prod-item h3,html body .bs-step h3,html body .bs-pillar-card h3,html body .bs-corp h3,
html body .in-card h3,html body .bs-feat h3,html body .sp-cat-top h2,html body .sp-banner h3,html body .bs-dsar-card h3{font-size:var(--mk-h3)!important;line-height:1.25!important;letter-spacing:-.01em!important}
/* intro and supporting sentences */
html body .bs-lead,html body .bs-sub,html body .bs-about-lead,html body .bs-vs-lead,html body .bs-sovereign-text,html body .lead-p{font-size:var(--mk-lead)!important;line-height:1.55!important}
.bs-mx-tag{font-size:11.5px}

/* readable footer headings on the dark footer */
html body footer h3,html body .bs-foot-col h3,html body .bs-foot-grid h3{color:#938f86!important}

/* no sideways scroll */
html,body{overflow-x:clip}
.bs-priv-grid>*,.bs-about-hero-grid>*{min-width:0}
@media (max-width:900px){
  .bs-priv-grid{grid-template-columns:minmax(0,1fr)!important}
  .bs-about-hero-grid>*{grid-column:1/-1!important}
}
@media (max-width:620px){
  .bs-ck-table,.bs-dpa-table{display:block;max-width:100%;overflow-x:auto}
  .bs-priv-content{overflow-wrap:anywhere}
  .bs-priv-content table{display:block;max-width:100%;overflow-x:auto}
  /* easier taps */
  footer a{display:inline-block;padding-block:7px}
  #bs-ann-x{min-width:36px;min-height:36px}
}
/* grid items must be allowed to shrink */
.bs-step,.bs-dsar-field{min-width:0}
.bs-dsar-field input,.bs-dsar-field select,.bs-dsar-field textarea{max-width:100%;min-width:0;box-sizing:border-box}
@media (max-width:900px){html body .bs-about-hero-grid{grid-template-columns:minmax(0,1fr)!important}}
@media (max-width:620px){.bs-dsar-grid{grid-template-columns:minmax(0,1fr)!important}.bs-ck-hero .bs-btn,.bs-ck-body .bs-btn,.bs-ck-banner-box .bs-btn{white-space:normal}}
/* Help Centre header: fits tablets, small laptops and narrow phones */
@media (max-width:1240px){
  html body .sp-header .in{gap:8px!important;padding-inline:16px!important}
  html body .sp-header .sp-logo .sp-submark{display:none!important}
  html body .sp-header .sp-nav{margin-left:0!important;gap:0!important}
  html body .sp-header .sp-nav .bs-nav-b{padding-inline:6px!important}
  html body .sp-header .sp-platform-link{display:none!important}
}
@media (max-width:400px){html body .sp-header .in{padding-inline:10px!important}.sp-right{margin-left:auto!important}html body .sp-header .sp-logo{font-size:18px!important;gap:6px!important;min-width:0}}@media (max-width:360px){main .bs-btn{white-space:normal;text-align:center}}
.bs-step-preview *{min-width:0}
@media (max-width:1100px){:has(>.bs-step-action-btn){flex-wrap:wrap}}
/* the chat launcher must not sit on top of the cookie buttons */
body.bs-cookie-open #bs-concierge-root{display:none!important}

/* keyboard focus: a visible ring on light and dark surfaces */
html body a:focus-visible,html body button:focus-visible,html body input:focus-visible,html body select:focus-visible,html body textarea:focus-visible,html body summary:focus-visible,html body video:focus-visible,html body .bs-btn.bs-login-btn:focus-visible{outline:2px solid #0f0e0d!important;outline-offset:2px!important}
html body #bs-ann a:focus-visible,html body #bs-ann button:focus-visible,html body footer a:focus-visible,html body .bs-cta a:focus-visible,html body .sp-video-banner :focus-visible{outline-color:#fff!important}
/* field edges at 3:1 or better */
html body main input:not([type=checkbox]):not([type=radio]),html body main select,html body main textarea,html body input#sp-q{border-color:#8a877f!important}
/* small grey text */
.hf-matter-no,.hf-vault-desc,.bs-score-lbl,.bs-rating-sub{color:#625f58!important}
html body .sp-logo .sp-submark{color:#625f58!important}
html body header button.bs-btn.bs-btn-line.bs-login-btn:focus-visible{outline:2px solid #0f0e0d!important;outline-offset:2px!important;box-shadow:none}
html body .rd-f input:not([type=checkbox]),html body .rd-f select,html body .rd-f textarea,html body main .sp-search{border-color:#8a877f!important}
.bs-mx-u b{color:#69655e!important}
/* small grey text inside the product illustrations, 4.5:1 */
.hf-ci-stat span,.hf-ci-tabs span,.bs-step-file-meta,.bs-step-file-meta span,.bs-mi span{color:#66635d!important}
.bs-card b,.bs-mf b,main [class*=card]>b{color:#605d57}
