/*******************************************************************************
 *** CSS styling - ref.ch - Base
 ******************************************************************************/

@font-face {
  font-family: Chap;
  font-weight: 700;
  src: url( "fonts/ref_chap_700.woff" ) format( "woff" );
}

:root {
  --color-main-title: rgba(20,20,20,1);
  --color-main-text: rgba(20,20,20,.8);
  --color-main-meta: rgba(20,20,20,.6);
  --padding-front-article: min(80px,4vw);
  --padding-front-xxxl: min(140px,7vw);
  --padding-front-xxl: min(120px,6vw);
  --padding-front-xl: min(100px,5vw);
  --padding-front-l: min(80px,4vw);
  --padding-front-m: min(60px,3vw);
  --padding-front-s: min(40px,2vw);
  --padding-front-xs: min(30px,1.5vw);
  --padding-front-xxs: min(20px,1vw);
  --padding-front-bottom: min(120px,6vw);

  --padding-section-s: min(40px,2vw);
  --padding-section-m: min(80px,4vw);
  --padding-section-l: min(120px,6vw);
  --padding-section-xl: min(160px,8vw);
}
/*** TABLET & MOBILE ***/
@media (max-width: 743px) {
  :root {
    --padding-section-s: 4vw;
    --padding-section-m: 6vw;
    --padding-section-l: 8vw;
    --padding-section-xl: 12vw;
  }
}

html {
  height: 100%;
}
html,body {
  font-size: 100%;
  line-height: 1.4;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100%;
  display: grid;
  grid-template-columns: 1fr var(--padding-section-m) minmax( auto, 1240px ) var(--padding-section-m) 1fr;
  grid-template-rows: auto auto 1fr auto;
}
div {
  box-sizing: border-box;
}
body > div.header-shadow {
  grid-column: 1/-1;
  grid-row: 2/3;
  position: sticky;
  top: 0;
  background: white;
  box-shadow: inset 0 -15px 10px -10px rgba(0,0,0,.02);
  border-bottom: 1px solid rgba(0,0,0,.1);
  z-index: 1;
}
body > header {
  grid-column: 2/5;
  grid-row: 2/3;
}
body > main {
  grid-column: 2/5;
  grid-row: 3/4;
}
body > footer {
  grid-column: 2/5;
  grid-row: 4/5;
}

.site-header-column1 {
  flex: 7;
}
.site-header-column2 {
  flex: 0;
}
.site-header-column3 {
  flex: 5;
}
.site-header-logo {
  padding: var(--padding-section-m) 0 var(--padding-section-s) var(--padding-section-m);
}
.site-header-logo a {
  display: flex;
  align-items: baseline;
  color: var(--color-main-title);
  text-decoration: none;
}
.site-header-logo h1 {
  font-family: Chap;
  font-weight: 700;
  font-size: 2.8rem;
  line-height: 1;
  margin: 0;
  padding: 0;
}
.site-header-logo h2 {
  font-family: Roboto;
  font-weight: 500;
  font-size: .75rem;
  letter-spacing: .025rem;
  line-height: 1.1;
  margin: 0;
  padding: 0 0 0 1rem;
  transform: translateY( -.88rem );
}

header {
  display: flex;
  align-items: baseline;
}

header form {
  flex: 5;
  padding: 0 var(--padding-section-m);
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: .75rem;
}
header form input[type=search] {
  all: unset;
  display: block;
  width: 100%;
  font-family: "Source Serif 4";
  font-variation-settings: "wght" 400;
  font-size: .9rem;
  line-height: 1;
  padding: 0;
  color: var(--color-main-text);
  border: none;
  border-bottom: 1px solid rgba(0,0,0,.15);
  outline: none;
}
header form input[type=search]:focus {
  border-bottom: 1px solid rgba(0,0,0,.25);
}
header form button {
  all: unset;
  cursor: pointer;
}
header form button img {
  height: 1.2rem;
  width: auto;
}

/*** TABLET & MOBILE ***/
@media (max-width: 743px) {
  body > header {
    align-items: center;
    gap: var(--padding-section-s);
    padding: var(--padding-section-m) var(--padding-section-s) var(--padding-section-s);
  }
  .site-header-logo,
  #switch-compact,
  header form {
    flex: auto;
    padding: 0;
  }
  .site-header-logo h2 {
    display: none;
  }
  header form input[type=search] {
    display: none;
  }
  header form button {
    height: 1.2rem;
  }
  body.home #switch-compact {
    display: flex !important;
  }
}


footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem var(--padding-section-m) 1rem;
  background-color: #F2F2F2;
  font-family: Roboto;
  font-weight: 400;
  font-size: .8rem;
}
.footer-menu__big a {
  font-weight: 500;
  color: var(--color-main-title);
}
.footer-menu__small {
  padding: .5rem 4rem 0;
  border-top: 1px solid rgba(0,0,0,.15);
}
.footer-menu__small a {
  font-weight: 400;
  color: var(--color-main-meta);
}
footer a {
  display: inline-block;
  text-decoration: none;
  padding: 0 .5rem;
}
footer ul {
  margin: 0;
  padding: 0;
  text-align: center;
}
footer li {
  display: inline-block;
}



/*

article {
  display: grid;
  grid-template-columns: repeat( 6, 1fr );
  font-size: .92rem;
  color: #333;
}
article > * {
  grid-column: 2/6;
}

article h1 {
  font-family: "Source Serif 4";
  font-variation-settings: "opsz" 50, "wght" 650;
  font-size: 1.9rem;
  line-height: 1.3;
  margin: 0 0 1.2rem;
  color: #222;
  hyphens: auto;
}
article h4 {
  font-family: Roboto;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .05rem;
  line-height: 1;
  margin: 2.8rem 0 0;
  padding: .5rem;
}

article p,
article a,
article ul {
  font-family: "Source Serif 4";
  font-variation-settings: "opsz" 34, "wght" 450;
  line-height: 1.45;
  margin: 0 0 1.2rem;
  color: #333;
}
article p:last-child,
article a:last-child,
article ul:last-child {
  margin: 0;
}

*/

.page-section {
  width: calc(100%/12*6);
  min-width: 440px;
  margin: 0 auto var(--padding-section-l);
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}
@media ( max-width: 743px ) {
  .page-section {
    width: 100%;
    min-width: unset;
    margin: 0 0 2rem;
  }
}




body.post-type-archive-rm_event {
  grid-template-rows: auto auto 1fr auto;
}
.section-agenda .section-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.section-agenda .section-header a {
  font-size: 1rem;
  color: var(--color-main-title);
}
.section-agenda h2 {
  font-family: Roboto;
  font-weight: 500;
  letter-spacing: .025rem;
  font-size: .8rem;
  line-height: 1;
  color: var(--color-main-title);
  margin: 0;
  padding: 1rem 0 .5rem;
  border-bottom: 1px solid rgba(0,0,0,.6);
}
.section-agenda .event-item {
  padding-top: 1rem;
}
.section-agenda .event-item a {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  color: var(--color-main-title);
  text-decoration: none;
}
.section-agenda .event-date {
  box-sizing: border-box;
  height: 4rem;
  width: 4rem;
  border: 1px solid black;
  flex: none;
  display: flex;
  flex-direction: column;
  gap: .1rem;
  padding: .5rem;
}

.section-agenda .event-date span:first-child {
  font-family: Roboto;
  font-weight: 400;
  letter-spacing: .025rem;
  font-size: .65rem;
  line-height: 1;
  color: var(--color-main-title);
  margin: 0;
  padding: 0;
}
.section-agenda .event-date span:last-child {
  font-family: "Source Serif 4";
  font-variation-settings: "wght" 650;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--color-main-title);
  margin: 0;
  padding: 0;
}

