/**
 * Carnival News Releases — front end.
 *
 * Reproduces the presentation of the hosted Kaleidoscope press release widget
 * (fonts, colours, spacing, DataTables pagination) now that the listing is
 * rendered by WordPress instead of an iframe.
 */

.ccnr {
  --ccnr-blue: #003087;
  --ccnr-blue-dark: #002060;
  --ccnr-orange: #ff8300;
  --ccnr-border: #dddddd;
  --ccnr-text: #262626;
  --ccnr-muted: #707070;
  --ccnr-font: Tahoma, Arial, Helvetica, sans-serif;

  position: relative;
  font-family: var(--ccnr-font);
  font-size: 13px;
  font-weight: normal;
  line-height: 1.5;
  color: var(--ccnr-text);
}

.ccnr *,
.ccnr *::before,
.ccnr *::after {
  box-sizing: border-box;
}

/* ---------------------------------------------------------------- Controls */

.ccnr__controls {
  padding-left: 20px;
  margin-bottom: 30px;
  max-width: 370px;
}

.ccnr__search {
  display: flex;
  margin-bottom: 10px;
}

.ccnr .keyword-search-bar {
  width: 100%;
  height: 32px;
  margin: 0;
  padding: 0 8px;
  border: 2px solid var(--ccnr-blue);
  border-radius: 4px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ccnr-text);
  background-color: #fff;
  box-shadow: none;
}

.ccnr .keyword-search-bar:focus {
  outline: 2px solid var(--ccnr-blue);
  outline-offset: 1px;
}

.ccnr .keyword-search-button {
  height: 32px;
  width: 32px;
  align-self: flex-end;
  margin-left: 10px;
  padding: 0;
  background-color: #fff;
  border: 1px solid var(--ccnr-blue);
  border-radius: 4px;
  color: var(--ccnr-blue);
  font-family: inherit;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}

.ccnr .keyword-search-button:hover,
.ccnr .keyword-search-button:focus {
  background-color: var(--ccnr-blue);
  color: #fff;
}

.ccnr__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ccnr .ccnr__select {
  height: auto;
  background-color: #fff;
  border: solid 1px #8080805e;
  border-radius: 5px;
  padding: 5px 26px 5px 5px;
  font-family: inherit;
  font-size: 13px;
  color: var(--ccnr-text);
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23003087%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7em top 50%;
  background-size: 0.65em auto;
}

.ccnr .ccnr__select::-ms-expand {
  display: none;
}

.ccnr .ccnr__select--category {
  width: 230px;
}

.ccnr .ccnr__select--year {
  width: 110px;
}

/* ------------------------------------------------------------------- Rows */

.ccnr__body {
  transition: opacity 0.15s ease;
}

.ccnr__body[aria-busy="true"] {
  opacity: 0.45;
}

.ccnr__rows {
  border-collapse: collapse;
}

.ccnr__row {
  display: block;
  background-color: #fff;
  border: 1px solid var(--ccnr-border);
  padding: 8px;
  min-height: 100px;
}

.ccnr__row + .ccnr__row {
  margin-top: -1px;
}

.ccnr .row-container {
  padding: 1.5rem;
}

.ccnr .row-headline-link {
  text-decoration: none;
  display: inline-block;
}

.ccnr .row-headline {
  margin: 0 0 5px;
  padding: 0;
  color: var(--ccnr-blue);
  font-family: inherit;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  text-transform: none;
  letter-spacing: normal;
}

.ccnr .row-headline-link:hover .row-headline,
.ccnr .row-headline-link:focus .row-headline {
  text-decoration: underline;
}

.ccnr .row-date {
  margin: 0 0 5px;
  font-size: 15px;
  padding: 0;
  color: var(--ccnr-text);
}

.ccnr .row-text {
  margin: 0;
  padding: 0;
  font-size: 15px;
  color: var(--ccnr-muted);
}

.ccnr .no-data-message {
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  color: var(--ccnr-blue);
  margin-top: 50px;
  margin-bottom: 50px;
}

/* ------------------------------------------------------ Info + pagination */

.ccnr__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.ccnr .dataTables_info {
  padding-left: 20px;
  padding-top: 0.755em;
  font-size: 13px;
  color: var(--ccnr-text);
}

.ccnr .dataTables_paginate {
  text-align: right;
  padding-top: 0.25em;
}

.ccnr .paginate_button {
  box-sizing: border-box;
  display: inline-block;
  min-width: 1.5em;
  padding: 0.5em 1em;
  margin-left: 2px;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
  color: #333 !important;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 13px;
  line-height: 1.2;
}

