/* ------------------------- */
/*     COMMON STRUCTURE      */
/* ------------------------- */
:root {
--base-font-size: 16px;
--default-font-size: 1.0625rem;
--default-line-height: 1.412;
--default-background-colour: #FFFCFA;
--default-text-colour: #262626;
--default-headline-colour: #262626;
--default-link-colour: #262626;
--default-link-decoration: underline;
--default-link-hover-colour: #737373;
--default-link-hover-decoration: underline;
--default-h1-font-size: 2.75rem;
--default-h1-font-size-minwidth: 2rem;
--default-h1-font-weight: 800;
--default-h1-line-height: 1.1;
--default-h1-margin: 2rem auto 1rem auto;
--default-h2-font-size: 2rem;
--default-h2-font-weight: 600;
--default-h2-line-height: 1.5;
--default-h2-margin: 2rem 0 1rem 0;
--default-h3-font-size: 1.5rem;
--default-h3-font-weight: 600;
--default-h3-line-height: 1.333;
--default-h3-margin: 2rem 0 0.5rem 0;
--default-h4-font-size: 1.25rem;
--default-h4-font-weight: 600;
--default-h4-line-height: 1.333;
--default-h4-margin: 1.5rem 0 0.5rem 0;
--default-h5-font-size: 1.125rem;
--default-h5-font-weight: 600;
--default-h5-line-height: 1.333;
--default-h5-margin: 1.5rem 0 0.5rem 0;
--default-byline-font-size: 1.0625rem;
--default-byline-line-height: 1.176;
--default-byline-colour: #737373;
--default-byline-secondary-font-size: 1rem;
--default-byline-secondary-line-height: 1.25;
--default-byline-secondary-colour: #737373;
--default-date-font-size: 0.875rem;
--default-date-line-height: 1.429;
--default-date-font-weight: 400;
--default-date-colour: #737373;
--default-caption-font-size: 0.85rem;
--default-caption-line-height: 1.53;
--default-caption-padding: 0.5rem 0.75rem;
--default-caption-colour: #737373;
--default-subnavigation-background-colour: #f0f0f0;
--default-subnavigation-top-border: 1px solid #cccccc;
--default-focus-colour: #013ACE;
--ad-background-colour: #f0f0f0;
--modal-overlay-colour: rgba(0,0,0,0.73);
--modal-background-colour: #F9F6EE;
--modal-text-colour: #0A0102;
--highcontrast-background-colour: #0A0102 !important;
--highcontrast-text-colour: #F9F6EE !important;
--highcontrast-headline-colour: #EAEAE6;
--highcontrast-link-colour: #D7D5CB !important;
--highcontrast-link-decoration: none;
--highcontrast-link-hover-colour: #f4f3ed !important;
--highcontrast-link-hover-decoration: underline;
--highcontrast-subnavigation-background-colour: #171717;
--highcontrast-subnavigation-top-border: 1px solid #262626;
--highcontrast-byline-colour: #999999;
--highcontrast-date-colour: #999999;
--highcontrast-caption-colour: #D7D5CB;
}

body, html {
  font-family: Open Sans, sans-serif;
  font-size: var(--base-font-size);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--default-text-colour);
  overscroll-behavior: none;
}
body.has-modal {
  overflow-y: hidden;
}

figure {
  display: block;
  position: relative;
  box-sizing: border-box;
}
figure img {
  display: block;
  position: relative;
  width: 100%;
  height: auto;
}
figure figcaption {
  margin: 0 auto;
  position: relative;
  text-align: left;
  font-size: var(--default-caption-font-size);
  line-height: var(--default-caption-line-height);
  color: var(--default-link-colour);
  padding: var(--default-caption-padding);
  box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5 {
    color: var(--default-headline-colour);
}

h1,
.subsection h2 {
  font-size: var(--default-h1-font-size);
  line-height: var(--default-h1-line-height);
  font-weight: var(--default-h1-font-weight);
  margin: var(--default-h1-font-margin);
}
h2,
.subsection h3 {
  font-size: var(--default-h2-font-size);
  line-height: var(--default-h2-line-height);
  font-weight: var(--default-h2-font-weight);
  margin: var(--default-h2-font-margin);
}
h3,
.subsection h4 {
  font-size: var(--default-h3-font-size);
  line-height: var(--default-h3-line-height);
  font-weight: var(--default-h3-font-weight);
  margin: var(--default-h3-font-margin);
}
h4,
.subsection h5 {
  font-size: var(--default-h4-font-size);
  line-height: var(--default-h4-line-height);
  font-weight: var(--default-h4-font-weight);
  margin: var(--default-h4-font-margin);
}
h5 {
  font-size: var(--default-h5-font-size);
  line-height: var(--default-h5-line-height);
  font-weight: var(--default-h5-font-weight);
  margin: var(--default-h5-font-margin);
}

.a11y-heading {
  display: block;
  position: absolute !important;
  clip: rect(1px 1px 1px 1px);
  padding: 0 !important;
  margin: 0 !important;
  width: 1px !important;
  height: 1px !important;
}
.hidden {
  display: none;
}

.viafoura .vf-share-bar {
  margin: 0 auto !important;
  display: block !important;
}

.content-holder {
  display: grid;
  position: relative;
  grid-template-columns: 1fr;
  grid-column-gap: 0;
  grid-row-gap: 0;
  overflow: hidden;
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
  width: 100%;
}

#maincontent {
  display: block;
  position: relative;
  overflow-y: scroll;
  overflow-x: hidden;
}
#maincontent.modalvisible {
  overflow-y: hidden;
}

