/**
 * Red House article reading layout
 * Version: 1.2.1
 *
 * Scope: .rh-article
 * Form chrome comes from css/rh-landing.css (.rh-landing).
 */

.rh-article-template #main-content.rh-article {
  background: #fff;
  padding: 0 0 4rem;
  color: #1A2A44;
}

.rh-article-template .entry-title.main_title {
  display: none !important;
}

.rh-article-wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.rh-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 3rem;
  align-items: start;
  padding-top: 2.5rem;
}

.rh-article-header {
  padding: 0 0 1.5rem;
  margin-bottom: 0.5rem;
  background: transparent;
  border-bottom: 0;
}

.rh-article-eyebrow {
  margin: 0 0 0.7rem;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #C8102E;
}

.rh-article-title {
  margin: 0 0 0.8rem;
  max-width: 18em;
  font-family: 'aleoregular', Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.7rem);
  line-height: 1.15;
  font-weight: 500;
  color: #1A2A44;
}

.rh-article-meta {
  margin: 0;
  color: #5c6b80;
  font-size: 14px;
}

.rh-article-meta span + span {
  margin-left: 0.35rem;
}

.rh-article-figure {
  margin: 1.4rem 0 0;
  max-width: 42rem;
}

.rh-article-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.rh-article-body {
  max-width: 42rem;
  font-size: 1.0625rem;
  line-height: 1.7;
}

.rh-article-body,
.rh-article-body p,
.rh-article-body li {
  color: #1A2A44;
}

.rh-article-body h2,
.rh-article-body h3 {
  font-family: 'aleoregular', Georgia, serif;
  color: #1A2A44;
  line-height: 1.25;
  scroll-margin-top: calc(var(--rh-header-offset, 0px) + 1.25rem);
}

.rh-article-body h2 {
  margin: 2.2rem 0 0.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid #e6e6e6;
  font-size: 1.55rem;
  color: var(--rh-red, #C8102E);
}

.rh-article-body h3 {
  margin: 1.6rem 0 0.55rem;
  font-size: 1.15rem;
}

.rh-article-body p,
.rh-article-body li {
  margin-bottom: 0.9rem;
}

.rh-article-body a {
  color: #C8102E;
}

.rh-article-rail {
  position: sticky;
  top: calc(var(--rh-header-offset, 0px) + 1.25rem);
  padding: 1rem;
  background: #F8F9FA;
  border: 1px solid #e6e6e6;
  border-radius: 14px;
}

.rh-article-toc {
  margin: 0 0 1.25rem;
  padding: 0;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  background: #f8f9fa;
}

.rh-article-toc summary {
  padding: 0.85rem 1rem;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1A2A44;
  cursor: pointer;
}

.rh-article-toc-nav {
  padding: 0 1rem 0.9rem;
}

.rh-article-toc-nav ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rh-article-toc-nav a {
  display: block;
  padding: 0.35rem 0;
  color: #1A2A44;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.35;
}

.rh-article-toc-nav a:hover,
.rh-article-toc-nav a.is-current {
  color: #C8102E;
}

.rh-article-pdf {
  margin: 0 0 1.25rem;
}

.rh-article-pdf .btn-secondary,
.rh-article-connect .btn-primary {
  width: 100%;
  box-sizing: border-box;
}

.rh-article-connect {
  margin: 0 0 1.25rem;
}

.rh-article-end {
  max-width: 42rem;
  margin-top: 2.5rem;
}

.rh-article-end .cs-form-card {
  background: var(--rh-surface, #F8F9FA);
}

.rh-article-topics {
  margin: 0.4rem 0 0;
}

.rh-article-topics h2 {
  margin: 0 0 0.55rem;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1A2A44;
}

.rh-article-topics ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rh-article-topics a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #fff;
  color: var(--rh-navy, #1A2A44);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.rh-article-topics a::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--rh-red, #C8102E);
}

.rh-article-topics a:hover {
  color: var(--rh-red, #C8102E);
}

.rh-article-related {
  margin: 1.25rem 0 0;
}

.rh-article-related h2 {
  margin: 0 0 0.45rem;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1A2A44;
}

.rh-article-related ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rh-article-related a {
  display: block;
  padding: 0.28rem 0;
  color: #1A2A44;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.35;
}

.rh-article-related a:hover {
  color: #C8102E;
}

@media only screen and (max-width: 980px) {
  .rh-article-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .rh-article-rail {
    display: contents;
    position: static;
  }

  .rh-article-toc {
    order: -1;
  }

  .rh-article-toc:not([open]) .rh-article-toc-nav {
    display: none;
  }

  .rh-article-pdf,
  .rh-article-connect,
  .rh-article-topics,
  .rh-article-related {
    order: 2;
  }
}

@media only screen and (min-width: 981px) {
  .rh-article-toc summary {
    list-style: none;
    pointer-events: none;
  }

  .rh-article-toc summary::-webkit-details-marker {
    display: none;
  }
}
