/* 
 * Dev: Yeah, fixing default TOC styles
 * here. Things look wacky and super 
 * expanded without it.
 */
div .toc-tree {
  background: rgba(127,127,127,0.1) !important;
  padding: 1em !important;
  border-radius: var(--border-radius);
  border: 2px solid var(--border-color) !important;
  filter: drop-shadow(5px 5px 5px rgba(0,0,0,0.3));
  h3 {
    font-size: 1.4em;
    color: rgba(183,183,183,0.7);
  }
   li {
    margin-left: 1em;
    padding: 0;
  }
}

/* Fix select/option backgrounds */
.form-select option {
  background: #ccc;
}

/*
 * Round dem button corners
 */
.button-link {
  border-radius: calc(1.5rem + 1px);
  color: var(--pink);
  padding: .5em inherit;
  transition: 0.2s;
  &:hover, &:active{
    border: 2px solid #dd6 !important;
    background: color-mix(in srgb, var(--body-bg) 75%, rgba(255,255,255,0.3));
  }
}

/* 
 * Dev: Theme devs decided <ul> 
 * elements needed to have YUGE 
 * padding. Yikes. Fixed.
 */
.node-content li {
  padding: 2px 0;
}

/* 
 * Dev: Adds padding between layout columns
 *
 * Basic content comes without padding, and 
 * the front page will be squished to all hell 
 * without this. Delete with extreme caution!
 */
@media (min-width: 852px) {
  .home-content .layout__region:not(:first-child) {
    padding: 0em 0 1em 2em;
  }

  .home-content .layout__region {
    margin-bottom: 1em;
  }
}
/*
 * Dev: Uhh, just because it's promoted,
 * doesn't mean it NEEDS a title. Geez.
 */
.node-promoted .node-title {
  display:none;
}

/* Keeps image-field from squaring up during 
 * slide transitions.
 */
.view-front-page-slider {
  overflow: hidden
}

/* Keep slick images from getting radius'd */
.slick img {
  border-radius: 0 !important;
}

.lang-switcher-block {
  width: 100%;
  span {
    border-radius: var(--border-radius);
    float: right;
    display: inline-block;
    margin-left: 0.25em;
    font-size: 2em;
    filter: brightness(75%) grayscale(50%) drop-shadow(3px 3px 5px rgba(0,0,0,0.4));
    padding: 0.25em;
    border: 1px solid rgba(0,0,0,0);
    transition: 0.2s;
    img {
      display: block;
      height: 32px;
      width: 32px;
      margin: 0;
    }
    &.is-active {
      filter: none;
      border: 1px solid var(--pink);
    }
    &.not-active {
      &:hover {
        filter: brightness(110%);
        transform: scale(1.4);
      }
    }
  }
}

.home-content {
  .layout__region .block-title {
    margin-bottom: 0.5em;
  }
  img.image-field, .shadow {
    filter: drop-shadow(5px 5px 5px rgba(0,0,0,0.3));
    border-radius: var(--border-radius);
  }
  .layout__region .block-title::before,
  .layout__region .block-title::after {
    box-sizing: border-box;
    position: absolute;
    content: "";
    left: 0;
    height: 1px;
    background: var(--pink-gradient);
  }
  .layout__region .block-title::before {
    width: 40px;
    bottom: 0;
  }
  .layout__region .block-title::after {
    width: 60px;
    bottom: -4px;
  }
}
/* 
 * Dev: /end fancy link styles
 */

/* 
 * Dev: Make the office hours table 
 * purdy.
 */
office-hours__table tr,th,td {
  border: 0;
  padding:0;
}

.office-hours__item td {
  text-align: right;
}

/* 
 * Dev: Puts the PGA login button on 
 * the right. Delete = screw up layout.
 */
#block-zuvipro-pgaemployeelogin {
  padding-bottom: 0;
  padding-right: 1em;
  margin-top: 2em;
  width: 50%;
  float: right;
  text-align: right;
}

/* Same for employee page link */
#block-zuvipro-pgaemployeepagelink {
  padding-bottom: 0;
  padding-right: 1em;
  margin-top: 2em;
  width: 50%;
  float: right;
  text-align: right;
}

/* 
 * Dev: Floats the PGA footer-icon to 
 * the right. Delete = screw up layout.
 */
#block-zuvipro-pgafootericon {
  position: relative; 
  width: 100%;
  top: 0;
  right: 0;
}

/* 
 * Dev: Corrects excessive padding on some 
 * view cards without creating template(s)
 *
 * View cards (Offers, Guides) will have 
 * hella padding without this. It's fine, but 
 * it'll be fugly.
 */
.views-row .node-view-mode-teaser {
  padding: 1em;
  margin-bottom: 1em;
}

.guides-view .view-header {
  margin-right:2em;
}

.driver-guides-view-row,
.repair-guides-view-row {
  margin: 0 2em 1em 0;
  .field:is(:last-child) {
    margin-left: 1em;
  }
}

/* 
 * Dev: Add custom styles for service cards.
 * Delete these, and things get ugly fast.
 */
