/*
**
** Theme Name:  Progressions Credit Union
** Theme URI:   http://progressionscu.org
** Description: Child theme of the Frost theme
** Author:      CU*Answers Web Services
** Author URI:  http://ws.cuanswers.com
** Template:    frost
** Version:     0.0.1
** Text Domain: progressions
**
*/

.desktop {
  display: none;
}

.is-layout-constrained > h1, 
.is-layout-constrained > h2, 
.is-layout-constrained > h3, 
.is-layout-constrained > h4, 
.is-layout-constrained > h5, 
.is-layout-constrained > h6 {
    margin-bottom: 0.5em !important;
}

.wp-container-core-group-is-layout-2 > * + p {
    margin-top: 1.1em;
}

.site-header {
  position: relative;
  z-index: 2;
}

main {
  position: relative;
}

footer {
  position: relative;
}

a:where(:not(.wp-element-button)) {
    font-weight: inherit;
}

table,
table.kb-table,
[class *= 'wp-block-create-block-wse-']  .wse-rates-table table {
  background-color: var(--wp--preset--color--white);
  border: 1px solid var(--wp--preset--color--medpurple);
  border-collapse: collapse;
  margin: 1em 0;
  max-width: 100%;
}

table.kb-table tr:nth-child(n+2) {
  border-bottom: 1px solid var(--wp--preset--color--medgrey);
}

table.kb-table tr:last-child {
  border-bottom: 0;
}

table tr:last-of-type {
  border-bottom: 0;
}

/*tr:nth-of-type(odd),
[class *= 'wp-block-create-block-wse-'] .wse-rates-table tr:nth-of-type(odd) {
    background-color: var(--wp--preset--color--lightgrey);
}*/

tr:hover,
tr:nth-of-type(odd):hover,
[class *= 'wp-block-create-block-wse-'] .wse-rates-table tr:hover,
[class *= 'wp-block-create-block-wse-'] .wse-rates-table tr:nth-of-type(odd):hover {
    background-color: var(--wp--preset--color--medgrey);
    color: var(--wp--preset--color--white);
}

tr:hover td,
[class *= 'wp-block-create-block-wse-'] .wse-rates-table tr:hover td {
    color: var(--wp--preset--color--white);
}

tr:hover a,
[class *= 'wp-block-create-block-wse-'] .wse-rates-table tr:hover a {
    color: var(--wp--preset--color--white);
}

:root table p {       /* override stupid wp css */
  margin: 0;
}

.wp-block-table thead,
[class *= 'wp-block-create-block-wse-'] .wse-rates-table thead {
  border-bottom: var(--wp--preset--color--lightgrey);
}

.wp-block-table th,
[class *= 'wp-block-create-block-wse-'] .wse-rates-table thead tr th {
  background-color: var(--wp--preset--color--medblue);
  color: var(--wp--preset--color--white);
}

.wp-block-table th, 
.wp-block-table td,
.datatable th,
.datatable td,
[class *= 'wp-block-create-block-wse-'] .wse-rates-table th,
[class *= 'wp-block-create-block-wse-'] .wse-rates-table td,
[class *= 'wp-block-create-block-wse-'] .wse-rates-table tbody tr:last-child td {
    border: 1px solid var(--wp--preset--color--medgrey);
    border-collapse: collapse;
    padding: 5px 10px;
}

.button,
.wp-element-button, 
.kb-button.kb-btn-global-fill,
.kt-button.kt-btn-global-fill {
    background-color: var(--wp--preset--color--medpurple);
    border: 2px solid var(--wp--preset--color--medpurple);
    border-radius: 0;
    color: var(--wp--preset--color--white);
    font-size: var(--wp--preset--font-size--x-small);
    padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--x-small);
    text-decoration: none;
    letter-spacing: 1px;
}

.button.borderbutton,
.wp-element-button.borderbutton,
.kb-button.kb-btn-global-fill.borderbutton,
.kt-button.kt-btn-global-fill.borderbutton {
  background-color: var(--wp--preset--color--white);
  border: 2px solid var(--wp--preset--color--medpurple);
  color: var(--wp--preset--color--medpurple);
}

.button.borderbuttonblue,
.wp-element-button.borderbuttonblue,
.kb-button.kb-btn-global-fill.borderbuttonblue,
.kt-button.kt-btn-global-fill.borderbuttonblue {
  background-color: var(--wp--preset--color--white);
  border: 2px solid var(--wp--preset--color--medblue);
  color: var(--wp--preset--color--medblue);
}

.button.borderbuttonblack,
.wp-element-button.borderbuttonblack,
.kb-button.kb-btn-global-fill.borderbuttonblack,
.kt-button.kt-btn-global-fill.borderbuttonblack {
  background-color: var(--wp--preset--color--white);
  border: 2px solid var(--wp--preset--color--black);
  color: var(--wp--preset--color--black);
}

