/* Heading styles shared by the service pages and the admin editor.
   To change a colour or size, edit these values (and bump ?v= where this file is linked). */
:root{--vk-h-colour:#1f3864;--vk-sub-colour:#2e74b5}

/* Heading */
body .vs-section-body h3,body .vs-accordion-body h3,
body .ss-body h3,body .ss-accordion-body h3,
body.vk-editor h3{
  color:var(--vk-h-colour)!important;font-size:20px!important;line-height:1.35!important;
  font-weight:800!important;margin:26px 0 12px!important;text-align:left!important}

/* Sub-heading */
body .vs-section-body h4,body .vs-accordion-body h4,
body .ss-body h4,body .ss-accordion-body h4,
body.vk-editor h4{
  color:var(--vk-sub-colour)!important;font-size:16.5px!important;line-height:1.4!important;
  font-weight:700!important;margin:20px 0 9px!important;text-align:left!important}

/* bold tags inside a heading must not override the heading colour or size */
body .vs-section-body :is(h3,h4) *,body .vs-accordion-body :is(h3,h4) *,
body .ss-body :is(h3,h4) *,body .ss-accordion-body :is(h3,h4) *,
body.vk-editor :is(h3,h4) *{color:inherit!important;font-size:inherit!important;font-weight:inherit!important}

/* "On This Page": headings listed under each section */
.vk-toc-sub{margin:3px 0 8px}
.vk-toc-sub button{display:block;width:100%;margin:0;padding:6px 8px 6px 14px;border:0;border-left:2px solid #e3e9f1;
  background:transparent;color:#44536c;font-size:12px;line-height:1.4;text-align:left;cursor:pointer}
.vk-toc-sub button.vk-level-4{padding-left:26px;color:#2e74b5;font-size:11.5px}
.vk-toc-sub button:hover,.vk-toc-sub button.vk-current{background:#eef4fd;color:#061a3a;border-left-color:#f5b400}
.vk-toc-sub button.vk-current{font-weight:700}

/* desktop: the side column fits the screen and a long list scrolls inside its box */
@media(min-width:992px){
  .vk-has-index{display:flex;flex-direction:column;max-height:calc(100vh - 106px)}
  .vk-has-index > :first-child{display:flex;flex-direction:column;flex:0 1 auto;min-height:170px}
  .vk-has-index > :first-child > *{flex:0 0 auto}
  .vk-has-index > :first-child > .vk-toc-list{position:relative;flex:0 1 auto;min-height:0;overflow-y:auto;
    overscroll-behavior:contain;scrollbar-width:thin}
  .vk-has-index > :last-child{flex:0 0 auto}
}
/* short laptop screens: shrink the consultation card so more of the list shows */
@media(min-width:992px) and (max-height:760px){
  .vk-has-index > .vs-help,.vk-has-index > .ss-help{margin-top:10px;padding:12px 14px}
  .vk-has-index .vs-help-icon,.vk-has-index > .ss-help > i,
  .vk-has-index > .vs-help p,.vk-has-index > .ss-help p{display:none}
  .vk-has-index > .vs-help h4,.vk-has-index > .ss-help h4{margin:0 0 8px}
}

/* editor only: make "new page section" headings recognisable */
body.vk-editor h2{color:var(--vk-h-colour);font-size:24px;font-weight:800}