.entry-element-container {
  display: block;
  position: relative;
  width: 100%;
  height: auto;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  clear: both;
}
.entry-element-container.entry-header {
    margin: 3rem auto 1rem auto;
}
.entry-element-container a,
.entry-element-container a:visited {
  color: var(--default-link-colour);
  font-weight: 700;
  text-decoration: var(--default-link-decoration);
  cursor: pointer;
}
.entry-element-container a:hover {
  color: var(--default-link-hover-colour);
  font-weight: 700;
  text-decoration: var(--default-link-hover-decoration);
}

.entry-element {
  display: block;
  position: relative;
  width: 100%;
  max-width: 42.5rem;
  height: auto;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}
.entry-element p {
  margin-bottom: 1rem;
  font-size: var(--default-font-size);
  line-height: var(--default-line-height);
  color: var(--default-text-colour);
  overflow-wrap: break-word;
}
.entry-element ul {
  margin-left: 2rem;
}

.entry-byline {
    display: block;
    position: relative;
    margin: 1rem auto;
    text-align: center;
}
.entry-byline.primary {
  color: var(--default-byline-colour);
  font-size: var(--default-byline-font-size);
  line-height: var(--default-byline-line-height);
}
.entry-byline.secondary {
  font-weight: 100;
  color: var(--default-byline-secondary-colour);
  font-size: var(--default-byline-secondary-font-size);
  line-height: var(--default-byline-secondary-line-height);
}

.entry-date {
    font-size: var(--default-date-font-size);
    line-height: var(--default-date-line-height);
    font-weight: var(--default-date-font-weight);
    color: var(--default-date-colour);
    display: block;
    position: relative;
    margin: 1rem auto;
    text-align: center;
}

/* ========= AD CONTAINERS ========= */

.longform-big-box {
  padding: 0 1rem;
  background-color: var(--ad-background-colour);
  min-height: 250px;
  margin-bottom: 1rem;
}

/* ========= MEDIA CONTAINERS ========= */

.media-container {
  display: block;
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
  box-sizing: border-box;
  margin: 0 0 1rem 0;
  padding: 0;
  background-color: inherit;
}
.media-container .media-content {
  display: block;
  position: relative;
  width: 100%;
  height: 0px;
  padding-bottom: 56.25%;
  z-index: 2;
}
.media-container .media-content.square {
  padding-bottom: 100% !important;
}
.media-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.media-container .video-loading-icon {
  display: block;
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  margin-left: -3rem;
  margin-top: -1.5rem;
  width: 6rem;
  height: auto;
  opacity: 0.42;
}
.media-caption {
  display: block;
  width: 100%;
  height: auto;
  margin:.5rem auto 1rem auto;
  font-size: var(--default-caption-font-size);
  font-style: italic;
  font-weight: 400;
  line-height: var(--default-caption-font-size);
  color: var(--default-caption-colour);
  padding: 0.5rem 0 0 0;
}


/* ========= CODE BLOCKS ========= */

.code-block {
    display: block;
    position: relative;
    margin-top: 3rem;
    margin-bottom: 3rem;
}
.code-block .twitter-tweet {
    margin: auto;
}
.code-block iframe {
  display: block;
  position: relative;
  margin: 0.5rem auto !important;
}


/* ========= CONTENT EMBED ========= */

.content-embed {
    display: block;
    position: relative;
    margin-top: 3rem;
    margin-bottom: 3rem;
}
.content-embed .twitter-tweet {
    margin: auto;
}
.content-embed iframe {
    margin: 0.5rem auto !important;
    display: block;
}
.content-embed.full iframe {
    margin: 0.5rem 0 !important;
    display: block;
    width: 100%
}
.content-embed.full .entry-element {max-width:none;}
.skipembed {
    height: 1px;
    overflow: hidden;
    position: absolute;
    width: 1px;
}
a.skipembed:focus {
    overflow: visible;
    width: inherit;
    margin-left: 25.5vw;
    text-decoration: underline;
    color: var(--default-focus-colour);
    width: fit-content;
}

