/*
Theme Name: Secure Care UK
Theme URI: https://securecareuk.co.uk
Author: Secure Care UK
Description: Bespoke block theme for Secure Care UK - secure mental health patient transport. Built from the Secure Care UK website redesign. Fully editable via the WordPress block editor.
Version: 0.1.1793239476
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: securecare-uk
Tags: block-theme, full-site-editing, healthcare, custom-colors, custom-menu
*/

/* Most styling lives in theme.json. This file holds a few base rules
   and small refinements that are easier to express as plain CSS. */

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Smooth anchor scrolling for on-page links */
html {
  scroll-behavior: smooth;
}


/* ------------------------------------------------------------------
   Layout: remove WordPress's default gap between template-level
   sections (header / main / footer) so bands sit flush.
------------------------------------------------------------------- */
.wp-site-blocks > * + * {
  margin-block-start: 0;
}
.wp-block-post-content > .wp-block-group:first-child {
  margin-block-start: 0;
}

/* ------------------------------------------------------------------
   Typography craft: confident, tight display headings.
------------------------------------------------------------------- */
h1, h2 {
  letter-spacing: -0.02em;
}
h3 {
  letter-spacing: -0.01em;
}

/* ------------------------------------------------------------------
   Signature detail: a short brand-blue "care line" above every
   interior page title, tying the pages to the brand.
------------------------------------------------------------------- */
.wp-block-post-content > .wp-block-group.has-charcoal-background-color h1::before {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: var(--wp--preset--color--primary);
  margin-bottom: 1.25rem;
}


/* ------------------------------------------------------------------
   Cards: soft resting elevation on white cards so they lift off
   tinted section backgrounds. No hover gimmicks on static content.
------------------------------------------------------------------- */
.has-mist-background-color .wp-block-group.has-base-background-color[style*="border-radius"] {
  box-shadow: 0 1px 2px rgba(20, 24, 29, 0.04), 0 10px 28px rgba(20, 24, 29, 0.06);
}

/* ------------------------------------------------------------------
   Links: refined underlines in content areas.
------------------------------------------------------------------- */
main a:not(.wp-block-button__link) {
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

/* ------------------------------------------------------------------
   Buttons: gentle, purposeful feedback.
------------------------------------------------------------------- */
.wp-block-button__link {
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.wp-block-button__link:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(38, 117, 143, 0.35);
}

/* ------------------------------------------------------------------
   Accessibility: visible keyboard focus, reduced motion respected.
------------------------------------------------------------------- */
a:focus-visible,
button:focus-visible,
.wp-block-button__link:focus-visible {
  outline: 3px solid var(--wp--preset--color--primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}


/* ------------------------------------------------------------------
   Testimonials: oversized opening quote mark, per the original design.
------------------------------------------------------------------- */
.scuk-quote {
  position: relative;
}
.scuk-quote::before {
  content: "\201C";
  display: block;
  font-size: 4rem;
  font-weight: 900;
  line-height: 0.6;
  color: var(--wp--preset--color--pale);
  margin-bottom: 0.35rem;
}

/* ------------------------------------------------------------------
   Tick lists: brand check marks for "What's included" lists,
   per the original design.
------------------------------------------------------------------- */
ul.scuk-ticks {
  list-style: none;
  padding-left: 0;
}
ul.scuk-ticks li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.5rem;
}
ul.scuk-ticks li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 900;
  color: var(--wp--preset--color--primary);
}


/* ------------------------------------------------------------------
   People cards: photo-topped, cleanly cropped, softly elevated.
------------------------------------------------------------------- */
.scuk-person {
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(20, 24, 29, 0.04), 0 10px 28px rgba(20, 24, 29, 0.07);
}
.scuk-person .scuk-person-photo {
  margin: 0;
}
.scuk-person .scuk-person-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ------------------------------------------------------------------
   Header: sticky navigation with depth, modern and unobtrusive.
   The utility top bar scrolls away; the nav bar stays.
------------------------------------------------------------------- */
header.wp-block-group.has-contrast-background-color {
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 14px rgba(10, 14, 18, 0.35);
}
body.admin-bar header.wp-block-group.has-contrast-background-color {
  top: 32px;
}
@media (max-width: 782px) {
  body.admin-bar header.wp-block-group.has-contrast-background-color {
    top: 46px;
  }
}

/* Navigation links: quiet by default, purposeful on hover. */
.wp-block-navigation a {
  text-decoration: none;
  padding-bottom: 3px;
  background-image: linear-gradient(var(--wp--preset--color--primary), var(--wp--preset--color--primary));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  transition: background-size 0.25s ease, color 0.2s ease;
}
.wp-block-navigation a:hover,
.wp-block-navigation a:focus-visible {
  background-size: 100% 2px;
  color: var(--wp--preset--color--pale);
}


/* ------------------------------------------------------------------
   Header row behaviour: one clean line on desktop; a deliberate,
   centred stack on narrower screens instead of an accidental wrap.
------------------------------------------------------------------- */
header.wp-block-group .wp-block-navigation .wp-block-navigation-item__content {
  font-size: 0.95rem;
}
.scuk-logo {
  flex-shrink: 0;
}
@media (min-width: 1200px) {
  header.wp-block-group > .wp-block-group {
    flex-wrap: nowrap;
  }
  header.wp-block-group > .wp-block-group > .wp-block-group {
    flex-wrap: nowrap;
  }
}
@media (max-width: 1199px) {
  header.wp-block-group > .wp-block-group {
    justify-content: center;
    row-gap: 0.75rem;
  }
  header.wp-block-group > .wp-block-group > .wp-block-group {
    justify-content: center;
  }
}


/* Logo: cap its size on small screens so it never overflows the header. */
.scuk-logo img {
  max-width: min(260px, 62vw);
  height: auto;
}


/* CQC ratings widget: give it breathing room inside its card. */
.scuk-cqc-widget {
  margin-top: 1.25rem;
}
.scuk-cqc-widget iframe {
  max-width: 100%;
  border: 0;
}


