
/* ========================================================================
   Breadcrumbs - à la Design System
   ======================================================================== */
   
.toolbar ol.breadcrumb {
  color: #aaa;
  padding: 10px 16px;
  list-style: none;
}

.toolbar ol.breadcrumb li {
  display: inline;
  font-size: 18px;
}

.toolbar ol.breadcrumb li + li:before {
  padding: 8px;
  color: black;
  content: ">";
}

.toolbar ol.breadcrumb li a {
  color: #06c;
  text-decoration: underline;
}

.toolbar ol.breadcrumb li a:hover {
  color: #00478f;
  text-decoration: underline;
}

.toolbar .breadcrumb a {
  font-size: 16px;
}

.toolbar .breadcrumb .active a,
.toolbar .breadcrumb a.active {
  font-weight: normal;
}

/* ========================================================================
   Text Inputs - Design System
   ======================================================================== */

.ontario-input:focus,
.ontario-input:active {
  box-shadow: 0 0 0 4px #009adb;
  outline: 4px solid transparent;
  transition: box-shadow 0.1s ease-in-out;
}

.ontario-input {
  border: 2px solid #cccccc;
  border-radius: 4px;
  box-sizing: border-box;
  color: #1a1a1a;
  display: block;
  font-size: 24px;
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.5;
  margin: 0 0 2.5rem;
  max-width: 48rem;
  width: 100%;
  padding: 0.625rem 1rem;
  transition: box-shadow 0.1s ease-in-out;
}

.ontario-form-group:last-of-type {
  margin-bottom: 3rem;
}

.ontario-form-group:last-of-type .ontario-checkboxes,
.ontario-form-group:last-of-type .ontario-radios {
  margin-bottom: 0;
}

/* ========================================================================
   Buttons - Design System
   ======================================================================== */
.ontario-button:focus,
.ontario-button:active {
  box-shadow: 0 0 0 4px #009adb;
  outline: 4px solid transparent;
  transition: box-shadow 0.1s ease-in-out;
}

.ontario-button {
  border: none;
  border-radius: 4px;
  box-sizing: border-box;
  box-shadow: none;
  display: inline-block;
  font-size: 1.125rem;
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 600;
  line-height: 1.5555555556;
  margin: 0 calc(1rem + 0.75rem) 1.5rem 0;
  min-width: 10rem;
  padding: 0.625rem 1.5rem;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

@media screen and (max-width: 40em) {
  .ontario-button {
    margin-right: 0;
    display: block;
    width: 100%;
  }
}

.ontario-button .ontario-icon {
  margin-right: 4px;
}

/* color changed from design system #3c7fa3*/
.ontario-button--primary {
  background-color: #357018;
  color: #fff;
}

.ontario-button--primary:hover {
  background-color: #0C2C41;
  color: #fff;
}

.ontario-button--primary:focus {
  background-color: #0C2C41;
  color: #fff;
  transition: background-color 0.2s ease-out, box-shadow 0.1s ease-in-out;
}

.ontario-button--primary:active {
  background-color: #002142;
  color: #fff;
  transition: background-color 0s, box-shadow 0.1s ease-in-out;
}

.ontario-button--primary:visited {
  color: #fff;
}

.ontario-button--secondary {
  background-color: #fff;
  border: 2px solid #357018;
  color: #357018;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.ontario-button--secondary:hover {
  background-color: #e0f0ff;
  border-color: #0C2C41;
  color: #0C2C41;
}

.ontario-button--secondary:focus {
  background-color: #e0f0ff;
  border-color: #0C2C41;
  color: #0C2C41;
  transition: background-color 0.2s ease-out, box-shadow 0.1s ease-in-out;
}

.ontario-button--secondary:active {
  background-color: #c2e0ff;
  border-color: #002142;
  color: #002142;
  transition: background-color 0s, box-shadow 0.1s ease-in-out;
}

.ontario-button--secondary:visited {
  color: #3c7fa3;
}

.ontario-button--tertiary {
  background-color: transparent;
  color: #081626;
  text-decoration: underline;
}

.ontario-button--tertiary:hover {
  background-color: #e8e8e8;
  color: #00478f;
  text-decoration: underline;
}

.ontario-button--tertiary:focus {
  background-color: #e8e8e8;
  color: #00478f;
  text-decoration: underline;
  transition: background-color 0.2s ease-out, box-shadow 0.1s ease-in-out;
}

.ontario-button--tertiary:active {
  background-color: #d1d1d1;
  color: #002142;
  text-decoration: underline;
  transition: background-color 0s, box-shadow 0.1s ease-in-out;
}

.ontario-button--tertiary:visited {
  color: #3c7fa3;
}

/* ========================================================================
    Search - Design System
    ======================================================================== */
.ontario-search-container {
  position: relative;
  margin-bottom: 20px;
  /* makes the grey box wider below input text bar */
}

@media screen and (min-width: 73em) {
  .ontario-search-container {
    display: flex;
  }
}

.ontario-search-input.ontario-input:invalid + input[type="reset"] {
  display: none;
}

.ontario-search-input.ontario-input:focus ~ .ontario-search-submit {
  background-color: #06c;
  color: #fff;
}

.ontario-search-input.ontario-input:focus ~ .ontario-search-submit:hover {
  background-color: #00478f;
  color: #fff;
}

.ontario-search-input.ontario-input::-ms-clear {
  display: none;
  width: 0;
  height: 0;
}

.ontario-search-input.ontario-input:invalid:focus {
  box-shadow: 0 0 0 4px #009adb;
  -moz-box-shadow: none;
}

.ontario-search-input.ontario-input:invalid:not(:focus) {
  box-shadow: none;
  -moz-box-shadow: none;
}

@media screen and (min-width: 40em) and (max-width: 73em) {
  .ontario-search-input.ontario-input {
    padding-left: 1rem;
    padding-right: 6.4rem;
  }
}

.ontario-search-submit {
  /* Changed from Design System */
  border: 2px solid #cccccc;
  border-radius: 0 3px 3px 0;
  /* Changed from Design System */
  background-color: #f2f2f2;
  color: #1a1a1a;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  height: 100%;
  line-height: 1.56;
  position: absolute;
  right: 0;
  top: 0;
  cursor: pointer;
  padding-left: 12px;
  padding-right: 12px;
}

.ontario-search-submit:hover {
  background-color: #00478f;
  color: #fff;
}

.ontario-search-submit:focus {
  outline: none;
  box-shadow: 0 0 0 4px #009adb;
  background-color: #00478f;
  color: #fff;
}

.ontario-search-submit:active {
  background-color: #002142;
  color: #fff;
}

.ontario-search-submit svg {
  margin-right: 0;
}

input[type="reset"].ontario-search-reset {
  position: absolute;
  display: flex;
  align-items: center;
  top: 11px;
  /* Changed from Design System */
  right: 65px;
  height: 28px;
  width: 28px;
  color: #000;
  margin: 0;
  padding: 0.5rem;
  background-image: url(/images/ontario-icon-close.svg);
  background-position: center center;
  background-repeat: no-repeat;
  background-color: transparent;
  outline: none;
  border: none;
  cursor: pointer;
}

input[type="reset"].ontario-search-reset:focus {
  box-shadow: 0 0 0 4px #009adb;
}

/*Show for screen reader*/
.ontario-show-for-sr {
  position: absolute !important;
  width: auto;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.ontario-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  stroke-width: 0;
  stroke: currentColor;
  fill: currentColor;
  vertical-align: middle;
  overflow: hidden;
  margin-bottom: 2px;
}

/* ========================================================================
   Search bar UI -- based on Figma
   ======================================================================== */
.module .theme_p {
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 20px;
  line-height: 26px;
  color: #1a1a1a;
}

/* parent div: */
.search-form {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: #fafafa;
}

/* child div 1: shows search result count */
.search-form .search-count {
  order: 2;
  /* Displays count text above Order By menu */
  text-align-last: right;
  /* always end text at same point, no matter how long it is */
  padding-bottom: 16px;
}

/* child div 2: shows Order By dropdown menu.
  Note: clearance for menu below the gray box controlled by
  bottom margin in external/ontario_theme.css LINE 759
  */
.search-form .control-order-by {
  order: 4;
  /* Displays Order By menu below count text */
  display: flex;
  justify-content: end;
  padding-top: 33px;

  margin-bottom: 0;
  background-color: #fff;
  padding-right: 20px;
  margin-left: -20px;
  margin-right: -20px;
}

#group-datasets-search-form,
#organization-datasets-search-form {
  border-bottom: none;
  padding-bottom: 0;
}

