/*
  DWN theme styles
*/

/* ---------- Custom properties ---------- */

:root {
  /* Sizing */
  --content-width: 950px;

  /* Colors */
  --color-text: black;
  --color-background: hsl(0, 0%, 100%);
  --color-borders: hsl(52, 6%, 87%);
  --color-boxes: hsla(60, 100%, 12%, 0.05);

  --color-blue: hsl(192, 100%, 30%);
  --color-dark-blue: hsl(229, 37%, 21%);
  --color-light-orange: hsl(20, 98%, 53%); /* Over dark backgrounds */
  --color-orange: hsl(20, 98%, 50%);
  --color-dark-orange: hsl(20, 98%, 41%);

  --color-link: hsl(192, 100%, 30%);
  --color-link-visited: hsl(192, 72%, 31%);
  --color-link-hover: hsl(192, 100%, 26%);

  /* Fonts */
  --font-weight-text: 400;
  --font-family-text: "Open Sans", sans-serif;
  --font-lineheight-text: 1.8;
  --font-lineheight-shorter: 1.6;
  --font-size-content: 1rem;
  --font-text: var(--font-weight-text) var(--font-size-content)/var(--font-lineheight-text) var(--font-family-text);

  --font-weight-heading: 400;
  --font-family-heading: Oswald, "Arial Narrow", sans-serif;
  --font-lineheight-heading: 1.3;
  --font-heading: var(--font-weight-heading) var(--font-size-content)/var(--font-lineheight-heading) var(--font-family-heading);

  --font-weight-button: 400;
  --font-family-button: Oswald, "Arial Narrow", sans-serif;
  --font-size-button: 1em;
  --font-lineheight-button: 1.3;
}


/* ---------- Formatting ---------- */

html {
  font-size: 1em; /* 16px base */
  height: 100%;

  /* Prevent iOS text size adjust after orientation change */
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}
body {
  color: var(--color-text);
  font: var(--font-text);
  word-wrap: break-word;
}

p,
address {
  line-height: var(--font-lineheight-text);
}
ul,
ol,
li,
dt,
dd,
td,
th {
  line-height: var(--font-lineheight-shorter);
}
b,
strong {
  font-weight: 600;
}
sup, sub {
  font-size: 0.75em;
}


/* Scroll snap anchors below sticky header */
@media (min-width: 841px) {
  *:target {
    scroll-margin-top: 5rem; /* Sticky header height */
  }
}


/* Links */
a {
  text-decoration: none;
}
a:link {
  color: var(--color-link);
}
a:visited {
  color: var(--color-link-visited);
}
a:hover {
  color: var(--color-link-hover);
  text-decoration: underline;
}
a:active,
a:focus {
  color: var(--color-link-hover);
  text-decoration: none;
}

@media (max-width: 1000px) {
  /* Force breaks in long links */
  #content a {
    -ms-word-break: break-all;
    word-break: break-all;
    word-break: break-word;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    hyphens: auto;
  }
}

a.action { /* Action button */
  display: inline-block;
  padding: 11px 24px;
  border: 1px solid var(--color-orange);
  text-align: center;
  color: var(--color-orange);
  background-color: hsl(0, 0%, 100%);
  font: var(--font-weight-button) var(--font-size-button)/var(--font-lineheight-button) var(--font-family-button);
  text-transform: uppercase;
}
a.action:hover {
  border-color: var(--color-dark-orange);
  color: var(--color-dark-orange);
  background-color: hsl(0, 100%, 99.4%);
  text-decoration: none;
}
.big a.action {
  font-size: 120%;
  border-width: 2px;
}

@media (max-width: 667px) {
  /* Add parent to prevent CKEditor confusion */
  #content a.action {
    display: block;
  }
}

a.action-donate { /* Donate button */
  display: inline-block;
  padding: 12px 25px;
  background-color: var(--color-orange);
  text-align: center;
  color: hsl(0, 0%, 100%);
  font: var(--font-weight-button) var(--font-size-button)/var(--font-lineheight-button) var(--font-family-button);
  text-transform: uppercase;
}
a.action-donate:hover {
  background-color: var(--color-dark-orange);
  text-decoration: none;
}

a.more::after { /* More link */
  content: "\00a0»";
}

/* Full width */
a.action.stretch,
a.action-donate.stretch {
  display: block;
}

/* YouTube play button */
a.youtube-play {
  position: relative;
}
a.youtube-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 64px;
  height: 45px;
  margin: -22px 0 0 -32px;
  opacity: 0.75;
  background: url("../images/icon-youtube-play.png") no-repeat 50% 50%;
  background-size: 64px auto;
  pointer-events: none;
}
a.youtube-play:hover::after {
  opacity: 1;
}


/* Paragraphs */
p {
  margin: 0 0 1.8em;
}
address {
  font-style: normal;
  margin: 0 0 1.7em;
}

blockquote {
  margin: 0 0 1.7em 1em;
  padding: 0;
}
blockquote p {
  margin-bottom: 0.4em;
  font: 300 168.75%/1.6 var(--font-family-heading);
}
blockquote p:first-child::before { /* Inject quotes */
  content: '"';
  display: inline-block;
  text-indent: -9999px;
  overflow: hidden;
  vertical-align: top;
  width: 33px;
  height: 35px;
  margin-right: 0.3em;
  background: url("../images/blockquote-open@2x.png") no-repeat;
  background-size: 33px auto;
}
blockquote p:first-child::after {
  content: '"';
  display: inline-block;
  text-indent: -9999px;
  overflow: hidden;
  vertical-align: bottom;
  width: 33px;
  height: 35px;
  margin-left: 0.3em;
  background: url("../images/blockquote-close@2x.png") no-repeat;
  background-size: 33px auto;
}
blockquote p.cite {
  font: normal normal 100%/1.8 var(--font-family-text);
}
blockquote p cite {
  display: block;
  font: normal normal 59.26%/1.8 var(--font-family-text);
}

/* Highlighted text */
.highlight,
a.highlight {
  color: var(--color-orange);
}

/* Page introduction text */
p.intro {
  margin-bottom: 1.6em;
  border-bottom: 1px solid var(--color-borders);
  padding-bottom: 1.6em;
  font-size: 1.1875em;
  font-weight: 600;
  line-height: 1.6;
}
p.intro strong {
  font-weight: bold;
}

p.big-intro {
  margin-bottom: 1.5em;
  border-bottom: 1px solid var(--color-borders);
  padding-bottom: 1.5em;
  text-align: center;
  font-size: 137.5%;
  font-weight: bold;
  line-height: 1.5;
  color: var(--color-orange);
}
p.big-intro.alignleft {
  text-align: left;
}

p.intro.clean,
p.big-intro.clean { /* No bottom rule */
  border-bottom: none;
  padding-bottom: 0;
}

p.required,
span.required,
strong.required,
label.required,
.form-required,
.marker {
  color: var(--color-orange);
}
.error,
.error li,
.error p {
  color: #c52020;
}

.small,
small {
  font-size: 0.8125em;
  line-height: 1.5;
}
.big,
big {
  font-size: 1.125em;
}

.alignleft {
  text-align: left;
}
.aligncenter {
  text-align: center;
}
.alignright {
  text-align: right;
}
.alignjustify {
  text-align: justify;
}

/* CKEditor indentation */
.rteindent1,
.indented {
  margin-left: 25px;
}
.rteindent2 {
  margin-left: 50px;
}
.rteindent3 {
  margin-left: 75px;
}
.rteindent4 {
  margin-left: 100px;
}


/* Images */
img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 1000px) {
  /* Prevent image blowout */
  img {
    max-width: 100% !important;
    height: auto !important;
    max-height: none;
  }
}

a img {
  border-style: none;
}

/* Floating images */
.floatleft {
  clear: left;
  float: left;
  margin: 0 1.2rem 1rem 0;
}
.floatright {
  clear: right;
  float: right;
  margin: 0 0 1rem 1.2rem;
}

/* Photos with captions */
figure {
  margin: 0 0 1.7em;
  max-width: max-content;
}

/* Center within columns */
.columns figure {
  margin-left: auto;
  margin-right: auto;
}

figure img {
  display: block;
}
figure figcaption {
  display: block;
  margin-top: 0.5em;
  text-align: right;
  color: #999;
  font-size: 81.25%;
  line-height: 1.3;
}

/* Image alignment */
.aligncenter figure img {
  margin-left: auto;
  margin-right: auto;
}
.aligncenter figcaption {
  text-align: center;
}
.alignright figure img {
  margin-left: auto;
  margin-right: 0;
}


/* Separators */
hr {
  color: white;
  background-color: transparent;
  height: 1px;
  border-width: 0;
  border-top: 1px solid var(--color-borders);
  margin: 1.7em 0;
  padding: 0;
  overflow: hidden;
}


/* Headings */
h1 {
  margin: 0 0 0.6em;
  padding: 0;
  color: var(--color-orange);
  font: 300 2.9375em/1.1 var(--font-family-heading);
}

@media (max-width: 667px) {
  h1 {
    font-size: 268.75%;
  }
}


#header h2,
footer h2,
.sidebar h2 { /* Page shell */
  margin: 0 0 0.3em;
  padding: 0;
  color: #2c3a3e;
  font: 400 1.375em/1.2 var(--font-family-heading);
}

h2 { /* Within content area */
  margin: 0 0 0.9em;
  color: black;
  font: 600 1.75em/1.3 var(--font-family-text);
}
.view > .view-content .views-row h2 { /* Within lists */
  font-size: 1.25em;
}

h3,
h4,
h5,
h6 {
  margin: 0;
  padding: 0;
  color: black;
  font: 600 1em/1.3 var(--font-family-text);
}
h3 {
  margin-bottom: 0.9em;
  font-size: 1.125em; /* 18px */
}
h4 {
  margin-bottom: 0.7em;
  font-size: 1.0625em; /* 17px */
}
h5 {
  margin-bottom: 0.7em;
}
h6 {
  margin-bottom: 0.2em;
}


/* Above heading tag */
.tag {
  margin: 0 0 0.1em !important;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.2em;
}


/* Heading-adjacent links */
.heading-columns {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  align-items: center;
  align-content: flex-start;
  margin-bottom: 1rem;
}
.heading-columns img {
  vertical-align: middle;
}
.heading-columns h2 {
  word-break: break-word;
}
.heading-columns > *,
body.no-sidebars main .heading-columns p,
body.cke_editable .heading-columns p {
  max-width: none;
  margin: 0 0 0.4rem;
}
.heading-columns > *:first-child {
  margin-right: 1.2rem;
}


/* Lists */
ul,
.block ul,
ul.menu,
.item-list ul {
  margin: 0 0 1.7rem;
  padding: 0;
  list-style: none;
}
ul > li,
ul.menu > li,
ul > li.leaf,
.item-list ul > li {
  margin: 0 0 0.6em;
  padding: 0 0 0 38px;
  background: url("../images/list-arrow@2x.png") no-repeat 2px 0.3em;
  background-size: 21px auto;
  list-style: none;
}

ul > li.icon-calendar {
  background-image: url("../images/calendar-star-solid.svg");
  background-position: 2px 0;
  background-size: 20px auto;
}

ul.contextual-links > li {
  margin: 0;
  padding: 0;
}

ul ul {
  margin-left: 38px;
}

ul.links.inline > li {
  background: none;
}


ol {
  margin: 0 0 1.7rem 2.5em;
  padding-left: 0;
}
ol > li {
  margin-bottom: 0.5em;
  background-image: none;
}

dl {
  margin: 0 0 1.7rem;
}
dt {
  display: block;
  margin: 1em 0 0;
  padding: 0;
  font-weight: 600;
}
dd {
  margin: 0.1em 0 0;
  padding: 0;
}


/* Inline data grid (> mobile) */
@media (min-width: 480px) {
  dl.grid {
    display: inline-grid;
    grid-template-columns: auto auto;
    grid-gap: 1em 1.2em;
  }
  dl.grid > dt,
  dl.grid > dd {
    margin: 0;
  }
}


/* Tables */
table {
  width: 100%;
  max-width: 100% !important;
  margin: 0 0 1.7rem;
  border: none;
  border-spacing: 0;
  border-collapse: collapse;
}

@media (max-width: 1000px) {
  /* Prevent table blowout */
  table {
    max-width: 100% !important;
    max-height: none;
  }
}

table > caption {
  margin-bottom: 0.3em;
  font-size: 106.25%;
  font-weight: bold;
  text-align: left;
}

table thead,
table tbody,
table tr {
  border: none;
}
table tr th {
  background: var(--color-boxes) none;
  padding: 0.6em 0.7em;
  border: 1px solid var(--color-borders);
  color: var(--color-dark-blue);
  font-weight: bold;
  text-align: left;
}

table tbody tr th, table tr td {
  vertical-align: top;
}
table tr td {
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--color-borders);
  text-align: left;
}

