/* Global modules */
:root
{

	--highlight-colour: #ef007c;
	--box-background: #1d6052;
	--header-background: #ffffff;
	--border-colour: #0044AB;
	--border-width: 2px;
	--menu-text-colour: #000000;
	--text-colour: #333333;
	--title-colour: #ffffff;
	
	--blog-colour-main: #ef007c;       /* * */
	--blog-colour-secondary: #ECF3A2;
	--blog-colour-highlight: #ef007c;
	--blog-colour-hover: #ef007c;

	--activity-colour-main: #ef007c;
	--activity-colour-secondary: #FD6B60;
	--activity-colour-highlight: #b29669;
	--activity-colour-hover: #ef007c;

	--user-colour-main: #1d6052;
	--user-colour-secondary: #DEF4E1;

	--event-colour-main: #1d6052;
	--event-colour-hover: #ef007c;

	--publication-colour-main: #ef007c;
	--publication-colour-hover: #ef007c;

	--studio-colour-main: #1d6052;

	--standard-colour-main: #1d6052;

	--blogpost-left-indent: 1em;

	--freshness-bar-colour: #b5dead;
}
/*
Reference:
--breakpoint-small (min-width: 740px);
--breakpoint-medium (min-width: 930px);
--breakpoint-large (min-width: 1040px);
*/
/*=== FONT FACES ===*/
@font-face {
	font-family: 'TTNorms';
	src: url('/static/fonts/ttnorms-regular-webfont.woff2') format('woff2');
    font-display: swap;
}
@font-face {
	font-family: 'Brandon';
	src: url('/static/fonts/Brandon-Text-Web-Regular.woff2') format('woff2');
	font-display: swap;
}
/*=== FONT STACKS ===*/
:root
{
	--standard-family: 'TTNorms', arial, sans-serif;
	--mono-family: 'TTNorms', arial, sans-serif;
	--title-family: 'Brandon', arial, sans-serif;
}
/*=== TYPOGRAPHICAL SCALE - Minor third ===*/
:root {
  --step-up-4: 2.074em;
  --step-up-3: 1.728em;
  --step-up-2: 1.44em;
  --step-up-1: 1.2em;
  /* baseline: 1em */
  --step-down-1: 0.833em;
  --step-down-2: 0.694em;
  --step-down-3: 0.578em;
}
:root
{
  --scale: 1.067;
  --font-size-1: 1rem;
  --font-size--1: calc(var(--font-size-0) / var(--scale));
  --font-size-0: calc(var(--font-size-1) / var(--scale));
  --font-size-2: calc(var(--scale) * var(--font-size-1));
  --font-size-3: calc(var(--scale) * var(--font-size-2));
  --font-size-4: calc(var(--scale) * var(--font-size-3));
  --font-size-5: calc(var(--scale) * var(--font-size-4));
  --font-size-6: calc(var(--scale) * var(--font-size-5));
  --lh: 1.6;
  --step: 1.6em;
}
@media (min-width: 740px)
{
  :root
  {
    --scale: 1.250
  }
}
h1, h2, h3, h4, h5, h6
{
  font-size: 1.44em;
  font-size: var(--step-up-2);
  line-height: 1.6;
  line-height: var(--lh);
  font-weight: bold;
  font-feature-settings: "lnum";
  font-variant-numeric: lining-nums;
  font-family: 'TTNorms', arial, sans-serif;
  font-family: var(--standard-family);
}
html
{
  /*font-size: 1em;*/
  line-height: 1.6;
  line-height: var(--lh);
}
body
{
  font-feature-settings: "onum";
  font-variant-numeric: oldstyle-nums;
  font-family: 'TTNorms', arial, sans-serif;
  font-family: var(--standard-family);
  font-weight: normal;
  font-style: normal;
}
/*Event listing*/
.Events-layout {
  padding-bottom: 0.5em;
}
.Events-title {
	font-family: 'Brandon', arial, sans-serif;
	font-family: var(--title-family);
	margin-bottom: 1em;
	letter-spacing: 0.075em;
	background: #1d6052;
	background: var(--box-background);
	color: #ffffff;
	color: var(--title-colour);
    font-size: 1.44em;
    font-size: var(--step-up-2);
	text-align: center;
	width: 100%
}
@media (min-width: 740px) {
.Events-title {
        font-size: 1.728em;
        font-size: var(--step-up-3)
}
	}