.search-form .control-order-by label {
  font-size: 19px;
  padding-top: 5px;
  /* used to centre label beside menu box */
}

.search-form .control-order-by .form-control {
  font-size: 16px;
  height: 36px;
  /* increase height to accommodate larger font size */
}

/* child div 3: shows search keywords just below searchbar */
.filter-list {
  order: 3;
  display: flex;
  justify-content: end;
  padding-bottom: 10px;
  /* needed to avoid being squished in mobile mode*/
}

.search-form .filter-list,
.search-form .search-count {
  font-size: 20px;
  font-weight: 400;
  line-height: 25px;
}

.search-form .filter-list {
  color: #000;
  margin-right: -14px;
  margin-top: 0;
  flex-wrap: wrap;
}

.pill a.remove {
  font-size: 20px;
}

.pill a:visited {
  color: unset;
}

.pill a {
  margin: auto;
  margin-left: 5px;
}

.pill-contents {
  display: flex;
  padding: 0 10px;
}

.search-form .filter-list .pill {
  line-height: 25.6px;
  background-color: #666666;
  margin-right: 14px;
  padding: 5px 10px;
  text-align: left;
  margin-bottom: 5px;
  border-radius: 52px;
}

.facet-row {
  text-align: right;
}

@media screen and (max-width: 39.9375em) {
  .facet-row {
    display: block;
    float: right;
  }

  .facet {
    padding-right: 5px;
  }

  .search-form .filter-list .pill {
    margin-right: unset;
  }
}

.show-filters.btn {
  margin-bottom: 10px;
}

.module-content {
  padding: 0;
  /* brings top of file list closer to Order By menu */
}

.greet .search-form {
  background: none;
  /* turn off background for homepage searchbar */
}

.secondary.col-sm-3.filter-results {
  z-index: 6;
}

/* ================================
  Custom overrides - text inputs
  ================================= */
.ontario-search-input.ontario-input {
  margin-bottom: 0;
  height: 84px;
  max-width: unset !important;
}

input[type="reset"].ontario-search-reset.home {
  top: 28px;
  background-size: 40px;
  right: 100px;
}

.greet {
  padding: 15px 0 15px 0;
}

.ontario-icon.search {
  display: inline-block;
  width: 52px;
  height: 52px;
  stroke-width: 0;
  stroke: currentColor;
  fill: currentColor;
  vertical-align: middle;
  overflow: hidden;
  margin-bottom: 2px;
}

#group-search-form .ontario-search-container {
  z-index: 2;
}