/* ------------------------------------------------------------------
   CQC widget: restyled to match the site's card language and scale.
   CQC's own stylesheet uses !important throughout, so overrides here
   must too. Layout and sizing only - the rating content, logo and
   report link are CQC's and stay untouched.
------------------------------------------------------------------- */
.scuk-cqc-widget .cqc-container {
  font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif !important;
  background: #ffffff !important;
  border: 1px solid var(--wp--preset--color--border) !important;
  border-radius: 0 !important;
  padding: 1rem 1.15rem !important;
  width: 100% !important;
  max-width: 340px;
  box-sizing: border-box !important;
  margin: 0 !important;
}
.scuk-cqc-widget .cqc-widget-header img {
  height: 24px !important;
  width: auto !important;
}
.scuk-cqc-widget .cqc-service-name {
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  color: var(--wp--preset--color--contrast) !important;
  margin: 0.55rem 0 0.4rem !important;
  line-height: 1.3 !important;
}
.scuk-cqc-widget .cqc-widget-new-style-margin-2 {
  font-size: 0.72rem !important;
  color: var(--wp--preset--color--slate) !important;
  margin: 0 0 0.2rem !important;
}
.scuk-cqc-widget .cqc-widget-overall {
  font-size: 1.05rem !important;
}
.scuk-cqc-widget .cqc-widget-date {
  font-size: 0.72rem !important;
  color: #8a959c !important;
  margin: 0.25rem 0 0.65rem !important;
}
.scuk-cqc-widget .widget-button-new-style {
  font-size: 0.78rem !important;
  padding: 0.45rem 0.95rem !important;
  border-radius: 3px !important;
}

/* Stats banner: wider, square, centred so it reads like the old site. */
.scuk-cqc-widget--stat {
  margin-top: 0;
  display: flex;
  justify-content: center;
}
.scuk-cqc-widget--stat .cqc-container {
  max-width: 300px;
  padding: 0.85rem 1rem !important;
}

/* Footer column: fills its column width like the link lists beside it. */
.scuk-cqc-widget--footer .cqc-container {
  max-width: none;
  border-color: var(--wp--preset--color--steel) !important;
}


/* Value icons: stable rendering regardless of load order. */
.scuk-value-icon {
  margin: 0 0 0.75rem;
}
.scuk-value-icon img {
  display: block;
  width: 88px;
  height: auto;
}


/* Values grid: five compact cards - heading scale tuned to card width. */
.scuk-values h3 {
  font-size: 1.375rem;
  line-height: 1.25;
  overflow-wrap: break-word;
}


/* Stats band: quiet confidence - brand numbers, hairline rhythm, anchored CQC card. */
.scuk-stats {
  background:
    radial-gradient(60rem 20rem at 8% -30%, rgba(57, 144, 175, 0.07), transparent 60%),
    var(--wp--preset--color--mist);
}
.scuk-stats h3 {
  color: var(--wp--preset--color--primary-dark);
  font-size: 3rem;
  letter-spacing: -0.5px;
}
.scuk-stats h3::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  border-radius: 2px;
  margin: 0.65rem auto 0;
  background: var(--wp--preset--color--pale);
}
.scuk-stats p {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 0.6rem;
}
@media (min-width: 782px) {
  .scuk-stats .wp-block-column:nth-child(-n+2) {
    border-right: 1px solid var(--wp--preset--color--border);
  }
  .scuk-stats .wp-block-column:nth-child(3) {
    padding-right: 1.25rem;
  }
}
.scuk-stats .scuk-cqc-widget {
  background: var(--wp--preset--color--base);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 10px;
  padding: 0.75rem;
  box-shadow: 0 10px 24px rgba(27, 33, 38, 0.06);
}


/* Stats band: tighter vertical proportions. */
.scuk-stats {
  padding-top: 1.6rem !important;
  padding-bottom: 1.6rem !important;
}
.scuk-stats .scuk-cqc-widget {
  padding: 0.4rem 0.6rem;
}
.scuk-stats .scuk-cqc-widget > div,
.scuk-stats .scuk-cqc-widget .cqc-widget {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
.scuk-stats h3 {
  margin-bottom: 0;
}


/* Stats band: align all columns to a shared top line so the numbers
   sit level regardless of caption length. */
@media (min-width: 782px) {
  .scuk-stats .wp-block-column.is-vertically-aligned-center {
    align-self: flex-start;
  }
}




/* Vacancies map: inline zoomable UK map (buttons / scroll wheel / drag). */
.scuk-jobmap-zoom {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--wp--preset--color--base);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 12px;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
  user-select: none;
}
.scuk-jobmap-zoom.is-dragging {
  cursor: grabbing;
}
.scuk-jobmap-zoom svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.scuk-jobmap-zoom svg path {
  fill: var(--wp--preset--color--mist);
  stroke: var(--wp--preset--color--slate);
  stroke-width: 0.75;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.scuk-jobmap-hint {
  margin-top: 0.6rem;
  color: var(--wp--preset--color--slate);
  font-size: 0.82rem;
}

/* Location markers: the dot sits exactly on the geographic point;
   role chips float above it and the town name below, with optional
   per-location pixel nudges (--ldx/--ldy) for dense areas. */
.scuk-jobmap-loc {
  position: absolute;
  width: 0;
  height: 0;
}
.scuk-jobmap-loc:hover {
  z-index: 5;
}
.scuk-jobmap-loc .scuk-jobmap-dot {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
}
.scuk-jobmap-chips {
  position: absolute;
  left: 0;
  bottom: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transform: translate(calc(-50% + var(--ldx, 0px)), var(--ldy, 0px));
}
.scuk-jobmap-town {
  position: absolute;
  left: 0;
  top: 10px;
  transform: translateX(calc(-50% + var(--ldx, 0px)));
}
.scuk-jobmap-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--wp--preset--color--primary);
  border: 3px solid var(--wp--preset--color--base);
  box-shadow: 0 2px 8px rgba(27, 33, 38, 0.35);
  flex: none;
}
.scuk-jobmap-loc:hover .scuk-jobmap-dot {
  background: var(--wp--preset--color--primary-dark);
}
.scuk-jobmap-chip {
  background: var(--wp--preset--color--uniform-grey);
  color: var(--wp--preset--color--base);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(27, 33, 38, 0.3);
}
.scuk-jobmap-chip:hover {
  background: var(--wp--preset--color--primary-dark);
}
.scuk-jobmap-town {
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--wp--preset--color--base);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  background: var(--wp--preset--color--uniform-grey);
  padding: 0 0.3rem;
  border-radius: 4px;
  white-space: nowrap;
}

