/*
 * Readability overrides for HTML-imported pages (e.g. Babylone Outdoor).
 * Adds a gradient scrim + text-shadow so light text stays legible over photos
 * (category tiles, hero). Scoped to the imported markup classes — a no-op on
 * sites without them. Loaded globally in App.razor; `!important` is used because
 * the page's layout CSS is JS-injected AFTER this stylesheet.
 */

/* ── Category tiles ("Six manières d'habiter l'extérieur") ── */
.cat-tile { position: relative !important; }

/* Gradient scrim over the tile photo, beneath the text. */
.cat-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.72) 0%,
      rgba(0, 0, 0, 0.34) 45%,
      rgba(0, 0, 0, 0.06) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Text rides above the scrim, with a soft halo for any bright spots. */
.cat-tile__txt { position: relative !important; z-index: 2 !important; }
.cat-tile__txt,
.cat-tile__txt * { text-shadow: 0 1px 5px rgba(0, 0, 0, 0.6), 0 0 2px rgba(0, 0, 0, 0.5) !important; }

/* ── Hero headline over photo ── */
.hero .display,
.hero__inner .display,
.hero h1,
.hero__inner h1 { text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5), 0 1px 4px rgba(0, 0, 0, 0.55) !important; }