.ontario-search-input.ontario-input.snippet {
  padding-right: 8rem;
}

input[placeholder] {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 1;
}

:-ms-input-placeholder {
  /* Internet Explorer 10-11 */
  color: #999999;
}

::-ms-input-placeholder {
  /* Microsoft Edge */
  color: #999999;
}

/* ========================================================================
   Page Alerts - Design System
   ======================================================================== */
.ontario-alert-warning {
  color: #000;
  background-color: #fcf8e3;
  border-color: #faebcc;
}

.ontario-alert {
  border-width: 0 0 0 0.9375rem;
  border-style: solid;
  padding: 1.5rem;
  margin: 2rem 0 2.5rem 0;
}

.ontario-alert__header {
  display: flex;
}

/* In place for the addition of the svg icon */
.ontario-alert__header-icon {
  display: inline-block;
  vertical-align: top;
  margin-right: 0.95rem;
}

.ontario-alert__header-icon svg {
  width: 36px;
  height: 36px;
}

@media screen and (max-width: 40em) {
  .ontario-alert__header-icon svg {
    width: 32px;
    height: 32px;
  }
}

.ontario-alert__header-title {
  margin-bottom: 0.75rem;
  padding-top: 2px;
}

.ontario-alert__body {
  margin-left: 3.25rem;
  max-width: 48rem;
}

@media screen and (max-width: 40em) {
  .ontario-alert__body {
    margin-left: 0;
  }
}

.ontario-alert__body p {
  margin-top: 0;
  font-size: 16px;
}

.ontario-alert__body p:last-of-type {
  margin-bottom: 0.5rem;
}

.ontario-alert--informational {
  border-color: #5FA33B;
  background-color: #E8F4E1;
}

/* ===============================
   Custom overrides - page alerts
   =============================== */
.data-h4 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 10px;
  margin-bottom: 19px;
  line-height: 25.6px;
}

.data-h4 a {
  text-decoration: none;
}

.data-h4 a:hover {
  text-decoration: underline;
}

/* fa and feedback classes can be removed once icon is replaced with a svg */
.fa.fa-comments {
  font-size: 100px;
  color: #1080a6;
}

.feedback.ontario-alert__header-icon {
  height: 100px;
  width: 100px;
  margin-left: 3rem;
}

.feedback.ontario-alert__body {
  max-width: unset;
  margin-left: 1rem;
  padding-top: 22px;
}

@media screen and (max-width: 992px) {
  .fa.fa-comments {
    font-size: 80px;
  }

  .feedback.ontario-alert__header-icon {
    height: 80px;
    width: 80px;
    margin-left: 0.5rem;
  }

  .feedback.ontario-alert__body h2 {
    margin-top: unset;
  }

  .feedback.ontario-alert__body {
    padding-top: unset;
  }
}

.feedback.ontario-alert {
  display: flex;
  min-height: 198px;
}

.search-page-heading {
  padding: 0 20px;
}

/* ========================================================================
   Links - Design System
   ======================================================================== */
a {
  color: #0066cc;
  text-decoration: underline;
}

a:hover {
  color: #00478f;
}

a:active {
  color: #002142;
}

a:focus {
  box-shadow: 0 0 0 4px #009adb;
  outline: 4px solid transparent;
  transition: all 0.1s ease-in-out;
}

/* ========================================================================
   Custom overrides - organization page
   ======================================================================== */
.organization-heading {
  font-weight: 700;
  font-size: 18px;
  line-height: 45px;
}

.organization-item.media-item:first-child {
  border-top: 1px solid #dddddd;
}

.media-item:last-child {
  border-bottom: none;
}

.ontario-module-h3 {
  font-size: 22px;
  font-weight: 600;
  line-height: 25.6px;
  word-break: break-word;
  hyphens: auto;
}

.organization-packages {
  float: right;
}

.organization-package-div,
.organization-packages {
  margin-top: 25px;
}

.organization.nums {
  font-size: 22px;
  line-height: 25.6px;
  font-weight: 400;
}

.module > .page-header.organization-page-header {
  margin-top: 0;
}

.primary.organization-page {
  padding-top: unset;
}

.inline-dl dt:before {
  content: "";
  display: block;
  margin-bottom: 14px;
}

.inline-dl dt,
.inline-dl dd {
  display: inline;
}

.inline-dl {
  font-size: 20px;
  line-height: 25.6px;
}

/* ========================================================================
   Header - Design System
   ======================================================================== */
.ontario-header {
  position: relative;
  overflow: hidden;
  z-index: 5;
  background-color: #1a1a1a;
  color: #fff;
  display: flex;
  align-items: center;
  height: 5.75rem;
}

.ontario-application-subheader__heading {
  font-style: normal;
  font-weight: 700;
  text-rendering: optimizeLegibility;
  margin-bottom: 1rem;
  font-feature-settings: normal;
  font-family: "Raleway", "Open Sans", "Helvetica Neue", Helvetica, Arial,
    sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.03rem;
  line-height: 1.5;
  margin: 0 0 0.75rem 0;
}

.ontario-header.ontario-application-header {
  height: 3.125rem;
  z-index: 5;
}

.ontario-application-header__logo,
.ontario-application-header__logo a,
.ontario-application-header__lang-toggle,
.ontario-application-subheader__container,
.ontario-application-subheader__menu-container,
.ontario-application-subheader__menu {
  display: flex;
}

.ontario-application-header__logo img {
  width: 100px;
  height: 25px;
}

.ontario-application-header__lang-toggle {
  justify-content: flex-end;
}

.ontario-application-header__lang-toggle a {
  font-size: 1rem;
  line-height: 1.375rem;
  height: auto;
  padding: 0.5rem 0.75rem;
}