/* ========= MODIFIERS ========= */

.fullwidth.entry-element-container,
.fullwidth .entry-element {
  width: 100% !important;
  max-width: 100% !important;
}
.fullwidth .media-caption {
  max-width: calc(100% - 1rem);
}
.medium .entry-element {
  max-width: 42.5rem;
}
.large .entry-element {
  max-width: 55rem;
}
.small .entry-element {
  max-width: 21.25rem;
  min-width: 13.75rem;
}

.centre {
  text-align: center;
}
.left {
  text-align: left;
}
.right {
  text-align: right;
}


/* ========= MODAL WINDOWS ========= */

#lfp_modal {
  display: flex;
  position: fixed;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.73);
  z-index: 99;
}
.lfp-modal-window {
  display: block;
  position: relative;
  padding: 2rem;
  border-radius: 1rem;
  background-color: var(--modal-background-colour);
  color: var(--modal-text-colour);
}
.lfp-modal-window-text {
  display: block;
  position: relative;
  max-width: 16rem;
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.5rem;
}
.lfp-modal-window-text p {
  margin-bottom: 0.5rem;
}
.lfp-modal-window-buttons {
  display: flex;
  position: relative;
  flex-wrap: nowrap;
  justify-content: space-evenly;
}
.lfp-modal-button {
  display: block;
  position: relative;
  border: none;
  padding: 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 1.5rem;
  line-height: 1.5rem;
}

/* ========= BIG BOX AD ========= */

.entry-element-container.big-box-ad {
    margin-bottom: 2rem;
}

.entry-element-container.big-box-ad .entry-element {
    text-align: center;
}

.entry-element-container.big-box-ad .ad-slug {
    font-size: 0.5rem;
    line-height: 0.75rem;
    text-align: center;
    color: #999;
    text-transform: uppercase;
}

/* ========= HIGH CONTRAST ========= */

.high-contrast .content-holder { background-color: var(--highcontrast-background-colour); color: var(--highcontrast-text-colour); }

.high-contrast .content-holder a, .high-contrast .content-holder a:visited {
  color: var(--highcontrast-link-colour);
  cursor: pointer;
}
.high-contrast .content-holder a:hover {
  color: var(--highcontrast-link-hover-colour);
  cursor: pointer;
}

.high-contrast select.sub-nav-select {
  filter: invert(1);
}
.high-contrast .sub-navigation-holder.isSticky {
  background-color: var(--highcontrast-subnavigation-background-colour);
  border-top: var(--highcontrast-subnavigation-top-border);
}

.high-contrast figure figcaption {
  color: var(--highcontrast-caption-colour);
}

.high-contrast img,
.high-contrast video {
  filter: brightness(0.8) contrast(1.2);
}

.high-contrast h1,
.high-contrast h2,
.high-contrast h3,
.high-contrast h4,
.high-contrast h5 {color:var(--highcontrast-headline-colour);}

.high-contrast .entry-byline {var(--highcontrast-byline-colour)}
.high-contrast .entry-date {
  color: var(--highcontrast-date-colour);
}
.high-contrast .entry-element p {
  color: var(--highcontrast-text-colour);
}

.high-contrast .media-caption {
  color: var(--highcontrast-caption-colour);
}

/* ========= MEDIA QUERIES ========= */

@media only screen and (max-width: 57rem) { /* 2rem past LARGE max */
  .large .entry-element {
    max-width: calc(100% - 2rem);
    margin-left: auto;
    margin-right: auto;  
  }
}

@media only screen and (max-width: 44.5rem) { /* 2rem past MEDIUM max */
  .medium .entry-element {
    max-width: calc(100% - 2rem);
    margin-left: auto;
    margin-right: auto;  
  }
}

@media only screen and (max-width: 42.5rem) { /* 680 px */
  .media-caption {
    max-width: calc(100% - 2rem);
    margin-left: auto;
    margin-right: auto;  
  }
}

@media only screen and (max-width: 30rem) { /* 480 px */
  .entry-element ul {
    margin-left: 1rem;
  }
}

@media only screen and (max-width: 23.25rem) { /* 2rem past .small max, to keep width consistent */
  .small .entry-element {
    max-width: calc(100% - 2rem);
    margin-left: auto;
    margin-right: auto;
  }
}