/* Zoom controls. */
.scuk-jobmap-ctl {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 10;
}
.scuk-jobmap-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 8px;
  background: var(--wp--preset--color--base);
  color: var(--wp--preset--color--contrast);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(27, 33, 38, 0.12);
}
.scuk-jobmap-btn:hover {
  background: var(--wp--preset--color--pale);
}


/* Header dropdowns: one solid content-fitted panel, right-aligned -
   reads cleanly over photographic and text heroes alike. */
.wp-block-navigation .wp-block-navigation__submenu-container {
  background: var(--wp--preset--color--contrast) !important;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  box-shadow: 0 14px 30px rgba(27, 33, 38, 0.4);
  padding: 0.3rem !important;
  width: max-content;
  min-width: 0 !important;
  margin-top: 0;
  left: auto !important;
  right: 0 !important;
}
.wp-block-navigation .wp-block-navigation__submenu-container li {
  display: flex !important;
  justify-content: flex-end !important;
  width: 100%;
  margin-bottom: 0;
}
.wp-block-navigation .wp-block-navigation__submenu-container a {
  color: var(--wp--preset--color--base) !important;
  padding: 0.5rem 0.85rem !important;
  border-radius: 6px;
  text-align: right;
  justify-content: flex-end;
  display: flex !important;
  flex: 1 1 auto !important;
  width: auto !important;
  white-space: nowrap;
  background: transparent;
  box-shadow: none;
}
.wp-block-navigation .wp-block-navigation__submenu-container a:hover {
  background: var(--wp--preset--color--primary-dark);
  text-decoration: none;
}



/* Text-only page heroes (charcoal bands): tighter vertical rhythm.
   Photo covers (wp-block-cover) are untouched. */
.wp-block-post-content > .wp-block-group.has-charcoal-background-color:first-child {
  padding-top: 2.5rem !important;
  padding-bottom: 2.75rem !important;
}
.wp-block-post-content > .wp-block-group.has-charcoal-background-color:first-child h1 {
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
}
.wp-block-post-content > .wp-block-group.has-charcoal-background-color:first-child + .wp-block-group {
  margin-top: 0 !important;
}
.wp-block-post-content > .wp-block-group.has-charcoal-background-color:first-child + .wp-block-group.alignfull {
  padding-top: 2.75rem !important;
}