.ontario-application-subheader {
  padding: calc(0.5rem + 0.75rem) 0;
  background-color: #404040;
  overflow: hidden;
  position: relative;
  z-index: 5;
}

.ontario-application-subheader > .ontario-row {
  position: relative;
}

.ontario-application-subheader .ontario-header-button {
  visibility: visible;
}

.ontario-application-subheader .ontario-header-button {
  background-color: #404040;
}

.ontario-header-button .ontario-icon {
  width: 2rem;
  height: 2rem;
  margin-bottom: 0;
}

.ontario-application-subheader .ontario-header-button:hover {
  background-color: #666666;
}

.ontario-application-subheader .ontario-header-button:active {
  background-color: #1a1a1a;
}

.ontario-application-subheader__heading {
  padding: 0.375rem 0;
  margin-bottom: 0;
  max-width: 65%;
}

.ontario-application-subheader__heading a {
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}

.ontario-application-subheader__heading a:hover,
.ontario-application-subheader__heading a:active,
.ontario-application-subheader__heading a:visited {
  color: #ffffff;
  text-decoration: underline;
}

.ontario-application-subheader__container {
  align-items: center;
  justify-content: space-between;
}

.ontario-application-subheader__menu {
  list-style: none;
  margin: 0;
  padding-left: 0;
  align-items: center;
}

.ontario-application-subheader__menu li {
  padding: 0;
  margin-left: 1rem;
}

.ontario-application-subheader__menu a {
  border-radius: 4px;
  color: #ffffff;
  display: block;
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  height: 48px;
  line-height: 1.4375rem;
  padding: 0.75rem;
  text-decoration: none;
  white-space: nowrap;
}

#navigation li.active a,
#medium-navigation li.active a {
  border-bottom: 4px solid #fff;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.ontario-application-subheader-menu__container .ontario-header-button--with-outline {
  top: calc(-4rem + -0.25rem);
}

.ontario-navigation__container li.active {
  background-color: #f2f2f2;
  border-left: 6px solid #404040;
}

.ontario-application-subheader__menu a.ontario-link--active {
  border-radius: 4px 4px 0 0;
  border-bottom: 4px solid #ffffff;
}

.ontario-application-subheader__menu a:hover,
.ontario-application-subheader__menu a:focus {
  background-color: #666666;
}

.ontario-application-subheader__menu a:active {
  background-color: #1a1a1a;
}

.ontario-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.6);
  width: 100%;
  height: 100%;
  z-index: 2;
}

.ontario-navigation__container {
  background: #fff;
  position: absolute;
  transform: translateY(-100%);
  transition: transform 0.3s ease-in-out, visibility 0.1s ease;
  width: 100%;
  visibility: hidden;
  z-index: 4;
}

.ontario-navigation.ontario-navigation--open .ontario-navigation__container {
  visibility: visible;
  transform: translateY(0);
  transition: transform 0.4s ease-in-out;
}

.ontario-navigation--open .ontario-navigation .ontario-header-button {
  visibility: visible;
}

.ontario-navigation--open .ontario-application-subheader .ontario-header-button--with-outline {
  visibility: hidden;
}

.ontario-navigation a {
  color: #1a1a1a;
  display: block;
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  padding: calc(0.75rem - (0.25rem / 3.25)) 1.5rem;
}

.ontario-navigation--open .ontario-overlay {
  display: block;
}

.ontario-navigation ul {
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
  border-bottom: 1px solid #ccc;
}

.ontario-header-button--with-outline.ontario-header-button {
  border: 2px solid #fff;
  margin: 0 0 0 1rem;
  padding: 0.375rem 1rem;
}

.ontario-header-button--with-outline,
.ontario-header-button--without-outline {
  /* background-color: #1a1a1a; */
  color: #fff;
}

.ontario-header-button {
  background-color: #1a1a1a;
  border: none;
  border-radius: 4px;
  box-sizing: border-box;
  box-shadow: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  font-size: 1.125rem;
  font-weight: 600;
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  height: 48px;
  line-height: 1.5555555556;
  text-align: center;
  text-decoration: none;
}

.ontario-header .ontario-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.ontario-header-button--with-outline:hover,
.ontario-header-button--without-outline:hover {
  background-color: #4d4d4d;
}

.ontario-header-button:hover,
.ontario-header-button:focus,
.ontario-header-button:visited {
  color: #fff;
  text-decoration: none;
}

.ontario-navigation .ontario-header-button {
  background-color: #4d4d4d;
}

.ontario-navigation .ontario-header-button {
  visibility: hidden;
  position: absolute;
  right: 0.5rem;
  z-index: 6;
}

.ontario-header__menu-toggler {
  padding: 0.375rem 1rem;
}

.ontario-header__language-toggler:hover {
  text-decoration: underline;
}

header {
  background-color: #1a1a1a;
}

.ontario-navigation a:focus,
.ontario-navigation a:active {
  box-shadow: 0 0 0 4px #009adb inset;
  text-decoration: underline;
  background-color: #cccccc;
  outline: 4px solid transparent;
  transition: box-shadow 0.1s ease-in-out;
}

.ontario-navigation li {
  border-top: 1px solid #ccc;
  padding: 0;
}

.ontario-navigation li:last-of-type {
  border-bottom: 1px solid #ccc;
}

.ontario-navigation a:hover {
  text-decoration: underline;
  background-color: #e6e6e6;
}

.ontario-header-button:focus {
  box-shadow: 0 0 0 4px #009adb;
  outline: 4px solid transparent;
  transition: box-shadow 0.1s ease-in-out;
}