table tr td > *:last-child, table tr th > *:last-child /* Reduce bottom margins */ {
  margin-bottom: 0;
}


/* Forms */
form {
  margin: 0;
  padding: 0;
}
input,
select,
textarea {
  font: 1em/1.3 var(--font-family-text);
  vertical-align: middle;
}
textarea {
  width: 99%;
  font: normal 100%/1.3 var(--font-family-text);
}
label {
  vertical-align: middle;
}

input.form-text,
textarea.form-textarea {
  margin: 0;
  padding: 4px 8px;
  border: 1px solid #d4d7d7;
  border-radius: 3px;
}
form.one-line input.form-text {
  border-radius: 3px 0 0 3px;
}
input.form-text.default {
  font-style: italic;
  color: #777;
}

.form-item input.form-text.error,
.form-item textarea.form-textarea.error {
  border: 1px solid red;
}

/* Buttons */
input.form-submit,
input[type="submit"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  display: inline-block;
  margin-bottom: 1em;
  margin-right: 0.6em;
  padding: 10px 20px;
  border: none;
  background-color: var(--color-orange);
  text-align: center;
  color: white;
  cursor: pointer;
  font: 400 100%/1.3 var(--font-family-button);
  text-transform: uppercase;
}
input.form-submit:hover,
input[type="submit"]:hover {
  background-color: #e54a01;
  text-decoration: none;
}

input.form-submit[disabled],
input[type="submit"][disabled] {
  opacity: 0.75;
}
input.form-submit[disabled]:hover,
input[type="submit"][disabled]:hover {
  background-color: var(--color-orange);
}

.webform-client-form .form-actions {
  margin-top: 1.5em;
  padding-top: 1.3em;
  border-top: 1px solid var(--color-borders);
}

@media (max-width: 1000px) {
  /* Prevent iframe blowout */
  iframe {
    max-width: 100% !important;
  }
}



/* ---------------- Layout ---------------- */

.hide,
.hide * {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.clear {
  clear: both;
}

@media (max-width: 667px) {
  /* Hide from mobile */
  .hide-mobile {
    display: none;
  }
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--color-background);
}

/* Content width container */
.container {
  width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 1000px) {
  .container {
    width: auto;
    margin-left: 0;
    margin-right: 0;
    padding-left: 25px;
    padding-right: 25px;
  }
}

/* Full-width sections */
.edges {
  position: relative;
  margin-left: calc(-100vw / 2 + var(--content-width) / 2);
  margin-right: calc(-100vw / 2 + var(--content-width) / 2);
  margin-top: 3rem;
  margin-bottom: 3rem;
  padding: 3rem 0;
  background-color: var(--color-background);
  color: var(--color-text);
}

@media (max-width: 1000px) {
  .edges {
    margin-left: -25px;
    margin-right: -25px;
  }
  body.cke_editable .edges { /* CKEditor */
    margin-left: -10px;
    margin-right: -10px;
  }
}

.edges + .edges { /* Collapse multiples */
  margin-top: -3rem;
}
.edges > .container > *:last-child { /* Reduce bottom padding */
  margin-bottom: 0;
}
.field-name-body .field-item > .edges:last-child { /* Bump against footer */
  margin-bottom: 0;
}
.edges img { /* Prevent image blowouts */
  max-width: 100%;
  height: auto;
}
.edges div,
.edges p,
.edges h2,
.edges h3,
.edges h4,
.edges h5,
.edges h6,
.edges ol,
.edges ul,
.edges dl,
.edges figcaption {
  color: var(--color-text);
}

/* Colors */
.edges.orange {
  --color-background: var(--color-orange);
  --color-text: white;
  --color-link: white;
  --color-link-visited: white;
  --color-link-hover: white;
  --color-boxes: rgba(0, 0, 0, 0.2);
}
.edges.darkorange {
  --color-background: var(--color-dark-orange);
  --color-text: white;
  --color-link: white;
  --color-link-visited: white;
  --color-link-hover: white;
  --color-boxes: rgba(0, 0, 0, 0.2);
}
.edges.blue {
  --color-background: var(--color-blue);
  --color-text: white;
  --color-link: white;
  --color-link-visited: white;
  --color-link-hover: white;
  --color-boxes: rgba(0, 0, 0, 0.2);
}
.edges.darkblue {
  --color-background: var(--color-dark-blue);
  --color-text: white;
  --color-link: white;
  --color-link-visited: white;
  --color-link-hover: white;
  --color-boxes: rgba(255, 255, 255, 0.15);
}

.edges.orange a,
.edges.darkorange a,
.edges.blue a,
.edges.darkblue a {
  text-decoration: underline;
}
.edges.orange a:hover,
.edges.darkorange a:hover,
.edges.blue a:hover,
.edges.darkblue a:hover {
  text-decoration: none;
}

.edges.orange a.action,
.edges.darkorange a.action,
.edges.blue a.action,
.edges.darkblue a.action {
  border-color: white;
  background-color: rgba(255, 255, 255, 0.03);
  color: white;
  text-decoration: none;
}
.edges.orange a.action:hover,
.edges.darkorange a.action:hover,
.edges.blue a.action:hover,
.edges.darkblue a.action:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

.edges.darkblue.photo-organize { /* With photo */
  background: linear-gradient(to right, rgba(34, 41, 75, 0.9), rgba(34, 41, 75, 0.96)),
              url("/sites/default/files/images/back-cnc.jpg");
  background-size: cover;
}

/* Gradient gray->white */
.edges.gradient {
  background: linear-gradient(to bottom, var(--color-boxes), rgba(255, 255, 255, 0));
}


/* Reduce line length on full-width pages */
body.no-sidebars main .limit-width,
body.no-sidebars main p,
body.no-sidebars main h3,
body.no-sidebars main h4,
body.no-sidebars main h5,
body.no-sidebars main h6,
body.cke_editable .limit-width,
body.cke_editable p,
body.cke_editable h3,
body.cke_editable h4,
body.cke_editable h5,
body.cke_editable h6 {
  max-width: 54.6rem; /* Aligns with ul markers on desktop sizes */
  margin-left: auto;
  margin-right: auto;
}

/* Override length limits */
body.no-sidebars main .no-indent {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}



/* ----- Header ----- */

#header {
  padding: 33px 0 23px;
}

#logo,
h1#logo {
  position: relative;
  z-index: 5;
  float: left;
  margin: 0;
  padding: 0;
}
#logo img {
  display: block;
  width: 200px !important;
  height: 60px !important;
}

.region-header {
  float: right;
  margin-top: 4px;
}

@media (max-width: 667px) {
  /* Switch to mobile menu */
  #header .region-header {
    display: none;
  }
}


/* Auxiliary menu */
.region-header #block-menu-menu-auxiliary {
  display: inline-block;
  vertical-align: middle;
}

.region-header #block-menu-menu-auxiliary .content ul.menu {
  margin: 0 22px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
  text-align: right;
}
.region-header #block-menu-menu-auxiliary .content ul.menu li {
  display: inline-block;
  margin: 0 0.7em 0 0;
  padding: 0;
  list-style: none;
  background: none;
  white-space: nowrap;
  line-height: 1.3;
}
.region-header #block-menu-menu-auxiliary .content ul.menu li.last {
  margin: 0;
}

.region-header #block-menu-menu-auxiliary .content ul.menu li::after {
  content: "•";
  display: inline-block;
  margin-left: 0.7em;
  color: #9b9a91;
}
.region-header #block-menu-menu-auxiliary .content ul.menu li.last::after {
  content: none;
  margin-left: 0;
}

.region-header #block-menu-menu-auxiliary .content ul.menu li a {
  color: var(--color-blue);
}
/* No separate visited state */
.region-header #block-menu-menu-auxiliary .content ul.menu li a:hover,
.region-header #block-menu-menu-auxiliary .content ul.menu li a.active {
  color: #006586;
  text-decoration: none;
}

@media (max-width: 940px) {
  /* Wrap third link */
  .region-header #block-menu-menu-auxiliary .content ul.menu li:not(.first):not(.last) {
    margin-right: 0;
  }
  .region-header #block-menu-menu-auxiliary .content ul.menu li:not(.first):not(.last)::after {
    content: none;
  }
  .region-header #block-menu-menu-auxiliary .content ul.menu li.last {
    display: block;
  }
}


/* Search form */
.region-header #block-search-form {
  display: inline-block;
  vertical-align: middle;
  border: 2px solid var(--color-borders);
}
.region-header #block-search-form:hover {
  border-color: hsl(52, 6%, 55%);
}

.region-header #block-search-form .content form .form-text {
  display: inline-block;
  width: 171px;
  min-height: 22px;
  margin: 0;
  padding: 10px 12px;
  border: none;
  color: hsl(52, 6%, 35%);
}

/* Placeholder text color */
.region-header #block-search-form .content form .form-text::-webkit-input-placeholder,
.region-header #block-search-form .content form .form-text::-moz-placeholder,
.region-header #block-search-form .content form .form-text::-ms-input-placeholder,
.region-header #block-search-form .content form .form-text::placeholder-shown {
  color: hsl(52, 6%, 56%);
  opacity: 1;
}

.region-header #block-search-form .content form .form-submit {
  width: 22px;
  height: 22px;
  margin: 0 8px;
  padding: 0;
  border: none;
  border-radius: 0;
  text-indent: -9999px;
  overflow: hidden;
  box-shadow: none;
  background: transparent url("../images/icon-search@2x.png") no-repeat center top;
  background-size: 22px auto;
}


/* Language switcher (push to top corner) */
.region-header .block-locale {
  margin: -2rem 0 0.62rem;
  text-align: right;
  font-size: 0.875rem;
}
#mobile-menu .sidr-class-block-locale { /* Mobile menu */
  margin: 2rem 0 1.5rem;
}

/* Hide heading */
.region-header .block-locale > h2,
#mobile-menu .sidr-class-block-locale > h2 {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.region-header ul.language-switcher-locale-url,
#mobile-menu ul.sidr-class-language-switcher-locale-url {
  margin: 0;
}
.region-header ul.language-switcher-locale-url > li,
#mobile-menu ul.sidr-class-language-switcher-locale-url > li {
  display: inline-block;
  margin: 0;
  padding: 0;
  list-style: none;
  background: none;
  line-height: 1.1;
}
.region-header ul.language-switcher-locale-url > li + li,
#mobile-menu ul.sidr-class-language-switcher-locale-url > li + li {
  margin-left: 1.5em;
}

#mobile-menu ul.sidr-class-language-switcher-locale-url > li > a {
  color: white;
}
.region-header ul.language-switcher-locale-url > li > a:hover {
  text-decoration: none;
}
.region-header ul.language-switcher-locale-url > li.active a {
  color: #4b4a41;
  font-weight: 600;
  padding-left: 1.3em;
  background: url("../images/icon-world.svg") no-repeat 0 50%;
  background-size: 12px auto;
}
#mobile-menu ul.sidr-class-language-switcher-locale-url > li.sidr-class-active > a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  padding-left: 1.3em;
  background: url("../images/icon-world-white.svg") no-repeat 0 50%;
  background-size: 12px auto;
}


/* ----- Main menu ----- */

#main-menu {
  clear: both;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 80;
  background-color: var(--color-dark-blue);
  color: white;
}

.admin-menu #main-menu {
  /* Position below admin menu */
  top: 30px;
}

@media (max-width: 667px) {
  /* Switch to mobile menu */
  #main-menu {
    display: none;
  }
}

@media (max-width: 1000px) {
  /* Remove edge padding */
  #main-menu > .container {
    padding-left: 0;
    padding-right: 0;
  }
}

#main-menu ul.menu {
  display: flex;
  flex-flow: row nowrap;
  margin: 0;
  padding: 0;
  list-style: none;
}
#main-menu ul.menu::after { /* Remove clear fix */
  content: none;
  display: none;
}

#main-menu ul.menu > li {
  flex-grow: 1;
  position: relative;
  vertical-align: middle;
  margin: 0;
  padding: 0;
  border: none;
  background: var(--color-dark-blue) none;
  list-style: none;
  line-height: 1.2;
}
#main-menu ul.menu > li.active-trail,
#main-menu ul.menu > li.active {
  background-color: var(--color-blue);
}

#main-menu ul.menu > li > a {
  position: relative;
  display: block;
  padding: 18px 0;
  border-left: 1px solid rgba(255, 255, 255, 0.19);
  text-align: center;
  font: 400 125%/1.2 var(--font-family-heading);
  color: white;
  white-space: nowrap;
  text-transform: uppercase;
}

#main-menu ul.menu > li:hover > a,
#main-menu ul.menu > li:focus-within > a {
  z-index: 4;
  margin-right: -1px;
  border-right: 1px solid rgba(255, 255, 255, 0.19);
  background-color: #0a6a8c;
  color: white;
  text-decoration: none;
}
#main-menu ul.menu > li > a.active-trail,
#main-menu ul.menu > li > a.active {
  z-index: 2;
  margin-right: -1px;
  border-right: 1px solid rgba(255, 255, 255, 0.19);
  background-color: var(--color-blue);
  color: white;
}

