body {
    font-size: var(--sp);
    --color--secondary-30: hsl(33, 100%, calc(1% * (50 - (0.36 * 50))));
    --color--secondary-40: hsl(33, 100%, calc(1% * (50 - (0.24 * 50))));
    --color--secondary-50: hsl(33, 100%, calc(1% * 50));
    --color--secondary-60: hsl(33, 100%, calc(1% * (50 + (0.24 * (100 - 50)))));
    --color--secondary-80: hsl(33, 100%, calc(1% * (50 + (0.85 * (100 - 50)))));
    --color-text-secondary-medium: var(--color--secondary-40);
    --color-text-secondary-loud: var(--color--secondary-30);
}

.text-content {
    font-family: var(--font-sans);
    text-align: justify;
    line-height: var(--sp1-5);
    font-size: var(--sp1);
}

:root {
    --font-sans: Verdana, Arial, Helvetica, sans-serif;
    --sp: .85rem;
    --sp1-25: calc(1.25 * var(--sp));
    --sp1-75: calc(1.75 * var(--sp));
    --font-headings: "Trebuchet MS", Geneva, Arial, Helvetica, SunSans-Regular, Verdana, sans-serif;
    --mobile-nav-width: 15rem;
    --site-header-height-wide: var(--sp10);
}

.site-header__inner {
    background-image: linear-gradient(160deg, var(--color--primary-50) 0%, var(--color--primary-40) 78.66%);
    position: relative;
    box-shadow: inset 0px -5px 0px 0px black !important;
}

.site-branding, .site-branding__text {
    background-image: none;
    letter-spacing: -0.04em;
    font-weight: normal;
}

@media (min-width: 62.5rem) {
    .site-branding__text {
        font-size: var(--sp4);
    }
}

@media (min-width: 62.5rem) {
    .header-nav {
        background-color: inherit;
        color: white !important;
    }
}


.header-nav a:hover {
    color: white;
}
    
.primary-nav__menu-link {
    color: white;
}

.block-search-wide__wrapper input[type="search"] {
    font-family: var(--font-sans);
    font-size: .85rem;
    height: var(--sp4);
    
}

.block-search-wide__wrapper {
    height: var(--sp4);
    background: var(--color--gray-10);
    
}

.sticky-header-toggle__icon {
    background-image: url('https://snurb.info/files/ab-logo-1100x1100.png');
    width: var(--sp4);
    height: var(--sp4);
    display: block;
    background-size: cover;
    background-repeat: no-repeat;
    text-indent: -9999px;
    overflow: hidden;
    max-height: calc(var(--header-height-wide-when-fixed) - var(--sp));
}

.sticky-header-toggle__icon > span {
    display: none;
}

/* repeating some definitions from site-header.css and header-sticky-toggle.css because 
Safari doesn't like the body:not(.is-always-mobile-nav) selector and we don't need it */

@media (min-width: 75rem) {
  body.is-fixed .sticky-header-toggle {
    visibility: visible;
  }
}

@media (min-width: 75rem) {
  body.is-always-mobile-nav .sticky-header-toggle {
    visibility: hidden;
  }
}


@media (min-width: 75rem) {
  .site-header__fixable.is-fixed {
    position: fixed;
    z-index: 102; /* Appear above body content that is position: relative */
    inset-block-start: calc(var(--drupal-displace-offset-top, 0px) - var(--sp4));
    max-width: var(--max-bg-color);
  }
}

@media (min-width: 75rem) {
  html.js .site-header__inner {
    transition:
      opacity 0.3s,
      transform 0.3s,
      box-shadow 0.3s;
  }
}

@media (min-width: 75rem) {
  .site-header__fixable.is-fixed:not(.is-expanded) .site-header__inner {
    transform: translateX(-101%); /* LTR */
    opacity: 0;
  }
}

@media (min-width: 75rem) {
  [dir="rtl"] .site-header__fixable.is-fixed:not(.is-expanded) .site-header__inner {
    transform: translateX(101%);
  }
}


.node__meta {
    font-size: var(--sp);
}

.text-content p {
    margin-block-start: var(--sp0-75);
    margin-block-end: var(--sp0-75);
}

h1, h2, h3, h4, h5, h6 {
    text-align: left;
    margin-block: var(--sp1);
    font-family: var(--font-headings);
}