.ontario-navigation {
  position: absolute;
  width: 100%;
}

/* ===============================
   Header - media queries
   =============================== */
@media screen and (min-width: 40em) {
  .ontario-application-subheader__heading {
    font-size: 1.5rem;
    letter-spacing: 0.0313rem;
    line-height: 1.5;
  }

  #ontario-header .ontario-columns,
  #ontario-application-subheader .ontario-columns {
    padding-left: 8px;
    padding-right: 8px;
  }
}

@media screen and (min-width: 73em) {
  .ontario-application-subheader {
    z-index: 0;
  }

  .ontario-navigation--open .ontario-overlay {
    display: none;
  }

  .ontario-navigation {
    position: relative;
    max-width: 72rem;
    width: auto;
    margin: 0 auto;
  }

  .ontario-navigation__container {
    box-shadow: 0 4px 12px rgb(0 0 0 / 30%);
    border-radius: 4px;
    display: none;
    position: absolute;
    right: 1rem;
    top: calc(100% - 0.5rem);
    transition: none;
    min-width: 290px;
    max-width: 30%;
    z-index: 5;
  }

  .ontario-navigation.ontario-navigation--open .ontario-navigation__container {
    transition: none;
    display: block;
  }

  .ontario-navigation ul {
    border-bottom: none;
  }
}

/* uses same media query as ontario-only-show-for-small for the first 2 nav tabs in
the menu dropdowm. Datasets and Organizations are displayed in the medium screen nav bar */
@media screen and (max-width: 0em),
screen and (min-width: 40em) {
  .ontario-navigation__container li:nth-child(-n + 2) {
    display: none !important;
  }
}

@media screen and (min-width: 40em) and (max-width: 42em) {
  .ontario-header__search-toggler {
    margin-left: unset !important;
  }
}

/* Moves the closing Menu button when the French title wraps */
@media screen and (min-width: 40em) and (max-width: 51.5em) {
  .ontario-header-button--with-outline.fr {
    top: calc(-4rem + -1.4rem);
  }
}

@media screen and (min-width: 20em) and (max-width: 25.75em) {
  .ontario-header-button--with-outline.fr {
    top: calc(-4rem + -1rem);
  }
}

@media screen and (min-width: 20em) and (max-width: 21.375em) {
  .ontario-application-subheader-menu__container .ontario-header-button--with-outline {
    top: calc(-4rem + -1rem);
  }
}

@media screen and (max-width: 73em) {
  .ontario-navigation--open .ontario-application-subheader-menu__container {
    position: relative;
    z-index: 3;
  }

  .ontario-navigation a {
    padding: calc(0.75rem - (0.25rem / 3.25)) 2rem;
  }

  .account-text {
    display: none;
  }
}

@media screen and (max-width: 40em) {
  .ontario-navigation .ontario-header-button {
    right: 1rem;
  }
}

/* ========================================================================
   Header search - Design System
   ======================================================================== */
.ontario-header__search-container {
  position: relative;
  display: none;
}

.ontario-search-input.ontario-input.header-search {
  height: 48px;
  font-size: 18px;
  border: unset;
  border-width: 0;
  margin-bottom: 0;
  padding-left: 0.75rem;
  padding-right: 5.625rem;
}

.header-search::placeholder {
  font: "Open Sans";
  font-weight: 400;
  size: 16px;
  line-height: 25.6px;
}

.ontario-search-container.header-search {
  margin-bottom: unset;
}

.ontario-icon.search.header-search {
  width: 32px;
  height: 32px;
}

.ontario-search-submit.header-search {
  border: 0;
}

.ontario-header__search-toggler {
  padding: 0.5rem 0.75rem;
  margin-left: 1rem;
}

.ontario-header__search-close {
  flex-direction: column-reverse;
  font-weight: 400;
  margin-right: 1rem;
  padding: 0.15rem 0.25rem;
  position: relative;
  height: 60px;
  display: none;
}

.ontario-header__search-close span {
  position: relative;
  top: -3px;
  font-size: 1rem;
  margin-left: 0;
}

.ontario-header__search-close span:hover,
.ontario-header__search-close span:focus {
  outline: none;
  text-decoration: none;
}

.ontario-header__search-close svg {
  top: 0;
}

.ontario-header__search-close-container {
  display: none;
  padding-right: 0;
}

.ontario-header__search-container {
  padding-right: 0 !important;
}

/* ===============================
   Header search - media queries
   =============================== */
@media screen and (min-width: 39.9375em) {
  .ontario-header__search-close span {
    margin-right: 4px;
  }
}

@media screen and (min-width: 73em) {
  .ontario-header__search-container {
    display: flex;
  }

  .ontario-header__search-container.ontario-columns {
    width: 320px;
  }

  .ontario-header--search-open .ontario-header__search-close {
    display: none;
  }
}

@media screen and (min-width: 40em) {
  .ontario-header__search-close {
    flex-direction: row;
    padding: 0.25rem 0.5rem 0.25rem 1rem;
    height: 48px;
  }

  .ontario-header__search-close span {
    top: 0;
  }

  .ontario-header__search-close svg {
    position: relative;
    width: 2.5rem;
    height: 2.5rem;
  }
}

@media screen and (min-width: 40em) and (max-width: 46em) {
  .ontario-header__search-close {
    margin-left: 3rem;
  }
}

@media screen and (max-width: 46em) {
  .ontario-header__search-close-container {
    justify-content: flex-end;
  }

  .menu-text {
    display: none;
  }
}