/* About link spacing */
#main-menu ul.menu > li.first > a {
  padding-left: 4px;
  padding-right: 4px;
}

/* Donate link color */
#main-menu ul.menu > li:last-child {
  background-color: var(--color-orange);
}
#main-menu ul.menu > li:last-child > a:hover,
#main-menu ul.menu > li:last-child > a:focus-within {
  background-color: var(--color-dark-orange);
  margin-right: 0;
  border-right: none;
}

/* Nested flyout menu */
#main-menu ul.menu > li > ul.menu {
  display: none;
  position: absolute;
  left: 0;
  z-index: 50;
  min-width: 12em;
  margin: 0;
  padding: 0;
  border: none;
  border: 1px solid #2e9fbb;
  background-color: #0a6a8c;
}
#main-menu ul.menu > li:hover > ul.menu,
#main-menu ul.menu > li:focus-within > ul.menu {
  display: block;
}

#main-menu ul.menu > li > ul.menu > li {
  display: block;
  border: none;
  background-color: #0a6a8c;
  line-height: 1.1;
}
#main-menu ul.menu > li > ul.menu > li > a {
  position: static;
  padding: 12px 40px 12px 25px;
  border: none;
  font: normal 100%/1.2 var(--font-family-text);
  text-align: left;
  white-space: nowrap;
  text-transform: none;
}

#main-menu ul.menu > li > ul.menu > li > a:hover,
#main-menu ul.menu > li > ul.menu > li > a:focus-within,
#main-menu ul.menu > li > ul.menu > li > a.active-trail,
#main-menu ul.menu > li > ul.menu > li > a.active {
  margin-right: 0;
  border: none;
  background-color: var(--color-blue);
}

/* Hide third-level menu */
#main-menu ul.menu > li > ul.menu > li > ul.menu {
  display: none;
}


/* ----------------- Content area ------------------ */

#content-wrapper {
  margin: 2.5em 0 3em;
}

/* With left sidebar */
body.one-sidebar.sidebar-first #content-innerwrapper {
  margin-left: 236px;
}
body.one-sidebar.sidebar-first #content {
  float: right;
  width: 100%;
}
body.one-sidebar.sidebar-first #sidebar-first {
  float: left;
  width: 200px;
  margin-left: -236px;
}


@media (max-width: 667px) {
  #content-wrapper {
    margin-bottom: 0.5em;
  }
  body.one-sidebar.sidebar-first #content-innerwrapper {
    margin-left: 0;
  }
  body.one-sidebar.sidebar-first #content {
    float: none;
    width: auto;
  }
  body.one-sidebar.sidebar-first #sidebar-first {
    float: none;
    width: auto;
    margin-top: 1.5em;
    margin-left: 0;
  }
}


/* Landing page banner title */
#section-title {
  margin: 0 0 -0.5em;
  background-color: var(--color-blue);
  background-image: url("../images/title-banner-logo.png");
  background-repeat: no-repeat;
  background-position: bottom right;
  background-size: 147px auto;
}

#section-title .container /* Contain contextual links */ {
  position: relative;
  z-index: 1;
}
#section-title h1 {
  margin: 0;
  padding: 44px 0;
  color: white;
}


/* ------- System tabs ------- */

.tabs {
  margin: 0 0 2rem;
}
.tabs > ul {
  display: flex;
  flex-flow: row wrap;
  justify-content: flex-start;
  align-items: flex-end;
  align-content: flex-start;
  margin: 0 0 1.3em;
  padding: 0 1em;
  border: none;
  border-bottom: 2px solid #e7e6e1;
}

@media (max-width: 667px) {
  .tabs > ul {
    padding: 0 0 0 0.4em;
    font-size: 93.75%;
  }
}

.tabs > ul > li {
  margin: 0 0.5em 0 0;
  padding: 0;
  border: none;
  background: none;
  list-style: none
}

.tabs > ul > li > a {
  display: block;
  margin: 0;
  padding: 0 10px;
  background-color: #e7e6e1;
  border: 2px solid #e7e6e1;
  border-bottom: none;
  border-radius: 3px 3px 0 0;
  line-height: 1.7;
  color: var(--color-dark-blue);
}
  .tabs > ul > li > a:hover {
    background-color: var(--color-boxes);
    border-color: #e7e6e1;
  }
  .tabs > ul > li.active a {
    position: relative;
    top: 2px;
    z-index: 50;
    background-color: white;
    border: 2px solid #e7e6e1;
    border-bottom: none;
    font-weight: 600;
  }

.tabs > ul.secondary {
  padding: 0 1em 0 2em;
  font-size: 87.5%;
}


/* ----- Messages ----- */

#messages {
  margin: 0 auto;
  padding: 0 0 1.2rem;
}
div.messages {
  margin: 1rem 0 1.2rem;
  border-radius: 3px;
  background-position: 13px 0.7em;
}

div.messages.error * {
  color: #8c2e0b;
}

div.messages ul:not(.krumo-node) {
  margin: 0;
}
div.messages ul:not(.krumo-node) > li {
  margin: 0 0 0.4em;
  padding-left: 0;
  background-image: none;
  list-style: none;
}
div.messages ul:not(.krumo-node) > li:last-child {
  margin-bottom: 0;
}


/* Help */
.region-help {
  margin-bottom: 1.5em;
  padding: 1.5em;
  border: 1px solid #d3d7d9;
}

/* Nodes */
.node-unpublished {
  margin: -20px -15px 0;
  padding: 20px 15px 0;
}


/* Responsive video iframes */
.video-wrapper {
  width: 100%;
  max-width: 45rem;
  position: relative;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3.6rem;
  padding: 0;
}
.video-wrapper::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(0, 134, 168);
  background: linear-gradient(0deg, rgba(0, 134, 168, 1) 0%, rgba(255, 99, 25, 1) 100%);
  transform-origin: center;
  transform: rotate(-3deg) translate(5px, 5px) scale(1.01);
}
.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 5px solid white;
}


/* YouTube video modal (class added by script) */
a.modal-video-player {
  display: grid; /* To overlay play button */
  grid-template-columns: 1fr;
  place-items: center;
}
a.modal-video-player > img {
  display: block;
  grid-area: 1 / 1 / 1 / 1;
}

a.modal-video-player::after /* Play icon */ {
  content: "";
  grid-area: 1 / 1 / 1 / 1;
  display: block;
  width: 64px;
  height: 45px;
  background: url("../images/icon-youtube-play.png") no-repeat 50% 50%;
  background-size: 64px auto;
  pointer-events: none;

  /* Mimic YouTube's own play button animation */
  will-change: opacity;
  opacity: 0.7;
  filter: grayscale(1) contrast(220%);
  transition: opacity 0.2s cubic-bezier(0, 0, 0.2, 1),
              filter 0.2s cubic-bezier(0.4, 0, 1, 1);
}
a.modal-video-player:hover::after {
  opacity: 1;
  filter: grayscale(0) contrast(100%);
}

/* Video thumbnail (align this because linked grid cannot float) */
ul.thumbnails a.modal-video-player {
  display: grid;
  float: left;
  max-width: 144px;
  height: auto !important;
  margin: 0.3em 0 0 -168px;
}
ul.thumbnails a.modal-video-player > img {
  display: block;
  float: none;
  margin: 0;
}

@media (max-width: 1000px) {
  /* Reduce image width */
  ul.thumbnails a.modal-video-player {
    max-width: 124px !important;
    margin-left: -148px;
  }
}

@media (max-width: 410px) {
  /* Remove wrapping at small mobile */
  ul.thumbnails a.modal-video-player {
    float: none;
    width: 80vw;
    max-width: 240px !important;
    margin: 0 auto 1em;
  }
}



/* Homepage */
#home-about {
  margin-bottom: 2em;
  padding-bottom: 1em;
  border-bottom: 1px solid var(--color-borders);
}



/* ----- Mini language switcher ----- */

ul.language-switcher {
  margin: 0 0 2rem;
  display: flex;
  flex-flow: row wrap;
  justify-content: flex-start;
  gap: 1em 1.2em;
}
ul.language-switcher > li {
  margin: 0;
  padding: 0;
  list-style: none;
  background: none;
  line-height: 1.1;
}
ul.language-switcher a {
  background-color: #ececea;
  padding: 0.3em 1em;
  border-radius: 1em;
}
ul.language-switcher a:hover {
  text-decoration: none;
  color: #000;
}

/* Current language */
ul.language-switcher a[aria-current="page"] {
  font-weight: 600;
  padding-left: 2.2em;
  background: #007a99 url("../images/icon-world-white.svg") no-repeat 0.9em 50%;
  color: white;
  background-size: 0.9em auto;
}


/* ----- Content layout options ----- */

/* --- Thumbnail columns (small left thumbnail image) --- */
ul.thumbnails {
  margin: 0 0 1.7em;
  padding: 0;
  list-style: none;
}
ul.thumbnails > li {
  clear: both;
  margin: 0 0 1.7em;
  padding: 0 0 1.7em 168px;
  list-style: none;
  background: url("../images/hr-dotted.png") repeat-x 0 100%;
  background-size: auto 1px;
}

/* Clear after floats */
ul.thumbnails > li::after {
  content: "";
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
}
ul.thumbnails > li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  background: none;
}
ul.thumbnails > li > *:last-child {
  margin-bottom: 0;
}

/* Photos */
ul.thumbnails img,
ul.thumbnails video {
  float: left;
  max-width: 144px !important;
  height: auto !important;
  margin: 0.3em 0 0 -168px;
}

/* Photos with captions */
ul.thumbnails figure {
  float: left;
  width: 144px;
  margin: 0.3em 0 0 -168px;
}
ul.thumbnails figure img {
  display: block;
  float: none;
  margin: 0;
}
ul.thumbnails figure figcaption {
  display: block;
  background-color: #f3f3f1;
  margin: 0;
  padding: 14px 10px;
  text-align: left;
  font: normal 12px/1.5 var(--font-family-text);
  color: #666;
}

/* Improve touch targets */
ul.thumbnails p a.more {
  display: inline-block;
  padding: 0.1em 0;
}

/* Separate adjacent links */
ul.thumbnails p a.more + br + a.more {
  margin-top: 0.3em;
}


@media (max-width: 1000px) {
  /* Reduce image width */
  ul.thumbnails > li {
    padding-left: 148px;
  }
  ul.thumbnails > li img,
  ul.thumbnails > li video,
  ul.thumbnails > li figure {
    max-width: 124px !important;
    margin-left: -148px;
  }
  ul.thumbnails > li figure img,
  ul.thumbnails > li figure video {
    margin-left: 0;
  }
}

@media (max-width: 410px) {
  /* Remove wrapping at small mobile */
  ul.thumbnails > li {
    padding-left: 0;
  }
  ul.thumbnails > li img,
  ul.thumbnails > li video,
  ul.thumbnails > li figure {
    display: block;
    float: none;
    width: 80vw;
    max-width: 240px !important;
    margin: 0 auto 1em;
  }
  ul.thumbnails > li figure img,
  ul.thumbnails > li figure video {
    margin-bottom: 0;
  }
}


/* --- Featured columns (large thumbnail;
  50/50 split) --- */
ul.featured-thumbnails {
  margin: 0 0 1.8em;
  padding: 0;
  list-style: none;
}
ul.featured-thumbnails > li {
  clear: both;
  margin: 0 0 1.8em;
  padding: 0 0 1.7em 53%;
  list-style: none;
  background: url("../images/hr-dotted.png") repeat-x 0 100%;
  background-size: auto 1px;
}

/* Clear after floats */
ul.featured-thumbnails > li::after {
  content: "";
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
}
ul.featured-thumbnails > li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  background: none;
}

ul.featured-thumbnails > li p {
  margin-bottom: 1.2em;
  font-size: 112.5%;
  font-weight: 600;
  line-height: 1.6;
}

ul.featured-thumbnails > li > *:last-child {
  margin-bottom: 0;
}

/* Photos */
ul.featured-thumbnails > li img {
  float: left;
  width: 100%;
  height: auto !important;
  margin: 0.3em 0 0 -112%;
}

/* Photos with captions */
ul.featured-thumbnails > li figure {
  float: left;
  width: 100%;
  margin: 0.3em 0 0 -112%;
}
ul.featured-thumbnails > li figure img {
  display: block;
  float: none;
  margin: 0;
}
ul.featured-thumbnails > li figure figcaption {
  display: block;
  background-color: #f3f3f1;
  margin: 0;
  padding: 14px 10px;
  text-align: left;
  font: normal 12px/1.5 var(--font-family-text);
  color: #666;
}

/* CKEditor fix */
ul.thumbnails .cke_widget_wrapper img.cke_widget_drag_handler,
ul.featured-thumbnails .cke_widget_wrapper img.cke_widget_drag_handler {
  float: none;
  margin: 0;
  width: 15px !important;
  height: 15px !important;
  max-width: none;
  display: inline-block;
}