h1 {
    font-size: var(--sp2);
    color: hsl(240, 100%, 30%);
    line-height: var(--sp2-5);
}

h2 {
    font-size: var(--sp1-5);
    color: hsl(240, 80%, 35%);
    line-height: var(--sp2);
}

h3 {
    font-size: calc(1.3 * var(--sp1));
    color: hsl(240, 60%, 40%);
    line-height: calc(1.8 * var(--sp1));
}

h4 {
    font-size: calc(1.2 * var(--sp1));
    color: hsl(240, 60%, 45%);
    line-height: calc(1.7 * var(--sp1));
}

h5 {
    font-size: calc(1.1 * var(--sp1));
    color: hsl(240, 50%, 50%);
    line-height: calc(1.6 * var(--sp1));
}

h6 {
    font-size: var(--sp1);
    color: hsl(240, 50%, 60%);
    line-height: calc(1.5 * var(--sp1));
}

h2.node__title a {
    font-size: var(--sp2);
    color: hsl(240, 80%, 35%);
    line-height: var(--sp2-5);
}

.teaser__content {
    gap: var(--sp1-5);
}

.teaser__content > span.field--type-entity-reference:not(:first-child), .node__content > span.field--type-entity-reference:not(:first-child) {
    margin-top: calc(-1 * (var(--sp1-5)));   
}

.field--type-entity-reference, .field--type-entity-reference > span {
    display: inline;
    font-size: var(--sp0-75);
    line-height: var(--sp1-5);
}

.field--type-entity-reference a {
    text-decoration: none;
}

inop.field--type-entity-reference::after {
    content: "X";
    position: relative;
    left: -1.5ch;
    background-color: var(--color--white);
    color: var(--color--white);
}

cite, p.citation {
    display: block;
    font-style: inherit;
    text-align: left;
    text-indent: -3em;
    padding: 0.2em 1em 0.2em 4em;
    font-size: 0.85em;
    background-color: var(--color--gray-100);
    margin: 1.5em 0;
}

p.citation + p.citation, p.citation:has(+ p.citation) {
    margin: 0;
}

p.citation img {
    display: inline;
}

main .text-content a:where(:not(.button)) {
    color: var(--color--secondary-50);
    text-decoration-thickness: 2px;
    font-weight: bold;
    box-shadow: inset 0 -1px 0 0 var(--color--secondary-40);
}


main .text-content a:where(:not(.button)):hover {
    box-shadow: inset 0 -2em 0 0 var(--color--secondary-50);
    text-decoration-color: var(--color--secondary-50);
}

.teaser::after {
    position: absolute;
    inset-block-end: 0;
    width: 70%;
    height: 0;
    content: "";
    border-top: dashed 2px var(--color--gray-70);
    margin: 0 15% 0 15%;
}

.pager {
    grid-column: 1 !important;
}

/* social sidebar content at the bottom for narrow pages */
@media (max-width: 75rem) {
    img.social-sidebar-logo, span.feed-icon__icon {
        width: var(--sp1-5);
        height: var(--sp1-5);
    }
    
    img.social-sidebar-book {
        width: var(--sp5);
    }
    
    .rotate {
        display:  grid;
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap:  var(--sp);
        grid-auto-rows: auto;
        justify-items: center;
        align-items: center;
        margin: var(--sp3) auto;
        max-width: calc(9 * var(--sp5) + 5 * var(--sp)); /* adjust column count from 9 when adding or removing items */
    }

    #block-olivero-snurblog-spacer, #block-olivero-snurblog-spacer-2 {
        grid-column: 1 /-1;
    }

    .rotate > * {
        margin-block-end: 0;
    }
}

/* social sidebar for wide pages */
@media (min-width: 75rem) {
    div.social-bar__inner {
        padding-top: 20px;
        margin-left: 5px;
    }

    img.social-sidebar-logo, span.feed-icon__icon {
        width: var(--sp1-5);
        height: var(--sp1-5);
        transform: rotate(90deg);
    }
    
    div.social-sidebar-book {
        transform: rotate(90deg);
        transform-origin: center;
        margin-inline-end: var(--sp2);
    }
    
    img.social-sidebar-book {
        width: var(--sp5);
    }
    
    img.social-sidebar-book:hover {
        transform: scale(6);
        transform-origin: top left;
        transition: transform 0.3s ease; 
        box-shadow: 2px 2px 2px 0px rgba(0, 0, 0, 0.6); /* Add a subtle shadow */
    }
    
    .social-sidebar-book:hover {
        z-index: 10;
        position: sticky;
    }
}

