/*
Theme Name: Sukhan Gah
Theme URI: https://example.com/sukhan-gah
Author: Sukhan Gah
Description: A fully customizable Urdu poetry (shayari) theme: poetry posts with numbered couplets, copy and share buttons, poets and categories with sub-categories, member registration with unique usernames, front-end poetry submission, admin approval, duplicate detection, members list, widgets, sidebars, dark mode and a one-click demo importer. Change colors, fonts, header, layout, home page, cards, posts and footer in Appearance > Customize > Sukhan Gah Options.
Version: 2.2.42
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: sukhan-gah
*/
:root{--bg:#faf6ee;--outer:#ebe3d3;--card:#fffdf8;--ink:#2a2118;--mute:#7a6a58;--acc:#8a5a2b;--line:#e6dccb;--hd:#12352f;--hd2:#0d2822;--gold:#e0b565;--hdt:#e9efec;--ftt:#b9cbc3;--btn:#12352f;--btnt:#e0b565;--hero1:#1f5a4d;--hero2:#12352f;--w:1180px;--bw:1320px;--r:16px;--hh:68px;--logoh:44px;--cols:3;--ar:16/10;--fs:16px;--fsp:19px;--lhp:2.5;--fsc:18px;--fss:21px;--sbw:28%;--hpad:48px;--ff-h:"Playfair Display",Georgia,serif;--ff-b:Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;--ff-u:"Noto Nastaliq Urdu","Jameel Noori Nastaleeq",serif;color-scheme:light}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{scroll-padding-top:90px}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--ff-b);font-size:var(--fs);line-height:1.6}
a{text-decoration:none;color:inherit}
img{max-width:100%;height:auto}
h1,h2,h3,h4{font-family:var(--ff-h)}
.ico{width:18px;height:18px;display:inline-block;vertical-align:-3px}
.th svg,.ban svg,.cimg svg,.deco svg{display:block;width:100%;height:100%}
.screen-reader-text{position:absolute;left:-9999px}
.site-shell{background:var(--bg)}
body.sg-boxed{background:var(--outer)}
body.sg-boxed .site-shell{max-width:var(--bw);margin:0 auto;box-shadow:0 0 40px #0003}
.wrap{max-width:var(--w);margin:0 auto;padding:0 16px}
.sg-hfull .site-header .wrap,.sg-hfull .top .wrap{max-width:none}
/* top bar */
.top{background:var(--hd2);color:var(--ftt);font-size:.78rem}
.top .wrap{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-top:5px;padding-bottom:5px}
.top-r{display:flex;align-items:center;gap:8px}
.top-r i{opacity:.5;font-style:normal}
.top-soc,.soc{display:flex;gap:6px}
.top-soc a{padding:0 6px;border-radius:999px;background:#ffffff14;font-weight:700;font-size:.7rem}
/* header */
.site-header{position:-webkit-sticky;position:sticky;top:0;z-index:40;background:var(--hd);color:var(--hdt);box-shadow:0 2px 14px #0004}
/* WordPress admin bar (only visible when you are logged in): fixed 32px on desktop, 46px on tablets, and it scrolls away on phones */
.admin-bar .site-header{top:32px}
@media (max-width:782px){.admin-bar .site-header{top:46px}}
@media (max-width:600px){.admin-bar .site-header{top:0}}
.hd{display:flex;align-items:center;gap:14px;min-height:var(--hh)}
.logo{display:flex;gap:10px;align-items:center}
.logo .custom-logo-link{display:block;line-height:0}
.logo .custom-logo{max-height:var(--logoh);width:auto;display:block}
.mark{flex:none;width:42px;height:42px;border-radius:12px;background:var(--gold);color:var(--hd);display:grid;place-items:center;overflow:hidden;font:700 1.45rem/1 "Noto Naskh Arabic","Segoe UI",Tahoma,Arial,sans-serif}
.brand b{display:block;font:700 var(--fss)/1.2 var(--ff-h);color:#fff}
.brand small{display:block;font-size:.6rem;letter-spacing:.12em;line-height:1.4;color:var(--ftt);text-transform:uppercase}
.main-nav{flex:1;margin-left:16px}
.main-nav ul{list-style:none;margin:0;padding:0}
.main-nav .menu{display:flex;gap:2px;flex-wrap:wrap}
.main-nav li{position:relative}
.main-nav a{display:block;color:var(--hdt);padding:calc((var(--hh) - 14px)/2) 14px;font-weight:500;font-size:.92rem;line-height:1}
.main-nav li:hover>a,.main-nav .current-menu-item>a{color:var(--gold)}
.main-nav .menu-item-has-children>a::after{content:" \25BE";font-size:.75em}
.main-nav .sub-menu{display:none;position:absolute;top:100%;left:0;min-width:220px;background:var(--card);border:1px solid var(--line);border-top:3px solid var(--gold);border-radius:0 0 var(--r) var(--r);box-shadow:0 14px 30px #0005;padding:8px;z-index:50}
.main-nav li:hover>.sub-menu{display:block}
.main-nav .sub-menu a{color:var(--ink);padding:10px 12px;border-radius:8px}
.main-nav .sub-menu a:hover{background:var(--line);color:var(--acc)}
.main-nav .sub-menu .menu-item-has-children>a::after{content:" \203A"}
.main-nav .sub-menu .sub-menu{top:-4px;left:100%;border-top:1px solid var(--line);border-radius:var(--r)}
.hr{display:flex;gap:8px;align-items:center}
.ic{background:#ffffff18;border:0;color:#fff;width:40px;height:40px;border-radius:50%;cursor:pointer;display:grid;place-items:center;padding:0}
.ic:hover{background:#ffffff30}
.burger{display:none}
.i-sun{display:none}
html.sg-isdark .i-sun{display:inline-block}html.sg-isdark .i-moon{display:none}
.cta{display:inline-flex;align-items:center;gap:6px;background:var(--gold);color:var(--hd);font-weight:700;padding:9px 18px;border-radius:999px;font-size:.88rem;white-space:nowrap;border:0;cursor:pointer}
.cta:hover{filter:brightness(1.06)}
.sbar{background:var(--hd2);padding:10px 16px}
input,button,select,textarea{font:inherit}
.searchform{margin:0}
.searchform input[type=search]{width:100%;max-width:560px;display:block;margin:0 auto;padding:10px 18px;border-radius:999px;border:0;background:var(--card);color:var(--ink)}
/* centered header */
.sg-hdr-center .hd{display:grid;grid-template-columns:1fr auto 1fr;grid-template-areas:". logo hr" "nav nav nav";min-height:0;padding-top:10px}
.sg-hdr-center .logo-area{grid-area:logo}
.sg-hdr-center .hr{grid-area:hr;justify-self:end}
.sg-hdr-center .main-nav{grid-area:nav;margin:0}
.sg-hdr-center .main-nav .menu{justify-content:center}
.sg-hdr-center .main-nav a{padding:14px}
/* hero */
.hero{position:relative;overflow:hidden;background:radial-gradient(circle at 80% 20%,var(--hero1),var(--hero2) 60%);color:#fff;padding:var(--hpad) 0}
.hero .wrap{position:relative;display:grid;grid-template-columns:1.1fr .9fr;gap:30px;align-items:center}
.deco{position:absolute;inset:0;opacity:.3;pointer-events:none}
.hero h1{margin:0 0 10px;font-size:2.6rem;line-height:1.2;color:var(--gold)}
.hero p{margin:0 0 18px;color:#d3e0da;font-size:1.05rem;max-width:520px}
.hero .searchform input{margin:0;max-width:440px}
.stats{display:flex;gap:26px;margin-top:22px}
.stats b{display:block;font-size:1.7rem;color:var(--gold);line-height:1.3}
.stats span{font-size:.8rem;color:var(--ftt)}
.dayc{background:var(--card);color:var(--ink);border-radius:calc(var(--r) + 2px);padding:18px 22px;text-align:center;box-shadow:0 16px 40px #0006;border:1px solid var(--gold)}
.dayc small{color:var(--acc);font-weight:700;letter-spacing:.06em;text-transform:uppercase;font-size:.72rem}
/* sections */
.sec{padding:36px 0 6px}
.sec h2{margin:0 0 16px;font-size:1.5rem;display:flex;align-items:center;gap:12px}
.sec h2::after{content:"";flex:1;height:1px;background:var(--line)}
.cats{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px}
.cc{background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:14px;border-top:4px solid var(--gold)}
.cimg{height:100px;border-radius:calc(var(--r) - 6px);overflow:hidden;margin-bottom:10px}
.cc h3{margin:0;font-size:1.2rem}
.chips{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}
.chip{border:1px solid var(--line);border-radius:999px;padding:1px 12px;font-size:.8rem;background:var(--bg);display:inline-block}
.chip:hover{border-color:var(--acc);color:var(--acc)}
/* page layout + sidebar */
.sg-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:28px}
.sg-layout.sb-right{grid-template-columns:minmax(0,1fr) minmax(240px,var(--sbw))}
.sg-layout.sb-left{grid-template-columns:minmax(240px,var(--sbw)) minmax(0,1fr)}
.sg-layout.sb-left .sg-side{order:-1}
.sg-head{min-width:0}
/* HEAD IN MAIN COLUMN ONLY (v2.1.34, desktop only): with a head,
   row 1 is the head in the main column only, row 2 is main + sidebar
   together, so the description never goes towards the sidebar AND
   the first sidebar widget still aligns with the first poetry
   card/block. On mobile, no explicit placement, so head, main and
   sidebar stack in DOM order. The sidebar column in row 1 is
   intentionally empty: that is the price of main-only head +
   sidebar-poetry alignment. If the sidebar were moved to row 1,
   it would start with the title, not with the poetry, which was
   the old alignment complaint. */
@media (min-width:1001px){
.sg-layout.sg-has-head.sb-right .sg-head{grid-column:1;grid-row:1}
.sg-layout.sg-has-head.sb-right .sg-main{grid-column:1;grid-row:2}
.sg-layout.sg-has-head.sb-right .sg-side{grid-column:2;grid-row:2;order:0}
.sg-layout.sg-has-head.sb-left .sg-head{grid-column:2;grid-row:1}
.sg-layout.sg-has-head.sb-left .sg-main{grid-column:2;grid-row:2}
.sg-layout.sg-has-head.sb-left .sg-side{grid-column:1;grid-row:2;order:0}
}
.sg-main.narrow{max-width:780px;margin:0 auto;width:100%}
.widget{background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:16px;margin:24px 0 0}
.sg-side .widget:first-child{margin-top:24px}
/* ALIGNMENT (re-applied v2.1.14): single post alignment. Breadcrumb is now above the grid,
   so the first sidebar widget must start at the grid top, not 24px down,
   or it would sit higher than the post card. Other pages keep 24px. */
.sg-layout.sg-single .sg-side .widget:first-child{margin-top:0}
/* ALIGNMENT (v2.1.31, correction of v2.1.28): v2.1.28 moved the
   page head above the grid (good) but also set the first sidebar
   widget to margin-top:0 (wrong). The main column's first grid
   already has margin-top:24px, so a 0 sidebar widget sat 24px
   HIGHER than the first card, which is exactly the profile-page
   screenshot. The fix is to keep BOTH at 24px: the default
   .sg-side .widget:first-child{margin-top:24px} already does that,
   so this rule is removed, not set to 0. Category full blocks
   (member poetry, no grid) get the same 24px top margin on their
   first block below, so they align with the sidebar too. */
.sg-layout.sg-archive .sg-main > article.one.sg-catpost:first-child{margin-top:24px}
.sg-layout.sg-archive .sg-main > .note:first-child{margin-top:24px}
/* ALIGNMENT (v2.1.15): login vs logout. Logged-in users bypass page cache and see the
   fresh HTML (breadcrumb above grid, sg-single). Logged-out visitors can still get a
   cached old HTML page (breadcrumb inside the main column) with the new CSS file, so
   the sg-single rule alone does not apply to them and the sidebar looks high again.
   This rule aligns that old structure too: breadcrumb is about 50px tall (18px top +
   about 22px text + 10px bottom), so the first sidebar widget is pushed to 50px to
   match the post card below the breadcrumb. Desktop only (sidebar stacks below
   the post on phones, where this gap does not apply). */
@media (min-width:1001px){
.sg-layout:has(> .sg-main > .bc + article.one) .sg-side .widget:first-child{margin-top:50px}
}
/* SIDEBAR DAILY (v2.1.15): Shayari of the Day in the sidebar is centred as a whole,
   heading included, not just the couplet. Other sidebar widgets (Poets, Categories,
   Latest) keep their left-aligned lists. */
.sg-side .widget:has(.sg-daily) .wt{text-align:center}
.sg-side .widget:has(.sg-daily) .sg-daily{text-align:center}
.sg-side .widget:has(.sg-daily) .sg-daily .poem{text-align:center}
.wt{margin:0 0 10px;font-size:1.05rem;color:var(--acc)}
.wl{list-style:none;margin:0;padding:0}
.wl li{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px;padding:6px 0;border-bottom:1px solid var(--line);font-size:.92rem}
.wl li:last-child{border-bottom:0}
.wl li span{color:var(--mute);font-size:.8rem}
.wl ul{list-style:none;padding:0 0 0 14px;margin:4px 0 0;flex-basis:100%}
.wl-img li{justify-content:flex-start;align-items:center;gap:10px}
.wth{flex:none;width:64px;height:44px;border-radius:8px;overflow:hidden;display:block}
.wth img{width:100%;height:100%;object-fit:cover}
.wth svg{width:100%;height:100%;display:block}
.mg-side{grid-template-columns:1fr}
.hw .widget:first-child{margin-top:0}
/* cards */
.grid{display:grid;grid-template-columns:repeat(var(--cols),minmax(0,1fr));gap:18px;margin-top:24px;align-items:stretch}
/* CARD ALIGNMENT (v2.1.39): cards in one row must share the row
   height, otherwise an image card sits taller than a no-image
   member card and their footers land at different levels. Grid
   stretch alone was not holding in the live All Posts row, so
   force each card to fill its grid area; .bd is already flex:1
   and .ft already margin-top:auto, so footers now line up at
   the bottom of every card in the row. */
.grid > .bp{height:100%;align-self:stretch}
.sec .grid{margin-top:0}
/* MEMBER POETRY SLIDER (v2.2.40): four cards per view on desktop
   (the same narrow size as v2.2.39), two on tablet, one on phone.
   Without JS the track is a sideways-scrollable row; the JS adds
   .sg-on, which hides the overflow and slides the track. */
.sg-slider{position:relative}
.sg-slider .sg-track{display:flex;gap:18px;overflow-x:auto;scrollbar-width:none}
.sg-slider .sg-track::-webkit-scrollbar{display:none}
.sg-slider .sg-track > .bp{flex:0 0 calc((100% - 54px)/4)}
@media (max-width:1000px){.sg-slider .sg-track > .bp{flex-basis:calc((100% - 18px)/2)}}
@media (max-width:620px){.sg-slider .sg-track > .bp{flex-basis:100%}}
.sg-slider.sg-on .sg-track{overflow:hidden;transition:transform .5s ease}
.sg-slider.sg-on .sg-track.sg-notrans{transition:none}
.sg-slider .sg-nav{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:14px}
.sg-slider .sg-sl-prev,.sg-slider .sg-sl-next{width:34px;height:34px;border-radius:50%;border:1px solid var(--line);background:var(--card);color:var(--ink);font-size:1.3rem;line-height:1;cursor:pointer}
.sg-slider .sg-sl-prev:hover,.sg-slider .sg-sl-next:hover{background:var(--gold);color:var(--btn);border-color:var(--gold)}
.sg-slider .sg-dots{display:flex;gap:6px;align-items:center}
.sg-slider .sg-dots button{width:9px;height:9px;border-radius:50%;border:0;background:var(--line);padding:0;cursor:pointer}
.sg-slider .sg-dots button.on{background:var(--gold)}
.sg-slider.sg-static .sg-nav{display:none}
.bp{background:var(--card);border:1px solid var(--line);border-radius:var(--r);overflow:hidden;display:flex;flex-direction:column;transition:transform .2s,box-shadow .2s}
body:not(.sg-nohover) .bp:hover{transform:translateY(-3px);box-shadow:0 12px 28px #0002}
body.sg-card-shadow .bp{border-color:transparent;box-shadow:0 4px 16px #0001}
body.sg-card-flat .bp{border:0;background:transparent;border-radius:0}
/* MEMBER CARD BACKGROUND PHOTO (v2.2.35): the couplet sits on a photo
   with a dark overlay, so the text reads in light and dark mode
   alike. All text on the photo card is light, whatever the mode,
   because the overlay is always dark. Scoped off Flat cards
   (Customizer > Card style > Flat): a flat card has no box at all,
   so a photo there would fight the style and the light text would
   sit on the plain page. */
body:not(.sg-card-flat) .bp.sg-has-bg{background-image:linear-gradient(rgba(14,11,7,.78),rgba(14,11,7,.78)),var(--mbg);background-size:cover;background-position:center;color:#f1e7d6;border-color:#e0b56555}
body:not(.sg-card-flat) .bp.sg-has-bg .bd h3 a{color:#f7ead0}
body:not(.sg-card-flat) .bp.sg-has-bg .bd h3 a:hover{color:var(--gold)}
body:not(.sg-card-flat) .bp.sg-has-bg .ex{color:#e8dcc4}
body:not(.sg-card-flat) .bp.sg-has-bg .sg-card-by{color:#d8c9a8}
body:not(.sg-card-flat) .bp.sg-has-bg .sg-card-by a{color:var(--gold)}
body:not(.sg-card-flat) .bp.sg-has-bg .ft{color:#d8c9a8;border-top-color:#e0b56533}
body:not(.sg-card-flat) .bp.sg-has-bg .more{color:var(--gold)}
/* LIKE ON PHOTO CARD (v2.2.41): the button is <button class="btn
   sg-like">, and .btn (line 309, later in this file) sets
   background:var(--bg) — equal specificity with .sg-like's
   transparent, so .btn wins. --bg is cream in light mode and
   near-black in dark mode, which is why the pill was white and
   the pale heart invisible in light mode, but fine in dark mode.
   The chip below gives the button its own dark background in
   BOTH modes, so the pale heart always reads. Hover keeps the
   pale text (the generic .btn:hover would turn it brown), and a
   liked heart is a bright rose here so it still reads on the
   dark photo — the theme red #c9184a is too dark for that. */
body:not(.sg-card-flat) .bp.sg-has-bg .sg-like{background:rgba(14,11,7,.55);color:#f1e7d6;border-color:#e0b56588}
body:not(.sg-card-flat) .bp.sg-has-bg .sg-like:hover{color:#f1e7d6;border-color:var(--gold)}
body:not(.sg-card-flat) .bp.sg-has-bg .sg-like.liked{color:#ff5c8a;border-color:#ff5c8a}
/* CENTRED TEXT ON PHOTO CARD (v2.2.37): the couplet + byline sit in
   the middle of the photo, the footer stays pinned at the bottom.
   .bd is already a flex column with flex:1 and .ft already has
   margin-top:auto, so margin-top:auto on the title shares the free
   space equally with the footer — the text block centres between
   the top of the card and the footer. The 300px min-height gives
   the photo room to show and the text room to centre into. */
body:not(.sg-card-flat) .bp.sg-has-bg{min-height:240px}
body:not(.sg-card-flat) .bp.sg-has-bg .bd h3{margin-top:auto;text-align:center}
body:not(.sg-card-flat) .bp.sg-has-bg .ex{text-align:center}
body:not(.sg-card-flat) .bp.sg-has-bg .sg-card-by{text-align:center}
body:not(.sg-card-flat) .bp.sg-has-bg .cattags{justify-content:center}
.th{position:relative;display:block;aspect-ratio:var(--ar);overflow:hidden;border-radius:calc(var(--r) - 2px) calc(var(--r) - 2px) 0 0}
body.sg-card-flat .th{border-radius:var(--r)}
.th img{width:100%;height:100%;object-fit:cover;display:block}
.ct{position:absolute;top:10px;left:10px;background:var(--gold);color:var(--hd);font-size:.72rem;font-weight:700;border-radius:999px;padding:2px 12px}
.bd{padding:14px 16px;display:flex;flex-direction:column;gap:8px;flex:1}
body.sg-card-flat .bd{padding-left:0;padding-right:0}
.bd h3{margin:0;font-size:var(--fsc);line-height:1.4}
.bd h3 a:hover{color:var(--acc)}
.ex{margin:0;color:var(--mute);font-size:.88rem;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
/* MEMBER CARD URDU FONT (v2.2.24): a member card's title and excerpt ARE the Urdu couplet, so they use the same Urdu font as the poetry text (--ff-u, Nastaliq by default, follows Customizer > Urdu poetry font), not the Latin heading/body fonts. The taller line-height is needed or Nastaliq clips. Admin-post cards keep their Latin titles. */
.bp.sg-urdu .bd h3,.bp.sg-urdu .ex{font-family:var(--ff-u);line-height:2.1}
.bp.sg-urdu .ex{font-size:.95rem}
.ft{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;margin-top:auto;padding-top:10px;border-top:1px solid var(--line);font-size:.82rem;color:var(--mute)}
.sg-card-by{font-size:.82rem;color:var(--mute)}
.sg-card-by a{color:var(--acc);font-weight:700}
.sg-like{background:transparent;border:1px solid var(--line);border-radius:999px;padding:4px 12px;cursor:pointer;font-size:.85rem;color:var(--ink);line-height:1.4}
.cpl .sg-like{padding:6px 18px;font-size:.95rem;font-weight:700}
.cpl .by.sg-member-by{color:var(--mute);font-weight:400}
.cpl .by.sg-member-by a{color:var(--acc);font-weight:700}
.cpl .by.sg-member-by i{font-style:normal;margin:0 6px;opacity:.55}
.sg-like.liked{color:#c9184a;border-color:#c9184a}
.sg-like:hover{border-color:var(--gold)}
/* FOLLOW (v2.2.25): follow button in the same row as Copy / WhatsApp
   / like, on the profile, and in the members list. Gold outline
   when not following, solid dark green when following, so the state
   is clear at a glance. */
.sg-follow{border-color:var(--gold);color:var(--gold);background:transparent}
/* HOVER FIX (v2.2.26): the old .sg-follow:hover lost to the generic
   .btn:hover (line 240, same specificity but later in the file), so
   hover showed gold background with brown --acc text, nearly
   invisible. Prefixing .btn raises specificity, like the v2.2.24
   auth-button fix, so the follow hover text stays dark green on
   gold, and the Following hover keeps its gold text. */
.btn.sg-follow:hover{background:var(--gold);color:var(--btn);border-color:var(--gold)}
.sg-follow.following{background:var(--btn);color:var(--btnt);border-color:var(--btn)}
/* FOLLOWING HOVER (v2.2.34): the old rule only set the text colour, but
   .btn.sg-follow:hover above also matches a Following button and paints
   its background gold — gold text on a gold pill, invisible. The
   Following hover now keeps its dark-green background, so the gold
   text stays readable. */
.btn.sg-follow.following:hover{background:var(--btn);color:var(--btnt);border-color:var(--btn);filter:brightness(1.15)}
/* SHARE HOVER (v2.2.27): Copy / WhatsApp / Copy post link now fill
   gold with dark text on hover, exactly like the Follow button, so
   the whole row behaves the same. Prefixed .btn to beat the generic
   .btn:hover, same fix as v2.2.26. The like button keeps its own
   hover (gold border, red when liked) because its liked state is
   red, not gold. */
.btn.sg-copy:hover,.btn.sg-wa:hover,.btn.sg-copylink:hover{background:var(--gold);color:var(--btn);border-color:var(--gold)}
.pf .sg-follow{font-size:.95rem;padding:11px 28px}
.sg-pf-act{margin-left:auto;display:flex;align-items:center}
.sg-fol-n{font-weight:700}
.sg-fol-wrap{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:18px}
.sg-fol-list{display:flex;flex-wrap:wrap;gap:8px}
.sg-fol-item{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:999px;padding:4px 12px 4px 4px;font-size:.88rem}
.sg-fol-item:hover{border-color:var(--gold)}
.sg-fol-empty{color:var(--mute);margin:0;font-size:.9rem}
.mg>.mc-w{display:flex;flex-direction:column;gap:8px}
.mg>.mc-w>.mc{flex:1}
.mc-w .sg-follow{align-self:center}
/* MEMBER CARD SPACER (v2.2.33): same box as .btn (padding, border,
   font, line-height) but invisible, so the owner's card — which has
   no follow button — stays the same height as the other cards. */
.mc-w .sg-follow-sp{align-self:center;display:inline-block;padding:4px 14px;border:1px solid transparent;font-size:.8rem;line-height:1.4;visibility:hidden}
@media(max-width:700px){.sg-fol-wrap{grid-template-columns:1fr}}
.sg-below{margin-top:14px;padding-top:12px;border-top:1px solid var(--line);font-size:.9rem;color:var(--mute);display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.sg-below a{color:var(--acc);font-weight:700}
.sg-catpost{margin-bottom:24px}
.more{color:var(--acc);font-weight:600}
.grid.sg-list{grid-template-columns:1fr}
.sg-list .bp{flex-direction:row}
.sg-list .th{flex:none;width:280px;aspect-ratio:var(--ar);border-radius:calc(var(--r) - 2px) 0 0 calc(var(--r) - 2px)}
.btn{font-size:.8rem;border:1px solid var(--line);background:var(--bg);color:var(--ink);padding:4px 14px;border-radius:999px;cursor:pointer;display:inline-block;line-height:1.4}
.btn:hover{border-color:var(--acc);color:var(--acc)}
/* PRIMARY BUTTON HOVER (v2.2.34): the generic .btn:hover above turns
   text var(--acc) — brown in light mode — which is unreadable on a
   dark-green primary button (per-post Submit, Upload photo, Change
   password, submit form). Primary buttons keep their colours on hover.
   The gold account primary (v2.2.31) differs, see its own rule below. */
.btn.pri:hover{background:var(--btn);color:var(--btnt);border-color:var(--btn)}
.btn.pri{background:var(--btn);color:var(--btnt);border-color:var(--btn)}
/* AUTH + SUBMIT BUTTONS (v2.2.22): the Log in / Create account buttons on the Submit Poetry page, and the per-post Submit Poetry button, are bigger and clearer than the small pill buttons. The submit button size itself is set in the Customizer (Members > Submit Poetry button size); the values below are the Medium default. */
.sg-auth-acts{gap:12px;margin-top:16px}
.sg-auth-btn{font-size:.95rem;font-weight:700;padding:11px 28px;transition:background .2s,color .2s,transform .2s,box-shadow .2s}
.sg-auth-btn.sg-ghost{background:transparent;border-color:var(--gold);color:var(--gold)}
/* AUTH BUTTON HOVERS (v2.2.24 fix): the old ghost hover used color:var(--btnt) (gold) on a gold background, so the "Create account" text vanished on hover. Hover text is now dark green (var(--btn)), readable on gold. Both buttons lift slightly with a shadow on hover, and the solid Log in button keeps its gold text (the generic .btn:hover would have turned it brown). */
.sg-auth-btn.sg-ghost:hover{background:var(--gold);color:var(--btn);border-color:var(--gold)}
.sg-auth-btn:hover{transform:translateY(-1px);box-shadow:0 4px 14px rgba(0,0,0,.35)}
.btn.pri.sg-auth-btn:hover{background:var(--btn);color:var(--btnt);border-color:var(--btn)}
.sg-submit-btn{font-size:1.05rem;padding:12px 30px;font-weight:700;box-shadow:0 4px 16px rgba(0,0,0,.35)}
.sg-submit-btn:hover{filter:brightness(1.08);transform:translateY(-1px)}
/* SUBMIT FORM BUTTON (v2.2.41): the main "Submit for approval"
   button on the Submit Poetry page is bigger than the small pill
   buttons, so it reads as the page's main action. Full width
   comes free: the form is a flex column, so the button already
   stretches. Its own class, so the per-post Submit button's
   Customizer size setting does not move it. */
.btn.pri.sg-form-submit{font-size:1.05rem;font-weight:700;padding:12px 30px}
.empty{text-align:center;color:var(--mute);padding:30px;grid-column:1/-1}
/* poetry */
.poem{direction:rtl;white-space:pre-line;text-align:center;font-family:var(--ff-u);font-size:var(--fsp);line-height:var(--lhp);margin:4px 0}
.by{text-align:center;color:var(--acc);font-size:.85rem;font-weight:600}
.by a:hover{text-decoration:underline}
.acts{display:flex;gap:8px;justify-content:center;margin-top:8px;flex-wrap:wrap}
.bc{font-size:.85rem;color:var(--mute);padding:18px 0 10px}
.bc a:hover{color:var(--acc)}
.ban{position:relative;aspect-ratio:16/6;border-radius:calc(var(--r) + 2px);overflow:hidden;margin:0 0 16px}
.ban img{width:100%;height:100%;object-fit:cover}
.one{background:var(--card);border:1px solid var(--line);border-top:4px solid var(--gold);border-radius:calc(var(--r) + 2px);padding:22px 24px;margin:0 0 10px}
.one h1{margin:0 0 6px;font-size:1.6rem;line-height:1.3}
.intro{margin:0 0 10px;color:var(--mute)}
.byline{font-size:.85rem;color:var(--mute);margin-bottom:8px}
.byline a{color:var(--acc);font-weight:600}
.cpl{display:flex;gap:14px;align-items:center;border-top:1px solid var(--line);padding:12px 0}
.no{flex:none;width:30px;height:30px;border-radius:50%;background:var(--hd);color:var(--gold);display:grid;place-items:center;font-size:.8rem;font-weight:700}
.cb{flex:1;min-width:0}
.ca{display:flex;flex-direction:column;gap:6px}
.pn{display:flex;justify-content:space-between;margin:16px 0 0;font-size:.9rem}
.pn a{color:var(--acc);font-weight:600}
.entry p,.entry li{line-height:1.8}
.page-head{margin:24px 0 0}
.page-head h1{margin:0;font-size:1.8rem}
/* LIST PAGE TITLES (v2.1.40): Categories and All Poets titles are
   small, not the big 1.8rem archive title, as the owner asked.
   This only affects list pages with .sg-list-head, not Sad Poetry
   or other archive/single titles. */
.sg-list-head h1{font-size:1.35rem}
.sg-list-head .sg-list-intro{margin-top:8px;color:var(--mute)}
/* LIST PAGE SPACING (v2.1.42, ONLY Categories + All Poets, no other
   page): the owner said header/text/card/sidebar gaps were too
   big on both list pages, but they must not stick together. So,
   only on .sg-list-page: header-to-title 24->12px, title-to-card
   row gap 28->16px, card/sidebar top margin 24->12px, and
   card-to-sidebar column gap 28->20px. Total title-to-card gap
   drops from 52px (28 row + 24 card) to 28px (16 row + 12 card),
   still a clear gap, not touching. Other pages keep 24/28px. */
.sg-layout.sg-list-page{row-gap:16px;column-gap:20px}
.sg-layout.sg-list-page .sg-list-head{margin-top:12px}
.sg-layout.sg-list-page .sg-side .widget:first-child{margin-top:12px}
.sg-layout.sg-list-page .sg-main > .note:first-child{margin-top:12px}
/* AUTHOR / PROFILE PAGE SPACING (v2.1.43, ONLY author pages, no
   other page): the owner asked, for every member, old and new,
   to bring profile, cards and sidebar a bit closer, without
   sticking. Author pages all use the same author.php template
   with .sg-author, so this one CSS block automatically covers
   old members (post type post) and new members (sg_member) and
   any member created later, with no per-member change. Before:
   profile-to-card was 58px (6 profile margin + 28 row gap +
   24 grid margin). Now: 28px (0 profile margin + 16 row gap +
   12 grid margin), same clear-but-closer spacing as the list
   pages, and sidebar first widget also 12px, so sidebar stays
   level with the first card. Card-to-sidebar column gap
   28->20px, also a bit closer, not touching. */
.sg-layout.sg-author{row-gap:16px;column-gap:20px}
.sg-layout.sg-author .pf{margin-bottom:0}
.sg-layout.sg-author .grid{margin-top:12px}
.sg-layout.sg-author .sg-side .widget:first-child{margin-top:12px}
.sg-layout.sg-author .sg-main > .note:first-child{margin-top:12px}
/* MEMBER POETRY ON CATEGORY PAGE, PLAIN NOT CARD (v2.1.46, ONLY
   category member blocks, no other page): the owner said member
   poetry on the category page looked strange in its own card box
   (gold top border, rounded card, padding, one tiny couplet per
   big box), while the single-post couplets look clean, just
   couplet, separator line, next couplet. Now a category member
   block has NO card at all: no background, no border, no gold
   top border, no radius, no padding, no card margin, so member
   couplets flow continuously like a single post, separated only
   by the normal .cpl top line. Buttons and username are NOT
   touched: by @username • date stays where the pen name was,
   Copy / WhatsApp / Like stay in the same centred row, same
   size, as before. Only the box around them is gone.
   Separator between blocks: a member block's first couplet is
   normally border-top:0 (first couplet in its own content), so
   a block after another block would have NO line between them.
   The adjacent-sibling rule below restores the line for every
   block except the very first one on the page, which stays
   line-free directly under the title / description box, exactly
   like the first couplet in a single post. Single posts (.one
   without .sg-catpost), author cards, All Posts cards and
   search cards are untouched, they keep their card style. */
.sg-main article.one.sg-catpost{background:transparent;border:0;border-radius:0;padding:0;margin:0}
/* SEPARATOR LINE BELOW EVERY POETRY (v2.2.8): the old rule put the
   line on the first couplet of every block except the first. With a
   featured image, that line fell BETWEEN the image and its own
   poetry, and there was no line between the previous poetry and
   this image. Now the line is below the whole block, after its
   poetry, byline and buttons, so the order is always Image, Poetry,
   Line, next Image/Poetry, Line, including below the last poetry.
   This selector covers every archive full block (category, author,
   tag, poet), because archive.php uses the same sg-catpost class
   for all of them. First couplet keeps border-top:0, so no line
   ever appears between an image and the poetry below it. */
.sg-main article.one.sg-catpost{border-bottom:1px solid var(--line);padding-bottom:24px;margin-bottom:24px}
/* APPROVED MEMBER IMAGE (v2.2.6): real featured image only, above
   the couplets, full width, aspect preserved, no cropping. Only
   applied when .sg-catpost-img exists, so blocks without an image
   stay plain, as in v2.2.3. */
.sg-catpost-img{margin:0 0 14px}
.sg-catpost-img img{display:block;width:100%;height:auto;border-radius:10px}
/* CATEGORY PAGE AS ONE SINGLE-POST BOX (v2.1.47, category only):
   .sg-main itself becomes the .one-like card, so title, description
   and all member couplets live in one box, exactly like a single
   post, not title outside + description in its own small box +
   plain couplets below. Title size 1.8->1.6rem to match a single
   post title. Description loses its separate card box and becomes
   a plain first paragraph, like a single post intro: no border,
   no background, no radius, no padding, normal text colour and
   line-height 1.8, not muted .95rem. Head margin inside the card
   is 0, because the card already has 22px top padding + 24px top
   margin, so the card top lines up with the first sidebar widget
   (both 24px), like a single post article. Member blocks inside
   stay plain (v2.1.46), so couplets flow inside this one box with
   only separator lines between them, byline and buttons unchanged.
   Tag/poet archives do NOT get .sg-catpage, so they keep their
   old head + card grid style, unchanged. SEO is unchanged: the
   full description text is still in the HTML, in the same place
   in the document, only its box styling changed, and the page
   canonical is still the category URL. */
.sg-layout.sg-catpage .sg-main{margin-top:24px;background:var(--card);border:1px solid var(--line);border-top:4px solid var(--gold);border-radius:calc(var(--r) + 2px);padding:22px 24px}
.sg-layout.sg-catpage .page-head{margin-top:0}
.sg-layout.sg-catpage .page-head h1{font-size:1.6rem}
.sg-layout.sg-catpage .sg-catdesc{background:transparent;border:0;border-radius:0;padding:0;margin-top:12px}
.sg-layout.sg-catpage .sg-catdesc-text{font-size:1rem;line-height:1.8;color:var(--ink)}
.sg-layout.sg-catpage .sg-side .widget:first-child{margin-top:24px}
.page-head p{margin:4px 0 0;color:var(--mute)}
/* CATEGORY DESCRIPTION (v2.1.37, supersedes v2.1.33 collapse):
   long SEO text in a clean card box, always fully open on first
   load, no Read more / Show less button at all. Full text stays
   in the HTML for ranking. */
.sg-catdesc{background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:14px 16px;margin-top:12px}
.sg-catdesc-text{font-size:.95rem;line-height:1.7;color:var(--mute)}
.page-head .sg-catdesc-text p{margin:0 0 8px}
.page-head .sg-catdesc-text p:last-child{margin-bottom:0}
/* SIDEBAR = PARAGRAPH START (v2.1.37, desktop only): when a category
   has a description, the first sidebar widget is pushed down so its
   title text starts exactly where the paragraph text starts.
   Calculation, single-line title: page-head margin 24px + h1 height
   1.8rem x 1.6 line-height = 46px + catdesc margin 12px + catdesc
   padding top 14px = 96px to paragraph text. Sidebar widget title
   text = widget margin + widget padding top 16px, so widget margin
   must be 96 - 16 = 80px. Mobile keeps 24px, sidebar stacks below
   main there, so no large gap. Categories with no description do
   not get sg-has-desc, so their sidebar stays at the title level. */
@media (min-width:1001px){
.sg-layout.sg-archive.sg-has-desc .sg-side .widget:first-child{margin-top:80px}
}
.mg{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:14px}
.mc{background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:18px;display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;transition:transform .2s}
.mc:hover{transform:translateY(-3px);border-color:var(--gold)}
.mc>span:last-child{font-size:.82rem;color:var(--mute)}
.av{flex:none;width:64px;height:64px;border-radius:50%;background:var(--hd);color:var(--gold);display:grid;place-items:center;font:700 1.6rem/1 var(--ff-h);border:3px solid var(--gold)}
.pf{margin:0 0 6px;display:flex;gap:16px;align-items:center;background:var(--card);border:1px solid var(--line);border-radius:calc(var(--r) + 2px);padding:18px}
.pf h1{margin:0;font-size:1.4rem}
.band{margin:36px 0 0;background:linear-gradient(120deg,var(--hero2),var(--hero1));color:#fff;border-radius:calc(var(--r) + 4px);padding:30px;text-align:center}
.band h2{margin:0;font-size:1.7rem;color:var(--gold)}
.band p{margin:6px 0 16px;color:#d3e0da}
/* forms and notes */
.fm{background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:20px;display:flex;flex-direction:column;gap:8px}
.fm h3{margin:0 0 4px;color:var(--acc)}
.fm.danger h3{color:#b3402f}
.fm label{font-size:.82rem;color:var(--mute)}
.fm a{font-size:.85rem;color:var(--acc)}
.fm input,.fm select,.fm textarea{width:100%;background:var(--bg);color:var(--ink);border:1px solid var(--line);border-radius:10px;padding:8px 12px}
/* SHOW/HIDE PASSWORD (v2.1.16): toggle button sits inside the password field,
   on the right, so the member can see what they typed and compare the two
   passwords before submitting. Works in light and dark mode. */
.sg-pw-wrap{position:relative;display:block}
.sg-pw-wrap input{padding-right:64px}
.sg-pw-toggle{position:absolute;right:6px;top:50%;transform:translateY(-50%);background:transparent;border:0;color:var(--acc);font-weight:700;font-size:.82rem;cursor:pointer;padding:8px 10px;line-height:1}
.sg-pw-toggle:hover{text-decoration:underline}
.sg-pw-match{font-size:.82rem;margin-top:2px}
.sg-pw-match.ok{color:#2f7d4f}
.sg-pw-match.bad{color:#b3402f}
.fm textarea{min-height:150px;direction:rtl;font-family:var(--ff-u);line-height:2.3}
.fm .chk{display:flex;gap:8px;align-items:flex-start;font-size:.85rem;color:var(--ink)}
.fm .chk input{width:auto;margin-top:5px}
.two{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.note{font-size:.85rem;padding:8px 12px;border-radius:10px;border:1px solid var(--line);margin:8px 0}
.note.w{border-color:#b7791f;color:#b7791f}.note.b{border-color:#b3402f;color:#b3402f}.note.g{border-color:#2f7d4f;color:#2f7d4f}
.stats2{display:flex;gap:8px;margin:10px 0}
.stats2 div{flex:1;background:var(--bg);border:1px solid var(--line);border-radius:12px;text-align:center;font-size:.82rem;padding:6px}
.stats2 b{display:block;font-size:1.5rem;color:var(--acc);line-height:1.5}
.sub{border-top:1px solid var(--line);padding:10px 0}
.st{font-size:.75rem;border:1px solid var(--line);border-radius:999px;padding:1px 10px}
/* MY ACCOUNT BEAUTY (v2.2.31): the logged-in account page looked flat
   and its buttons read as dim underlined links, because .sg-content a
   (gold, underlined) beat .btn on colour and underline, and the dark
   pills blended into the dark card. The profile actions are now real
   buttons: a gold primary, gold outlines for the rest, all with the
   same gold-fill hover as Follow / Copy / WhatsApp. Stats get a warm
   gold tint so they stand out from the page, and the profile header
   gets a bigger avatar. Scoped to .sg-acc-acts so the Log in / Create
   account buttons (v2.2.22) and the per-post Submit button are untouched. */
.fm{box-shadow:0 8px 28px #0002}
.sg-acc-head{display:flex;align-items:center;gap:12px;font-size:1.35rem}
.stats2{gap:10px;margin:14px 0 4px}
.stats2 div{background:#e0b56512;border:1px solid #e0b56530;border-radius:14px;padding:12px 6px 10px;text-transform:uppercase;letter-spacing:.05em;font-size:.78rem;color:var(--mute)}
.stats2 b{font-size:1.9rem;line-height:1.2}
.fm .sg-acc-acts{gap:10px;margin-top:14px}
.fm .sg-acc-acts .btn{text-decoration:none;font-size:.92rem;font-weight:700;padding:10px 22px;transition:background .2s,color .2s,transform .2s,box-shadow .2s}
.fm .sg-acc-acts .btn.pri{background:var(--gold);color:var(--btn);border-color:var(--gold)}
.fm .sg-acc-acts .btn.pri:hover{background:var(--gold);color:var(--btn);border-color:var(--gold);filter:brightness(1.06);transform:translateY(-1px);box-shadow:0 4px 14px rgba(0,0,0,.35)}
.fm .sg-acc-acts .btn:not(.pri){border-color:var(--gold);color:var(--gold);background:transparent}
.fm .sg-acc-acts .btn:not(.pri):hover{background:var(--gold);color:var(--btn);border-color:var(--gold)}
.fm input:focus,.fm select:focus,.fm textarea:focus{outline:none;border-color:var(--gold);box-shadow:0 0 0 3px #e0b56533}
.st.g{color:#2f7d4f;border-color:#2f7d4f}.st.w{color:#b7791f;border-color:#b7791f}.st.b{color:#b3402f;border-color:#b3402f}
.nav-links,.posts-navigation .nav-links{display:flex;gap:8px;justify-content:center;margin:24px 0;flex-wrap:wrap}
.nav-links a,.nav-links span{border:1px solid var(--line);background:var(--card);border-radius:999px;padding:4px 14px;font-size:.85rem}
.nav-links .current{background:var(--hd);color:var(--gold);border-color:var(--hd)}
/* footer */
.site-footer{margin-top:46px;background:var(--hd2);color:var(--ftt);padding:42px 0 0}
.site-footer .brand b{color:#fff}
.fg{display:grid;gap:28px}
.fcols-1{grid-template-columns:1fr}.fcols-2{grid-template-columns:repeat(2,1fr)}.fcols-3{grid-template-columns:repeat(3,1fr)}.fcols-4{grid-template-columns:1.4fr 1fr 1fr 1fr}
.site-footer h4,.site-footer .wt{color:var(--gold);margin:0 0 10px;font-size:1rem}
.site-footer a{display:block;font-size:.88rem;padding:3px 0}
.site-footer a:hover{color:var(--gold)}
.site-footer p{font-size:.88rem;margin:8px 0}
.site-footer ul{list-style:none;margin:0;padding:0}
.site-footer .widget{background:transparent;border:0;padding:0;margin:0 0 14px}
.site-footer .wl li{border-color:#ffffff1c}
.site-footer .logo a{display:flex;padding:0}
.fb{margin-top:30px;border-top:1px solid #ffffff1c;padding:16px 0;display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;font-size:.8rem}
.soc a{width:34px;height:34px;border-radius:50%;background:#ffffff14;display:grid;place-items:center;font-size:.72rem;padding:0;font-weight:700}
.js-top{position:fixed;right:18px;bottom:18px;width:44px;height:44px;border-radius:50%;border:0;background:var(--gold);color:var(--hd);cursor:pointer;display:grid;place-items:center;box-shadow:0 6px 18px #0004;z-index:60}
.toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);background:var(--ink);color:var(--bg);padding:6px 18px;border-radius:999px;font-size:.9rem;opacity:0;transition:opacity .25s;pointer-events:none;z-index:70}
.toast.on{opacity:1}
@media (max-width:1000px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sg-layout.sb-right,.sg-layout.sb-left{grid-template-columns:minmax(0,1fr)}.sg-layout.sb-left .sg-side{order:0}}
@media (max-width:900px){
 .burger{display:grid}.hr .cta{display:none}
 .hd,.sg-hdr-center .hd{display:flex;min-height:var(--hh);padding-top:0}
 .main-nav,.sg-hdr-center .main-nav{display:none;position:absolute;top:100%;left:0;right:0;margin:0;background:var(--hd2);max-height:75vh;overflow:auto}
 .main-nav.open{display:block}
 .main-nav .menu,.sg-hdr-center .main-nav .menu{flex-direction:column;padding:8px 12px;justify-content:flex-start}
 .main-nav a,.sg-hdr-center .main-nav a{padding:14px 10px}
 .main-nav li:hover>.sub-menu{display:none}
 .main-nav li.open>.sub-menu{display:block}
 .main-nav .sub-menu,.main-nav .sub-menu .sub-menu{position:static;background:transparent;border:0;box-shadow:none;padding:0 14px}
 .main-nav .sub-menu a{color:#cfe0d9}
 .hr{margin-left:auto}
 .sg-hdr-center .logo-area{margin-right:auto}
 .hero .wrap{grid-template-columns:1fr}.hero h1{font-size:2rem}
 .fcols-4,.fcols-3{grid-template-columns:1fr 1fr}.two{grid-template-columns:1fr}
 .sg-list .bp{flex-direction:column}.sg-list .th{width:auto;border-radius:calc(var(--r) - 2px) calc(var(--r) - 2px) 0 0}
/* ADS (v2.2.11): in-feed ad box, after every 4th poetry on category
   and single post pages only. Label distinguishes the ad from
   poetry, so a visitor never mistakes an ad for a couplet.
   Ad code itself keeps its own background, so this box stays
   transparent, centered, and never overflows on phones. */
.sg-ad{margin:24px 0;text-align:center;clear:both;max-width:100%;overflow:hidden}
.sg-ad-label{font-size:11px;color:var(--mute);text-transform:uppercase;letter-spacing:1px;margin-bottom:6px}
.sg-ad ins,.sg-ad iframe,.sg-ad img{max-width:100%!important}
}
@media (max-width:620px){.grid{grid-template-columns:minmax(0,1fr)}.fcols-4,.fcols-3,.fcols-2{grid-template-columns:1fr}.top-r .top-soc{display:none}.top .wrap>span:first-child{display:none}.top .wrap{justify-content:flex-end}.cpl{flex-wrap:wrap}.ca{flex-direction:row;width:100%;justify-content:center}.stats{gap:16px}}

.sg-content{margin:6px 0 12px;line-height:1.8}
/* SEPARATOR LINE BELOW POETRY ON SINGLE POST (v2.2.8): same rule as
   category blocks, applied to the post page only. Featured image
   banner stays above the poetry, poetry stays below it, and this
   line sits below the last couplet, before chips and the rest. */
.sg-layout.sg-single .sg-main article.one .entry.sg-content{border-bottom:1px solid var(--line);padding-bottom:24px;margin-bottom:24px}
.sg-content h2,.sg-content h3,.sg-content h4{margin:18px 0 8px;line-height:1.3}
.sg-content a{color:var(--acc);text-decoration:underline}
.sg-content img{max-width:100%;height:auto;border-radius:calc(var(--r) - 4px)}
.sg-content figure{margin:12px 0}
.sg-content figcaption,.sg-content .wp-caption-text{font-size:.82rem;color:var(--mute);text-align:center}
.sg-content .alignleft{float:left;margin:4px 16px 8px 0}.sg-content .alignright{float:right;margin:4px 0 8px 16px}.sg-content .aligncenter{display:block;margin:12px auto}
.sg-content ul,.sg-content ol{padding-left:22px}
.sg-content blockquote{margin:12px 0;padding:6px 16px;border-left:4px solid var(--gold);color:var(--mute)}

.sg-content .cpl:first-child{border-top:0}
/* FIX (v2.1.4): an image placed before its own couplet must stay with that
   couplet. Without this, the couplet's separator line sat between the image
   and its own text, so the line looked like the image's underline and the
   image looked joined to the previous couplet. Only that line is removed;
   separators between two couplets without an image in between are unchanged. */
.sg-content figure + .cpl,.sg-content .wp-caption + .cpl,.sg-content p:has(> img) + .cpl,.sg-content .cpl.sg-after-img{border-top:0}
/* FIX (v2.1.6): share + Download row under every in-content image, same
   size for all buttons, centred like the screenshot. Featured image is
   outside the_content, so it never gets this row. */
/* FIX (v2.1.7): separator line ABOVE an image that follows a couplet, so
   the image + its couplet form one unit separated from the previous
   couplet. The line below the image stays removed (v2.1.5). The PHP
   separator below covers the normal case; the .cpl + image rule is a
   fallback for shortcode couplet boxes. */
.sg-img-line{border-top:1px solid var(--line);margin:0 0 14px}
.sg-img-line + figure,.sg-img-line + p{margin-top:0}
.sg-content .cpl + figure,.sg-content .cpl + .wp-caption,.sg-content .cpl + p:has(> img){border-top:1px solid var(--line);padding-top:14px;margin-top:0}
.sg-img-share{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin:10px 0 18px}
.sg-img-share .btn{border-radius:8px;padding:6px 12px;min-width:44px;text-align:center;font-size:.85rem}
.sg-content .sg-img-share a,.sg-content .sg-img-share a:hover{text-decoration:none}
.sg-content .cpl .poem{margin:0}
.sg-content p:empty{display:none}

.cattags{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:10px}
.cattag{background:var(--gold);color:var(--hd);font-size:.72rem;font-weight:700;border-radius:6px;padding:3px 10px;line-height:1.4}
.byline i{font-style:normal;margin:0 6px;opacity:.55}
.sg-fimg{margin:14px 0 18px}
.sg-fimg img{width:100%;height:auto;display:block;border-radius:calc(var(--r) - 4px)}
.sg-fimg.art{aspect-ratio:16/8;overflow:hidden;border-radius:calc(var(--r) - 4px)}
.poem.latin{direction:ltr;font-family:var(--ff-b);font-size:1rem;line-height:1.7}

/* Shayari boxes: poem centered, buttons underneath (same on phone and desktop) */
.cpl{display:block;text-align:center;padding:14px 0}
.cpl .cb{display:block}
.cpl .ca{display:flex;flex-direction:row;justify-content:center;flex-wrap:wrap;gap:8px;margin-top:8px}
.cpl .no{display:inline-grid;margin-bottom:6px}
.sg-content .cpl a,.sg-content .cpl a:hover{text-decoration:none}
/* avatars */
.av.has-img{padding:0;overflow:hidden}
.av img{width:100%;height:100%;object-fit:cover;display:block;border-radius:50%}
.av-lg{width:84px;height:84px;font-size:2rem}
.av-sm{width:42px;height:42px;font-size:1.1rem;border-width:2px}
.av-xs{width:24px;height:24px;font-size:.72rem;border-width:1px;display:inline-grid;vertical-align:middle;margin-right:6px}
.top-r .av-xs{margin-right:4px}
.fm h3 .av-xs{margin-right:8px;vertical-align:-5px}
.avrow{display:flex;gap:14px;align-items:center}
.avform{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:6px}
.avform input[type=file]{flex:1;min-width:180px;padding:6px;border:1px dashed var(--line);border-radius:10px;background:var(--bg);color:var(--ink)}
.av-pick{display:flex;flex-wrap:wrap;gap:10px}
.av-pick label{position:relative;cursor:pointer}
.av-pick input{position:absolute;opacity:0;width:1px;height:1px}
.av-pick input:checked+.av{outline:3px solid var(--gold);outline-offset:2px}
.av svg{width:100%;height:100%;display:block;border-radius:50%}
.av-pick .av-label{font-size:.85rem;margin-left:2px}

/* centered footer (default; switch to Left in Customize > Footer & Social) */
.sg-fcenter .site-footer .fg{text-align:center}
.sg-fcenter .fcols-4{grid-template-columns:repeat(4,1fr)}
.sg-fcenter .site-footer .logo,.sg-fcenter .site-footer .soc{justify-content:center}
.sg-fcenter .site-footer .logo a{justify-content:center}
.sg-fcenter .site-footer .wl li{justify-content:center}
.sg-fcenter .site-footer .wl ul{padding-left:0}
.sg-fcenter .site-footer .fb{flex-direction:column;justify-content:center;text-align:center;gap:10px}
.fb .fx{opacity:.8}
.fcols-1{max-width:560px;margin:0 auto}

/* copyright line: always in the middle */
.site-footer .fb{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;text-align:center!important;gap:10px}
.site-footer .fb>span{display:block;width:100%;text-align:center!important}

/* search box with a Search button */
.searchform{display:flex;align-items:center;gap:8px;width:100%;max-width:560px}
.sbar .searchform{margin:0 auto}
.hero .searchform{max-width:480px;margin:0}
.searchform input[type=search]{flex:1 1 auto;width:auto;min-width:0;max-width:none;margin:0;display:block}
.sf-btn{flex:none;display:inline-flex;align-items:center;gap:6px;border:0;border-radius:999px;background:var(--gold);color:var(--hd);font-weight:700;font-size:.9rem;padding:10px 18px;cursor:pointer;line-height:1.2}
.sf-btn:hover{filter:brightness(1.06)}
@media (max-width:420px){.sf-btn span{display:none}.sf-btn{padding:10px 14px}}
/* USERNAME CHECK (v2.2.18): suggestions under the Create account username field. Buttons reuse .btn, so no new colours. */
.sg-user-suggest{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px}
.sg-user-suggest .btn{font-size:.75rem;padding:3px 10px}