ul.thumbnails .cke_widget_image.cke_widget_wrapper > a,
ul.featured-thumbnails .cke_widget_image.cke_widget_wrapper,
ul.featured-thumbnails .cke_widget_image.cke_widget_wrapper > a {
  display: inline;
}

ul.thumbnails h2,
ul.featured-thumbnails h2 {
  font-size: 1.25em;
}

@media (max-width: 1000px) {
  ul.featured-thumbnails > li {
    padding-left: 0;
  }
  ul.featured-thumbnails > li img,
  ul.featured-thumbnails > li video,
  ul.featured-thumbnails > li figure {
    float: none;
    max-width: none !important;
    margin: 0 0 1.2em;
  }
}



/* ----- Alternate featured (side) image ----- */

.featured-image {
  margin: 0 auto 2.5rem;
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  align-items: flex-start;
}
.featured-image .content > *:last-child { /* Collapse bottom padding */
  margin-bottom: 0;
}

.featured-image > .image {
  order: -1;
  margin-right: 2.75rem;
  flex-shrink: 0;
  flex-basis: 38%;
}
.featured-image > .image.right { /* Switch sides */
  order: 1;
  margin-left: 2.75rem;
  margin-right: 0;
}
.featured-image > .image img,
.featured-image > .image video {
  display: block;
  max-width: 100%;
  height: auto;
}

@media screen and (max-width: 740px) {
  .featured-image {
    flex-flow: column nowrap;
    align-items: center;
  }
  .featured-image > .content {
    margin-bottom: 2.5rem;
  }
  .featured-image > .image,
  .featured-image > .image.right { /* Wrap image below */
    order: 1;
    margin: 0;
    max-width: none;
    text-align: center;
  }
}



/* --- Boxes --- */
.box {
  margin: 0 0 1.7rem;
  padding: 2.25rem;
  background-color: var(--color-boxes);
  border-radius: 3px;
}
.box > *:last-child,
.box > *:last-child > *:last-child,
.box > *:last-child > *:last-child > *:last-child {
  /* Remove bottom margins */
  margin-bottom: 0;
}

.box.small {
  font-size: 87.5%;
}
.box.small h3,
.box.small h4 {
  margin-bottom: 0.4em;
}
.box.small p {
  margin-bottom: 0.6em;
  line-height: 1.6;
}

.box .box {
  background-color: var(--color-background);
}


/* --- Icons list box --- */
ul.icons {
  margin: 0 0 1.7em;
  padding: 42px 36px;
  background-color: var(--color-boxes);
  border-radius: 3px;
}
.box ul.icons {
  /* Within box */
  background-color: var(--color-background);
}

ul.icons > li {
  min-height: 44px;
  margin: 0 0 2em;
  padding: 0 0 0 50px;
  background: url("../images/list-doc.png") no-repeat 0 3px;
  line-height: 1.6;
}
ul.icons > li:last-child {
  /* Remove bottom margin */
  margin-bottom: 0;
}

ul.icons > li {
  background-image: url("../images/list-doc@2x.png");
  background-size: 36px auto;
}
ul.icons > li.pdf {
  background-image: url("../images/list-doc-pdf@2x.png");
}
ul.icons > li.excel,
ul.icons > li.xls {
  background-image: url("../images/list-doc-excel@2x.png");
}
ul.icons > li.powerpoint,
ul.icons > li.ppt {
  background-image: url("../images/list-doc-powerpoint@2x.png");
}
ul.icons > li.word,
ul.icons > li.doc
{ background-image: url("../images/list-doc-word@2x.png");
}
ul.icons > li.video {
  background-image: url("../images/list-doc-video@2x.png");
}
ul.icons > li.image,
ul.icons > li.jpg,
ul.icons > li.png,
ul.icons > li.gif {
  background-image: url("../images/list-doc-image@2x.png");
}
ul.icons > li.text,
ul.icons > li.txt {
  background-image: url("../images/list-doc-text@2x.png");
}
ul.icons > li.email {
  background-image: url("../images/list-email@2x.png");
  background-size: 34px auto;
}
ul.icons > li.telephone {
  background-image: url("../images/list-telephone@2x.png");
  background-size: 33px auto;
}


/* --- Image gallery lists --- */

ul.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  grid-gap: 1.5rem;
  justify-items: center;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}
ul.gallery > li {
  margin: 0;
  padding: 0;
  background: none;
  list-style: none;
  text-align: center;
}

ul.gallery > li figure {
  margin: 0;
}
ul.gallery > li img {
  display: block;
  max-width: 100%;
  height: auto;
  will-change: transform;
  transition: transform 0.3s ease-in-out;
}
ul.gallery > li img:hover {
  transform: scale(1.06);
}
@media (prefers-reduced-motion: reduce) {
  ul.gallery > li img:hover {
    transform: none;
    outline: 2px solid var(--color-blue);
  }
}


/* --- Content columns --- */

.columns {
  clear: both;
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  gap: 2rem 2.5rem;
  margin: 0 0 2rem;
}
.columns > * {
  flex: 1 1 0px;
  min-width: 250px;
  min-width: min(250px, 100%);
}

/* Remove bottom margin */
.columns > * > *:last-child,
.columns > * > *:last-child > *:last-child {
  margin-bottom: 0;
}

.columns img {
  max-width: 100%;
  height: auto;
}

/* Condense nested elements */
.columns .box {
  padding: 1.5rem;
}
.columns ul.icons {
  padding: 1.875rem 1.5rem;
}


/* Sponsor logo columns */
.logo-columns {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin: 0 0 2rem;
  padding: 0;
  background-image: none;
  list-tyle: none;
}
.logo-columns > * {
  flex: 1 1 0px;
  min-width: 220px;
  min-width: min(220px, 100%);
  margin: 0;
  padding: 0;
  background-image: none;
  list-tyle: none;
  text-align: center;
}


/* Video thumbnail columns */
.video-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 2rem 2.5rem;
  margin: 0 0 2rem;
}
.video-columns > * {
  /* Center when wrapping on tablet/mobile */
  margin: 0 auto;
  max-width: 77.8vw;
}

/* Remove bottom margin */
.video-columns > * > *:last-child,
.video-columns > * > *:last-child > *:last-child {
  margin-bottom: 0;
}

.video-columns img {
  max-width: 100%;
  height: auto;
}

.video-columns figcaption {
  margin: 0.5em 0 0;
  text-align: left;
  font-size: var(--font-size-content);
  color: var(--color-text);
}


/* Column lists */
ul.columns {
  display: block;
  column-count: 2;
  column-gap: 52px;
}
ul.columns > li {
  overflow: hidden;
  -moz-column-break-inside: avoid;
  -webkit-column-break-inside: avoid;
  break-inside: avoid;
  margin: 0 0 0.6em;
  padding: 0 0 0 38px;
}

@media (max-width: 1000px) {
  ul.columns {
    column-count: auto;
  }
}


/* --- [Old] Content hortizontal tabs --- */

ul.tabbox {
  margin: 0 0 2rem;
  padding: 0;
}
ul.tabbox > li {
  margin: 0;
  padding: 0;
  background-image: none;
  list-style: none;
}

/* Tab bar */
ul.tabbar {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  margin: 0 0 0.25em;
  padding: 0 0.4em;
  border-bottom: 2px solid #e7e6e1;
  list-style: none;
}
ul.tabbar > li {
  margin: 0;
  padding: 0 0.3em;
  background-image: none;
  list-style: none;
}
ul.tabbar > li > a {
  display: inline-block;
  margin-top: 0.2em;
  padding: 0.35em 0.75em;
  background-color: #e7e6e1;
  font-weight: 600;
  border: 2px solid #e7e6e1;
  border-bottom: none;
  border-radius: 3px 3px 0 0;
  line-height: 1.7;
  color: #42496b;
}
ul.tabbar > li > a:hover {
  background-color: var(--color-boxes);
  border-color: #e7e6e1;
  text-decoration: none;
}

/* Active tab */
ul.tabbar > li.active > a {
  background-color: white;
  border: 2px solid #e7e6e1;
  color: var(--color-dark-blue);
  border-bottom: none;
}


/* --- Bottom related sections --- */

.field-name-field-related-sections {
  clear: both;
  margin-top: 2.6rem;
  border-top: 1px solid var(--color-borders);
}

@media (max-width: 667px) {
  .field-name-field-related-sections {
    margin-bottom: 3rem;
  }
}

.field-name-field-related-sections > .field-items {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  align-items: stretch;
}
.field-name-field-related-sections > .field-items > .field-item {
  flex-basis: calc(50% - 45px);
  padding: 2.6rem 44px 0;
  border-left: 1px solid var(--color-borders);
}

.field-name-field-related-sections > .field-items > .field-item:first-child {
  padding-left: 0;
  border-left: none;
}
.field-name-field-related-sections > .field-items > .field-item:last-child {
  padding-right: 0;
}

@media (max-width: 790px) {
  .field-name-field-related-sections > .field-items > .field-item {
    flex: 1 0 100%;
    border-left: none;
    border-bottom: 1px solid var(--color-borders);
    margin: 0;
    padding: 1.8rem 0;
  }
  .field-name-field-related-sections > .field-items > .field-item:last-child {
    border-bottom: none;
  }
  .field-name-field-related-sections > .field-items a.action {
    display: block;
  }
}


#content .field-name-field-related-sections h2 {
  margin-bottom: 0.5em;
  font: 400 137.5%/1.3 var(--font-family-heading);
  color: var(--color-dark-blue);
  text-transform: uppercase;
}
#content .field-name-field-related-sections h2 a {
  color: var(--color-dark-blue);
}

#content .field-name-field-related-sections h2 i { /* Icon */
  display: inline-block;
  margin-top: -10px;
  margin-right: 0.35em;
  font-size: 159%;
  color: var(--color-orange);
  vertical-align: top;
}
#content .field-name-field-related-sections p {
  line-height: 1.4;
}



/* ------------------ Sidebars ------------------ */

/* ----- Left sidebar ----- */

#sidebar-first {
  margin-top: 0.375rem;
}

#sidebar-first .block {
  margin: 0 0 2.2rem;
  padding: 24px 16px 26px 22px;
  border: 1px solid var(--color-borders);
  border-radius: 3px;
}

#sidebar-first .block > h2 {
  margin: 0 0 0.6em;
  color: var(--color-dark-blue);
  text-transform: uppercase;
}
#sidebar-first .block .content p {
  line-height: 1.3;
}

#sidebar-first .block .content a.action,
#sidebar-first .block .content a.action-donate /* Make action buttons stretch */ {
  display: block;
  margin-right: 6px;
}

#sidebar-first .block .content > *:last-child,
#sidebar-first .block .content > ul:last-child > li:last-child /* Remove bottom padding */ {
  margin-bottom: 0;
}


/* --- Subnavigation --- */

#sidebar-first .block-menu-block {
  background-color: var(--color-boxes);
  padding: 9px 0 14px;
  border: none;
}

#sidebar-first .block-menu-block > h2 {
  margin: 0;
  padding: 12px 21px 15px;
}
#sidebar-first .block-menu-block > h2 a:hover,
#sidebar-first .block-menu-block > h2 a.active {
  color: var(--color-dark-blue);
  text-decoration: none;
}

#sidebar-first .block-menu-block .content ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
#sidebar-first .block-menu-block .content ul > li {
  margin: 0;
  padding: 0;
  list-style: none;
  background: none;
  line-height: 1.2;
}

#sidebar-first .block-menu-block .content ul > li > a {
  display: block;
  padding: 8px 8px 8px 21px;
}

#sidebar-first .block-menu-block .content ul > li > a:hover {
  color: var(--color-dark-blue);
  text-decoration: none;
}
#sidebar-first .block-menu-block .content ul > li > a.active,
#sidebar-first .block-menu-block .content ul > li > a.active-trail {
  background-color: #e7e6e1;
  color: var(--color-dark-blue);
}

/* Take Action menu */
#sidebar-first .block-menu-block .content ul > li.menu-mlid-994 > a,
#sidebar-first .block-menu-block .content ul > li.menu-mlid-994 ~ li > a {
  padding-left: 16px;
  font-size: 0.9375em;
}


/* --- Other blocks --- */

#block-block-6  /* Stay informed */ {
  background: url("../images/block-stayinformed-back@2x.png") no-repeat 0 14px;
  background-size: 86px auto;
}
#block-block-7  /* Donate */ {
  background: url("../images/block-donate-back@2x.png") no-repeat 0 0;
  background-size: 64px auto;
}

@media (max-width: 667px) {
  /* Hide two sidebar blocks on mobile (content already exists in top footer) */
  .sidebar #block-block-6,
  .sidebar #block-block-7 {
    display: none;
  }
}



/* ------------------ Footers ------------------ */

