/**
 * House-style article blocks used by journal content drops.
 * Scoped to .post-content so they do not fight the rest of the theme.
 */

.post-content .mt-keytakeaways {
  background: #f1f7ed;
  border-left: 4px solid #8bc34a;
  border-radius: 8px;
  padding: 20px;
  margin: 0 0 24px;
}

.post-content .mt-keytakeaways__title {
  font-weight: 600;
  font-size: 15px;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.post-content .mt-keytakeaways ul {
  margin: 0;
  padding-left: 1.2em;
}

.post-content .mt-keytakeaways li:last-child {
  margin-bottom: 0;
}

.post-content .mt-toc {
  background: #fafafa;
  border: 1px solid #e9eaec;
  border-radius: 8px;
  padding: 20px;
  margin: 0 0 24px;
}

.post-content .mt-toc__title {
  font-weight: 600;
  font-size: 15px;
  margin: 0 0 12px;
}

.post-content .mt-toc ul {
  margin: 0;
  padding-left: 1.2em;
}

.post-content h2[id],
.post-content h3[id] {
  scroll-margin-top: 96px;
}

.post-content .mt-table {
  margin: 0 0 24px;
  padding: 0;
}

.post-content .mt-table__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.post-content .mt-table table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  border: 1px solid #e9eaec;
  font-size: 14px;
  line-height: 1.4;
}

.post-content .mt-table figcaption {
  text-align: left;
  font-size: 12px;
  line-height: 1.5;
  margin: 10px 2px 0;
}

.post-content .mt-table thead th {
  background: #15172e;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  text-align: left;
  padding: 12px 14px;
  border: 0;
}

.post-content .mt-table tbody th {
  font-weight: 600;
  text-align: left;
}

.post-content .mt-table tbody th,
.post-content .mt-table tbody td {
  padding: 12px 14px;
  border: 0;
  border-top: 1px solid #e9eaec;
  vertical-align: top;
}

.post-content .mt-table tbody tr:nth-child(even) {
  background: #fafafa;
}

.post-content .mt-example {
  background: #f3f5f9;
  border-radius: 8px;
  padding: 16px 18px;
  margin: 0 0 16px;
}

.post-content .mt-faq {
  border-top: 1px solid #e9eaec;
  margin: 0 0 16px;
}

.post-content .mt-faq__item {
  border-bottom: 1px solid #e9eaec;
  margin: 0;
}

.post-content .mt-faq__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.4;
  min-height: 44px;
  padding: 12px 0;
  box-sizing: border-box;
}

.post-content .mt-faq__q::-webkit-details-marker {
  display: none;
}

.post-content .mt-faq__q::after {
  content: '';
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-right: 2px solid #3d7a1f;
  border-bottom: 2px solid #3d7a1f;
  transform: rotate(45deg);
  margin-bottom: 4px;
}

.post-content .mt-faq__item[open] > .mt-faq__q::after {
  transform: rotate(-135deg);
  margin-bottom: 0;
  margin-top: 4px;
}

.post-content .mt-faq__a {
  padding: 0 0 16px;
}

.post-content .mt-faq__a p:last-child {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .post-content .mt-keytakeaways,
  .post-content .mt-toc {
    padding: 24px;
  }

  .post-content .mt-table {
    margin: 0 0 32px;
  }
}
