/* Scoped tik Finemi Engine renderiui */
.finemi-post{
  max-width:980px;
  margin:0 auto;
  padding:20px 16px;
  color:#0f172a;
}

/* Progress bar */
.fm-progress{
  position:fixed;
  top:0;left:0;right:0;
  height:4px;
  z-index:99999;
  background:rgba(226,232,240,.55);
  backdrop-filter: blur(6px);
}
.fm-progress-bar{
  display:block;
  height:100%;
  width:100%;
  transform-origin:left center;
  transform:scaleX(0);
  background:rgba(59,130,246,.95);
}

/* Back to top */
.fm-top{
  position:fixed;
  right:16px;
  bottom:16px;
  z-index:99999;
  width:42px;height:42px;
  border-radius:14px;
  border:1px solid #e6eaf2;
  background:#fff;
  box-shadow:0 10px 26px rgba(15,23,42,.14);
  font-weight:900;
  cursor:pointer;
  opacity:0;
  transform:translateY(8px);
  transition:opacity .18s ease, transform .18s ease;
}
.fm-top.is-on{
  opacity:1;
  transform:translateY(0);
}

/* Global links */
.finemi-post a{
  color:inherit;
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:3px;
}

/* Wiki links (Finemi) */
.finemi-post a.fm-wikilink{
  text-decoration-style:dotted;
  text-decoration-thickness:2px;
  text-underline-offset:4px;
}
.finemi-post a.fm-wikilink:hover{
  text-decoration-style:solid;
}

