/* ===== Article page (single-post.php). Loads only on posts, after theme.css; tokens live in theme.css :root. ===== */
.smw-article{background:#f7f8fa;max-width:var(--container);margin:0 auto;box-sizing:border-box;box-shadow:0 8px 32px rgba(30,58,138,.08)}
.smw-article *{box-sizing:border-box}
.smw-article a{color:#1e5799}
.smw-article a:hover{color:var(--accent)}
.smw-article img{max-width:100%;height:auto}
.smw-article :is(a,button,summary):focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* ===== Hero: crumbs, H1, quiet actions; «Материал подготовлен» card 340px (README §3) ===== */
/* Integer px line-heights on the hero and meta rows: a fractional height shifts the subpixel phase of every line below. */
/* no background of its own: the mockup draws the hero on the container grey (README §3 says white; the owner ruled the mockup wins) */
.smw-hero{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:40px;align-items:center;padding:44px 40px 28px;min-height:200px}
.smw-hero__main{min-width:0}
.smw-crumbs{display:flex;flex-wrap:wrap;gap:0 4px;font-size:14px;line-height:20px;color:var(--muted);margin-bottom:16px}
.smw-crumbs a{color:inherit;text-decoration:none}
.smw-crumbs a:hover{color:var(--accent);text-decoration:underline;text-underline-offset:3px}
.smw-hero__title{font:800 46px/50px Manrope,'Manrope Fallback','Manrope Fallback R',Helvetica,Arial,sans-serif;letter-spacing:-.5px;margin:0 0 20px;overflow-wrap:anywhere}
.smw-hero__actions{display:flex;flex-wrap:wrap;gap:8px 20px;align-items:center}
.smw-action{display:inline-flex;align-items:center;gap:6px;border:0;background:none;padding:0;margin:0;font:600 14px/20px Manrope,'Manrope Fallback','Manrope Fallback R',Helvetica,Arial,sans-serif;color:#1e5799;cursor:pointer}
.smw-action:hover{color:var(--accent)}
.smw-action[aria-busy="true"],.smw-table-wrap__foot button[aria-busy="true"]{cursor:progress} /* PDF being built (article.js): «PDF готовится…» + spinner */
.smw-action[aria-busy="true"]::before,.smw-table-wrap__foot button[aria-busy="true"]::before{content:"";display:inline-block;flex:none;width:12px;height:12px;margin-right:6px;vertical-align:-2px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:smw-spin .7s linear infinite}
.smw-action[aria-busy="true"]::before{margin-right:0} /* the flex gap already spaces it */
.smw-hero__card{border:1px solid var(--border);border-radius:12px;padding:16px 18px;font-size:13px;line-height:20px;color:var(--muted)}
.smw-hero__card-title{font-size:11px;line-height:16px;text-transform:uppercase;letter-spacing:.8px;color:var(--muted);margin-bottom:6px}
.smw-hero__card p{margin:0}
.smw-hero__card b{color:var(--text);font-size:15px}
.smw-hero__card a{display:inline-block;margin-top:8px;font-weight:600;text-decoration:none}

/* ===== Author strip + meta row: first thing in the article column, so the sidebar starts level with it (README §4) ===== */
.smw-author{max-width:820px;margin:0 0 32px;padding:16px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border);font-size:14px;line-height:21px;color:var(--muted);min-height:110px}
.smw-author__row{display:flex;gap:14px;align-items:center}
.smw-author__photo{flex:none;display:block;line-height:0}
.smw-author__photo img{width:44px;height:44px;border-radius:50%;object-fit:cover;background:#d5dae3 url(img/author-placeholder.svg) center/cover;display:block}
.smw-author__body{min-width:0}
.smw-author__caps{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:2px}
.smw-author__label{font-size:11px;line-height:16px;text-transform:uppercase;letter-spacing:.8px;color:var(--muted)}
.smw-author__badge{display:inline-flex;align-items:center;gap:4px;background:var(--note-bg);color:var(--navy);border-radius:999px;padding:2px 9px;font-size:11px;line-height:16px;font-weight:700;white-space:nowrap}
.smw-author__name b{color:var(--text);font-size:16px}
.smw-author__badge--name{display:none}
.smw-author__cred::before{content:" — "}
/* mobile-only short labels (single-post.php): «Скачать PDF», «15 мин», «12 400 проч.», the rating without its vote count */
.smw-short{display:none}
/* one row, no wrap, overflow clipped (README §4); the rating link is [hidden] until more than 5 votes */
.smw-meta{display:flex;gap:8px 18px;align-items:center;flex-wrap:nowrap;overflow:hidden;margin-top:10px;padding-top:10px;border-top:1px dashed var(--border);font-size:13px;line-height:20px;min-height:31px}
.smw-meta>*{white-space:nowrap;flex:none}
.smw-meta b{color:var(--text)}
/* .smw-article prefix: .smw-article a / a:hover (0,1,1)/(0,2,1) would paint the vote count link-blue */
.smw-article .smw-meta__rating{display:inline-flex;align-items:center;gap:6px;color:inherit;text-decoration:none}
.smw-article .smw-meta__rating:hover{color:var(--text)}
.smw-stars{position:relative;display:inline-flex;gap:1px;line-height:0}
.smw-stars__on{position:absolute;top:0;bottom:0;left:0;width:var(--fill,0%);display:inline-flex;gap:1px;overflow:hidden}
.smw-star{width:var(--star-size,18px);height:var(--star-size,18px);fill:var(--star-empty)}
.smw-stars__on .smw-star{flex:none;fill:var(--star)}

/* ===== Body grid: article column ≤ 820px, sidebar 320px sticky (README §5–6) ===== */
.smw-body{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:48px;align-items:start;padding:20px 40px 64px}
.smw-body__main{min-width:0}
.smw-body--no-sidebar{grid-template-columns:minmax(0,820px);justify-content:center}
.article__body{max-width:820px;min-width:0;font-size:17px;line-height:1.7}
.article__body h2{font:800 30px/1.2 Manrope,'Manrope Fallback','Manrope Fallback R',Helvetica,Arial,sans-serif;letter-spacing:-.3px;margin:48px 0 18px}
.article__body h3{font:800 22px/1.3 Manrope,'Manrope Fallback','Manrope Fallback R',Helvetica,Arial,sans-serif;margin:36px 0 14px}
.article__body h4{font:800 18px/1.4 Manrope,'Manrope Fallback','Manrope Fallback R',Helvetica,Arial,sans-serif;margin:28px 0 12px}
.article__body p{margin:0 0 18px;text-wrap:pretty}
.article__body a{text-decoration:underline;text-underline-offset:3px}
.article__body ul,.article__body ol{margin:0 0 20px;padding-left:22px;font-size:16px}
.article__body li{margin-bottom:8px}
.article__body li>ul,.article__body li>ol{margin:8px 0 0}
/* images: WP figure carries an inline width larger than the column; max-width clamps it, width/height attributes keep the ratio */
.article__body figure{margin:8px 0 28px;max-width:100%}
.article__body .aligncenter{margin-left:auto;margin-right:auto}
.article__body img{display:block;border-radius:12px;border:1px solid var(--border)}
.article__body figcaption,.article__body .wp-caption-text{font-size:14px;line-height:1.5;color:var(--muted);margin-top:10px;text-align:left}
/* expert quote: WP markup is blockquote > p > text, br, cite */
.article__body blockquote{margin:0 0 22px;padding:18px 24px;border-left:4px solid var(--accent);background:var(--surface);border-radius:0 12px 12px 0;font-size:17px;line-height:1.65;font-style:italic}
.article__body blockquote p{margin:0}
.article__body blockquote p+p{margin-top:12px}
.article__body blockquote cite{display:block;margin-top:12px;font-style:normal;font-size:14px;line-height:1.35;font-weight:700;color:var(--navy)}
.article__body iframe{max-width:100%}
/* editor content patterns (README §5, brief Step 2): note, expert quote, steps, docs, prices — for the content team, no post uses them yet */
.article__body .note{background:var(--note-bg);border:1px solid var(--note-border);border-radius:12px;padding:16px 20px;font-size:16px;margin:0 0 18px}
.article__body .note>b:first-child,.article__body .note>strong:first-child{display:block;margin-bottom:6px}
.article__body .note>:last-child{margin-bottom:0}
.article__body .quote{background:var(--surface);border-left:4px solid var(--accent);border-radius:0 12px 12px 0;padding:18px 24px;margin:0 0 18px}
.article__body .quote__author{display:flex;gap:10px;align-items:center;font-size:14px;color:var(--muted);margin-top:12px}
.article__body .quote__author img{width:28px;height:28px;border-radius:50%;border:0}
.article__body .steps{list-style:none;padding:0;counter-reset:step}
.article__body .steps>li{position:relative;padding-left:44px;font-size:16px;margin-bottom:14px;counter-increment:step}
.article__body .steps>li::before{content:counter(step);position:absolute;left:0;top:0;width:30px;height:30px;border-radius:50%;background:var(--navy);color:#fff;font-weight:700;display:grid;place-items:center;font-size:14px}
.article__body .docs{list-style:none;padding:0}
.article__body .docs>li{display:flex;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid var(--border)}
.article__body .docs__tag{font-size:11px;font-weight:700;background:var(--surface);border-radius:6px;padding:2px 6px}
.article__body .docs>li>a:last-child{margin-left:auto}
.article__body .prices{list-style:none;padding:0}
.article__body .prices>li{display:flex;justify-content:space-between;gap:16px;padding:10px 0;border-bottom:1px solid var(--border)}
.article__body .prices>li>b{white-space:nowrap}

/* ===== Content transform output (Task 8): FAQ details, table wrap with CSV button ===== */
/* borders: every item has a bottom line, the first of a run also a top line */
.smw-faq{border-bottom:1px solid var(--border)}
.article__body .smw-faq:first-child,.article__body :not(.smw-faq)+.smw-faq{border-top:1px solid var(--border)}
.smw-faq__q{list-style:none;cursor:pointer;position:relative;padding:16px 36px 16px 0;font:700 17px/1.4 Manrope,'Manrope Fallback','Manrope Fallback R',Helvetica,Arial,sans-serif;color:var(--text)}
.smw-faq__q::-webkit-details-marker{display:none}
.article__body .smw-faq__q>h3{display:inline;margin:0;font:inherit;color:inherit} /* the question's own h3, kept for its anchor id */
/* native <details> from the post body (our FAQ has its own +/- marker): a caret says it opens */
.article__body details:not(.smw-faq)>summary{cursor:pointer;list-style:none;position:relative;padding-right:24px}
.article__body details:not(.smw-faq)>summary::-webkit-details-marker{display:none}
.article__body details:not(.smw-faq)>summary::after{content:"";position:absolute;right:6px;top:.45em;width:7px;height:7px;border-right:2px solid var(--accent);border-bottom:2px solid var(--accent);transform:rotate(45deg);transition:transform .15s}
.article__body details:not(.smw-faq)[open]>summary::after{transform:rotate(-135deg)}
@media (prefers-reduced-motion:reduce){.article__body details:not(.smw-faq)>summary::after{transition:none}}
/* P3-11: UA yellow on the article's dark text */
.article__body mark{background:#fdf2c4;color:var(--text);padding:0 2px;border-radius:3px}
.smw-faq__q::after{content:"+";position:absolute;right:4px;top:16px;font-size:22px;line-height:25px;font-weight:400;color:var(--accent)}
.smw-faq[open]>.smw-faq__q::after{content:"–"}
.smw-faq__a{padding:0 0 16px;font-size:16px;color:var(--text-2)}
.smw-faq__a>:last-child{margin-bottom:0}
.smw-table-wrap{margin:0 0 22px}
.smw-table-wrap__frame{position:relative}
.smw-table-wrap__scroll{overflow-x:auto;border:1px solid var(--border);border-radius:12px}
/* under the table on every width (mockup): «Скачать таблицу (Excel)», «Сохранить в PDF»; the scroll hint only while the table overflows (article.js) */
.smw-table-wrap__foot{display:flex;flex-wrap:wrap;align-items:center;gap:0 18px;margin-top:8px;font-size:13px;line-height:18px}
.smw-table-wrap__hint{display:none;font-weight:500;color:var(--muted-2)}
.smw-table-wrap.is-scrollable .smw-table-wrap__hint{display:inline}
.smw-table-wrap__foot button{border:0;background:none;border-radius:0;padding:4px 0;font:700 13px/18px Manrope,'Manrope Fallback','Manrope Fallback R',Helvetica,Arial,sans-serif;color:#1e5799;cursor:pointer}
.smw-table-wrap__foot button:hover{color:var(--accent)}
.smw-table-wrap table{width:100%;margin:0;border-collapse:collapse;font-size:15px;line-height:1.5}
.smw-table-wrap th,.smw-table-wrap td{padding:12px 16px;text-align:left;vertical-align:top;border:0;border-top:1px solid var(--border)}
/* the «№ п/п» column: auto layout would otherwise fold the header into three lines. Header cell only: thead, or the first row of a thead-less table */
.smw-table-wrap :where(thead th:first-child,tbody:first-child>tr:first-child>:first-child){white-space:nowrap}
.smw-table-wrap tr:first-child>th,.smw-table-wrap tr:first-child>td{border-top:0}
/* header: thead cells, or the first row of a thead-less table. Navy on desktop, --surface on mobile (mockup; README's #f5f7fa is the mobile one) */
.smw-table-wrap th,.smw-table-wrap tbody:first-child>tr:first-child>td{background:var(--navy);color:#fff;font-weight:700}

/* ===== «Мы в мессенджерах»: after the content (functions.php) and as the sidebar plate ===== */
.smw-messengers,.smw-sidebar__messengers{display:flex;flex-wrap:wrap;align-items:center;gap:14px}
.smw-sidebar__messengers{flex-wrap:nowrap} /* mockup: three columns, each wrapping inside itself */
.smw-messengers__note{margin-left:auto;font-size:13px;color:var(--muted)}
.smw-messengers{margin:28px 0;padding:14px 4px;border-top:1px solid var(--border);border-bottom:1px solid var(--border);font-size:15px}
.smw-sidebar__messengers{padding:14px 18px;border-radius:14px;background:var(--surface);font-size:14px}
.smw-messengers a,.smw-sidebar__messengers a{font-weight:700;text-decoration:none;color:var(--navy)}
.smw-messengers a[href*="t.me"],.smw-sidebar__messengers a[href*="t.me"]{color:var(--telegram)}

/* ===== Sidebar (README §6) ===== */
.smw-sidebar{width:320px;position:sticky;top:72px;display:flex;flex-direction:column;gap:18px;align-self:start}
.smw-sidebar__slot{border:1.5px dashed var(--note-border);border-radius:14px;padding:16px;background:#fafbfd;min-height:120px}
.smw-services{border:1px solid var(--border);border-radius:14px;padding:16px 20px 6px}
.smw-sidebar__title{font:800 16px/1.3 Manrope,'Manrope Fallback','Manrope Fallback R',Helvetica,Arial,sans-serif;margin:0 0 6px;color:var(--text)}
.smw-services__list{list-style:none;margin:0;padding:0}
.smw-services__list li{margin:0;padding:0;border-top:1px solid #eef1f5}
.smw-services__list a:hover{color:var(--navy)}
.smw-services__list a{display:flex;justify-content:space-between;gap:10px;padding:10px 0;font-size:14px;line-height:1.4;color:var(--text);text-decoration:none}
.smw-services__price{font-weight:700;color:var(--navy);white-space:nowrap}

/* ===== Mobile ≤ 1024px, mockup 390px (README §8) ===== */
@media (max-width:1024px){
.smw-article{background:#fff;box-shadow:none} /* the mobile frame is white throughout */
.smw-long{display:none}
.smw-short{display:inline}
.smw-hero{display:block;padding:22px 16px 16px;min-height:0}
.smw-hero__card{display:none}
/* one line with an ellipsis; a later JS toggle can lift the nowrap */
.smw-crumbs{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;line-height:18px;margin-bottom:10px}
.smw-crumbs__sep{margin:0 4px}
.smw-crumbs.is-expanded{white-space:normal;overflow:visible} /* article.js toggles on tap */
.smw-hero__title{font-size:27px;line-height:31px;letter-spacing:-.3px;margin-bottom:14px}
.smw-hero__actions{gap:8px 16px}
.smw-action{font-size:13px}
.smw-action .smw-icon{display:none}
.smw-author{max-width:none;margin:0 0 8px;padding:12px 0;font-size:13px;line-height:20px;min-height:0}
.smw-author__row{gap:12px}
.smw-author__photo img{width:40px;height:40px}
.smw-author__label{font-size:10px}
.smw-author__name b{font-size:15px}
/* mockup: label alone, then name + badge, then the credential on its own line */
.smw-author__badge--caps{display:none}
.smw-author__badge--name{display:inline-flex;margin-left:6px;vertical-align:1px}
.smw-author__cred{display:block;margin-top:2px;font-size:12px;line-height:17px}
.smw-author__cred::before{content:none}
/* one line with short labels and «·» separators, the rating pushed right (mockup); on a phone too narrow for it
   the stars wrap to a second line instead of being cut off */
.smw-meta{flex-wrap:wrap;gap:2px 6px;padding-top:8px;font-size:12px;line-height:18px;min-height:0}
.smw-meta__pub{display:none}
.smw-meta>span+span::before{content:"· "}
.smw-article .smw-meta__rating{margin-left:auto;gap:4px}
.smw-meta .smw-star{width:14px;height:14px}
.smw-body{display:block;padding:0 16px 24px}
.article__body{max-width:none;font-size:16px;line-height:1.6}
.article__body h2{font-size:23px;letter-spacing:normal;margin:34px 0 12px}
.article__body h3{font-size:19px;margin:26px 0 10px}
.article__body h4{font-size:17px;margin:22px 0 10px}
.article__body p{margin-bottom:14px}
.article__body ul,.article__body ol{margin-bottom:16px;padding-left:20px;font-size:15px}
.article__body figure{margin:6px 0 20px}
.article__body img{border-radius:10px}
.article__body figcaption,.article__body .wp-caption-text{font-size:13px;margin-top:8px}
.article__body blockquote{margin-bottom:16px;padding:12px 16px;border-radius:0 10px 10px 0;font-size:15px;line-height:1.6}
.article__body blockquote cite{font-size:13px;margin-top:10px}
.smw-faq__q{padding:12px 32px 12px 0;font-size:15px}
.smw-faq__q::after{top:12px;font-size:20px;line-height:21px}
.smw-faq__a{padding-bottom:12px;font-size:14px}
.smw-table-wrap{margin-bottom:16px}
.smw-messengers{margin:20px 0;padding:12px 2px;gap:12px;font-size:14px}
.smw-messengers__note{display:none}
.smw-sidebar{width:auto;position:static;margin-top:32px}
.smw-sidebar__messengers{display:none} /* the in-body strip right above says the same */
}

/* ===== Plugin output. Joli TOC (#wpj-jtoc .wpj-jtoc--*), inserted by the plugin before the first H2 (README §5) ===== */
/* The plugin is skinned through its own --jtoc-* custom properties; .article__body .wpj-jtoc.wpj-jtoc--main (0,3,0) outranks the theme file's .wpj-jtoc.--jtoc-theme-basic-light (0,2,0).
   Its bang-important rules (folded body display:none, toggle 2em, hover colours via the same vars, dotted hover underline) are left alone.
   The plugin ships the box folded on every width (fold_on_load=yes, no responsive option; --jtoc-animate = JS sets max-height inline): unfolding on desktop is article.js (Task 12). */
.article__body .wpj-jtoc.wpj-jtoc--main{--jtoc-toc-root-margin-top:8px;--jtoc-toc-root-margin-bottom:28px;--jtoc-display:block;--jtoc-background-color:var(--surface);--jtoc-toc-border:1px solid var(--border);--jtoc-toc-border-color:var(--border);--jtoc-toc-border-radius:12px;--jtoc-header-height:auto;--jtoc-header-padding:14px 14px 12px 0;--jtoc-header-color:var(--text);--jtoc-title-color:var(--text);--jtoc-title-font-size:16px;--jtoc-title-label-font-weight:800;--jtoc-toggle-color:var(--navy);--jtoc-body-padding:0 18px 14px;--jtoc-hierarchy-offset:18px;--jtoc-headings-padding:5px 0;--jtoc-headings-line-height:1.45;--jtoc-link-font-size:15px;--jtoc-link-font-weight:500;--jtoc-link-color:var(--text);--jtoc-link-color-hover:var(--navy);--jtoc-link-color-active:var(--navy);--jtoc-numeration-color:var(--muted);--jtoc-transition-duration:.25s;font-family:Manrope,'Manrope Fallback','Manrope Fallback R',Helvetica,Arial,sans-serif}
.article__body .wpj-jtoc.wpj-jtoc--main .title-icon{display:none} /* the mockup has no book icon */
.smw-toc-count{display:none;margin-left:auto;padding-right:8px;font-size:12px;font-weight:600;color:var(--navy)}
@media (max-width:1024px){.smw-toc-count{display:inline}}
.article__body .wpj-jtoc.wpj-jtoc--main .wpj-jtoc--body{margin-top:0} /* the theme file pulls the body up by 16px under its fixed 50px header */
/* .article__body ul/ol/li rules do not reach the list: the plugin's own list/li rules outrank them and the links carry their own size */
.article__body .wpj-jtoc.wpj-jtoc--main .wpj-jtoc--item-content>a{overflow-wrap:anywhere}
.article__body .wpj-jtoc.wpj-jtoc--main .wpj-jtoc--item-content>a:focus-visible{box-shadow:0 0 0 2px var(--accent);border-radius:4px} /* the plugin sets outline:none with bang-important */
@media (prefers-reduced-motion:reduce){.article__body .wpj-jtoc.wpj-jtoc--main{--jtoc-transition-duration:0s}}
/* images inside plugin inserts (Ad Inserter .code-block, Rosreestr widget, poll): not article figures, so no frame */
.article__body :is(.code-block,.wp-rosreestr-container,.expert-review-poll,.rmp-widgets-container) img{display:revert;border:0;border-radius:0}

/* ===== Rate my Post (.rmp-*), appended after the content: centred, 52px stars, no frame (README §5 «Оценка статьи») ===== */
/* The Customizer «Additional CSS» (#wp-custom-css, printed after this file) frames the widget at (0,3,0) and paints the full star #FFB800 with bang-important:
   every rule here is ≥ (0,4,0), and the star colour goes through -webkit-text-fill-color, which the colour rule does not touch. */
.article__body .rmp-widgets-container.rmp-wp-plugin.rmp-main-container{background:none;border:0;border-radius:0;max-width:none;padding:8px 0 4px;margin:48px 0 0;text-align:center;font-family:Manrope,'Manrope Fallback','Manrope Fallback R',Helvetica,Arial,sans-serif}
.article__body .rmp-main-container.rmp-wp-plugin .rmp-heading--title{font-size:24px;line-height:1.3;font-weight:700;color:var(--text);margin:0 0 12px}
.article__body .rmp-main-container.rmp-wp-plugin .rmp-heading--subtitle{display:none}
.article__body .rmp-main-container.rmp-wp-plugin .rmp-rating-widget__icons{margin:0}
.article__body .rmp-main-container.rmp-wp-plugin .rmp-icon--ratings{font-size:52px;line-height:1;color:var(--star-empty);cursor:pointer}
/* Every star is a gradient clipped to the glyph, split at --fill: the plugin's classes give whole/half stars (4.8 → five full),
   article.js overrides --fill inline with the exact share of the average (4.8 → the fifth at 80%). The background shorthand resets the
   plugin's -webkit-background-clip:text, so the clip is restated after it. */
.article__body .rmp-main-container.rmp-wp-plugin .rmp-icon--ratings{background:linear-gradient(90deg,var(--star) var(--fill,0%),var(--star-empty) var(--fill,0%));-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.article__body .rmp-main-container.rmp-wp-plugin .rmp-icon--full-highlight{--fill:100%}
.article__body .rmp-main-container.rmp-wp-plugin .rmp-icon--half-highlight{--fill:50%}
.article__body .rmp-main-container.rmp-wp-plugin .rmp-icon--hovered,.article__body .rmp-main-container.rmp-wp-plugin .rmp-icon--processing-rating{color:var(--star);-webkit-text-fill-color:var(--star)}
.article__body .rmp-main-container.rmp-wp-plugin .rmp-rating-widget__hover-text{font-size:14px;color:var(--muted);min-height:0;margin:0}
.article__body .rmp-main-container.rmp-wp-plugin .rmp-rating-widget__results,.article__body .rmp-main-container.rmp-wp-plugin .rmp-rating-widget__not-rated{font-size:15px;font-style:italic;color:var(--muted);margin:10px 0 0}
/* The plugin's answer to a vote («Спасибо за оценку!» / «Вы уже голосовали!») is the only feedback the reader
   gets — the stars fall back to the new average — so it is a plate, not a grey line. Empty until the vote lands. */
.article__body .rmp-main-container.rmp-wp-plugin .rmp-rating-widget__msg{display:inline-block;margin:12px 0 0;padding:10px 18px;border-radius:12px;background:var(--note-bg);color:var(--navy);font:700 16px/1.4 Manrope,'Manrope Fallback','Manrope Fallback R',Helvetica,Arial,sans-serif;animation:smw-rmp-msg .24s ease-out both}
.article__body .rmp-main-container.rmp-wp-plugin .rmp-rating-widget__msg::before{content:"\2713";margin-right:8px;color:var(--ok)} /* a mark, so the plate reads as a status and not as the button right below it */
.article__body .rmp-main-container.rmp-wp-plugin .rmp-rating-widget__msg:empty{display:none}
.article__body .rmp-main-container.rmp-wp-plugin .rmp-rating-widget__msg--alert{background:#fef3f2;color:#b42318}
.article__body .rmp-main-container.rmp-wp-plugin .rmp-rating-widget__msg--alert::before{content:"\0021";color:#b42318}
@keyframes smw-rmp-msg{from{opacity:0;transform:translateY(-4px)}}
/* While the vote is in flight the plugin marks the clicked stars .rmp-icon--processing-rating (and drops the class on answer or error):
   a spinner under the stars, so the click visibly did something before «Спасибо за оценку!» lands. */
.article__body .rmp-main-container.rmp-wp-plugin .rmp-rating-widget__icons:has(.rmp-icon--processing-rating)::after{content:"";display:block;width:22px;height:22px;margin:10px auto 0;border:3px solid var(--border);border-top-color:var(--star);border-radius:50%;animation:smw-spin .7s linear infinite}
.article__body .rmp-main-container.rmp-wp-plugin .rmp-rating-widget__icons:has(.rmp-icon--processing-rating) .rmp-icon--ratings:not(.rmp-icon--processing-rating){-webkit-text-fill-color:var(--star-empty)} /* the stars past the clicked one drop the average's fill, so the row reads as the vote being sent */
@keyframes smw-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.article__body .rmp-main-container.rmp-wp-plugin .rmp-rating-widget__msg{animation:none}.article__body .rmp-main-container.rmp-wp-plugin .rmp-rating-widget__icons::after{animation-duration:2s}}
/* buttons (feedback form after a low rating; «Отправить оценку» only when the plugin shows it): outline navy like the rest of the site, never the plugin's yellow */
.article__body .rmp-main-container.rmp-wp-plugin .rmp-btn,.article__body .rmp-main-container.rmp-wp-plugin .rmp-btn:hover,.article__body .rmp-main-container.rmp-wp-plugin .rmp-btn:focus{background:#fff;color:var(--navy);border:1.5px solid var(--navy);border-radius:10px;padding:10px 18px;margin:12px 0 0;font:700 14px/1.2 Manrope,'Manrope Fallback','Manrope Fallback R',Helvetica,Arial,sans-serif;cursor:pointer}
.article__body .rmp-main-container.rmp-wp-plugin .rmp-btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.article__body .rmp-main-container.rmp-wp-plugin .rmp-feedback-widget{margin-top:24px}
.article__body .rmp-main-container.rmp-wp-plugin .rmp-feedback-widget__text{font-size:15px;color:var(--text-2)}
.article__body .rmp-main-container.rmp-wp-plugin .rmp-feedback-widget__input{width:100%;max-width:520px;min-width:0;border:1px solid #d5dae3;border-radius:10px;padding:10px 12px;font:500 14px/1.5 Manrope,'Manrope Fallback','Manrope Fallback R',Helvetica,Arial,sans-serif;color:var(--text);background:var(--surface)}

/* ===== Bottom bar, «Наверх», lightbox (README §5 img, §8). All ship [hidden]; article.js toggles them. z-index above the sticky headers (#smw-compact/#smw-mobile: 30) ===== */
.smw-article .smw-bottombar a:focus-visible{outline-color:#fff}
.article__body .smw-zoom{cursor:zoom-in} /* article.js marks lightbox-able images */
/* a tall image (a flowchart) is read by scrolling the overlay: margin:auto centres a small one and never clips a big one's top */
.smw-lightbox{position:fixed;inset:0;z-index:10000;display:flex;overflow:auto;overscroll-behavior:contain;padding:40px;background:rgba(15,23,42,.92);cursor:zoom-out}
.smw-lightbox img{flex:none;margin:auto;max-width:100%;height:auto;border-radius:8px;box-shadow:0 20px 60px rgba(0,0,0,.5)}
.smw-lightbox__close{width:44px;height:44px;display:grid;place-items:center;border:0;border-radius:10px;background:none;font-size:24px;position:fixed;top:calc(12px + env(safe-area-inset-top,0px));right:16px;z-index:1;color:#fff;cursor:pointer} /* stays put while the image scrolls */
.smw-lightbox__close .smw-icon{width:22px;height:22px}
.smw-lightbox__close:hover{color:var(--footer-link)}
.smw-article .smw-lightbox__close:focus-visible{outline-color:#fff} /* the buttons take the generic .smw-article :focus-visible ring; on the dark backdrop it is white */
@media (max-width:1024px){
/* Joli TOC as the mobile <details> of the mockup: no border, tighter, 14px links */
.article__body .wpj-jtoc.wpj-jtoc--main{--jtoc-toc-border:0;--jtoc-toc-root-margin-top:4px;--jtoc-toc-root-margin-bottom:20px;--jtoc-header-padding:12px 12px 10px 0;--jtoc-body-padding:0 16px 12px;--jtoc-link-font-size:14px;--jtoc-headings-padding:4px 0}
.article__body .rmp-widgets-container.rmp-wp-plugin.rmp-main-container{margin-top:36px}
.article__body .rmp-main-container.rmp-wp-plugin .rmp-heading--title{font-size:21px}
.article__body .rmp-main-container.rmp-wp-plugin .rmp-icon--ratings{font-size:44px}
/* tables scroll sideways under a right-edge fade. article.js sets .is-scrollable (the table overflows) and .is-end (last column in view: the fade would cover it) */
.smw-table-wrap__scroll{-webkit-overflow-scrolling:touch;scrollbar-width:thin;background:#fff}
.smw-table-wrap table{width:auto;min-width:100%;font-size:14px;line-height:1.45}
.smw-table-wrap th,.smw-table-wrap td{padding:10px 12px}
.smw-table-wrap th,.smw-table-wrap tbody:first-child>tr:first-child>td{background:var(--surface);color:var(--text)}
/* 180px columns are the mockup's; a two-column table fits 390 as is, so it does not get pushed into a scroll */
.smw-table-wrap table:has(tr>:nth-child(3)) td{min-width:180px}
.smw-table-wrap .smw-table--num td:first-child{min-width:0} /* «№ п/п» (article.js) keeps its natural width */
.smw-table-wrap.is-scrollable:not(.is-end) .smw-table-wrap__frame::after{content:"";position:absolute;top:1px;right:1px;bottom:1px;width:36px;border-radius:0 11px 11px 0;background:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.95));pointer-events:none}
.smw-table-wrap__foot{gap:0 14px;margin-top:6px}
}

/* ===== Print (Ctrl+P, and the fallback when the server cannot build the PDF): the article column only; article.js opens every FAQ on beforeprint.
   .wpj-jtoc is hidden on purpose: the plugin folds it with an inline max-height, and anchors do nothing on paper ===== */
@media print{
.smw-site-header,#smw-compact,#smw-mobile,.smw-progress,.smw-footer,.smw-sidebar,.smw-bottombar,.smw-totop,#smw-lightbox,.smw-hero__actions,.smw-table-wrap__foot,.smw-messengers,.rmp-widgets-container,.code-block,.wp-rosreestr-container,.expert-review-poll,.wpj-jtoc,.clearfy-cookie{display:none}
body.single-post{background:#fff;padding:0}
.smw-article{background:#fff}
.smw-hero{display:block;min-height:0;padding:0 0 16px}
.smw-hero__card{display:none}
.smw-hero__title{font-size:32px;line-height:1.15}
.smw-author{max-width:none;margin:0 0 8px;min-height:0}
.smw-body{display:block;padding:16px 0 0}
.article__body{max-width:none;font-size:13pt;line-height:1.55}
.article__body a{color:inherit;text-decoration:none}
.article__body h2{margin-top:28px;break-after:avoid}
.article__body h3,.article__body h4{break-after:avoid}
.article__body figure,.article__body blockquote,.article__body .smw-faq,.smw-table-wrap tr{break-inside:avoid}
.article__body img{border:1px solid #ccc}
.smw-table-wrap__scroll{overflow:visible;border-color:#ccc}
.smw-table-wrap.is-scrollable:not(.is-end) .smw-table-wrap__frame::after{content:none}
.smw-faq__q::after{content:none}
.smw-faq__q{padding-right:0}
}