@media screen and (max-width: 40em) {
  .ontario-header__search-close-container {
    width: auto;
    padding-left: 0;
    padding-right: 0;
  }

  .ontario-header--search-open .ontario-application-subheader__heading {
    display: none;
  }

  .ontario-header__search-close {
    margin-right: 0;
  }

  .ontario-application-subheader__menu-container {
    justify-content: flex-end;
  }

  .ontario-search-submit.header-search {
    height: 48px;
    top: 7px;
  }

  .ontario-header--search-open .ontario-application-subheader__menu-container {
    width: 100%;
  }

  .ontario-header--search-open .ontario-header__search-container {
    padding-top: 7px;
  }

  #ontario-search-form-container .ontario-search-reset {
    top: 17px !important;
  }
}

@media screen and (max-width: 73em) {

  .ontario-header--search-open .ontario-application-subheader__menu,
  .ontario-header--search-open .ontario-header__search-toggler,
  .ontario-header--search-open .ontario-header__menu-toggler {
    display: none;
  }

  .ontario-header--search-open .ontario-header__search-close-container,
  .ontario-header--search-open .ontario-header__search-container,
  .ontario-header--search-open .ontario-header__search-close {
    display: flex;
  }

  .ontario-header__search-close {
    margin-right: 0;
  }

  .ontario-header__search-close-container.ontario-columns {
    padding-right: 0;
  }
}

/* ========================================================================
   Custom overrides - individual pages
   ======================================================================== */
/* .embedded-content h2 {
  font-size: 33px;
} */
/* embedded-content class used for
dataset descriptions input by user
via submission form. Copied from DS.*/
.embedded-content h2 {
  font-size: 1.6875rem;
  letter-spacing: 0.03rem;
  line-height: 1.37;
  margin: 0 0 0.75rem 0;
}

@media screen and (min-width: 40em) {
  .embedded-content h2 {
    font-size: 2.0625rem;
    letter-spacing: 0.02rem;
    line-height: 1.33;
  }
}

.embedded-content h3 {
  font-size: 1.4375rem;
  letter-spacing: 0.02rem;
  line-height: 1.39;
  margin: 0 0 0.75rem 0;
}

@media screen and (min-width: 40em) {
  .embedded-content h3 {
    font-size: 1.75rem;
    letter-spacing: 0.02rem;
    line-height: 1.43;
  }
}

.embedded-content h4 {
  font-size: 1.25rem;
  letter-spacing: 0.03rem;
  line-height: 1.5;
  margin: 0 0 0.75rem 0;
}

@media screen and (min-width: 40em) {
  .embedded-content h4 {
    font-size: 1.5rem;
    letter-spacing: 0.0313rem;
    line-height: 1.5;
  }
}

.organization-contact {
  margin-top: 28px;
  margin-bottom: 28px;
}

.resource-list {
  overflow: hidden;
}

.resource-item {
  padding: 15px 30px 15px 30px;
}

.label-div {
  width: 13%;
  float: left;
  position: relative;
  margin-right: 5px;
}

.resource-item .label[data-format] {
  height: 57px;
  min-width: 61px;
  position: relative;
  padding: 1em 0.5em;
  font-size: 16.5px;
  display: inline-block;
  font-weight: 700;
  line-height: 25px;
}

.resource-item .description {
  font-weight: 400;
  font-size: 18px;
  line-height: 24.51px;
  color: #1a1a1a;
  margin-top: 5px;
  margin-bottom: 10px;
}

.resource-item.row,
.resource-list {
  margin: 0 -15px;
}

.resource-item div {
  padding: unset;
}

.label.label-english,
.label.label-french,
.label.label-english_and_french {
  background-color: #f2f2f2;
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  border-radius: 2px;
  margin-left: 10px;
  margin-bottom: 5px;
  vertical-align: -30%;
}

.description.details {
  margin-top: 5px;
}

.resource-item-title {
  font-weight: 700;
  font-size: 20px;
  line-height: 27px;
  color: #000000;
  text-decoration: none;
  vertical-align: -30%;
}

.resource-item-title:hover {
  color: #000000;
}

.dataset-font,
.package-item-category {
  font-size: 19px;
  font-weight: 400;
}

.right-col {
  float: right;
}

@media screen and (max-width: 39.9375em) {
  section.additional-info table.table tbody tr td.dataset-details {
    width: 40%;
  }

  .label-div {
    width: 17.5%;
  }

  .label.label-english_and_french {
    display: inline-flex;
  }
}

@media screen and (min-width: 73em) {
  .right-col {
    max-width: 350px;
  }

  section.additional-info table.table tbody tr td.dataset-details {
    width: 75%;
  }
}

.resource-button-primary {
  min-height: 78px;
  min-width: 142px;
  vertical-align: top;
}

.resource-button-secondary {
  min-height: 78px;
  min-width: 193px;
  vertical-align: top;
}

.resource-button-text {
  display: contents;
  text-align: left;
  column-gap: 0.5vw;
  align-items: baseline;
}

@media screen and (min-width: 40em) {
  .resource-item .description {
    margin-left: 10%;
  }

  .resource-button-text {
    display: inline-flex;
  }
}

.aside-heading {
  color: #4d4d4d;
  font-size: 19px;
  line-height: 25.6px;
  font-weight: 600;
}

.right-col h3 {
  color: #000000;
}

.right-col a.btn.btn-primary {
  font-size: 20px;
  line-height: 27.24px;
  font-weight: 700;
}

.right-col .module.module-narrow.module-shallow {
  padding: 30px;
}

.package-z-index {
  z-index: 2;
  position: relative;
}

section.additional-info table.table {
  border: none;
}

