/* Long-form text (blog posts and the legal pages) and the "on this page" list beside it, matching the live site.
   Breakpoints: phone < 810px, tablet 810–1439px, desktop >= 1440px. */

/* Inter 700 for <strong>; the shared layout loads 400–600 only. */

.rt { font-size: 16px; line-height: 22.4px; color: var(--teal); overflow-wrap: break-word; }
.rt > * { margin-top: 20px; }
.rt > :first-child { margin-top: 0; }
.rt strong, .rt b { font-weight: 700; }
.rt a { text-decoration: underline; text-decoration-color: rgba(68, 107, 110, .61); text-underline-offset: 2px; }
.rt a:hover { text-decoration-color: currentColor; }
.rt sup { font-size: .75em; line-height: 0; }

.rt h2, .rt h3, .rt h4, .rt h5, .rt h6 { font-family: var(--serif); font-weight: 300; color: var(--teal); text-align: left; }
.rt > h2, .rt > h3, .rt > h4, .rt > h5, .rt > h6 { margin-top: 40px; }
.rt > h2:first-child, .rt > h3:first-child { margin-top: 0; }
.rt h2 { font-size: 45.28px; line-height: 1; letter-spacing: -.04em; }
.rt h3, .rt h4 { font-size: 32px; line-height: 1; letter-spacing: -.02em; }
.rt h5 { font-size: 20.8px; line-height: 1.1; letter-spacing: -.01em; }
.rt h6 { font-size: 16px; line-height: 1.2; letter-spacing: -.01em; }

/* lists: the marker hangs in the list's left padding */
.rt > ul, .rt > ol, .rt > figure, .rt > img, .rt > .table-wrap, .rt > pre { margin-top: 32px; }
.rt ul, .rt ol { padding: 0 0 0 20.19px; }
.rt ul { list-style: disc; }
.rt ol { list-style: decimal; }
.rt ul ul { list-style: circle; }
.rt li > p { margin: 0; }
.rt li::marker { color: var(--teal); }

/* pictures and video */
.rt img { display: block; max-width: 100%; height: auto; border: 1px solid var(--stone); }
.rt figure > * + * { margin-top: 20px; }
.rt figcaption { font-size: inherit; line-height: inherit; color: var(--teal); }
.rt .post-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.rt .post-youtube a { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.rt .post-youtube img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.rt .post-youtube a::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--stone); pointer-events: none; }
.rt .yt-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 68px; height: 48px;
  font-size: 0; color: transparent;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 68 48'%3E%3Cpath d='M66.52 7.74c-.78-2.93-2.49-5.41-5.42-6.19C55.79.13 34 0 34 0S12.21.13 6.9 1.55C3.97 2.33 2.27 4.81 1.48 7.74.06 13.05 0 24 0 24s.06 10.95 1.48 16.26c.78 2.93 2.49 5.41 5.42 6.19C12.21 47.87 34 48 34 48s21.79-.13 27.1-1.55c2.93-.78 4.64-3.26 5.42-6.19C67.94 34.95 68 24 68 24s-.06-10.95-1.48-16.26z' fill='%23212121' fill-opacity='.8'/%3E%3Cpath d='M45 24 27 14v20' fill='%23fff'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.rt .post-youtube a:hover .yt-play {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 68 48'%3E%3Cpath d='M66.52 7.74c-.78-2.93-2.49-5.41-5.42-6.19C55.79.13 34 0 34 0S12.21.13 6.9 1.55C3.97 2.33 2.27 4.81 1.48 7.74.06 13.05 0 24 0 24s.06 10.95 1.48 16.26c.78 2.93 2.49 5.41 5.42 6.19C12.21 47.87 34 48 34 48s21.79-.13 27.1-1.55c2.93-.78 4.64-3.26 5.42-6.19C67.94 34.95 68 24 68 24s-.06-10.95-1.48-16.26z' fill='%23f00'/%3E%3Cpath d='M45 24 27 14v20' fill='%23fff'/%3E%3C/svg%3E");
}

/* code */
.rt code { font-family: var(--mono); }
.rt :not(pre) > code {
  padding: .1em .4em;
  background: var(--paper);
  border: 1px solid var(--stone);
  font-size: 1em; color: #231f20;
}
.rt pre {
  overflow-x: auto;
  padding: 30px 30px 30px 34px;
  background: var(--paper);
  border: 1px solid var(--stone);
  border-radius: 16px;
  font-size: 14px; line-height: 21px; color: #24292e;
  white-space: pre;
  tab-size: 4;
}
.rt pre code { font-size: inherit; }

/* tables */
.rt .table-wrap { overflow-x: auto; }
.rt table { width: 100%; border: 1px solid var(--stone); border-collapse: separate; border-spacing: 0; font-size: inherit; line-height: inherit; color: var(--teal); }
.rt th, .rt td { padding: 8px; text-align: left; vertical-align: top; font-weight: 400; }
.rt th { background: rgba(153, 153, 153, .1); }
.rt td { border-top: 1px solid var(--stone); }
.rt .ta-right { text-align: right; }
.rt .ta-center { text-align: center; }
.rt tr.is-sec td { background: rgba(153, 153, 153, .1); }
.rt tr.is-hl td { background: rgba(188, 204, 200, .35); }

/* agent transcripts (posts about tool use): the live site shows them as plain paragraphs */
.rt .chat-pair, .rt .chat-log { display: flex; flex-direction: column; gap: 20px; }
.rt .chat-pair { gap: 32px; }
.rt .chat-head { display: flex; flex-wrap: wrap; gap: 0 12px; margin-bottom: 20px; }
.rt .chat-title { font-weight: 700; }
.rt .chat-who { font: inherit; }
.rt .chat-text { margin-top: 20px; white-space: pre-wrap; }

@media (max-width: 1439px) {
  .rt { font-size: 15px; line-height: 21px; }
  .rt h2 { font-size: 40px; }
  .rt h3, .rt h4 { font-size: 28.8px; }
}
@media (max-width: 809px) {
  .rt h2 { font-size: 32px; }
  .rt h3, .rt h4 { font-size: 23.68px; }
  .rt h5 { font-size: 18px; }
}

/* ── "on this page" list, filled in by toc.js ── */
.toc { background: var(--cream); border-radius: 8px; }
.toc:empty { display: none; }
.toc ul { display: flex; flex-direction: column; gap: 12px; }
.toc li { position: relative; }
.toc li.is-sub { padding-left: 20px; }
.toc a {
  position: relative; display: block;
  padding-left: 11px;
  font-size: 15px; font-weight: 500; line-height: 19.5px; letter-spacing: -.01em;
  color: var(--teal-mid);
  transition: color .2s ease;
}
.toc a:hover { color: var(--teal); }
.toc a[aria-current="true"] { font-weight: 600; color: var(--teal); }
.toc a[aria-current="true"]::before { content: ""; position: absolute; left: 0; top: 0; width: 3px; height: 20px; border-radius: 1.5px; background: var(--red); }
