/**
 * style.css
 *
 * Theme Name:  CCCB Bishop Portal
 * Theme URI:   http://www.machine-agency.com
 * Author:      Machine
 * Author URI:  http://www.machine-agency.com
 * Description: Custom Theme
 * Version:     1.0
 * License:     GNU General Public License v2 or later
 * License URI: http://www.gnu.org/licenses/gpl-2.0.html
 * Tags:        
 * Text Domain: machine
 */


/* ==========================================================================
  Global
  ========================================================================== */

body {
  background: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #222;
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
}

main{
  flex: 1;
}


section{
  padding: 4rem 0;
  width: 100%;
}
 
section + section{
  padding-top: 0;
}

section > .grid-container,
.site-header > .grid-container,
.site-footer > .grid-container,
.sub-footer > .grid-container{
  padding-left: 2rem;
  padding-right: 2rem;
}

.grid-container{
  max-width: 80rem;
}

.grid-container.narrow{
  max-width: 60rem;
}

.no-padding-bottom{
  padding-bottom: 0;
}

.cell.end{
  margin-left: auto;
}

main > h1,
main > h2,
main > h3,
main > h4,
main > h5,
main > h6,
main > p,
main > ul,
main > ol,
main > blockquote,
main > iframe,
main > .wp-block-embed,
main > .wp-block-buttons{
	max-width: 80rem;
	margin: 1rem auto;
	padding: 0 2rem;
}

main > .wp-block-buttons{
  margin-top: 2rem;
  margin-bottom: 2rem;
}

main > .wp-block-image{
	max-width: 80rem;
	margin: 1rem auto;
	padding: 0 2rem;  
}