.section-agenda .event-content {
  display: flex;
  flex-direction: column;
  padding-right: .5rem;
}
.section-agenda .event-title {
  font-family: "Source Serif 4";
  font-variation-settings: "wght" 650;
  font-size: 1rem;
  line-height: 1.25;
  color: var(--color-main-title);
  margin: 0;
  padding: 0 0 .75rem;
}
.section-agenda .event-time{
  font-family: Roboto;
  font-weight: 400;
  letter-spacing: .01rem;
  font-size: .75rem;
  line-height: 1.35;
  color: var(--color-main-title);
  margin: 0;
  padding: 0;
}
.section-agenda .event-host {
  font-family: Roboto;
  font-weight: 400;
  letter-spacing: .01rem;
  font-size: .75rem;
  line-height: 1.35;
  color: var(--color-main-meta);
  margin: 0;
  padding: 0;
}
.section-agenda .event-meta {
  font-family: Roboto;
  font-weight: 400;
  letter-spacing: .01rem;
  font-size: .75rem;
  line-height: 1.35;
  color: var(--color-main-title);
  margin: 0;
  padding: 0;
}
.section-agenda .faq-title {
  font-family: "Source Serif 4";
  font-variation-settings: "wght" 650;
  font-size: 1.2rem;
  line-height: 1.2;
  color: var(--color-main-title);
  margin: 0;
  padding: 2rem 0 1rem;
}
.section-agenda .faq-text {
  font-family: "Source Serif 4";
  font-variation-settings: "wght" 400;
  font-size: .85rem;
  line-height: 1.5;
  color: var(--color-main-text);
  margin: 0;
  padding: 0;
}
.section-agenda .faq-text a {
  color: var(--color-main-text);
  display: inline-block;
  padding-top: .5rem;
}


/*

.breadcrumb-base {
  grid-column-start: 1;
  height: 2rem;
  width: 190px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  margin: 2.8rem 0 0 190px;
  background-color: #444;
}
.breadcrumb-base h4 {
  margin: 0;
  padding: 0;
  color: white;
}
.event-details {
  box-sizing: border-box;
  float: left;
  display: flex;
  flex-direction: column;
  width: 380px;
  margin: 0 2rem 1.5rem calc( 100% / -4 );
  padding: .8rem;
  background-color: gainsboro;
}
.event-wrapper h1 {
  font-variation-settings: "opsz" 50, "wght" 750;
  font-size: 2.2rem;
  text-align: left;
  margin-right: calc( 100% / -4 );
  padding-right: 1rem;
  hyphens: none;
  background: linear-gradient(60deg, #4c4, #29e);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.event-wrapper h1.small {
  font-size: 1.6rem;
}
.event-details h2 {
  font-family: Roboto;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  text-align: left;
  margin: 0;
}
.event-details h2 span {
  font-weight: 300;
  font-size: .7rem;
}
.event-details p + h2 {
  font-size: 1rem;
  margin: 1.4rem 0 0;
}
.event-details p {
  font-family: Roboto;
  font-weight: 300;
  font-size: .95rem;
  line-height: 1.3;
  margin: 0;
}
.event-details a {
  font-family: Roboto;
  font-weight: 300;
  font-size: .85rem;
  line-height: 1.3;
  margin: 0;
}
a.button {
  display: inline-block;
  font-family: Roboto;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  padding: .4rem .6rem;
  color: #333;
  background-color: transparent;
  border: 1px solid gray;
  border-radius: 0;
  cursor: pointer;
  transition-duration: 0.1s;
}
.event-details a.button {
  font-size: .75rem;
  margin: .5rem .2rem 0 0;
  padding: .3rem .4rem;
  background-color: rgba(255,255,255,.5);
  border: none;
}
a.button:hover {
  background-color: gainsboro;
}

.wp-block-file a {
  word-break: break-all;
}
.wp-block-file__button {
  display: none;
}
.desktop-hidden {
  display: none;
}


*/







/*******************************************************************************
 *** Search Result Page
 ******************************************************************************/
