/*
 Theme Name:   Divi Child – The Doctor Is In Session
 Description:  Child theme for thedoctorisin.live (rebuild of the former WPBakery site).
 Author:       Aurelia Robu
 Template:     Divi
 Version:      2.0.8
 Text Domain:  divi-child
*/

/*
 * All layout, colours, fonts, spacing, hover states and mobile behaviour are set in
 * Divi itself: Theme Customizer (fonts/sizes), Global Colors, and each module's settings.
 *
 * This file only holds the few things Divi 5 has no setting for.
 */

/* 1. Home page demo players: these are WordPress's built-in audio players, which Divi
      has no design settings for. Styled to match the old site (white bar, play arrow only).
      Applied via the "tdi-audio" CSS class on the Player text modules. */
.tdi-audio .mejs-container,
.tdi-audio .mejs-container .mejs-controls { background: transparent !important; }
.tdi-audio .mejs-container,
.tdi-audio .mejs-controls,
.tdi-audio .mejs-controls > div { height: 28px !important; }
.tdi-audio .mejs-controls { padding: 0 !important; }
.tdi-audio .mejs-time,
.tdi-audio .mejs-volume-button,
.tdi-audio .mejs-horizontal-volume-slider,
.tdi-audio .mejs-time-handle,
.tdi-audio .mejs-time-float { display: none !important; }
.tdi-audio .mejs-playpause-button { width: 14px; }
.tdi-audio .mejs-playpause-button > button { margin-left: -3px; }
.tdi-audio .mejs-time-rail { margin-left: 8px; }
.tdi-audio .mejs-time-total { background: #fff !important; height: 10px; border-radius: 0; margin-top: 3px; }
.tdi-audio .mejs-time-loaded { background: #fff !important; }
.tdi-audio .mejs-time-current { background: #bdd8fd !important; }

/* 2. Menu: Divi's Menu module has no setting for the space between menu items.
      Applied via the "tdi-menu" CSS class. */
.tdi-menu .et-menu > li { margin-top: 0 !important; padding-left: 15px; padding-right: 15px; }
.tdi-menu .et-menu > li:last-child { padding-right: 0; }
.tdi-menu .et-menu > li > a { padding-bottom: 0 !important; }
.tdi-menu .et-menu > li > a:hover { opacity: 1; } /* Divi dims menu links on hover; the old site didn't */
/* Below 960px the mobile menu module spans the header (so its dropdown is full width) and sits over
   the logo. Let taps pass through it, except on the menu icon and the open dropdown. Divi has no setting for this. */
@media (max-width: 959px) {
  .tdi-menu { pointer-events: none; }
  .tdi-menu .mobile_nav { pointer-events: auto; }
}

/* 3. Text: paragraph and list spacing and nested-list bullets as on the old site
      (Divi's defaults: 1em under paragraphs, 17px under every list, solid bullets at every level). */
.et_pb_text_inner p:not(:last-child) { padding-bottom: 10px; }
.et_pb_text_inner ul { padding-bottom: 20px; }
.et_pb_text_inner ul:last-child { padding-bottom: 0; }
.et_pb_text_inner ul ul { list-style-type: circle !important; padding-bottom: 0; }

/* 4. Contact form: Divi has no setting for the Message box height (old site: 175px)
      or for the placeholder colour (old site: same grey as typed text). */
.et_pb_contact_form textarea.et_pb_contact_message { height: 175px; min-height: 175px; }
.et_pb_contact_form .input::placeholder { color: rgba(40, 40, 40, 0.5); opacity: 1; }