div .services .service {
  margin-bottom: 1.25em;
  h3 {
    width: 100%;
    text-align: center;
  }
  border: 2px solid var(--border-color);
  background: var(--content-bg);
  padding-bottom: 5em;
  transition: 0.2s;

  /* Pretty stuff */
  border-radius: var(--border-radius);
  border-bottom: 2px solid var(--border-color);
  border-left: 2px solid color-mix(in srgb, var(--border-color) 50%, rgba(255,255,255,0.4));
  border-top: 2px solid color-mix(in srgb, var(--border-color) 50%, rgba(255,255,255,0.4));
  filter: drop-shadow(3px 3px 10px rgba(0,0,0,0.5));
  box-shadow: inset 10px 10px 5px rgba(255,255,255,0.05), inset -10px -10px 5px rgba(0,0,0,0.1);
}

div .service-icon {
  height: 72px;
  background:url('/sites/default/files/services-widget/services-icon.png') no-repeat center top;
  background-size: contain !important;
  /*filter: drop-shadow(5px 5px 15px color-mix(in srgb, var(--pink) 25%, rgba(0, 0, 0, 0)));*/
  transform: translateY(0);
  transition: 0.2s;
}

.service-link-wrapper {
  position:absolute;
  left:0;
  bottom:0;
  width:100%;
  text-align:center;
    a {
      color: color-mix(in srgb, var(--pink) 60%, rgba(255,127,127,1));
      bottom: 0;
      position: relative;
        margin-bottom: 1em;
        margin: 1.5em auto;
        width: 75%;
        top: 0;
  }
}

.service:hover {
  scale: 1.04;
  .service-icon {
    -webkit-transform: translateY(-10px);
    filter: drop-shadow(3px 3px 15px color-mix(in srgb, var(--pink) 25%, rgba(0, 0, 0, 0))) brightness(1.2);
  }
  .button-link {
    border: 2px solid var(--pink);
  }
}

/* I put my thing down, flip it, and reverse it */
.service-link-wrapper:hover .button-link {
  transform: perspective(500px) rotate3d(1, 0, 0, 180deg) scaleY(-1);
}
/* END service card styles */


/* Customer Reviews Section
 * 
 * Padding for review link
 * It's positioned absolute, so we need space
 */
.review-wrapper {
  .views_slideshow_cycle_slide { 
    padding: 1em;
    background: var(--content-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    .views-field-body {
      margin: 1em 0em;
    }
  }
  margin-bottom: 1em;
  .views_slideshow_cycle_teaser_section,
  .views_slideshow_cycle_slide {
    width: 100% !important;
    .review-author-text {
      vertical-align: middle;
      margin: 0 0 0 0.5em;
      display: inline-block;
      line-height: 1.5em;
      height: 2em;
      font-weight: bold;
    }
  }
}

.review-author-icon {
  display:inline-block;
  line-height: 1.45em;
  height: 1.5em;
  width: 1.5em;
  border-radius: 50%;
  background: #f88;
  text-align:center;
  font-weight: bold;
  font-size: 1.75em;
  border: none;
  color: rgba(255,255,255, 0.8);
}

/* Fix for starrating class missing height */
.review-wrapper .starrating {
  margin: 0.5em 0;
  height: 1em;
}

.customer-review-row {
  background: url('/sites/default/files/pga/vendor/logos/review-other.webp') no-repeat top right;
  background-size: 48px;
  &.customer-review-google {
    background: url('/sites/default/files/pga/vendor/logos/review-google.webp') no-repeat top right;
    background-size: 48px;
  }
  &.customer-review-facebook {
    background: url('/sites/default/files/pga/vendor/logos/review-facebook.webp') no-repeat top right;
    background-size: 48px;
  }
  &.customer-review-facebook {
    background: url('/sites/default/files/pga/vendor/logos/review-facebook.webp') no-repeat top right;
    background-size: 48px;
  }
  &.customer-review-other {
    background: url('/sites/default/files/pga/vendor/logos/review-other.webp') no-repeat top right;
    background-size: 48px;
  }
}

/* 
 * Dev: Add 1em bottom margin to the 
 * PGA News view. Keeps it from getting 
 * crammed, especially on mobile.
*/
div .pga-news-display {
  margin-bottom: 1em;
}

/*
 * Dev: Alter legal notices menu
 */
#block-zuvipro-legalnotices {
  width: 50%;
  float: left;
}


/* 
 * Webforms section */
.webform-container {
  margin: 0 0 2em 0;
  max-width: 100%;
  background: var(--content-bg);
  padding: 2em;
  -webkit-transition: all 0.2s ease-in-out;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  input[type=submit] {
    background: none;
  }
}

