/* Rich text (Tiptap content) on article and product pages. Matches obio.css: Manrope, forest green, light paper surfaces.
   Loaded only on pages with rich text. Nothing here may cause horizontal overflow at 390px: media is fluid, tables scroll
   inside .rt-table, long words/URLs wrap. */
.rt{overflow-wrap:anywhere;min-width:0}
/* The mobile article grid column is 1fr (min-content sized): let it shrink so wide tables scroll inside .rt-table. */
.article-layout>*,.article-content{min-width:0}
.rt>*:first-child{margin-top:0}
.rt h2{font-size:28px;letter-spacing:-.03em;line-height:1.2;color:var(--forest-deep);margin:46px 0 14px;scroll-margin-top:100px}
.rt h3{font-size:21px;letter-spacing:-.02em;line-height:1.3;color:var(--forest-deep);margin:34px 0 10px;scroll-margin-top:100px}
.rt h4{font-size:17px;line-height:1.4;color:var(--forest);margin:26px 0 8px;scroll-margin-top:100px}
.rt p{margin:0 0 18px}
.rt a{color:var(--leaf);font-weight:600;text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.rt a:hover{color:var(--forest)}
.rt a:focus-visible{outline:2px solid var(--forest);outline-offset:2px;border-radius:3px}
.rt ul,.rt ol{padding-left:22px;margin:0 0 18px}
.rt li{margin-bottom:8px}
.rt li>p{margin:0 0 6px}
.rt li::marker{color:var(--leaf)}
.rt blockquote{margin:28px 0;padding:20px 24px;border-left:3px solid var(--leaf);background:var(--paper);border-radius:0 12px 12px 0;font-size:16px;color:var(--forest)}
.rt blockquote>*:last-child{margin-bottom:0}
.rt hr{border:0;border-top:1px solid var(--line);margin:36px 0}
.rt mark{background:#eef8b8;color:inherit;padding:0 .15em;border-radius:3px}
.rt code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.88em;background:var(--paper);border:1px solid var(--line);border-radius:6px;padding:.1em .35em}
.rt pre{background:#0f2a20;color:#e9f1ec;border-radius:12px;padding:16px 18px;overflow-x:auto;margin:0 0 22px;font-size:14px;line-height:1.6;max-width:100%}
.rt pre code{background:none;border:0;padding:0;color:inherit;font-size:inherit}
.rt sub,.rt sup{font-size:.72em;line-height:0}

/* Figures: width small | normal | wide | full, align left | center | right */
.rt-figure{margin:30px 0}
.rt-figure img{display:block;width:100%;height:auto;border-radius:14px;background:var(--paper)}
.rt-figure figcaption{font-size:13px;line-height:1.5;color:var(--muted);margin-top:10px;text-align:center}
.rt-figure a{display:block;text-decoration:none}
.rt-w-small{max-width:360px}
.rt-w-normal{max-width:100%}
.rt-a-center{margin-left:auto;margin-right:auto}
.rt-a-right{margin-left:auto}
.rt-w-small.rt-a-left{float:left;margin:6px 26px 16px 0;width:46%}
.rt-w-small.rt-a-right{float:right;margin:6px 0 16px 26px;width:46%}
.rt-w-wide{width:min(960px,calc(100vw - 48px));max-width:none;margin-left:50%;transform:translateX(-50%)}
.rt-w-full{width:100vw;max-width:none;margin-left:50%;transform:translateX(-50%)}
.rt-w-full img{border-radius:0}
.rt h2,.rt h3,.rt hr,.rt .rt-table,.rt .rt-video,.rt-callout{clear:both}

/* Tables scroll inside their wrapper */
.rt-table{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:26px 0;border:1px solid var(--line);border-radius:12px;max-width:100%}
.rt-table:focus-visible{outline:2px solid var(--forest);outline-offset:2px}
.rt-table table{border-collapse:collapse;width:100%;min-width:480px;font-size:15px;line-height:1.5}
.rt-table th,.rt-table td{padding:11px 14px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
.rt-table th{background:var(--forest);color:#fff;font-weight:700}
.rt-table tbody tr:nth-child(even) td{background:var(--surface)}
.rt-table tr:last-child td{border-bottom:0}
.rt-table th p,.rt-table td p{margin:0}

/* YouTube (privacy-enhanced, lazy) */
.rt-video{margin:30px 0}
.rt-video iframe{display:block;width:100%;aspect-ratio:16/9;height:auto;border:0;border-radius:14px;background:#0f2a20}
.rt-video figcaption{font-size:13px;color:var(--muted);margin-top:10px;text-align:center}

/* Callouts */
.rt-callout{margin:26px 0;padding:16px 20px 16px 52px;border-radius:12px;position:relative;font-size:16px;border:1px solid}
.rt-callout>*:last-child{margin-bottom:0}
.rt-callout:before{position:absolute;left:18px;top:16px;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font:800 13px/1 Manrope,sans-serif;color:#fff}
.rt-callout-info{background:#eef4f8;border-color:#cfdde7;color:#1d3a4d}
.rt-callout-info:before{content:"i";background:#2b5d7d}
.rt-callout-tip{background:#f1f6e4;border-color:#d6e3b5;color:#24401a}
.rt-callout-tip:before{content:"✓";background:var(--leaf)}
.rt-callout-warning{background:#fbf3e3;border-color:#ecd6a6;color:#5a3d07}
.rt-callout-warning:before{content:"!";background:#9a6400}

/* Article TOC: H3 entries indented */
.article-toc a.toc-h3{padding-left:14px;font-size:12px}

/* Product page long description */
.product-story-inner{max-width:760px;margin:0 auto;font-size:17px;line-height:1.75;color:#2a3a33}
.product-story-inner>h2{font-size:clamp(28px,4vw,40px);letter-spacing:-.03em;color:var(--forest-deep);margin:0 0 22px}

@media (max-width:640px){
  .rt h2{font-size:24px}
  .rt h3{font-size:19px}
  .rt-w-small.rt-a-left,.rt-w-small.rt-a-right{float:none;width:auto;margin:26px auto}
  .rt-w-wide{width:calc(100vw - 32px)}
  .rt-callout{padding:14px 16px 14px 46px}
  .rt-callout:before{left:14px}
  .rt-table table{font-size:14px}
}
