/* Still Writers — Blog Post: Key Takeaways callout + inline Table of Contents */

.swtoc-keytakeaways {
  background: rgba(170, 212, 252, 0.22);
  border: 1px solid #aad4fc;
  border-radius: 14px;
  padding: 22px 26px 24px;
  margin: 20px 0 32px;
}

.swtoc-keytakeaways h2 {
  color: #0187cd;
  margin-top: 0;
}

.swtoc-keytakeaways ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.swtoc-keytakeaways li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: #333c44;
}

.swtoc-keytakeaways li:last-child {
  margin-bottom: 0;
}

.swtoc-keytakeaways li::before {
  content: "\27A4";
  position: absolute;
  left: 0;
  top: 0.05em;
  color: #0187cd;
  font-size: 0.85em;
  line-height: 1.4;
}

.swtoc-keytakeaways strong {
  color: #0b527a;
}

/* Inline table of contents box (full width, sits in the normal content flow) */
.swtoc-inline {
  background: #fffffc;
  border: 1px solid #aad4fc;
  border-radius: 14px;
  padding: 22px 24px 20px;
  margin: 0 0 32px;
  box-shadow: 0 8px 24px rgba(1, 135, 205, 0.08);
  font-family: inherit;
}

.swtoc-inline .swtoc-header {
  color: #0187cd;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 2px solid #aad4fc;
  padding-bottom: 10px;
  margin-bottom: 14px;
}

.swtoc-inline .swtoc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px 24px;
}

.swtoc-inline .swtoc-list li {
  margin: 0 0 2px;
}

.swtoc-inline .swtoc-link {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: #333c44;
  text-decoration: none;
  font-size: 0.92rem;
  line-height: 1.4;
  border-left: 3px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.swtoc-inline .swtoc-link:hover {
  background: rgba(170, 212, 252, 0.35);
  color: #0187cd;
}

.swtoc-inline .swtoc-link.is-active {
  background: rgba(170, 212, 252, 0.45);
  color: #0187cd;
  border-left-color: #0187cd;
  font-weight: 600;
}

.swtoc-contact-wrap {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e7f2fb;
  text-align: center;
}

.swtoc-contact-btn {
  display: inline-block;
  text-align: center;
  background: #0187cd;
  color: #fffffc !important;
  font-weight: 700;
  padding: 13px 30px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(1, 135, 205, 0.25);
  transition: background 0.15s ease, transform 0.15s ease;
}

.swtoc-contact-btn:hover {
  background: #0170ac;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .swtoc-inline .swtoc-list {
    grid-template-columns: 1fr;
  }
  .swtoc-keytakeaways {
    padding: 18px 20px 20px;
  }
}