#search-header {
  grid-column: 1/13;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: var(--padding-section-s);
}
#search-footer {
  grid-column: 1/13;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--padding-section-s) var(--padding-section-xl);
}
#search-header h1 {
  font-family: "Source Serif 4";
  font-variation-settings: "wght" 650;
  font-size: 1.8rem;
  line-height: 1.05;
  color: var(--color-main-title);
  margin: 0
  padding: 0;
}
#search-results {
  grid-column: 1/13;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: var(--padding-section-s) var(--padding-section-s) var(--padding-section-m);
  display: flex;
  flex-direction: column;
  gap: var(--padding-section-s);
  align-items: stretch;
}
#search-results article:not(:last-child) {
  padding-bottom: var(--padding-section-s);
  border-bottom: 1px solid rgba(0,0,0,.15);
}
#search-results article a {
  /*
  display: flex;
  align-items: flex-start;
  gap: 5%;
  */
  transition: 300ms;
}
#search-results article a:hover {
  opacity: .7;
}
#search-results article:not(.featured) .teaser-image {
  float: right;
  width: 30%;
  margin: 0 0 1rem 2rem;
  padding: 30% 0 0;
  background-color: rgba(0,0,0,.05);
}
#search-results article:not(.featured) .teaser-content {
  /*
  width: 65%;
  */
  hyphens: auto;
}
#search-results .teaser-meta {
  display: block;
}
#search-results button.front-load-more {
  display: flex;
  gap: .5rem;
  align-items: center;
  font-family: Roboto;
  font-weight: 500;
  letter-spacing: .025rem;
  font-size: .8rem;
  line-height: 1;
  color: var(--color-main-title);
  margin: 1.5rem 0 0;
  padding: 1rem 1.5rem;
  border: 1px solid var(--color-main-title);
  box-shadow: inset 0 0 0 2px transparent;
  background-color: transparent;
  cursor: pointer;
  transition: 300ms;
}
#search-results button.front-load-more:hover {
  box-shadow: inset 0 0 0 2px var(--color-main-title);
}
#search-results button.front-load-more:disabled {
  color: var(--color-main-meta);
  border: 1px solid var(--color-main-meta);
}
#search-results button img {
  width: 20px;
}
#search-results button.front-load-more:disabled img {
  animation-name: spin;
  animation-duration: 2s;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}
@keyframes spin {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

body.search form {
  box-sizing: border-box;
  grid-column: 1/13;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: var(--padding-section-s) var(--padding-section-s) var(--padding-section-m);
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: .75rem;
}
body.search form input[type=search] {
  all: unset;
  display: block;
  width: 100%;
  font-family: "Source Serif 4";
  font-variation-settings: "wght" 400;
  font-size: .9rem;
  line-height: 1;
  padding: 0;
  color: var(--color-main-text);
  border: none;
  border-bottom: 1px solid rgba(0,0,0,.15);
  outline: none;
}
body.search form input[type=search]:focus {
  border-bottom: 1px solid rgba(0,0,0,.25);
}
body.search form button {
  all: unset;
  cursor: pointer;
}
body.search form button img {
  height: 1.2rem;
  width: auto;
}









@media (min-width: 1340px) {
  html,body {
    font-size: 130%;
  }
}
@media (max-width: 1339px) {
  html,body {
    font-size: 120%;
  }
}
@media (max-width: 1024px) {
  html,body {
    font-size: 110%;
  }
}
@media (max-width: 743px) {
  html,body {
    font-size: 120%;
  }
  body {
    grid-template-columns: 0 4vw auto 4vw 0;
  }
  .site-header-logo h1 {
    font-size: 2.2rem;
  }

  /*
  article {
    display: block;
    font-size: 1rem;
    line-height: 1.5;
  }
  article h1,
  article h4 {
    text-align: left;
  }
  .breadcrumb-base {
    position: relative;
    display: inline-flex;
    width: auto;
    margin: 0;
    padding: 0 .6rem;
  }
  .event-details {
    box-sizing: content-box;
    float: unset;
    width: 100%;
    margin: -2rem 0 1.8rem -20px;
    padding: calc( 20px + 2.4rem ) 20px 20px;
    background: linear-gradient( 60deg, #44cc4480, #2299ee80 );
  }
  .event-details h1 {
    display: block;
    font-family: Roboto;
    font-weight: 700;
    font-size: 1.9rem;
    line-height: 1.2;
    margin: 0;
    padding: 0;
    color: #222;
    background: unset;
    -webkit-text-fill-color: unset;
  }
  .event-details h2 {
    color: #222;
  }
  .event-wrapper {
    padding-bottom: 1.8rem;
    border-bottom: 1px solid lightgray;
  }
  .event-wrapper h2 {
    font-family: Roboto;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.3;
    text-align: left;
    margin: 0;
  }
  .desktop-hidden {
    display: inherit;
  }
  .mobile-hidden {
    display: none;
  }

  */
}
@media (max-width: 480px) {
  html,body {
    font-size: 120%;
  }
}
@media (max-width: 375px) {
  html,body {
    font-size: 110%;
  }
}
