/* Loaded on every inner page (app/layout.tsx). */
/* Every inner page: the homepage's #101010 with flowing lines and small
   figures, instead of flat black. Solid fills that need to cover (sticky headers,
   cards) use the same #101010, so they blend with the background. */
.textured-page {
  --page-bg: #101010;
  background:
    url("/assets/images/page-lines-dark.svg") top center / 1600px auto repeat-y,
    #101010;
}
.textured-page .ed-page,
.textured-page :is(.svc-automation, .svc-marketing, .svc-rental).ed-page {
  --page-bg: #101010;
  --sg-bg: #101010;
  --ed-panel: #161615;
  --ed-soft: #131312;
  background: transparent;
}
.textured-page .ed-final {
  background: transparent;
}
:root[data-theme="light"] .textured-page {
  --page-bg: #f7f5ef;
  background:
    url("/assets/images/page-lines-light.svg") top center / 1600px auto repeat-y,
    #f7f5ef;
}
:root[data-theme="light"] .textured-page .ed-page,
:root[data-theme="light"]
  .textured-page
  :is(.svc-automation, .svc-marketing, .svc-rental).ed-page {
  --page-bg: #f7f5ef;
  --sg-bg: #f7f5ef;
  --ed-panel: #fff;
  --ed-soft: #f2efe7;
}
@media (max-width: 760px) {
  .textured-page,
  :root[data-theme="light"] .textured-page {
    background-size: 1000px auto;
  }
}

/* Older page styles paint their own black panels; let the texture show. */
.textured-page .ed-page.service-story:is(.svc-web, .svc-seo) {
  --page-bg: #101010;
  --svc-surface: #101010;
}
:root[data-theme="light"]
  .textured-page
  .ed-page.service-story:is(.svc-web, .svc-seo) {
  --page-bg: #f7f5ef;
}
.textured-page
  :is(
    .page-section,
    .ed-page.service-story,
    .svc-web .web-preview-stage,
    .svc-web .web-needs-heading,
    .svc-seo .seo-delivery-intro
  ) {
  background: transparent !important;
}
/* Pinned visuals keep a solid cover on phones, where text scrolls beneath
   them; on wider screens they sit in their own column, so let the texture show. */
@media (min-width: 761px) {
  .textured-page .svc-web .web-journey-visual,
  .textured-page .svc-web .web-journey-visual::before {
    background: transparent;
  }
}
