/* TG Single Post Layout — scoped entirely under .tgsp-wrap (only loads on single blog posts) */
.tgsp-wrap{--w:1320px;--tgsp-pad:calc(50px + var(--tgsp-hdr,0px));font-family:inherit;color:#2a2a2a;}
.tgsp-wrap *{box-sizing:border-box;}
.tgsp-container{max-width:var(--w);margin:0 auto;padding:0 28px;}

/* HERO */
.tgsp-wrap .tgsp-hero{background:var(--tgsp-dark);color:#fff;padding:var(--tgsp-pad) 0 46px;position:relative;overflow:hidden;}
.tgsp-hero:before{content:"";position:absolute;right:-80px;top:-80px;width:320px;height:320px;border-radius:50%;background:var(--tgsp-accent);opacity:.14;}
.tgsp-wrap .tgsp-crumb{font-size:13px;color:rgba(255,255,255,.72)!important;margin-bottom:18px;display:flex;gap:8px;flex-wrap:wrap;align-items:center;}
.tgsp-wrap .tgsp-crumb a{color:rgba(255,255,255,.72)!important;text-decoration:none;}
.tgsp-wrap .tgsp-crumb a:hover{color:var(--tgsp-accent)!important;}
.tgsp-crumb span.sep{opacity:.5;}
.tgsp-wrap .tgsp-cat{display:inline-block;background:var(--tgsp-accent);color:var(--tgsp-accent-text)!important;font-weight:700;font-size:12px;letter-spacing:.4px;text-transform:uppercase;padding:6px 13px;border-radius:999px;line-height:1.2;text-decoration:none;}
.tgsp-wrap .tgsp-hero h1{font-size:40px!important;line-height:1.18!important;font-weight:800!important;margin:16px 0 0!important;color:#fff!important;max-width:900px;}
.tgsp-wrap .tgsp-meta{margin-top:18px;font-size:14px;color:rgba(255,255,255,.78)!important;display:flex;gap:10px;flex-wrap:wrap;align-items:center;}
.tgsp-meta .dot{opacity:.5;}
.tgsp-wrap .tgsp-meta b{color:#fff!important;font-weight:600;}

/* BODY GRID */
.tgsp-wrap .tgsp-body{display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:48px;padding-top:44px;padding-bottom:56px;}
.tgsp-feat{margin:0 0 28px;}
.tgsp-feat img{width:100%;height:auto;border-radius:16px;display:block;box-shadow:0 20px 50px -24px rgba(0,0,0,.4);}
.tgsp-wrap .tgsp-content{font-size:17px;line-height:1.82;color:#39393d;}
.tgsp-wrap .tgsp-content p{margin:0 0 20px;color:#39393d;}
.tgsp-wrap .tgsp-content h2{font-size:28px!important;line-height:1.3!important;font-weight:750!important;color:var(--tgsp-dark)!important;margin:38px 0 14px!important;}
.tgsp-wrap .tgsp-content h3{font-size:21px!important;line-height:1.35!important;font-weight:700!important;color:var(--tgsp-dark)!important;margin:30px 0 12px!important;}
.tgsp-wrap .tgsp-content h4{font-size:18px!important;font-weight:700!important;color:var(--tgsp-dark)!important;margin:24px 0 10px!important;}
.tgsp-wrap .tgsp-content a{color:var(--tgsp-accent-link,#b8860b)!important;text-decoration:underline;text-underline-offset:2px;}
.tgsp-content img{max-width:100%;height:auto;border-radius:12px;margin:8px 0 20px;}
.tgsp-wrap .tgsp-content ul,.tgsp-wrap .tgsp-content ol{margin:0 0 22px;padding-left:22px;}
.tgsp-wrap .tgsp-content li{margin:0 0 9px;color:#39393d;}
.tgsp-content blockquote{margin:26px 0;padding:16px 22px;border-left:4px solid var(--tgsp-accent);background:#faf7ef;border-radius:0 10px 10px 0;font-style:italic;color:#4a4a4a;}
.tgsp-content table{width:100%;border-collapse:collapse;margin:0 0 22px;font-size:15px;}
.tgsp-content th,.tgsp-content td{border:1px solid #eadfc6;padding:10px 12px;text-align:left;}
.tgsp-content th{background:#faf4e4;}

/* TAGS */
.tgsp-tags{display:flex;gap:8px;flex-wrap:wrap;margin:30px 0 0;}
.tgsp-wrap .tgsp-tags a{font-size:13px;background:#f3f3f3;color:#555!important;padding:6px 13px;border-radius:999px;text-decoration:none;}
.tgsp-wrap .tgsp-tags a:hover{background:var(--tgsp-accent);color:var(--tgsp-accent-text)!important;}

/* AUTHOR BOX */
.tgsp-author{display:flex;gap:16px;align-items:flex-start;margin:34px 0 0;padding:22px;background:#f8f8f6;border-radius:14px;border:1px solid #eee;}
.tgsp-author img{width:60px;height:60px;border-radius:50%;flex:0 0 auto;}
.tgsp-author .n{font-weight:700;color:var(--tgsp-dark);font-size:16px;}
.tgsp-author .b{font-size:14px;color:#666;margin-top:4px;line-height:1.6;}

/* PREV / NEXT */
.tgsp-nav{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:30px 0 0;}
.tgsp-wrap .tgsp-nav a{display:block;padding:16px 18px;border:1px solid #ececec;border-radius:12px;text-decoration:none;transition:.2s;background:#fff;}
.tgsp-nav a:hover{border-color:var(--tgsp-accent);box-shadow:0 10px 24px -14px rgba(0,0,0,.25);}
.tgsp-nav .l{font-size:12px;text-transform:uppercase;letter-spacing:.4px;color:#999;}
.tgsp-nav .t{font-weight:650;color:var(--tgsp-dark);margin-top:5px;font-size:15px;line-height:1.4;}
.tgsp-nav .nx{text-align:right;}

/* SIDEBAR */
.tgsp-wrap .tgsp-side{align-self:start;position:sticky;top:calc(24px + var(--tgsp-hdr,0px));display:flex;flex-direction:column;gap:22px;z-index:1;}
.tgsp-cta-card{background:var(--tgsp-dark);color:#fff;border-radius:18px;padding:26px 24px;position:relative;overflow:hidden;}
.tgsp-cta-card:before{content:"";position:absolute;right:-50px;bottom:-50px;width:160px;height:160px;border-radius:50%;background:var(--tgsp-accent);opacity:.16;}
.tgsp-wrap .tgsp-cta-card h3{font-size:19px!important;font-weight:750!important;margin:0 0 8px!important;color:#fff!important;line-height:1.3!important;}
.tgsp-wrap .tgsp-cta-card p{font-size:14px;line-height:1.6;color:rgba(255,255,255,.8)!important;margin:0 0 18px;}
.tgsp-wrap .tgsp-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%;font-weight:700;font-size:15px;padding:13px 18px;border-radius:12px;text-decoration:none;transition:.2s;cursor:pointer;}
.tgsp-wrap .tgsp-btn.phone{background:var(--tgsp-accent);color:var(--tgsp-accent-text)!important;}
.tgsp-btn.phone:hover{filter:brightness(.94);}
.tgsp-wrap .tgsp-btn.ghost{background:transparent;color:#fff!important;border:1.5px solid rgba(255,255,255,.4);margin-top:10px;}
.tgsp-btn.ghost:hover{border-color:var(--tgsp-accent);}
.tgsp-widget{background:#fff;border:1px solid #ececec;border-radius:16px;padding:20px 20px 8px;}
.tgsp-wrap .tgsp-widget h4{font-size:15px!important;font-weight:750!important;color:var(--tgsp-dark)!important;margin:0 0 14px!important;padding-bottom:12px;border-bottom:2px solid var(--tgsp-accent);display:inline-block;}
.tgsp-wrap .tgsp-rp{display:flex;gap:12px;margin:0 0 16px;text-decoration:none;}
.tgsp-rp img,.tgsp-rp .tgsp-ph{width:62px;height:62px;border-radius:10px;object-fit:cover;flex:0 0 auto;}
.tgsp-rp .tgsp-ph{background:linear-gradient(135deg,var(--tgsp-accent),var(--tgsp-dark));opacity:.85;display:block;}
.tgsp-wrap .tgsp-rp .rt{font-size:14px;font-weight:600;color:#2a2a2a!important;line-height:1.4;}
.tgsp-rp:hover .rt{color:var(--tgsp-accent-link,#b8860b)!important;}
.tgsp-rp .rd{font-size:12px;color:#999;margin-top:4px;}

/* BOTTOM CTA BAND */
.tgsp-wrap .tgsp-band{background:var(--tgsp-accent);color:var(--tgsp-accent-text);}
.tgsp-band .in{max-width:var(--w);margin:0 auto;padding:40px 28px;display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;}
.tgsp-wrap .tgsp-band h2{font-size:26px!important;font-weight:800!important;margin:0!important;line-height:1.25!important;color:var(--tgsp-accent-text)!important;}
.tgsp-wrap .tgsp-band p{margin:6px 0 0;font-size:15px;opacity:.85;color:var(--tgsp-accent-text)!important;}
.tgsp-band .acts{display:flex;gap:12px;flex-wrap:wrap;}
.tgsp-wrap .tgsp-band .b{display:inline-flex;align-items:center;gap:8px;font-weight:700;font-size:15px;padding:14px 22px;border-radius:12px;text-decoration:none;transition:.2s;}
.tgsp-wrap .tgsp-band .b.dark{background:var(--tgsp-dark);color:#fff!important;}
.tgsp-band .b.dark:hover{filter:brightness(1.15);}
.tgsp-wrap .tgsp-band .b.out{background:transparent;color:var(--tgsp-accent-text)!important;border:1.6px solid var(--tgsp-accent-text);}

@media(max-width:1000px){
 .tgsp-wrap .tgsp-body{grid-template-columns:1fr;gap:36px;}
 .tgsp-wrap .tgsp-side{position:static;}
 .tgsp-wrap .tgsp-hero h1{font-size:30px!important;}
 .tgsp-band .in{flex-direction:column;align-items:flex-start;}
 .tgsp-nav{grid-template-columns:1fr;}
}
@media(max-width:768px){
 .tgsp-wrap .tgsp-crumb{display:none!important;}
 .tgsp-wrap .tgsp-container{padding:0 20px;}
}