footer {
  clear: both;
}

/* Footer actions (top) */
.footer-actions {
  padding: 2.6rem 0;
  background-color: var(--color-blue);
  background-image: url("../images/title-banner-logo.png");
  background-repeat: no-repeat;
  background-position: bottom right;
  background-size: 147px auto;
  color: white;
}

.footer-actions .region {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 2.6rem 2rem;
}
.footer-actions .region > * {
  max-width: calc(100vw - 50px);
}

.footer-actions .block h2 {
  margin-bottom: 0.6em;
  color: rgba(255, 255, 255, 0.92);
  text-transform: uppercase;
}
.footer-actions .block .content p {
  line-height: 1.6;
}
.footer-actions .block .content > *:last-child {
  margin-bottom: 0;
}

.footer-actions .block .content a.action {
  border-color: white;
  background-color: rgba(255, 255, 255, 0.02);
  color: white;
}
.footer-actions .block .content a.action:hover {
  background-color: rgba(255, 255, 255, 0.09);
}
.footer-actions .block .content a.action-donate {
  border: 1px solid white;
}

@media (max-width: 500px) {
  .footer-actions .block .content a.action,
  .footer-actions .block .content a.action-donate {
    display: block;
  }
}


/* Footer links (middle) */
.footer-links {
  background-color: var(--color-dark-blue);
  padding: 3.2rem 0;
}
.footer-links .region {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  grid-gap: 2.4rem 2rem;
}

.footer-links .block .content {
  color: white;
}
.footer-links .block h2 {
  margin: 0 0 0.5em;
  color: var(--color-light-orange);
  text-transform: uppercase;
}
.footer-links .block h2 a {
  color: var(--color-light-orange);
}
.footer-links .block .content p {
  margin-bottom: 0;
  line-height: 1.7;
}
.footer-links .block .content a {
  display: inline-block;
  padding: 0.2em 0; /* Improve touch targets */
  margin-bottom: 0.4em;
  color: white;
  line-height: 1.2;
}

/* Social icons */
.footer-links #block-block-5 .content > p {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  margin-left: -0.4em;
}
.footer-links #block-block-5 .content a {
  margin: 0 0.4em;
  transition: opacity 0.15s ease-in;
}
.footer-links #block-block-5 .content a:hover {
  opacity: 0.6;
  text-decoration: none;
}

@media (max-width: 461px) {
  /* Single column grid  <  25px padding + 190px + 2rem gap (32px) + 190px + 25px padding = 462px */
  .footer-links .region .block {
    text-align: center;
  }
  .footer-links .region .block p {
    justify-content: center;
  }
  .footer-links #block-block-5 .content > p {
    margin-left: 0;
  }
}


/* Footer IDC link (bottom) */
.footer-bottom {
  padding: 1.4rem 0;
}
.footer-bottom .block .content {
  text-align: center;
  font-size: 0.875rem;
}
.footer-bottom .block .content p {
  margin-bottom: 0;
}
.footer-bottom .block .content img {
  margin-right: 6px;
  vertical-align: middle;
}

@media (max-width: 461px) {
  .footer-bottom .block .content {
    font-size: 0.75rem;
  }
  .footer-bottom .block .content img {
    display: block;
    margin: 0 auto 0.4em;
  }
}



/* -------------- Unique pages ------------- */

/* --- Take action social icons --- */
p.social-icons {
  margin-bottom: 0.1em;
  font-size: 500%;
  line-height: 1.5;
}
p.social-icons a:hover {
  text-decoration: none;
}


/* --- Committee list --- */
#node-4 .content p:not(.intro) {
  line-height: 1.5;
}



/* ----- Staff bio grid ----- */
/* Based on css-tricks.com/expandable-sections-within-a-css-grid */

.staff-grid {
  display: grid;
  grid-auto-flow: dense; /* Fills in holes earlier in the grid to expand bios */
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-gap: 1.5rem;
  align-items: stretch;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}
.staff-grid > * {
  background: none;
  margin: 0;
  padding: 0;
}

/* Undo <dt> bolding contextual links */
.staff-grid > dt .contextual-links {
  font-weight: 400;
}

/* Photos (dt) */
.staff-grid > dt {
  position: relative;
}
.staff-grid > dt[tabindex] {
  cursor: pointer;
}

/* Open/selected photo */
.staff-grid > dt[aria-expanded="true"] {
  /* Connect to bio */
  margin-bottom: -1.5rem;
  border-bottom: 1.5rem solid var(--color-dark-blue);
}

.staff-grid > dt figure {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  max-width: 100%;
}
.staff-grid > dt img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
  transition: transform 0.4s ease-in-out;
  transform-origin: 58% 30%;
}
.staff-grid > dt:hover img,
.staff-grid > dt:focus-within img,
.staff-grid > dt[aria-expanded="true"] img {
  transform: scale(1.06);
}
@media (prefers-reduced-motion: reduce) {
  .staff-grid > dt img {
    transition: none !important;
  }
}

/* Name and title */
.staff-grid > dt figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  width: calc(100% - 1.5rem);
  margin: 0;
  padding: 0.75rem;
  background-color: rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(1px);
  backdrop-filter: blur(1px);
  color: white;
  font-size: 1.2rem;
  text-align: right;
}
.staff-grid > dt:hover figcaption,
.staff-grid > dt:focus-within figcaption {
  background-color: hsla(229, 37%, 15%, 0.82);
}
.staff-grid > dt[aria-expanded="true"] figcaption {
  /* Open/selected */
  background-color: var(--color-dark-blue);
}

.staff-grid > dt figcaption .staff-name {
  display: block;
  font-weight: 600;
}
.staff-grid > dt figcaption .staff-title {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.9375rem;
}

/* Bio list items */
.staff-grid > dd {
  position: relative;
  top: -1px; /* Avoid browser rendering gaps */
  grid-column: 1 / -1; /* Full grid width */
  padding: 1.5rem;
  background-color: var(--color-dark-blue);
  color: white;
}
.staff-grid > dd[hidden] {
  /* Replace display: none to allow animations */
  display: block;
  position: absolute;
  visibility: hidden;
}

/* Animate text open reveal */
.staff-grid > dd > * {
  will-change: opacity, transform;
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.5s ease-out,
              opacity 0.5s ease-out;
}
.staff-grid > dd[hidden] > * {
  opacity: 0.1;
  transform: translateY(-0.6em);
}
@media (prefers-reduced-motion: reduce) {
  .staff-grid > dd > * {
    transition-duration: 0s;
  }
}

.staff-grid > dd,
.staff-grid > dd p {
  line-height: 1.5;
}

.staff-grid > dd > *:last-child {
  margin-bottom: 0; /* Collapse bottom margin */
}


/* ----- Staff nodes ----- */

.node-staff.node-full .field-name-field-staff-photo {
  float: right;
  margin: 0 0 1rem 2rem;
  max-width: 50%;
}

@media (max-width: 414px) {
  /* Single column */
  .node-staff.node-full .field-name-field-staff-photo {
    float: none;
    margin: 0 auto 0.8rem;
    max-width: none;
  }
}

.node-staff.node-full .field-name-field-staff-first h2 {
  margin-bottom: 0.2em;
  line-height: 1.2;
}

.node-staff.node-full .field-name-field-staff-title {
  margin-bottom: 0.9em;
  font-weight: bold;
  font-size: 1.2rem;
  line-height: 1.3;
}



/* -------- Homepage -------- */

body.front #content > .tabs /* Hide tabs */ {
  display: none;
}



/* ----- Carousel ----- */

#block-views-homepage-carousel-block {
  position: relative;
  width: auto;
  height: 425px; /* Fixed height for even slides */
  overflow: hidden;
  background-color: var(--color-dark-blue);
}

/* Hide overlapping block contextual links (node contextual links will still appear) */
#block-views-homepage-carousel-block > .contextual-links-wrapper {
  display: none;
}

/* Absolutely position each slide (transitions with innerfade by script) */
#block-views-homepage-carousel-block .view-content .views-row {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Hide all slides except first */
#block-views-homepage-carousel-block .view-content .views-row:not(.views-row-1) {
  display: none;
}

/* Stretch contents */
#block-views-homepage-carousel-block .view-content .views-row .node {
  height: 100%;
}


/* Background hero image */
#block-views-homepage-carousel-block .lead-hero {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#block-views-homepage-carousel-block .lead-hero div,
#block-views-homepage-carousel-block .lead-hero figure {
  height: 100%;
}
#block-views-homepage-carousel-block .lead-hero figure {
  display: block;
  margin: 0;
  max-width: none;
}
#block-views-homepage-carousel-block .lead-hero figure img {
  display: block;
  object-fit: cover;
  width: 100%;
  height: 100% !important;
}

/* Gradient cover */
#block-views-homepage-carousel-block .lead-hero figure::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;

  --slide-darken-position: calc((100vw - 950px) / 2 + 17vw);
  --slide-darken-stop-1: 40%;
  --slide-darken-stop-2: 65%;

  background:
    /* Darken behind words */
    radial-gradient(circle farthest-side at var(--slide-darken-position) 65%, rgba(0, 0, 20, 0.6) var(--slide-darken-stop-1), rgba(0, 0, 0, 0) var(--slide-darken-stop-2)),
    /* Darken left half */
    radial-gradient(circle farthest-side at 90% -5%, rgba(5, 5, 5, 0) 0%, rgba(0, 50, 80, 0.5) 85%),
    /* Red top-right */
    radial-gradient(ellipse farthest-side at 100% -15%, rgba(200, 0, 0, 0.5) 15%, rgba(255, 255, 255, 0) 80%),
    /* Teal top-left */
    radial-gradient(ellipse farthest-corner at 20% -15%, rgba(115, 255, 255, 0.75) 10%, rgba(255, 255, 255, 0) 40%);
}


/* Vertically center content block */
#block-views-homepage-carousel-block .view-content .views-row .node > .container {
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  height: 100%;
}
#block-views-homepage-carousel-block .view-content .views-row .node > .container > .content {
  position: relative;
  z-index: 10; /* Pull over hero image */
  width: 30rem;
  min-width: 400px;
  max-width: 80vw;
  min-height: 18.875rem; /* Approximately five lines of content */
  margin-left: 1.5rem;
}

/* Heading */
#block-views-homepage-carousel-block .view-content .views-row .node .content > h2 {
  margin: 0 0 1.3em;
  padding: 0 0 0.4em;
  border-bottom: 1px solid #88dcee;
  color: #88dcee;
  font: 400 1rem/1.3 var(--font-family-heading);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Body */
#block-views-homepage-carousel-block .view-content .views-row .field-name-body {
  margin-bottom: 1em;
  color: white;
  font: 300 1.6875rem/1.4 var(--font-family-heading);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}
#block-views-homepage-carousel-block .view-content .views-row .field-name-body p {
  margin: 0;
  line-height: 1.4;
}

/* Action button */
#block-views-homepage-carousel-block .view-content .views-row .field-name-field-homepage-lead-link a.action {
  padding: 0.6875em 1.1875em;
  border: none;
  background-color: white;
}


/* Carousel navigation/arrows */
#block-views-homepage-carousel-block .carousel-previous {
  display: block;
  position: absolute;
  z-index: 20;
  left: 5px;
  top: 172px;
  width: 50px;
  height: 81px;
  text-indent: -9999px;
  overflow: hidden;
  background: url("../images/carousel-left@2x.png") no-repeat -100px 0;
  background-size: 150px auto;
  opacity: 0.9;
}
#block-views-homepage-carousel-block .carousel-next {
  display: block;
  position: absolute;
  z-index: 20;
  right: 5px;
  top: 172px;
  width: 50px;
  height: 81px;
  text-indent: -9999px;
  overflow: hidden;
  background: url("../images/carousel-right@2x.png") no-repeat -100px 0;
  background-size: 150px auto;
  opacity: 0.9;
}
#block-views-homepage-carousel-block:hover .carousel-previous,
#block-views-homepage-carousel-block:hover .carousel-next {
  background-position: 0 0;
}
#block-views-homepage-carousel-block .carousel-previous:hover,
#block-views-homepage-carousel-block .carousel-next:hover {
  background-position: -50px 0;
}

/* Dot navigation */
#block-views-homepage-carousel-block .carousel-nav {
  position: absolute;
  z-index: 18;
  display: flex;
  flex-flow: row nowrap;
  justify-content: center;
  column-gap: 0.5rem;
  right: 15%;
  bottom: 70px;
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 1;
  opacity: 0.9;
}
#block-views-homepage-carousel-block .carousel-nav > li {
  margin: 0;
  padding: 0;
  list-style: none;
  background: none;
  line-height: 1;
}
#block-views-homepage-carousel-block .carousel-nav > li a {
  display: block;
  width: 2rem;
  height: 0.6rem;
  background-color: #88dcee;
  box-shadow: 1px 1px 0.1em rgba(0, 0, 0, 0.5);
  text-indent: -9999px;
  overflow: hidden;
}
#block-views-homepage-carousel-block .carousel-nav > li a.active {
  background-color: white;
}


