.osh-site-header,
.osh-site-footer {
  --osh-ink: #102c43;
  --osh-accent: #08688c;
  --osh-line: #dae7ef;
  font: 500 1rem/1.5 system-ui, sans-serif;
  color: var(--osh-ink);
}

.osh-shared-layout:has(#osh-site-header) #site-elementor-header,
.osh-shared-layout:has(#osh-site-header) .wp-site-blocks > header.wp-block-template-part,
.osh-shared-layout:has(#osh-site-footer) footer.aux-elementor-footer,
.osh-shared-layout:has(#osh-site-footer) .wp-site-blocks > footer.wp-block-template-part {
  display: none;
}

.osh-site-header *, .osh-site-footer * { box-sizing: border-box; }
.osh-site-header a, .osh-site-footer a { color: inherit; text-decoration: none; }
.osh-site-header a:focus-visible, .osh-site-header summary:focus-visible, .osh-site-footer a:focus-visible {
  outline: 2px solid #208ec1;
  outline-offset: 4px;
}
.osh-site-width { width: min(1200px, calc(100% - 3rem)); margin-inline: auto; }
.osh-site-header { position: relative; z-index: 50; background: #fff; border-bottom: 1px solid var(--osh-line); }
.osh-site-top { background: var(--osh-ink); color: #f3f9fd; font-size: .85rem; }
.osh-site-top .osh-site-width { display: flex; justify-content: space-between; gap: .6rem 1.5rem; flex-wrap: wrap; padding-block: .46rem; }
.osh-site-header-row { display: flex; align-items: center; justify-content: space-between; gap: .8rem 1.65rem; min-height: 86px; padding-block: .55rem; }
.osh-site-brand { display: inline-flex; align-items: center; gap: .65rem; font-size: 1.03rem; font-weight: 800; white-space: nowrap; }
.osh-site-brand img { display: block; width: 58px; height: 58px; object-fit: contain; background: #fff; border-radius: 50%; }
.osh-site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1.45rem; margin-inline-start: auto; font-size: .92rem; font-weight: 650; }
.osh-site-nav a:hover, .osh-site-nav a[aria-current], .osh-site-nav summary:hover { color: var(--osh-accent); }
.osh-site-partner-menu { position: relative; margin: 0; }
.osh-site-partner-menu summary { display: flex; align-items: center; gap: .55rem; cursor: pointer; list-style: none; }
.osh-site-partner-menu summary::-webkit-details-marker { display: none; }
.osh-site-partner-menu summary::after { content: ''; width: .42rem; height: .42rem; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
.osh-site-partner-menu[open] summary::after { transform: translateY(2px) rotate(225deg); }
.osh-site-dropdown { position: absolute; top: calc(100% + .7rem); left: -.8rem; width: max-content; min-width: 11.5rem; padding: .35rem; background: #fff; border: 1px solid var(--osh-line); border-radius: .75rem; box-shadow: 0 12px 32px #102c4326; }
.osh-site-dropdown a { display: block; padding: .55rem .7rem; border-radius: .35rem; }
.osh-site-dropdown a:hover, .osh-site-dropdown a[aria-current] { background: #edf6fb; }
.osh-site-header .osh-site-login { display: inline-flex; align-items: center; gap: .6rem; padding: .58rem .88rem; border-radius: .5rem; background: var(--osh-accent); color: #fff; font-size: .88rem; font-weight: 750; white-space: nowrap; }
.osh-site-header .osh-site-login:hover { background: var(--osh-ink); }

.osh-site-footer { background: var(--osh-ink); color: #e7f1f9; border-top: 4px solid #2395c0; }
.osh-site-footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 1.5rem; padding-block: 2.5rem; }
.osh-site-footer p { margin: 0 0 .4rem; color: inherit; }
.osh-site-footer .osh-site-brand { margin-bottom: .7rem; color: #fff; }
.osh-site-footer .osh-site-footer-heading { color: #fff; font-weight: 750; margin-bottom: .65rem; }
.osh-site-footer-grid > * > a:not(.osh-site-brand) { display: block; width: fit-content; padding-block: .2rem; }
.osh-site-footer a:hover { text-decoration: underline; }
.osh-site-footer-credit { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1rem; border-top: 1px solid #567085; font-size: .86rem; }

.osh-portal-screen main .entry-header,
.osh-portal-screen main .wp-block-post-title,
.osh-portal-screen .aux-page-title-section { display: none; }
.osh-portal-screen .entry-content { max-width: none; }
.osh-portal-screen .osh-atp { --accent: #08688c; }
.osh-portal-screen .osh-atp-hero {
  background: linear-gradient(90deg, #102c43 16%, #102c43e8 46%, #102c4328 100%),
    url('https://oshtraining.uk/wp-content/uploads/slider/cache/3a9e440db393cd8bbf64be09073783c0/safety-officer.jpg') center 45% / cover;
}

@media (max-width: 1000px) {
  .osh-site-header-row { flex-wrap: wrap; }
  .osh-site-nav { order: 3; width: 100%; margin: 0; padding-bottom: .55rem; }
  .osh-site-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 500px) {
  .osh-site-width { width: calc(100% - 2rem); }
  .osh-site-brand img { width: 42px; height: 42px; }
  .osh-site-nav { column-gap: 1rem; }
  .osh-site-footer-grid { grid-template-columns: 1fr; }
}
