/* Styles for the custom article blocks rendered by blog.py (_CUSTOM).
   Separate from the inline _CSS string because these grow with every new block type, and an
   external file is fetched once and cached across the whole blog rather than re-sent with each
   page. Layout and typography stay inline in blog.py, where they are small enough to be worth
   saving the request. */

.bk { margin: 28px 0; }
.bk-label {
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--fg-3); margin: 0 0 10px;
}

/* FAQ — native <details>, no JavaScript. Crawlers read collapsed answers. */
.bk-faq { border-top: 1px solid var(--border-subtle); }
.bk-faq details { border-bottom: 1px solid var(--border-subtle); }
.bk-faq summary {
  cursor: pointer; padding: 14px 0; font-weight: 600; color: var(--fg-0);
  list-style: none; position: relative; padding-right: 28px;
}
.bk-faq summary::-webkit-details-marker { display: none; }
.bk-faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 12px;
  color: var(--fg-3); font-size: 18px; line-height: 1;
}
.bk-faq details[open] summary::after { content: "\2212"; }
.bk-faq details p { margin: 0 0 14px; color: var(--fg-2); }

/* Expert tip */
.bk-tip {
  background: var(--info-bg); border-left: 3px solid var(--info);
  border-radius: 0 10px 10px 0; padding: 16px 18px;
}
.bk-tip p { margin: 0; color: var(--fg-1); }
.bk-tip cite { display: block; margin-top: 10px; font-style: normal; font-size: 14px; color: var(--fg-3); }

/* Comparison table — scrolls sideways on a phone instead of breaking the layout */
.bk-table { overflow-x: auto; }
.bk-table table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.bk-table th, .bk-table td {
  text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}
.bk-table th { background: var(--bg-2); color: var(--fg-0); font-weight: 700; white-space: nowrap; }
.bk-table td { color: var(--fg-1); }
.bk-table tbody tr:last-child td { border-bottom: none; }
.bk-table figcaption { margin-top: 8px; font-size: 13.5px; color: var(--fg-3); }

/* Step-by-step */
.bk-steps ol { list-style: none; counter-reset: step; padding: 0; margin: 0; }
.bk-steps li {
  counter-increment: step; position: relative; padding: 0 0 18px 44px; margin: 0;
  border-left: 1px solid var(--border-subtle); margin-left: 13px;
}
.bk-steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.bk-steps li::before {
  content: counter(step); position: absolute; left: -14px; top: -2px;
  width: 27px; height: 27px; border-radius: 50%; background: var(--brand); color: #fff;
  font-size: 13px; font-weight: 700; display: grid; place-items: center;
}
.bk-steps strong { display: block; color: var(--fg-0); margin-bottom: 3px; }
.bk-steps span { color: var(--fg-2); }

/* CTA banner */
.bk-cta {
  background: var(--brand-soft); border: 1px solid var(--border-subtle);
  border-radius: 14px; padding: 24px; text-align: center;
}
.bk-cta h3 { font-family: var(--font-display); font-size: 21px; color: var(--fg-0); margin: 0 0 6px; }
.bk-cta p { color: var(--fg-2); margin: 0 0 16px; }
.bk-btn {
  display: inline-block; background: var(--brand-grad); color: #fff;
  font-weight: 700; font-size: 15px; text-decoration: none;
  padding: 11px 24px; border-radius: 10px;
}
.bk-btn:hover { filter: brightness(1.07); }

@media (max-width: 560px) {
  .bk-cta { padding: 20px 16px; }
  .bk-steps li { padding-left: 38px; }
}