/* Tablets */
@media (max-width: 1020px) {
  /* Reposition text background */
  #block-views-homepage-carousel-block .lead-hero figure::before {
    --slide-darken-position: 25vw;
    --slide-darken-stop-1: 50%;
    --slide-darken-stop-2: 90%;
  }

  /* Shift content away from left arrow */
  #block-views-homepage-carousel-block .view-content .views-row .node > .container > .content {
    margin-left: 2.5rem;
  }
  /* Shift dots */
  #block-views-homepage-carousel-block .carousel-nav {
    right: 7%;
    bottom: 40px;
    column-gap: 0.6rem;
  }
  #block-views-homepage-carousel-block .carousel-nav > li a {
    width: 2.2rem;
    height: 0.7rem;
  }

  #block-views-homepage-carousel-block .carousel-previous {
    background-position: 0 0;
  }
  #block-views-homepage-carousel-block .carousel-next {
    background-position: 0 0;
  }
}

@media (max-width: 740px) {
  /* Reposition text background */
  #block-views-homepage-carousel-block .lead-hero figure::before {
    --slide-darken-position: 30vw;
    --slide-darken-stop-1: 70%;
    --slide-darken-stop-2: 100%;
  }
  #block-views-homepage-carousel-block .view-content .views-row .node > .container > .content {
    min-width: 60vw;
  }
  #block-views-homepage-carousel-block .view-content .views-row .field-name-body {
    font-size: 1.5625rem;
  }
}

/* Mobile */
@media (max-width: 640px) {

  /* Darken entire hero */
  #block-views-homepage-carousel-block .lead-hero {
    filter: brightness(0.6);
  }
  #block-views-homepage-carousel-block .lead-hero figure::before {
    --slide-darken-position: 10vw;
    --slide-darken-stop-1: 20%;
    --slide-darken-stop-2: 60%;
  }

  /* Stretch content area */
  #block-views-homepage-carousel-block .view-content .views-row .node > .container {
    justify-content: flex-start;
    height: auto;
    padding-top: 2rem;
  }
  #block-views-homepage-carousel-block .view-content .views-row .node > .container > .content {
    width: auto;
    min-width: 0;
    min-height: 0;
    max-width: none;
    margin-left: 0;
  }
  #block-views-homepage-carousel-block .view-content .views-row .field-name-body {
    font-size: 1.5rem;
  }

  /* Move slide navigation to bottom */
  #block-views-homepage-carousel-block .carousel-previous {
    left: 0.5rem;
    top: auto;
    bottom: 0.8rem;
  }
  #block-views-homepage-carousel-block .carousel-next {
    right: 0.5rem;
    top: auto;
    bottom: 0.8rem;
  }
  #block-views-homepage-carousel-block .carousel-nav {
    right: auto;
    margin: 0 auto;
    width: 100%;
    text-align: center;
    bottom: 3rem;
  }
}

/* Small mobile */
@media (max-width: 500px) {
  #block-views-homepage-carousel-block .view-content .views-row .field-name-body {
    font-size: 1.2rem;
    font-size: clamp(18px, 5.4vw, 22px);
  }
}


/* Standalone carousel node */
.node-homepage-lead.node-full .container {
  width: auto;
}
.node-homepage-lead.node-full .lead-hero {
  margin-bottom: 1rem;
}
.node-homepage-lead.node-full .lead-hero img {
  width: 100%;
  height: auto !important;
}



/* ----- Homepage columns ----- */

#home-content {
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
}
#home-content > * {
  flex: 0 1 440px;
}

/* Vertical rule */
#home-content > *:first-child {
  padding-right: 33px;
  border-right: 1px solid var(--color-borders);
}

/* Push horizontal rules to center */
#home-content > *:first-child hr {
  margin: 2.2em -33px 2.2em 0;
}
#home-content > *:last-child hr {
  margin: 2.2em 0 2.2em -36px;
}

@media (max-width: 1000px) {
  /* Collapse columns for tablets */
  #home-content {
    flex-flow: row wrap;
  }
  #home-content > * {
    flex: 1 1 auto;
  }

  #home-content > *:first-child {
    margin-bottom: 2.2rem;
    padding-right: 0;
    padding-bottom: 2rem;
    border-right: none;
    border-bottom: 1px solid var(--color-borders)
  }
  #home-content > *:first-child hr,
  #home-content > *:last-child hr {
    margin: 2em 0;
  }
}

#home-content h2 {
  margin: 0 0 0.6em;
  padding: 0;
  color: #2c3a3e;
  font: 400 137.5%/1.2 var(--font-family-heading);
  text-transform: uppercase;
}
#home-content h2 i { /* Foundation icon */
  display: inline-block;
  margin-top: -10px;
  margin-right: 0.3em;
  font-size: 159%;
  color: var(--color-orange);
  vertical-align: top;
}
#home-content p,
#home-content li {
  line-height: 1.4;
}


/* Embedded column video */
#home-action .hero-video {
  margin: 0 0 2rem;
  text-align: center;
}
#home-action .hero-video video {
  max-width: 100%;
  height: auto;
}

/* DWN In Action list */
#home-action h2 {
  min-height: 26px;
  margin-bottom: 1.6em;
  padding-left: 33px;
  background: url("../images/icon-circles@2x.png") no-repeat 0 50%;
  background-size: 26px auto;
}

#home-action ul.thumbnails {
  margin-bottom: 0;
}
#home-action ul.thumbnails > li {
  margin-bottom: 1.2em;
  padding-bottom: 1.2em;
}
#home-action ul.thumbnails > li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}
#home-action ul.thumbnails > li > *:last-child { /* Remove bottom margin */
  margin-bottom: 0;
}

#home-action h3 {
  margin-bottom: 0.5em;
  font-size: 112.5%
}
#home-action h3 a:not(.modal-video-player) {
  display: block;
  color: black;
  word-break: break-word;
}


#home-action p {
  margin-bottom: 0.5em;
}
#home-action p img {
  max-width: 80%;
  height: auto;
}

@media (min-width: 668px) and (max-width: 1000px) {
  #home-action p img {
    max-width: 60% !important;
  }
}


/* Stay Informed box */
#home-signup .signup-columns {
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 2rem;
}
#home-signup h2 a {
  color: inherit;
}

#home-signup .signup-columns > *:first-child {
  margin: 0 1.8rem 0 0;
}
#home-signup .signup-columns > *:last-child {
  flex-shrink: 1;
  margin: 0;
}
#home-signup .signup-columns .action {
  white-space: nowrap;
}

/* Wrap columns on mobile */
@media (max-width: 413px) {
  #home-signup .signup-columns {
    display: block;
 }
  #home-signup .signup-columns > *:first-child {
    margin: 0 0 1.2rem;
 }
  #home-signup .signup-columns > *:last-child {
    text-align: center;
 }
  #home-signup .signup-columns .action {
    display: inline-block;
 }
}


/* Embedded Twitter timeline */
#home-tweets {
  margin-left: -13px; /* Align to widget */
}

#home-tweets .section-title {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 0.5rem 13px;
}

#home-tweets .section-title h2 {
  margin: 0 2rem 0.7rem 0;
}
#home-tweets .section-title h2 a {
  color: inherit;
}
#home-tweets .section-title a.more {
  margin: 0 0 0.7rem;
  font-size: 0.875rem;
}

@media (max-width: 1000px) {
  /* Prevent extra scrolling on mobile */
  #home-tweets iframe.twitter-timeline {
    max-height: 55vh;
  }
}



/* --------------- #CommunitiesNotCages page --------------- */

/* Prevent title wrapping */
@media (max-width: 420px) {
  .page-node-162 #section-title h1 {
    font-size: 2.25em; /* 36px */
  }
}

@media (max-width: 352px) {
  .page-node-162 #section-title h1 {
    font-size: 2em; /* 32px */
  }
}



/* --------------- Press room --------------- */

/* View */
.view-pressroom .view-content .views-row {
  margin: 0 0 1.7em;
  padding: 1.7em 0 0;
  border-top: 1px solid var(--color-borders);
}
.view-pressroom .view-content .views-row-first {
  padding-top: 0;
  border-top: none;
}

.view-pressroom .view-content h2 {
  margin-bottom: 0.1em;
}
.view-pressroom .view-content .field-name-field-release-date {
  margin-bottom: 1.4em;
}
.view-pressroom .view-content ul.inline,
.view-pressroom .view-content ul.inline > li {
  margin: 0;
  padding: 0;
}

/* Full nodes */
.node .field-name-field-release-date div {
  display: inline;
}

.node .field-name-field-release-subtitle {
  margin: 0 0 1.7em;
  text-align: center;
  font-style: italic;
}



/* --------------- Reports --------------- */

/* View */
.view-reports .view-content .views-row {
  margin: 0 0 1.7em;
  padding: 1.7em 0 0;
  border-top: 1px solid var(--color-borders);
}
.view-reports .view-content .views-row-first {
  padding-top: 0;
  border-top: none;
}

.view-reports .view-content h2 {
  margin-bottom: 0.1em;
}

.node-report .field-name-field-report-date {
  font-weight: 600;
  margin-bottom: 1.4em;
}

.node-report .field-name-field-report-coauthors {
  margin-bottom: 1.4em;
}
.node-report .field-name-field-report-coauthors .field-label {
  font-weight: normal;
}
.node-report .field-name-field-report-coauthors div {
  display: inline;
}

.node-report .field-name-field-report-date + .field-name-field-report-coauthors {
  margin-top: -1.4em;
}


.view-reports .view-content .views-row .field-name-body p:last-child /* Remove bottom padding */ {
  margin-bottom: 0;
}

/* Thumbnail image and text */
.view-reports .field-name-field-report-thumbnail {
  float: left;
  width: 142px;
  margin: 0 0 1em;
}
.view-reports .field-name-field-report-thumbnail img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--color-borders);
  border-radius: 3px;
}

.view-reports .field-name-field-report-thumbnail + .field-name-body {
  margin-left: 168px;
}

/* Nodes */
.node-report.node-full .field-name-field-report-thumbnail {
  float: right;
  width: 142px;
  margin: 0 0 1.2em 1.2em;
}
.node-report.node-full .field-name-field-report-thumbnail img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--color-borders);
  border-radius: 3px;
}
.node-report.node-full ul.icons {
  clear: both;
}

@media (max-width: 1000px) {
  .view-reports .field-name-field-report-thumbnail {
    float: right;
    margin: 0 0 1.2em 2em;
  }
  .view-reports .field-name-field-report-thumbnail + .field-name-body {
    margin-left: 0;
  }
}



/* --------------- Voices from Detention View --------------- */

/* Adapt thumbnail lists to show vidoes */
.view-voices .view-content .views-field-body-et .field-content > *:last-child,
.view-voices .view-content .views-field-body .field-content *:last-child { /* Reduce extra bottom spacing */
  margin-bottom: 0;
}

/* YouTube play button */
.view-voices .view-content .views-field-field-voices-media {
  position: relative;
  float: left;
  max-width: 144px !important;
  margin: 0.3em 0 0 -168px;
}

.view-voices .view-content .views-field-field-voices-media a {
  display: block;
}
.view-voices .view-content .views-field-field-voices-media a::after { /* YouTube icon */
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 64px;
  height: 45px;
  margin: -22px 0 0 -32px;
  opacity: 0.75;
  background: url("../images/icon-youtube-play.png") no-repeat 50% 50%;
  background-size: 64px auto;
  pointer-events: none;
}
.view-voices .view-content .views-field-field-voices-media a:hover::after {
  opacity: 1;
}
.view-voices .view-content .views-field-field-voices-media img {
  float: none;
  margin: 0;
}

@media (max-width: 1000px) {
  .view-voices .view-content .views-field-field-voices-media {
    max-width: 124px !important;
    margin-left: -148px;
  }
}

@media (max-width: 667px) {
  .view-voices .view-content .views-row {
    padding-left: 0;
  }
  .view-voices .view-content .views-field-field-voices-media {
    display: block;
    float: none;
    width: 80vw;
    max-width: 240px !important;
    margin: 0 auto 1.2rem;
  }
  .view-voices .view-content .views-field-field-voices-media img {
    max-width: 240px !important;
  }
}



/* --------------- Search Results ---------------- */

#search-form {
  max-width: 100%;
}
#search-form #edit-basic .form-text {
  max-width: 40%;
}
#search-form #edit-basic .form-submit {
  width: 22px;
  height: 22px;
  margin: 0 0 0 4px;
  padding: 0;
  border: none;
  border-radius: 0;
  text-indent: -9999px;
  overflow: hidden;
  box-shadow: none;
  background: transparent url("../images/icon-search@2x.png") no-repeat center top;
  background-size: 22px auto;
}

#search-form fieldset {
  clear: both;
  margin: 1.5em 0 2em;
}