.Events-list {
	width: 100%;
	display: flex;
	flex-flow: row wrap;
}
.Events-list-item, .Events-list-item-future {
	width: 100%;
	justify-content: stretch; 
	margin-bottom: 2em;
	padding-bottom: 1em;
}
.Events-list-item-future {
	width: 100%;
}
.Events-list-top {
	width: 100%;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	margin-bottom: 1em;
}
.Events-list-title {
    display: inline-block;
    padding: 0.2em;
    padding-left: 0.5em;
    padding-right: 0.5em;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    background-color: #ef007c;
    background-color: var(--activity-colour-main);

	font-size: 1.2em;

	font-size: var(--step-up-1)
}
@media (min-width: 740px) {
.Events-list-title {
	    font-size: 1.44em;
	    font-size: var(--step-up-2)
}
    }
.Events-list-date {
	margin-top: 2em; 
	margin-left: 1em;
	margin-bottom: 1em;
}
.Events-list-item--image
{
    margin: 1px solid red;
    margin-bottom: 1em;
    display: flex;
    flex-direction: column
}
@media (min-width: 930px) {
.Events-list-item--image
{
        font-size: 1rem;
        flex-direction: row
}
    }
@media (min-width: 740px) {
.Events-list-item--image
{
        margin-bottom: 3em
}
    }
.Events-list-item--no-image
{
	margin-bottom: 3em;
	display: flex;
	flex-direction: column
}
@media (min-width: 740px) {
.Events-list-item--no-image
{
}
	}
.Events-list-item-image span {
	margin-left: 1em;
	background-color: #b29669;
	background-color: var(--activity-colour-highlight);
	display: inline-block;
}
.Events-list-item-image-set {
/*  filter: grayscale(100%)
  brightness(135%)
  contrast(120%);
  opacity: 0.9; */
  display: inline-block;
/*  transition: all 0.2s ease-in-out; */
}
.Events-list-item-image-set > * {
  vertical-align: bottom; /* fixes issue with space below image left for descenders */
}
.Events-list-item--image:hover .Events-list-item-image-set,
.Events-list-item--image:active .Events-list-item-image-set {
/*  opacity: 1;
  filter: grayscale(0%)
  brightness(100%)
  contrast(100%);*/
}
.Events-list-description {
	margin-left: 1em;
	font-size: 0.833em;
	font-size: var(--step-down-1)
}
@media (min-width: 930px) {
.Events-list-description {
		font-size: 1em
}
	}
.Events-list-title-link, .Events-list-title-future-link {
  /* background-color: var(--event-colour-main); */
  background-color: #ef007c;
  background-color: var(--highlight-colour);
  color: #ffffff;
  color: var(--title-colour);
  text-decoration: none;
}
.Events-list-title-future-link {
	background-color: #ef007c;
	background-color: var(--highlight-colour);
}
.Events-list-title-future-link:hover {
  color: black;
  background-color: #ef007c;
  background-color: var(--event-colour-hover);
}
.Events-list-title-link:hover, .Events-list-title-link:active {
  color: black;
  background-color: #ef007c;
  background-color: var(--event-colour-hover);
}
.Events-list-switch {
  font-size: 0.833em;
  font-size: var(--step-down-1);
  display: inline;
  margin-top: 3em;
  text-decoration: none;
  color: #333;
  border-bottom: 1px solid #999;
}
.Events-list-switch:hover, .Events-list-switch:active {
  border-bottom-color: transparent;
  color: black;
}
/*Event detail*/
.Event-layout {
  padding-top: 0.5em;
  padding-bottom: 0.5em
}
@media (min-width: 930px)
{
.Event-layout {
  padding-top: 1em;
  padding-bottom: 1em
}
}
.Event-content {
	display: flex;
	flex-direction: column;
	justify-content: flex-start
}
@media (min-width: 930px)
	{
.Event-content {
		flex-direction: row
}
	}
.Event-side {
	flex: 0 0 16em;
	display: flex;
	flex-direction: column
}
@media (min-width: 930px)
	{
.Event-side {
	    min-width: 300px
}
	}
.Event-data {
    padding-bottom: 1em;
}
.Event-relations {
}
.Event-main
{
    display: flex;
    flex-direction: column
}
@media (min-width: 930px)
    {
.Event-main
{
	padding-right: 3em;
	font-size: 1em
}
    }
.Event-title {
  color: #ffffff;
  color: var(--title-colour);
  margin-bottom: 1em;
  background: #ef007c;
  background: var(--highlight-colour);
  padding-left: 0.5em;
  padding-right: 0.5em;
  font-size: 1.44em;
  font-size: var(--step-up-2)
}
@media (min-width: 740px)
  {
.Event-title {
      font-size: 1.728em;
      font-size: var(--step-up-3)
}
  }
.Event-title span
{
}
#map {
  width: 100%;
  height: 30em
}
@media (min-width: 930px) {
#map {
    height: 20em
}
  }