/* These control tables on the /employees page */
.view-all-content-wrapper {
  padding: 0.5em;
  background: var(--content-bg);
  border: 2px solid var(--border-color);
  margin-right: 1em;

  /* Fix block styles for PGA employee content list */
  div.form-item,
  div.form-actions {
    display: inline-block;
    margin-right: 0.5em;
  }
  table {
    background-color: var(--content-bg);
  }
  tr:nth-child(odd) {
    background: color-mix(in srgb, var(--content-bg) 70%, #000);
  }
  tr:nth-child(even) {
    background: color-mix(in srgb, var(--content-bg) 40%, #000);
  }

  thead { 
    padding: 0 1em;
    line-height: 43px;
    tr th {
      padding-left: 1em;
      border-right: 1px solid rgba(255,255,255,0.1);
      &:hover {
        background: color-mix(in srgb, var(--header-bg) 90%, #fff);
      }
      a {
        display: block;
        height: 100%;
      }
    }
  }
  
  tr {
    td { padding: 0.25em 0 0.25em 0.5em; }
    &:hover {
      background: color-mix(in srgb, var(--header-bg) 80%, #fff);
    }
  }
}

/* Styles for Recent Service Requests forms */
.view.view-recent-service-requests {
  #views-exposed-form-recent-service-requests-recent-service-requests {
    float: left;
  }
  #views-exposed-form-recent-service-requests-recent-service-requests::after {
    content: "";
    position: relative;
    display: block;
    height: 1px;
  }
  div[id^='edit-header'].form-wrapper {
    float:right;
    & ~.form-wrapper {
      width: 100%;
      padding-right: 0.5em;
      text-align: right;
    }
  }
  /* Fix bulk form checkboxes - centering within the view offsets the "check all" box */
  td.views-field.views-field-webform-submission-bulk-form,
  td.views-field.views-field-sticky span {
    vertical-align: middle;
    text-align: center;
  }
}

/* Styles for menus on /employees page */
.employees-menus-block {
  ul {
    padding-left: 0;
    margin-right: 1em;
  }
  div.common-tasks ul:not(.contextual-links) {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: wrap;
    li {
      margin-right: 4px;
      min-width: calc(50% - 4px);
    }
  }
  li:not(.contextual-links) {
    flex: 1;
    display: block;
    list-style: none;
    padding: 0;
    background: var(--content-bg);
    margin: 2px 0;
    line-height: 3;
    &:hover a  {
      transform: perspective(500px) rotate3d(1, 0, 0, 180deg) scaleY(-1);
      background: rgba(255,255,255,0.1);
      transition: 0.3s;
    }
    a {
      border: 2px solid var(--border-color);
      display: block;
      width: 100%;
      height: 100%;
      padding-left: 1em;
      &:hover {
        border: 2px solid var(--pink);
      }
    }
  }
}

/* Circular user thumbnails */
.field--name-user-picture a img.image-field,
.views-field-field-photo img.image-field {
  border-radius: 50%;
  border: 2px solid var(--border-color);
}

/* Public Profiles view stuff */
.view-employees-public {
  margin-top: 1em;
  .views-row:not(:last-child) {
    margin-bottom: 2em;
  }
  div.views-row {
    margin-left: 1em;
    background: var(--content-bg);
    padding: 1.5em;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    filter: drop-shadow(5px 5px 5px rgba(0,0,0,0.3));
  }
  img.image-field {
    margin: 0;
  }
  .views-field-field-user-bio {
    display: inline-block;
    vertical-align: top;
    margin-left: 1.5em;
    inline-size: calc(100% - 18em);
    overflow-wrap: break-word;
    h3 {
      background: var(--pink-gradient) repeat-x 0 100%;
      background-size: 100% 2px;
      margin-bottom: 0.25em;
    }
  }
}

@media (max-width: 852px) {
  .view-employees-public {
    text-align: center;
    img.image-field {
      margin: 0 auto;
    }
    div.views-row {
      margin-left: 0;
    }
    .views-field-field-user-bio {
      text-align: left;
      display: block;
      margin-top: 1.5em;
      inline-size: 85%;
    }
  }
}
/* END Public Profiles view stuff */


/* Add padding for edit links - non-existent in theme??? */
.single-comment-content {
  ul.links.inline li {
    margin-right: 1em;
  }
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 * D A R K S T Y L E S
 * Uncomment these if you gots light colors
 * customized for the theme.
 * 
 * Unf*cks the theme dev's hardcoded values 
 * in CSS. Do not uncomment for dark themes.
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/*
 * Dev: Err... the theme devs hard-coded
 * block-title color @ #fff. ???? On light
 * backgrounds, this doesn't work. Overruled.

.block-title { 
  color: var(--color-heading) !important;
}

/* 
 * Dev: Joy, more hardcoded vals.

a.button-link {
  color: #c22;
}

/*
 * BILLY MAYS HERE, ACT NOW AND WE'LL 
 * TRIPLE YOUR OFFER OF HARD-CODED 
 * VALUES IN CSS! Why use variables??

.breadcrumb li,
.breadcrumb a {
  color: #fff !important;
}

.footer-block {
  color: white;
}

.footer-block a {
  color: white;
}

.footer-block h2 {
  color: white !important;
}
/*
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 * END D A R K S T Y L E S 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
