/* Steward Well blog. Written by seo-content-engine (templates/sws/blog-styles.css).
   Sits on /styles.css + /assets/osmo.css + /assets/pages.css, the same stack as
   every generated page, and uses their tokens only: no colour or font is defined
   here. Styles only the markup render_html.py emits itself (capsule, article
   body, closing CTA, index cards). */

/* ---- answer capsule (render_html._capsule_html) ---- */
.tk-capsule {
  margin-top: 30px; padding: 26px 28px; background: var(--ivory);
  border: 1px solid var(--line-l); border-left: 3px solid var(--blue);
  font-size: clamp(16.5px, 1.6vw, 19px); line-height: 1.65; color: var(--ink);
}
.tk-capsule::before {
  content: "The short answer"; display: block; margin-bottom: 10px;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 700; color: var(--blue-3);
}

/* ---- article body (model HTML: h2, h3, p, ul, ol, table, strong, a) ---- */
.sw-body { margin-top: 26px; }
.sw-body > :first-child { margin-top: 0; }
.sw-body h2 {
  font-family: var(--serif); font-weight: 400; color: var(--ink);
  font-size: clamp(25px, 2.6vw, 33px); line-height: 1.18; margin-top: 52px;
}
.sw-body h3 {
  font-family: var(--serif); font-weight: 400; color: var(--ink);
  font-size: clamp(20px, 1.9vw, 24px); line-height: 1.25; margin-top: 34px;
}
.sw-body h2 + p, .sw-body h3 + p { margin-top: 14px; }
.sw-body strong { color: var(--ink); }
.sw-body blockquote {
  margin-top: 22px; padding-left: 18px; border-left: 2px solid var(--gold);
  color: rgba(43, 32, 25, .72);
}
.sw-body table {
  display: block; overflow-x: auto; max-width: 100%; margin-top: 22px;
  border-collapse: collapse; font-size: 14.5px; line-height: 1.5;
  border: 1px solid var(--line-l); background: var(--ivory);
}
.sw-body th, .sw-body td {
  text-align: left; padding: 13px 16px; vertical-align: top;
  border-bottom: 1px solid var(--line-l); min-width: 140px;
}
.sw-body th {
  font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue-3); background: var(--paper-2);
}
.sw-body tr:last-child td { border-bottom: 0; }
.tk-midcta {
  margin-top: 30px !important; padding: 18px 22px; background: var(--ivory);
  border: 1px solid var(--line-l); border-left: 3px solid var(--gold);
}

/* ---- closing CTA (render_html._cta_block), on the dark pg-next band ---- */
.tk-cta {
  margin-top: clamp(56px, 7vw, 96px); padding-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line-d);
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px 32px; align-items: end;
}
.tk-cta h3 {
  font-family: var(--serif); font-weight: 400; color: var(--ivory);
  font-size: clamp(30px, 3.6vw, 52px); line-height: 1.1; max-width: 18ch;
}
.tk-cta p {
  grid-column: 1; color: rgba(245, 241, 232, .74); line-height: 1.7; max-width: 52ch;
}
.tk-cta-actions {
  grid-column: 2; grid-row: 1 / span 2; align-self: end;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end;
}
.tk-cta-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .05em;
  padding: 14px 26px; border-radius: 100px; border: 1px solid transparent;
  background: var(--blue); color: #fff;
  transition: background .35s, color .35s, border-color .35s;
}
.tk-cta-btn:hover { background: var(--blue-2); }
.tk-cta-btn-alt { background: transparent; border-color: rgba(245, 241, 232, .55); color: var(--silver); }
.tk-cta-btn-alt:hover { background: rgba(245, 241, 232, .08); border-color: var(--silver); }

/* ---- blog index cards (render_html._render_index_html) ---- */
.sw-index-wrap { max-width: 1180px; }
.sw-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px; margin-top: 30px;
}
.tk-card {
  display: flex; flex-direction: column; gap: 10px; padding: 26px 26px 28px;
  background: var(--ivory); border: 1px solid var(--line-l); color: var(--ink);
  transition: border-color .3s var(--ease-out), transform .3s var(--ease-out);
}
.tk-card:hover { border-color: var(--blue); transform: translateY(-2px); }
.tk-tag {
  font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 700; color: var(--blue-3);
}
.tk-card h2 {
  font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.22;
  color: var(--ink);
}
.tk-card p { font-size: 14.5px; line-height: 1.6; color: rgba(43, 32, 25, .72); }
.tk-date {
  margin-top: auto; padding-top: 8px; font-size: 12.5px; letter-spacing: .04em;
  color: var(--slate-d);
}

@media (max-width: 760px) {
  .tk-cta { grid-template-columns: 1fr; }
  .tk-cta p, .tk-cta-actions { grid-column: 1; grid-row: auto; }
  .tk-cta-actions { justify-content: flex-start; }
  .sw-cards { grid-template-columns: 1fr; }
  .tk-capsule { padding: 22px 20px; }
}
