/* ShayariGPT Post Designer 1.3
 * Homepage is excluded in PHP. Existing shair-card buttons/functions are not recreated here.
 */

body.sgp-post-designer{background:var(--sgp-soft);color:var(--sgp-text)}
body.sgp-post-designer :where(a){text-underline-offset:3px}
body.sgp-post-designer :where(.site-content,#content,.content-area,.site-main){box-sizing:border-box}

/* Reading progress */
.sgp-reading-progress{position:fixed;left:0;top:0;height:3px;width:0;z-index:99999;background:linear-gradient(90deg,var(--sgp-accent),var(--sgp-accent2));box-shadow:0 1px 5px rgba(124,58,237,.22);pointer-events:none}

/* Single post frame */
body.sgp-single-post :where(.site-content,#content){max-width:var(--sgp-max);margin-inline:auto;padding:18px clamp(14px,3vw,28px) 0}
body.sgp-single-post :where(article.post,.type-post){background:var(--sgp-surface);border:1px solid var(--sgp-border);border-radius:calc(var(--sgp-radius) + 4px);box-shadow:0 18px 55px rgba(29,20,45,.055);overflow:visible;margin-bottom:28px}
body.sgp-single-post :where(article.post,.type-post) > :where(.entry-header,.post-header){max-width:var(--sgp-content);margin-inline:auto;padding:clamp(22px,3.2vw,34px) clamp(20px,4vw,42px) 10px}
body.sgp-single-post :where(h1.entry-title,.entry-title,.wp-block-post-title){font-size:clamp(2rem,4.5vw,3.25rem);line-height:1.12;letter-spacing:-.025em;color:var(--sgp-text);margin:0 0 14px}
body.sgp-single-post :where(.entry-meta,.post-meta,.byline,.posted-on){color:var(--sgp-muted);font-size:.92rem}
body.sgp-single-post :where(.entry-meta,.post-meta) a{color:inherit;text-decoration:none}

/* Featured and content images */
body.sgp-single-post :where(.post-thumbnail,.wp-block-post-featured-image){max-width:1000px;margin:8px auto 22px;padding-inline:clamp(16px,3vw,28px)}
body.sgp-single-post :where(.post-thumbnail,.wp-block-post-featured-image) img{display:block;width:100%;height:auto;border-radius:calc(var(--sgp-radius) + 3px);box-shadow:0 18px 42px rgba(30,20,50,.10)}
body.sgp-single-post :where(.entry-content,.post-content,.wp-block-post-content){max-width:var(--sgp-content);margin-inline:auto;padding:0 clamp(18px,4vw,42px) 26px;font-size:1.04rem;line-height:1.82;color:#30323a}
body.sgp-single-post :where(.entry-content,.post-content,.wp-block-post-content) > p{margin:0 0 .9em}
body.sgp-single-post :where(.entry-content,.post-content,.wp-block-post-content) > h2{position:relative;font-size:clamp(1.55rem,2.5vw,2rem);line-height:1.25;margin:44px 0 18px;padding:0 0 12px;color:var(--sgp-text);letter-spacing:-.012em}
body.sgp-single-post :where(.entry-content,.post-content,.wp-block-post-content) > h2:after{content:"";display:block;width:54px;height:3px;margin-top:11px;border-radius:10px;background:linear-gradient(90deg,var(--sgp-accent),var(--sgp-accent2))}
body.sgp-single-post :where(.entry-content,.post-content,.wp-block-post-content) > h3{font-size:1.26rem;line-height:1.35;margin:32px 0 12px;color:var(--sgp-text)}
body.sgp-single-post :where(.entry-content,.post-content,.wp-block-post-content) > figure.wp-block-image,
body.sgp-single-post :where(.entry-content,.post-content,.wp-block-post-content) > .wp-block-image{margin:24px 0 30px}
body.sgp-single-post :where(.entry-content,.post-content,.wp-block-post-content) > figure img,
body.sgp-single-post :where(.entry-content,.post-content,.wp-block-post-content) > .wp-block-image img{display:block;width:100%;height:auto;border-radius:var(--sgp-radius);border:1px solid var(--sgp-border);box-shadow:0 12px 30px rgba(40,24,70,.07)}

/* Inline TOC — intentionally NOT fixed / side-floating */
.sgp-inline-toc{margin:28px 0 34px;border:1px solid #e5def5;border-radius:16px;background:linear-gradient(180deg,#fbf9ff,#fff);box-shadow:0 10px 28px rgba(60,35,100,.055);overflow:hidden}
.sgp-inline-toc summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:16px;cursor:pointer;padding:16px 18px;font-weight:800;color:#302942}
.sgp-inline-toc summary::-webkit-details-marker{display:none}
.sgp-inline-toc summary:after{content:"+";display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#f1ebff;color:var(--sgp-accent);font-size:1.15rem;line-height:1;transition:.2s}
.sgp-inline-toc[open] summary:after{content:"−"}
.sgp-toc-kicker{display:block;font-size:.72rem;text-transform:uppercase;letter-spacing:.09em;color:var(--sgp-accent);margin-bottom:2px}
.sgp-toc-list{display:grid;grid-template-columns:1fr 1fr;gap:5px 18px;padding:0 18px 18px}
.sgp-toc-list a{display:block;padding:8px 10px;border-radius:9px;color:#514c59;text-decoration:none!important;font-size:.9rem;line-height:1.35}
.sgp-toc-list a:hover{background:#f4efff;color:var(--sgp-accent)}
.sgp-toc-list a.sgp-toc-h3{padding-left:20px;color:#77717f;font-size:.86rem}

/* Optional article share bar — off by default */
.sgp-sharebar{max-width:var(--sgp-content);margin:0 auto 22px;padding:10px 12px;display:flex;align-items:center;gap:8px;flex-wrap:wrap;border:1px solid var(--sgp-border);border-radius:14px;background:#fff}
.sgp-share-label{font-weight:800;font-size:.88rem;color:var(--sgp-text);padding-right:3px}
.sgp-sharebar :where(a,button){appearance:none;border:1px solid var(--sgp-border);background:#faf9fc;color:#56515e;border-radius:9px;padding:8px 11px;font:inherit;font-size:.84rem;cursor:pointer;text-decoration:none!important;transition:.18s ease}
.sgp-sharebar :where(a,button):hover{border-color:#d7cffa;background:#f3f0ff;color:var(--sgp-accent);transform:translateY(-1px)}

/* Existing shair cards: visual polish only. No click handlers, no extra buttons. */
body.sgp-single-post :where(.shayari-card,.shair-card,.poetry-card,[class*="shayari-card"],[class*="shair-card"],[data-shayari-card]){border-radius:16px!important;box-shadow:0 8px 24px rgba(34,22,56,.055);overflow:hidden}
body.sgp-single-post :where(.shayari-card,.shair-card,.poetry-card,[class*="shayari-card"],[class*="shair-card"],[data-shayari-card]) :where(button,a[role="button"]){transition:transform .18s ease,box-shadow .18s ease!important}
body.sgp-single-post :where(.shayari-card,.shair-card,.poetry-card,[class*="shayari-card"],[class*="shair-card"],[data-shayari-card]) :where(button,a[role="button"]):hover{transform:translateY(-1px)}

/* Related posts */
.sgp-related{max-width:var(--sgp-max);margin:54px auto 0;padding:32px clamp(16px,3vw,30px) 8px;border-top:1px solid var(--sgp-border)}
.sgp-section-head{text-align:center;margin-bottom:24px}
.sgp-section-head span{display:inline-block;font-size:.72rem;font-weight:800;letter-spacing:.11em;text-transform:uppercase;color:var(--sgp-accent);margin-bottom:5px}
.sgp-section-head h2{margin:0!important;padding:0!important;font-size:clamp(1.45rem,2.8vw,1.95rem)!important;color:var(--sgp-text)!important}
.sgp-section-head h2:after,.sgp-section-head h2:before{display:none!important}
.sgp-related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.sgp-related-card{background:#fff;border:1px solid var(--sgp-border);border-radius:16px;overflow:hidden;box-shadow:0 9px 26px rgba(30,20,50,.045);transition:.22s ease}
.sgp-related-card:hover{transform:translateY(-4px);box-shadow:0 16px 34px rgba(30,20,50,.085);border-color:#ddd5ee}
.sgp-related-thumb{display:block;aspect-ratio:16/9;overflow:hidden;background:linear-gradient(135deg,#f4efff,#fff1f7)}
.sgp-related-thumb img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .25s ease}
.sgp-related-card:hover .sgp-related-thumb img{transform:scale(1.025)}
.sgp-thumb-fallback{display:grid;place-items:center;height:100%;font-size:2rem;color:var(--sgp-accent)}
.sgp-related-body{padding:14px 15px 16px}
.sgp-related-meta{font-size:.75rem;color:var(--sgp-muted);margin-bottom:7px}
.sgp-related-body h3{font-size:1rem!important;line-height:1.4;margin:0 0 11px!important;padding:0!important}
.sgp-related-body h3 a{color:var(--sgp-text);text-decoration:none}
.sgp-readmore{font-size:.84rem;font-weight:750;color:var(--sgp-accent);text-decoration:none!important}

/* Previous / Next post navigation */
body.sgp-style-post-nav.sgp-single-post :where(.post-navigation,.navigation.post-navigation){max-width:var(--sgp-content);margin:28px auto 0;padding:0 clamp(18px,4vw,42px)}
body.sgp-style-post-nav.sgp-single-post :where(.post-navigation,.navigation.post-navigation) .nav-links{display:grid;grid-template-columns:1fr 1fr;gap:14px}
body.sgp-style-post-nav.sgp-single-post :where(.post-navigation,.navigation.post-navigation) :where(.nav-previous,.nav-next) a{display:block;height:100%;padding:16px 17px;border:1px solid var(--sgp-border);border-radius:14px;background:#fff;color:var(--sgp-text);text-decoration:none;box-shadow:0 8px 22px rgba(30,20,50,.04);transition:.2s}
body.sgp-style-post-nav.sgp-single-post :where(.post-navigation,.navigation.post-navigation) :where(.nav-previous,.nav-next) a:hover{border-color:#dcd3ef;transform:translateY(-2px);box-shadow:0 12px 28px rgba(30,20,50,.07)}
body.sgp-style-post-nav.sgp-single-post :where(.post-navigation,.navigation.post-navigation) .nav-subtitle{display:block;color:var(--sgp-muted);font-size:.74rem;text-transform:uppercase;letter-spacing:.06em;margin-bottom:5px}
body.sgp-style-post-nav.sgp-single-post :where(.post-navigation,.navigation.post-navigation) .nav-title{font-weight:750;line-height:1.35}

/* Comments */
body.sgp-style-comments.sgp-single-post :where(.comments-area,#comments){max-width:var(--sgp-content);margin:34px auto 44px;padding:clamp(22px,4vw,34px);background:#fff;border:1px solid var(--sgp-border);border-radius:var(--sgp-radius);box-shadow:0 10px 30px rgba(30,20,50,.045)}
body.sgp-style-comments.sgp-single-post :where(.comments-title,.comment-reply-title,#reply-title){font-size:clamp(1.25rem,2.4vw,1.65rem);line-height:1.3;margin:0 0 18px;color:var(--sgp-text)}
body.sgp-style-comments.sgp-single-post :where(.comment-notes,.logged-in-as){font-size:.9rem;color:var(--sgp-muted);margin-bottom:18px}
body.sgp-style-comments.sgp-single-post .comment-form{display:grid;grid-template-columns:1fr 1fr;gap:14px}
body.sgp-style-comments.sgp-single-post .comment-form > :where(.comment-form-comment,.comment-notes,.logged-in-as,.form-submit,.comment-form-cookies-consent){grid-column:1/-1}
body.sgp-style-comments.sgp-single-post .comment-form p{margin:0}
body.sgp-style-comments.sgp-single-post .comment-form label{display:block;font-size:.82rem;font-weight:750;color:#4f4a57;margin:0 0 6px}
body.sgp-style-comments.sgp-single-post .comment-form :where(input[type="text"],input[type="email"],input[type="url"],textarea){box-sizing:border-box;width:100%;border:1px solid #ddd9e5;border-radius:11px;background:#fbfbfc;color:var(--sgp-text);padding:11px 12px;font:inherit;outline:none;transition:.18s}
body.sgp-style-comments.sgp-single-post .comment-form textarea{min-height:150px;resize:vertical}
body.sgp-style-comments.sgp-single-post .comment-form :where(input,textarea):focus{border-color:#b9a5ec;background:#fff;box-shadow:0 0 0 3px rgba(124,58,237,.08)}
body.sgp-style-comments.sgp-single-post .comment-form input[type="submit"]{border:0;border-radius:10px;background:linear-gradient(135deg,var(--sgp-accent),#6d28d9);color:#fff;padding:11px 18px;font-weight:800;cursor:pointer;box-shadow:0 8px 18px rgba(124,58,237,.18)}
body.sgp-style-comments.sgp-single-post :where(.comment-list,.children){list-style:none;margin:0;padding:0}
body.sgp-style-comments.sgp-single-post .comment-list > li{padding:18px 0;border-top:1px solid var(--sgp-border)}
body.sgp-style-comments.sgp-single-post .comment-body{font-size:.95rem;line-height:1.65}
body.sgp-style-comments.sgp-single-post .comment-author img{border-radius:50%;margin-right:8px}

/* Sidebar / widgets on post pages */
body.sgp-style-sidebar.sgp-single-post :where(.widget-area,.sidebar,.site-sidebar,aside[id*="sidebar"]){font-size:.93rem}
body.sgp-style-sidebar.sgp-single-post :where(.widget-area,.sidebar,.site-sidebar,aside[id*="sidebar"]) .widget{background:#fff;border:1px solid var(--sgp-border);border-radius:15px;padding:18px;margin-bottom:16px;box-shadow:0 8px 24px rgba(30,20,50,.04)}
body.sgp-style-sidebar.sgp-single-post :where(.widget-area,.sidebar,.site-sidebar,aside[id*="sidebar"]) :where(.widget-title,h2){font-size:1rem!important;line-height:1.3;margin:0 0 13px!important;padding:0 0 10px!important;border-bottom:1px solid var(--sgp-border);color:var(--sgp-text)}
body.sgp-style-sidebar.sgp-single-post :where(.widget-area,.sidebar,.site-sidebar,aside[id*="sidebar"]) :where(.widget-title,h2):after{display:none!important}
body.sgp-style-sidebar.sgp-single-post :where(.widget-area,.sidebar,.site-sidebar,aside[id*="sidebar"]) ul{list-style:none;padding:0;margin:0}
body.sgp-style-sidebar.sgp-single-post :where(.widget-area,.sidebar,.site-sidebar,aside[id*="sidebar"]) li{padding:8px 0;border-bottom:1px solid #f0edf4}
body.sgp-style-sidebar.sgp-single-post :where(.widget-area,.sidebar,.site-sidebar,aside[id*="sidebar"]) li:last-child{border-bottom:0}
body.sgp-style-sidebar.sgp-single-post :where(.widget-area,.sidebar,.site-sidebar,aside[id*="sidebar"]) a{color:#4e4955;text-decoration:none}
body.sgp-style-sidebar.sgp-single-post :where(.widget-area,.sidebar,.site-sidebar,aside[id*="sidebar"]) a:hover{color:var(--sgp-accent)}

/* Archive/search/category cards — homepage excluded by PHP */
body.sgp-style-archive-cards:not(.sgp-single-post) :where(article.post,.wp-block-post){background:#fff;border:1px solid var(--sgp-border);border-radius:var(--sgp-radius);overflow:hidden;box-shadow:0 10px 30px rgba(34,22,56,.045);transition:.22s ease}
body.sgp-style-archive-cards:not(.sgp-single-post) :where(article.post,.wp-block-post):hover{transform:translateY(-3px);box-shadow:0 16px 38px rgba(34,22,56,.075)}
body.sgp-style-archive-cards:not(.sgp-single-post) :where(article.post,.wp-block-post) :where(.entry-header,.entry-content,.entry-summary){padding-left:18px;padding-right:18px}
body.sgp-style-archive-cards:not(.sgp-single-post) :where(article.post,.wp-block-post) :where(.post-thumbnail,.wp-block-post-featured-image) img{display:block;width:100%;aspect-ratio:16/10;object-fit:cover}

/* Header / footer: subtle only */
body.sgp-style-header-footer :where(header.site-header,#masthead){border-bottom:1px solid rgba(230,226,236,.9);box-shadow:0 5px 22px rgba(30,20,50,.025)}
body.sgp-style-header-footer :where(footer.site-footer,#colophon){border-top:1px solid var(--sgp-border)}

@media (max-width:900px){
  body.sgp-single-post :where(article.post,.type-post){border-radius:16px}
  .sgp-related-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .sgp-toc-list{grid-template-columns:1fr}
}
@media (max-width:680px){
  body.sgp-single-post :where(.site-content,#content){padding-inline:9px}
  body.sgp-single-post :where(article.post,.type-post){border-radius:12px}
  body.sgp-single-post :where(.entry-content,.post-content,.wp-block-post-content){padding-inline:17px;font-size:1rem;line-height:1.76}
  body.sgp-single-post :where(h1.entry-title,.entry-title,.wp-block-post-title){font-size:1.85rem}
  .sgp-related-grid{grid-template-columns:1fr}
  body.sgp-style-post-nav.sgp-single-post :where(.post-navigation,.navigation.post-navigation) .nav-links{grid-template-columns:1fr}
  body.sgp-style-comments.sgp-single-post .comment-form{grid-template-columns:1fr}
  body.sgp-style-comments.sgp-single-post .comment-form > *{grid-column:1/-1}
  .sgp-sharebar{margin-inline:10px}
}


/* 1.2: Better shair cards + tighter spacing */
body.sgp-single-post :where(.entry-content,.post-content,.wp-block-post-content) :where(.sgp-shair-card){position:relative;margin:18px 0 22px;padding:20px 20px 16px;border:1px solid #e8e2f3;border-radius:18px;background:linear-gradient(180deg,#ffffff 0%,#fcfaff 100%);box-shadow:0 14px 34px rgba(30,20,50,.05)}
body.sgp-single-post :where(.entry-content,.post-content,.wp-block-post-content) :where(.sgp-shair-card)::before{content:"";position:absolute;inset:0 auto 0 0;width:4px;border-radius:18px 0 0 18px;background:linear-gradient(180deg,var(--sgp-accent),var(--sgp-accent2))}
body.sgp-single-post :where(.entry-content,.post-content,.wp-block-post-content) .sgp-shair-card > *{margin-left:0!important;margin-right:0!important}
body.sgp-single-post :where(.entry-content,.post-content,.wp-block-post-content) .sgp-shair-urdu{margin:0 0 10px!important;padding:0 0 0 18px!important;border:0!important;background:none!important;color:#181b2a;font-size:clamp(1.3rem,2.3vw,1.7rem);line-height:1.95;font-weight:700;text-align:right;quotes:none}
body.sgp-single-post :where(.entry-content,.post-content,.wp-block-post-content) .sgp-shair-urdu p{margin:0!important}
body.sgp-single-post :where(.entry-content,.post-content,.wp-block-post-content) .sgp-shair-urdu::before,
body.sgp-single-post :where(.entry-content,.post-content,.wp-block-post-content) .sgp-shair-urdu::after{display:none!important;content:none!important}
body.sgp-single-post :where(.entry-content,.post-content,.wp-block-post-content) .sgp-shair-roman{margin:0 0 14px!important;padding:11px 14px!important;border-radius:12px;background:#f8f4ff;color:#5b5565;font-size:.96rem;line-height:1.75;font-style:italic}
body.sgp-single-post :where(.entry-content,.post-content,.wp-block-post-content) .sgp-shair-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:0!important;padding-top:2px}
body.sgp-single-post :where(.entry-content,.post-content,.wp-block-post-content) .sgp-shair-actions > *{margin:0!important}
body.sgp-single-post :where(.entry-content,.post-content,.wp-block-post-content) .sgp-shair-btn,
body.sgp-single-post :where(.entry-content,.post-content,.wp-block-post-content) .sgp-shair-actions :where(button,a){appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:10px 15px;border-radius:12px;border:1px solid #ddd5ec;background:#fff;color:#413c49;font:inherit;font-size:.9rem;font-weight:700;text-decoration:none!important;box-shadow:0 4px 14px rgba(34,22,56,.045);cursor:pointer;transition:.18s ease}
body.sgp-single-post :where(.entry-content,.post-content,.wp-block-post-content) .sgp-copy-btn{background:#f8f4ff;border-color:#d8cdf2;color:var(--sgp-accent)}
body.sgp-single-post :where(.entry-content,.post-content,.wp-block-post-content) .sgp-download-btn{background:linear-gradient(135deg,var(--sgp-accent),#6d28d9);border-color:transparent;color:#fff;box-shadow:0 10px 20px rgba(124,58,237,.2)}
body.sgp-single-post :where(.entry-content,.post-content,.wp-block-post-content) .sgp-shair-actions :where(button,a):hover{transform:translateY(-1px);box-shadow:0 10px 22px rgba(34,22,56,.08)}

/* Tighter images and inline utility blocks */
body.sgp-single-post :where(.entry-content,.post-content,.wp-block-post-content) > :where(.wp-block-image,figure,img){margin-top:18px}
body.sgp-single-post :where(.entry-content,.post-content,.wp-block-post-content) > :where(.wp-block-image,figure){margin-bottom:22px}
body.sgp-single-post :where(.entry-content,.post-content,.wp-block-post-content) > :where(p,div){max-width:100%}
body.sgp-single-post :where(.entry-content,.post-content,.wp-block-post-content) p:empty,
body.sgp-single-post :where(.entry-content,.post-content,.wp-block-post-content) div:empty{display:none!important}
body.sgp-single-post :where(.entry-content,.post-content,.wp-block-post-content) :where(.also-read,.yarpp-related,.internal-link-box){margin:18px 0 22px!important;padding:14px 16px!important;border:1px solid #e4ddf2;border-radius:14px;background:#fcfaff}

/* Professional sidebar */
body.sgp-style-sidebar.sgp-single-post :where(.widget-area,.sidebar,.site-sidebar,aside[id*="sidebar"]){position:relative;top:auto}
body.sgp-style-sidebar.sgp-single-post :where(.widget-area,.sidebar,.site-sidebar,aside[id*="sidebar"]) .widget{padding:22px;border-radius:18px;box-shadow:0 14px 34px rgba(31,20,50,.05)}
body.sgp-style-sidebar.sgp-single-post :where(.widget-area,.sidebar,.site-sidebar,aside[id*="sidebar"]) :where(.widget_search,.search-form){display:block}
body.sgp-style-sidebar.sgp-single-post :where(.widget-area,.sidebar,.site-sidebar,aside[id*="sidebar"]) :where(form[role="search"],.search-form){display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center}
body.sgp-style-sidebar.sgp-single-post :where(.widget-area,.sidebar,.site-sidebar,aside[id*="sidebar"]) :where(input[type="search"],input[type="text"]){width:100%;min-height:46px;padding:0 14px;border:1px solid #ddd7ea;border-radius:12px;background:#fbfbfe;box-sizing:border-box}
body.sgp-style-sidebar.sgp-single-post :where(.widget-area,.sidebar,.site-sidebar,aside[id*="sidebar"]) :where(button, input[type="submit"], .search-submit){min-height:46px;padding:0 16px;border:0;border-radius:12px;background:linear-gradient(135deg,var(--sgp-accent),#6d28d9);color:#fff;font-weight:800;cursor:pointer;box-shadow:0 8px 18px rgba(124,58,237,.18)}
body.sgp-style-sidebar.sgp-single-post :where(.widget-area,.sidebar,.site-sidebar,aside[id*="sidebar"]) li{padding:11px 0}
body.sgp-style-sidebar.sgp-single-post :where(.widget-area,.sidebar,.site-sidebar,aside[id*="sidebar"]) li a{display:block;line-height:1.6}
body.sgp-style-sidebar.sgp-single-post :where(.widget-area,.sidebar,.site-sidebar,aside[id*="sidebar"]) .widget_recent_entries li,
body.sgp-style-sidebar.sgp-single-post :where(.widget-area,.sidebar,.site-sidebar,aside[id*="sidebar"]) .widget_categories li,
body.sgp-style-sidebar.sgp-single-post :where(.widget-area,.sidebar,.site-sidebar,aside[id*="sidebar"]) .widget_archive li{position:relative;padding-left:16px}
body.sgp-style-sidebar.sgp-single-post :where(.widget-area,.sidebar,.site-sidebar,aside[id*="sidebar"]) .widget_recent_entries li::before,
body.sgp-style-sidebar.sgp-single-post :where(.widget-area,.sidebar,.site-sidebar,aside[id*="sidebar"]) .widget_categories li::before,
body.sgp-style-sidebar.sgp-single-post :where(.widget-area,.sidebar,.site-sidebar,aside[id*="sidebar"]) .widget_archive li::before{content:"";position:absolute;left:0;top:18px;width:6px;height:6px;border-radius:50%;background:var(--sgp-accent)}
body.sgp-style-sidebar.sgp-single-post .sgp-empty-widget{display:none!important}

/* Remove extra top gap around side columns when theme creates it */
body.sgp-single-post :where(.content-area,.site-main,.primary,.secondary){margin-top:0!important}
body.sgp-single-post :where(.site-main > *, .content-area > *){margin-top:0}

@media (max-width:680px){
  body.sgp-single-post :where(.site-content,#content){padding-top:10px}
  body.sgp-single-post :where(.entry-content,.post-content,.wp-block-post-content){padding-bottom:18px}
  body.sgp-single-post :where(.entry-content,.post-content,.wp-block-post-content) .sgp-shair-card{padding:16px 14px 14px}
  body.sgp-single-post :where(.entry-content,.post-content,.wp-block-post-content) .sgp-shair-urdu{padding-left:12px!important;font-size:1.24rem;line-height:1.85}
  body.sgp-single-post :where(.entry-content,.post-content,.wp-block-post-content) .sgp-shair-actions{display:grid;grid-template-columns:1fr 1fr}
  body.sgp-single-post :where(.entry-content,.post-content,.wp-block-post-content) .sgp-shair-actions :where(button,a){width:100%}
  body.sgp-style-sidebar.sgp-single-post :where(.widget-area,.sidebar,.site-sidebar,aside[id*="sidebar"]) .widget{padding:18px}
  body.sgp-style-sidebar.sgp-single-post :where(.widget-area,.sidebar,.site-sidebar,aside[id*="sidebar"]) :where(form[role="search"],.search-form){grid-template-columns:1fr}
}


/* 1.3 robust poetry card overrides */
body.sgp-single-post .sgp-shair-card{display:block!important;position:relative!important;margin:18px 0 22px!important;padding:22px 22px 18px!important;border:1px solid #e7e0f2!important;border-radius:18px!important;background:#fff!important;box-shadow:0 12px 30px rgba(34,22,56,.055)!important;overflow:hidden!important}
body.sgp-single-post .sgp-shair-card:before{content:""!important;position:absolute!important;left:0!important;top:0!important;bottom:0!important;width:4px!important;background:linear-gradient(180deg,var(--sgp-accent),var(--sgp-accent2))!important}
body.sgp-single-post .sgp-shair-card .sgp-shair-urdu{display:block!important;margin:0 0 12px!important;padding:0 0 0 12px!important;border:0!important;background:transparent!important;box-shadow:none!important;color:#171923!important;font-family:inherit!important;font-size:clamp(1.35rem,2.1vw,1.72rem)!important;font-weight:700!important;line-height:1.95!important;text-align:right!important}
body.sgp-single-post .sgp-shair-card .sgp-shair-urdu:before,body.sgp-single-post .sgp-shair-card .sgp-shair-urdu:after{content:none!important;display:none!important}
body.sgp-single-post .sgp-shair-card .sgp-shair-roman{display:block!important;margin:0 0 14px!important;padding:12px 14px!important;border:1px solid #eee8f7!important;border-radius:12px!important;background:#faf8ff!important;color:#5d5866!important;font-size:.96rem!important;font-style:italic!important;line-height:1.72!important}
body.sgp-single-post .sgp-shair-card .sgp-shair-actions-wrap{margin:0!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important}
body.sgp-single-post .sgp-shair-card .sgp-shair-actions{display:flex!important;gap:10px!important;flex-wrap:wrap!important;margin:0!important;padding:0!important}
body.sgp-single-post .sgp-shair-card .sgp-shair-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:42px!important;margin:0!important;padding:10px 15px!important;border-radius:11px!important;font-size:.9rem!important;font-weight:750!important;line-height:1.2!important;text-decoration:none!important;cursor:pointer!important}
body.sgp-single-post .sgp-shair-card .sgp-copy-btn{border:1px solid #dcd2ef!important;background:#f7f2ff!important;color:var(--sgp-accent)!important;box-shadow:none!important}
body.sgp-single-post .sgp-shair-card .sgp-download-btn{border:1px solid transparent!important;background:linear-gradient(135deg,var(--sgp-accent),#6d28d9)!important;color:#fff!important;box-shadow:0 8px 18px rgba(124,58,237,.17)!important}

/* Layout compaction */
body.sgp-single-post :where(.site-content,#content){padding-top:10px!important}
body.sgp-single-post :where(.post-thumbnail,.wp-block-post-featured-image){margin-bottom:16px!important}
body.sgp-single-post :where(.entry-content,.post-content,.wp-block-post-content)>h2{margin-top:32px!important}
body.sgp-single-post :where(.entry-content,.post-content,.wp-block-post-content)>figure,body.sgp-single-post :where(.entry-content,.post-content,.wp-block-post-content)>.wp-block-image{margin-top:16px!important;margin-bottom:18px!important}

/* Sidebar: cleaner, more editorial */
body.sgp-style-sidebar.sgp-single-post :where(.widget-area,.sidebar,.site-sidebar,aside[id*="sidebar"]) .widget{border:1px solid #e9e4f1!important;border-radius:16px!important;background:#fff!important;padding:20px!important;box-shadow:0 8px 24px rgba(25,18,40,.035)!important}
body.sgp-style-sidebar.sgp-single-post :where(.widget-area,.sidebar,.site-sidebar,aside[id*="sidebar"]) :where(.widget-title,h2){font-size:.95rem!important;text-transform:none!important;letter-spacing:0!important;border-bottom:0!important;padding-bottom:0!important;margin-bottom:14px!important}
body.sgp-style-sidebar.sgp-single-post :where(.widget-area,.sidebar,.site-sidebar,aside[id*="sidebar"]) :where(.widget-title,h2):before{content:"";display:inline-block;width:4px;height:16px;margin-right:8px;vertical-align:-2px;border-radius:4px;background:var(--sgp-accent)}
body.sgp-style-sidebar.sgp-single-post :where(.widget-area,.sidebar,.site-sidebar,aside[id*="sidebar"]) li{padding:10px 0!important;border-bottom:1px solid #f0edf5!important}
body.sgp-style-sidebar.sgp-single-post :where(.widget-area,.sidebar,.site-sidebar,aside[id*="sidebar"]) li:last-child{border-bottom:0!important}
body.sgp-style-sidebar.sgp-single-post :where(.widget-area,.sidebar,.site-sidebar,aside[id*="sidebar"]) .search-form{gap:8px!important}
body.sgp-style-sidebar.sgp-single-post :where(.widget-area,.sidebar,.site-sidebar,aside[id*="sidebar"]) :where(input[type="search"],input[type="text"]){min-height:44px!important;border-radius:10px!important;background:#fbfbfd!important}
body.sgp-style-sidebar.sgp-single-post :where(.widget-area,.sidebar,.site-sidebar,aside[id*="sidebar"]) :where(button,input[type="submit"],.search-submit){min-height:44px!important;border-radius:10px!important;padding-inline:15px!important}
@media(max-width:680px){body.sgp-single-post .sgp-shair-card{padding:17px 15px 15px!important}body.sgp-single-post .sgp-shair-card .sgp-shair-actions{display:grid!important;grid-template-columns:1fr 1fr!important}body.sgp-single-post .sgp-shair-card .sgp-shair-btn{width:100%!important}}

/* ===========================
   1.4 final sidebar + shair UI
   =========================== */
body.sgp-single-post{--sgp-side-gap:24px}

/* Give the right column breathing room from header and content */
body.sgp-style-sidebar.sgp-single-post :where(.widget-area,.sidebar,.site-sidebar,aside[id*="sidebar"],#secondary){margin-top:26px!important;padding-top:0!important}
body.sgp-style-sidebar.sgp-single-post :where(.widget-area,.sidebar,.site-sidebar,aside[id*="sidebar"],#secondary) .widget{margin:0 0 20px!important;padding:20px!important;border:1px solid #e8e3ef!important;border-radius:16px!important;background:#fff!important;box-shadow:0 8px 22px rgba(25,18,40,.035)!important}
body.sgp-style-sidebar.sgp-single-post :where(.widget-area,.sidebar,.site-sidebar,aside[id*="sidebar"],#secondary) :where(.widget-title,h2){display:flex!important;align-items:center!important;gap:9px!important;margin:0 0 16px!important;padding:0!important;border:0!important;font-size:1rem!important;font-weight:800!important;line-height:1.3!important;color:#1f2430!important}
body.sgp-style-sidebar.sgp-single-post :where(.widget-area,.sidebar,.site-sidebar,aside[id*="sidebar"],#secondary) :where(.widget-title,h2)::before{content:""!important;display:block!important;flex:0 0 4px!important;width:4px!important;height:18px!important;margin:0!important;border-radius:5px!important;background:linear-gradient(180deg,var(--sgp-accent),var(--sgp-accent2))!important}
body.sgp-style-sidebar.sgp-single-post :where(.widget-area,.sidebar,.site-sidebar,aside[id*="sidebar"],#secondary) :where(.search-form,form[role="search"]){display:grid!important;grid-template-columns:minmax(0,1fr) 92px!important;gap:10px!important;align-items:center!important;margin:0!important}
body.sgp-style-sidebar.sgp-single-post :where(.widget-area,.sidebar,.site-sidebar,aside[id*="sidebar"],#secondary) :where(.search-form label,form[role="search"] label){display:block!important;min-width:0!important;margin:0!important;font-size:0!important;line-height:0!important}
body.sgp-style-sidebar.sgp-single-post :where(.widget-area,.sidebar,.site-sidebar,aside[id*="sidebar"],#secondary) :where(input[type="search"],input.search-field){display:block!important;width:100%!important;min-width:0!important;height:46px!important;margin:0!important;padding:0 13px!important;border:1px solid #ddd7e8!important;border-radius:11px!important;background:#fbfafd!important;color:#242733!important;box-sizing:border-box!important;box-shadow:none!important;font-size:.95rem!important;line-height:46px!important}
body.sgp-style-sidebar.sgp-single-post :where(.widget-area,.sidebar,.site-sidebar,aside[id*="sidebar"],#secondary) :where(.search-submit,button[type="submit"],input[type="submit"]){width:92px!important;height:46px!important;margin:0!important;padding:0 10px!important;border:0!important;border-radius:11px!important;background:linear-gradient(135deg,var(--sgp-accent),#6d28d9)!important;color:#fff!important;font-weight:800!important;box-shadow:0 8px 18px rgba(124,58,237,.16)!important}
body.sgp-style-sidebar.sgp-single-post :where(.widget-area,.sidebar,.site-sidebar,aside[id*="sidebar"],#secondary) ul{margin:0!important;padding:0!important;list-style:none!important}
body.sgp-style-sidebar.sgp-single-post :where(.widget-area,.sidebar,.site-sidebar,aside[id*="sidebar"],#secondary) li{position:relative!important;margin:0!important;padding:13px 0 13px 16px!important;border:0!important;border-bottom:1px solid #f0edf4!important;line-height:1.55!important}
body.sgp-style-sidebar.sgp-single-post :where(.widget-area,.sidebar,.site-sidebar,aside[id*="sidebar"],#secondary) li:last-child{border-bottom:0!important;padding-bottom:4px!important}
body.sgp-style-sidebar.sgp-single-post :where(.widget-area,.sidebar,.site-sidebar,aside[id*="sidebar"],#secondary) li::before{content:""!important;position:absolute!important;left:0!important;top:22px!important;width:6px!important;height:6px!important;border-radius:50%!important;background:#b79cf5!important}
body.sgp-style-sidebar.sgp-single-post :where(.widget-area,.sidebar,.site-sidebar,aside[id*="sidebar"],#secondary) li a{display:block!important;color:#414653!important;text-decoration:none!important;font-size:.95rem!important;line-height:1.55!important}
body.sgp-style-sidebar.sgp-single-post :where(.widget-area,.sidebar,.site-sidebar,aside[id*="sidebar"],#secondary) li a:hover{color:var(--sgp-accent)!important}
body.sgp-style-sidebar.sgp-single-post .sgp-empty-widget{display:none!important}

/* Strong shair cards: these selectors win over theme + existing plugin presentation */
body.sgp-single-post .sgp-shair-card{position:relative!important;display:block!important;margin:16px 0 22px!important;padding:0!important;border:1px solid #e6e0ef!important;border-radius:18px!important;background:#fff!important;box-shadow:0 12px 30px rgba(33,25,49,.055)!important;overflow:hidden!important}
body.sgp-single-post .sgp-shair-card::before{content:""!important;position:absolute!important;left:0!important;top:0!important;bottom:0!important;width:4px!important;background:linear-gradient(180deg,var(--sgp-accent),var(--sgp-accent2))!important;z-index:2!important}
body.sgp-single-post .sgp-shair-card .sgp-shair-urdu{display:block!important;margin:0!important;padding:22px 24px 16px!important;border:0!important;border-radius:0!important;background:#fff!important;box-shadow:none!important;color:#171923!important;font-size:clamp(1.32rem,2vw,1.68rem)!important;font-weight:700!important;line-height:1.95!important;text-align:right!important;direction:rtl!important;quotes:none!important}
body.sgp-single-post .sgp-shair-card .sgp-shair-urdu::before,body.sgp-single-post .sgp-shair-card .sgp-shair-urdu::after{display:none!important;content:none!important}
body.sgp-single-post .sgp-shair-card .sgp-shair-roman{display:block!important;margin:0 20px 16px!important;padding:12px 14px!important;border:1px solid #eee8f6!important;border-radius:12px!important;background:#faf8ff!important;color:#5e5967!important;font-size:.95rem!important;font-style:italic!important;line-height:1.7!important;text-align:left!important;direction:ltr!important}
body.sgp-single-post .sgp-shair-card .sgp-shair-actions-wrap{display:block!important;margin:0!important;padding:0 20px 18px!important;border:0!important;background:transparent!important;box-shadow:none!important}
body.sgp-single-post .sgp-shair-card .sgp-shair-actions{display:flex!important;align-items:center!important;gap:10px!important;flex-wrap:wrap!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important}
body.sgp-single-post .sgp-shair-card .sgp-shair-btn{appearance:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:122px!important;min-height:42px!important;margin:0!important;padding:10px 15px!important;border-radius:11px!important;font:inherit!important;font-size:.88rem!important;font-weight:800!important;line-height:1.2!important;text-decoration:none!important;cursor:pointer!important;transition:transform .16s ease,box-shadow .16s ease!important}
body.sgp-single-post .sgp-shair-card .sgp-copy-btn{border:1px solid #d9d0eb!important;background:#f7f3ff!important;color:#6f42c1!important;box-shadow:none!important}
body.sgp-single-post .sgp-shair-card .sgp-download-btn{border:1px solid transparent!important;background:linear-gradient(135deg,var(--sgp-accent),#6d28d9)!important;color:#fff!important;box-shadow:0 8px 18px rgba(124,58,237,.17)!important}
body.sgp-single-post .sgp-shair-card .sgp-shair-btn:hover{transform:translateY(-1px)!important}

/* Less dead space throughout the article */
body.sgp-single-post :where(.entry-content,.post-content,.wp-block-post-content)>h2{margin-top:30px!important;margin-bottom:14px!important}
body.sgp-single-post :where(.entry-content,.post-content,.wp-block-post-content)>p{margin-bottom:.85em!important}
body.sgp-single-post :where(.entry-content,.post-content,.wp-block-post-content)>figure,body.sgp-single-post :where(.entry-content,.post-content,.wp-block-post-content)>.wp-block-image{margin-top:14px!important;margin-bottom:18px!important}

@media(max-width:900px){
 body.sgp-style-sidebar.sgp-single-post :where(.widget-area,.sidebar,.site-sidebar,aside[id*="sidebar"],#secondary){margin-top:18px!important}
}
@media(max-width:680px){
 body.sgp-style-sidebar.sgp-single-post :where(.widget-area,.sidebar,.site-sidebar,aside[id*="sidebar"],#secondary) :where(.search-form,form[role="search"]){grid-template-columns:1fr!important}
 body.sgp-style-sidebar.sgp-single-post :where(.widget-area,.sidebar,.site-sidebar,aside[id*="sidebar"],#secondary) :where(.search-submit,button[type="submit"],input[type="submit"]){width:100%!important}
 body.sgp-single-post .sgp-shair-card .sgp-shair-urdu{padding:18px 18px 12px!important;font-size:1.22rem!important}
 body.sgp-single-post .sgp-shair-card .sgp-shair-roman{margin:0 14px 14px!important}
 body.sgp-single-post .sgp-shair-card .sgp-shair-actions-wrap{padding:0 14px 14px!important}
 body.sgp-single-post .sgp-shair-card .sgp-shair-actions{display:grid!important;grid-template-columns:1fr 1fr!important}
 body.sgp-single-post .sgp-shair-card .sgp-shair-btn{width:100%!important;min-width:0!important}
}

/* =========================================================
   v1.5 — exact post/sidebar/shair-card fixes for ShayariGPT
   ========================================================= */

/* More breathing room below the site header and around featured media */
body.sgp-single-post :where(.site-content,#content,.content-area){padding-top:28px!important}
body.sgp-single-post :where(.post-thumbnail,.wp-block-post-featured-image){margin-top:0!important;margin-bottom:28px!important}
body.sgp-single-post :where(.post-thumbnail,.wp-block-post-featured-image) img{border-radius:20px!important}
body.sgp-single-post :where(article.post,.type-post){margin-top:0!important}

/* ---------- Sidebar shell ---------- */
body.sgp-style-sidebar.sgp-single-post :where(#secondary,.widget-area,.sidebar,.site-sidebar,aside[id*="sidebar"]){
  margin-top:0!important;
  padding-top:0!important;
}
body.sgp-style-sidebar.sgp-single-post :where(#secondary,.widget-area,.sidebar,.site-sidebar,aside[id*="sidebar"]) .widget,
body.sgp-style-sidebar.sgp-single-post :where(#secondary,.widget-area,.sidebar,.site-sidebar,aside[id*="sidebar"]) .wp-block-group{
  margin:0 0 18px!important;
  padding:20px!important;
  border:1px solid #e8e3ef!important;
  border-radius:18px!important;
  background:#fff!important;
  box-shadow:0 10px 28px rgba(31,22,48,.045)!important;
}

/* Search: support classic widget AND Gutenberg wp-block-search */
body.sgp-style-sidebar.sgp-single-post :where(#secondary,.widget-area,.sidebar,.site-sidebar,aside[id*="sidebar"]) :where(.widget_search,.wp-block-search){
  padding:16px!important;
}
body.sgp-style-sidebar.sgp-single-post :where(#secondary,.widget-area,.sidebar,.site-sidebar,aside[id*="sidebar"]) :where(.widget_search .widget-title,.wp-block-search__label){
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}
body.sgp-style-sidebar.sgp-single-post :where(#secondary,.widget-area,.sidebar,.site-sidebar,aside[id*="sidebar"]) :where(.search-form,form[role="search"],.wp-block-search){
  display:block!important;
  margin:0!important;
}
body.sgp-style-sidebar.sgp-single-post :where(#secondary,.widget-area,.sidebar,.site-sidebar,aside[id*="sidebar"]) :where(.wp-block-search__inside-wrapper,.search-form){
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-sizing:border-box!important;
}
body.sgp-style-sidebar.sgp-single-post :where(#secondary,.widget-area,.sidebar,.site-sidebar,aside[id*="sidebar"]) :where(.wp-block-search__input,input[type="search"],input.search-field){
  display:block!important;
  flex:1 1 auto!important;
  width:auto!important;
  min-width:0!important;
  height:46px!important;
  margin:0!important;
  padding:0 14px!important;
  border:1px solid #ddd6e8!important;
  border-radius:12px!important;
  background:#fbfafd!important;
  color:#252833!important;
  font:inherit!important;
  font-size:.94rem!important;
  line-height:46px!important;
  box-sizing:border-box!important;
  box-shadow:none!important;
  outline:none!important;
}
body.sgp-style-sidebar.sgp-single-post :where(#secondary,.widget-area,.sidebar,.site-sidebar,aside[id*="sidebar"]) :where(.wp-block-search__input,input[type="search"],input.search-field):focus{
  border-color:#bba7e9!important;
  background:#fff!important;
  box-shadow:0 0 0 3px rgba(124,58,237,.08)!important;
}
body.sgp-style-sidebar.sgp-single-post :where(#secondary,.widget-area,.sidebar,.site-sidebar,aside[id*="sidebar"]) :where(.wp-block-search__button,.search-submit,button[type="submit"],input[type="submit"]){
  flex:0 0 auto!important;
  width:auto!important;
  min-width:94px!important;
  height:46px!important;
  margin:0!important;
  padding:0 17px!important;
  border:0!important;
  border-radius:12px!important;
  background:linear-gradient(135deg,var(--sgp-accent),#6d28d9)!important;
  color:#fff!important;
  font:inherit!important;
  font-size:.94rem!important;
  font-weight:800!important;
  line-height:46px!important;
  box-shadow:0 8px 18px rgba(124,58,237,.16)!important;
  cursor:pointer!important;
}

/* Sidebar headings and Recent Posts */
body.sgp-style-sidebar.sgp-single-post :where(#secondary,.widget-area,.sidebar,.site-sidebar,aside[id*="sidebar"]) :where(.widget-title,h2:not(.wp-block-post-title)){
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  margin:0 0 15px!important;
  padding:0!important;
  border:0!important;
  color:#20232c!important;
  font-size:1.02rem!important;
  font-weight:800!important;
  line-height:1.25!important;
}
body.sgp-style-sidebar.sgp-single-post :where(#secondary,.widget-area,.sidebar,.site-sidebar,aside[id*="sidebar"]) :where(.widget-title,h2:not(.wp-block-post-title))::before{
  content:""!important;
  display:block!important;
  flex:0 0 4px!important;
  width:4px!important;
  height:19px!important;
  margin:0!important;
  border-radius:10px!important;
  background:linear-gradient(180deg,var(--sgp-accent),var(--sgp-accent2))!important;
}
body.sgp-style-sidebar.sgp-single-post :where(#secondary,.widget-area,.sidebar,.site-sidebar,aside[id*="sidebar"]) ul{
  list-style:none!important;
  margin:0!important;
  padding:0!important;
}
body.sgp-style-sidebar.sgp-single-post :where(#secondary,.widget-area,.sidebar,.site-sidebar,aside[id*="sidebar"]) li{
  position:relative!important;
  margin:0!important;
  padding:13px 0 13px 17px!important;
  border:0!important;
  border-bottom:1px solid #f0edf4!important;
  line-height:1.55!important;
}
body.sgp-style-sidebar.sgp-single-post :where(#secondary,.widget-area,.sidebar,.site-sidebar,aside[id*="sidebar"]) li:last-child{
  padding-bottom:3px!important;
  border-bottom:0!important;
}
body.sgp-style-sidebar.sgp-single-post :where(#secondary,.widget-area,.sidebar,.site-sidebar,aside[id*="sidebar"]) li::before{
  content:""!important;
  position:absolute!important;
  left:0!important;
  top:21px!important;
  width:6px!important;
  height:6px!important;
  border-radius:50%!important;
  background:#b89cf4!important;
}
body.sgp-style-sidebar.sgp-single-post :where(#secondary,.widget-area,.sidebar,.site-sidebar,aside[id*="sidebar"]) li a{
  display:block!important;
  color:#414653!important;
  text-decoration:none!important;
  font-size:.94rem!important;
  line-height:1.55!important;
}
body.sgp-style-sidebar.sgp-single-post :where(#secondary,.widget-area,.sidebar,.site-sidebar,aside[id*="sidebar"]) li a:hover{
  color:var(--sgp-accent)!important;
}
body.sgp-style-sidebar.sgp-single-post .sgp-empty-widget{display:none!important}

/* ---------- Real shair cards ---------- */
body.sgp-single-post .sgp-shair-card{
  position:relative!important;
  display:block!important;
  width:100%!important;
  margin:18px 0 22px!important;
  padding:20px!important;
  border:1px solid #e7e1ef!important;
  border-radius:18px!important;
  background:linear-gradient(180deg,#ffffff 0%,#fdfbff 100%)!important;
  box-shadow:0 12px 30px rgba(35,24,52,.055)!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}
body.sgp-single-post .sgp-shair-card::before{
  content:""!important;
  position:absolute!important;
  top:0!important;
  left:0!important;
  bottom:0!important;
  width:4px!important;
  border-radius:18px 0 0 18px!important;
  background:linear-gradient(180deg,var(--sgp-accent),var(--sgp-accent2))!important;
}
/* Neutralise existing wrapper chrome without touching functional controls */
body.sgp-single-post .sgp-shair-card > :not(.sgp-shair-urdu):not(.sgp-shair-roman):not(.sgp-shair-actions){
  max-width:100%!important;
}
body.sgp-single-post .sgp-shair-card .sgp-shair-urdu{
  display:block!important;
  margin:0 0 11px!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#181a22!important;
  font-size:clamp(1.34rem,2vw,1.7rem)!important;
  font-weight:700!important;
  line-height:1.95!important;
  text-align:right!important;
  direction:rtl!important;
  quotes:none!important;
}
body.sgp-single-post .sgp-shair-card .sgp-shair-urdu::before,
body.sgp-single-post .sgp-shair-card .sgp-shair-urdu::after{display:none!important;content:none!important}
body.sgp-single-post .sgp-shair-card .sgp-shair-roman{
  display:block!important;
  margin:0 0 15px!important;
  padding:11px 13px!important;
  border:1px solid #eee8f6!important;
  border-radius:12px!important;
  background:#f8f5ff!important;
  box-shadow:none!important;
  color:#5f5968!important;
  font-size:.95rem!important;
  font-style:italic!important;
  line-height:1.7!important;
  text-align:left!important;
  direction:ltr!important;
}
body.sgp-single-post .sgp-shair-card .sgp-shair-actions{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  flex-wrap:wrap!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
body.sgp-single-post .sgp-shair-card .sgp-shair-btn{
  appearance:none!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  min-width:124px!important;
  min-height:42px!important;
  margin:0!important;
  padding:10px 15px!important;
  border-radius:11px!important;
  font:inherit!important;
  font-size:.88rem!important;
  font-weight:800!important;
  line-height:1.2!important;
  text-decoration:none!important;
  cursor:pointer!important;
  transition:transform .16s ease,box-shadow .16s ease!important;
}
body.sgp-single-post .sgp-shair-card .sgp-copy-btn{
  border:1px solid #d9d0eb!important;
  background:#f7f3ff!important;
  color:#7047bb!important;
  box-shadow:none!important;
}
body.sgp-single-post .sgp-shair-card .sgp-download-btn{
  border:1px solid transparent!important;
  background:linear-gradient(135deg,var(--sgp-accent),#6d28d9)!important;
  color:#fff!important;
  box-shadow:0 8px 18px rgba(124,58,237,.17)!important;
}
body.sgp-single-post .sgp-shair-card .sgp-shair-btn:hover{
  transform:translateY(-1px)!important;
}

/* Article spacing: remove the empty-looking vertical gaps */
body.sgp-single-post :where(.entry-content,.post-content,.wp-block-post-content,.single-content) > h2{
  margin-top:32px!important;
  margin-bottom:14px!important;
}
body.sgp-single-post :where(.entry-content,.post-content,.wp-block-post-content,.single-content) > p{
  margin-top:0!important;
  margin-bottom:.9em!important;
}
body.sgp-single-post :where(.entry-content,.post-content,.wp-block-post-content,.single-content) > :where(figure,.wp-block-image){
  margin-top:16px!important;
  margin-bottom:20px!important;
}
body.sgp-single-post :where(.entry-content,.post-content,.wp-block-post-content,.single-content) :where(p:empty,div:empty){display:none!important}

@media (max-width:900px){
  body.sgp-style-sidebar.sgp-single-post :where(#secondary,.widget-area,.sidebar,.site-sidebar,aside[id*="sidebar"]){margin-top:22px!important}
}
@media (max-width:680px){
  body.sgp-single-post :where(.site-content,#content,.content-area){padding-top:16px!important}
  body.sgp-style-sidebar.sgp-single-post :where(#secondary,.widget-area,.sidebar,.site-sidebar,aside[id*="sidebar"]) :where(.wp-block-search__inside-wrapper,.search-form){display:grid!important;grid-template-columns:1fr!important}
  body.sgp-style-sidebar.sgp-single-post :where(#secondary,.widget-area,.sidebar,.site-sidebar,aside[id*="sidebar"]) :where(.wp-block-search__button,.search-submit,button[type="submit"],input[type="submit"]){width:100%!important}
  body.sgp-single-post .sgp-shair-card{padding:16px 14px!important;border-radius:15px!important}
  body.sgp-single-post .sgp-shair-card .sgp-shair-urdu{font-size:1.22rem!important;line-height:1.85!important}
  body.sgp-single-post .sgp-shair-card .sgp-shair-actions{display:grid!important;grid-template-columns:1fr 1fr!important}
  body.sgp-single-post .sgp-shair-card .sgp-shair-btn{width:100%!important;min-width:0!important}
}


/* =========================================================
 * v1.6 — Wider post reading area, without touching the walls
 * ========================================================= */
body.sgp-single-post :where(article.post,.type-post) > :where(.entry-header,.post-header){
  max-width:100%!important;
  width:100%!important;
  box-sizing:border-box!important;
  padding-left:clamp(26px,3vw,34px)!important;
  padding-right:clamp(26px,3vw,34px)!important;
}

body.sgp-single-post :where(.entry-content,.post-content,.wp-block-post-content,.single-content,.entry-content-wrap){
  max-width:100%!important;
  width:100%!important;
  box-sizing:border-box!important;
  margin-left:0!important;
  margin-right:0!important;
  padding-left:clamp(26px,3vw,34px)!important;
  padding-right:clamp(26px,3vw,34px)!important;
}

/* Keep media naturally wide, but aligned with the content gutter. */
body.sgp-single-post :where(.entry-content,.post-content,.wp-block-post-content,.single-content,.entry-content-wrap) > :where(figure,.wp-block-image,.wp-block-gallery,table,.wp-block-table){
  max-width:100%!important;
  width:100%!important;
  box-sizing:border-box!important;
}

/* Text blocks can use the full readable column without looking stretched. */
body.sgp-single-post :where(.entry-content,.post-content,.wp-block-post-content,.single-content,.entry-content-wrap) > :where(p,ul,ol,blockquote,h2,h3,h4,.sgp-inline-toc){
  max-width:none!important;
}

/* Match the wider reading area for utility sections below the article. */
body.sgp-style-post-nav.sgp-single-post :where(.post-navigation,.navigation.post-navigation),
body.sgp-style-comments.sgp-single-post :where(.comments-area,#comments),
.sgp-sharebar{
  max-width:none!important;
  width:auto!important;
  margin-left:clamp(26px,3vw,34px)!important;
  margin-right:clamp(26px,3vw,34px)!important;
}

@media (max-width:900px){
  body.sgp-single-post :where(article.post,.type-post) > :where(.entry-header,.post-header),
  body.sgp-single-post :where(.entry-content,.post-content,.wp-block-post-content,.single-content,.entry-content-wrap){
    padding-left:22px!important;
    padding-right:22px!important;
  }
  body.sgp-style-post-nav.sgp-single-post :where(.post-navigation,.navigation.post-navigation),
  body.sgp-style-comments.sgp-single-post :where(.comments-area,#comments),
  .sgp-sharebar{
    margin-left:22px!important;
    margin-right:22px!important;
  }
}

@media (max-width:680px){
  body.sgp-single-post :where(.site-content,#content){
    padding-left:8px!important;
    padding-right:8px!important;
  }
  body.sgp-single-post :where(article.post,.type-post) > :where(.entry-header,.post-header),
  body.sgp-single-post :where(.entry-content,.post-content,.wp-block-post-content,.single-content,.entry-content-wrap){
    padding-left:15px!important;
    padding-right:15px!important;
  }
  body.sgp-style-post-nav.sgp-single-post :where(.post-navigation,.navigation.post-navigation),
  body.sgp-style-comments.sgp-single-post :where(.comments-area,#comments),
  .sgp-sharebar{
    margin-left:15px!important;
    margin-right:15px!important;
  }
}