#search-form + h2 {
  margin-bottom: 1.3em;
}

ol.search-results {
  margin: 0;
  padding: 0;
  border: none;
  list-style: none;
}
.search-results > li {
  clear: both;
  margin: 0 0 1.4em;
  border-bottom: 1px solid var(--color-borders);
  padding: 0 0 1.4em;
  list-style: none;
}

/* Clear after floats */
.search-results > li::after {
  content: "";
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
}

.search-results h3.title {
  margin-bottom: 0.5em;
  font-size: 112.5%;
}

.search-results .search-snippet-info {
  padding-left: 0;
}
.search-results .search-snippet-info > *:last-child {
  margin-bottom: 0; /* Reduce extra bottom spacing */
}

.search-results img.thumbnail {
  float: right;
  margin: 0 0 0 1em;
  width: 144px;
  height: auto;
}


/* -------------- Emma email signup form -------------- */

/* Hide logo */
.e2ma_signup_form .e2ma_signup_image_container {
  display: none;
}

/* Labels */
.e2ma_signup_form_label,
.e2ma_signup_form_group_label {
  display: block;
  font-weight: bold;
}
.e2ma_signup_form_required_asterix {
  color: var(--color-orange);
}

/* Fields */
.e2ma_signup_form input[type="text"],
.e2ma_signup_form textarea {
  width: 25em;
  max-width: 92%;
  margin: 0;
  padding: 4px 8px;
  border: 1px solid #d4d7d7;
  border-radius: 3px;
}

.e2ma_signup_form_row {
  margin-bottom: 1em;
  margin-top: 2px;
}

/* Radio buttons */
.e2ma_signup_form_element ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.e2ma_signup_form_element ul li {
  display: inline-block;
  margin: 0 1em 0 0;
  padding: 0;
  list-style: none;
  background: none;
}
.e2ma_signup_form_element ul li label {
  text-transform: capitalize;
  font-weight: normal;
}

/* Required note */
.e2ma_signup_form_required_footnote {
  margin: 1.5em 0 1.1em;
  font-size: 87.5%;
}

/* Action buttons */
.e2ma_signup_form_button_row #e2ma_signup_submit_button {
  display: inline-block;
  margin-bottom: 1em;
  margin-right: 0.6em;
  padding: 10px 20px;
  border: none;
  background-color: var(--color-orange);
  text-align: center;
  color: white;
  cursor: pointer;
  font: 400 100%/1.3 var(--font-family-button);
  text-transform: uppercase;
}
.e2ma_signup_form_button_row #e2ma_signup_submit_button:hover {
  background-color: #e54a01;
  text-decoration: none;
}

.e2ma_signup_form_button_row #e2ma_signup_reset_button {
  display: none;
}



/* -------------- Mobile slide-out menu (from Sidr plugin) -------------- */

/* Toggle */
#mobile-menu-toggle {
  display: none;
  float: right;
  text-align: center;
  cursor: pointer;
}
#mobile-menu-toggle:hover {
  text-decoration: none;
}

#mobile-menu-toggle i {
  display: block;
  font-size: 280%;
  line-height: 0.9;
}
#mobile-menu-toggle span {
  display: block;
  font: 400 81.25%/1.1 var(--font-family-button);
  text-transform: uppercase;
}

/* Slide out wrapper */
#mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: auto;
  right: -300px;
  height: 100%;
  z-index: 999999;
  width: 240px;
  max-width: 56%;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 42px 30px 20px;
  -webkit-overflow-scrolling: touch;
  background-color: var(--color-dark-blue);
  background-image: url("../images/mobile-menu-back.png");
  background-repeat: repeat-y;
  color: white;
}

/* Hidden elements */
#mobile-menu .sidr-class-element-invisible {
  position: absolute !important;
  clip: rect(1px 1px 1px 1px);
  clip: rect(1px, 1px, 1px, 1px);
  overflow: hidden;
  height: 1px;
}
#mobile-menu .sidr-class-contextual-links-wrapper {
  display: none;
}

/* Main menu */
#mobile-menu #sidr-id-main-menu-wrapper ul.sidr-class-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}
#mobile-menu #sidr-id-main-menu-wrapper ul.sidr-class-menu > li {
  display: block;
  margin: 0 0 1.1em;
  padding: 0;
  list-style: none;
  background: none;
}
#mobile-menu #sidr-id-main-menu-wrapper ul.sidr-class-menu > li > a {
  display: block;
  font: 400 125%/1.1 var(--font-family-button);
  color: white;
  text-transform: uppercase;
  cursor: pointer;
}

/* Donate button */
#mobile-menu #sidr-id-main-menu-wrapper ul.sidr-class-menu > li.sidr-class-last.sidr-class-leaf > a {
  padding: 14px;
  background-color: #fc642b;
}
#mobile-menu #sidr-id-main-menu-wrapper ul.sidr-class-menu > li.sidr-class-last.sidr-class-leaf > a:hover {
  background-color: var(--color-dark-orange);
  text-decoration: none;
}

/* Hide nested menu */
#mobile-menu #sidr-id-main-menu-wrapper ul.sidr-class-menu > li > ul.sidr-class-menu {
  display: none;
}


/* Aux nav */
#mobile-menu #sidr-id-block-menu-menu-auxiliary ul {
  margin: 1.5rem 0 1.9rem;
  padding: 0;
  list-style: none;
}
#mobile-menu #sidr-id-block-menu-menu-auxiliary ul > li {
  margin: 0 0 0.7em;
  padding: 0;
  background: none;
}
#mobile-menu #sidr-id-block-menu-menu-auxiliary ul > li > a {
  color: white;
}


/* Search form */
#mobile-menu #sidr-id-search-block-form {
  position: relative;
  margin-bottom: 5em;
  display: block;
  vertical-align: middle;
  border: 2px solid rgba(255, 255, 255, 0.4);
}
#mobile-menu #sidr-id-search-block-form:hover {
  border-color: white;
}

/* Clear after floats */
#mobile-menu #sidr-id-search-block-form::after {
  content: "";
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
}

#mobile-menu #sidr-id-search-block-form .sidr-class-container-inline div {
  margin: 0;
  display: inline;
}

#mobile-menu #sidr-id-search-block-form .sidr-class-form-text {
  float: left;
  width: 80%;
  max-width: 172px;
  min-height: 22px;
  margin: 0;
  padding: 10px 12px;
  border: none;
  background: transparent;
  color: white;
}

/* Placeholder text color */
#mobile-menu #sidr-id-search-block-form .sidr-class-form-text::-webkit-input-placeholder {
  color: white;
  opacity: 1;
}
#mobile-menu #sidr-id-search-block-form .sidr-class-form-text::-moz-placeholder {
  color: white;
  opacity: 1;
}
#mobile-menu #sidr-id-search-block-form .sidr-class-form-text::-ms-input-placeholder {
  color: white;
  opacity: 1;
}
#mobile-menu #sidr-id-search-block-form .sidr-class-form-text::placeholder-shown {
  color: white;
  opacity: 1;
}

#mobile-menu #sidr-id-search-block-form .sidr-class-form-submit {
  position: absolute;
  top: 0;
  right: 0;
  float: right;
  width: 22px;
  height: 22px;
  margin: 10px 8px;
  padding: 0;
  border: none;
  border-radius: 0;
  text-indent: -9999px;
  overflow: hidden;
  box-shadow: none;
  background: transparent url("../images/icon-search-white@2x.png") no-repeat center top;
  background-size: 22px auto;
  cursor: pointer;
}


/* Switch to mobile navigation */
@media (max-width: 840px) {

  /* Mobile slide-out menu */
  #mobile-menu, #mobile-menu-toggle {
    display: block;
  }

  #header {
    padding: 23px 0 16px;
    border-bottom: 15px solid #23294b;
  }
  #content-wrapper {
    margin-top: 1.5em;
  }

  #header .region-header, #main-menu {
    display: none;
  }

  #content-above {
    margin-bottom: 2.5em;
  }
}



/* -------------- Form Elements ------------- */

fieldset /* Offset the negative margin of legends */ {
  position: relative;
  top: 12px;
  margin-top: 0.8em;
  margin-bottom: 2.4em;
  padding: 0 0 10px;
  border: 1px solid #e5eaea;
  border-radius: 4px;
  background: white;
}
.fieldset-wrapper {
  margin-top: 25px;
}
.node-form .vertical-tabs .fieldset-wrapper {
  margin-top: 0;
}

fieldset.collapsed {
  background: transparent;
  border-radius: 0;
}
fieldset legend {
  display: block;
  position: absolute;
  top: -12px;
  left: -1px;
  width: 100%;
  height: 2em;
  padding: 0;
  border: 1px solid #e7e6e1;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  background: var(--color-boxes);
  color: black;
  font-weight: 600;
  line-height: 2;
  text-indent: 10px;
}
fieldset.collapsed legend {
  border-radius: 4px;
}
fieldset legend a,
fieldset legend a:link,
fieldset legend a:visited {
  color: var(--color-blue);
}
fieldset legend a:hover,
fieldset legend a:focus,
fieldset legend a:active {
  color: #006586;
}

fieldset .fieldset-wrapper {
  padding: 0.8em 10px 0;
}
fieldset .fieldset-description {
  margin-top: 5px;
  margin-bottom: 1em;
  line-height: 1.4;
  color: #3c3c3c;
  font-style: italic;
}

.password-suggestions ul li {
  margin-left: 1.2em;
}
.form-item {
  margin-bottom: 1em;
  margin-top: 2px;
}

.form-type-radio .description,
.form-type-checkbox .description {
  margin-left: 2px;
}
.form-actions {
  padding-top: 10px;
}


/* Disabled form elements */
input.form-button-disabled,
input.form-button-disabled:hover,
input.form-button-disabled:focus,
input.form-button-disabled:active,
.form-disabled input,
.form-disabled select,
.form-disabled textarea,
.form-select[disabled] {
  background: #ededed;
  border-color: #bbb;
  color: #717171;
}
.form-disabled .grippie {
  background-color: #ededed;
  border-color: #bbb;
}
.form-disabled label {
  color: #717171;
}

/* Animated throbber */
html.js input.form-autocomplete {
  background-position: 100% 4px;
}
html.js input.throbbing {
  background-position: 100% -16px;
}

.pager {
  font-size: 125%;
}

fieldset.webform-submission-info {
  padding-top: 30px
}


/* -------------- Shortcut Links -------------- */

.shortcut-wrapper { /* Same as usual h1#page-title margin */
  margin: 2.2em 0 1.1em;
}
.shortcut-wrapper h1#page-title {
  float: left;
  margin: 0;
}
div.add-or-remove-shortcuts {
  padding-top: 0.9em;
}


/* ---------- Admin-specific Theming ---------- */

/* Admin toolbar */
#toolbar ul li {
  background-image: none;
}

@media (max-width: 1000px) {
  /* Hide username to save horizontal space */
  #toolbar #toolbar-user .account {
    display: none;
  }
}

@media (max-width: 667px) {
  /* Old admin toolbar */
  #toolbar {
    display: none;
  }

  /* Admin menubar */
  #admin-menu .admin-menu-action,
  #admin-menu .admin-menu-account {
    display: none;
  }
  #admin-menu #admin-menu-menu {
    max-height: 2em;
    overflow: hidden;
  }
}

.ui-widget-overlay {
  background: #222;
  opacity: 0.7;
}

/* Hide navigation bars on admin pages */
body.page-node-edit #header,
body.page-node-add #header,
body.page-node-clone #header,
body.page-node-delete #header {
  border-bottom: 15px solid #23294b;
}

body.page-node-edit #header .region-header #block-menu-menu-auxiliary,
body.page-node-edit #main-menu,
body.page-node-add #header .region-header #block-menu-menu-auxiliary,
body.page-node-add #main-menu,
body.page-node-clone #header .region-header #block-menu-menu-auxiliary,
body.page-node-clone #main-menu,
body.page-node-delete #header .region-header #block-menu-menu-auxiliary,
body.page-node-delete #main-menu {
  display: none;
}


/* ----- CKEditor support ----- */

ul.cke_panel_list li {
  margin: 3px;
  padding: 0;
  background: none !important;
  font-size: 13px;
}
ul.cke_panel_list li div.box {
  padding: 4px;
}
ul.cke_panel_list li a * {
  margin: 0;
  padding: 0;
  border: none;
}

.cke_panel_block h1.cke_panel_grouptitle {
  font: bold 11px/1.1 var(--font-family-text);
}

/* Enhanced image captions */
.cke_editable ul.thumbnails span.cke_image_resizer_wrapper,
.cke_editable ul.thumbnails span.cke_widget_wrapper.cke_widget_inline {
  display: block;
}


/* ------------------ Contextual links ------------------ */

.contextual-links-wrapper {
  font-size: small !important;
}
ul.contextual-links {
  font-size: 12px;
}
ul.contextual-links li {
  background: none;
}
.contextual-links-wrapper a {
  text-shadow: 0 0 0 !important;
}


