/* PawYume — тема соцсети. Цвета и размеры — переменные (часть задаётся в Настройщике). */

:root {
	--pyt-accent: #9b3fe0;
	--pyt-accent2: #f0529c;
	--pyt-grad: linear-gradient(135deg, var(--pyt-accent), var(--pyt-accent2));
	--pyt-page: #f6f1fb;
	--pyt-ink: #251b2e;
	--pyt-ink2: #4a3d55;
	--pyt-mute: #7c6e88;
	--pyt-card: rgba(255, 255, 255, var(--pyt-glass, .86));
	--pyt-solid: #fff;
	--pyt-soft: color-mix(in srgb, var(--pyt-accent) 9%, #fff);
	--pyt-line: color-mix(in srgb, var(--pyt-accent) 16%, #e9e2ef);
	--pyt-shadow: 0 10px 30px -14px rgba(84, 30, 120, .28), 0 2px 6px rgba(84, 30, 120, .06);
	--pyt-r: 22px;
	--pyt-r-s: calc(var(--pyt-r) * .6);
	--pyt-gap: 22px;
	--pyt-left-w: 268px;
	--pyt-right-w: 300px;
	--pyt-width: 1320px;
	--pyt-border: 2px solid color-mix(in srgb, var(--pyt-accent) 70%, transparent);
	--pyt-logo: 56px;
	--pyt-top-h: 76px;
	--pyt-font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--pyt-ok: #24a36a;
	color-scheme: light;
}
html[data-theme="dark"] {
	--pyt-page: #120c18;
	--pyt-ink: #f3ecf8;
	--pyt-ink2: #d7cbe2;
	--pyt-mute: #a594b4;
	--pyt-card: rgba(32, 23, 41, var(--pyt-glass, .86));
	--pyt-solid: #201729;
	--pyt-soft: color-mix(in srgb, var(--pyt-accent) 16%, #1b1323);
	--pyt-line: color-mix(in srgb, var(--pyt-accent) 22%, #2c2236);
	--pyt-shadow: 0 12px 34px -14px rgba(0, 0, 0, .7);
	color-scheme: dark;
}

/* ---------------------------------------------------------------- основа */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--pyt-top-h) + 12px); }
body {
	margin: 0; font: 500 16px/1.6 var(--pyt-font); color: var(--pyt-ink);
	background-color: var(--pyt-page);
	-webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column;
}
body.custom-background { background-attachment: fixed; }
html[data-theme="dark"] body.custom-background::before { content: ""; position: fixed; inset: 0; background: rgba(12, 6, 18, .55); pointer-events: none; z-index: -1; }
a { color: var(--pyt-accent); text-decoration: none; }
a:hover { color: var(--pyt-accent2); }
img, video, iframe { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--pyt-accent) 55%, transparent); outline-offset: 2px; border-radius: 8px; }
h1, h2, h3, h4 { line-height: 1.25; font-weight: 800; color: var(--pyt-ink); margin: 0 0 .5em; letter-spacing: -.01em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.pyt-skip:focus { clip: auto; width: auto; height: auto; z-index: 1000; left: 12px; top: 12px; background: var(--pyt-solid); padding: 10px 16px; border-radius: 12px; }
.pyt-i { flex: none; display: block; }
.pyt-muted { color: var(--pyt-mute); }

/* ---------------------------------------------------------------- блок */
.pyt-box {
	background: var(--pyt-card); border: var(--pyt-border); border-radius: var(--pyt-r);
	box-shadow: var(--pyt-shadow); padding: 20px 22px;
	-webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
	position: relative; min-width: 0;
}

/* ---------------------------------------------------------------- кнопки */
.pyt-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px;
	border-radius: 999px; border: 0; cursor: pointer; font-weight: 800; letter-spacing: .01em;
	background: var(--pyt-grad); color: #fff !important; box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--pyt-accent) 70%, transparent);
	transition: transform .15s, filter .15s, box-shadow .15s; line-height: 1.2; white-space: nowrap;
}
.pyt-btn:hover { filter: brightness(1.07); transform: translateY(-1px); }
.pyt-btn:active { transform: translateY(0) scale(.98); }
.pyt-btn--ghost { background: transparent; color: var(--pyt-accent) !important; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--pyt-accent) 75%, transparent); }
.pyt-btn--ghost:hover { background: var(--pyt-soft); }