.button:hover,
input[type="submit"]:hover,
.wp-element-button:hover,
.kb-button.kb-btn-global-fill:hover,
.kt-button.kt-btn-global-fill:hover {
    background-color: var(--wp--preset--color--medblue);
    border: 2px solid var(--wp--preset--color--medblue);
    color: var(--wp--preset--color--white);
}

.gform_wrapper input[type="submit"] {
    background-color: var(--wp--preset--color--medpurple) !important;
    border-radius: 0 !important;
    padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--50) !important;
    font-size: 0.85em !important;
    font-weight: 400 !important;
}

.gform_wrapper input[type="submit"]:hover {
  background-color: var(--wp--preset--color--medblue) !important;
}


main ul li {
  padding-left: 0.5em;
}

main ul li::marker {
    content: '\2713';
}

main ul.is-style-no-disc li,
main .kt-tabs-wrap ul li,
.archive main ul li,
.category main ul li,
.search main ul li {
  padding-left: 0;
}

main ul.is-style-no-disc li::marker,
main .kt-tabs-wrap ul li::marker,
.archive main ul li::marker,
.category main ul li::marker,
.search main ul li::marker {
  content: '';
}

/* fix the weird capitalization in sitecontrol tables */
/*.datatable th {
    text-transform: lowercase;
}

.datatable th[scope="row"]::first-letter {
    text-transform: capitalize;
} */
/* end fix for capitalization */


.datatable th[scope="row"] {
    font-weight: var(--wp--preset--font-weight--light);
    text-align: left;
}

.datatable th[scope="column"] {
    background-color: var(--wp--preset--color--medblue);
    color: var(--wp--preset--color--white);
    text-transform: capitalize;
}

.datatable caption {
    font-style: italic;
    font-size: 0.75em;
    margin-bottom: 3px;
}

/* kadence plugin */
[class *= 'kt-accordion-id'] .kt-accordion-panel-inner {
  padding-left: 0 !important;
}

[class *= 'kt-accordion-id'] .wp-block-kadence-pane .kt-accordion-header-wrap .kt-blocks-accordion-header,
body:not(.hide-focus-outline) [class*="kt-accordion-"] .kt-accordion-header-wrap .kt-blocks-accordion-header:focus {
  background-color: var(--wp--preset--color--medblue) !important;
  color: var(--wp--preset--color--white) !important;
  font-weight: 700;
}

body [class*="kt-accordion-"] .kt-blocks-accordion-icon-trigger:before,
body [class*="kt-accordion-"] .kt-blocks-accordion-icon-trigger:after {
  background-color: var(--wp--preset--color--white) !important;
}

body [class *='kt-accordion-id'] .kt-accordion-header-wrap .kt-blocks-accordion-header.kt-accordion-panel-active .kt-blocks-accordion-icon-trigger::before,
body [class *='kt-accordion-id'] .kt-accordion-header-wrap .kt-blocks-accordion-header.kt-accordion-panel-active .kt-blocks-accordion-icon-trigger::after {
  background-color: var(--wp--preset--color--white) !important;
}

body [class *='kt-accordion-id'] .kt-accordion-header-wrap .kt-blocks-accordion-header.kt-accordion-panel-active,
body:not(.hide-focus-outline) [class*="kt-accordion-"] .kt-accordion-header-wrap .kt-blocks-accordion-header:hover {
  background-color: var(--wp--preset--color--black) !important;
  color: var(--wp--preset--color--white) !important;
}

body:not(.hide-focus-outline) [class*="kt-accordion-"] .kt-blocks-accordion-header:focus .kt-blocks-accordion-icon-trigger::after, 
body:not(.hide-focus-outline) [class*="kt-accordion-"] .kt-blocks-accordion-header:focus .kt-blocks-accordion-icon-trigger::before {
  background-color: var(--wp--preset--color--black) !important;
}

body:not(.hide-focus-outline) [class*="kt-accordion-"] .kt-accordion-header-wrap .kt-blocks-accordion-header:hover .kt-blocks-accordion-icon-trigger::before,
body:not(.hide-focus-outline) [class*="kt-accordion-"] .kt-accordion-header-wrap .kt-blocks-accordion-header:hover .kt-blocks-accordion-icon-trigger::after {
  background-color: var(--wp--preset--color--white) !important;
}

button.kt-blocks-accordion-header:hover {
  cursor: pointer;
}

body .wp-block-kadence-tabs [class *='kt-tabs-id'] > .kt-tabs-title-list li .kt-tab-title, 
body .wp-block-kadence-tabs [class *='kt-tabs-id'] > .kt-tabs-content-wrap > .kt-tabs-accordion-title .kt-tab-title {
  background-color: var(--wp--preset--color--medblue);
  border-color: var(--wp--preset--color--medblue);
  border-radius: 0;
  border-width: 1px;
  color: var(--wp--preset--color--white);
}

