/* BrainON Notes: article hub and long-form reading layout. */

.notes-main {
  padding-bottom: 72px;
}

.notes-intro {
  max-width: 820px;
  margin: -18px auto 42px;
  color: #444;
  font-family: AvenirReg, Arial, Helvetica, sans-serif;
  font-size: 20px;
  line-height: 1.65;
  text-align: center;
}

.notes-list {
  max-width: 960px;
  margin: 0 auto;
}

.notes-card {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  min-height: 310px;
  overflow: hidden;
  border-bottom: 3px solid #cb3340;
  background: #f0f0f0;
  box-shadow: 0 0 9px 1px rgb(0 0 0 / 20%);
}

.notes-card-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px;
  background: #222;
}

.notes-card-visual img {
  display: block;
  width: 100%;
  max-width: 142px;
  height: auto;
}

.notes-card-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px 48px;
}

.notes-card-meta,
.notes-article-meta {
  margin: 0 0 12px;
  color: #777;
  font-family: AvenirReg, Arial, Helvetica, sans-serif;
  font-size: 14px;
  letter-spacing: .06em;
  line-height: 1.5;
  text-transform: uppercase;
}

.notes-card h2 {
  margin: 0 0 18px;
  color: #121212;
  font-family: PlayfairSmBold, Georgia, serif;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.22;
}

.notes-card h2 a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease-out;
}

.notes-card h2 a:hover,
.notes-card h2 a:focus {
  color: #cb3340;
  text-decoration: none;
}

.notes-card p {
  margin: 0 0 20px;
  color: #333;
  font-family: AvenirReg, Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

.notes-card-link {
  align-self: flex-start;
  color: #cb3340;
  font-family: AvenirMed, Arial, Helvetica, sans-serif;
  font-size: 15px;
  letter-spacing: .035em;
  text-decoration: none;
  text-transform: uppercase;
}

.notes-card-link::after {
  margin-left: 8px;
  content: "\2192";
  transition: margin-left .2s ease-out;
}

.notes-card-link:hover,
.notes-card-link:focus {
  color: #121212;
  text-decoration: none;
}

.notes-card-link:hover::after,
.notes-card-link:focus::after {
  margin-left: 13px;
}

.notes-article-section {
  padding-bottom: 76px;
}

.notes-article-header,
.notes-article-body,
.notes-article-footer {
  max-width: 820px;
  margin-right: auto;
  margin-left: auto;
}

.notes-article-header .inner-page-title {
  margin-bottom: 24px;
  font-size: 50px;
  line-height: 1.24;
}

.notes-deck {
  max-width: 760px;
  margin: 0 auto 22px;
  color: #555;
  font-family: Academy, Georgia, serif;
  font-size: 22px;
  font-style: italic;
  line-height: 1.55;
  text-align: center;
}

.notes-article-meta {
  margin-bottom: 42px;
  text-align: center;
}

.notes-article-meta a {
  color: #cb3340;
}

.notes-article-body {
  color: #262626;
  font-family: AvenirReg, Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.78;
}

.notes-article-body > p,
.notes-article-body > ul,
.notes-article-body > ol {
  margin-bottom: 1.45em;
}

.notes-article-body h2 {
  margin: 48px 0 20px;
  padding-bottom: 13px;
  color: #121212;
  font-family: PlayfairSmBold, Georgia, serif;
  font-size: 31px;
  font-weight: 500;
  line-height: 1.3;
  background: url("/img/small_rect_red.png") no-repeat left bottom;
}

.notes-article-body h3 {
  margin: 32px 0 14px;
  color: #121212;
  font-family: AvenirMed, Arial, Helvetica, sans-serif;
  font-size: 21px;
  line-height: 1.4;
}

.notes-article-body ul,
.notes-article-body ol {
  padding-left: 1.4em;
}

.notes-article-body li {
  margin-bottom: .55em;
  padding-left: .2em;
}

.notes-article-body li::marker {
  color: #cb3340;
}

.notes-article-body strong {
  font-family: AvenirMed, Arial, Helvetica, sans-serif;
  font-weight: 600;
}

.notes-aside {
  margin: 34px 0;
  padding: 24px 28px;
  border: 0;
  border-left: 4px solid #cb3340;
  background: #f0f0f0;
  color: #222;
  font-family: Academy, Georgia, serif;
  font-size: 21px;
  font-style: italic;
  line-height: 1.6;
}

.notes-aside p:last-child {
  margin-bottom: 0;
}

.notes-article-footer {
  margin-top: 54px;
  padding-top: 30px;
  border-top: 1px solid #ddd;
  text-align: center;
}

.notes-article-footer p {
  max-width: 680px;
  margin: 0 auto 8px;
  color: #444;
  font-family: AvenirReg, Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

.notes-back-link {
  display: inline-block;
  margin-top: 12px;
  color: #555;
  font-family: AvenirReg, Arial, Helvetica, sans-serif;
  font-size: 15px;
}

.notes-back-link:hover,
.notes-back-link:focus {
  color: #cb3340;
}

@media (max-width: 767px) {
  .notes-main,
  .notes-article-section {
    padding-bottom: 48px;
  }

  .notes-intro {
    margin-top: -12px;
    margin-bottom: 30px;
    padding-right: 8px;
    padding-left: 8px;
    font-size: 18px;
  }

  .notes-card {
    grid-template-columns: 1fr;
  }

  .notes-card-visual {
    min-height: 170px;
    padding: 25px;
  }

  .notes-card-visual img {
    max-width: 108px;
  }

  .notes-card-copy {
    padding: 30px 24px 34px;
  }

  .notes-card h2 {
    font-size: 27px;
  }

  .notes-article-header .inner-page-title {
    margin-top: 38px;
    font-size: 37px;
    line-height: 1.25;
  }

  .notes-deck {
    padding-right: 4px;
    padding-left: 4px;
    font-size: 19px;
  }

  .notes-article-meta {
    margin-bottom: 30px;
  }

  .notes-article-body {
    font-size: 17px;
    line-height: 1.72;
  }

  .notes-article-body h2 {
    margin-top: 38px;
    font-size: 27px;
  }

  .notes-aside {
    margin: 28px -4px;
    padding: 21px 20px;
    font-size: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .notes-card h2 a,
  .notes-card-link,
  .notes-card-link::after {
    transition: none;
  }
}


/* BrainON Notes V9: short title first, explanatory subtitle second. */
.notes-title-main,
.notes-title-subtitle {
  display: block;
}

.notes-title-subtitle {
  margin-top: .28em;
  font-family: PlayfairIta, Georgia, serif;
  font-size: .62em;
  font-weight: 400;
  line-height: 1.35;
}

.notes-card .notes-title-subtitle {
  font-size: .68em;
}

.notes-article-body h2 {
  text-align: left;
}