.text-content blockquote::before, .text-content blockquote::after {
    display: none;
}

.text-content blockquote {
    border-left: 4px solid #c96;
    padding: var(--sp1) var(--sp3);
    margin: 15px 30px 15px 30px;
    border-top: 1px solid #FFDEA7;
    border-bottom: 1px solid #FFDEA7;
    border-right: 1px solid #FFDEA7;
    margin-right: 40px;
    /* color: #363636; */
    font-family: var(
    --font-sans);
    font-size: var(
    --sp15);
    line-height: var(--sp1-5);
    background-color: #ffe;
}

.read-more, .infobox {
    display: inline-block;
    margin-top: var(--sp0-25);
    padding: var(--sp0-5) var(--sp1);
    font-size: var(--sp1);
    font-weight: bold;
    color: var(--color--gray-45);
    text-decoration: none;
    background-color: var(--color--gray-90);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.infobox {
    width: 100%;
}

.infobox a {
    color: var(--color--gray-45);
    text-decoration: none;
    box-shadow: none;
}

/* Hover effect for the "Read More..." link */
.read-more:hover, .infobox:hover {
    background-color: var(--color--gold);
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.4); /* Add a subtle shadow */
    text-decoration: underline; /* Underline for better accessibility */
    color: var(--color-text-primary-medium);
}

.infobox a:hover {
    text-decoration: underline; /* Underline for better accessibility */
    color: var(--color-text-primary-medium);
    box-shadow: none;
}

.region--sidebar .text-content {
    font-size: var(--sp0-75);
    text-align: left;
    line-height: var(--sp1);
    border-bottom: 3px solid black;
    padding: var(--sp0-75);
}

.region--sidebar .block {
    margin-block-end: 0;
}

.region--sidebar .block__title {
    font-size: var(--sp1-25);
    color: var(--color--gray-90);
    padding: var(--sp1) 0 0 var(--sp0-75);
    margin-bottom: 0;
}

.region--sidebar .item-list h3 {
    font-size: var(--sp1);
    margin: 0;
    color: var(--color--gray-10);
}

.region--sidebar .item-list {
    color: var(--color--gray-90);
}

.region--sidebar .item-list a {
    font-size: larger;
}

.region--sidebar > .block-block-content:last-child .text-content {
    border-bottom: none;
}

.sidebar-grid .region--sidebar {
#    grid-column: 12 / 15;
    position: sticky;
    top: calc(var(--site-header-height-wide) + var(--sp8)); /* height of the site header + height of the full-width search bar for logged-out users */
    height: fit-content;
    align-self: start;
    background-image: linear-gradient(131deg, var(--color--secondary-80) 0%, var(--color--secondary-60) 300%);
    background-image: linear-gradient(131deg, var(--color--primary-80) -101%, var(--color--primary-30) 100%);
    border: 3px solid black;
    border-radius: 5px;
}

.block__content {
    line-height: var(--sp1-5);
    margin-block-end: var(--sp0-75);
}

.links.inline {
    font-size: var(--sp0-75);
    background-color: var(--color--gray-70);
}

.block-page-title-block {
    margin-block-end: var(--sp1)
}

.node__content .field--name-body {
    margin-top: var(--sp1-5);
}

.view-blog .view-content {
    gap: var(--sp4)
}

.teaser {
    padding-block-end: var(--sp4);
}

.region--sidebar a {
    text-decoration: none;
    box-shadow: none;
    color: white;
    font-size: var(--sp1);
}

a.headerlink {
    width: 100%;
    display: block;
    font-weight: bold;
}

a.headerlink:hover {
    text-decoration: none;
}


.mobile-nav-button__icon, .mobile-nav-button__icon::before, .mobile-nav-button__icon::after {
    border-top: solid 3px white;
}

.mobile-nav-button__label {
    color: white;
}

