body {
  font-family: Arial, sans-serif;
  line-height: var(--line-height);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: var(--line-height-headings);
}

p {
  margin-top: 0;
}

a {
  color: var(--color-ec-blue);
}

a:focus {
  outline: 3px solid var(--color-ec-yellow);
  outline-offset: 2px;
}

a.no-underline,
.no-underline a {
  text-decoration: none;
}

a:not(.ecl-link--icon)[href$='.pdf']::before {
  display: inline-block;
  content: '';
  margin-inline-end: 0.5rem;
  width: 1rem;
  height: 1rem;
  background: url('/themes/custom/ec_harmonised/assets/application-pdf.png') no-repeat;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

.content-type-article img,
.content-type-page img {
  display: block;
  margin: auto;
}

.layout-content {
  padding-bottom: 2rem;
}

.display-inline {
  display: flex;
}

.region--etranslation {
  padding-block: 1rem;
  background-color: var(--color-ec-grey-5);
}

.ecl h1 {
  margin-bottom: 2rem;
  font-size: 2rem;
}

.ecl h2:not(:where(.ecl-site-footer__title,
.ecl-footer-harmonised__title,
.how-to-join__title,
.newsletter__heading,
.ecl-social-media-follow__description,
.search__title,
.title--no-underline)) {
  font-size: 1.75rem;
  line-height: var(--line-height-headings);
}

.ecl-page-header-harmonised {
  padding-bottom: 0;
}

.ecl-page-header-harmonised__banner {
  min-height: 10.875rem;
  background-image: url('/themes/custom/smip/assets/soil_mip_banner.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 32.5% center;
}

@media (min-width: 768px) {
  .ecl-page-header-harmonised__banner {
    background-position: center center;
  }
}

.ecl-page-header-harmonised__banner + .ecl-container .ecl-breadcrumb-harmonised {
  padding-inline: 1rem;
}

.layout-content.sidebar-first {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .layout-content.sidebar-first {
    grid-template-columns: minmax(220px, 1fr) 3fr;
  }
}

.layout-sidebar-first {
  order: -1;
}

.ecl-form-group .ecl-radio {
  margin-top: 0.75rem;
}

.ecl-site-header-harmonised__container {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.ecl-list-illustration__image:before {
  content: unset;
}

.ecl-list-illustration__description .term-ref {
  display: inline-block;
}

.ecl-site-header__login-container {
  display: flex;
}

@media (max-width: 995px) {
  .ecl-site-header__login-container {
    align-items: flex-end;
  }
}

/* Override EC provided styling as logo not displaying correctly. */
.ecl-site-header-harmonised__top > div {
  display: flex;
  align-items: flex-end;
}

.ecl-site-header-harmonised__logo-image {
  height: 3rem;
}

@media (max-width: 767px) {
  .ecl-site-header-harmonised__top {
    flex-direction: column;
    align-items: initial;
  }

  .ecl-site-header-harmonised__logo-image {
    margin-bottom: 1rem;
    max-height: 3rem;
    max-width: 12rem;
  }
}

@media (min-width: 996px) {
  .ecl-site-header-harmonised__search-container {
    flex-grow: 0;
  }
}

@media (min-width: 768px) {
  .col-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
  }

  .col2:only-child {
    grid-column: 1 / span 2;
  }

  .col-2__33-67 {
    grid-template-columns: 1fr 2fr;
  }
}

.ecl-menu__list .ecl-menu__button-caret {
  background: transparent;
}

.ecl-menu__list .ecl-menu__item--expanded .ecl-menu__button-caret {
  display: none;
}

.ecl-menu__item[aria-expanded='true'] .ecl-menu__button-caret {
  transition-delay: 0.25s;
  color: var(--color-ec-blue);
}

@media (min-width: 996px) {
  .ecl-language-list--overlay .ecl-language-list__container {
    padding-top: 6rem;
  }
}

/**
 * Ensure links set to <nolink> have default cursors rather than text select.
 */
span.ecl-menu__link {
  cursor: default;
}

/**
 * Add in styling based on EC styleguide. Can be removed if table paragraph is
 * introduced. Caused by lack of classes when adding table via wysiwyg.
 */
@media (min-width: 996px) {
  .ecl-table__head tr:first-child {
    border-bottom: 2px solid #9f9f9f;
  }
}

@media (min-width: 996px) {
  .ecl-table__head tr {
    border-bottom: 1px solid #cfcfcf;
    border-top-width: 0;
  }
}

@media (min-width: 996px) {
  .ecl-table__head tr:first-child th {
    padding-top: 1.5rem;
  }
}

@media (min-width: 996px) {
  .ecl-table__head th {
    font-weight: 700;
    padding: 0.75rem 1rem;
    text-align: start;
    vertical-align: bottom;
  }
}

@media (min-width: 996px) {
  .ecl-table tbody tr {
    border-bottom: 1px solid #cfcfcf;
    border-top-width: 0;
  }
}

.ecl-table tbody td {
  border-top: 1px solid #cfcfcf;
  display: flex;
  padding: 0.75rem;
}

.ecl-table tbody td:last-of-type {
  border-bottom: 1px solid #cfcfcf;
  margin-bottom: 1.5rem;
}

@media (min-width: 996px) {
  .ecl-table tbody td {
    border-width: 0;
    display: table-cell;
    padding: 0.75rem 2rem 0.75rem 1rem;
  }
}

/* Override EC providing styling to ensure icon isn't removed on hover. */
.ecl-social-media-follow__icon-hover,
.ecl-social-media-follow__link:hover .ecl-social-media-follow__icon {
  display: inherit;
}

.ecl-social-media-follow__description {
  font-size: revert;
  line-height: var(--line-height-headings);
}

.ecl-social-media-follow__link {
  font-size: unset;
}

.ecl-site-header__language-selector {
  cursor: pointer;
}


.ecl-message + .ecl-message {
  margin-block-start: 1rem;
}

.big-blue {
  font-size: 125%;
  color: var(--color-ec-blue-75);
}

h2.big-blue {
  font-size: calc(1.75rem * 1.25);
}

.ec-harmonised-table {
  border-collapse: collapse;
  margin-bottom: 2rem;
  width: 100%;
}

.ec-harmonised-table tr:not(:first-child) {
  border-top: 1px solid var(--color-ec-grey-25);
}

.ec-harmonised-table td {
  padding: 0.75rem 2rem 0.75rem 1rem;
}

.ec-harmonised-table .ec-harmonised-table__title {
  background-color: var(--color-ec-blue-5);
}

.ecl-breadcrumb-harmonised__segment {
  color: #707070;
  font: normal normal 400 0.875rem/1rem arial,sans-serif;
  font-weight: 700;
}

table:not(.ecl-table) {
  border-collapse: collapse;
  border: 1px solid var(--color-ec-grey-25);
}

table:not(.ecl-table) td,
table:not(.ecl-table) th {
  padding: 0.5rem;
  text-align: unset;
  border: 1px solid var(--color-ec-grey-25);
}

table:not(.ecl-table) tbody tr:nth-child(odd) {
  background: var(--color-ec-grey-5);
}

.highlighted {
  padding: 1.5rem 2rem;
  background-color: var(--color-ec-yellow-120);
  font-weight: bold;
}

.rounded {
  --rad: 1rem;
  border-radius: var(--rad);
}

.ecl-button {
  cursor: pointer;
}

.text-icon {
  margin-right: 0.5rem;
}

/**
 * Do not want share links showing on media gallery, however EC provided JS
 * dictates the markup needs to be there.
 */
.ecl-gallery__share {
  display: none;
}