/* ---------- Overlay/Modal/Popup boxes ----------- */

/* Backdrop cover */
.overlay {
  position: fixed;
  z-index: 1000000;
  opacity: 1;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(1px);
  backdrop-filter: blur(1px);
  display: flex;
  flex-flow: row nowrap;
  justify-content: center;
  align-items: center;
  overflow-y: hidden;
}
@media (prefers-reduced-motion: no-preference) {
  .overlay {
    animation: overlay-fade 0.3s ease-out;
    transition: opacity 0.3s ease-out;
  }
}
@keyframes overlay-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Dialog area */
.overlay > .overlay-wrapper {
  width: 90vw;
  max-width: 920px;
  min-width: 50px;
  height: calc(100vh - 90px);
  max-height: 60vh;
  min-height: 100px;
  position: relative;
  background-color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 3px 15px 0 rgba(0, 0, 0, 0.4);
  will-change: transform;
  transform: translate(0, 0);
}
@media (prefers-reduced-motion: no-preference) {
  .overlay > .overlay-wrapper {
    animation: overlay-wrapper-appear 0.3s ease-out;
    transition: transform 0.3s ease-out;
  }
}
@keyframes overlay-wrapper-appear {
  from {
    transform: translate(0, 100px);
  }
  to {
    transform: translate(0, 0);
  }
}

@media (max-width: 1024px) {
  .overlay > .overlay-wrapper {
    max-height: 70vh;
  }
}
@media (max-width: 740px) {
  .overlay > .overlay-wrapper {
    max-height: 78vh;
  }
}

/* Closing animation */
.overlay.overlay-close {
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .overlay.overlay-close > .overlay-wrapper {
    transform: translate(0, 100px);
  }
}

/* Close button */
.overlay .overlay-close-button {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  display: inline-block;
  width: 32px;
  height: 32px;
  cursor: pointer;
  overflow: hidden;
  border: none;
  background: transparent;
  transform: translate(0, -32px); /* Top right */
}

@media (orientation: landscape) {
  /* Move close button to right on landscape browsers */
  .overlay .overlay-close-button {
    transform: translate(36px, 0);
  }
}

.overlay .overlay-close-button::before,
.overlay .overlay-close-button::after {
  content: "";
  position: absolute;
  height: 4px;
  width: 100%;
  top: 50%;
  left: 0;
  background: #b8b8b8;
  border-radius: 5px;
  margin-top: -6px;
}
@media (prefers-reduced-motion: no-preference) {
  .overlay .overlay-close-button::before,
  .overlay .overlay-close-button::after {
    transition: background-color 0.2s ease-out;
  }
}
.overlay .overlay-close-button::before {
  transform: rotate(45deg);
}
.overlay .overlay-close-button::after {
  transform: rotate(-45deg);
}

.overlay .overlay-close-button:hover::before,
.overlay .overlay-close-button:hover::after {
  background: white;
}

/* Animated loading icon */
.overlay .overlay-loading-spinner {
  position: absolute;
  z-index: 10;
  top: calc(50% - 0.5em);
  left: calc(50% - 0.5em); /* Center on content */
  font-size: 25px;
  width: 1em;
  height: 1em;
  border-radius: 50%;
  will-change: transform;
  transform: translateZ(0) scale(0.5);
}
@media (prefers-reduced-motion: no-preference) {
  .overlay .overlay-loading-spinner {
    animation: overlay-spinner 1.1s infinite linear;
  }
}
@keyframes overlay-spinner {
  0%, 100% {
    box-shadow: 0 -2.6em 0 0 var(--color-orange), 1.8em -1.8em 0 0 rgba(255, 255, 255, 0.2), 2.5em 0 0 0 rgba(255, 255, 255, 0.2), 1.75em 1.75em 0 0 rgba(255, 255, 255, 0.2), 0 2.5em 0 0 rgba(255, 255, 255, 0.2), -1.8em 1.8em 0 0 rgba(255, 255, 255, 0.2), -2.6em 0 0 0 rgba(255, 255, 255, 0.5), -1.8em -1.8em 0 0 rgba(255, 255, 255, 0.7);
  }
  12.5% {
    box-shadow: 0 -2.6em 0 0 rgba(255, 255, 255, 0.7), 1.8em -1.8em 0 0 var(--color-orange), 2.5em 0 0 0 rgba(255, 255, 255, 0.2), 1.75em 1.75em 0 0 rgba(255, 255, 255, 0.2), 0 2.5em 0 0 rgba(255, 255, 255, 0.2), -1.8em 1.8em 0 0 rgba(255, 255, 255, 0.2), -2.6em 0 0 0 rgba(255, 255, 255, 0.2), -1.8em -1.8em 0 0 rgba(255, 255, 255, 0.5);
  }
  25% {
    box-shadow: 0 -2.6em 0 0 rgba(255, 255, 255, 0.5), 1.8em -1.8em 0 0 rgba(255, 255, 255, 0.7), 2.5em 0 0 0 var(--color-orange), 1.75em 1.75em 0 0 rgba(255, 255, 255, 0.2), 0 2.5em 0 0 rgba(255, 255, 255, 0.2), -1.8em 1.8em 0 0 rgba(255, 255, 255, 0.2), -2.6em 0 0 0 rgba(255, 255, 255, 0.2), -1.8em -1.8em 0 0 rgba(255, 255, 255, 0.2);
  }
  37.5% {
    box-shadow: 0 -2.6em 0 0 rgba(255, 255, 255, 0.2), 1.8em -1.8em 0 0 rgba(255, 255, 255, 0.5), 2.5em 0 0 0 rgba(255, 255, 255, 0.7), 1.75em 1.75em 0 0 var(--color-orange), 0 2.5em 0 0 rgba(255, 255, 255, 0.2), -1.8em 1.8em 0 0 rgba(255, 255, 255, 0.2), -2.6em 0 0 0 rgba(255, 255, 255, 0.2), -1.8em -1.8em 0 0 rgba(255, 255, 255, 0.2);
  }
  50% {
    box-shadow: 0 -2.6em 0 0 rgba(255, 255, 255, 0.2), 1.8em -1.8em 0 0 rgba(255, 255, 255, 0.2), 2.5em 0 0 0 rgba(255, 255, 255, 0.5), 1.75em 1.75em 0 0 rgba(255, 255, 255, 0.7), 0 2.5em 0 0 var(--color-orange), -1.8em 1.8em 0 0 rgba(255, 255, 255, 0.2), -2.6em 0 0 0 rgba(255, 255, 255, 0.2), -1.8em -1.8em 0 0 rgba(255, 255, 255, 0.2);
  }
  62.5% {
    box-shadow: 0 -2.6em 0 0 rgba(255, 255, 255, 0.2), 1.8em -1.8em 0 0 rgba(255, 255, 255, 0.2), 2.5em 0 0 0 rgba(255, 255, 255, 0.2), 1.75em 1.75em 0 0 rgba(255, 255, 255, 0.5), 0 2.5em 0 0 rgba(255, 255, 255, 0.7), -1.8em 1.8em 0 0 var(--color-orange), -2.6em 0 0 0 rgba(255, 255, 255, 0.2), -1.8em -1.8em 0 0 rgba(255, 255, 255, 0.2);
  }
  75% {
    box-shadow: 0 -2.6em 0 0 rgba(255, 255, 255, 0.2), 1.8em -1.8em 0 0 rgba(255, 255, 255, 0.2), 2.5em 0 0 0 rgba(255, 255, 255, 0.2), 1.75em 1.75em 0 0 rgba(255, 255, 255, 0.2), 0 2.5em 0 0 rgba(255, 255, 255, 0.5), -1.8em 1.8em 0 0 rgba(255, 255, 255, 0.7), -2.6em 0 0 0 var(--color-orange), -1.8em -1.8em 0 0 rgba(255, 255, 255, 0.2);
  }
  87.5% {
    box-shadow: 0 -2.6em 0 0 rgba(255, 255, 255, 0.2), 1.8em -1.8em 0 0 rgba(255, 255, 255, 0.2), 2.5em 0 0 0 rgba(255, 255, 255, 0.2), 1.75em 1.75em 0 0 rgba(255, 255, 255, 0.2), 0 2.5em 0 0 rgba(255, 255, 255, 0.2), -1.8em 1.8em 0 0 rgba(255, 255, 255, 0.5), -2.6em 0 0 0 rgba(255, 255, 255, 0.7), -1.8em -1.8em 0 0 var(--color-orange);
  }
}


/* Inner wrapper */
.overlay .overlay-inner-wrapper {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Indent content area (loaded from AJAX) */
.overlay .overlay-content {
  position: relative;
  padding: 1.2rem;
}


/* Optional paginated questions */
.overlay .overlay-content .overlay-pages {
  display: flex;
  flex-flow: row nowrap;
  margin: -1.2rem;
  will-change: transform;
  transition: transform 0.75s ease-in-out;
}

.overlay .overlay-pages > * {
  position: relative;
  flex-grow: 1;
  flex-shrink: 0;
  width: calc(100% - 2.4rem);
  padding: 1.2rem;
  overflow: auto;
}
.overlay .overlay-pages > *:focus {
  outline: none;
}

/* Slide pages forward */
.overlay[data-overlay-page="2"] .overlay-pages {
  transform: translateX(-100%);
}
.overlay[data-overlay-page="3"] .overlay-pages {
  transform: translateX(-200%);
}
.overlay[data-overlay-page="4"] .overlay-pages {
  transform: translateX(-300%);
}


/* Stretch heading */
.overlay-heading {
  display: flex;
  flex-flow: row nowrap;
  justify-content: flex-start;
  align-items: center;
  background-color: var(--color-orange);
  background: conic-gradient(from -270deg at 20% -5%, var(--color-orange), var(--color-dark-orange));
  margin: -1.2rem -1.2rem 2rem;
  padding: 1.5rem 1.2rem;
  border-bottom: 0;
  color: white;
}
.overlay-subheading { /* Alternate gradient */
  background-color: var(--color-dark-orange);
  background: conic-gradient(from -270deg at 80% -5%, var(--color-dark-orange), var(--color-orange));
}

.overlay-heading h2 {
  flex-grow: 1;
  flex-shrink: 1;
  margin: 0;
  padding: 0;
  color: white;
  font: bold 1.3125rem/1.5 var(--font-family-text);
  text-align: center;
}

@media (max-width: 420px) {
  .overlay-heading h2 {
    font-size: 1.1875rem;
  }
}

/* Previous page button/arrow */
button.overlay-previous {
  flex-grow: 0;
  flex-shrink: 0;
  -webkit-appearance: none;
  appearance: none;
  width: 0;
  height: 0;
  margin: 0 0.8rem 0 -0.5rem;
  padding: 0;
  border-top: 0.8rem solid transparent;
  border-right: 0.9rem solid rgba(255, 255, 255, 0.7);
  border-bottom: 0.8rem solid transparent;
  border-left: none;
  background: transparent;
  color: white;
  text-indent: -9999px;
  cursor: pointer;
  transition: border-color 0.2s ease-out;
}
button.overlay-previous:hover {
  border-right-color: rgba(255, 255, 255, 1);
}

.overlay .overlay-content hr {
  border-top: 4px solid white;
}

/* Yes+No tabs */
.overlay .overlay-content .tablist {
  text-align: center;
}
.overlay .overlay-content .tablist a {
  margin: 0 1rem;
}
.overlay .overlay-content .tablist a[aria-selected="true"] { /* Same as donate button */
  background-color: var(--color-orange);
  color: white;
}


/* ----- Image-only overlays ----- */

.overlay.overlay-image > .overlay-wrapper {
  /* 2022 National Day of Action */
  background-color: #ff6318;

  /* Requires square image */
  height: min(620px, 88vw, 85vh);
  width: min(620px, 88vw, 85vh);
  min-width: 100px;
  min-height: 100px;
  max-width: none;
  max-height: none;
}
.overlay.overlay-image .overlay-inner-wrapper {
  /* No scrolling */
  overflow-y: hidden;
}
.overlay.overlay-image .overlay-content {
  padding: 0;
}

.overlay.overlay-image .overlay-content a {
  display: block;
}
.overlay.overlay-image .overlay-content img {
  display: block;
  width: 100%;
  height: auto !important;
  will-change: transform;
  transition: transform 0.2s ease-in, filter 0.2s ease-in;
}
.overlay.overlay-image .overlay-content img:hover {
  transform-origin: center;
  transform: scale(1.01);
  filter: brightness(1.05);
}



/* ---------- Development site left-rail marker ---------- */

@media (min-width: 1001px) {
  #dev-marker {
    position: fixed;
    z-index: 90;
    top: 0;
    left: 0;
    width: 18px;
    height: 100%;
    background: url("../images/banner-development@2x.png") repeat-y;
    background-size: 18px auto;
  }
}