/* ---------------------------------------------------------------- шапка */
.pyt-top {
	position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--pyt-solid) 88%, transparent);
	-webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
	border-bottom: 2px solid color-mix(in srgb, var(--pyt-accent) 55%, transparent);
	box-shadow: 0 6px 24px -18px rgba(84, 30, 120, .5);
}
.admin-bar .pyt-top { top: var(--wp-admin--admin-bar--height, 32px); }
.pyt-top__in {
	max-width: var(--pyt-width); margin: 0 auto; padding: 0 20px; min-height: var(--pyt-top-h);
	display: grid; grid-template-columns: var(--pyt-left-w) 1fr auto; align-items: center; gap: var(--pyt-gap);
}
.pyt-top__brand { display: flex; align-items: center; min-width: 0; }
.pyt-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--pyt-ink); font-weight: 900; font-size: 20px; }
.pyt-logo__img { height: var(--pyt-logo); width: auto; max-width: 100%; display: block; object-fit: contain; }
.pyt-logo__img.is-dark, html[data-theme="dark"] .pyt-logo__img.is-light { display: none; }
html[data-theme="dark"] .pyt-logo__img.is-dark { display: block; }
.pyt-logo__paw { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--pyt-grad); color: #fff; }
.pyt-logo__paw .pyt-i { fill: #fff; stroke: none; }
.pyt-top__nav { justify-self: end; min-width: 0; }
.pyt-pills { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.pyt-pills a {
	display: inline-flex; align-items: center; padding: 8px 16px; border-radius: 999px; font-weight: 800; font-size: 14px;
	text-transform: uppercase; letter-spacing: .04em; color: var(--pyt-accent);
	box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--pyt-accent) 70%, transparent); transition: background .15s, color .15s;
}
.pyt-pills a:hover, .pyt-pills .current-menu-item > a { background: var(--pyt-grad); color: #fff; box-shadow: none; }
.pyt-pills li { position: relative; }
.pyt-pills .sub-menu { display: none; position: absolute; right: 0; top: calc(100% + 8px); list-style: none; margin: 0; padding: 8px; min-width: 200px; background: var(--pyt-solid); border-radius: 16px; box-shadow: var(--pyt-shadow); border: 1px solid var(--pyt-line); }
.pyt-pills li:hover > .sub-menu, .pyt-pills li:focus-within > .sub-menu { display: grid; gap: 4px; }
.pyt-pills .sub-menu a { width: 100%; box-shadow: none; text-transform: none; letter-spacing: 0; }
.pyt-top__user { display: flex; align-items: center; gap: 10px; justify-self: end; }
.pyt-ibtn {
	display: none; flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; place-items: center; cursor: pointer;
	background: var(--pyt-solid); color: var(--pyt-accent); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--pyt-accent) 70%, transparent);
}
.pyt-ibtn:hover { color: var(--pyt-accent2); }
.pyt-ibtn--new { background: var(--pyt-grad); color: #fff !important; box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--pyt-accent) 70%, transparent); }
.pyt-top__user { gap: 8px; }
.pyt-ibtn--mode .is-moon, html[data-theme="dark"] .pyt-ibtn--mode .is-sun { display: none; }
html[data-theme="dark"] .pyt-ibtn--mode .is-moon { display: block; }

/* аватар: кольцо (цвет профиля / тема), просвет, фото */
.pyt-ring {
	--s: 40px; --rw: clamp(2px, calc(var(--s) * .065), 5px);
	position: relative; display: inline-grid; place-items: center; flex: none; vertical-align: middle;
	width: calc(var(--s) + var(--rw) * 4); height: calc(var(--s) + var(--rw) * 4); border-radius: calc(var(--s) * .3);
	background: var(--ring, var(--pyt-grad)); padding: var(--rw); isolation: isolate; box-sizing: border-box;
}
.pyt-ring.has-color { background: linear-gradient(135deg, var(--ring), color-mix(in srgb, var(--ring) 55%, #fff)); }
.pyt-ring.is-premium { background: linear-gradient(135deg, #ffe08a, #f5a524 45%, #ffd36b 70%, #e08b10); box-shadow: 0 0 calc(var(--rw) * 3) -1px rgba(245, 165, 36, .55); }
.pyt-ring.is-ultima { background: none; overflow: hidden; box-shadow: 0 0 calc(var(--rw) * 4) -1px rgba(160, 90, 255, .6); }
.pyt-ring.is-ultima::before { content: ""; position: absolute; inset: -40%; z-index: -1; background: conic-gradient(#ff5fa2, #ffb86b, #ffe66b, #6bffb8, #6bc8ff, #a66bff, #ff5fa2); animation: pyt-spin 4s linear infinite; }
@keyframes pyt-spin { to { transform: rotate(1turn); } }
.pyt-ava {
	width: 100%; height: 100%; border-radius: calc(var(--s) * .3 - var(--rw)); overflow: hidden; display: grid; place-items: center; position: relative;
	background: var(--pyt-grad); color: #fff; font-weight: 900; font-size: calc(var(--s) * .42);
	border: var(--rw) solid var(--pyt-solid); box-sizing: border-box;
}
.pyt-ava::before { content: attr(data-l); }
.pyt-ava img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pyt-user { position: relative; }
.pyt-user__btn { display: flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 2px 8px 2px 2px; border-radius: 999px; cursor: pointer; color: var(--pyt-ink); }
.pyt-user__btn:hover, .pyt-user.is-open .pyt-user__btn { background: var(--pyt-soft); }
.pyt-user__name { font-weight: 800; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pyt-user__menu {
	position: absolute; right: 0; top: calc(100% + 10px); width: 260px; padding: 8px; display: none; z-index: 60;
	background: var(--pyt-solid); border-radius: 18px; border: 1px solid var(--pyt-line); box-shadow: 0 24px 50px -20px rgba(60, 20, 90, .45);
}
.pyt-user.is-open .pyt-user__menu { display: grid; gap: 2px; animation: pyt-pop .16s ease-out; }
@keyframes pyt-pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.pyt-user__head { display: flex; gap: 10px; align-items: center; padding: 8px 10px 12px; border-bottom: 1px solid var(--pyt-line); margin-bottom: 4px; }
.pyt-user__head b { display: block; line-height: 1.2; }
.pyt-user__head small { color: var(--pyt-mute); }
.pyt-user__item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; color: var(--pyt-ink); font-weight: 700; }
.pyt-user__item .pyt-i { color: var(--pyt-accent); }
.pyt-user__item:hover { background: var(--pyt-soft); color: var(--pyt-ink); }
.pyt-user__item.is-logout { color: #c2414b; }
.pyt-user__item.is-logout .pyt-i { color: currentColor; }

/* ---------------------------------------------------------------- колонки */
.pyt-page { flex: 1; position: relative; }
.pyt-cols {
	max-width: var(--pyt-width); margin: 0 auto; padding: var(--pyt-gap) 20px 48px;
	display: grid; gap: var(--pyt-gap); align-items: start;
	grid-template-columns: var(--pyt-left-w) minmax(0, 1fr);
}
.has-right .pyt-cols { grid-template-columns: var(--pyt-left-w) minmax(0, 1fr) var(--pyt-right-w); }
.pyt-cols.is-wide { display: block; padding-top: 0; }
.pyt-main { min-width: 0; display: flex; flex-direction: column; gap: var(--pyt-gap); }
.pyt-left__in, .pyt-right__in { display: flex; flex-direction: column; gap: var(--pyt-gap); position: sticky; top: calc(var(--pyt-top-h) + var(--pyt-gap)); }
.admin-bar .pyt-left__in, .admin-bar .pyt-right__in { top: calc(var(--pyt-top-h) + var(--pyt-gap) + 32px); }
.pyt-left__search { padding: 14px; }

/* поиск */
.pyt-search { display: flex; gap: 8px; position: relative; }
.pyt-search input {
	flex: 1; min-width: 0; padding: 10px 14px; border-radius: 999px; border: 2px solid var(--pyt-line); background: var(--pyt-solid);
	outline: 0; transition: border-color .15s;
}
.pyt-search input:focus { border-color: var(--pyt-accent); }
.pyt-search button { display: inline-flex; align-items: center; gap: 6px; border: 0; padding: 0 16px; border-radius: 999px; background: var(--pyt-grad); color: #fff; font-weight: 800; cursor: pointer; }
.pyt-left .pyt-search input { padding-left: 42px; }
.pyt-left .pyt-search button { position: absolute; left: 4px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; padding: 0; justify-content: center; background: transparent; color: var(--pyt-accent); }
.pyt-left .pyt-search button span { display: none; }

/* разделы в левой колонке */
.pyt-nav__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pyt-nav__list a {
	display: flex; align-items: center; gap: 12px; padding: 9px 14px 9px 9px; border-radius: 18px; color: var(--pyt-ink); font-weight: 800;
	background: var(--pyt-card); border: var(--pyt-border); box-shadow: var(--pyt-shadow); transition: transform .15s, background .15s;
	-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); text-transform: uppercase; font-size: 14px; letter-spacing: .03em;
}
.pyt-nav__list a:hover { transform: translateX(3px); color: var(--pyt-ink); }
.pyt-nav__i { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--pyt-soft); color: var(--pyt-accent); flex: none; transition: background .15s, color .15s; }
.pyt-nav__list .current-menu-item > a, .pyt-nav__list .current_page_item > a { background: var(--pyt-grad); color: #fff; border-color: transparent; }
.pyt-nav__list .current-menu-item .pyt-nav__i, .pyt-nav__list .current_page_item .pyt-nav__i { background: rgba(255, 255, 255, .22); color: #fff; }

/* светлая / тёмная */
.pyt-mode { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; border: 0; padding: 8px 14px 8px 10px; border-radius: 999px; background: var(--pyt-card); color: var(--pyt-ink2); font-weight: 800; cursor: pointer; box-shadow: var(--pyt-shadow); }
.pyt-mode .is-moon, html[data-theme="dark"] .pyt-mode .is-sun { display: none; }
html[data-theme="dark"] .pyt-mode .is-moon { display: inline; }
html[data-theme="dark"] .pyt-mode svg.is-moon { display: block; }

/* виджеты */
.pyt-widget__title { font-size: 18px; margin: 0 0 12px; background: var(--pyt-grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; }
.pyt-widget h2, .pyt-widget h3, .pyt-widget .wp-block-heading { font-size: 18px; margin: 0 0 12px; background: var(--pyt-grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; }
.pyt-widget > :last-child, .pyt-widget .wp-block-group > :last-child { margin-bottom: 0; }
.pyt-widget p { margin: 0 0 8px; }
.pyt-widget ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pyt-widget li a { color: var(--pyt-ink); font-weight: 700; }
.pyt-widget li a:hover { color: var(--pyt-accent); }
.pyt-widget.widget_search, .pyt-widget.widget_block:has(> .wp-block-search) { padding: 14px; }
.pyt-feedtop { display: grid; gap: var(--pyt-gap); }

/* ---------------------------------------------------------------- баннер над лентой */
.pyt-banner { padding: 10px; }
.pyt-banner .slider-viewport { position: relative; height: var(--bn-h, 350px); border-radius: calc(var(--pyt-r) - 8px); overflow: hidden; background: var(--pyt-soft); touch-action: pan-y; }
.pyt-banner .slider-track { display: flex; height: 100%; transition: transform .6s cubic-bezier(.4, 0, .2, 1); will-change: transform; }
.pyt-banner .slide-item { min-width: 100%; height: 100%; }
.pyt-banner .slide-link { display: block; width: 100%; height: 100%; }
.pyt-banner .slide-img { display: block; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.pyt-banner .slider-overlay-controls {
	position: absolute; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 8px; border-radius: 999px;
	background: color-mix(in srgb, var(--pyt-solid) 82%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 8px 22px -10px rgba(40, 10, 60, .5);
}
.pyt-banner .slider-btn { width: 32px; height: 32px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: var(--pyt-grad); color: #fff; padding: 0; }
.pyt-banner .slider-btn .is-flip { transform: scaleX(-1); }
.pyt-banner .slider-dots { display: flex; gap: 6px; }
.pyt-banner .slider-dot { width: 8px; height: 8px; border-radius: 999px; border: 0; padding: 0; cursor: pointer; background: color-mix(in srgb, var(--pyt-accent) 30%, transparent); transition: width .25s, background .25s; }
.pyt-banner .slider-dot.active { width: 22px; background: var(--pyt-grad); }
.pyt-banner .slider-details-btn { padding: 7px 16px; border-radius: 999px; background: var(--pyt-grad); color: #fff; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.pyt-banner .slider-details-btn:hover { color: #fff; filter: brightness(1.08); }
.pyt-banner .is-single .slider-btn, .pyt-banner .is-single .slider-dots { display: none; }
.pyt-banner .slider-empty { height: 100%; display: grid; place-content: center; justify-items: center; gap: 8px; color: var(--pyt-mute); font-weight: 800; }
.pyt-banner .slider-empty .pyt-i { color: var(--pyt-accent); }
.pyt-banner .is-single .slider-overlay-controls:not(:has(.slider-details-btn:not([style*="none"]))) { display: none; }

/* ---------------------------------------------------------------- карточка поста */
.pyt-feed { display: flex; flex-direction: column; gap: var(--pyt-gap); }
.pyt-card { padding: 18px 22px 12px; }
.pyt-card.is-new { animation: pyt-in .35s ease-out both; }
@keyframes pyt-in { from { opacity: 0; transform: translateY(8px); } }
.pyt-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; font-size: 14px; color: var(--pyt-mute); }
.pyt-meta__author { display: inline-flex; align-items: center; gap: 8px; color: var(--pyt-ink); font-weight: 800; }
.pyt-meta__author:hover .pyt-meta__name { color: var(--pyt-accent); }
.pyt-meta__date { color: var(--pyt-mute); }
.pyt-meta__date:hover { color: var(--pyt-accent); }
.pyt-meta__cat { padding: 2px 10px; border-radius: 999px; background: var(--pyt-soft); color: var(--pyt-accent); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.pyt-meta__right { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }
.pyt-meta svg { overflow: visible; }
.pyt-card__title { font-size: 21px; margin: 12px 0 8px; }
.pyt-card__title a { color: var(--pyt-ink); }
.pyt-card__title a:hover { color: var(--pyt-accent); }
.pyt-card__text { margin: 0 0 12px; color: var(--pyt-ink2); }
.pyt-card__media { display: block; margin: 6px -8px 6px; border-radius: calc(var(--pyt-r) - 6px); overflow: hidden; background: var(--pyt-soft); }
.pyt-card__img { width: 100%; height: auto; max-height: 640px; object-fit: cover; display: block; transition: transform .5s; }
.pyt-card__media:hover .pyt-card__img { transform: scale(1.015); }
.pyt-foot { display: flex; align-items: center; gap: 4px; margin: 8px -8px 0; padding-top: 6px; border-top: 1px solid var(--pyt-line); }
.pyt-act { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 999px; border: 0; background: transparent; color: var(--pyt-mute); font-weight: 800; font-size: 14px; cursor: pointer; }
.pyt-act:hover { background: var(--pyt-soft); color: var(--pyt-accent); }
.pyt-act--share { margin-left: auto; }
.pyt-act.is-on { color: var(--pyt-accent2); }
.sticky.pyt-card::after { content: "Закреплено"; position: absolute; top: -10px; right: 18px; padding: 2px 10px; border-radius: 999px; background: var(--pyt-grad); color: #fff; font-size: 12px; font-weight: 800; }

.pyt-more { display: flex; justify-content: center; }
.pyt-next { display: inline-flex; align-items: center; gap: 8px; padding: 12px 26px; border-radius: 999px; font-weight: 800; background: var(--pyt-card); color: var(--pyt-accent); border: var(--pyt-border); box-shadow: var(--pyt-shadow); }
.pyt-next:hover { background: var(--pyt-grad); color: #fff; }
.pyt-next.is-loading { opacity: .6; pointer-events: none; }
.pyt-empty { text-align: center; padding: 48px 22px; color: var(--pyt-mute); display: grid; justify-items: center; gap: 10px; }
.pyt-empty .pyt-i { color: var(--pyt-accent); fill: color-mix(in srgb, var(--pyt-accent) 15%, transparent); }
.pyt-empty p { margin: 0; }
.pyt-404 .pyt-search { width: min(420px, 100%); }

/* заголовок раздела */
.pyt-head { display: flex; align-items: center; gap: 14px; padding: 18px 22px; }
.pyt-head h1 { font-size: 24px; margin: 0; }
.pyt-head__i { width: 46px; height: 46px; border-radius: 15px; background: var(--pyt-grad); color: #fff; display: grid; place-items: center; flex: none; }
.pyt-head__d { color: var(--pyt-mute); }
.pyt-head__d p { margin: 2px 0 0; }
.pyt-searchbox { padding: 14px; }

/* ---------------------------------------------------------------- пост */
.pyt-post { padding: 22px 28px 14px; }
.pyt-post__title { font-size: clamp(24px, 3.2vw, 34px); margin: 16px 0 14px; }
.pyt-post__cover { margin: 0 -10px 18px; border-radius: calc(var(--pyt-r) - 6px); overflow: hidden; }
.pyt-post__cover img { width: 100%; display: block; }
.pyt-content { font-size: 17px; line-height: 1.75; color: var(--pyt-ink2); overflow-wrap: break-word; }
.pyt-content > * { margin-top: 0; margin-bottom: 1em; }
.pyt-content h2, .pyt-content h3, .pyt-content h4 { margin-top: 1.4em; }
.pyt-content img, .pyt-content video { border-radius: var(--pyt-r-s); }
.pyt-content blockquote { margin-left: 0; padding: 12px 18px; border-left: 4px solid var(--pyt-accent); background: var(--pyt-soft); border-radius: 0 var(--pyt-r-s) var(--pyt-r-s) 0; }
.pyt-content pre { background: #1d1526; color: #f3ecf8; padding: 14px 16px; border-radius: var(--pyt-r-s); overflow: auto; font-size: 14px; }
.pyt-content code { background: var(--pyt-soft); padding: 1px 6px; border-radius: 6px; font-size: .92em; }
.pyt-content pre code { background: none; padding: 0; }
.pyt-content table { width: 100%; border-collapse: collapse; }
.pyt-content th, .pyt-content td { border: 1px solid var(--pyt-line); padding: 8px 10px; }
.pyt-content .alignwide { margin-left: -10px; margin-right: -10px; }
.pyt-content .alignfull { margin-left: -28px; margin-right: -28px; }
.pyt-content figcaption { color: var(--pyt-mute); font-size: 14px; text-align: center; }
.pyt-content a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.pyt-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 10px; }
.pyt-tags a { padding: 4px 12px; border-radius: 999px; background: var(--pyt-soft); font-weight: 800; font-size: 14px; }
.pyt-pages { display: flex; gap: 8px; margin: 10px 0; }
.pyt-authorbox { display: flex; align-items: center; gap: 14px; }
.pyt-authorbox__tx { flex: 1; min-width: 0; }
.pyt-authorbox__name { font-weight: 900; font-size: 18px; color: var(--pyt-ink); }
.pyt-authorbox p { margin: 2px 0 0; color: var(--pyt-mute); font-size: 15px; }
.pyt-near { display: grid; grid-template-columns: 1fr 1fr; gap: var(--pyt-gap); }
.pyt-near__a { padding: 14px 18px; color: var(--pyt-ink); }
.pyt-near__a small { display: block; color: var(--pyt-mute); font-weight: 700; }
.pyt-near__a b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pyt-near__a.is-next { text-align: right; grid-column: 2; }

/* «Похожие» — заголовок ленты под комментариями */
.pyt-feedtitle { display: flex; align-items: center; gap: 10px; margin: 6px 4px -4px; font-size: 22px; }
.pyt-feedtitle .pyt-i { color: var(--pyt-accent); }

/* комментарии */
.pyt-comments__title { display: flex; align-items: center; gap: 8px; font-size: 20px; }
.pyt-comments__title .pyt-i { color: var(--pyt-accent); }
.pyt-clist, .pyt-clist .children { list-style: none; margin: 0; padding: 0; }
.pyt-clist .children { margin-left: 22px; padding-left: 14px; border-left: 2px solid var(--pyt-line); }
.pyt-c__in { display: flex; gap: 12px; padding: 12px 0; }
.pyt-c__body { flex: 1; min-width: 0; }
.pyt-c__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pyt-c__name { font-weight: 900; color: var(--pyt-ink); }
.pyt-c__date { color: var(--pyt-mute); font-size: 13px; }
.pyt-c__text { color: var(--pyt-ink2); overflow-wrap: break-word; }
.pyt-c__text p { margin: 4px 0; }
.pyt-c__foot { display: flex; gap: 14px; font-size: 14px; font-weight: 800; }
.pyt-c__foot a { color: var(--pyt-mute); }
.pyt-c__foot a:hover { color: var(--pyt-accent); }
.comment-respond { margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--pyt-line); }
.comment-reply-title { font-size: 17px; }
.comment-reply-title small { margin-left: 8px; font-size: 14px; }
.comment-form textarea, .comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"] {
	width: 100%; padding: 12px 14px; border-radius: 16px; border: 2px solid var(--pyt-line); background: var(--pyt-solid); outline: 0; resize: vertical;
}
.comment-form textarea:focus, .comment-form input:focus { border-color: var(--pyt-accent); }
.comment-form p { margin: 0 0 10px; }
.comment-form .form-submit { margin: 0; }

/* ---------------------------------------------------------------- профиль: шапка над карточкой автора */
.pyt-cover { padding: 0; height: 190px; background: var(--pyt-grad); background-size: cover; background-position: center; overflow: hidden; }
.pyt-author { padding: 26px 30px; }
.author-header { display: flex; align-items: center; gap: 20px 36px; }
.author-header__avatar { flex: none; }
.author-header__body { flex: 1 1 0; min-width: 0; }
.author-header__name { font-size: clamp(1.3rem, 3vw, 1.75rem); font-weight: 900; margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.author-header__username { color: var(--pyt-mute); font-weight: 600; margin: 0 0 16px; }
.author-header__registered { display: flex; flex-wrap: wrap; gap: 6px 26px; color: var(--pyt-ink2); font-weight: 600; font-size: 15px; }
.author-header__registered b, .author-header__registered strong { color: var(--pyt-ink); font-weight: 900; }
.author-description { margin-top: 18px; color: var(--pyt-ink2); overflow-wrap: break-word; }
.author-header__actions { display: flex; gap: 12px; margin-top: 24px; }
.author-header__actions > * { flex: 1 1 0; min-width: 0; justify-content: center; }
.author-header__actions svg { display: none; } /* кнопки профиля — только текст */
.author-header__actions .pyt-btn, .author-header__actions > a, .author-header__actions > button { min-height: 48px; font-size: 15px; }
.pyt-online { color: var(--pyt-ok); font-weight: 800; }
.pyt-online::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; margin: 0 6px 1px 4px; }
/* шапка Paw Profile — той же карточкой */
.pyt-main > .ppf-cv--page { border-radius: var(--pyt-r); border: var(--pyt-border); box-shadow: var(--pyt-shadow); overflow: hidden; margin: 0 !important; }

/* ---------------------------------------------------------------- подвал, панели */
.pyt-footer { position: relative; margin-top: auto; }
.pyt-footer__in { max-width: var(--pyt-width); margin: 0 auto; padding: 22px 20px 30px; display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; color: var(--pyt-mute); font-size: 14px; }
.pyt-footer__menu { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; }
.pyt-footer__menu a { color: var(--pyt-ink2); font-weight: 700; }
.pyt-up { position: fixed; right: 20px; bottom: 90px; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: var(--pyt-solid); color: var(--pyt-accent); box-shadow: var(--pyt-shadow); z-index: 40; }
.pyt-up[hidden] { display: none; }
.pyt-tabbar { display: none; }
.pyt-shade { position: fixed; inset: 0; background: rgba(20, 8, 30, .45); z-index: 70; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.pyt-shade[hidden] { display: none; }
.pyt-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); padding: 10px 18px; border-radius: 999px; background: var(--pyt-ink); color: var(--pyt-solid); font-weight: 800; z-index: 100; animation: pyt-pop .2s; }

/* ---------------------------------------------------------------- адаптивность */
@media (max-width: 1240px) {
	.has-right .pyt-cols { grid-template-columns: var(--pyt-left-w) minmax(0, 1fr); }
	.has-right .pyt-left { grid-row: span 2; }
	.pyt-right { grid-column: 2; }
	.pyt-right__in { position: static; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}
@media (max-width: 960px) {
	:root { --pyt-left-w: 280px; --pyt-top-h: 64px; --pyt-gap: 16px; }
	.pyt-top__in { grid-template-columns: 1fr auto; padding: 0 14px; gap: 12px; }
	.pyt-top__nav { display: none; }
	.pyt-ibtn { display: grid; }
	.pyt-logo__img { height: calc(var(--pyt-logo) * .8); }
	.pyt-user__name, .pyt-user__btn > .pyt-i { display: none; }
	.pyt-user__btn { padding: 2px; }
	.pyt-cols, .has-right .pyt-cols { display: flex; flex-direction: column; align-items: stretch; padding: 14px 12px 90px; gap: 14px; }
	.pyt-main { order: 1; gap: 14px; }
	.pyt-left { order: 2; }
	.pyt-right { order: 3; }
	.pyt-left__in, .pyt-right__in { position: static; gap: 14px; display: flex; flex-direction: column; }
	.has-tabbar .pyt-nav { display: none; } /* разделы — в нижней панели */
	.pyt-left .pyt-mode { display: none; }   /* тема — кнопкой в шапке */
	.pyt-box { padding: 16px; }
	.pyt-banner { padding: 6px; }
	.pyt-banner .slider-viewport { height: var(--bn-h-m, 220px); }
	.pyt-banner .slider-overlay-controls { right: 8px; bottom: 8px; gap: 6px; }
	.pyt-banner .slider-btn { width: 28px; height: 28px; }
	.pyt-banner .slider-details-btn { padding: 6px 12px; font-size: 11px; }
	.pyt-card { padding: 14px 16px 10px; }
	/* фото от края до края поста */
	.pyt-card__media { margin: 8px -16px 6px; border-radius: 0; }
	.pyt-post__cover { margin: 0 -18px 16px; border-radius: 0; }
	.pyt-post .pyt-content > .wp-block-image, .pyt-post .pyt-content > figure, .pyt-post .pyt-content > .wp-block-gallery, .pyt-post .pyt-content > .wp-block-embed, .pyt-post .pyt-content > .wp-block-video { margin-left: -18px; margin-right: -18px; max-width: none; }
	.pyt-post .pyt-content > .wp-block-image img, .pyt-post .pyt-content > figure img, .pyt-post .pyt-content > .wp-block-video video { width: 100%; border-radius: 0; }
	.pyt-post .pyt-content > p > img:only-child, .pyt-post .pyt-content > p > a:only-child > img { display: block; width: calc(100% + 36px); max-width: none; margin: 0 -18px; border-radius: 0; }
	.pyt-post .pyt-content figcaption { padding: 0 18px; }
	.pyt-post { padding: 16px 18px 12px; }
	.pyt-content .alignfull { margin-left: -18px; margin-right: -18px; }
	.pyt-tabbar {
		display: block; position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 45;
		background: color-mix(in srgb, var(--pyt-solid) 90%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
		border-radius: 22px; box-shadow: 0 14px 30px -12px rgba(60, 20, 90, .45); border: 1px solid var(--pyt-line);
	}
	.pyt-tabbar__list { list-style: none; margin: 0; padding: 6px; display: flex; }
	.pyt-tabbar__list li { flex: 1; }
	.pyt-tabbar__list a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border-radius: 16px; color: var(--pyt-mute); font-size: 11px; font-weight: 800; }
	.pyt-tabbar__list .pyt-nav__i { width: 30px; height: 30px; background: transparent; color: inherit; }
	.pyt-tabbar__list .current-menu-item a { color: var(--pyt-accent); background: var(--pyt-soft); }
	.pyt-up { bottom: 96px; right: 14px; }
	.has-tabbar .pyt-up { bottom: 160px; }
	/* плавающие кнопки плагинов (ROM NEURO и т. п.) — над нижней панелью */
	.has-tabbar .rnf, .has-tabbar .rnsp { bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important; }
	.pyt-near { grid-template-columns: 1fr; }
	.pyt-near__a.is-next { grid-column: auto; }
	.pyt-cover { height: 130px; }
	.pyt-author { padding: 18px; }
	.author-header { gap: 16px; }
	.author-header__avatar .pyt-ring { --s: 76px !important; }
	.author-header__username { margin-bottom: 10px; }
	.author-header__registered { gap: 4px 16px; font-size: 14px; }
	.author-header__actions { margin-top: 18px; gap: 10px; }
	.author-header__actions .pyt-btn, .author-header__actions > a, .author-header__actions > button { min-height: 44px; padding-left: 10px; padding-right: 10px; }
}
@media (max-width: 600px) { .admin-bar .pyt-top { top: 0; } }
@media (max-width: 520px) {
	body { font-size: 15px; }
	.pyt-card__title { font-size: 19px; }
	.pyt-top__user .pyt-btn span { display: none; }
	.pyt-top__user .pyt-btn { padding: 10px; }
	.pyt-meta { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}
