/* Rounded edges and subtle depth ONLY. Load after all existing site CSS.
   Enable with <body class="... soft-depth">. No layout or colour changes. */
.soft-depth {
  --sd-card-radius: 12px;
  --sd-control-radius: 8px;
  --sd-photo-radius: 10px;
  --sd-card-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .45),
    0 1px 2px rgba(23, 57, 75, .05),
    0 5px 12px rgba(23, 57, 75, .06);
  --sd-control-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .35),
    0 2px 3px rgba(23, 57, 75, .10);
}

/* Existing filled cards and callout boxes. Never target all divs/sections. */
.soft-depth .hero-path-card,
.soft-depth .testimonial-cols > div,
.soft-depth .test-card,
.soft-depth .insight,
.soft-depth .in-short,
.soft-depth .author-bio,
.soft-depth .sd-card {
  /* Required because several original templates set the radius !important. */
  border-radius: var(--sd-card-radius) !important;
  box-shadow: var(--sd-card-shadow);
}

/* Filled/bordered action controls; retain their existing focus indicators. */
.soft-depth .btn-primary,
.soft-depth .btn-secondary,
.soft-depth .btn-p,
.soft-depth .nav-cta-btn,
.soft-depth .ads-nav-cta,
.soft-depth .ic-submit,
.soft-depth .nav-button,
.soft-depth .hamburger,
.soft-depth .sticky-btn,
.soft-depth .qm-bar-btn,
.soft-depth .qm-float,
.soft-depth .qm-chip,
.soft-depth .qm-send,
.soft-depth .qm-close,
.soft-depth .ec-btn,
.soft-depth .mobile-menu .mm-cta a,
.soft-depth .mid-cta a,
.soft-depth a.hero-pill[href="#contact"],
.soft-depth .sd-button {
  border-radius: var(--sd-control-radius);
  box-shadow: var(--sd-control-shadow);
}

/* The earlier homepage deliberately turns this control into a text link. */
.soft-depth.design-refresh .hero-chooser-foot .btn-primary {
  border-radius: 0;
  box-shadow: none;
}

/* Other templates still use filled topic tiles. Keep the earlier 3-page
   redesign's ruled text-link lists completely flat. */
.soft-depth:not(.design-refresh) .hero-pills > a:not([href="#contact"]),
.soft-depth:not(.design-refresh) .issue-pill {
  border-radius: var(--sd-control-radius);
  box-shadow: var(--sd-control-shadow);
}

/* Inputs stay visually recessed/flat: rounding only, no raised shadow.
   Exclude checkbox, radio and hidden inputs. */
.soft-depth .ic-field input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.soft-depth .ic-field select,
.soft-depth .ic-field textarea,
.soft-depth .form-field input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.soft-depth .form-field select,
.soft-depth .form-field textarea,
.soft-depth .issues-search,
.soft-depth .imenu-search,
.soft-depth .qm-email {
  border-radius: var(--sd-control-radius) !important;
}

/* Message dialog keeps its existing size, scroll behaviour and backdrop. */
.soft-depth .qm-dialog {
  border-radius: var(--sd-card-radius);
}
.soft-depth .qm-x {
  border-radius: var(--sd-control-radius);
}
@media (max-width: 768px) {
  .soft-depth .qm-dialog {
    border-radius: var(--sd-card-radius) var(--sd-card-radius) 0 0;
  }
}

/* Round the actual photo box without altering crop, sizing or aspect ratio. */
.soft-depth .hero-portrait,
.soft-depth .lp-hero-portrait {
  border-radius: var(--sd-photo-radius);
}

/* Print without decorative elevation. No motion or hover transforms added. */
@media print {
  .soft-depth {
    --sd-card-shadow: none;
    --sd-control-shadow: none;
  }
}
