/* ---- Photo hero (home, county, 404) ----
   Dark block with text on the left and a photo on the right,
   split by a slanted red edge. Markup:

     <section class="photo-hero">
       <div class="photo-hero__photo"><img ...></div>
       <div class="container photo-hero__content"> h1, text ... </div>
     </section>
*/
.photo-hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.photo-hero .lead { color: var(--on-dark-muted); }
.photo-hero .breadcrumbs, .photo-hero .breadcrumbs a { color: var(--on-dark-muted); }
.photo-hero .breadcrumbs [aria-current] { color: #fff; font-weight: 600; }

/* Text sits above the photo */
.photo-hero__content { position: relative; padding-top: var(--space-xl); padding-bottom: var(--space-xl); }

/* The photo: on phones it fills the block, dimmed so the text stays readable */
.photo-hero__photo { position: absolute; inset: 0; opacity: 0.3; }
.photo-hero__photo img { width: 100%; height: 100%; object-fit: cover; }

/* On wider screens it moves to the right half with the slanted edge.
   The box behind is red; the photo is cut 8px further in, so a red stripe shows. */
@media (min-width: 900px) {
  .photo-hero__photo {
    left: 48%; opacity: 1; background: var(--red);
    clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
  }
  .photo-hero__photo img { clip-path: polygon(calc(14% + 8px) 0, 100% 0, 100% 100%, 8px 100%); }
  .photo-hero__content > * { max-width: 46%; }
}

/* ---- Faded, blurred traffic photo behind the whole page ----
   Turned on for every page in layouts/application.html.erb */
.has-photo-bg::before {
  content: ""; position: fixed; inset: -40px; z-index: -1; pointer-events: none;
  background: url("/assets/photos/page-bg-b318feb8.jpg") center / cover;
  filter: blur(16px); opacity: 0.22;
}

/* ---- 404 page ---- */
.not-found .photo-hero__content { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; }
.not-found__code { font-family: var(--font-display); font-weight: 800; font-size: clamp(5rem, 14vw, 9rem); line-height: 1; color: var(--red); }
.not-found h1 { margin: var(--space-sm) 0 var(--space-md); }
.not-found__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--space-lg); }
.not-found__safety { margin-top: var(--space-lg); color: var(--on-dark-muted); }
