/* widen only pages that set `classes: wide` */
@media (min-width:1024px){
  /* outer container cap */
  .layout--single .page.wide .wrap{ max-width:1400px !important; }

  /* inner containers */
  .layout--single .page.wide .page__inner{ max-width:1200px !important; }
  .layout--single .page.wide .page__content{ max-width:1100px !important; }
}

/* ── Maroon hyperlinks; underline matches text color ── */
.page__content a:not(.btn),
.page__content a:visited:not(.btn),
.archive__item-title a,
.archive__item-title a:visited,
.footer a,
.footer a:visited,
a.skip-link {
  /*color: #a00000;*/                 /* maroon text */
  color: #800000;                 /* maroon text */
  text-decoration-color: currentColor; /* underline same color as text */
}

.page__content a:hover:not(.btn),
.archive__item-title a:hover,
.footer a:hover,
a.skip-link:hover {
  color: #a00000;                 /* lighter maroon on hover */
  text-decoration-color: currentColor; /* underline follows text color */
}

.page__content a:active:not(.btn),
.archive__item-title a:active,
.footer a:active {
  color: #a00000;                 /* lighter maroon on hover */
  text-decoration-color: currentColor; /* underline follows text color */
}

/* ── Top navigation: exactly match main text color/opacity; maroon on hover ── */

/* Avoid theme dimming so we keep the same visual weight as body text */
.greedy-nav .visible-links > li,
.greedy-nav .hidden-links > li {
  opacity: 1; /* don't stack extra opacity on top of body text's rgba */
}

/* ── Top-nav underline/indicator should match link color ── */
.greedy-nav .visible-links > li > a,
.greedy-nav .hidden-links > li > a,
.masthead__menu-item a {
  position: relative;
  text-decoration-color: currentColor;     /* native underline = same color as text */
  border-bottom-color: currentColor;       /* if theme uses border-bottom */
  box-shadow: none;                        /* disable any grey inset underline */
}

/* If the theme draws the bar with ::after/::before, recolor it */
.greedy-nav .visible-links > li > a::after,
.greedy-nav .hidden-links > li > a::after,
.masthead__menu-item a::after,
.greedy-nav .visible-links > li > a::before,
.greedy-nav .hidden-links > li > a::before,
.masthead__menu-item a::before {
  background-color: currentColor !important;
  border-color: currentColor !important;
}

/* Default = same color/opacity as body text; hover = maroon */
.greedy-nav .visible-links > li > a,
.greedy-nav .hidden-links > li > a,
.masthead__menu-item a {
  color: inherit;                          /* match main text (black + same opacity) */
  transition: color 0.2s ease;
}

.greedy-nav .visible-links > li > a:hover,
.greedy-nav .visible-links > li > a:focus,
.greedy-nav .hidden-links > li > a:hover,
.greedy-nav .hidden-links > li > a:focus,
.masthead__menu-item a:hover,
.masthead__menu-item a:focus {
  color: #a00000;                          /* lighter maroon on hover */
}

details.abstract-box {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

details.abstract-box > summary {
  font-weight: 500;
  cursor: pointer;
}

details.abstract-box[open] > summary {
  margin-bottom: 0.25rem;
}

details.abstract-box > div {
  text-align: justify;
  line-height: 1.5;
  font-size: 0.9em;
  margin-top: 0;
}