.Event-time {
}
.Event-address {
  margin-top: 1em;
}
.Event-address-title {
    margin-bottom: 0.5em;
    background: #1d6052;
    background: var(--box-background);
    color: #ffffff;
    color: var(--title-colour);
    text-align: center;
    width: 100%;
    font-size: 1.44em;
    font-size: var(--step-up-2)
}
@media (min-width: 740px)
    {
.Event-address-title {
	font-size: 1.728em;
	font-size: var(--step-up-3)
}
    }
.Event-map {
  margin-bottom: 0.5em;
}
.Event-directions {
  margin-top: 1em;
}
.Event-directions:before {
  content: '>';
  padding-right: 0.5ch;
}
.Event-directions-link:link, .Event-directions-link:visited {
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #999;
}
.Event-directions-link:hover, .Event-directions-link:active {
  color: black;
  border-bottom-color: transparent;
}
.Event-main .rich-text a:link, .Event-main .rich-text a:visited {
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #666;
  background-color: transparent;
}
.Event-main .rich-text a:hover {
  color: black;
  background-color: #1d6052;
  background-color: var(--event-colour-main);
}
.Event-passed {
  border: 1px solid #333;
  text-align: center;
  padding: 0.5em;
  margin-bottom: 1em;
}
.Event-relations {

}
.Event-relations-title, .Event-supporters-title {
    margin-bottom: 0.5em;
    background: #1d6052;
    background: var(--box-background);
    color: #ffffff;
    color: var(--title-colour);
    text-align: center;
    width: 100%;
    font-size: 1.44em;
    font-size: var(--step-up-2)
}
@media (min-width: 740px)
    {
.Event-relations-title, .Event-supporters-title {
	font-size: 1.728em;
	font-size: var(--step-up-3)
}
    }
.Event-aside-item
{
  margin-bottom: 1em;
}
.Event-aside-related-list {
  /*list-style-type: circle;*/
}
.Event-aside-related-item {
  padding-bottom: 1em;
}
.Event-aside-related-link {
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #999;
  position: relative;
}
.Event-aside-item--users .Event-aside-related-link:hover {
  background-color: #1d6052;
  background-color: var(--user-colour-main);
}
.Event-aside-item--blog-posts .Event-aside-related-link:hover {
  background-color: #ef007c;
  background-color: var(--blog-colour-main);
}
.Event-aside-item--activities .Event-aside-related-link:hover {
  background-color: #ef007c;
  background-color: var(--activity-colour-main);
}
.Event-aside-item--events .Event-aside-related-link:hover {
  background-color: #1d6052;
  background-color: var(--event-colour-main);
}
.Event-aside-item--publications .Event-aside-related-link:hover {
  background-color: #ef007c;
  background-color: var(--publication-colour-main);
}
.Event-aside-related-link:hover {
  border-bottom-color: transparent;
}
.Event-aside-user {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 0.5em;
}
.Event-aside-user-link {
  display: flex;
  flex-direction: row;
  color: #333;
  text-decoration: none;
  align-items: center;
}
.Event-aside-user-img {
    border-radius: 50%;
    width: 40px;
  height: 40px;
  margin-right: 1ch;
}
.Event-aside-supporter {
  padding-top: 0.4em;
  display: flex;
  flex-direction: row;
  align-items: center;
}
.Event-aside-supporter-link {
  display: flex;
  flex-direction: row;
  color: #333;
  text-decoration: none;
  align-items: center;
}
.Event-aside-supporter-logo {
  width: 40px;
  height: 40px;
  margin-right: 1ch;
}
.Event-main .rich-text h2 {
  font-size: 1.2em;
  font-size: var(--step-up-1);
  margin-bottom: 0.5em
}
@media (min-width: 930px) {
.Event-main .rich-text h2 {
  font-size: 1.44em;
  font-size: var(--step-up-2);
  margin-bottom: 1em
}
}
.Event-main .rich-text h3,
.Event-main .rich-text h4 {
  font-size: 1em;
  margin-bottom: 0.5em
}
@media (min-width: 930px) {
.Event-main .rich-text h3,
.Event-main .rich-text h4 {
  font-size: 1.2em;
  font-size: var(--step-up-1);
  margin-bottom: 1em
}
}
.Event-main ol {
    padding-left: 1em;
    margin-bottom: 1em;
}
.Event-main ul {
  list-style: none; /* Remove default bullets */
  padding-left: 1.5em;
  margin-bottom: 1em;
}
.Event-main ul li::before {
  font-size: 1em;
  content: "\25CF";
  color: #ef007c;
  color: var(--highlight-colour);
  display: inline-block; 
  width: 1em; 
  margin-left: -1em; 
}
.Event-main h2, h3, h4, h5, h6
{
    font-size: 1.44em;
    font-size: var(--step-up-2);
    line-height: 1.6;
    line-height: var(--lh);
    font-feature-settings: "lnum";
    font-variant-numeric: lining-nums;
}