/* Mobile menu overlay: dark panel (was defaulting to white-on-white). */
.wp-block-navigation__responsive-container.is-menu-open {
  background: var(--wp--preset--color--night, #10151a) !important;
  padding: 4.5rem 2rem 2rem;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__label {
  color: var(--wp--preset--color--base) !important;
  font-size: 1.15rem;
  padding: 0.45rem 0;
}
.wp-block-navigation__responsive-container-close {
  color: var(--wp--preset--color--base) !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
  background: transparent !important;
  border: 0;
  box-shadow: none;
  padding-left: 1rem;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container a {
  text-align: left;
}

/* Burger icon: three lines, drawn by us (core's default is two). */
.wp-block-navigation__responsive-container-open {
  color: var(--wp--preset--color--base);
}
.wp-block-navigation__responsive-container-open svg {
  display: none;
}
.wp-block-navigation__responsive-container-open::before {
  content: "";
  display: block;
  width: 22px;
  height: 2.5px;
  border-radius: 2px;
  background: currentColor;
  box-shadow: 0 7px 0 currentColor, 0 14px 0 currentColor;
  transform: translateY(-7px);
}

/* Jobs map on touch screens: let vertical swipes scroll the page;
   horizontal drags still pan the map, buttons still zoom. */
@media (hover: none), (pointer: coarse) {
  .scuk-jobmap-zoom {
    touch-action: pan-y;
  }
}


/* Mobile overlay: left-align the menu for natural phone reading. */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
  align-items: flex-start;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
  align-items: flex-start;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
  justify-content: flex-start;
}


/* Palette slug "border" collides with core's structural has-border-color
   class, accidentally painting bordered blocks' text hairline grey.
   Restore normal text inheritance; border colours are unaffected. */
.has-border-color {
  color: inherit !important;
}

/* Homepage trust band: the CQC panel stretches to match the reasons
   grid exactly; widgets sit centred inside a quiet framed surface. */
.scuk-cqc-panel {
  background: var(--wp--preset--color--mist);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  box-sizing: border-box;
}
.scuk-cqc-panel-cap {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--wp--preset--color--slate);
  margin: 0;
  text-align: center;
}
.scuk-cqc-pair {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}
.scuk-cqc-pair .scuk-cqc-widget {
  zoom: 0.85;
  max-height: 295px;
  overflow: hidden;
}
.wp-block-columns:has(.scuk-cqc-panel) h3 {
  margin-top: 0;
  margin-bottom: 0.3rem;
}
.wp-block-columns:has(.scuk-cqc-panel) p.has-small-font-size {
  font-size: 0.8rem;
  line-height: 1.4;
  margin-top: 0;
}

/* Desktop nav: keep all items on one line inside the constrained
   header width - tighter gaps, snug dropdown chevrons. */
@media (min-width: 782px) {
  header .wp-block-navigation .wp-block-navigation__container {
    gap: 0.85rem !important;
    flex-wrap: nowrap !important;
  }
  header .wp-block-navigation .wp-block-navigation__submenu-icon {
    margin-left: 2px;
    width: 0.7em;
  }
}
@media (min-width: 782px) and (max-width: 1400px) {
  header .wp-block-navigation {
    font-size: 0.92rem;
  }
  header .wp-block-navigation .wp-block-navigation__container {
    gap: 0.65rem !important;
  }
}


/* ============================================================
   LIGHT BAND MAPPING (canonical colour scheme)
   Content in the DB is authored with dark "charcoal" bands; this
   single block renders them as light sky bands. Header and footer
   remain the dark brand anchors (contrast / night). Every colour
   decision appears exactly once, using palette tokens only.
   ============================================================ */

/* flat charcoal bands -> light sky */
main .has-charcoal-background-color {
  background-color: var(--wp--preset--color--sky) !important;
}
main .has-charcoal-background-color .has-base-color,
main .has-charcoal-background-color h1,
main .has-charcoal-background-color h2,
main .has-charcoal-background-color h3 {
  color: var(--wp--preset--color--ink-soft) !important;
}
main .has-charcoal-background-color .has-pale-color {
  color: var(--wp--preset--color--primary-dark) !important;
}
main .has-charcoal-background-color p:not(.has-pale-color):not(.has-base-color) {
  color: var(--wp--preset--color--uniform-grey);
}
main .has-charcoal-background-color .wp-block-button__link.has-base-color {
  color: var(--wp--preset--color--ink-soft) !important;
  border-color: var(--wp--preset--color--ink-soft) !important;
}
main .has-charcoal-background-color .has-base-background-color {
  background-color: var(--wp--preset--color--base) !important;
}

/* photo hero overlays keep the true dark charcoal (never lightened) */
main .wp-block-cover .has-charcoal-background-color,
main .wp-block-cover__background.has-charcoal-background-color {
  background-color: var(--wp--preset--color--charcoal) !important;
}

/* dark chips inside light bands keep light text */
main .has-charcoal-background-color .has-steel-background-color,
main .has-charcoal-background-color .has-steel-background-color p,
main .has-charcoal-background-color .has-steel-background-color .has-pale-color,
main .has-charcoal-background-color .has-steel-background-color .has-base-color,
main .has-charcoal-background-color div.has-night-background-color,
main .has-charcoal-background-color div.has-night-background-color p {
  color: var(--wp--preset--color--mist) !important;
}

/* full-width mist bands: deepen to the border tone so bands read as
   distinct sections; cards inside keep the lighter mist and lift */
main .entry-content > .wp-block-group.alignfull.has-mist-background-color {
  background-color: var(--wp--preset--color--grey-band) !important;
}

/* mobile menu overlay + nav dropdown panels: dark charcoal to match
   the dark header (and neutralise desktop dropdown styling leaks) */
.wp-block-navigation .wp-block-navigation__submenu-container {
  background: var(--wp--preset--color--uniform-grey) !important;
}
.wp-block-navigation__responsive-container.is-menu-open {
  background: var(--wp--preset--color--uniform-grey) !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.wp-block-navigation__responsive-container.is-menu-open li {
  justify-content: flex-start !important;
}
.wp-block-navigation__responsive-container.is-menu-open a {
  text-align: left !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container,
.wp-block-navigation__responsive-container.is-menu-open ul {
  align-items: flex-start !important;
}

/* uniform grey: brand neutral for the frame of the site */
header.has-contrast-background-color {
  background-color: var(--wp--preset--color--uniform-grey) !important;
}
body footer.has-night-background-color {
  background-color: var(--wp--preset--color--uniform-grey) !important;
}

/* links on uniform-grey surfaces: pale, never dark blue (contrast rule) */
footer a:not(.wp-element-button),
header.has-contrast-background-color a:not(.wp-element-button) {
  color: var(--wp--preset--color--pale);
}
footer a:not(.wp-element-button):hover,
header.has-contrast-background-color a:not(.wp-element-button):hover {
  color: var(--wp--preset--color--base);
}

/* secondary/outline buttons: grey - blue is reserved for primary CTAs */
main .wp-block-button.is-style-outline .wp-block-button__link {
  color: var(--wp--preset--color--uniform-grey);
  border-color: var(--wp--preset--color--uniform-grey);
}
main .wp-block-cover .wp-block-button.is-style-outline .wp-block-button__link {
  color: var(--wp--preset--color--base);
  border-color: var(--wp--preset--color--base);
}

/* informational uppercase kickers: grey when not links (location tag
   links keep their blue via their own anchor styling) */
main p.has-primary-color[style*="letter-spacing"] {
  color: var(--wp--preset--color--uniform-grey) !important;
}

/* ============================================================
   LAYOUT & RHYTHM (non-colour rules retained from iteration)
   ============================================================ */

/* sticky header: nav + booking stay available while scrolling */
header.wp-block-template-part {
  display: contents;
}
header.has-contrast-background-color {
  position: sticky;
  top: 0;
  z-index: 990;
  box-shadow: 0 2px 14px rgba(20, 24, 29, 0.22);
}

/* homepage: tighter vertical rhythm between sections */
body.home main .entry-content > .wp-block-group[style*="padding-top:4"],
body.home main .entry-content > .wp-block-group[style*="padding-top:5"] {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}
body.home main .wp-block-post-template {
  gap: 1.25rem !important;
}
body.home main .wp-block-query .wp-block-post {
  margin-bottom: 1rem !important;
}

/* section rhythm: full-width bands meet edge-to-edge, no seams */
main .entry-content > .wp-block-group.alignfull,
main .entry-content > .wp-block-cover.alignfull,
main .entry-content > .wp-block-cover {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* footer tagline slightly larger */
footer .scuk-logo + p {
  font-size: 15px !important;
  line-height: 1.65;
}

/* footer phone line glyph (pale data-URI, no markup changes) */
footer p[style*="font-weight:700"]::before {
  content: "";
  display: inline-block;
  width: 0.95em;
  height: 0.95em;
  margin-right: 0.4em;
  vertical-align: -0.12em;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23cfe3ee" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M5.5 3.5h3l1.6 4-2 1.5a12.5 12.5 0 0 0 6.9 6.9l1.5-2 4 1.6v3a2 2 0 0 1-2.2 2A16.5 16.5 0 0 1 3.5 5.7a2 2 0 0 1 2-2.2z"/></svg>') no-repeat center / contain;
}


/* vacancy list cards: small pay/contract meta line */
.scuk-vac-meta {
  color: var(--wp--preset--color--slate);
  font-size: 0.9rem;
  margin: 0.3rem 0 0;
}

/* vacancies page on phones: jobs list first, map after */
@media (max-width: 781px) {
  .wp-block-columns:has(.scuk-jobmap-zoom) {
    display: flex;
    flex-direction: column;
  }
  .wp-block-columns:has(.scuk-jobmap-zoom) > .wp-block-column:first-child {
    order: 2;
  }
}


/* dropdown: parent page appears as first item, set off by a divider */
.scuk-submenu-parent > a {
  font-weight: 700;
}
.scuk-submenu-parent {
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  margin-bottom: 0.3rem;
  padding-bottom: 0.3rem;
}
/* mobile overlay: parents are already tappable links - no duplicate */
.wp-block-navigation__responsive-container.is-menu-open .scuk-submenu-parent {
  display: none;
}


/* respect reduced-motion: hide hero video, keep the still overlay */
@media (prefers-reduced-motion: reduce) {
  .wp-block-cover__video-background {
    display: none;
  }
}


/* about hero: inline animation beside the heading */
.scuk-hero-video video {
  border-radius: 12px;
  display: block;
  box-shadow: 0 10px 30px rgba(20, 24, 29, 0.15);
}


/* about hero: sky band like every hero; the animation sits on it as a
   white rounded card (card-on-band language), full frame, native size */
.scuk-about-hero {
  background: var(--wp--preset--color--sky);
}
.scuk-about-hero .wp-block-cover__video-background {
  left: auto !important;
  right: max(1.5rem, calc((100% - 1200px) / 2)) !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: min(44vw, 780px) !important;
  height: auto !important;
  aspect-ratio: 1920 / 966;
  object-fit: cover !important;
  mix-blend-mode: multiply;
}
@media (max-width: 781px) {
  .scuk-about-hero {
    display: flex;
    flex-direction: column;
    min-height: 0 !important;
    padding: 1.5rem 0;
  }
  .scuk-about-hero .wp-block-cover__inner-container {
    order: 1;
  }
  .scuk-about-hero .wp-block-cover__video-background {
    position: static !important;
    order: 2;
    width: calc(100% - 3rem) !important;
    margin: 1rem auto 0;
    transform: none !important;
  }
}


/* about: the 61-second brand film (with sound) in the card beside the heading - 28 Oct 2026 */
.scuk-about-hero .wp-block-cover__video-background.scuk-film {
  aspect-ratio: 16 / 9;
  mix-blend-mode: normal;
  object-fit: contain !important;
  z-index: 2;
  pointer-events: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(20, 24, 29, 0.15);
  background: #f3efe6;
}


/* about banner: same size, spacing and type as every other page banner (audit 28 Oct 2026) */
.wp-block-cover.scuk-about-hero {
  --scuk-film-w: min(42vw, 620px);
  min-height: 440px !important;
  padding: 2.5rem 0 !important;
}
.scuk-about-hero > .wp-block-cover__inner-container {
  width: min(1200px, 100% - 3rem) !important;
  max-width: none !important;
  margin-inline: auto !important;
  padding: 0 !important;
}
.scuk-about-hero > .wp-block-cover__inner-container > .wp-block-group { padding-left: 0 !important; padding-right: 0 !important; }
.scuk-about-hero > .wp-block-cover__inner-container > .wp-block-group > * {
  max-width: min(560px, calc(100% - var(--scuk-film-w) - 3rem)) !important;
  margin-left: 0 !important;
}
.scuk-about-hero h1 { font-size: clamp(2rem, 2.7vw, 2.9rem) !important; line-height: 1.12 !important; margin-bottom: 0.9rem !important; text-wrap: balance; }
.scuk-about-hero p.has-large-font-size { font-size: clamp(1.05rem, 1.3vw, 1.3rem) !important; line-height: 1.55 !important; }
.scuk-about-hero .wp-block-cover__video-background.scuk-film { width: var(--scuk-film-w) !important; }
@media (max-width: 781px) {
  .wp-block-cover.scuk-about-hero { padding: 2rem 0 !important; min-height: 0 !important; }
  .scuk-about-hero > .wp-block-cover__inner-container { width: calc(100% - 2.5rem) !important; }
  .scuk-about-hero > .wp-block-cover__inner-container > .wp-block-group > * { max-width: none !important; }
  .scuk-about-hero h1 { font-size: clamp(1.75rem, 7.5vw, 2.2rem) !important; }
  .scuk-about-hero .wp-block-cover__video-background.scuk-film { width: calc(100% - 2.5rem) !important; margin: 1.5rem auto 0 !important; }
}


/* vacancy closing date line + closing-soon chip */
.scuk-vac-closes {
  color: var(--wp--preset--color--slate);
  font-size: 0.95rem;
  margin: 0 0 1rem;
}
.scuk-vac-soon {
  display: inline-block;
  background: var(--wp--preset--color--primary-dark);
  color: var(--wp--preset--color--base);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  vertical-align: 0.08em;
}


/* photographic figure treatment */
.scuk-photo img {
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(16, 42, 67, 0.16);
}
.scuk-photo .wp-element-caption {
  color: var(--wp--preset--color--slate);
  font-size: 0.85rem;
  text-align: center;
  margin-top: 0.75rem;
}


/* staff portal news cards */
.scuk-newscard {
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(16, 42, 67, 0.08);
}
.scuk-newscard figure {
  margin: 0;
}
.scuk-newscard figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
  display: block;
  object-position: center top;
}
.scuk-newscard h3 {
  line-height: 1.3;
}

.scuk-hero-thumb img {
  border-radius: 12px;
  max-height: 220px;
  width: auto;
  margin-left: auto;
  box-shadow: 0 10px 28px rgba(16, 42, 67, 0.14);
}
.scuk-hero-thumb {
  text-align: right;
}


/* staff portal: category accordions */
.scuk-acc {
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.6rem;
  background: var(--wp--preset--color--base);
}
.scuk-acc summary {
  font-weight: 700;
  cursor: pointer;
}
.scuk-acc[open] summary {
  margin-bottom: 0.5rem;
}
.scuk-acc p {
  margin: 0;
  color: var(--wp--preset--color--slate);
}

/* staff portal: on-this-page line */
.scuk-toc {
  color: var(--wp--preset--color--slate);
}

/* staff portal: logo/graphic card media on a tinted panel */
.scuk-newscard figure.scuk-contain img {
  object-fit: contain;
  background: var(--wp--preset--color--sky);
  padding: 1rem;
  box-sizing: border-box;
}

/* password-protected pages: styled form */
.post-password-form {
  max-width: 480px;
  margin: 3rem auto 4rem;
  padding: 2rem;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 12px;
  background: var(--wp--preset--color--base);
  box-shadow: 0 10px 28px rgba(16, 42, 67, 0.08);
}
.post-password-form input[type="password"] {
  width: 100%;
  min-height: 48px;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 8px;
  font-size: 1rem;
  margin: 0.35rem 0 0.9rem;
  box-sizing: border-box;
}
.post-password-form input[type="submit"] {
  min-height: 48px;
  padding: 0.6rem 1.6rem;
  border: 0;
  border-radius: 8px;
  background: var(--wp--preset--color--primary-dark);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}

/* staff portal: compact news cards on small phones */
@media (max-width: 480px) {
  .scuk-newscard {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 0.2rem 0.9rem;
    align-items: start;
    padding: 0.9rem !important;
  }
  .scuk-newscard figure {
    grid-row: 1 / span 3;
  }
  .scuk-newscard figure img {
    width: 92px;
    height: 92px;
    aspect-ratio: 1;
    border-radius: 10px;
  }
  .scuk-newscard figure.scuk-contain img {
    padding: 0.4rem;
  }
  .scuk-newscard h3,
  .scuk-newscard p,
  .scuk-newscard .wp-block-buttons {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .scuk-newscard p {
    display: none;
  }
}


/* staff portal: embedded de-escalation game + content imagery limits */
.scuk-game-frame {
  width: 100%;
  height: 1000px;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 12px;
  background: #fff;
}
.scuk-photo img {
  max-height: 460px;
  width: auto;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  display: block;
}
.scuk-sheet img {
  max-height: 340px;
}


/* staff portal: magazine-style text wrap around body images */
figure.wp-block-image.scuk-photo.alignright,
figure.wp-block-image.scuk-photo.alignleft {
  width: min(340px, 44%);
}
figure.wp-block-image.scuk-photo.alignright {
  float: right;
  margin: 0.4rem max(1.25rem, calc((100% - 860px) / 2)) 1.25rem 2rem;
}
figure.wp-block-image.scuk-photo.alignleft {
  float: left;
  margin: 0.4rem 2rem 1.25rem max(1.25rem, calc((100% - 860px) / 2));
}
.scuk-photo.alignright img,
.scuk-photo.alignleft img {
  width: 100%;
  max-height: none;
  margin: 0;
}
h2.wp-block-heading {
  clear: both;
}
@media (max-width: 640px) {
  figure.wp-block-image.scuk-photo.alignright,
  figure.wp-block-image.scuk-photo.alignleft {
    float: none;
    width: 100%;
    margin: 1rem 0;
  }
}

.scuk-frame-tall {
  height: 1500px;
}
@media (max-width: 640px) {
  .scuk-game-frame {
    height: 820px;
  }
  .scuk-frame-tall {
    height: 1200px;
  }
}


/* staff portal: audit-2 refinements */
.scuk-frame-game {
  height: 1250px;
}
.scuk-frame-dict {
  height: 1050px;
}
.scuk-clear {
  clear: both;
  margin: 0;
}
.wp-block-group .is-layout-grid > .wp-block-group,
.is-layout-grid > .wp-block-group {
  display: flex;
  flex-direction: column;
}
.is-layout-grid > .wp-block-group > .wp-block-buttons {
  margin-top: auto;
  padding-top: 0.75rem;
}


/* staff portal: audit-3 refinements */
.scuk-game-frame {
  display: block;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}
.is-layout-grid > .wp-block-group > .wp-block-buttons {
  justify-content: flex-start;
}

.scuk-policon img {
  width: 112px;
  height: 112px;
  object-fit: contain;
  border-radius: 10px;
}
.scuk-policon {
  margin: 0 0 0.25rem;
}
.is-layout-grid .wp-block-group h3 a {
  text-decoration: none;
}
.is-layout-grid .wp-block-group h3 a:hover {
  text-decoration: underline;
}

/* SCUK loop heroes (paper-collage animations) - v2.7, 28 Oct 2026
   Fixed banner heights; the video is pinned right at full banner height (never cropped top or bottom);
   the left side is flat sky (#eaf1f5, same as the video's own left edge) for the title; dark text; no overlay.
   v2.3: the animation lines up with the 1200px content column (same margin both sides on wide screens), and a
   band-coloured gradient sits over its edges (::after) - no visible seam whatever colour shift a browser's video
   decoder adds. (A CSS mask on the playing video stopped Chrome painting the band colour, so it is not used.)
   v2.4: the band's own poster layer is parked off-screen at 1px rather than sized 0 - Chrome skipped painting the
   band colour when a background layer was 0x0, which showed white behind the title on some pages.
   v2.7: pause button style (the button itself comes from assets/js/scuk-motion.js).
   v2.6: slightly narrower text column on Home and at laptop widths (text stays clear of the animation's faded edge).
   v2.5: Home uses the same 1920x600 animation and banner height as every other page.
   Phones: text first, animation underneath (cropped to its right-hand side). */
.wp-block-cover.scuk-loop-hero {
  --scuk-hero-h: 440px;
  position: relative;
  height: auto;
  min-height: var(--scuk-hero-h) !important;
  aspect-ratio: auto !important;
  padding: 2.5rem 0 !important;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--wp--preset--color--sky, #eaf1f5) !important;
  background-size: 1px 1px !important;           /* poster url lives here; drawn by ::before so it can be faded too */
  background-position: -9999px -9999px !important;
  background-repeat: no-repeat !important;
  --scuk-ar: 1920 / 600;
  --scuk-edge: max(0px, calc((100% - 1200px) / 2 - 40px));   /* right edge of the art meets the content column */
  --scuk-band: #eaf1f5;
  --scuk-fade: linear-gradient(to right, var(--scuk-band) 0, rgb(234 241 245 / 0) 26%, rgb(234 241 245 / 0) 94%, var(--scuk-band) 100%);
}
/* poster still (always behind the video; it is what people see when motion is off) */
.wp-block-cover.scuk-loop-hero::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; right: var(--scuk-edge); left: auto;
  height: 100%;
  aspect-ratio: var(--scuk-ar);
  background-image: inherit;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
}
/* edge blend: band colour fading into the animation on both sides (above the video, below the text) */
.wp-block-cover.scuk-loop-hero::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; right: var(--scuk-edge); left: auto;
  height: 100%;
  aspect-ratio: var(--scuk-ar);
  background: var(--scuk-fade);
  pointer-events: none;
  z-index: 0;
}
.scuk-loop-hero > .wp-block-cover__background { display: none !important; }
.scuk-loop-hero > .wp-block-cover__video-background {
  position: absolute !important;
  top: 0 !important; right: var(--scuk-edge) !important; bottom: auto !important; left: auto !important;
  height: 100% !important;
  width: auto !important;
  aspect-ratio: var(--scuk-ar);
  max-width: none !important;
  object-fit: contain !important;
  transform: none !important;
}
.scuk-loop-hero > .wp-block-cover__inner-container {
  position: relative;
  z-index: 1;
  width: min(1200px, 100% - 3rem) !important;
  max-width: none !important;
  margin-inline: auto !important;
  padding: 0 !important;
  color: var(--wp--preset--color--ink-soft, #24333d);
}
.scuk-loop-hero > .wp-block-cover__inner-container > * { max-width: min(46%, 560px); margin-left: 0 !important; margin-right: auto !important; }
.scuk-loop-hero.is-home > .wp-block-cover__inner-container > * { max-width: min(50%, 600px); }
.scuk-loop-hero.is-home .wp-block-columns { display: block; }
.scuk-loop-hero.is-home .wp-block-column { flex-basis: 100% !important; max-width: 100%; }
/* text colours: dark on the light band (overrides the white text set on the old dark hero blocks) */
.scuk-loop-hero h1, .scuk-loop-hero h2 { color: var(--wp--preset--color--ink-soft, #24333d) !important; text-wrap: balance; font-size: clamp(2rem, 2.7vw, 2.9rem) !important; line-height: 1.12 !important; margin-bottom: 0.9rem !important; overflow-wrap: anywhere; }
.scuk-loop-hero p.has-large-font-size, .scuk-loop-hero .has-large-font-size { font-size: clamp(1.05rem, 1.3vw, 1.3rem) !important; line-height: 1.55 !important; }
.scuk-loop-hero p { color: var(--wp--preset--color--uniform-grey, #454d55) !important; }
.scuk-loop-hero p[style*="uppercase"] { color: var(--wp--preset--color--uniform-grey, #454d55) !important; }
.scuk-loop-hero .wp-block-button__link:not(.has-background) { color: var(--wp--preset--color--ink-soft, #24333d) !important; border-color: var(--wp--preset--color--uniform-grey, #454d55) !important; }
.scuk-loop-hero .wp-block-button__link.has-pale-background-color { background-color: var(--wp--preset--color--primary-dark, #26758f) !important; color: #fff !important; }
.scuk-loop-hero .is-style-outline .wp-block-button__link { background: transparent !important; color: var(--wp--preset--color--ink-soft, #24333d) !important; border: 2px solid var(--wp--preset--color--uniform-grey, #454d55) !important; }
/* smaller laptops: keep the Home intro clear of the van scene */
@media (max-width: 1366px) {
  .scuk-loop-hero.is-home > .wp-block-cover__inner-container > * { max-width: min(47%, 600px); }
}
/* in-between widths: a little shorter so the animation stays clear of the title */
@media (max-width: 1100px) {
  .wp-block-cover.scuk-loop-hero { --scuk-hero-h: 400px; }
  .scuk-loop-hero > .wp-block-cover__inner-container > *,
  .scuk-loop-hero.is-home > .wp-block-cover__inner-container > * { max-width: min(40%, 480px); }   /* keep text clear of the art's faded edge */
}
/* phones and small tablets: stack */
@media (max-width: 781px) {
  .wp-block-cover.scuk-loop-hero, .wp-block-cover.scuk-loop-hero.is-home {
    min-height: 0 !important;
    display: block;
    padding: 2rem 0 calc(230px + 1.5rem) !important;
    --scuk-edge: 0px;
    --scuk-fade: linear-gradient(to bottom, var(--scuk-band) 0, rgb(234 241 245 / 0) 24%);
  }
  .scuk-loop-hero > .wp-block-cover__video-background {
    top: auto !important; bottom: 0 !important; right: 0 !important;
    width: 100% !important; height: 230px !important; aspect-ratio: auto;
    object-fit: cover !important; object-position: right center !important;
  }
  .wp-block-cover.scuk-loop-hero::before {
    top: auto; bottom: 0; right: 0; width: 100%; height: 230px; aspect-ratio: auto;
    background-size: cover; background-position: right center;
  }
  .wp-block-cover.scuk-loop-hero::after { top: auto; bottom: 0; right: 0; width: 100%; height: 230px; aspect-ratio: auto; }
  .scuk-loop-hero > .wp-block-cover__inner-container { width: calc(100% - 2.5rem) !important; }
  .scuk-loop-hero > .wp-block-cover__inner-container > *,
  .scuk-loop-hero.is-home > .wp-block-cover__inner-container > * { max-width: none; }
  .scuk-loop-hero h1, .scuk-loop-hero h2 { font-size: clamp(1.75rem, 7.5vw, 2.2rem) !important; }
}
/* pause button (added by assets/js/scuk-motion.js) - sits on the bottom-right corner of the animation */
.scuk-loop-hero .scuk-motion-toggle {
  position: absolute; z-index: 3; right: calc(var(--scuk-edge) + 40px); bottom: 14px;
  font: 700 13px/1 Lato, 'Segoe UI', system-ui, sans-serif; letter-spacing: .2px;
  padding: 8px 13px; border-radius: 999px; cursor: pointer;
  color: var(--wp--preset--color--uniform-grey, #454d55); background: rgb(255 255 255 / .86);
  border: 1px solid rgb(69 77 85 / .3); box-shadow: 0 1px 4px rgb(20 24 29 / .08);
}
.scuk-loop-hero .scuk-motion-toggle:hover { background: #fff; color: var(--wp--preset--color--ink-soft, #24333d); }
.scuk-loop-hero .scuk-motion-toggle:focus-visible { outline: 3px solid #2b86a8; outline-offset: 2px; }
@media (max-width: 781px) { .scuk-loop-hero .scuk-motion-toggle { right: 12px; bottom: 12px; } }
/* motion off: hide the video, the poster still stays */
@media (prefers-reduced-motion: reduce) {
  .scuk-loop-hero > .wp-block-cover__video-background, .scuk-loop-hero .scuk-motion-toggle { display: none !important; }
}

/* ------------------------------------------------------------------
   Pre-launch audit fixes (29 Oct 2026)
------------------------------------------------------------------- */
/* Keyboard focus: two-tone ring, visible on light and dark backgrounds */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
.wp-block-button__link:focus-visible,
.wp-block-navigation a:focus-visible {
  outline: 3px solid #0E1216 !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 5px #fff !important;
}

/* White text on the mid blue was below contrast guidelines - use the darker blue */
.has-primary-background-color {
  background-color: var(--wp--preset--color--primary-dark) !important;
}

/* Fixed-column grids (4 or 5 across) step down on smaller screens instead of squeezing or overflowing */
@media (max-width: 1024px) {
  .wp-block-group.is-layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 600px) {
  .wp-block-group.is-layout-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .wp-block-columns { flex-wrap: wrap !important; }
}
.is-layout-grid > * { min-width: 0; }

/* Footer links: comfortable tap targets on phones */
@media (max-width: 781px) {
  footer .wp-block-column p a { display: inline-block; padding: 0.3rem 0; }
}

/* Motion switched off on the device: the About film is a normal, user-started video, so keep it */
@media (prefers-reduced-motion: reduce) {
  .scuk-about-hero .wp-block-cover__video-background.scuk-film { display: block !important; }
}

/* Footer on tablets: two columns per row so the CQC widget has room */
@media (min-width: 782px) and (max-width: 1100px) {
  footer .wp-block-columns { flex-wrap: wrap !important; }
  footer .wp-block-columns > .wp-block-column { flex-basis: calc(50% - 1.25rem) !important; flex-grow: 0 !important; }
}

/* Text links and outline buttons on the dark-blue band stay readable */
.has-primary-background-color a:not(.wp-block-button__link) { color: #fff !important; text-decoration: underline; }
.has-primary-background-color .wp-block-button__link:not(.has-background):not(.has-text-color) { background-color: #fff !important; color: var(--wp--preset--color--primary-dark) !important; border-color: #fff !important; }
.has-primary-background-color .wp-block-button__link.has-text-color:not(.has-background) { border: 2px solid #fff !important; color: #fff !important; }
.has-primary-background-color .wp-block-button__link.has-primary-dark-background-color,
.has-primary-background-color .wp-block-button__link.has-primary-background-color { background-color: #fff !important; color: var(--wp--preset--color--primary-dark) !important; }

/* Careers: recruitment film below the banner (user-started, with sound and subtitles - never autoplays) */
.scuk-recruit-film { margin: 0; }
.scuk-recruit-film video {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #0E1216;
  border-radius: 12px; box-shadow: 0 14px 34px rgba(20, 24, 29, 0.18);
}
@media (max-width: 781px) {
  .scuk-recruit-film-band { padding-top: 2.75rem !important; padding-bottom: 2.75rem !important; }
}
@media (prefers-reduced-motion: reduce) {
  .scuk-recruit-film video { display: block !important; }
}

/* Cookies page table */
.scuk-cookie-table table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.scuk-cookie-table th, .scuk-cookie-table td { border: 1px solid var(--wp--preset--color--border); padding: 0.75rem 0.9rem; text-align: left; vertical-align: top; }
.scuk-cookie-table thead th { background: var(--wp--preset--color--mist); }
@media (max-width: 600px) { .scuk-cookie-table { overflow-x: auto; } .scuk-cookie-table table { min-width: 520px; } }
