/* =============================================================================
   ToolGrowth — SINGLE POST styles (V3). Loaded only on single posts.
   Inherits tokens + shared components (buttons, cards, blocks, FAQ, newsletter,
   reveals) from toolgrowth.css. Everything scoped under .tg-single.
   ============================================================================= */

/* Backstop: if a cached page still carries Astra's own post banner, hide it.
   (The PHP filter removes it at the source for freshly rendered pages.) */
body.tg-fullwidth.single .ast-single-entry-banner{display:none!important}

/* ---- reading progress bar (rides the very top edge, above the sticky header) ---- */
.tg-single .tg-progress{position:fixed;top:0;left:0;right:0;height:3px;z-index:61;background:transparent;pointer-events:none}
.tg-single .tg-progress span{display:block;width:0;height:100%;background:var(--grad);transition:width .08s linear}

/* ---- hero ---- */
.tg-single .tg-phero{background:
  radial-gradient(60% 90% at 85% -20%,rgba(99,102,241,.10),transparent 60%),
  radial-gradient(50% 80% at 10% -10%,rgba(11,87,208,.08),transparent 55%),
  var(--bg);padding:56px 0 0;border-bottom:1px solid var(--line)}
.tg-single .tg-phero__in{max-width:880px!important}
.tg-single .tg-crumb{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:13.5px;color:var(--mut);margin-bottom:22px}
.tg-single .tg-crumb a{color:var(--mut);transition:color .2s}
.tg-single .tg-crumb a:hover{color:var(--blue)}
.tg-single .tg-crumb__here{color:var(--ink2);font-weight:550}
.tg-single .tg-phero__chips{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:18px}
.tg-single .tg-chip{display:inline-flex;align-items:center;font-size:12.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:7px 14px;border-radius:999px}
.tg-single .tg-chip--cat{background:rgba(11,87,208,.08);color:var(--blue);transition:background .2s}
.tg-single .tg-chip--cat:hover{background:rgba(11,87,208,.14)}
.tg-single .tg-chip--type{background:rgba(99,102,241,.10);color:var(--indigo)}
.tg-single .tg-phero__title{font-size:clamp(30px,4.6vw,50px);font-weight:800;letter-spacing:-.03em;line-height:1.1;margin:0 0 22px;color:var(--ink)}
.tg-single .tg-phero__meta{display:flex;align-items:center;flex-wrap:wrap;gap:10px;font-size:14.5px;color:var(--mut);margin-bottom:40px}
.tg-single .tg-phero__meta b{color:var(--ink);font-weight:650}
.tg-single .tg-phero__meta .d{opacity:.6}
.tg-single .tg-phero__ava{width:34px;height:34px;border-radius:50%;background:var(--grad);color:#fff;display:grid;place-items:center;font-size:14px;font-weight:800;box-shadow:0 8px 16px -6px rgba(59,86,241,.5)}
.tg-single .tg-phero__img{margin:0 0 -72px;border-radius:var(--rl);overflow:hidden;box-shadow:var(--shl);border:1px solid var(--line)}
.tg-single .tg-phero__img img{width:100%;height:auto;display:block}
/* space beneath the overhanging hero image */
.tg-single .tg-phero + .tg-disclose{padding-top:104px}
.tg-single .tg-phero + .tg-disclose,.tg-single .tg-phero + section{margin-top:0}

/* ---- disclosure strip ---- */
.tg-single .tg-disclose{background:var(--bg);padding:96px 0 0}
.tg-single .tg-disclose .tg-wrap{max-width:880px!important}
.tg-single .tg-disclose p{font-size:13.5px;color:var(--mut);line-height:1.6;padding:12px 18px;background:var(--soft);border:1px solid var(--line);border-radius:12px;margin:0}

/* ---- two-column post layout ---- */
.tg-single .tg-post{background:var(--bg);padding:56px 0 96px}
.tg-single .tg-post__grid{display:grid;grid-template-columns:260px minmax(0,720px);gap:64px;justify-content:center;align-items:start}
.tg-single .tg-post__grid--noToc{grid-template-columns:minmax(0,720px)}
.tg-single .tg-post__main{min-width:0}

/* ---- sticky TOC ---- */
.tg-single .tg-toc{position:sticky;top:96px;max-height:calc(100vh - 130px);overflow:auto;padding:22px 22px 20px;background:var(--soft);border:1px solid var(--line);border-radius:var(--r)}
.tg-single .tg-toc__title{font-size:12.5px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--ink2);margin-bottom:12px}
.tg-single .tg-toc ol{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
.tg-single .tg-toc a{display:block;font-size:14px;line-height:1.45;color:var(--mut);padding:6px 10px;border-radius:8px;border-left:2px solid transparent;transition:color .2s,background .2s,border-color .2s}
.tg-single .tg-toc a:hover{color:var(--ink);background:rgba(11,87,208,.05)}
.tg-single .tg-toc .tg-toc__l3 a{padding-left:24px;font-size:13.5px}
.tg-single .tg-toc li.is-active>a{color:var(--blue);font-weight:650;border-left-color:var(--blue);background:rgba(11,87,208,.06)}

/* ---- verdict box ---- */
.tg-single .tg-verdict{display:flex;gap:24px;align-items:center;padding:26px 28px;margin:0 0 40px;border-radius:var(--rl);background:linear-gradient(#fff,#fff) padding-box,var(--grad) border-box;border:2px solid transparent;box-shadow:var(--sh)}
.tg-single .tg-verdict__score{flex:none;text-align:center;padding-right:24px;border-right:1px solid var(--line)}
.tg-single .tg-verdict__n{font-size:44px;font-weight:800;letter-spacing:-.03em;line-height:1;background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}
.tg-single .tg-verdict__n small{font-size:18px;font-weight:700}
.tg-single .tg-verdict__stars{color:var(--gold);font-size:15px;letter-spacing:2px;margin-top:6px}
.tg-single .tg-verdict__tag{display:inline-block;font-size:11.5px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--blue);margin-bottom:8px}
.tg-single .tg-verdict__txt{font-size:16.5px;line-height:1.6;color:var(--ink);font-weight:550;margin:0 0 10px}
.tg-single .tg-verdict__facts{display:flex;flex-wrap:wrap;gap:8px 22px;font-size:14px;color:var(--mut)}
.tg-single .tg-verdict__facts b{color:var(--ink2);font-weight:650}

/* =============================================================================
   READING TYPOGRAPHY — .tg-content. Covers classic HTML AND core Gutenberg
   blocks (tables, quotes, code, images, buttons, columns, embeds, lists).
   ============================================================================= */
.tg-single .tg-content{font-size:17.5px;line-height:1.78;color:var(--ink2);overflow-wrap:break-word}
.tg-single .tg-content>*+*{margin-top:1.35em}
.tg-single .tg-content p{margin:0 0 1.35em}
.tg-single .tg-content strong,.tg-single .tg-content b{color:var(--ink);font-weight:650}
.tg-single .tg-content a{color:var(--blue);font-weight:550;text-decoration:underline;text-decoration-color:rgba(11,87,208,.28);text-underline-offset:3px;transition:text-decoration-color .2s}
.tg-single .tg-content a:hover{text-decoration-color:var(--blue)}

.tg-single .tg-content h2{font-size:clamp(24px,3vw,31px);font-weight:800;letter-spacing:-.025em;line-height:1.22;color:var(--ink);margin:2.2em 0 .75em;padding-top:.6em;border-top:1px solid var(--line);scroll-margin-top:96px}
.tg-single .tg-content h2:first-child{margin-top:0;padding-top:0;border-top:0}
.tg-single .tg-content h3{font-size:clamp(19px,2.2vw,23px);font-weight:750;letter-spacing:-.02em;line-height:1.3;color:var(--ink);margin:1.9em 0 .6em;scroll-margin-top:96px}
.tg-single .tg-content h4{font-size:17.5px;font-weight:700;color:var(--ink);margin:1.6em 0 .5em}

.tg-single .tg-content ul,.tg-single .tg-content ol{margin:0 0 1.35em;padding-left:1.35em}
.tg-single .tg-content li{margin:.45em 0}
.tg-single .tg-content li::marker{color:var(--blue);font-weight:700}

.tg-single .tg-content img{border-radius:var(--r);box-shadow:var(--sh1);border:1px solid var(--line);height:auto}
.tg-single .tg-content figure{margin:2em 0}
.tg-single .tg-content figcaption{font-size:13.5px;color:var(--mut);text-align:center;margin-top:10px}

.tg-single .tg-content blockquote,.tg-single .tg-content .wp-block-quote{margin:2em 0;padding:18px 26px;border-left:3px solid var(--blue);background:var(--soft);border-radius:0 var(--r) var(--r) 0;font-size:18px;color:var(--ink);font-weight:500}
.tg-single .tg-content blockquote p:last-child{margin-bottom:0}
.tg-single .tg-content .wp-block-pullquote{border-top:2px solid var(--line);border-bottom:2px solid var(--line);padding:2em 0;text-align:center}

.tg-single .tg-content code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.88em;background:var(--soft);border:1px solid var(--line);border-radius:6px;padding:2px 7px;color:var(--ink)}
.tg-single .tg-content pre,.tg-single .tg-content .wp-block-code{background:var(--dark);color:#e6edf7;border-radius:var(--r);padding:22px 26px;overflow-x:auto;font-size:14.5px;line-height:1.65}
.tg-single .tg-content pre code{background:transparent;border:0;padding:0;color:inherit}

.tg-single .tg-tablewrap{margin:2em 0;overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--sh1)}
.tg-single .tg-tablewrap figure{margin:0;border:0;box-shadow:none}
.tg-single .tg-content table{width:100%;border-collapse:collapse;font-size:15px;min-width:520px}
.tg-single .tg-content th{background:var(--soft);color:var(--ink);font-weight:700;text-align:left;padding:13px 16px;border-bottom:2px solid var(--line);white-space:nowrap}
.tg-single .tg-content td{padding:12px 16px;border-bottom:1px solid var(--line);vertical-align:top}
.tg-single .tg-content tr:last-child td{border-bottom:0}
.tg-single .tg-content tbody tr:hover{background:rgba(11,87,208,.025)}

.tg-single .tg-content .wp-block-button__link{background:var(--grad);color:#fff!important;border-radius:12px;padding:13px 24px;font-weight:650;text-decoration:none;box-shadow:0 14px 28px -12px rgba(59,86,241,.6);transition:transform .2s,filter .2s;display:inline-flex}
.tg-single .tg-content .wp-block-button__link:hover{transform:translateY(-2px);filter:brightness(1.07)}
.tg-single .tg-content .wp-block-columns{gap:28px}
.tg-single .tg-content .wp-block-embed iframe{max-width:100%}
.tg-single .tg-content .wp-block-embed.is-type-video .wp-block-embed__wrapper{position:relative;padding-top:56.25%;border-radius:var(--r);overflow:hidden}
.tg-single .tg-content .wp-block-embed.is-type-video iframe{position:absolute;inset:0;width:100%;height:100%}
.tg-single .tg-content .wp-block-separator{border:0;border-top:1px solid var(--line);margin:2.5em auto;max-width:120px}
.tg-single .tg-content .alignwide,.tg-single .tg-content .alignfull{width:100%;max-width:100%}

/* ---- pros & cons ---- */
.tg-single .tg-pc{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin:44px 0 0}
.tg-single .tg-pc__col{border-radius:var(--rl);border:1px solid var(--line);background:#fff;overflow:hidden;box-shadow:var(--sh1)}
.tg-single .tg-pc__head{font-size:14px;font-weight:800;letter-spacing:.04em;padding:15px 22px;color:#fff}
.tg-single .tg-pc__col--pro .tg-pc__head{background:linear-gradient(135deg,#16A34A,#22C55E)}
.tg-single .tg-pc__col--con .tg-pc__head{background:linear-gradient(135deg,#475569,#64748B)}
.tg-single .tg-pc ul{list-style:none;margin:0;padding:10px 22px 16px}
.tg-single .tg-pc li{display:flex;gap:12px;align-items:flex-start;font-size:15.5px;line-height:1.55;color:var(--ink2);padding:9px 0;border-bottom:1px solid var(--line)}
.tg-single .tg-pc li:last-child{border-bottom:0}
.tg-single .tg-pc li i{flex:none;font-style:normal;font-weight:800;font-size:13px;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;margin-top:2px}
.tg-single .tg-pc__col--pro li i{background:rgba(22,163,74,.12);color:#16A34A}
.tg-single .tg-pc__col--con li i{background:rgba(100,116,139,.14);color:#475569}

/* ---- share row ---- */
.tg-single .tg-share{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:44px 0 0;padding-top:26px;border-top:1px solid var(--line)}
.tg-single .tg-share__label{font-size:13px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--mut);margin-right:4px}
.tg-single .tg-share a{width:40px;height:40px;border-radius:11px;border:1px solid var(--line);display:grid;place-items:center;font-size:14px;font-weight:800;color:var(--ink2);text-decoration:none;transition:background .2s,color .2s,transform .2s}
.tg-single .tg-share a:hover{background:var(--ink);color:#fff;transform:translateY(-2px)}
.tg-single .tg-share__copy{height:40px;padding:0 18px;border-radius:11px;border:1px solid var(--line);background:#fff;font-family:inherit;font-size:14px;font-weight:650;color:var(--ink2);cursor:pointer;transition:background .2s,color .2s}
.tg-single .tg-share__copy:hover{background:var(--soft)}
.tg-single .tg-share__copy.is-done{background:rgba(22,163,74,.1);border-color:rgba(22,163,74,.4);color:#16A34A}

/* ---- author box ---- */
.tg-single .tg-block--tight{padding:64px 0}
.tg-single .tg-authbox{display:flex;gap:26px;align-items:flex-start;max-width:760px!important;margin:0 auto;padding:30px 34px;border-radius:var(--rl);background:var(--soft);border:1px solid var(--line)}
.tg-single .tg-authbox__ava{flex:none;width:64px;height:64px;border-radius:50%;background:var(--grad);color:#fff;display:grid;place-items:center;font-size:22px;font-weight:800;box-shadow:0 14px 28px -12px rgba(59,86,241,.55)}
.tg-single .tg-authbox__name{font-size:19px;font-weight:800;letter-spacing:-.01em;color:var(--ink);margin:8px 0 8px}
.tg-single .tg-authbox__name span{font-size:13.5px;font-weight:600;color:var(--mut);margin-left:10px}
.tg-single .tg-authbox p{font-size:15.5px;line-height:1.7;color:var(--ink2);margin:0}

/* ---- responsive ---- */
@media(max-width:1023px){
  .tg-single .tg-post__grid{grid-template-columns:minmax(0,720px)}
  .tg-single .tg-post__side{display:none} /* TOC is a desktop reading aid; mobile keeps a clean scroll */
}
@media(max-width:767px){
  .tg-single .tg-phero{padding-top:36px}
  .tg-single .tg-phero__img{margin-bottom:-44px}
  .tg-single .tg-phero + .tg-disclose{padding-top:72px}
  .tg-single .tg-disclose{padding-top:64px}
  .tg-single .tg-post{padding:40px 0 72px}
  .tg-single .tg-content{font-size:16.5px}
  .tg-single .tg-verdict{flex-direction:column;align-items:flex-start;gap:16px}
  .tg-single .tg-verdict__score{padding:0 0 16px;border-right:0;border-bottom:1px solid var(--line);width:100%}
  .tg-single .tg-pc{grid-template-columns:1fr}
  .tg-single .tg-authbox{flex-direction:column;padding:26px}
}

@media (prefers-reduced-motion: reduce){
  .tg-single .tg-progress span{transition:none}
}