/* -------- HERO -------- */
.finemi-post .fm-hero{margin:10px 0 14px}
.finemi-post .fm-hero--card{
  border-radius:22px;
  border:1px solid #e6eaf2;
  overflow:hidden;
  background:
    radial-gradient(900px 260px at 50% -40%, rgba(59,130,246,.18), rgba(59,130,246,0)),
    linear-gradient(180deg, rgba(241,245,249,.95), #ffffff);
  box-shadow:0 10px 28px rgba(15,23,42,.08);
}
.finemi-post .fm-hero-inner{padding:22px 18px;text-align:center}
.finemi-post .fm-h1{font-size:42px;line-height:1.12;margin:0 0 10px;font-weight:900}
.finemi-post .fm-sub{margin:0 0 10px;color:#475569;font-size:16px}
.finemi-post .fm-hero-lede{
  max-width:820px;
  margin:0 auto 14px;
  color:#334155;
  font-size:15px;
  line-height:1.6;
}
.finemi-post .fm-hero-lede p{margin:0}

/* -------- Cards base -------- */
.finemi-post .fm-card{
  background:#fff;
  border:1px solid #e6eaf2;
  border-radius:18px;
  padding:16px 16px;
  margin:12px 0;
  box-shadow:0 6px 18px rgba(15,23,42,.06);
}

/* H2/H3 hierarchy FORCE (tema nepermuš) */
.finemi-post h2.fm-h2{
  font-size:30px !important;
  line-height:1.25 !important;
  margin:0 0 14px !important;
  font-weight:900 !important;
}
.finemi-post .fm-prose h3,
.finemi-post .fm-prose h3.wp-block-heading{
  font-size:22px !important;
  line-height:1.3 !important;
  margin:18px 0 10px !important;
  font-weight:800 !important;
}
.finemi-post .fm-prose h2{
  font-size:26px !important;
  line-height:1.25 !important;
  font-weight:900 !important;
}
.finemi-post .fm-prose h4{
  font-size:18px !important;
  line-height:1.35 !important;
  font-weight:800 !important;
}

/* Prose */
.finemi-post .fm-prose p{margin:0 0 10px}
.finemi-post .fm-ul, .finemi-post .fm-ol{margin:0;padding-left:18px}

/* -------- Snippet -------- */
.finemi-post .fm-snippet-title{font-weight:900;margin-bottom:6px}
.finemi-post .fm-snippet-text{margin:0;color:#0f172a}

/* -------- TOC -------- */
.finemi-post .fm-toc{padding:18px 16px}
.finemi-post .fm-toc{
  position: sticky;
  top: 14px;
  z-index: 5;
}
.finemi-post .fm-toc-head{display:flex;justify-content:center;margin-bottom:12px}
.finemi-post .fm-toc-kicker{
  letter-spacing:.14em;
  font-weight:900;
  font-size:12px;
  color:#64748b;
}
.finemi-post .fm-toc-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
}
@media (max-width:760px){
  .finemi-post .fm-toc{ position: static; }
  .finemi-post .fm-toc-grid{grid-template-columns:1fr}
}
.finemi-post .fm-toc a{ text-decoration:none !important; }

.finemi-post .fm-toc-card{
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding:14px 14px;
  border-radius:16px;
  border:1px solid #e6eaf2;
  background:#fff;
  box-shadow:0 6px 16px rgba(15,23,42,.05);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.finemi-post .fm-toc-num{
  min-width:28px;
  font-weight:900;
  color:#3b82f6;
  font-size:13px;
  line-height:1;
  margin-top:2px;
}
.finemi-post .fm-toc-text{
  font-weight:900;
  color:#0f172a;
  line-height:1.3;
}
.finemi-post .fm-toc-card:hover{
  transform:translateY(-2px);
  border-color:rgba(59,130,246,.75);
  box-shadow:0 14px 26px rgba(15,23,42,.12);
}
.finemi-post .fm-toc-card.is-active{
  border-color:rgba(59,130,246,.85);
  box-shadow:0 0 0 4px rgba(59,130,246,.14), 0 14px 26px rgba(15,23,42,.10);
}

/* -------- FAQ -------- */
.finemi-post .fm-faq-item{
  border:1px solid #e6eaf2;
  border-radius:14px;
  padding:10px 12px;
  margin:10px 0;
  background:#fff;
}
.finemi-post .fm-faq-item summary{cursor:pointer;font-weight:800;list-style:none}
.finemi-post .fm-faq-item summary::-webkit-details-marker{display:none}
.finemi-post .fm-faq-a{margin-top:8px;color:#1f2937}

/* -------- CTA -------- */
.finemi-post .fm-cta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:10px
}
.finemi-post .fm-cta-inline{
  padding:0;
  border:none;
  box-shadow:none;
}
.finemi-post .fm-btn,
.finemi-post .fm-btn:hover,
.finemi-post .fm-btn:focus,
.finemi-post .fm-btn:active,
.finemi-post .fm-btn:visited{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid #0f172a;
  background:#0f172a;
  color:#fff;
  text-decoration:none !important;
  font-weight:900;
}
.finemi-post .fm-btn:hover{ filter:brightness(1.05); }

/* -------- Callout-------- */
.finemi-post .fm-callout{
  padding:12px 16px;
}

/* -------- Steps -------- */
.finemi-post .fm-steps{margin:0;padding-left:18px}
.finemi-post .fm-steps li{margin:0 0 8px}

/* TABLE */
.finemi-post .fm-tablewrap{
  overflow:auto;
  border-radius:16px;
  border:1px solid #d9e1ee;
  background:#fff;
  box-shadow:0 10px 22px rgba(15,23,42,.06);
}
.finemi-post .fm-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  min-width:720px;
  background:#fff;
}
.finemi-post .fm-table thead th{
  background:#f4f7fb;
  color:#0f172a;
  font-weight:900;
  font-size:13px;
  text-align:left;
  padding:14px 16px;
  border-bottom:1px solid #d9e1ee;
  border-right:1px solid #d9e1ee;
  vertical-align:middle;
}
.finemi-post .fm-table thead th:last-child{border-right:none}
.finemi-post .fm-table td{
  padding:14px 16px;
  border-bottom:1px solid #e7edf6;
  border-right:1px solid #e7edf6;
  vertical-align:top;
  color:#0f172a;
  font-size:14px;
  line-height:1.45;
}
.finemi-post .fm-table td:last-child{border-right:none}
.finemi-post .fm-table tbody tr:nth-child(even) td{background:#fbfdff}
.finemi-post .fm-table tbody tr:hover td{background:rgba(59,130,246,.06)}
.finemi-post .fm-table thead th:first-child{border-top-left-radius:16px}
.finemi-post .fm-table thead th:last-child{border-top-right-radius:16px}
.finemi-post .fm-table tbody tr:last-child td:first-child{border-bottom-left-radius:16px}
.finemi-post .fm-table tbody tr:last-child td:last-child{border-bottom-right-radius:16px}
.finemi-post .fm-table th,
.finemi-post .fm-table td{
  word-break:break-word;
}

/* Pros/Cons table - leisti tilpti dažniau be scroll */
.finemi-post .fm-compare{ min-width:0; }

/* -------- Related -------- */
.finemi-post .fm-related-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:10px;
}
@media (max-width:760px){
  .finemi-post .fm-related-grid{grid-template-columns:1fr}
}
.finemi-post .fm-related-item{
  display:block;
  padding:12px;
  border-radius:14px;
  border:1px solid #e6eaf2;
  background:#fff;
  text-decoration:none !important;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.finemi-post .fm-related-item:hover{
  transform:translateY(-2px);
  border-color:rgba(59,130,246,.55);
  box-shadow:0 14px 26px rgba(15,23,42,.12)
}
.finemi-post .fm-related-title{font-weight:900;margin-bottom:6px}
.finemi-post .fm-related-meta{color:#64748b;font-size:12px}

/* ===== CALL0UT: visa sekcija nusidažo (dėti PAČIAM GALE) ===== */
.finemi-post .fm-section--callout.fm-section--info{
  background:#f1f5f9 !important;
  border-color:#e2e8f0 !important;
}
.finemi-post .fm-section--callout.fm-section--tip{
  background:#f6ffed !important;
  border-color:#d9f7be !important;
}
.finemi-post .fm-section--callout.fm-section--warn{
  background:#fff7ed !important;
  border-color:#fed7aa !important;
}

/* vidinis callout – be border ir be "ikonos padding" */
.finemi-post .fm-section--callout .fm-callout{
  background:transparent;
  border:none;
  padding:12px 16px;
}

/* išjungiam pseudo-ikonas */
.finemi-post .fm-callout::before{
  content:none !important;
  display:none !important;
}