body .wp-block-kadence-tabs [class *='kt-tabs-id'] > .kt-tabs-title-list li.kt-tab-title-active .kt-tab-title, 
body .wp-block-kadence-tabs [class *='kt-tabs-id'] > .kt-tabs-content-wrap > .kt-tabs-accordion-title.kt-tab-title-active .kt-tab-title,
body .wp-block-kadence-tabs [class *='kt-tabs-id'] > .kt-tabs-title-list li .kt-tab-title:hover, 
body .wp-block-kadence-tabs [class *='kt-tabs-id'] > .kt-tabs-content-wrap > .kt-tabs-accordion-title .kt-tab-title:hover {
  background-color: var(--wp--preset--color--black);
  border-color: var(--wp--preset--color--black);
  border-width: 1px;
  color: var(--wp--preset--color--white);
}

body .wp-block-kadence-tabs [class *='kt-tabs-id'] > .kt-tabs-title-list li .kt-tab-title {
  margin-right: 2px;
}

body [class *='kt-tabs-id'] > .kt-tabs-content-wrap > .wp-block-kadence-tab {
  border-color: var(--wp--preset--color--medblue);
  border-width: 1px;
}

main .wp-block-kadence-testimonials ul li::marker {
    content: '';
}

/* end kadence plugin */

/* light modal plugin */
.wp-block-cloudcatch-light-modal-block__wrapper.is-open {
  background-color: rgb(0,0,0,0.8);
}

.wp-block-cloudcatch-light-modal-block {
  background-color: var(--wp--preset--color--white) !important;
  padding: 0;
}
/* end light modal plugin */

.page-numbers {
  background-color: var(--wp--preset--color--black);
  border: 2px solid var(--wp--preset--color--black);
  color: var(--wp--preset--color--white);
  padding: 0 4px;
  text-decoration: none;
}

.page-numbers.current,
.page-numbers:hover {
  background-color: var(--wp--preset--color--medpurple);
  color: var(--wp--preset--color--white);
}

.assistive {          /* from https://webaim.org/techniques/css/invisiblecontent/ */
  height:1px;
  left:-10000px;
  overflow:hidden;
  position:absolute;
  top:auto;
  width:1px;
}

/* format sitecontrol calculators */
body .wedge {
  background-color: var(--wp--preset--color--verylightgrey);
  border: 2px solid var(--wp--preset--color--lightgrey);
  margin-bottom: 1.5em;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 20px;
}

body .wedge label {
  float: left;
  width: 35%;
}

body input,
body select {
  padding: 2px 20px;
}

body .wedge input,
body .wedge .frmMain select {
  border: 1px solid var(--wp--preset--color--darkgrey);
  width: 45%;
  margin-bottom: 20px;
}

body .wedge input[type="submit"],
body .wedge input[type="reset"] {
  margin-left: calc(35%);
}

body .wedge .frmMain.calc_results div {
  margin-bottom: 0.5em;
  ;
}

body .wedge .frmMain.calc_results label {
  width: 35%;
}

body .wedge .button {
  background-color: var(--wp--preset--color--medblue);
  color: var(--wp--preset--color--white);
}

body .wedge .button:hover {
  background-color: var(--wp--preset--color--black);
  color: var(--wp--preset--color--white);
  cursor: pointer;
}

@media (min-width: 1240px) {
  body .wedge {
    max-width: 60%;
  }
}
/* end sitecontrol calculators */

/* format web services extra calculators */
[class $="-calculator-content"] {
  margin-bottom: 3em;
}

[class $="-calculator-content"] .calculator-grid {
  background-color: var(--wp--preset--color--lightgrey);
  border: 1px solid var(--wp--preset--color--medgrey);
}

[class $="-calculator-content"] .calculator-grid .apply-now-button {
  background-color: var(--wp--preset--color--medpurple) !important;
}

[class $="-calculator-content"] .calculator-grid .apply-now-button:hover {
  background-color: var(--wp--preset--color--medblue) !important;
}

/* end web services calcs */

mark {
  background: none;
}

@media (min-width: 1024px) {
  
  figure.alignright {
  float: right;
  margin: 0 0 1.5em 1.5em;
  }

  figure.alignleft {
  float: left;
  margin: 0 1.5em 1.5em 0;
  }

  .datatable {
    min-width: 60%;
  }
}

@media (min-width: 1280px) {
  .desktop {
    display: block;
  }

  .mobile {
    display: none;
  }

  [class $="-calculator-content"] {
    max-width: 60%;
  }
}