/*
 * UKSR header + footer v2 — group frame shared with UKSE and LH.
 * Spec: shared-docs/design/HEADER-FOOTER-V2-PORT.md.
 * Rules ported from UKSE's v2.css (tokens, .btn-enquire, .v2-skip, .sh-*, .site-head--light,
 * .site-foot2/.sf-*, body.v2-leaving). Class names kept identical to UKSE on purpose, so a fix
 * on one site can be copied to the others. UKSR overrides (green accent) are at the end.
 * Only loads when uksr_design_v2() is true (inc/design-v2.php). Not aggregated by Autoptimize.
 */
body.uksr-v2{--navy: #000032;
  --orange: #EE7218;
  
  --cta: #E6007E;
  --cta-hover: #C4006B;
  --blue: #6ACAF3;
  --magenta: #E6007E;
  --sky: #E8F6FD;
  --ink-2: #2E3150;
  --muted: #4B4F6B;
  --line: #E4E6EE;
  --line-2: #EEF0F5;
  --chip: #F2F3F7;
  --soft: #F5F7FA;
  --font: proxima-nova, "Proxima Nova", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;}
body.uksr-v2 .site-head, body.uksr-v2 .site-foot2, body.uksr-v2 .sh-drawer{font-family: var(--font); line-height: 1.5;}
body.uksr-v2 .site-head :is(a, button, p, img), body.uksr-v2 .site-foot2 :is(a, p, img, h2, h3, ul, li), body.uksr-v2 .sh-drawer :is(a, p, img){margin: 0;}
body.uksr-v2 .site-head img, body.uksr-v2 .site-foot2 img{max-width: 100%; display: block;}
body.uksr-v2 .v2-wrap, body.uksr-v2 .v2-wrap{max-width: 1240px; margin: 0 auto; padding-inline: 20px;}
.site-head{height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-inline: 20px;}
.site-head--dark{color: #FFFFFF;}
.site-head--dark nav a{color: #FFFFFF;}
@media (min-width: 960px){
  .site-head{height: 84px; padding-inline: 48px;}
}
.btn-enquire{display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--cta); color: #FFFFFF; text-decoration: none; font-weight: 700; font-size: 18px; min-height: 50px; padding: 0 24px; border-radius: 999px; border: 0; cursor: pointer;}
.btn-enquire:hover{color: #FFFFFF; background: var(--cta-hover);}
.sh-logo img{height: 38px; width: auto;}
.sh-nav{display: none; align-items: center; gap: 26px; font-weight: 700; font-size: 15px;}
.sh-nav a{color: #FFFFFF; text-decoration: none;}
.sh-nav a:hover{color: var(--blue);}
.sh-tools{display: none; align-items: center; gap: 10px;}
.sh-icon{width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;}
.sh-icon:hover{background: rgba(255,255,255,.12);}
.sh-dd{position: relative;}
.sh-dd__btn{border: 0; background: transparent; color: #FFFFFF; font: inherit; font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; padding: 8px 4px;}
.sh-dd__btn svg:last-child{transition: transform .15s;}
.sh-dd.is-open .sh-dd__btn svg:last-child{transform: rotate(180deg);}
.sh-lang{gap: 6px; padding: 8px 10px; border-radius: 10px;}
.sh-lang:hover{background: rgba(255,255,255,.12);}
.sh-dd__menu{display: none; position: absolute; top: calc(100% + 8px); left: -12px; min-width: 210px; background: #FFFFFF; border-radius: 14px; padding: 8px; box-shadow: 0 18px 40px rgba(0,0,50,.22); flex-direction: column; z-index: 30;}
.sh-dd__menu--right{left: auto; right: 0; max-height: 70vh; overflow-y: auto;}
.sh-dd.is-open .sh-dd__menu{display: flex;}
.sh-dd__menu a{color: var(--navy) !important; padding: 9px 12px; border-radius: 8px; font-weight: 700; font-size: 15px; text-decoration: none;}
.sh-dd__menu a:hover{background: var(--soft);}
.sh-dd__menu a[aria-current]{background: var(--sky);}
.sh-dd__all{border-top: 1px solid var(--line); border-radius: 0 0 8px 8px !important; margin-top: 4px;}
.sh-enq{min-height: 44px; font-size: 16px; padding: 0 20px;}
.sh-burger{width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.45); border-radius: 10px; background: transparent; color: #FFFFFF; display: flex; align-items: center; justify-content: center; cursor: pointer;}
.sh-search{position: absolute; left: 20px; right: 20px; top: 100%; display: flex; gap: 8px; background: #FFFFFF; border-radius: 14px; padding: 8px; box-shadow: 0 18px 40px rgba(0,0,50,.22);}
.sh-search[hidden]{display: none;}
.sh-search input{flex: 1; min-width: 0; border: 1.5px solid #C9CCDA; border-radius: 10px; padding: 0 14px; height: 46px; font: inherit; color: var(--navy);}
.sh-search button{border: 0; border-radius: 10px; background: var(--navy); color: #FFFFFF; font-weight: 700; padding: 0 18px; cursor: pointer;}
@media (min-width: 960px){
  .sh-logo img{height: 44px;}
  .sh-nav, .sh-tools{display: flex;}
  .sh-burger{display: none;}
  .sh-search{left: auto; right: 48px; width: 460px;}
}
@media (min-width: 960px) and (max-width: 1180px){
  .sh-nav{gap: 18px;}
  .sh-nav a, .sh-dd__btn{font-size: 14px;}
}
.sh-drawer{position: fixed; inset: 0; z-index: 100;}
.sh-drawer__shade{position: absolute; inset: 0; background: rgba(0,0,50,.5);}
.sh-drawer__panel{position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); background: var(--navy); color: #FFFFFF; padding: calc(14px + env(safe-area-inset-top, 0px)) 20px calc(24px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 18px; overflow-y: auto;}
.sh-drawer__top{display: flex; justify-content: space-between; align-items: center;}
.sh-drawer__top img{height: 34px; width: auto;}
.sh-drawer__search{display: flex; background: #FFFFFF; border-radius: 12px; overflow: hidden; flex-shrink: 0;}
.sh-drawer__search input{flex: 1; min-width: 0; border: 0; padding: 0 14px; height: 46px; font: inherit; color: var(--navy);}
.sh-drawer__search button{border: 0; background: var(--navy); color: #FFFFFF; width: 48px; margin: 4px; border-radius: 9px; cursor: pointer; display: flex; align-items: center; justify-content: center;}
.sh-drawer__nav{display: flex; flex-direction: column;}
.sh-drawer__nav > a, .sh-drawer__nav summary{color: #FFFFFF; text-decoration: none; font-weight: 700; font-size: 19px; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.14); display: flex; justify-content: space-between; align-items: center; cursor: pointer; list-style: none;}
.sh-drawer__nav summary::-webkit-details-marker{display: none;}
.sh-drawer__nav details[open] summary svg{transform: rotate(180deg);}
.sh-drawer__nav details a{display: block; color: #DDE0F0; text-decoration: none; padding: 9px 0 9px 14px; font-size: 16px;}
.sh-drawer__enq{width: 100%;}
.sh-drawer__lang{display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: #C9CCE4;}
.sh-drawer__lang span{display: flex; gap: 6px; align-items: center;}
.sh-drawer__lang select{height: 46px; border-radius: 10px; border: 0; padding: 0 12px; font: inherit; font-weight: 700; color: var(--navy); background: #FFFFFF;}
.sh-drawer__stay span{font-size: 13px; color: #C9CCE4; display: block; margin-bottom: 8px;}
.sh-drawer__stay div{display: flex; gap: 10px; align-items: center; flex-wrap: wrap;}
.sh-drawer__stay a{background: #FFFFFF; border-radius: 10px; padding: 6px 10px; display: inline-flex;}
.sh-drawer__stay img{height: 34px; width: auto;}
.sh-drawer__contact{display: flex; flex-direction: column; font-size: 15px; color: #DDE0F0; user-select: all;}
.sh-drawer__portal{color: var(--blue); font-weight: 700; font-size: 15px;}
body.sh-locked{overflow: hidden;}
.sh-sticky{display: none;}
@media (min-width: 960px){
  .sh-sticky{display: block; position: fixed; left: 0; right: 0; top: 0; z-index: 60; background: var(--navy); box-shadow: 0 6px 20px rgba(0,0,50,.25); transform: translateY(-100%); transition: transform .2s;}
  .sh-sticky.is-on{transform: none;}
  .sh-sticky__in{max-width: 1240px; margin: 0 auto; padding: 0 20px; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px;}
  .sh-sticky .sh-logo img{height: 32px;}
  .sh-sticky .sh-nav{display: flex;}
  .sh-sticky .sh-enq{min-height: 40px; font-size: 15px;}
}
@media (prefers-reduced-motion: reduce){
  .sh-sticky{transition: none;}
}
.site-foot2{margin-top: 64px; color: #C9CCE4; font-size: 15px;}
.sf-panels{background: var(--navy); padding-block: 28px 0;}
.sf-panels__grid{display: grid; gap: 12px;}
.sf-panel{border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 14px; color: var(--navy);}
.sf-panel img{height: 40px; width: auto; align-self: flex-start;}
.sf-panel ul{margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px;}
.sf-panel a{color: var(--navy); text-decoration: none; font-weight: 700; font-size: 14px;}
.sf-panel a:hover{text-decoration: underline; color: var(--navy);}
.sf-panel__btn{align-self: flex-start; background: var(--navy); color: #FFFFFF !important; border-radius: 999px; padding: 9px 18px;}
.sf-panel__btn:hover{text-decoration: none !important;}
.sf-panel--ukse{background: #E8F6FD;}
.sf-panel--lh{background: #FDECEC;}
.sf-panel--uksr{background: #EEF6E2;}
.sf-main{background: var(--navy); padding-block: 36px 28px;}
.sf-cols{display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px;}
.sf-col{display: flex; flex-direction: column; gap: 7px; min-width: 0;}
.sf-col h2{font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 4px;}
.sf-col a{color: #DDE0F0; text-decoration: none; font-size: 15px;}
.sf-col a:hover{color: #FFFFFF; text-decoration: underline;}
.sf-col p{color: #DDE0F0; font-size: 15px;}
.sf-sel{user-select: all;}
.sf-social{display: flex; gap: 8px; margin-top: 6px;}
.sf-social a{width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.1); display: inline-flex; align-items: center; justify-content: center; color: #FFFFFF;}
.sf-social a:hover{background: rgba(255,255,255,.2);}
.sf-langs a[aria-current]{color: #FFFFFF; font-weight: 700;}
.sf-bottom{display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; border-top: 1px solid rgba(255,255,255,.14); margin-top: 32px; padding-top: 22px !important; font-size: 14px;}
.sf-bottom img{height: 36px; width: auto;}
.sf-bottom nav{display: flex; flex-wrap: wrap; gap: 8px 20px;}
.sf-bottom a{color: #DDE0F0;}
.sf-note{font-size: 13px; color: #8E92B6; padding-top: 14px;}
.sf-cols .sf-col:nth-child(3){grid-column: 1 / -1;}
@media (min-width: 760px){
  .sf-panels__grid{grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;}
  .sf-cols{grid-template-columns: 1.1fr 1.1fr 1.2fr 1fr; gap: 32px;}
  .sf-cols .sf-col:nth-child(3){grid-column: auto;}
}
.sf-langs a[dir="rtl"], .sh-dd__menu a[dir="rtl"]{align-self: flex-start; text-align: left;}
.sh-flag{width: 20px; height: 15px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,50,.12); object-fit: cover; flex: none;}
.sh-dd__menu a{display: flex; align-items: center; gap: 10px;}
.sf-langs a{display: inline-flex; align-items: center; gap: 9px;}
.sh-lang .sh-flag{box-shadow: 0 0 0 1px rgba(255,255,255,.35);}
.site-head--light{color: var(--navy); background: rgba(255,255,255,.72); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid rgba(0,0,50,.06);}
.site-head--light .sh-nav a, .site-head--light .sh-dd__btn, .site-head--light .sh-icon{color: var(--navy);}
.site-head--light .sh-nav a:hover{color: var(--magenta);}
.site-head--light .sh-icon:hover, .site-head--light .sh-lang:hover{background: var(--soft);}
.site-head--light .sh-burger{color: var(--navy); border-color: #D5D8E3;}
.site-head--light .sh-lang .sh-flag{box-shadow: 0 0 0 1px rgba(0,0,50,.12);}
@media (min-width: 960px){
  .sh-sticky{background: rgba(255,255,255,.92); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); box-shadow: 0 1px 0 rgba(0,0,50,.06), 0 10px 30px rgba(0,0,50,.10);}
  .sh-sticky .sh-nav a, .sh-sticky .sh-dd__btn{color: var(--navy);}
  .sh-sticky .sh-nav a:hover{color: var(--magenta);}
}
.v2-skip{position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--navy); color: #FFFFFF; padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none;}
.v2-skip:focus{top: 12px; color: #FFFFFF;}
body.uksr-v2 .site-head--light :is(.sh-nav a, .sh-icon, .sh-dd__btn){color: var(--navy) !important;}
body.uksr-v2 .site-head--light .sh-nav a:hover{color: var(--magenta) !important;}
body.uksr-v2 :is(.site-head, .sh-drawer, .site-foot2) .btn-enquire, body.uksr-v2 .sf-panel__btn{color: #FFFFFF !important;}
body.uksr-v2 .sh-drawer :is(a:not(.btn-enquire), summary){color: #FFFFFF !important;}
body.uksr-v2 .sf-panel a:not(.sf-panel__btn){color: var(--navy) !important;}
body.uksr-v2 :is(.sf-col, .sf-bottom) a{color: #DDE0F0 !important;}
body.uksr-v2 :is(.sf-langs a[aria-current], .sf-social a){color: #FFFFFF !important;}
body.uksr-v2 :is(.site-head, .sh-drawer, .site-foot2) h2{font-size: 13px !important; letter-spacing: .08em !important; text-transform: uppercase !important; color: var(--blue) !important; text-align: left !important; margin: 0 0 4px !important; line-height: 1.5 !important; font-weight: 700 !important;}
body.uksr-v2 :is(.site-head, .sh-drawer, .site-foot2) h2::after{content: none !important; display: none !important;}
body.uksr-v2 :is(.site-head, .sh-drawer, .site-foot2) ul{margin: 0; padding: 0; list-style: none;}
body.uksr-v2 .site-head .sh-icon svg{width: 20px !important; height: 20px !important;}
body.uksr-v2 .sh-sticky :is(.sh-nav a, .sh-dd__btn){color: var(--navy) !important;}
body.uksr-v2 .sh-sticky .sh-nav a:hover{color: var(--magenta) !important;}
body.uksr-v2 .v2-skip{color: #FFFFFF !important;}
body.uksr-v2 .sh-search input, body.uksr-v2 .sh-drawer__search input{-webkit-appearance: none; appearance: none; border-radius: 10px; text-overflow: ellipsis;}
body.uksr-v2 .sh-search input, body.uksr-v2 .sh-drawer__search input{box-sizing: border-box; height: 46px; font-size: 16px; line-height: 22px;}
body.uksr-v2 .sh-drawer__search input{padding: 12px 14px;}
body.uksr-v2 .sh-search input{padding: 10.5px 14px;}
body.v2-leaving::before{content: ""; position: fixed; top: 0; left: 0; z-index: 100000; height: 3px; width: 100%; background: linear-gradient(90deg, var(--magenta), var(--accent)); transform-origin: left; animation: v2-leave 2.4s cubic-bezier(.1,.7,.3,1) forwards; pointer-events: none;}
@keyframes v2-leave{from { transform: scaleX(0); } to { transform: scaleX(.85); }}
@media (prefers-reduced-motion: reduce){
  body.v2-leaving::before{animation: none; transform: scaleX(.6);}
}
.site-foot2{--sf-card: #0A0A44; --sf-line: rgba(255,255,255,.10); --sf-text: #B9BDDA;}
.sf-panels{padding-block: 56px 0;}
.sf-panels__grid{gap: 16px;}
.sf-panel{--brand: #EE7218; background: var(--sf-card); border: 1.5px solid color-mix(in srgb, var(--brand) 70%, transparent); border-radius: 20px; padding: 26px 26px 24px; gap: 20px; color: #FFFFFF; position: relative; overflow: hidden; transition: border-color .2s, transform .2s;}
.sf-panel::before{content: ""; position: absolute; inset: 0 0 auto 0; height: 120px; background: radial-gradient(120% 100% at 0% 0%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%); pointer-events: none;}
.sf-panel:hover{border-color: var(--brand);}
.sf-panel--ukse{--brand: #EE7218; background: var(--sf-card);}
.sf-panel--lh{--brand: #1C94D2; background: var(--sf-card);}
.sf-panel--uksr{--brand: #B1CB13; background: var(--sf-card);}
.sf-panel img{height: 42px; position: relative;}
.sf-panel ul{gap: 10px 18px; position: relative;}
.sf-panel a{color: #FFFFFF; font-weight: 600; font-size: 15px;}
.sf-panel ul a{color: #DDE0F0;}
.sf-panel ul a:hover{color: #FFFFFF; text-decoration: none; box-shadow: inset 0 -1.5px 0 var(--brand);}
.sf-panel__btn{position: relative; display: inline-flex; align-items: center; gap: 8px; background: transparent; border: 1.5px solid var(--brand); color: #FFFFFF !important; padding: 10px 18px; margin-top: auto; transition: background .2s;}
.sf-panel__btn:hover{background: color-mix(in srgb, var(--brand) 18%, transparent);}
.sf-panel__btn svg{transition: transform .2s;}
.sf-panel__btn:hover svg{transform: translateX(3px);}
.sf-main{padding-block: 56px 28px;}
.sf-cols{gap: 36px 24px;}
.sf-col{gap: 0;}
.sf-col h2{font-size: 12px; letter-spacing: .14em; color: #8E92B6; font-weight: 700; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--sf-line);}
.sf-col > a, .sf-langs a{color: var(--sf-text); font-size: 15px; padding-block: 5px; transition: color .15s, transform .15s; align-self: flex-start;}
.sf-col > a:hover, .sf-langs a:hover{color: #FFFFFF; text-decoration: none; transform: translateX(3px);}
.sf-contact{display: flex; flex-direction: column; gap: 6px;}
.sf-contact a{color: #FFFFFF !important; font-size: 17px; font-weight: 600; text-decoration: none;}
.sf-contact a:hover{color: var(--blue) !important; text-decoration: none;}
.sf-addr{color: #8E92B6 !important; font-size: 14px; line-height: 1.6; margin-top: 14px !important;}
.sf-social{gap: 10px; margin-top: 18px;}
.sf-social a{width: 42px; height: 42px; border-radius: 50%; background: transparent; border: 1px solid rgba(255,255,255,.22); transition: border-color .15s, background .15s;}
.sf-social a:hover{background: rgba(255,255,255,.08); border-color: #FFFFFF;}
.sf-langs{display: grid; grid-template-columns: max-content minmax(max-content, 1fr); column-gap: 22px; align-content: start;}
.sf-langs h2{grid-column: 1 / -1;}
.sf-langs a[aria-current]{color: #FFFFFF;}
.sf-bottom{margin-top: 48px; padding-top: 24px !important; border-top-color: var(--sf-line); font-size: 13px; color: #8E92B6;}
.sf-bottom a{color: #B9BDDA; font-size: 13px;}
.sf-bottom a:hover{color: #FFFFFF;}
.sf-bottom img{height: 32px; opacity: .9;}
@media (min-width: 960px){
  .sf-panels__grid{gap: 20px;}
  .sf-cols{grid-template-columns: 1fr 1.2fr 1.2fr 1.1fr; gap: 48px;}
}
@media (max-width: 599px){
  .sf-panel{padding: 22px;}
  .sf-panel ul{grid-template-columns: 1fr 1fr;}
}
.sf-langs a[dir="rtl"]{direction: ltr; flex-direction: row; justify-content: flex-start;}
.sf-langs a[dir="rtl"] span{direction: rtl; unicode-bidi: isolate;}
.sf-cols .sf-col:nth-child(3){grid-column: auto;}
.sf-cols .sf-col:nth-child(4){grid-column: 1 / -1;}
@media (min-width: 960px){
  .sf-cols{grid-template-columns: 0.9fr 1fr 1.25fr 1.25fr 1.1fr; gap: 40px;}
  .sf-cols .sf-col:nth-child(4){grid-column: auto;}
}
@media (max-width: 959px){
  .sf-cols .sf-col:nth-child(n+3){grid-column: 1 / -1;}
  .sf-langs{grid-template-columns: max-content minmax(max-content, 1fr); column-gap: 32px;}
  .sf-langs a span{white-space: nowrap;}
}
.sf-langs a span{white-space: nowrap;}
@media (min-width: 960px) and (max-width: 1239px){
  .sf-langs{grid-template-columns: 1fr;}
}
.sh-sticky__tools{display: inline-flex; align-items: center; gap: 10px;}
.sh-enq{white-space: nowrap; flex-shrink: 0;}
@media (min-width: 960px) and (max-width: 1180px){
  .sh-tools{gap: 8px;}
  .sh-enq{padding: 0 16px; font-size: 15px;}
  .site-head .sh-logo img{height: 38px;}
  .site-head .sh-nav{gap: 14px;}
}
.site-head .sh-logo{flex-shrink: 0;}
.sh-nav a, .sh-dd__btn{white-space: nowrap;}
/* ── UKSR ─────────────────────────────────────────────────────── */
body.uksr-v2{--accent: #B1CB0C; --accent-text: #5E7300; --accent-pastel: #D6E68A;}
body.uksr-v2 .v2-wrap{box-sizing: border-box; width: 100%;}

/* Accent instead of UKSE blue/magenta for hover, headings and small highlights */
body.uksr-v2 .site-head--light .sh-nav a:hover,
body.uksr-v2 .sh-sticky .sh-nav a:hover{color: var(--magenta) !important;}
body.uksr-v2 .sh-nav a:hover{color: var(--magenta);}
body.uksr-v2 :is(.site-head, .sh-drawer, .site-foot2) h2{color: var(--accent) !important;}
body.uksr-v2 .sh-drawer__portal{color: var(--accent) !important;}
body.uksr-v2 .sf-contact a:hover{color: var(--accent) !important;}
body.uksr-v2 :is(.site-head, .sh-drawer, .sh-sticky, .site-foot2, .v2-skip) :is(a, button, select, input, summary):focus-visible,
body.uksr-v2 .v2-skip:focus-visible{outline: 3px solid var(--accent); outline-offset: 2px;}

/* Parent theme resets that leak into the frame */
body.uksr-v2 :is(.site-head, .sh-drawer, .sh-sticky, .site-foot2) a:not(.btn-enquire, .sf-panel__btn){border-bottom: 0; box-shadow: none;}
body.uksr-v2 :is(.site-head, .sh-drawer, .site-foot2) :is(input, select, button){box-sizing: border-box; margin: 0; font-family: var(--font);}
body.uksr-v2 :is(.site-head, .sh-drawer, .site-foot2) ul{margin: 0; padding: 0; list-style: none;}
body.uksr-v2 :is(.site-head, .sh-drawer, .site-foot2) li{margin: 0; padding: 0; list-style: none;}
body.uksr-v2 :is(.site-head, .sh-drawer, .site-foot2) li::before{content: none;}
body.uksr-v2 .site-head{position: relative; z-index: 40; box-sizing: border-box;}
body.uksr-v2 .sh-drawer[hidden]{display: none;}
body.uksr-v2 #v2-main{outline: 0;}

/* RTL: drawer slides from the left, dropdowns open the other way */
html[dir="rtl"] body.uksr-v2 .sh-drawer__panel{right: auto; left: 0;}
html[dir="rtl"] body.uksr-v2 .sh-dd__menu--right{right: auto; left: 0;}
html[dir="rtl"] body.uksr-v2 .sh-dd__menu{left: auto; right: -12px;}
html[dir="rtl"] body.uksr-v2 :is(.site-head, .sh-drawer, .site-foot2) h2{text-align: right !important;}

/* QA fixes (16 Oct): panel links readable on navy, no parent underlines, chat bubble hidden behind the open menu */
body.uksr-v2 .sf-panel ul a:not(.sf-panel__btn){color: #DDE0F0 !important;}
body.uksr-v2 .sf-panel ul a:not(.sf-panel__btn):hover{color: #FFFFFF !important;}
body.uksr-v2 :is(.site-head, .sh-drawer, .sh-sticky, .site-foot2) a{text-decoration: none;}
body.uksr-v2 :is(.sf-col, .sf-bottom, .sf-panel ul) a:hover{text-decoration: underline;}
body.sh-locked #lh-chat-widget-host, body.sh-locked .uksr-cookie-consent{display: none !important;}

/* ── Header over the hero: frosted white bar ─────────────────────────
   Every UKSR template opens with a dark hero band or photo. The header sits on top of it as a
   semi-transparent frosted white bar with the full-colour logo and navy links (Steve, 16 Oct).
   A see-through header like UKSE's was tried first, but half of our symbol is the same navy as
   most hero bands, so the logo disappeared. The hero gets a transparent top border the height of
   the header, so its content isn't covered and its photo or colour runs up behind the frosted bar.
   Pages without a known hero keep the normal white bar in the page flow. */
body.uksr-v2{--v2-head-h: 72px;}
@media (min-width: 960px){ body.uksr-v2{--v2-head-h: 84px;} }

body.uksr-v2:has(:is(.uksr-home-hero, .uksr-about-hero, .uksr-contact-hero, .uksr-apply-hero, .uksr-page-hero, .uksr-hub-hero, .uksr-locguide-hero, .uksr-residence-hero, .uksr-blog-hero, .uksr-post-hero, .uksr-htb-hero, .uksr-search-hero, .uksr-tcs-hero)) .site-head{
  position: absolute; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid rgba(0,0,50,.06);
}
body.uksr-v2.admin-bar:has(:is(.uksr-home-hero, .uksr-about-hero, .uksr-contact-hero, .uksr-apply-hero, .uksr-page-hero, .uksr-hub-hero, .uksr-locguide-hero, .uksr-residence-hero, .uksr-blog-hero, .uksr-post-hero, .uksr-htb-hero, .uksr-search-hero, .uksr-tcs-hero)) .site-head{top: 46px;}
@media (min-width: 783px){
  body.uksr-v2.admin-bar:has(:is(.uksr-home-hero, .uksr-about-hero, .uksr-contact-hero, .uksr-apply-hero, .uksr-page-hero, .uksr-hub-hero, .uksr-locguide-hero, .uksr-residence-hero, .uksr-blog-hero, .uksr-post-hero, .uksr-htb-hero, .uksr-search-hero, .uksr-tcs-hero)) .site-head{top: 32px;}
}

body.uksr-v2 :is(.uksr-home-hero, .uksr-about-hero, .uksr-contact-hero, .uksr-apply-hero, .uksr-page-hero, .uksr-hub-hero, .uksr-locguide-hero, .uksr-residence-hero, .uksr-blog-hero, .uksr-post-hero, .uksr-htb-hero, .uksr-search-hero, .uksr-tcs-hero){
  border-top: var(--v2-head-h) solid transparent; background-origin: border-box;
}
/* Full-cover overlays are positioned from the padding box, so stretch them up behind the header too */
body.uksr-v2 :is(.uksr-home-hero__overlay, .uksr-about-hero__overlay, .uksr-contact-hero__overlay, .uksr-hub-hero__overlay, .uksr-locguide-hero__overlay, .uksr-residence-hero__overlay, .uksr-search-hero__overlay),
body.uksr-v2 .uksr-page-hero--has-image::before{top: calc(-1 * var(--v2-head-h));}