/* Define when mobile navbar disappears */
@media (min-width: 62.5rem) {
    .mobile-buttons {
        display: none;
    }

    .header-nav {
        display: flex;
    }

    .region--secondary-menu {
        justify-content: flex-end;
    margin: 0;
    
    /* If the secondary nav is the first item within the header, it does not need left separator. */
    }
    .region--secondary-menu:first-child .secondary-nav::before {
        content: none;
    }

    .header-nav {
        position: static;
        display: flex;
        visibility: visible;
        overflow: visible;
        grid-column: 5 / 15;
        align-items: center;
        justify-content: flex-end;
        max-width: none;
        height: var(--header-height-wide-when-fixed);
        margin-block-start: auto;
        padding-block: 0;
        padding-inline-start: 0;
        padding-inline-end: 0;
        transition: transform 0.2s;
        transform: none;
        border-block-start: 0;
        box-shadow: none;
      }
}

@media (min-width: 75rem) {
  body.is-always-mobile-nav .header-nav {
    overflow: auto;
    max-width: calc((7 * (var(--grid-col-width) + var(--grid-gap))));
    padding-inline-end: var(--sp);
    transition:
      transform 0.2s,
      visibility 0.2s;
    border-top-width: calc(var(--drupal-displace-offset-top, 0px) + var(--sp11));
  }
}

@media (min-width: 62.5rem) {
    .block-search-wide__wrapper,
    .block-search-wide__button {
        display: block;
    }
}

/* Show primary menu items other than Home button only in mobile mode */
@media (min-width: 62.5rem) {
    ul li.primary-nav__menu-item:not(:first-child) {
        display:none;
    }    
}

.primary-nav__menu-link {
    font-size: 1.25rem;
    font-weight: bold;
    line-height: var(--sp0-75);

}

.header-nav.is-active .primary-nav__menu-link {
    text-transform: uppercase;
}

@media (max-width: 62.5rem) {
    .header-nav {
        background-image: linear-gradient(131deg, var(--color--primary-80) -101%, var(--color--primary-30) 100%);
        border: 3px solid black;
        border-radius: 5px;
        margin-top: var(--sp6);
        padding: var(--sp1);
        max-height: 80%;
        height: auto;
        box-shadow: 0px 6px 6px 3px rgba(0, 0, 0, 0.4);
    }
    
    .region--secondary-menu {
        display: none;
    }
    
    .is-overlay-active .header-nav-overlay {
        display: none;
    }
}


.primary-nav__menu-link:focus {
    outline: auto 2px white;
    outline-offset: 2px;
}

.primary-nav__menu-link:hover .primary-nav__menu-link-inner::after {
    display: none;
}

.primary-nav__menu-link:focus {
    outline: auto 2px white;
    outline-offset: 2px;
}

a:focus {
  outline: none;
}

@media (min-width: 31.25rem) {
  .mobile-buttons {
    margin-block-start: var(--sp1);
  }
}

@media (min-width: 43.75rem) {
  .mobile-buttons {
    margin-block-start: var(--sp2);
  }
}

.header-nav.is-active {
    visibility: visible;
    transform: translateX(calc(-100% - var(--drupal-displace-offset-right, 15px)));
}

/* Search results display */

.block__content form.search-form + h2 {
    padding-top: var(--sp3);
}

h3.search-result__title > a {
    font-size: calc(1.3 * var(--sp1));
    color: hsl(240, 60%, 40%);
    line-height: calc(1.8 * var(--sp1));
}

.search-result__title {
    line-height: calc(1.8 * var(--sp1));
}

.search-results__item::after {
    position: absolute;
    inset-block-end: 0;
    width: 70%;
    height: 0;
    content: "";
    border-top: dashed 2px var(--color--gray-70);
    margin: 0 15% 0 15%;
}



article.liveblog::before {
  content: "CONFERENCE BLOG"; /* Insert the text */
  position: absolute; /* Position relative to the article */
  top: 0;
  left: -40px; /* Align to the left of the article */
  background-color: hsl(240, 80%, 35%); /* Blue background for the bar */
  color: white; /* White text color */
  font-size: var(--sp1); /* Adjust the font size */
  font-weight: bold; /* Make the text bold */
  font-family: var(--font-headings);
  writing-mode: vertical-lr; /* Vertical text orientation */
  height: 100%; /* Make the bar span the entire height of the article */
  width: 20px; /* Width of the bar */
  display: flex;
  justify-content: center; /* Center the text inside the bar */
  align-items: center; /* Center the text inside the bar */
}