.container:has(.tp-ai-guide) { max-width:964px; }
.stranica:has(.tp-ai-guide) > h1 { text-wrap:balance; }
.stranica > .tp-ai-kicker { margin:0 0 9px; }
.tp-ai-guide { --tp-ai-accent:var(--brand-600); color:var(--ink-2); line-height:1.65; }
.tp-ai-guide h2 {
  margin:clamp(28px,5vw,46px) 0 12px;
  font-size:clamp(22px,3.1vw,30px);
  text-wrap:balance;
}
.tp-ai-guide h3 { text-wrap:balance; }
.tp-ai-guide :is(section,nav)[id] { scroll-margin-top:8px; }
.tp-ai-guide a:not(.btn) { color:var(--tp-ai-accent); text-decoration:underline; text-underline-offset:.18em; }
.tp-ai-guide a:focus-visible,.tp-ai-table:focus-visible { outline:2px solid var(--tp-ai-accent); outline-offset:3px; }
.tp-ai-kicker { color:var(--brand-600); font-size:.87rem; font-weight:700; line-height:1.4; }
.tp-ai-guide .tp-ai-lead { font-size:clamp(17px,2.3vw,21px); color:var(--ink); line-height:1.5; }
.tp-ai-guide figure { margin:18px 0; }
.tp-ai-guide figure img { width:100%; margin:0; border-radius:var(--r-md); }
.tp-ai-guide figcaption,.tp-ai-guide .tp-ai-small { color:var(--muted); font-size:.875em; line-height:1.5; }
.tp-ai-guide figcaption { margin-top:8px; }
.tp-ai-toc,.tp-ai-chart,.tp-ai-panel {
  padding:clamp(14px,3vw,22px);
  border:1px solid var(--line);
  border-radius:var(--r-md);
  background:var(--bg);
  min-width:0;
}
.tp-ai-toc { margin:20px 0; }
.tp-ai-toc ol { margin:6px 0 0; }
.tp-ai-guide .tp-ai-toc a { display:inline-block; padding-block:5px; }
.tp-ai-table { overflow:auto; max-width:100%; margin:16px 0; border:1px solid var(--line); border-radius:var(--r-md); }
.tp-ai-table table { display:table; min-width:490px; margin:0; line-height:1.45; }
.tp-ai-table table:not(:has(thead th:nth-child(3))) { min-width:0; }
.tp-ai-table caption { padding:10px 12px; text-align:start; color:var(--ink); font-weight:650; }
.tp-ai-table :is(th,td) { padding:9px 10px; vertical-align:top; }
.tp-ai-table thead th { background:var(--bg); }
.tp-ai-table tbody th { font-weight:600; }
.tp-ai-chart :is(h3,p),.tp-ai-panel h3 { margin:0 0 8px; }
.tp-ai-chart-title,.tp-ai-bar-label { display:flex; justify-content:space-between; align-items:baseline; gap:10px; }
.tp-ai-chart-title strong,.tp-ai-config-value { font-size:1.36em; line-height:1.2; font-weight:750; color:var(--tp-ai-accent); }
.tp-ai-chart-title strong,.tp-ai-bar-label b { white-space:nowrap; font-variant-numeric:tabular-nums; }
.tp-ai-bar-label { margin:8px 0 4px; font-size:.9em; }
.tp-ai-track { height:14px; background:var(--line); border-radius:999px; overflow:hidden; }
.tp-ai-fill { width:var(--tp-width); height:100%; background:var(--tp-ai-accent); }
.tp-ai-old { background:var(--muted); }
.tp-ai-memory-row + .tp-ai-memory-row { border-top:1px solid var(--line); padding-top:3px; }
.tp-ai-memory-row p { margin:5px 0 8px; font-size:.9em; }
.tp-ai-memory-row:last-child p { margin-bottom:0; }
.tp-ai-two,.tp-ai-configs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin:18px 0; }
.tp-ai-guide .tp-ai-two figure { margin:0; }
.tp-ai-panel img + h3 { margin-top:12px; }
.tp-ai-panel p:last-child,.tp-ai-cta p:last-child { margin-bottom:0; }
.tp-ai-preferred { border-color:var(--tp-ai-accent); background:var(--brand-50); }
.tp-ai-cta h3 { margin-top:0; }
.tp-ai-guide .tp-ai-cta .btn-brand { background:var(--tp-ai-accent); color:var(--card); }
@media(max-width:620px) {
  .tp-ai-two,.tp-ai-configs { grid-template-columns:minmax(0,1fr); }
  .tp-ai-table :is(th,td) { padding:8px; }
}
