:root {
  --cassiopeia-color-primary: #496854;
  --cassiopeia-color-link: #815735;
  --cassiopeia-color-hover: #9f0038;
  --intermag-paper: #fffefb;
  --intermag-ink: #233d49;
  --intermag-green: #6f8d62;
  --intermag-brown: #b28c69;
}

body.site {
  background: #c3a181;
  color: var(--intermag-ink);
  font-family: Verdana, Arial, sans-serif;
  font-size: 0.96rem;
}

.container-header {
  background: #f8f4ed;
  background-image: none;
  border-top: 7px solid var(--intermag-green);
  box-shadow: 0 2px 14px rgb(50 35 24 / 18%);
}

.container-header .grid-child,
.container-banner,
.site-grid,
.container-footer .grid-child {
  max-width: 980px;
}

.container-header .navbar-brand {
  padding: 1.25rem 0 1rem;
}

.container-header .navbar-brand a.brand-logo {
  color: var(--intermag-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1;
  text-decoration: none;
  text-shadow: none;
}

.container-header .navbar-brand a.brand-logo::after {
  color: #71806e;
  content: "  ·  analyses et interventions";
  font-family: Verdana, Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.container-header .container-nav {
  background: var(--intermag-green);
  max-width: none;
  padding-inline: max(calc((100% - 980px) / 2), 1rem);
}

.container-header .mod-menu > li > a {
  color: #fff;
  font-size: 0.93rem;
  letter-spacing: 0.015em;
  padding: 0.9rem 0.9rem;
}

.container-header .mod-menu > li.active > a,
.container-header .mod-menu > li > a:hover,
.container-header .mod-menu > li > a:focus {
  background: rgb(255 255 255 / 16%);
  color: #fff;
}

.container-header .mod-menu__sub {
  background: #fffdf9;
  border-color: #d6c7b8;
  box-shadow: 0 10px 24px rgb(49 35 24 / 20%);
}

.container-header .mod-menu__sub a {
  color: var(--intermag-ink);
}

.container-banner {
  margin: 1.6rem auto 0;
}

.intermag-hero {
  background: #fff;
  border: 1px solid #aa8d70;
  box-shadow: 0 7px 22px rgb(52 36 23 / 22%);
  line-height: 0;
  overflow: hidden;
}

.intermag-hero img {
  display: block;
  height: auto;
  width: 100%;
}

.site-grid {
  background: var(--intermag-paper);
  box-shadow: 0 8px 24px rgb(52 36 23 / 20%);
  margin-bottom: 2rem;
  margin-top: 1.35rem;
  padding: clamp(1.25rem, 4vw, 2.6rem);
}

.com-content-article__body img,
.blog-items img {
  height: auto;
  max-width: 100%;
}

/* Articles: modernisation fidèle au gabarit HigherGround historique. */
.view-article .container-component {
  margin-inline: auto;
  max-width: 790px;
  width: 100%;
}

.view-article .com-content-article > .page-header {
  border-bottom: 1px dotted #c6c6c6;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
}

.view-article .com-content-article > .page-header h1 {
  color: #617d57;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: clamp(1.85rem, 4vw, 2.55rem);
  font-weight: 500;
  line-height: 1.12;
  margin: 0;
}

.com-content-article__body {
  font-size: 1rem;
  line-height: 1.65;
}

.com-content-article__body p {
  margin: 0 0 1rem;
}

.com-content-article__body h2,
.com-content-article__body h3,
.com-content-article__body h4 {
  font-family: "Trebuchet MS", Verdana, sans-serif;
  line-height: 1.2;
  margin: 1.65rem 0 0.7rem;
}

.com-content-article__body h2 {
  color: #617d57;
  font-size: 1.55rem;
  text-transform: uppercase;
}

.com-content-article__body h3 {
  color: #617d57;
  font-size: 1.35rem;
  font-weight: 500;
}

.com-content-article__body h4 {
  color: #42535a;
  font-size: 1.08rem;
  text-transform: uppercase;
}

.com-content-article__body ul,
.com-content-article__body ol {
  margin: 0.6rem 0 1.15rem;
  padding-left: 1.6rem;
}

.com-content-article__body li {
  margin-bottom: 0.35rem;
}

.com-content-article__body img:not(.emoji) {
  background: transparent;
  border: 2px solid var(--intermag-brown);
  box-sizing: border-box;
  padding: 5px;
}

.com-content-article__body figure {
  margin: 1.4rem auto;
  max-width: 100%;
}

.com-content-article__body figcaption {
  color: #657078;
  font-size: 0.83rem;
  margin-top: 0.45rem;
  text-align: center;
}

.com-content-article__body blockquote,
.com-content-article__body .cadre {
  background: #f3eee4;
  border: 1px solid #e0d5c6;
  border-left: 5px solid #94ae87;
  color: #45565d;
  margin: 1.35rem 0;
  padding: 1rem 1.2rem;
}

.com-content-article__body .cadre > :first-child,
.com-content-article__body blockquote > :first-child {
  margin-top: 0;
}

.com-content-article__body .cadre > :last-child,
.com-content-article__body blockquote > :last-child {
  margin-bottom: 0;
}

.com-content-article__body table {
  border-collapse: collapse;
  display: block;
  margin: 1.25rem 0;
  max-width: 100%;
  overflow-x: auto;
  width: max-content;
}

.com-content-article__body th {
  background: #7a9b6c;
  color: #fff;
  padding: 0.65rem 0.8rem;
  text-align: left;
}

.com-content-article__body td {
  border-bottom: 1px solid #ddd5ca;
  padding: 0.6rem 0.8rem;
}

.view-article .pagenavigation {
  border-top: 1px dotted #c6c6c6;
  margin-top: 2rem;
  padding-top: 1rem;
}

.view-article .pagenavigation .btn {
  background: #6f8d62;
  border: 0;
  color: #fff;
}

.com-finder .awesomplete input,
.com-finder input[type="text"] {
  border: 1px solid #bca78f;
  min-height: 2.7rem;
}

h1, h2, h3, h4, h5, h6,
.page-header {
  color: #59734f;
  font-family: Georgia, "Times New Roman", serif;
}

a:not(.btn) {
  text-decoration-color: rgb(129 87 53 / 35%);
  text-underline-offset: 0.18em;
}

.container-footer {
  background: #29444d;
  background-image: none;
  color: #f8f4ed;
  margin-top: 0;
}

.intermag-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.5rem;
  justify-content: space-between;
  width: 100%;
}

.intermag-footer a {
  color: #fff;
}

@media (max-width: 991.98px) {
  .container-header .navbar-brand a.brand-logo::after {
    display: block;
    margin-top: 0.55rem;
  }

  .container-header .container-nav {
    padding: 0.6rem 1rem;
  }
}

@media (max-width: 575.98px) {
  .container-banner {
    margin-top: 0;
  }

  .intermag-hero {
    border-inline: 0;
  }

  .site-grid {
    margin-top: 0;
    padding: 1.15rem;
  }

  .view-article .com-content-article > .page-header h1 {
    font-size: 1.75rem;
  }

  .com-content-article__body {
    font-size: 0.98rem;
    line-height: 1.58;
  }

  .com-content-article__body p,
  .com-content-article__body li {
    text-align: left !important;
  }
}
