/**
 * Most unl_five css comes from all.css in the WDNTemplates project.
 * CSS that does appear here is for CMS specific items or modifications
 * that need to be made for WDN styles to work with CMS DOM structure.
 */

/* UNL 5 uses higher z-index than Drupal */
#toolbar {
  z-index: 2000;
}

/* Override Drupal's decision to make all labels bold. */
label {
  font-weight: inherit;
}

/* Override for hard-coded #000 value in system.menus.css */
li a.active {
  color: var(--link);
}

/* Position tabs at the top right of maincontent */
#dcf-header {
  position: relative;
}
#unlcms_tabs {
  position: absolute;
  right: 0;
  top: 105px;
  font-size: 0.8em;
}
@media only screen and (max-width: 56.1231em) {
  #unlcms_tabs {
    top: 63px;
    font-size: 0.5em;
  }
}
#unlcms_tabs .dcf-tab {
  font-weight: normal;
}
#unlcms_tabs .dcf-tab[aria-selected] {
  border: 1px solid var(--b-tab);
  border-bottom-color: var(--bg-tab-selected);
}

/* Related Links region contextual links */
#wdn_footer_related a.contextual-links-trigger {
  display: none;
}
#wdn_footer_related .contextual-links-region:hover a.contextual-links-trigger {
  display: block;
}

/* Fix for a Views page */
#pagetitle {
  position: relative;
}
#wdn_content_wrapper.contextual-links-region {
  position: static;
}

/* Overrides of system.menus.css due to conflicts with UNL navigation */
#dcf-navigation .dcf-nav-local li {
  margin: 0;
  padding: 0;
  list-style-image: none;
  list-style-type: none;
}

/* Override for unl #maincontent specificity */
ul.links.inline {
  padding-left: 0 !important;
}

/* Webform calendar image shouldn't stretch to 100% */
input.webform-calendar {
  width: auto;
  vertical-align: baseline;
  margin-left: 0.4em;
}

/* Color contrast of required * on form labels */
.marker, .form-required {
  color: #b40000;
}

/**
 * WDN bands support
 */
.content-top .field-collection-view,
.content-bottom .field-collection-view {
  overflow: hidden;
}
.content-top .node > h2,
.content-bottom .node > h2 {
  display: none;
}
.field-collection-view-links {
  display: none;
}
.field-name-field-wdn-band-bg img.wdn-stretch {
  position: absolute;
}
.node .content.wdn-inner-wrapper {
  position: relative;
}
#maincontent > .wdn-band:after {
  clear: both;
  content: "";
  display: block;
}
#block-views-bands-bands-top > h3,
#block-views-bands-bands-bottom > h3 {
  display: none;
}


/* taxonomy */
.taxonomy-term-description {
  box-shadow: 0 0 1px #bbb;
  margin: 0 0 20px;
  padding: 10px;
}


/* sidebar */
.sidebar .block {
  margin: 0 0 30px 0;
}
.sidebar .block:after {
  clear: both;
  content: ".";
  display: block;
  height: 0;
  visibility: hidden;
}


/* Published state */
.node-unpublished {
  background: var(--bg-body);
}
.node-unpublished::before {
  content: 'Unpublished';
  background: #fff4f4;
  border-bottom: 4px solid var(--bg-body);
  display: block;
  color: var(--body);
  padding: .2em .6em;
  margin-bottom: .5em;
  font-style: italic;
}

@media (prefers-color-scheme: dark) {
  .node-unpublished::before {
    background: var(--bg-mark);
    color: var(--inverse);
  }
}
