/* 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;
  }
}

/* layout-fixes.css (v304, 17 Nov 2026, at Aaron's request). Linked last on every page, after /rounded-depth.css.
   1. The individual / couples chooser keeps its two cards side by side at every width ("For myself" | "For us").
      On phones the cards drop their description line so the title and the link fit.
   2. A white frame with a thin grey edge around the portrait photo, wherever it appears. */
.hero-path-grid{display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr)) !important}
.hero-path-card{min-width:0}
@media (max-width:600px){
  .hero-path-grid{gap:10px !important}
  .hero-path-card{flex-direction:column !important;align-items:flex-start !important;justify-content:flex-start !important;text-align:left !important;gap:0 !important;padding:16px 14px !important;min-height:0 !important}
  .hero-path-card p{display:none !important}
  .hero-path-card h2,.hero-path-card h3{font-size:19px !important;line-height:1.25 !important;margin:0 0 10px !important}
  .hero-path-body{display:flex;flex-direction:column;height:100%}
  .hero-path-card .path-card-go{margin-top:auto !important}
}
img[src="/portrait-320.jpg"]{box-sizing:border-box;border:4px solid #FFFFFF !important;box-shadow:0 0 0 1px #C3CDD3,0 6px 16px rgba(23,57,75,.16) !important;object-fit:cover}

/* 3. Homepage on phones (the US line and the "Training and professional status" link are also gone from the hero
      HTML): the hero is condensed so the two chooser cards show in full on first load (above the
      "Message me / Free consultation" bar at a 390 x 664 viewport). Only the homepage hero has #hero-chooser-q. */
@media (max-width:600px){
  .hero:has(#hero-chooser-q){padding-top:20px !important}
  .hero:has(#hero-chooser-q) .hero-text{margin-top:14px !important}
  .hero:has(#hero-chooser-q) .hero-positioning{font-size:20px !important;line-height:1.3 !important;margin-bottom:8px !important}
  .hero:has(#hero-chooser-q) .design-home-intro{font-size:16px !important;line-height:1.45 !important;margin-bottom:6px !important}
  .hero:has(#hero-chooser-q) #hero-chooser-q{font-size:22px !important;line-height:1.25 !important;margin-top:16px !important;padding-top:18px !important;padding-bottom:12px !important}
}

/* Keep every navigation link reachable on a short or zoomed mobile viewport. */
.mobile-menu.open, #navLinks.open {
  overflow-y: auto;
  overscroll-behavior: contain;
}
@media (max-height: 600px) {
  .mobile-menu.open, #navLinks.open {
    box-sizing: border-box;
    justify-content: flex-start;
    justify-content: safe center;
    padding-block: 3.5rem 1.5rem;
  }
}

/* Honor the reader’s motion preference on native in-page navigation. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
}

/* Leave room for the mobile action bar when the browser scrolls to a focused link. */
@media (max-width: 768px) {
  html { scroll-padding-block-end: calc(80px + env(safe-area-inset-bottom)); }
}
