/* UKProfitTools v0.23.3 — compact, accessible desktop dropdowns & mobile disclosure. */
.site-header{position:relative;z-index:120;overflow:visible}
.site-header .header-row.ukpt-dd-header{position:relative;display:flex;align-items:center;gap:clamp(12px,2vw,26px);justify-content:space-between;flex-wrap:nowrap;min-height:76px;overflow:visible}
.site-header .ukpt-dd-header .brand{flex:0 1 auto;min-width:160px}
.site-header .ukpt-dd-header .brand-logo{height:43px;width:auto;max-width:min(100%,290px)}
.site-header .site-nav.ukpt-nav-v0231{
  flex:0 1 auto;display:flex;align-items:stretch;justify-content:flex-end;gap:clamp(4px,.9vw,16px);
  flex-wrap:nowrap;min-width:0;margin:0;color:#dbecf0;font-size:14px;overflow:visible;
}
.site-header .site-nav.ukpt-nav-v0231 .ukpt-dd-home,
.site-header .site-nav.ukpt-nav-v0231 .ukpt-dd-group>summary{
  position:relative;box-sizing:border-box;display:inline-flex;align-items:center;gap:8px;
  min-height:48px;padding:10px clamp(7px,.85vw,13px);border:0;border-radius:0;
  background:none;color:#d6e9f0;box-shadow:none;
  font-family:inherit;font-size:13.5px;font-weight:700;white-space:nowrap;line-height:1.2;
  text-decoration:none;cursor:pointer;transition:color .15s ease;
}
.site-header .site-nav.ukpt-nav-v0231 .ukpt-dd-home:hover,
.site-header .site-nav.ukpt-nav-v0231 .ukpt-dd-group>summary:hover,
.site-header .site-nav.ukpt-nav-v0231 .ukpt-dd-group[open]>summary{color:#80f2dc;background:none;box-shadow:none}
.site-header .site-nav.ukpt-nav-v0231 .ukpt-dd-home:focus-visible,
.site-header .site-nav.ukpt-nav-v0231 .ukpt-dd-group>summary:focus-visible,
.site-header .site-nav.ukpt-nav-v0231 .ukpt-dd-panel a:focus-visible,
.site-header .ukpt-dd-mobile-toggle:focus-visible{outline:2px solid #78edd5;outline-offset:3px;border-radius:5px}
.site-header .site-nav.ukpt-nav-v0231 .ukpt-dd-home::after,
.site-header .site-nav.ukpt-nav-v0231 .ukpt-dd-group>summary::after{
  content:"";position:absolute;left:10px;right:10px;bottom:3px;height:3px;border-radius:3px;
  background:transparent;transition:background .15s ease
}
.site-header .site-nav.ukpt-nav-v0231 .ukpt-dd-home.ukpt-dd-active,
.site-header .site-nav.ukpt-nav-v0231 .ukpt-dd-group.ukpt-dd-active>summary{color:#8af4dd}
.site-header .site-nav.ukpt-nav-v0231 .ukpt-dd-home.ukpt-dd-active::after,
.site-header .site-nav.ukpt-nav-v0231 .ukpt-dd-group.ukpt-dd-active>summary::after{background:#36d8b7}
.site-header .site-nav.ukpt-nav-v0231 .ukpt-dd-group{position:relative;flex:none;min-width:0;margin:0;padding:0}
.site-header .site-nav.ukpt-nav-v0231 .ukpt-dd-group>summary{list-style:none}
.site-header .site-nav.ukpt-nav-v0231 .ukpt-dd-group>summary::-webkit-details-marker{display:none}
.site-header .ukpt-dd-chevron{width:7px;height:7px;display:inline-block;flex:none;transform:translateY(-2px) rotate(45deg);border-right:2px solid currentColor;border-bottom:2px solid currentColor;opacity:.78;transition:transform .16s ease}
.site-header .ukpt-dd-group[open] .ukpt-dd-chevron{transform:translateY(2px) rotate(225deg)}
.site-header .site-nav.ukpt-nav-v0231 .ukpt-dd-panel{
  position:absolute;display:block;top:calc(100% + 7px);left:50%;transform:translateX(-50%);z-index:150;
  width:340px;max-width:calc(100vw - 30px);padding:16px;border:1px solid #30546a;border-radius:16px;
  background:#102b40;color:#e2f4f1;box-shadow:0 22px 46px rgba(3,14,26,.42);
}
.site-header .site-nav.ukpt-nav-v0231 .ukpt-dd-wide .ukpt-dd-panel{width:620px}
.site-header .site-nav.ukpt-nav-v0231 .ukpt-dd-compact .ukpt-dd-panel{width:305px}
.site-header .site-nav.ukpt-nav-v0231 .ukpt-dd-group:nth-last-child(-n+2)>.ukpt-dd-panel{right:0;left:auto;transform:none}
.site-header .site-nav.ukpt-nav-v0231 .ukpt-dd-panel::before{
  content:"";position:absolute;inset:0 0 auto 0;height:4px;border-radius:16px 16px 0 0;
  background:linear-gradient(90deg,#43dab9,#1c8293 80%);
}
.site-header .site-nav.ukpt-nav-v0231 .ukpt-dd-panel a{
  box-sizing:border-box;display:flex;align-items:center;min-height:0;margin:0;white-space:normal;
  background:none;border:0;border-radius:9px;box-shadow:none;text-decoration:none;
  padding:10px;color:#dceff2;font-family:inherit;font-size:13px;font-weight:600;line-height:1.4;
}
.site-header .site-nav.ukpt-nav-v0231 .ukpt-dd-panel a:hover,
.site-header .site-nav.ukpt-nav-v0231 .ukpt-dd-panel a:focus-visible{
  background:#19495a;color:#8ff9e1;border-color:transparent;box-shadow:none;
}
.site-header .site-nav.ukpt-nav-v0231 .ukpt-dd-panel .ukpt-dd-all{
  display:flex;align-items:center;justify-content:space-between;gap:13px;margin:1px 0 12px;padding:14px 15px;
  background:#194456;border:1px solid rgba(75,210,184,.28);border-radius:12px;color:#eafff7;
}
.site-header .site-nav.ukpt-nav-v0231 .ukpt-dd-all strong{display:block;color:#e7fff8;font-size:14px;line-height:1.4}
.site-header .site-nav.ukpt-nav-v0231 .ukpt-dd-all small{display:block;color:#a8c9cf;font-weight:400;font-size:12px;margin-top:3px}
.site-header .site-nav.ukpt-nav-v0231 .ukpt-dd-arrow{font-size:21px;font-weight:400;color:#6df0cf}
.site-header .ukpt-dd-columns{display:grid;grid-template-columns:1fr;gap:12px}
.site-header .ukpt-dd-wide .ukpt-dd-columns{grid-template-columns:1fr 1fr;gap:10px 18px}
.site-header .ukpt-dd-section{min-width:0}
.site-header .ukpt-dd-section-title{padding:4px 10px 8px;color:#7ddccc;font-size:10px;letter-spacing:.13em;font-weight:800;text-transform:uppercase}
.site-header .site-nav.ukpt-nav-v0231 .ukpt-dd-panel .ukpt-dd-link{display:block;padding:9px 10px}
.site-header .ukpt-dd-label{display:block}
.site-header .ukpt-dd-desc{display:block;font-size:11px;color:#a0bec8;font-weight:400;margin-top:2px}
.site-header .site-nav.ukpt-nav-v0231 .ukpt-dd-panel .ukpt-dd-item-active{background:#164b52;color:#86f4d4}
.site-header .ukpt-dd-mobile-toggle{display:none}
@media(max-width:1100px){
  .site-header .ukpt-dd-header .brand-logo{height:37px;max-width:240px}
  .site-header .site-nav.ukpt-nav-v0231{gap:3px}
  .site-header .site-nav.ukpt-nav-v0231 .ukpt-dd-home,
  .site-header .site-nav.ukpt-nav-v0231 .ukpt-dd-group>summary{font-size:12.5px;padding-left:8px;padding-right:8px}
}
@media(max-width:720px){
  .site-header .header-row.ukpt-dd-header{min-height:66px;flex-wrap:nowrap;padding-top:8px;padding-bottom:8px;gap:10px}
  .site-header .ukpt-dd-header .brand-logo{height:39px;max-width:255px}
  .site-header .ukpt-dd-mobile-toggle{
    display:inline-flex;align-items:center;gap:11px;flex:none;margin-left:auto;
    padding:10px 15px;border:1px solid #286274;border-radius:11px;
    background:#123a4a;color:#dff9f4;font-weight:750;font-size:14px;cursor:pointer;
  }
  .site-header .ukpt-dd-hamburger{display:grid;gap:4px}
  .site-header .ukpt-dd-hamburger i{display:block;width:17px;height:2px;border-radius:2px;background:#58e0c2}
  .site-header .site-nav.ukpt-nav-v0231{
    display:none;position:absolute;top:calc(100% - 1px);right:0;left:auto;z-index:150;
    width:min(450px,calc(100vw - 24px));max-height:min(75vh,680px);overflow-y:auto;
    padding:13px;flex-direction:column;align-items:stretch;gap:0;
    background:#0e293e;border:1px solid #2d576a;border-radius:0 0 15px 15px;
    box-shadow:0 20px 38px rgba(2,14,26,.42);
  }
  .site-header .ukpt-dd-mobile-open .site-nav.ukpt-nav-v0231{display:flex}
  .site-header .site-nav.ukpt-nav-v0231 .ukpt-dd-home,
  .site-header .site-nav.ukpt-nav-v0231 .ukpt-dd-group>summary{
    width:100%;justify-content:space-between;min-height:44px;padding:12px 14px;font-size:14px;
  }
  .site-header .site-nav.ukpt-nav-v0231 .ukpt-dd-home.ukpt-dd-active,
  .site-header .site-nav.ukpt-nav-v0231 .ukpt-dd-group.ukpt-dd-active>summary{
    background:#173e50;border-radius:8px;
  }
  .site-header .site-nav.ukpt-nav-v0231 .ukpt-dd-home::after,
  .site-header .site-nav.ukpt-nav-v0231 .ukpt-dd-group>summary::after{left:14px;right:auto;bottom:5px;width:38px;height:2px}
  .site-header .site-nav.ukpt-nav-v0231 .ukpt-dd-group{position:static;width:100%}
  .site-header .site-nav.ukpt-nav-v0231 .ukpt-dd-panel,
  .site-header .site-nav.ukpt-nav-v0231 .ukpt-dd-wide .ukpt-dd-panel,
  .site-header .site-nav.ukpt-nav-v0231 .ukpt-dd-compact .ukpt-dd-panel,
  .site-header .site-nav.ukpt-nav-v0231 .ukpt-dd-group:nth-last-child(-n+2)>.ukpt-dd-panel{
    position:static;inset:auto;transform:none;box-shadow:none;width:100%;max-width:none;
    padding:12px;margin:0 0 8px;border-radius:10px;background:#132f42;
  }
  .site-header .ukpt-dd-wide .ukpt-dd-columns{grid-template-columns:1fr}
  .site-header .site-nav.ukpt-nav-v0231 .ukpt-dd-panel .ukpt-dd-all{margin-bottom:8px}
  .site-header .site-nav.ukpt-nav-v0231 .ukpt-dd-panel a{font-size:13px}
}
@media(max-width:520px){
  .site-header .ukpt-dd-header .brand-logo{height:33px;max-width:210px}
  .site-header .ukpt-dd-mobile-toggle{padding:9px 11px;font-size:13px}
  .site-header .site-nav.ukpt-nav-v0231{right:-4px}
}
@media(prefers-reduced-motion:reduce){.site-header .ukpt-nav-v0231 *{transition:none!important}}
/* Native-details content must stay hidden when collapsed, regardless of old site CSS. */
.site-header .site-nav.ukpt-nav-v0231 .ukpt-dd-group:not([open])>.ukpt-dd-panel{display:none!important}

/* Branded, accessible social links in the wide header and sitewide footer. */
.ukpt-social-buttons{display:inline-flex;flex-wrap:wrap;gap:8px;align-items:center;vertical-align:middle}
.ukpt-social-button{display:inline-flex!important;align-items:center!important;justify-content:center!important;
  width:38px;height:38px;min-height:38px!important;padding:7px!important;margin:0!important;
  border:1px solid rgba(103,229,205,.37)!important;border-radius:12px!important;
  background:#133c4d!important;color:#77efda!important;box-shadow:none!important;
  text-decoration:none!important;line-height:1!important;transition:background-color .16s,border-color .16s!important;
}
.ukpt-social-button:hover,.ukpt-social-button:focus-visible{background:#22675e!important;color:#ffffff!important;border-color:#77efda!important;outline-offset:3px}
.ukpt-social-button svg{display:block;flex:none;fill:none}
.ukpt-social-button .ukpt-social-name{position:absolute;white-space:nowrap;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}
.site-header .ukpt-social-top .ukpt-social-button{width:36px;height:36px;min-height:36px!important;border-radius:11px!important}
footer .ukpt-social-footer{display:inline-flex!important;align-items:center!important;gap:9px!important;flex-wrap:wrap;white-space:normal}
footer .ukpt-social-footer .ukpt-social-footer-label{color:#bfdddf;font-weight:700;white-space:nowrap}
footer .ukpt-social-footer .ukpt-social-buttons{gap:7px}
footer .ukpt-social-footer .ukpt-social-button{width:35px;height:35px;min-height:35px!important;border-radius:10px!important}
footer .footer-row{align-items:center;gap:16px;flex-wrap:wrap}


/* v0.23.3: preserve the 0.23.1 single-row laptop dropdown, without oversized buttons. */
.site-header .header-row.ukpt-dd-header{
  display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;
  width:calc(100% - 32px);max-width:1540px;margin:0 auto;min-height:76px;gap:14px;
}
.site-header .ukpt-dd-header .brand{flex:0 1 auto;min-width:0}
.site-header .ukpt-dd-header .brand-logo{width:auto;height:47px;max-width:310px;object-fit:contain;object-position:left center}
.site-header .site-nav.ukpt-nav-v0231{flex:0 0 auto;margin-left:auto;gap:clamp(2px,.7vw,10px)}
.site-header .site-nav.ukpt-nav-v0231 .ukpt-dd-home,
.site-header .site-nav.ukpt-nav-v0231 .ukpt-dd-group>summary{font-size:13px;padding:9px clamp(6px,.65vw,11px);min-height:46px;gap:7px}
/* Three sections across rather than two long columns; keep flyout inside the visible screen. */
.site-header .site-nav.ukpt-nav-v0231 .ukpt-dd-wide>.ukpt-dd-panel{
  width:min(780px,calc(100vw - 24px));max-width:calc(100vw - 24px);
  max-height:calc(100dvh - 102px);overflow-y:auto;overscroll-behavior:contain;
  scrollbar-width:thin;scrollbar-color:#477d8c #102b40
}
.site-header .ukpt-dd-wide .ukpt-dd-columns{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.site-header .ukpt-dd-wide .ukpt-dd-panel .ukpt-dd-all{padding:11px 12px;margin-bottom:9px}
.site-header .ukpt-dd-wide .ukpt-dd-section-title{padding:4px 7px 7px}
.site-header .site-nav.ukpt-nav-v0231 .ukpt-dd-wide .ukpt-dd-panel .ukpt-dd-link{padding:7px;line-height:1.3}
.site-header .ukpt-dd-wide .ukpt-dd-desc{font-size:10.5px}
.site-header .site-nav.ukpt-nav-v0231 .ukpt-dd-panel{max-height:calc(100dvh - 105px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
/* Only show header socials where all six nav labels have room. Every page also has footer icons. */
.site-header .ukpt-social-top{display:flex;align-items:center;gap:7px;flex:none;margin-left:4px;padding-left:13px;border-left:1px solid #31566b}
.site-header .ukpt-social-top .ukpt-social-button{width:35px;height:35px;min-height:35px!important;padding:6px!important}
@media(max-width:1439px){.site-header .ukpt-social-top{display:none}}
@media(min-width:721px) and (max-width:1100px){
  .site-header .header-row.ukpt-dd-header{width:calc(100% - 24px);gap:7px;min-height:70px}
  .site-header .ukpt-dd-header .brand-logo{max-width:260px;height:46px}
  .site-header .site-nav.ukpt-nav-v0231{gap:1px}
  .site-header .site-nav.ukpt-nav-v0231 .ukpt-dd-home,
  .site-header .site-nav.ukpt-nav-v0231 .ukpt-dd-group>summary{font-size:12px;padding:8px 5px;gap:6px}
  .site-header .ukpt-dd-chevron{width:6px;height:6px}
}
/* The disclosure menu is for genuinely narrow browsers, not ordinary laptop windows. */
@media(max-width:720px){
  .site-header .header-row.ukpt-dd-header{min-height:67px;gap:8px;width:calc(100% - 24px);padding:8px 0}
  .site-header .ukpt-dd-header .brand-logo{height:37px;max-width:235px}
  .site-header .site-nav.ukpt-nav-v0231{margin-left:0;max-height:calc(100dvh - 86px);overscroll-behavior:contain}
  .site-header .ukpt-dd-wide .ukpt-dd-columns{grid-template-columns:1fr}
  .site-header .site-nav.ukpt-nav-v0231 .ukpt-dd-panel,
  .site-header .site-nav.ukpt-nav-v0231 .ukpt-dd-wide>.ukpt-dd-panel{
    position:static;transform:none;translate:none;width:100%;max-width:100%;max-height:none;
    overflow:visible;box-shadow:none
  }
}
@media(max-width:390px){.site-header .ukpt-dd-header .brand-logo{max-width:205px;height:35px}}

/* v0.23.4 — logo alignment ONLY. Leave v0.23.3 menus/footer untouched. */
@media(min-width:721px){
  /* Keep logo and menu as one intentionally spaced header group instead of
     leaving the brand stranded at the far edge of a very wide header. */
  .site-header .header-row.ukpt-dd-header{
    justify-content:center;column-gap:clamp(12px,1.5vw,26px);
  }
  .site-header .ukpt-dd-header .brand{
    flex:0 0 auto;display:flex;align-items:center;
    padding-right:clamp(10px,1.6vw,23px);
    border-right:1px solid rgba(94,221,198,.32);
  }
  .site-header .ukpt-dd-header .brand-logo{
    width:auto;height:51px;max-width:335px;object-fit:contain;object-position:left center;
  }
  .site-header .site-nav.ukpt-nav-v0231{margin-left:0}
}
@media(min-width:721px) and (max-width:1100px){
  .site-header .header-row.ukpt-dd-header{column-gap:10px}
  .site-header .ukpt-dd-header .brand{padding-right:10px}
  .site-header .ukpt-dd-header .brand-logo{height:44px;max-width:248px}
}
@media(min-width:721px) and (max-width:850px){
  .site-header .ukpt-dd-header .brand{padding-right:7px}
  .site-header .ukpt-dd-header .brand-logo{height:40px;max-width:218px}
}
@media(max-width:720px){
  /* On phones, keep the brand with the Menu control, with no desktop divider. */
  .site-header .header-row.ukpt-dd-header{justify-content:space-between}
  .site-header .ukpt-dd-header .brand{border-right:0;padding-right:0}
}

/* v0.23.5 — ONE-ROW HEADER / REMOVE EXTRA VERTICAL SPACE ONLY.
   The approved v0.23.3 dropdowns and footer/socials are deliberately unchanged. */
@media (min-width: 721px) {
  .site-header:has(.header-row.ukpt-dd-header) { min-height: 0 !important; }
  .site-header .header-row.ukpt-dd-header {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    box-sizing: border-box;
    width: calc(100% - 48px) !important;
    max-width: none !important;
    margin: 0 auto !important;
    height: 78px !important;
    min-height: 78px !important;
    max-height: 78px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    gap: clamp(10px, 1.5vw, 24px) !important;
  }
  .site-header .ukpt-dd-header .brand {
    display: flex !important;
    align-items: center !important;
    align-self: center !important;
    flex: 0 1 auto !important;
    min-width: 0;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }
  .site-header .ukpt-dd-header .brand-logo {
    display: block !important;
    position: static !important;
    width: auto !important;
    height: 51px !important;
    max-width: min(335px, 100%) !important;
    object-fit: contain !important;
    object-position: left center !important;
  }
  .site-header .site-nav.ukpt-nav-v0231 {
    display: flex !important;
    position: static;
    align-self: center !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    margin: 0 0 0 auto !important;
    padding: 0 !important;
    height: auto !important;
  }
  /* The social buttons and dropdowns keep their previous behaviour. */
}
@media (min-width: 721px) and (max-width: 1100px) {
  .site-header .header-row.ukpt-dd-header { width: calc(100% - 24px) !important; height: 74px !important; min-height: 74px !important; max-height: 74px !important; }
  .site-header .ukpt-dd-header .brand-logo { height: 44px !important; max-width: 248px !important; }
}
@media (min-width: 721px) and (max-width: 850px) {
  .site-header .ukpt-dd-header .brand-logo { height: 39px !important; max-width: 218px !important; }
}
@media (max-width: 720px) {
  /* Keep the existing genuine mobile Menu button; remove oversized header. */
  .site-header .header-row.ukpt-dd-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 68px !important;
    min-height: 68px !important;
    max-height: 68px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  .site-header .ukpt-dd-header .brand { align-self: center !important; margin: 0 !important; }
}

/* v0.23.6 — FIX ACTUAL MISSING LOGO ON LAPTOPS.
   The old responsive layout gave the six-item nav 100% width at many laptop
   viewport widths; flexbox then shrank the logo's parent to zero.  This small
   override reserves intrinsic width for both, leaving the approved menus,
   header height, footer and social styling completely untouched. */
@media (min-width: 721px) {
  .site-header .site-nav.ukpt-nav-v0231 {
    width: max-content !important;
    max-width: none !important;
    flex: 0 0 auto !important;
  }
  .site-header .ukpt-dd-header .brand {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
  }
  .site-header .ukpt-dd-header .brand-logo {
    flex: none !important;
    max-width: 335px !important;
  }
}
@media (min-width: 721px) and (max-width: 1100px) {
  .site-header .ukpt-dd-header .brand-logo { max-width: 248px !important; }
}
@media (min-width: 721px) and (max-width: 850px) {
  .site-header .ukpt-dd-header .brand-logo { max-width: 218px !important; }
}
