/*
 * Article content styles shared by blog posts that have no page-specific CSS
 * (the plugin guides). Layout — column, contents list, headings scale — comes
 * from /css/article-layout.css (body.md-read).
 */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Libre Franklin', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #0f172a;
  line-height: 1.7;
}

.article a { color: #0f766e; text-underline-offset: 2px; }
.article a:hover { color: #115e59; }

.top-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.top-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #fff;
  color: #334155 !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.top-link:hover { border-color: #0f766e; color: #0f766e !important; }
.top-link.primary { border-color: #0f766e; background: #0f766e; color: #fff !important; }

.meta { margin-bottom: 4px; color: #64748b; font-size: 14px; }

.article p, .article li { color: #334155; }
.article p { margin: 0 0 14px; }
.article ul, .article ol { margin: 0 0 16px 22px; }
.article li { margin: 6px 0; }
.article strong { color: #0f172a; }
.article code {
  padding: 1px 6px;
  border-radius: 6px;
  background: #f1f5f9;
  font: 600 0.88em ui-monospace, SFMono-Regular, Menlo, monospace;
}

.answer-box {
  margin: 0 0 24px;
  padding: 16px 18px;
  border-left: 4px solid #0f766e;
  border-radius: 12px;
  background: #f0fdfa;
}
.answer-box p:last-child { margin-bottom: 0; }

.callout {
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  font-size: 0.95em;
}
.callout p:last-child { margin-bottom: 0; }

.shot { margin: 22px 0 26px; }
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #f5f5f7;
}
.shot figcaption { margin-top: 8px; color: #6e6e73; font-size: 13px; line-height: 1.5; }

.facts-table { width: 100%; margin: 8px 0 20px; border-collapse: collapse; font-size: 15px; }
.facts-table th, .facts-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: top;
}
.facts-table th { width: 34%; color: #0f172a; font-weight: 700; }
.table-wrap { overflow-x: auto; }

.faq h3 { margin-top: 22px; }

.internal-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.internal-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.md-updated { color: #64748b; font-size: 13px; }

/* "Try it here" tool embed (/js/tool-embed.js): screenshot until clicked, then the live tool. */
.tool-embed { margin: 22px 0 26px; }
.tool-embed__start {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  background: #f5f5f7;
  cursor: pointer;
}
.tool-embed__start img { display: block; width: 100%; height: auto; transition: filter 0.2s ease; }
.tool-embed__start:hover img, .tool-embed__start:focus-visible img { filter: brightness(0.94); }
.tool-embed__cta {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  background: #0f766e;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.22);
  color: #fff;
  font: 700 15px/1 'Libre Franklin', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.tool-embed__start:focus-visible { outline: 3px solid #0f766e; outline-offset: 2px; }
.tool-embed iframe {
  display: block;
  width: 100%;
  height: min(78vh, 760px);
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
}
.tool-embed figcaption { margin-top: 8px; color: #6e6e73; font-size: 13px; line-height: 1.5; }