section.additional-info table.table thead {
  display: none;
}

section.additional-info table.table td {
  border: none;
}

section.additional-info table.table tbody tr:nth-child(even) th,
section.additional-info table.table tbody tr:nth-child(even) td {
  background-color: #f9f9f9;
}

section.additional-info table.table tbody tr:first-child th,
section.additional-info table.table tbody tr:first-child td {
  padding-top: 10px;
}

section.additional-info table.table tbody tr:last-child th,
section.additional-info table.table tbody tr:last-child td {
  padding-bottom: 10px;
}

section.additional-info table.table tbody tr th {
  padding: 5px 15px 5px 30px;
  font-weight: 700;
  font-size: 20px;
  line-height: 32.6px;
  color: #4d4d4d;
}

section.additional-info table.table tbody tr td {
  padding: 5px 30px 5px 0;
  font-weight: 400;
  font-size: 20px;
  line-height: 32.6px;
  color: #4d4d4d;
}

section.additional-info table.table tbody tr th,
section.additional-info table.table tbody tr td {
  border: none;
}

section#dataset-resources .dataset-font {
  color: #4d4d4d;
}

section#dataset-resources > h2 {
  margin-top: 35px;
  margin-bottom: 20px;
}

.date-range {
  font-weight: 600;
  font-size: 24px;
  line-height: 25.6px;
  color: #4d4d4d;
  margin-top: 10px;
}

.module.module-narrow.module-shallow.license {
  margin-bottom: 0;
}

.tag-list {
  padding: 10px 10px 5px 0;
}

/* =====================================================
   Custom overrides - Account bar
   ===================================================== */
.account {
  position: relative;
  z-index: 5;
  background-color: #1a1a1a;
  min-height: 32px;
}

.account .avatar {
  padding-right: 16px;
}

/* The "bubble" containing the number of new notifications. */
.account .notifications a .badge {
  background-color: transparent;
}

/* The text and icons in the user account info. */
.account ul li a {
  color: #ededed;
  font-weight: normal;
  font-size: 14px;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
}

/* The user account info text and icons, when the user's pointer is hovering
     over them. */
.account ul li a:hover {
  background-color: #666666;
}

.account ul li a:hover {
  text-decoration: underline;
}

.account ul {
  float: right;
}

.account ul li {
  display: inline-block;
  border-right: none;
  margin-bottom: 0 !important;
}

/* ========================================================================
   Custom overrides - links
   ======================================================================== */
a.heading:hover,
ul.nav-tabs li a:hover,
.table-of-contents a:hover {
  text-decoration: underline;
}

a.ontario-button,
a.ontario-button:hover,
a.btn,
a.btn-primary,
a.heading,
a.tag,
ul.nav-tabs li a,
.table-of-contents a,
.nav-item a {
  text-decoration: none;
}

/* ========================================================================
   Custom overrides - datafile pages
   ======================================================================== */
.ontario-margin-top-40 {
  margin-top: 40px;
}

.additional-info-table.table-bordered > tbody > tr > th,
.additional-info-table.table-bordered > thead > tr > th {
  border-right: unset;
}

.additional-info-table.table-bordered > tbody > tr > td,
.additional-info-table.table-bordered > thead > tr > th {
  border-left: unset;
}

.module-resource {
  border-bottom: unset;
  z-index: 1;
}

.table-condensed > tbody > tr > th,
.table-condensed > thead > tr > th,
.table-condensed > tbody > tr > td {
  padding: 12px;
}

.action-group {
  display: block;
  float: right;
  border-radius: 3px;
  background-color: #f2f2f2;
  padding: 28px;
  margin-bottom: 42px;
  width: 100%;
}

.action-group:last-child {
  margin-bottom: 0;
}

.action-group p {
  font-size: 18px;
}

.action-group a {
  font-weight: 600;
  font-size: 19px;
  line-height: 34.65px;
}

.datafile-p {
  font-size: 20px;
  line-height: 27.24px;
}

/* Make API help panel wide enough to fit all elements */
#collapse-endpoints .panel-body table {
  width: fit-content;
}

/* Add min-width to layout table properly in Safari */
#collapse-endpoints table {
  min-width: 100%;
}

/* Break the URLs so they fit the panel width and the width of screen */
#collapse-querying .panel-body,
.resource-url-analytics {
  overflow-wrap: break-word;
}

/* ========================================================================
   Visibility - Design System
   ======================================================================== */
.ontario-hide {
  display: none !important;
}

.ontario-invisible {
  visibility: hidden;
}

@media screen and (max-width: 39.9375em) {
  .ontario-hide-for-small-only {
    display: none !important;
  }
}

@media screen and (max-width: 0em),
screen and (min-width: 40em) {
  .ontario-show-for-small-only {
    display: none !important;
  }
}

@media print,
screen and (min-width: 40em) {
  .ontario-hide-for-medium {
    display: none !important;
  }
}

@media screen and (max-width: 39.9375em) {
  .ontario-show-for-medium {
    display: none !important;
  }
}

@media screen and (min-width: 40em) and (max-width: 72.9375em) {
  .ontario-hide-for-medium-only {
    display: none !important;
  }
}

@media screen and (max-width: 39.9375em),
screen and (min-width: 73em) {
  .ontario-show-for-medium-only {
    display: none !important;
  }
}

@media print,
screen and (min-width: 73em) {
  .ontario-hide-for-large {
    display: none !important;
  }
}

@media screen and (max-width: 72.9375em) {
  .ontario-show-for-large {
    display: none !important;
  }
}

