/* NUSA regular single-post CSS v21. */
.v13-single{background:#fff!important;color:#111827!important}
.v13-single *{box-sizing:border-box}
.v13-container{max-width:1280px;margin:auto;padding:40px 24px}
.v13-layout{display:grid!important;grid-template-columns:220px minmax(0,760px) 280px;gap:32px;align-items:start}
.v13-card,.v13-share,.v13-product{background:#fff!important;border:1px solid #e5e7eb;border-radius:16px;padding:20px}
.v13-toc .v13-card{position:sticky;top:90px}
.v13-toc a{text-decoration:none!important;color:#475569!important}
.v13-content h1{font-size:42px;color:#0f172a!important}
.v13-body,.v13-body p,.v13-body li{color:#334155!important;font-size:16px!important;line-height:1.8!important}
.v13-cover img{width:100%!important;border-radius:16px}
.v13-share h4,.v13-product h4{font-size:13px;letter-spacing:.08em;color:#64748b!important}
.v13-share-icons{display:flex;gap:10px}
.v13-share-icons a{width:40px;height:40px;border:1px solid #ddd;border-radius:50%;display:flex;align-items:center;justify-content:center}
.v13-product-head{display:flex;gap:12px;align-items:center}
.v13-product-head img{width:56px!important;height:56px!important;object-fit:contain}
.v13-price{font-size:22px;font-weight:800;margin:18px 0}
.v13-product li{line-height:1.8;color:#475569}
.v13-buy{display:block;text-align:center;background:#2563eb;color:#fff!important;padding:12px;border-radius:10px;text-decoration:none!important;font-weight:700}
@media(max-width:1000px){.v13-layout{grid-template-columns:1fr!important}}
.v13-toc,.premium-toc{
 position:sticky!important;
 top:90px!important;
 align-self:start!important;
 overflow:visible!important;
}
.v13-share,.premium-share{
 border-radius:18px!important;
 padding:22px!important;
}
.v13-share a,.premium-share a{
 width:42px!important;
 height:42px!important;
 border-radius:50%!important;
 display:inline-flex!important;
 align-items:center!important;
 justify-content:center!important;
 border:1px solid #e5e7eb!important;
 margin:5px!important;
 font-size:0!important;
}
.v13-product,.premium-product{
 border-radius:18px!important;
 padding:20px!important;
}
.v13-product img,.premium-product img{
 width:48px!important;
 height:48px!important;
 object-fit:contain!important;
}
.v13-product h3,.v13-product h4,.premium-product h3,.premium-product h4{
 font-size:15px!important;
}
.premium-single-post,.v13-layout{
 max-width:1280px!important;
 margin:auto!important;
}
/* Follow the NUSA theme toggle, not the operating-system color preference. */
html[data-nusa-theme="dark"] .premium-single-post,
html[data-nusa-theme="dark"] .v13-layout{color:#f8fafc!important}
html[data-nusa-theme="dark"] .v13-share,
html[data-nusa-theme="dark"] .v13-product,
html[data-nusa-theme="dark"] .premium-share,
html[data-nusa-theme="dark"] .premium-product,
html[data-nusa-theme="dark"] .v13-toc,
html[data-nusa-theme="dark"] .premium-toc{
 background:#111827!important;
 border-color:#374151!important;
 color:#f8fafc!important;
}
.fm20-single{max-width:1280px;margin:auto;padding:36px 0 64px}
.fm20-container{width:100%}
.fm20-entry-title{margin:0 0 24px;font-size:42px;line-height:1.15;font-weight:700;letter-spacing:-.02em}
.fm20-grid{display:grid;grid-template-columns:250px minmax(0,720px) 300px;gap:32px;align-items:start}
.fm20-toc{position:sticky;top:100px;border:1px solid #ddd;border-radius:18px;padding:20px}
.fm20-toc a{display:block;margin:12px 0;text-decoration:none}
.fm20-share,.fm20-product{border:1px solid #ddd;border-radius:18px;padding:20px;margin-bottom:20px}
.fm20-icons{display:flex;flex-wrap:wrap;gap:12px}
.fm20-icons span{width:42px;height:42px;border:1px solid #ddd;border-radius:50%;display:flex;align-items:center;justify-content:center}
.fm20-cover img{width:100%;border-radius:16px}
.fm20-meta--below-cover{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin:11px 2px 8px;color:#64748b;font-size:14px;line-height:1.45}
.fm20-meta--below-cover time{color:inherit}
.fm20-meta__dot{color:#94a3b8}
.fm20-content{font-size:16px;line-height:1.8}
.fm20-product img{width:64px;height:64px;object-fit:contain}
.fm20-buy{display:block;background:#2563eb;color:white!important;text-align:center;padding:12px;border-radius:10px;margin-top:15px}
.mobile-share{display:none}
@media(max-width:1100px){.fm20-grid{grid-template-columns:1fr}.fm20-toc{position:relative}}
/* Explicit light-mode colors prevent an OS-level dark preference from hiding article text. */
html[data-nusa-theme="light"] .fm20-single{color:#111827}
html[data-nusa-theme="light"] .fm20-entry-title,
html[data-nusa-theme="light"] .fm20-content,
html[data-nusa-theme="light"] .fm20-content p,
html[data-nusa-theme="light"] .fm20-content li,
html[data-nusa-theme="light"] .fm20-content h2,
html[data-nusa-theme="light"] .fm20-content h3,
html[data-nusa-theme="light"] .fm20-toc,
html[data-nusa-theme="light"] .fm20-share,
html[data-nusa-theme="light"] .fm20-product{color:#111827}
html[data-nusa-theme="light"] .fm20-toc,
html[data-nusa-theme="light"] .fm20-share,
html[data-nusa-theme="light"] .fm20-product{background:#fff;border-color:#ddd}
html[data-nusa-theme="light"] .fm20-toc a{color:#374151}
html[data-nusa-theme="light"] .fm20-meta--below-cover{color:#64748b}

html[data-nusa-theme="dark"] .fm20-single{color:#fff}
html[data-nusa-theme="dark"] .fm20-entry-title,
html[data-nusa-theme="dark"] .fm20-content,
html[data-nusa-theme="dark"] .fm20-content p,
html[data-nusa-theme="dark"] .fm20-content li,
html[data-nusa-theme="dark"] .fm20-content h2,
html[data-nusa-theme="dark"] .fm20-content h3{color:#f8fafc}
html[data-nusa-theme="dark"] .fm20-toc,
html[data-nusa-theme="dark"] .fm20-share,
html[data-nusa-theme="dark"] .fm20-product{background:#111;border-color:#333;color:#f8fafc}
html[data-nusa-theme="dark"] .fm20-toc a{color:#e5e7eb}
html[data-nusa-theme="dark"] .fm20-meta--below-cover{color:#aab4c3}
html[data-nusa-theme="dark"] .fm20-meta__dot{color:#64748b}

/* v14: real, clickable share icons with zero external icon-library requests. */
.fm20-icons{display:flex;flex-wrap:wrap;gap:10px}
.fm20-icons .fm20-share-btn{
  width:40px;
  height:40px;
  flex:0 0 40px;
  border:0;
  border-radius:50%;
  padding:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#fff!important;
  text-decoration:none!important;
  cursor:pointer;
  box-shadow:0 1px 2px rgba(15,23,42,.12);
  transition:transform .16s ease,filter .16s ease,box-shadow .16s ease;
}
.fm20-icons .fm20-share-btn svg{display:block;width:18px;height:18px;fill:currentColor}
.fm20-icons .fm20-share-btn.is-facebook{background:#1877f2}
.fm20-icons .fm20-share-btn.is-x{background:#111}
.fm20-icons .fm20-share-btn.is-whatsapp{background:#25d366}
.fm20-icons .fm20-share-btn.is-telegram{background:#229ed9}
.fm20-icons .fm20-share-btn.is-linkedin{background:#0a66c2}
.fm20-icons .fm20-share-btn.is-copy{background:#64748b}
.fm20-icons .fm20-share-btn:hover{transform:translateY(-2px);filter:brightness(1.06);box-shadow:0 4px 10px rgba(15,23,42,.16)}
.fm20-icons .fm20-share-btn:active{transform:translateY(0)}
.fm20-icons .fm20-share-btn:focus-visible{outline:3px solid rgba(37,99,235,.28);outline-offset:3px}
.fm20-icons .fm20-share-btn.is-copy.is-copied{background:#16a34a}
html[data-nusa-theme="dark"] .fm20-icons .fm20-share-btn.is-x{background:#fff;color:#111!important}

/* v15: dynamic WooCommerce related-product card for single posts. */
.fm20-product{padding:16px}
.fm20-product>h4{margin:0 0 14px;font-size:13px;line-height:1.2;letter-spacing:.06em;color:#6b7280}
.nusa-rp-card{border:1px solid #e5e7eb;border-radius:18px;padding:16px;background:#fff;box-shadow:0 1px 1px rgba(15,23,42,.02)}
.nusa-rp-head{display:flex;gap:11px;align-items:center;color:inherit!important;text-decoration:none!important}
.nusa-rp-thumb{width:48px;height:48px;flex:0 0 48px;border:1px solid #e5e7eb;border-radius:50%;overflow:hidden;background:#fff;display:grid;place-items:center}
.nusa-rp-thumb img.nusa-rp-image{display:block;width:100%!important;height:100%!important;object-fit:contain!important;margin:0!important;padding:3px}
.nusa-rp-title-wrap{min-width:0;display:grid;gap:3px}
.nusa-rp-title{display:block;font-size:14px;line-height:1.25;color:#111827;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nusa-rp-rating{display:flex;align-items:center;gap:4px;font-size:12px;line-height:1.2;color:#6b7280}
.nusa-rp-star{color:#f59e0b;font-size:14px}
.nusa-rp-sales{white-space:nowrap}
.nusa-rp-badges{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.nusa-rp-badge{display:inline-flex;align-items:center;gap:3px;padding:5px 9px;border-radius:8px;font-size:11px;line-height:1;font-weight:500}
.nusa-rp-badge--ready{background:#eff6ff;color:#2563eb}
.nusa-rp-badge--guarantee{background:#ecfdf3;color:#15803d}
.nusa-rp-price-row{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;margin-top:3px}
.nusa-rp-prices{min-width:0}
.nusa-rp-regular{display:block;margin-bottom:1px;color:#9ca3af;font-size:11px;line-height:1.2}
.nusa-rp-current{font-size:20px;line-height:1.15;font-weight:700;color:#111827}
.nusa-rp-current .woocommerce-Price-currencySymbol,.nusa-rp-regular .woocommerce-Price-currencySymbol{font-size:.9em}
.nusa-rp-discount{flex:0 0 auto;background:#fff7ed;color:#ea580c;border-radius:8px;padding:6px 8px;font-size:12px;font-weight:600;line-height:1}
.nusa-rp-buy{display:flex;align-items:center;justify-content:center;width:100%;min-height:40px;margin-top:14px;border-radius:10px;background:var(--nusa-blue,#1677ff);color:#fff!important;text-decoration:none!important;font-size:13px;font-weight:700;transition:filter .16s ease,transform .16s ease}
.nusa-rp-buy:hover{filter:brightness(.95);transform:translateY(-1px)}
.nusa-rp-buy:active{transform:none}
html[data-nusa-theme="dark"] .nusa-rp-card{background:#171717;border-color:#333}
html[data-nusa-theme="dark"] .nusa-rp-thumb{background:#fff;border-color:#404040}
html[data-nusa-theme="dark"] .nusa-rp-title,html[data-nusa-theme="dark"] .nusa-rp-current{color:#f8fafc}
html[data-nusa-theme="dark"] .nusa-rp-rating{color:#a3a3a3}
html[data-nusa-theme="dark"] .nusa-rp-regular{color:#737373}
@media(max-width:1100px){.fm20-product{max-width:360px}.nusa-rp-card{width:100%}}

/* v18: Freemium-style collapsible TOC on phones only. Desktop TOC remains unchanged. */
.fm20-toc-toggle{display:none}
.fm20-content h2{scroll-margin-top:82px}

@media (max-width:767px){
  .fm20-single{width:100%;max-width:none;padding:24px 20px 48px}
  .fm20-grid{display:flex;flex-direction:column;gap:22px}

  .fm20-toc{
    order:0;
    position:relative!important;
    top:auto!important;
    width:100%;
    margin:0 0 4px;
    padding:0;
    border:1px solid #e5e7eb;
    border-radius:18px;
    overflow:hidden;
    background:#fff;
    box-shadow:none;
  }
  .fm20-toc-title{display:none}
  .fm20-toc-toggle{
    appearance:none;
    -webkit-appearance:none;
    display:flex;
    width:100%;
    min-height:58px;
    padding:0 18px;
    align-items:center;
    gap:12px;
    border:0;
    background:transparent;
    color:#5f6368;
    text-align:left;
    font:inherit;
    cursor:pointer;
  }
  .fm20-toc-toggle__icon,
  .fm20-toc-toggle__chevron{
    width:22px;
    height:22px;
    flex:0 0 22px;
    display:grid;
    place-items:center;
    color:#72757a;
  }
  .fm20-toc-toggle__icon svg,
  .fm20-toc-toggle__chevron svg{width:100%;height:100%;fill:currentColor;display:block}
  .fm20-toc-toggle__label{
    min-width:0;
    flex:1 1 auto;
    font-size:15px;
    line-height:1;
    font-weight:700;
    letter-spacing:.065em;
    white-space:nowrap;
  }
  .fm20-toc-toggle__chevron{transition:transform .2s ease}
  .fm20-toc.is-open .fm20-toc-toggle__chevron{transform:rotate(180deg)}

  .fm20-toc #fm20-toc{
    display:grid;
    grid-template-rows:0fr;
    opacity:0;
    visibility:hidden;
    transition:grid-template-rows .24s ease,opacity .18s ease,visibility 0s linear .24s;
  }
  .fm20-toc #fm20-toc::before{content:"";display:block;min-height:0}
  .fm20-toc #fm20-toc > a{
    display:none;
  }
  .fm20-toc.is-open #fm20-toc{
    display:block;
    max-height:min(58vh,480px);
    overflow:auto;
    padding:6px 18px 16px;
    border-top:1px solid #eef0f3;
    opacity:1;
    visibility:visible;
    transition:opacity .18s ease;
  }
  .fm20-toc.is-open #fm20-toc > a{
    display:block;
    margin:0;
    padding:10px 0;
    color:#3f434a;
    font-size:15px;
    line-height:1.45;
    border-bottom:1px solid #f2f3f5;
  }
  .fm20-toc.is-open #fm20-toc > a:last-child{border-bottom:0}

  .fm20-article{order:1;width:100%;min-width:0}
  .fm20-side{order:2;width:100%}
  .fm20-entry-title{margin:0 0 24px;font-size:32px;line-height:1.18;letter-spacing:-.018em}
  .fm20-cover img{border-radius:14px}
  .fm20-meta--below-cover{margin:10px 1px 8px;font-size:14px;gap:6px}
  .fm20-content{font-size:17px;line-height:1.78}
  .fm20-content h2{scroll-margin-top:76px}

  html[data-nusa-theme="light"] .fm20-toc{background:#fff;border-color:#e5e7eb}
  html[data-nusa-theme="light"] .fm20-toc-toggle{color:#5f6368}
  html[data-nusa-theme="light"] .fm20-toc-toggle__icon,
  html[data-nusa-theme="light"] .fm20-toc-toggle__chevron{color:#72757a}

  html[data-nusa-theme="dark"] .fm20-toc{background:#111827;border-color:#374151}
  html[data-nusa-theme="dark"] .fm20-toc-toggle{color:#e5e7eb}
  html[data-nusa-theme="dark"] .fm20-toc-toggle__icon,
  html[data-nusa-theme="dark"] .fm20-toc-toggle__chevron{color:#cbd5e1}
  html[data-nusa-theme="dark"] .fm20-toc.is-open #fm20-toc{border-top-color:#374151}
  html[data-nusa-theme="dark"] .fm20-toc.is-open #fm20-toc > a{color:#e5e7eb;border-bottom-color:#252f3f}
}

@media (max-width:380px){
  .fm20-single{padding-left:16px;padding-right:16px}
  .fm20-toc-toggle{padding-left:15px;padding-right:15px;gap:10px}
  .fm20-toc-toggle__label{font-size:13.5px;letter-spacing:.055em}
}
