/* ANMOSO detail polish v20261026.5 — single post + page content (accent follows --theme-color) */

/* ---------- headings ---------- */
.article-content .wp-posts-content > h2,
.sdd-page-content h2{position:relative;margin:36px 0 16px;padding-left:14px;font-size:19px;line-height:1.5;font-weight:700;background:none;text-decoration:none}
/* :not([class])/.wp-block-heading keep (0,3,1) over the theme's .wp-posts-content > h2:not([class]):before
   40x3px underline decoration, which loads later and otherwise wins the width/height ties (pink dash across the first glyph). */
.article-content .wp-posts-content > h2:not([class])::before,
.article-content .wp-posts-content > h2.wp-block-heading::before,
.sdd-page-content h2::before{content:"";position:absolute;left:0;top:.28em;bottom:auto;width:4px;height:1.05em;border-radius:2px;background:var(--theme-color,#f04494);box-shadow:none;transform:none}
.article-content .wp-posts-content > h2:first-child{margin-top:2px}

/* ---------- body text rhythm ---------- */
.article-content .wp-posts-content p{margin:0 0 16px;line-height:1.95}
.article-content .wp-posts-content ul,.article-content .wp-posts-content ol{margin:0 0 16px;padding-left:1.4em}
.article-content .wp-posts-content li{margin:8px 0;line-height:1.9}
.article-content .wp-posts-content ul > li::marker{color:var(--theme-color,#f04494)}
.article-content .wp-posts-content small{display:block;margin:0;font-size:12.5px;line-height:1.85;opacity:.72}
.article-content .wp-posts-content img{border-radius:10px}

/* ---------- main CTA buttons ---------- */
.article-content .wp-posts-content > p > a[target="_blank"],
.article-content .sdd-channel > p > a[target="_blank"]{display:inline-flex;align-items:center;gap:7px;margin:2px 0 14px;padding:10px 18px;border-radius:9px;background:var(--theme-color,#f04494);color:#fff!important;font-weight:600;font-size:14.5px;line-height:1.45;text-decoration:none!important;box-shadow:0 3px 10px rgba(240,68,148,.25);transition:filter .15s ease,transform .15s ease}
.article-content .wp-posts-content > p > a[target="_blank"]:hover,
.article-content .sdd-channel > p > a[target="_blank"]:hover{filter:brightness(1.08);transform:translateY(-1px)}
/* on filled CTAs the blue mark loses contrast against the pink fill -> white circle + pink plane */
.article-content .wp-posts-content > p > a[target="_blank"] .sdd-tg-ico,
.article-content .sdd-channel > p > a[target="_blank"] .sdd-tg-ico{fill:#fff}

/* ---------- contact chips (converted from "label: @handle" paragraphs) ---------- */
.article-content .sdd-contact{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:10px;margin:16px 0 20px}
.article-content .sdd-chip{display:flex;align-items:center;gap:8px;min-width:0;padding:11px 14px;border:1px solid rgba(127,127,127,.16);border-radius:11px;background:var(--muted-bg-color,#f6f7f9);color:inherit!important;text-decoration:none!important;transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease}
.article-content .sdd-chip:hover{border-color:var(--theme-color,#f04494);box-shadow:0 3px 12px rgba(240,68,148,.16);transform:translateY(-1px)}
.article-content .sdd-chip-icon{flex:0 0 auto;width:17px;height:17px;fill:#229ED9;margin-right:0;vertical-align:middle}
.article-content .sdd-chip-label{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;opacity:.78}
.article-content .sdd-chip-note{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;opacity:.55}
.article-content .sdd-chip-handle{flex:1 0 auto;margin-left:auto;text-align:right;font-weight:700;font-size:13.5px;color:var(--theme-color,#f04494);white-space:nowrap}
@media (max-width:480px){
  .article-content .sdd-chip-label{flex:1 1 auto;max-width:10em}
}

/* ---------- official Telegram mark inside t.me links ---------- */
.article-content .sdd-tg-ico,.sdd-page-content .sdd-tg-ico,.sdd-list-card .sdd-tg-ico,#comments .sdd-tg-ico{width:1em;height:1em;fill:#229ED9;display:inline-block;vertical-align:-.12em;margin-right:.28em;flex:0 0 auto}

/* ---------- inline @handle pill + bare t.me link ---------- */
.article-content a.sdd-tg,.sdd-page-content a.sdd-tg,.sdd-list-card a.sdd-tg{display:inline-flex;align-items:center;gap:2px;padding:0 7px;margin:0 1px;border:1px solid rgba(240,68,148,.25);border-radius:6px;background:rgba(240,68,148,.07);color:var(--theme-color,#f04494)!important;font-weight:600;font-size:.92em;line-height:1.6;text-decoration:none!important;white-space:nowrap}
.article-content a.sdd-tg:hover,.sdd-page-content a.sdd-tg:hover,.sdd-list-card a.sdd-tg:hover{background:rgba(240,68,148,.14)}
.article-content a.sdd-tg-link,.sdd-page-content a.sdd-tg-link,
.article-content a.sdd-ext-link,.sdd-page-content a.sdd-ext-link,.sdd-list-card a.sdd-ext-link{color:var(--theme-color,#f04494);text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}

/* ---------- plugin sections ---------- */
.article-content .sdd-channel-note{margin:30px 0;padding:18px 20px;border:1px solid rgba(127,127,127,.16);border-left:4px solid var(--theme-color,#f04494);border-radius:12px;background:var(--muted-bg-color,#f6f7f9)}
.article-content .sdd-channel-note h2{position:relative;margin:0 0 10px;padding-left:14px;font-size:17px;line-height:1.5}
.article-content .sdd-channel-note h2::before{content:"";position:absolute;left:0;top:.28em;width:4px;height:1.05em;border-radius:2px;background:var(--theme-color,#f04494)}
.article-content .sdd-channel-note p{margin:0 0 10px;line-height:1.9}
.article-content .sdd-channel-note p:last-child{margin-bottom:0}

.article-content .sdd-districts{padding:18px 20px;border-radius:12px;background:var(--muted-bg-color,#f6f7f9)}
.article-content .sdd-districts h2{position:relative;margin:0 0 12px;padding-left:14px;font-size:17px}
.article-content .sdd-districts h2::before{content:"";position:absolute;left:0;top:.28em;width:4px;height:1.05em;border-radius:2px;background:var(--theme-color,#f04494)}
.article-content .sdd-districts + .sdd-districts{margin-top:14px}
.article-content .sdd-district-list{display:flex;flex-wrap:wrap;gap:8px}
.article-content .sdd-district-list li{list-style:none;margin:0}
.article-content .sdd-district-list li::marker{content:""}
.article-content .sdd-district-list a{display:inline-flex;align-items:center;gap:5px;padding:8px 14px;border:1px solid rgba(127,127,127,.14);border-radius:9px;background:var(--main-bg-color,#fff);text-decoration:none;white-space:nowrap;font-size:14px;transition:border-color .15s ease,color .15s ease}
.article-content .sdd-district-list a:hover{border-color:var(--theme-color,#f04494);color:var(--theme-color,#f04494)}
.article-content .sdd-districts small{display:block;margin-top:12px;font-size:12.5px;line-height:1.8;opacity:.72}
.article-content .sdd-related-note{margin:0 0 10px;font-size:13px;opacity:.75}

.article-content .sdd-channel{margin:30px 0;padding:20px 22px;border:1px solid rgba(127,127,127,.16);border-radius:12px;background:var(--main-bg-color,#fff)}
.article-content .sdd-channel h2{position:relative;margin:0 0 14px;padding-left:14px;font-size:17px}
.article-content .sdd-channel h2::before{content:"";position:absolute;left:0;top:.28em;width:4px;height:1.05em;border-radius:2px;background:var(--theme-color,#f04494)}
/* dt/dd typography everywhere; two-column grid only above the theme's 700px stacking breakpoint */
.article-content .sdd-channel dt{font-weight:600;opacity:.6;font-size:13.5px;line-height:1.7}
.article-content .sdd-channel dd{margin:0;line-height:1.8}
.article-content .sdd-channel p{margin:0 0 10px}
.article-content .sdd-channel small{display:block;margin:0 0 10px;font-size:12.5px;line-height:1.8;opacity:.72}
@media (min-width:701px){
  .article-content .sdd-channel dl{grid-template-columns:176px 1fr;row-gap:12px;margin:0 0 14px}
  .article-content .sdd-channel dt{padding-top:2px}
}

.article-content .sdd-site{margin:30px 0}
.article-content .sdd-site h2{position:relative;margin:0 0 16px;padding-left:14px;font-size:18px;line-height:1.5}
.article-content .sdd-site h2::before{content:"";position:absolute;left:0;top:.28em;width:4px;height:1.05em;border-radius:2px;background:var(--theme-color,#f04494)}

/* ---------- full-width layout after dropping the empty sidebar ---------- */
@media (min-width:992px){
  body.wp-singular.site-layout-1 .content-layout{max-width:960px;margin-left:auto;margin-right:auto}
}

/* ---------- mobile: channel list card stacks (image on top, text below) ----------
   The card markup in structure.php listing() uses INLINE styles (display:flex +
   thumb flex:0 0 168px), which outrank every normal stylesheet rule — only
   !important declarations in a media query can retarget them on phones. */
@media (max-width:700px){
  .sdd-list-card{flex-direction:column!important;align-items:stretch!important;gap:12px!important}
  .sdd-list-card>div{flex:none!important}
  .sdd-list-card .sdd-card-thumb{flex:none!important;width:100%!important}
  .sdd-list-card .sdd-card-thumb img{width:100%!important;height:auto!important}
}

/* ---------- channel list cards: real Telegram avatar + live subscriber count ----------
   structure.php listing() now renders a round avatar (real channel photo from
   t.me, designed cover as the fallback) plus the live subscriber count badge. */
.sdd-list .sdd-card-avatar{flex:0 0 76px;line-height:0;text-decoration:none}
.sdd-list .sdd-card-avatar img{width:76px;height:76px;border-radius:50%;object-fit:cover;display:block;background:rgba(127,127,127,.08);box-shadow:0 0 0 1px rgba(127,127,127,.16)}
.sdd-list-card .sdd-eyebrow{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 6px!important}
.sdd-eyebrow .sdd-subs{display:inline-flex;align-items:center;gap:5px;padding:2px 9px;border-radius:999px;background:rgba(240,68,148,.1);color:var(--theme-color,#f04494);font-size:12.5px;font-weight:600;line-height:1.6;letter-spacing:.1px;opacity:1}
.sdd-eyebrow .sdd-subs::before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}
@media (max-width:700px){
  .sdd-list .sdd-card-avatar{flex:none!important;align-self:flex-start!important}
}
