/* Insights articles and the Insights page (generated by _blog/build.py). Loaded after the colour scheme. */

/* Text links use a darker saffron than the buttons: #a85600 keeps 4.5:1 contrast on white and on the card grey. */
:root {
  --insights-link: #a85600;
}

/* Article body: section headings sized for reading, not for a hero. */
.blog-read h2 {
  font-size: 28px;
  line-height: 1.3;
  margin: 40px 0 14px;
}

.blog-read h3 {
  font-size: 21px;
  line-height: 1.35;
  margin: 28px 0 10px;
}

.blog-read p,
.blog-read li {
  color: #4a4b57;
}

/* "In short": the answer first, for readers and answer engines. */
.insights-summary {
  background: #f7f7f8;
  border-left: 4px solid var(--primary-color);
  border-radius: 6px;
  padding: 20px 24px;
  margin-bottom: 28px;
}

.blog-read .insights-summary h2 {
  font-size: 15px;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 0 0 6px;
}

.insights-summary p {
  margin: 0;
}

/* Tables written in Markdown. */
.insights-table {
  font-size: 15px;
  margin: 8px 0 24px;
}

.insights-table th {
  background: #f7f7f8;
  color: #111013;
  font-weight: 600;
}

.insights-table td,
.insights-table th {
  padding: 10px 14px;
  vertical-align: top;
}

/* Share and subscribe buttons. */
.insights-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
}

.insights-share-label {
  font-weight: 600;
  color: #111013;
  margin-right: 4px;
}

.insights-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid #dcdce0;
  border-radius: 999px;
  color: #111013;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition: border-color .2s, color .2s;
}

.insights-share-btn:hover,
.insights-share-btn:focus {
  border-color: var(--primary-color);
  color: var(--insights-link);
}

.insights-share-btn i {
  color: var(--insights-link);
}

/* Insights page cards. */
.insights-card {
  background: #f7f7f8;
  border-radius: 8px;
  padding: 32px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.insights-card h2 {
  font-size: 22px;
  line-height: 1.35;
  margin-bottom: 12px;
}

.insights-card h2 a {
  color: #111013;
}

.insights-card h2 a:hover {
  color: var(--insights-link);
}

.insights-card p {
  color: #4a4b57;
}

.insights-meta {
  font-size: 14px;
  color: #6b6c7a !important;
  margin-bottom: 8px;
}

.insights-more {
  margin-top: auto;
  font-weight: 600;
  color: var(--insights-link);
}

/* Links inside articles: the darker saffron, underlined on hover. */
.blog-read a {
  color: var(--insights-link);
}

.blog-read a:hover {
  text-decoration: underline;
}

/* Article titles are questions and run long: keep them to a few lines on phones. */
@media (max-width: 767px) {
  #subheader h1 {
    font-size: 34px;
    line-height: 1.2;
  }
}