main > .wp-block-image.alignleft,
main > .wp-block-image.alignright,
main > .wp-block-image.aligncenter,
.section--post-intro .wp-block-image{
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.single main > h1,
.single main > h2,
.single main > h3,
.single main > h4,
.single main > h5,
.single main > h6,
.single main > p,
.single main > ul,
.single main > ol,
.single main > blockquote,
.single main > iframe,
.single main > .wp-block-embed{
	max-width: 60rem;
}

.home main > h1,
.home main > h2,
.home main > h3,
.home main > h4,
.home main > h5,
.home main > h6,
.home main > p,
.home main > ul,
.home main > ol,
.home main > blockquote,
.home main > iframe,
.home main > .wp-block-embed{
	max-width: 60rem;
}

main > ul,
main > ol,
main hr{
  max-width:78rem;
}

main iframe{
  margin-top: 2rem;
  margin-bottom: 2rem;
  display: block;
}

main > .wp-block-embed{
  display: block;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.single main > .wp-block-image{
	max-width: 60rem;
}

main > hr{
	max-width: 40rem;
	margin: 3rem auto;
	padding: 0 2rem;  
	border-bottom: 1px solid #005555;
}

.single main > hr{
  max-width: 40rem;
}

main > ul,
main > ol{
	padding-left: 3rem;
	max-width: 80rem;
	padding-top: 1rem;
	padding-bottom: 1rem;
}

.single main > ul,
.single main > ol{
	padding-left: 3rem;
	max-width: 60rem;
}

main > h1:last-child,
main > h2:last-child,
main > h3:last-child,
main > h4:last-child,
main > h5:last-child,
main > h6:last-child,
main > p:last-child,
main > ul:last-child,
main > ol:last-child,
main > .wp-block-image:last-child,
main iframe:last-child,
main > .wp-block-buttons:last-child{
	margin-bottom: 4rem;
}

.wp-block-image.alignwide {
  max-width: 80rem;
	margin: 1rem auto;
}

.wp-block-image.alignright,
.wp-block-image.alignleft{
	max-width: 60rem;
}

.wp-block-image .aligncenter {
    max-width: 60rem;
    padding: 0 1rem;
}

.wp-block-columns{
    max-width: 80rem;
    padding: 0 2rem; 
    margin: 0 auto;
}

main > .gform_wrapper{
    max-width: 80rem;
    padding: 0 2rem; 
    margin: 2rem auto 4rem auto;
}

@media only screen and (max-width: 640px) {
  section{
    padding: 2rem 0;
  }
  
}

@media only screen and (max-width: 640px){
  section > .grid-container,
  .site-header > .grid-container,
  .site-footer > .grid-container,
  .sub-footer > .grid-container{
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  main > h1,
  main > h2,
  main > h3,
  main > h4,
  main > h5,
  main > h6,
  main > p,
  main > ul,
  main > ol,
  main > blockquote,
  main > iframe{
  	padding: 0 1rem;
  }
  
  main > ul, main > ol {
    padding-left: 2rem;
  }
  
}


/* ==========================================================================
  Typography
  ========================================================================== */

h1{
  font-family: 'Jost', sans-serif;
  color: #25337A;
  font-weight: 400;
  font-size: 32px;
  line-height: 36px;
  margin-bottom: 1rem;
}

h2{
  font-family: 'Jost', sans-serif;
  color: #25337A;
  font-size: 40px;
  line-height: 50px;
  font-weight: 600;
  margin-bottom: 1rem;
}

h3{
  font-family: 'Jost', sans-serif;
  color: #292929;
  font-size: 29px;
  line-height: 40px;
  font-weight: 600;
  margin-bottom: 1rem;
}

h4{
  font-family: 'Poppins', sans-serif;
  color: #292929;
  margin-bottom: 1rem;
}

h5{
  font-family: 'Jost', sans-serif;
  color: #292929;
  margin-bottom: 1rem;
}

h6{
  font-family: 'Jost', sans-serif;
  color: #292929;
  margin-bottom: 1rem;
}

p{
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 22px;
}

main li{
  font-family: 'Jost', sans-serif;
}

main a{
  font-family: 'Jost', sans-serif;
  color: #25337A;
  font-weight: 600;
}

main a:hover,
main a:focus{
  color: #25337A;
  text-decoration: underline;
}

.single main > .wp-block-image > figure:not(.alignright):not(.alignleft):after {
    content: "";
    display: block;
    clear: both;
}



@media only screen and (max-width: 1024px){
  
  
  h1{
    font-size: 50px;
    line-height: 60px;
  }
  
  h2{
    font-size: 40px;
    line-height: 50px;
  }
  
  h3{
    font-size: 29px;
    line-height: 40px;
  }
  
}

@media only screen and (max-width: 640px){
  
  h1{
    font-size: 40px;
    line-height: 48px;
  }
  
  h2{
    font-size: 30px;
    line-height: 40px;
  }
  
  h3{
    font-size: 25px;
    line-height: 32px;
  }
 
}



/* ==========================================================================
  Header
  ========================================================================== */

.site-header{
  background-color: #25337A;
  padding: 2rem 0;
}

.header-flex-items a{
  margin-left: 1rem;
  font-weight: 700;
  font-size: 16px;
  line-height: 23px;
}

.header-flex-items a:hover,
.header-flex-items a:focus{
  text-decoration: underline;
}

.header-flex-items a:not(.button){
  color: #fff;
}

.site-header .button{
  background-color: #AE8E34;
  border: 1px solid #AE8E34;
  color: #fff;
}

.site-header .button:hover,
.site-header .button:focus{
  background-color: transparent;
  color: #AE8E34;
}

.top-nav{
  display: flex;
  list-style: none;
  margin: 0 0 3rem 0;
}


.top-nav li{
  padding-right: 1rem;
}

.top-nav li a{
  color: #8F8F8F;
  font-weight: 600;
  font-size: 20px;
  line-height: 29px;
  position: relative;
  transition: all 0.3s ease;
}

.top-nav li a.is-active{
  color: #25337A;
}

.top-nav li a:before{
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  background-color: #566AD2;
  height: 2px;
  width: 0%;
  transition: all 0.3s ease;
}

.top-nav li a.is-active:before{
  width: 100%;
}

.top-nav li a:hover,
.top-nav li a:focus{
  text-decoration: none;
}

.top-nav li a:hover{
  color: #566AD2;
}

.top-nav li a:hover:before{
  /*width: 100%;*/
}

.logout-link > img{
  margin-left: 0.5rem;
}

.logout-link {
    white-space: nowrap;
}

@media only screen and (max-width: 640px){
  .header-flex-items a {
    margin-left: 0.5rem;
    font-weight: 700;
    font-size: 14px;
    line-height: 20px;
  }
  
}

@media only screen and (max-width: 400px){
  .header-flex-items a {
    margin-left: 0.25rem;
    font-weight: 700;
    font-size: 11px;
    line-height: 20px;
  }
  
}

/* ==========================================================================
  Footer
  ========================================================================== */

.site-footer{
  background-color: #25337A;
  padding: 2rem 0;
}

.site-footer p{
  font-weight: 400;
  font-size: 16px;
  line-height: 23px;
  color: #FFFFFF;
  margin: 0;
}

.site-footer a{
  font-weight: 700;
  font-size: 16px;
  line-height: 23px;
  text-align: center;
  color: #FFFFFF;
}

.site-footer a:hover,
.site-footer a:focus{
  text-decoration: underline;
}


@media only screen and (max-width: 640px){
  .site-footer .cell{
    text-align: center;
  }
  
  .site-footer p{
    margin-bottom: 1rem;
  }
}


/* ==========================================================================
  Button styles
  ========================================================================== */

.button{
  margin: 0;
  background-color: #25337A;
  border: 1px solid #25337A;
  padding: 0.75rem 1rem;
}


.button:hover,
.button:focus{
  background-color: #fff;
  color: #25337A;
}

/* ==========================================================================
  Forms
  ========================================================================== */


/* ==========================================================================
  Sections
  ========================================================================== */

.sidebar-links{
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-links li a{
  /*background-color: #25337A;*/
  padding: 0.5rem 0;
  /*color: #fff;*/
  /*border-bottom: 2px solid #fff;*/
  display: block;
  font-size: 20px;
  line-height: 24px;
  color: #25337A;
}

.sidebar-links li a{
  position: relative;
}

/*.sidebar-links li:has(> ul) > a:after{*/
/*  content: "+";*/
/*  position: absolute;*/
/*  right: 0;*/
/*  top: 0;*/
/*  bottom: 0;*/
/*  margin: auto;*/
/*  display: flex;*/
/*  align-items: center;*/
/*  font-size: 42px;*/
/*  color: #25337A;*/
/*  font-weight: 400;*/
/*}*/

/*.sidebar-links li.is-open:has(> ul) > a:after{*/
/*  content: "—";*/
/*  font-size: 30px;*/
/*}*/



/*.accordion-after{*/
/*  position: absolute;*/
/*  right: 0;*/
/*  top: 0;*/
/*  bottom: 0;*/
/*  margin: auto;*/
/*  display: flex;*/
/*  align-items: center;*/
/*  font-size: 42px;*/
/*  color: #25337A;*/
/*  font-weight: 400;*/
/*  transition: all 0.3s ease;*/
/*}*/


.accordion-after{
    position: absolute;
    bottom: 12px;
    margin: auto;
    display: inline-flex;
    font-size: 42px;
    color: #25337A;
    font-weight: 400;
    transition: all 0.3s ease;
    width: 33px;
    margin-left: 1rem;
    padding: 0.5rem;
}

.sidebar-links li.is-open > a > .accordion-after{
  transform: rotate(180deg);
}


.sidebar-links li a:hover .accordion-after,
.sidebar-links li a.is-active .accordion-after{
  /*color: #AE8E34;*/
  text-decoration: none;
}


.sidebar-links li a:hover,
.sidebar-links li a.is-active{
  /*color: #AE8E34;*/
  text-decoration: none;
  /*opacity: 0.5;*/
}

.sidebar-links li a:hover:after,
.sidebar-links li a.is-active:after{
  /*color: #AE8E34;*/
}

.sidebar-links li a:active,
.sidebar-links li a:focus{
  text-decoration: none;
}

.sidebar-links > li ul{
  display: none;
  list-style: none;
  margin: 0;
  padding-left: 1rem;
}

.sidebar-links li a{
  font-weight: 600;
  font-size: 16px;
  line-height: 22px;
  color: #8F8F8F;
}

.sidebar-links li a.is-active{
  color: #25337A;
}

.sidebar-links > li > a{
  font-weight: 600;
  font-size: 24px;
  line-height: 35px;
  color: #25337A;
  padding-right: 1rem;
  transition: all 0.3s ease;
}

.sidebar-links > li > a.is-active,
.sidebar-links > li > a:hover{
  color: #566AD2;
}

.sidebar-links .folder-icon{
  margin-right: 0.75rem;
}

.sidebar-links ul li a{
  padding: 0.5rem 1rem;
  border-radius: 29px;
  transition: all 0.3s ease;
  display: flex;
}

.sidebar-links ul li a:hover{
  background-color: #F7F7FE;
}


.sidebar-links > li > ul {
  margin: 1rem 0;
}

/*.subterm{*/
/*  display: none;*/
/*}*/

.file-link img{
  margin-right: 0.5rem;
}

.file-link{
  font-weight: 600;
  font-size: 18px;
  line-height: 26px;
  transition: all 0.3s ease;
}

.file-link:hover,
.file-link:focus{
  color: #566AD2;
  text-decoration: none;
}

.accordion-content p:last-child{
  margin-bottom: 0;
}

.accordion-title{
  color: #25337A;
  font-size: 16px;
}

.accordion-title:hover, .accordion-title:focus {
  background-color: #fff;
}

.meeting{
  padding-bottom: 1rem;
}

.file-cell{
  padding-bottom: 1rem;
}

.file-cell:last-child{
  padding-bottom: 0;
}


.section--cccb-secure-resources .grid-container .grid-container{
  padding: 0;
}

.recent-files, 
.upcoming-meetings {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.intro-text{
  padding-bottom: 3rem;
  padding-top: 2rem;
}

.recent-files .button, 
.upcoming-meetings .button{
  align-self: flex-start;
}

.meeting-date-single{
  padding-bottom: 2rem;
}

.meetings-back{
  margin-top: 1rem;
}

.subterms-list{
  padding-top: 2rem;
}

.meeting{
  display: flex;
  cursor: pointer;
}

.meeting-title{
  display: flex;
  width: 100%;
  align-items: center;
}

.meeting-title a{
  width: 100%;
  padding: 0.5rem;
  display: flex;
  height: 100%;
  align-items: center;
  background-color: #C9CAE6;
  transition: all 0.3s ease;
}

.meeting-link{
  font-weight: 600;
  font-size: 20px;
  line-height: 29px;
}

.meeting-title a:hover,
.meeting-title a:focus{
  text-decoration: none;
  background-color: #F7F7FE;
}

.meeting:hover .meeting-title a{
  background-color: #F7F7FE;
}

.meeting-date{
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #25337A;
  padding: 0.5rem 1rem;
  text-align: center;
}

.meeting-date .month{
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  color: #fff;
  padding-bottom: 0.5rem;
}

.meeting-date .day{
  font-weight: 600;
  font-size: 20px;
  line-height: 1;
  color: #fff;
}

.section--cccb-secure-resources h2{
  font-weight: 600;
  font-size: 24px;
  line-height: 35px;
  margin-bottom: 1.5rem;
}

.files-panel-title{
  background-color: #EEEEEE;
  padding: 1rem;
}

.files-panel-title p{
  margin: 0;
  font-weight: 600;
  font-size: 16px;
  line-height: 22px;
  text-transform: uppercase;
  color: #25337A;
}

.files-panel-body{
  background-color: #FCFCFC;
  padding: 2rem;
  height: 100%;
}

.files-panel {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/*#AE8E34*/

/* ==========================================================================
  Mobile
  ========================================================================== */

@media only screen and (max-width: 1024px){
  
}

@media only screen and (max-width: 640px){
  
  ul.sidebar-links{
    margin-bottom: 2rem;
  }
  
  .upcoming-meetings{
    margin-top: 2rem;
  }
  
}


.meeting{
  display: block;
}

.meeting a{
  display: block;
  text-align: center;
}

.meeting-date .date{
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  color: #fff;
  padding-bottom: 0.5rem;
}

.meeting-date .year{
  font-weight: 600;
  font-size: 20px;
  line-height: 1;
  color: #fff;
}


@media only screen and (max-width: 640px){
  .top-nav{
    flex-wrap: wrap;
  }
  
  .sidebar-links li .files-panel-body{
    padding: 0 0 0 1rem;
  }
  
  .sidebar-links li .file-cell {
    padding-bottom: 0;
  }
  
  .files-panel {
    display: none;
  }
  
  .files-panel:has(.tax-nominations-fr),
  .files-panel:has(.tax-appointments),
  .files-panel:has(.tax-general-fr),
  .files-panel:has(.tax-general),
  .files-panel:has(.tax-liturgie),
  .files-panel:has(.tax-liturgy){
    display: block;
  }
  
  .sidebar-links li ul + .files-panel-body{
    padding-top: 1rem;
  }
  
  .sidebar-links > li > a{
    font-weight: 600;
    font-size: 20px;
    line-height: 32px;
  }
  
}