.ccnr .paginate_button.current,
.ccnr .paginate_button.current:hover {
  color: #333 !important;
  border: 1px solid #979797;
  background-color: #fff;
  background: linear-gradient(to bottom, #fff 0%, #dcdcdc 100%);
}

.ccnr .paginate_button.disabled,
.ccnr .paginate_button.disabled:hover,
.ccnr .paginate_button.disabled:active {
  cursor: default;
  color: #666 !important;
  border: 1px solid transparent;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}

.ccnr .paginate_button:hover {
  color: #fff !important;
  border: 1px solid #111;
  background-color: #585858;
  background: linear-gradient(to bottom, #585858 0%, #111 100%);
}

.ccnr .paginate_button.ellipsis {
  padding: 0 1em;
  cursor: default;
  border: none;
  background: transparent;
}

.ccnr .paginate_button.ellipsis:hover {
  color: #333 !important;
  background: transparent;
}

/* ---------------------------------------------------------------- Footer */

.ccnr .kscope-footer {
  margin-top: 10px;
}

.ccnr .kscope-footer p {
  margin: 0;
  padding-left: 20px;
  font-size: 13px;
}

.ccnr .ks-pmstyle {
  color: var(--ccnr-orange);
  text-decoration: none;
  transition: color 0.3s;
}

.ccnr .ks-pmstyle:hover {
  color: var(--ccnr-blue);
  text-decoration: underline;
}

/* --------------------------------------------------------------- Loading */

.ccnr__loading {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.ccnr.is-loading .ccnr__loading {
  display: block;
}

.ccnr__loading span {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 3px;
  border-radius: 50%;
  background: var(--ccnr-blue);
  animation: ccnr-bounce 1.2s infinite ease-in-out both;
}

.ccnr__loading span:nth-child(1) {
  animation-delay: -0.24s;
}

.ccnr__loading span:nth-child(2) {
  animation-delay: -0.12s;
}

@keyframes ccnr-bounce {
  0%,
  80%,
  100% {
    transform: scale(0.6);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ------------------------------------------------------------ Article page */

article.ccnr-article {
  padding: 50px 0;
}

.ccnr-article-viewer {
  position: relative;
  margin: 0px;
}

.ccnr-article-viewer__frame {
  display: block;
  width: 100%;
  min-height: 400px;
  border: 0;
  overflow: hidden;
}

.ccnr-article__header {
  margin-bottom: 1.5rem;
}

.ccnr-article__title {
  color: #003087;
  margin: 0 0 0.5rem;
}

.ccnr-article__meta {
  font-family: Tahoma, Arial, Helvetica, sans-serif;
  font-size: 15px;
  color: #262626;
  margin: 0;
  padding: 0;
}

.ccnr-article__back {
  display: inline-block;
  margin-bottom: 1.25rem;
  font-family: Tahoma, Arial, Helvetica, sans-serif;
  font-size: 14px;
  color: #003087;
  text-decoration: none;
}

.ccnr-article__back:hover,
.ccnr-article__back:focus {
  text-decoration: underline;
}

.ccnr-article__body {
  font-family: Tahoma, Arial, Helvetica, sans-serif;
  font-size: 15px;
  color: #262626;
  line-height: 1.6;
}

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

.ccnr-article__body a {
  color: #003087;
}

.ccnr-article__error {
  font-family: Tahoma, Arial, Helvetica, sans-serif;
  color: #262626;
}

/* ------------------------------------------------------------- Responsive */

@media (max-width: 768px) {
  .ccnr .row-headline {
    font-size: 15px;
  }

  .ccnr .row-date {
    font-size: 13px;
  }

  .ccnr .row-text {
    font-size: 12px;
  }

  .ccnr__foot {
    justify-content: center;
    text-align: center;
  }

  .ccnr .dataTables_info,
  .ccnr .dataTables_paginate {
    text-align: center;
    width: 100%;
    padding-left: 0;
    margin-top: 10px;
  }

  .ccnr .paginate_button {
    font-size: 12px;
    padding: 0.5em 0.7em;
  }

  .ccnr .kscope-footer {
    padding-top: 20px;
    text-align: center;
  }

  .ccnr .kscope-footer p {
    padding-left: 0;
  }

  .ccnr__controls {
    padding-left: 0;
    max-width: 100%;
  }

  .ccnr .ccnr__select--category,
  .ccnr .ccnr__select--year {
    width: 100%;
  }
}
