/*
 * Shameem Pathology: global stylesheet (the ONLY custom CSS on the site).
 * Design system: Hallmark "Studio" theme in the client's H&E palette
 * (hue design language: slide-glass paper, hematoxylin ink, one eosin signal).
 * Colours, fonts, sizes, spacing, borders and buttons live in Divi
 * (global colours, global fonts, module settings). This file holds only
 * what Divi cannot do. Palette: ink #3A1F4B, links #5B3470, eosin #E2708F,
 * paper #F4F7F8, paper-2 #E9EEF1, sheet #FBFDFD, muted #6B6275, rule #D5DCE1.
 * Utility classes are switched on by adding them to a Divi module's
 * CSS class field: sp-proof, sp-crop, sp-guide.
 */

/* 1. Canvas */
html,
body {
  overflow-x: clip;
}

body,
#page-container,
#et-main-area,
#main-content {
  background-color: #F4F7F8;
}

h1,
h2,
h3,
.et_pb_heading_container h1,
.et_pb_heading_container h2,
.et_pb_heading_container h3 {
  font-optical-sizing: auto;
  overflow-wrap: break-word;
  min-width: 0;
}

/* 2. Accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.et_pb_button:focus-visible,
.et_pb_toggle_title:focus-visible {
  outline: 2px solid #E2708F;
  outline-offset: 3px;
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* 3. Proof ground: ink dot grid for the hero, nav and footer (sp-proof) */
.sp-proof {
  background-image: radial-gradient(circle at 1px 1px, rgba(58, 31, 75, 0.16) 1px, transparent 1.4px);
  background-size: 24px 24px;
}

/* 4. Crop marks on printed pieces: sheets, booklet covers, image slots (sp-crop) */
.sp-crop {
  position: relative;
  overflow: visible !important;
}

.sp-crop::before {
  content: "";
  position: absolute;
  inset: -12px;
  pointer-events: none;
  background:
    linear-gradient(rgba(58, 31, 75, 0.7), rgba(58, 31, 75, 0.7)) 0 12px / 8px 1px no-repeat,
    linear-gradient(rgba(58, 31, 75, 0.7), rgba(58, 31, 75, 0.7)) 12px 0 / 1px 8px no-repeat,
    linear-gradient(rgba(58, 31, 75, 0.7), rgba(58, 31, 75, 0.7)) 100% 12px / 8px 1px no-repeat,
    linear-gradient(rgba(58, 31, 75, 0.7), rgba(58, 31, 75, 0.7)) calc(100% - 12px) 0 / 1px 8px no-repeat,
    linear-gradient(rgba(58, 31, 75, 0.7), rgba(58, 31, 75, 0.7)) 0 calc(100% - 12px) / 8px 1px no-repeat,
    linear-gradient(rgba(58, 31, 75, 0.7), rgba(58, 31, 75, 0.7)) 12px 100% / 1px 8px no-repeat,
    linear-gradient(rgba(58, 31, 75, 0.7), rgba(58, 31, 75, 0.7)) 100% calc(100% - 12px) / 8px 1px no-repeat,
    linear-gradient(rgba(58, 31, 75, 0.7), rgba(58, 31, 75, 0.7)) calc(100% - 12px) 100% / 1px 8px no-repeat;
}

/* 5. Construction guide: a 1px eosin hairline under a head (sp-guide) */
.sp-guide {
  background-image: linear-gradient(#E2708F, #E2708F);
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
}

/* 6. Links in running text take an eosin underline on hover */
.et_pb_text a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(91, 52, 112, 0.35);
  transition: text-decoration-color 160ms ease-out;
}

.et_pb_text a:hover {
  text-decoration-color: #E2708F;
}

/* Wordmark and link lists in the masthead and colophon carry no underline (sp-plain) */
.sp-plain a {
  text-decoration: none;
}

.sp-plain a:hover {
  text-decoration: underline;
  text-decoration-color: #E2708F;
}