@media screen and (min-width: 73em) and (max-width: 95.9375em) {
  .ontario-hide-for-large-only {
    display: none !important;
  }
}

@media screen and (max-width: 72.9375em),
screen and (min-width: 96em) {
  .ontario-show-for-large-only {
    display: none !important;
  }
}

.ontario-show-for-sr,
.ontario-show-on-focus {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.ontario-show-on-focus:active,
.ontario-show-on-focus:focus {
  position: static !important;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
}

.ontario-show-for-landscape,
.ontario-hide-for-portrait {
  display: block !important;
}

@media screen and (orientation: landscape) {

  .ontario-show-for-landscape,
  .ontario-hide-for-portrait {
    display: block !important;
  }
}

@media screen and (orientation: portrait) {

  .ontario-show-for-landscape,
  .ontario-hide-for-portrait {
    display: none !important;
  }
}

.ontario-hide-for-landscape,
.ontario-show-for-portrait {
  display: none !important;
}

@media screen and (orientation: landscape) {

  .ontario-hide-for-landscape,
  .ontario-show-for-portrait {
    display: none !important;
  }
}

@media screen and (orientation: portrait) {

  .ontario-hide-for-landscape,
  .ontario-show-for-portrait {
    display: block !important;
  }
}

/* ========================================================================
   Callouts - Design System
   ======================================================================== */
.ontario-callout,
.ontario-aside {
  border-left: 0.25rem solid #367a76;
  padding: 1.5rem;
}

.ontario-callout *:last-child,
.ontario-aside *:last-child {
  margin-bottom: 0.5rem;
}

.ontario-callout {
  margin: 2rem 0 2.5rem 0;
  background-color: #f2f2f2;
}

.ontario-callout__title,
.ontario-aside__title {
  margin-bottom: 1rem;
}

.ontario-border-highlight--purple {
  border-color: #5FA33B !important;
  background-color:#E8F4E1 !important;
}

/* ========================================================================
   Dataset Search Page - Package Items
   ======================================================================== */
.package-item-category {
  color: #4d4d4d;
  margin: 0 0 10px 0;
}

.dataset-content > h3.ontario-h4 {
  font-weight: 600;
  margin-bottom: 0;
}

.dataset-content > h3.ontario-h4 a {
  text-decoration: none;
}

.dataset-content > h3.ontario-h4 a:hover {
  text-decoration: underline;
}

.resource-formats {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.resource-formats p {
  font-size: 20px;
  font-weight: 400;
  margin-right: 10px;
}

.restricted_under_review_packages {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  margin-top: 10px;
}

.restricted_under_review_packages p {
  margin-bottom: unset;
}

.packages_not_available {
  font-size: 20px;
  font-weight: 600;
  margin-right: 10px;
}

.packages_access_level {
  font-size: 20px;
  font-weight: 400;
}

/* ========================================================================
   Dataset Search Page - File type labels
   ======================================================================== */
.dataset-resources li {
  display: inline-block;
}

.dataset-resources li a {
  background-color: #aaaaaa;
  color: #ffffff;
}

.dataset-resources li {
  margin-right: 16px;
  margin-bottom: 20px;
}

.dataset-resources {
  margin-top: unset;
  display: contents;
}

.label.label-default {
  color: #000;
  font-weight: 600;
  font-size: 18px;
  padding: 0.4em 1em;
}

.label[data-format="html"],
.label[data-format*="html"] {
  background-color: #fedff0;
}

.label[data-format="json"],
.label[data-format*="json"] {
  background-color: #fee1d9;
}

.label[data-format="xml"],
.label[data-format*="xml"] {
  background-color: #f8e5c3;
}

.label[data-format="text"],
.label[data-format*="text"],
.label[data-format="txt"],
.label[data-format*="txt"] {
  background-color: #c5eefa;
}

.label[data-format="doc"],
.label[data-format*="doc"] {
  background-color: #dbe9f5;
}

.label[data-format="csv"],
.label[data-format*="csv"] {
  background-color: #f0e7cc;
}

.label[data-format="xls"],
.label[data-format*="xls"] {
  background-color: #d1efd4;
}

.label[data-format="zip"],
.label[data-format*="zip"] {
  background-color: #cccccc;
}

.label[data-format="api"],
.label[data-format*="api"] {
  background-color: #ec96be;
}

.label[data-format="pdf"],
.label[data-format*="pdf"] {
  background-color: #ffe0e2;
}

.label[data-format="other"],
.label[data-format*="other"] {
  background-color: #f2f2f2;
}

.label[data-format="mdb"],
.label[data-format*="mdb"] {
  background-color: #f1e3f2;
}

.label[data-format="png"],
.label[data-format*="png"] {
  background-color: #fef6dc;
}

.label[data-format="rdf"],
.label[data-format*="rdf"],
.label[data-format*="nquad"],
.label[data-format*="ntriples"],
.label[data-format*="turtle"] {
  background-color: #0b4498;
}

.label[data-format="kml"],
.label[data-format*="kml"] {
  width: 31px;
  height: 35px;
  background-position: -383px -62px;
  background-color: #cfeded;
}

.label[data-format="shp"],
.label[data-format*="shp"] {
  width: 31px;
  height: 35px;
  background-position: -414px -62px;
  background-color: #ddedc7;
}

/* default button background colour */
.label-default {
  background-color: #f2f2f2;
  color: #000;
}

/* About and Help page header */
.module h1 {
  margin: 2.5rem 0 1.5rem 0;
}

/* Wrapper styling */
.wrapper::before {
  z-index: 0;
}

.module.module-narrow.module-shallow.context-info {
  padding: 30px;
}