/* ============================================================
   SITE FIXES (2026-11-08)
   Two issues that the original pages and the live site both have.
   Kept separate from the page stylesheets, which stay verbatim.
   ============================================================ */

/* ---- 1. Home: sideways scrolling on phones ----------------------
   The "Our Family Our Home" badge on the About Us photo hangs 6% past
   the photo (right:-6%). Once the photo fills the screen width, below
   about 540px, that pushes the page 5 to 7px wider than the screen.
   The design's own phone rule (right:0, in the 920px query) was
   overridden by a later pass; it is restored here only where the
   overhang actually overflows. */
@media (max-width:540px){
  .about-badge{right:0}
}

/* ---- 2. Keyboard focus in the sticky header ----------------------
   html has scroll-padding-top (104-132px) so in-page anchors land
   below the sticky header. The browser applies the same padding when
   it scrolls a newly focused element into view, so it treated the
   header's own links as hidden under the header and scrolled the page
   up about 500px each time keyboard focus entered the header or the
   mobile menu. A negative top margin larger than the largest padding
   (132px) tells it the header's contents are already in view. No bottom
   margin: one would make the lowest mobile-menu items look "below the
   screen" and scroll the page down instead. Content below the header is
   unaffected: focus still pulls a link out from under the header, and
   anchors still land below it. Tested: tests/browser/focusjump.cjs. */
.site-header,
.site-header *{scroll-margin-top:-140px}
/* The mobile drop-down starts lower (its first link about 96px down), so
   it only needs a small margin. A large one makes Safari overshoot on the
   last link when the panel scrolls on short phones. */
@media (max-width:1020px){
  .primary-nav,
  .primary-nav *{scroll-margin-top:-48px}
}

/* ---- Careers: the [doxa_careers] section ------------------------
   It takes focus when the hero's "Send a general application" button
   sends the visitor there; the section itself needs no focus ring. */
.hhc-careers:focus{outline:none}

/* ---- Doxa Careers inside the theme -------------------------------
   The design's link rule (main a:not([class]), green) outranks the
   plugin's own ".dc-careers a{color:inherit}", which turned the
   contact links in the plugin's dark closing banner dark green on dark
   green (1.41:1). Hand link colour back to the plugin. */
.dc-careers a:not([class]){color:inherit}
