/*
Theme Name: Psy Today Theme
Theme URI: https://psy-today.com/
Author: Иван Звягин
Description: Тема для психологического сайта.
Version: 1.0
*/

:root {
    --bg: #f7f9fc;
    --surface: #f2f5fb;
    --card: #fff;
    --text: #0f1a24;
    --muted: #51606f;
    --line: #e5ecf3;
    --primary: #0b70d0;
    --accent: #b26b00;
    --ring: rgba(11, 112, 208, 0.14);
    --shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    --border: rgba(0, 0, 0, 0.08);
    --muted-fg: rgba(0, 0, 0, 0.72);
    --radius: 16px;
    --radius-sm: 12px;
    --gap: clamp(12px, 1.4vw, 18px);
    --container: min(1200px, 92vw);
    --header-h: 64px;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --tpl-font-system: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --tpl-font-size-small: 13px;
    --tpl-font-size: 16px;
    --tpl-font-size-medium: 18px;
    --tpl-font-size-large: 32px;
    --tpl-font-size-extra-large: 42px;
    --tpl-accent-white: var(--card);
    --tpl-dark-900: var(--text);
    --tpl-dark-800: var(--text);
    --tpl-dark-700: color-mix(in oklab, var(--text) 92%, transparent);
    --tpl-dark-600: var(--muted);
    --tpl-dark-500: var(--muted);
    --tpl-dark-400: var(--muted);
    --tpl-dark-300: var(--line);
    --tpl-dark-200: var(--line);
    --tpl-dark-100: var(--surface);
    --tpl-accent-blue: var(--primary);
    --tpl-accent-blue-dark: color-mix(in oklab, var(--primary) 72%, #000);
    --tpl-accent-blue-light: color-mix(in oklab, var(--primary) 16%, var(--card));
    --tpl-accent-red: #d44c4c;
    --tpl-accent-green: #4cd46a;
    --tpl-accent-yellow: #e59010;
    --tpl-border-line-100: 1px solid var(--line);
    --tpl-border-line: 1px solid var(--line);
    --tpl-panel-shadow: var(--shadow);
    --tpl-font-text-r1: normal 400 var(--tpl-font-size)/1.6 var(--tpl-font-system);
    --tpl-font-text-m1: normal 500 var(--tpl-font-size)/1.6 var(--tpl-font-system);
    --tpl-font-text-sb1: normal 600 var(--tpl-font-size)/1.6 var(--tpl-font-system);
    --tpl-font-text-r2: normal 400 var(--tpl-font-size-medium)/1.65 var(--tpl-font-system);
    --tpl-font-text-m2: normal 500 var(--tpl-font-size-medium)/1.5 var(--tpl-font-system);
    --tpl-font-text-sb2: normal 600 var(--tpl-font-size-medium)/1.5 var(--tpl-font-system);
    --tpl-font-header-2: normal 700 var(--tpl-font-size-large)/1.25 var(--tpl-font-system);
    --tpl-spacing-s: 8px;
    --tpl-spacing-m: 12px;
    --tpl-spacing-l: 16px;
    --tpl-spacing-xl: 24px;
    --tpl-spacing-2xl: 40px;
    --tpl-ovelay: rgba(0, 0, 0, 0.35);
    color-scheme: light;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Noto Sans", "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
    background: radial-gradient(1000px 500px at 0% -10%, rgba(11, 112, 208, 0.08), transparent 60%), radial-gradient(800px 400px at 110% 0%, rgba(178, 107, 0, 0.1), transparent 60%), var(--bg);
    background-repeat: no-repeat, no-repeat, no-repeat;
    background-size: 1000px 500px, 800px 400px, auto;
    background-position: 0% -10%, 110% 0%, 0 0;
    color: var(--text);
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: var(--container);
    margin-inline: auto;
}

main {
    padding-top: calc(var(--header-h) + var(--safe-top));
}

section {
    padding: calc(var(--gap) + 10px) 0;
    border-top: 1px solid var(--line);
}

h1,
h2 {
    margin: 0 0 10px;
    line-height: 1.12;
}

h2 {
    font-size: clamp(22px, 2.2vw, 28px);
}

.sub {
    color: var(--muted);
    margin: 0 0 14px;
}

.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 1px, 1px);
    white-space: nowrap;
    border: 0;
}

.hidden {
    display: none !important;
}

.freeze {
    overflow: hidden !important;
}

.only-desktop {
    display: inline;
}

@media (max-width:720px) {
    .only-desktop {
        display: none !important;
    }
}

input:not([type=checkbox]):not([type=radio]),
textarea,
select {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.4;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input::placeholder,
textarea::placeholder {
    color: var(--muted);
    opacity: 0.8;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--ring);
    outline: none;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg fill='none' stroke='%2351606f' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 42px;
    cursor: pointer;
}

select option {
    background: var(--surface);
    color: var(--text);
}

select optgroup {
    background: var(--surface);
    color: var(--muted);
    font-weight: 600;
}

input[type=checkbox],
input[type=radio] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--line);
    border-radius: 6px;
    background: var(--card);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

input[type=radio] {
    border-radius: 50%;
}

input[type=checkbox]:hover,
input[type=radio]:hover {
    border-color: var(--primary);
}

input[type=checkbox]:checked,
input[type=radio]:checked {
    border-color: var(--primary);
    background: var(--primary);
}

input[type=checkbox]:checked::after {
    content: "";
    width: 5px;
    height: 9px;
    border: solid var(--bg);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    position: absolute;
}

input[type=radio]:checked::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bg);
    position: absolute;
}

button,
input[type=button] {
    background: var(--primary);
    color: var(--bg);
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.1s ease, color 0.25s ease;
    box-shadow: var(--shadow);
}

button:hover,
input[type=button]:hover {
    background: color-mix(in srgb, var(--primary) 85%, black 15%);
}

button:active {
    transform: scale(0.97);
}

input:disabled,
select:disabled,
textarea:disabled,
button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-hint {
    font-size: 0.9rem;
    color: var(--muted);
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

header {
    position: sticky;
    top: 0;
    z-index: 2500;
    backdrop-filter: blur(10px);
    background: color-mix(in oklab, var(--bg) 78%, transparent);
    border-bottom: 1px solid var(--line);
}

.nav {
    height: var(--header-h);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}

.brand {
    display: inline-grid;
    grid-auto-flow: column;
    gap: 10px;
    align-items: center;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.logo {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 0 0 6px var(--ring);
}

.cta {
    display: flex;
    gap: 10px;
    justify-self: end;
    align-items: center;
}

@media (max-width:720px) {
    .cta {
        min-width: 0;
    }
}

.auth-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 8px;
}

.auth-inline .auth-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-weight: 600;
}

.auth-inline .auth-link:hover,
.auth-inline .auth-link:focus-visible {
    color: var(--text);
}

.sep {
    color: var(--line);
}

.avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    display: inline-block;
    vertical-align: middle;
}

.avatar-fallback {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--card);
    box-shadow: 0 0 0 4px var(--ring);
}

.burger {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--card);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.burger span,
.burger::before,
.burger::after {
    content: "";
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    color: var(--text);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.burger::before {
    transform: translateY(-6px);
}

.burger::after {
    transform: translateY(6px);
}

@media (max-width:767.98px) {
    .burger {
        display: flex;
    }
}

.burger[aria-expanded="true"] span {
    opacity: 0;
}

.burger[aria-expanded="true"]::before {
    transform: rotate(45deg);
}

.burger[aria-expanded="true"]::after {
    transform: rotate(-45deg);
}

.nav-panel {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-h);
    bottom: 0;
    z-index: 3000;
    height: calc(100dvh - var(--header-h));
    min-height: calc(100dvh - var(--header-h));
    overflow: auto;
    padding: 12px min(24px, 4vw) calc(24px + var(--safe-bottom));
    background: linear-gradient(180deg, color-mix(in oklab, var(--bg) 92%, #000 8%), color-mix(in oklab, var(--bg) 96%, #000 4%));
    backdrop-filter: blur(6px);
    border-top: 1px solid var(--line);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.nav-panel.open {
    opacity: 1;
    pointer-events: auto;
}

body.no-scroll {
    overflow: hidden;
    padding-right: var(--scrollbar-w, 0px);
}

@supports selector(:has(*)) {
    :root {
        --scrollbar-w: 0px;
    }
}

.nav-panel .menu-col {
    display: grid;
    gap: 8px;
}

.nav-panel a {
    display: block;
    padding: 14px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--card);
    font-weight: 600;
    color: var(--text);
}

.nav-panel .uMenuRoot {
    display: grid;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-panel .uMenuRoot .uMenuItemA {
    border-color: color-mix(in oklab, var(--primary) 60%, var(--line));
    box-shadow: 0 0 0 6px var(--ring);
}

.panel-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
}

.nav-quick {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.user-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.user-box-avatar img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.user-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-ghost {
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text);
    padding: 8px 12px;
    border-radius: 10px;
}

.header-search-form {
    display: flex;
    gap: 8px;
}

.header-search-input {
    flex: 1;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg);
    color: var(--text);
    outline: none;
}

.header-search-input:focus {
    border-color: color-mix(in oklab, var(--primary) 60%, var(--line));
    box-shadow: 0 0 0 6px var(--ring);
}

.btn {
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--text);
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 600;
    line-height: 1;
}

.btn:hover,
.btn:focus-visible {
    border-color: color-mix(in oklab, var(--primary) 50%, var(--line));
    box-shadow: 0 0 0 6px var(--ring);
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), color-mix(in oklab, var(--primary) 65%, #fff));
    border: none;
    color: #fff;
    font-weight: 700;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    transform: translateY(-1px);
}

.support-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.12s, box-shadow 0.12s, border-color 0.12s;
}

.support-btn svg {
    flex: 0 0 18px;
}

.support-btn:hover,
.support-btn:focus-visible {
    border-color: color-mix(in oklab, var(--primary) 60%, var(--line));
    box-shadow: 0 0 0 6px var(--ring);
}

.forum-btn {
    padding: 10px 15px;
    background: #4a76a8;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 10px 0;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.forum-btn:hover {
    background: #3a5f8a;
}

.com-btn {
    padding: 10px 15px;
    background: #d4a017;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 10px 0;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.com-btn:hover {
    background: #b38a14;
}

.grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 14px;
    min-width: 0;
}

.grid>.card {
    grid-column: span 4;
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 220px;
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.card:hover,
.card:focus-within {
    box-shadow: 0 0 0 6px var(--ring);
    border-color: color-mix(in oklab, var(--primary) 55%, var(--line));
    transform: translateY(-1px);
}

.card-img {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, color-mix(in oklab, var(--primary) 28%, var(--card)), color-mix(in oklab, var(--accent) 22%, var(--card)));
    border-radius: var(--radius);
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.card .card-img[style*="background-image"] {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.card-body {
    padding: 14px;
    display: grid;
    gap: 8px;
}

.card-title {
    font-weight: 700;
    line-height: 1.24;
}

@media (max-width:1060px) {
    .grid>.card {
        grid-column: span 6;
    }
}

@media (max-width:640px) {
    .grid>.card {
        grid-column: span 12;
    }
}

.meta {
    display: flex;
    gap: 10px;
    align-items: center;
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
}

.meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
}

.meta .meta-item a {
    color: inherit;
}

.meta .meta-item a:hover,
.meta .meta-item a:focus-visible {
    color: var(--text);
}

.svg-icon {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.chip {
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--muted);
    background: color-mix(in oklab, var(--card) 85%, transparent);
}

.chip-link {
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--muted);
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 600;
}

.chip-link:hover,
.chip-link:focus-visible {
    color: var(--text);
    border-color: color-mix(in oklab, var(--primary) 60%, var(--line));
    box-shadow: 0 0 0 6px var(--ring);
    outline: none;
}

.topics-strip {
    display: flex;
    gap: 10px;
    overflow: auto;
    padding: 8px 2px 2px;
    scroll-snap-type: x proximity;
}

.topics-strip .chip {
    scroll-snap-align: start;
}

.sidebar-block {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.sidebar-block .inner {
    padding: 16px;
}

.sidebar-block-title {
    margin-bottom: 12px;
    font-weight: 800;
}

.sidebar-search-content {
    position: relative;
}

.searchForm .queryField {
    width: 100%;
    padding: 12px 40px 12px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg);
    color: var(--text);
    outline: none;
}

.searchForm .searchSbmFl,
.search-form-icon {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 20px;
    height: 20px;
    appearance: none;
    background: transparent;
    border: 0;
    padding: 0;
    font-size: 0;
}

.hero {
    padding: 34px 0 18px;
    display: grid;
    grid-template-columns: 8fr 4fr;
    gap: 20px;
    align-items: start;
    overflow-x: clip;
    min-width: 0;
}

.hero h1 {
    font-size: clamp(26px, 3.6vw, 42px);
    margin: 0 0 10px;
    font-weight: 700;
}

.hero p {
    font-size: clamp(16px, 1.6vw, 18px);
    color: var(--muted);
    margin: 0 0 14px;
}

.hero .actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hero>* {
    min-width: 0;
}

.hero .block,
.hero .sidebar {
    min-width: 0;
    overflow-x: clip;
}

.hero :where(.grid) {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    min-width: 0;
}

@media (max-width:900px) {
    .hero {
        grid-template-columns: 1fr;
    }
}

.sidebar {
    position: sticky;
    top: calc(var(--header-h) + 16px);
    align-self: start;
}

@media (max-width:900px) {
    .sidebar {
        position: static;
    }
}

.sidebar .grid {
    grid-template-columns: 1fr;
    gap: 12px;
    min-width: 0;
    overflow-x: clip;
}

.sidebar .grid .card {
    grid-column: 1/-1;
    min-width: 0;
}

.sidebar .grid .card .card-img,
.sidebar .grid .card .card-body {
    min-width: 0;
}

.newsletter {
    background: linear-gradient(160deg, color-mix(in oklab, var(--primary) 12%, var(--card)), var(--card));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 18px;
}

@media (max-width:900px) {
    .newsletter {
        grid-template-columns: 1fr;
    }
}

.input {
    display: flex;
    gap: 8px;
}

.input input {
    flex: 1;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg);
    color: var(--text);
    outline: none;
    min-width: 0;
}

.input input:focus {
    border-color: color-mix(in oklab, var(--primary) 60%, var(--line));
    box-shadow: 0 0 0 6px var(--ring);
}

.quote-block {
    width: 100%;
    max-width: var(--container);
    min-height: 260px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
    margin: 0 auto;
    padding: 40px 20px;
}

.quote-content {
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    padding: 24px 28px;
    border-radius: 12px;
    max-width: 80%;
}

.quote-text {
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 500;
    font-style: italic;
    margin-bottom: 10px;
    line-height: 1.5;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}

.quote-author {
    font-size: clamp(13px, 1.4vw, 15px);
    font-weight: 700;
    letter-spacing: 0.3px;
    opacity: 0.9;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

@media (max-width:720px) {
    .quote-block {
        padding: 30px 16px;
        min-height: 220px;
    }

    .quote-content {
        max-width: 90%;
        padding: 20px 22px;
    }

    .quote-text {
        font-size: 17px;
    }

    .quote-author {
        font-size: 13px;
    }
}

.entry-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px;
    margin: 14px 0;
    color: var(--text);
}

.entry-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.entry-title {
    margin: 0;
}

.entry-title-link {
    color: inherit;
    font-weight: 800;
    line-height: 1.28;
    text-decoration: none;
    border-bottom: 2px solid transparent;
}

.entry-title-link:hover,
.entry-title-link:focus-visible {
    border-bottom-color: color-mix(in oklab, var(--primary) 65%, #fff);
}

.entry-card-main {
    margin-bottom: 10px;
}

.entry-card-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    font-size: 0.95rem;
    color: var(--muted);
    border-top: 1px solid var(--line);
    padding-top: 10px;
    margin-top: 10px;
}

.entry-detail {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.entry-detail .entry-detail-link {
    color: inherit;
    text-decoration: none;
}

.entry-detail .entry-detail-link:hover {
    text-decoration: underline;
}

.entry-detail-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
    opacity: 0.85;
}

.entry-card .entry-message p {
    margin: 0.55rem 0;
    line-height: 1.65;
}

.entry-card .entry-message p:empty {
    display: none;
}

.entry-card .entry-message :where(h1, h2, h3) {
    margin: 0 0 0.5rem;
}

.entry-card-aphorism {
    background: linear-gradient(180deg, color-mix(in oklab, var(--card) 92%, transparent), var(--card));
    border: 1px solid var(--line);
}

.aphorism-quote {
    font-size: clamp(18px, 1.8vw, 20px);
    font-style: italic;
    font-weight: 600;
    color: var(--text);
}

.aphorism-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    color: var(--muted);
    font-weight: 600;
}

.aphorism-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--line);
    background: var(--surface);
}

.aphorism-by {
    line-height: 1.3;
}

.aphorism-src {
    opacity: 0.85;
}

.entry-card-encyclopedia {
    background: var(--card);
    border: 1px solid var(--line);
}

.entry-card-encyclopedia .entry-title {
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
}

.def-box {
    background: color-mix(in oklab, var(--card) 88%, transparent);
    border: 1px solid var(--line);
    border-left: 4px solid var(--primary);
    border-radius: 12px;
    padding: 12px 14px;
    margin: 6px 0 10px;
}

.def-label {
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
}

.def-text {
    color: var(--text);
}

.entry-card-conference {
    background: linear-gradient(160deg, color-mix(in oklab, var(--primary) 10%, var(--card)), var(--card));
    border: 1px solid var(--line);
    padding: 14px;
}

.entry-card-conference .entry-message {
    line-height: 1.55;
}

.entry-card-conference .entry-message p {
    margin: 0.4rem 0;
}

.entry-card-conference .entry-message p.lead {
    margin: 0.3rem 0 0.6rem;
}

.entry-card-conference :where(ul, ol) {
    margin: 0.45rem 0 0.6rem 1.05rem;
}

.entry-card-conference li {
    margin: 0.25rem 0;
}

.kv {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 0.25rem 10px;
    margin-top: 0.4rem;
}

.kv .k {
    color: var(--muted);
    font-weight: 700;
    white-space: nowrap;
}

.kv .v {
    color: var(--text);
}

.entry-card-conference .entry-card-footer {
    margin-top: 8px;
    padding-top: 8px;
}

.timeline-item {
    background: var(--card);
    border: 1px solid var(--line);
    border-left: 4px solid var(--primary);
    border-radius: 14px;
    padding: 12px 14px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 6px;
}

.timeline-date {
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
}

.timeline-title {
    margin: 0.1rem 0 0.4rem;
    font-weight: 800;
    line-height: 1.28;
}

.timeline-description {
    color: var(--muted);
    line-height: 1.6;
}

.timeline-content {
    color: var(--text);
}

.timeline-content p {
    margin: 0.6rem 0;
}

.timeline-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

.timeline-link:hover {
    text-decoration: underline;
}

.herogb {
    text-align: center;
    padding: 40px 0 24px;
    margin: 0 0 20px;
    position: relative;
}

.hero-titlegb {
    font-size: clamp(28px, 4.5vw, 40px);
    font-weight: 800;
    margin: 0 0 12px;
    background: linear-gradient(90deg, var(--primary), color-mix(in oklab, var(--primary) 80%, #c026d3));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
}

.hero-descriptiongb {
    font-size: 1.06rem;
    color: var(--muted);
    max-width: 780px;
    margin: 0 auto;
}

.entry-view {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px;
}

.entry-head {
    display: grid;
    gap: 10px;
    margin-bottom: 6px;
}

.entry-moder {
    justify-self: end;
}

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    color: var(--muted);
    font-weight: 600;
}

.entry-cover {
    margin: 8px 0 10px;
    border-radius: 14px;
    overflow: hidden;
    background: color-mix(in oklab, var(--card) 85%, transparent);
}

.entry-cover img {
    width: 100%;
    height: clamp(220px, 28vw, 360px);
    object-fit: cover;
    display: block;
}

.entry-content {
    color: var(--text);
    font-size: 1.02rem;
    line-height: 1.7;
}

.entry-content p {
    margin: 0.6rem 0;
}

.entry-content :where(h2, h3) {
    margin: 1.2rem 0 0.6rem;
    font-weight: 800;
}

.entry-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    padding-top: 8px;
    margin-top: 10px;
}

.tags-block .tags-list a {
    color: var(--primary);
    text-decoration: none;
}

.tags-block .tags-list a:hover {
    text-decoration: underline;
}

.entry-rating {
    font-weight: 600;
}

.aphorism {
    display: grid;
    gap: 10px;
    text-align: center;
    padding: 10px 6px;
}

.aphorism-text {
    font-size: clamp(18px, 1.9vw, 20px);
    font-style: italic;
}

.aphorism-author {
    font-weight: 700;
}

.aphorism-source {
    margin-top: 4px;
    color: var(--muted);
    font-weight: 600;
}

.term-body {
    margin-top: 6px;
}

.lead {
    color: var(--text);
    margin: 0.3rem 0 0.6rem;
}

.bullet-list {
    margin: 0.45rem 0 0.6rem 1.05rem;
}

.bullet-list li {
    margin: 0.28rem 0;
}

.breadcrumbs-wrapper {
    font-size: 0.96rem;
    color: var(--muted);
    padding: 8px 0 0;
    max-width: var(--container);
    margin-left: auto;
    margin-right: auto;
}

.breadcrumbs a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.u-neighbor-link-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
    max-width: var(--container);
    margin-left: auto;
    margin-right: auto;
}

.u-neighbor-link-spacer {
    flex: 1 1 auto;
}

.add-link-wrapper {
    color: var(--muted);
    font-weight: 600;
}

.add-link {
    color: var(--primary);
    text-decoration: none;
}

.add-link:hover {
    text-decoration: underline;
}

.comments-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 14px;
    margin-top: 14px;
}

.comments-title {
    margin: 0 0 10px;
    font-weight: 800;
}

.comments-pages {
    margin-top: 10px;
}

.comments-note a {
    color: var(--primary);
    text-decoration: none;
}

.comments-note a:hover {
    text-decoration: underline;
}

.eBlock,
.eMessage {
    color: var(--text);
    font-family: 'Inter', 'Roboto', -apple-system, sans-serif;
    font-size: clamp(18px, 1.2rem, 21px);
    line-height: 1.75;
    letter-spacing: -0.011em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.eBlock {
    padding: 0 0.5rem 0rem;
    max-width: var(--container);
    margin-left: auto;
    margin-right: auto;
}

.eMessage {
    max-width: var(--container);
    margin-left: auto;
    margin-right: auto;
}

.eMessage>*:first-child {
    margin-top: 0 !important;
}

.eMessage>*:last-child {
    margin-bottom: 0 !important;
}

.eMessage :where(h1, h2, h3, h4) {
    font-weight: 800;
    line-height: 1.25;
    color: var(--text);
    scroll-margin-top: calc(var(--header-h, 60px) + 20px);
    margin: 2rem 0 1rem;
}

.eMessage h1 {
    font-size: clamp(1.8rem, 2.5vw, 2.4rem);
    letter-spacing: -0.02em;
}

.eMessage h2 {
    font-size: clamp(1.5rem, 2.2vw, 1.9rem);
    border-left: 5px solid var(--primary);
    padding-left: 16px;
    margin-left: -4px;
}

.eMessage h3 {
    font-size: clamp(1.25rem, 1.8vw, 1.5rem);
}

.eMessage h4 {
    font-size: clamp(1.1rem, 1.4vw, 1.2rem);
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.eMessage>p:first-of-type {
    font-size: 1.15em;
    line-height: 1.65;
    color: color-mix(in oklab, var(--text) 90%, #000);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.eMessage p {
    margin: 1.1rem 0;
}

.eMessage strong {
    font-weight: 700;
    color: var(--text);
}

.eMessage em {
    font-style: italic;
}

.eMessage a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: color-mix(in oklab, var(--primary) 30%, transparent);
    text-underline-offset: 0.15em;
    transition: all 0.2s ease;
}

.eMessage a:hover {
    text-decoration-color: var(--primary);
    text-decoration-thickness: 2px;
}

.eMessage :where(ul, ol) {
    margin: 1.2rem 0 1.2rem 1.4rem;
}

.eMessage li {
    margin: 0.5rem 0;
    padding-left: 0.2rem;
}

.eMessage li::marker {
    color: color-mix(in oklab, var(--primary) 75%, #000);
    font-weight: bold;
}

.eMessage :where(dl) {
    display: grid;
    grid-template-columns: minmax(130px, 240px) 1fr;
    gap: 0.6rem 1.2rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: color-mix(in oklab, var(--card) 60%, transparent);
    border-radius: 10px;
}

.eMessage dt {
    font-weight: 700;
    color: var(--text);
}

.eMessage dd {
    margin: 0;
    color: var(--muted);
}

.eMessage blockquote {
    margin: 1.8rem 0;
    padding: 1.2rem 1.6rem;
    border-left: 4px solid var(--primary);
    border-radius: 0 12px 12px 0;
    background: color-mix(in oklab, var(--primary) 4%, var(--card));
    color: var(--text);
    font-style: italic;
}

.eMessage hr {
    border: 0;
    border-top: 2px solid var(--line);
    margin: 2rem 0;
    opacity: 0.5;
}

.eMessage :where(img, video, iframe) {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 8px 24px color-mix(in oklab, #000 10%, transparent);
}

.eMessage figure {
    margin: 1.8rem 0;
    text-align: center;
}

.eMessage figure>img {
    display: block;
    margin-inline: auto;
}

.eMessage figcaption {
    font-size: 0.9rem;
    color: var(--muted);
    margin-top: 0.7rem;
    font-style: italic;
}

.eMessage .table-wrap {
    overflow: auto;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    margin: 1.5rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.eMessage :where(table) {
    width: 100%;
    border-collapse: collapse;
}

.eMessage :where(th, td) {
    border-top: 1px solid var(--line);
    padding: 0.8rem 1rem;
    text-align: left;
}

.eMessage th {
    background: color-mix(in oklab, var(--primary) 5%, var(--card));
    font-weight: 700;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.eMessage tr:hover td {
    background: color-mix(in oklab, var(--primary) 2%, transparent);
}

.eMessage :not(pre)>code {
    background: color-mix(in oklab, var(--primary) 7%, transparent);
    color: var(--primary);
    border-radius: 6px;
    padding: 0.15rem 0.4rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.88em;
    word-break: break-word;
}

.eMessage pre {
    position: relative;
    margin: 1.5rem 0;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #1e1e1e;
    box-shadow: var(--shadow);
}

.eMessage pre code {
    display: block;
    padding: 16px 18px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.92em;
    line-height: 1.6;
    color: #e0e0e0;
}

.eMessage sup[id^="fnref"],
.eMessage sup.footnote-ref {
    font-size: 0.75em;
    font-weight: 700;
    margin-left: 2px;
}

.eMessage .footnotes {
    border-top: 2px solid var(--line);
    margin-top: 2rem;
    padding-top: 1rem;
}

.eMessage .footnotes ol {
    margin: 0.8rem 0 0 1.4rem;
    font-size: 0.9em;
    color: var(--muted);
}

.eMessage>.cover,
.eMessage>img:first-child {
    margin: 0.5rem 0 1.5rem;
    display: block;
    border-radius: 18px;
}

.key-points {
    background: linear-gradient(145deg, color-mix(in oklab, var(--card) 95%, #fff), var(--card));
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px 20px;
    margin: 1.5rem 0;
    box-shadow: var(--shadow);
}

.key-points-header {
    font-weight: 800;
    font-size: 1.1em;
    margin: 0 0 0.6rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.key-points-list {
    margin: 0.4rem 0 0 1.2rem;
}

.key-points-list li {
    margin: 0.45rem 0;
    position: relative;
    list-style-type: none;
}

.key-points-list li::before {
    content: "→";
    position: absolute;
    left: -1.4rem;
    color: var(--primary);
    font-weight: bold;
}

.entry-downloads {
    font-weight: 600;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.entry-download-item a {
    background: color-mix(in oklab, var(--primary) 10%, transparent);
    padding: 4px 12px;
    border-radius: 8px;
    transition: background 0.2s;
}

.entry-download-item a:hover {
    background: color-mix(in oklab, var(--primary) 20%, transparent);
    text-decoration: none;
}

.entry-added-date {
    font-size: 0.9rem;
    color: var(--muted);
    margin-top: 0.5rem;
    display: block;
}

.alert.alert-secondary {
    background: color-mix(in oklab, var(--card) 94%, #fff);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px;
    margin: 1.5rem 0;
}

.alert.alert-secondary p {
    margin: 0 0 0.7rem;
    font-weight: 800;
    font-size: 1.05em;
    color: var(--text);
}

.alert.alert-secondary ol {
    margin: 0;
    padding-left: 24px;
    display: grid;
    gap: 8px;
}

.alert.alert-secondary a {
    font-weight: 500;
}

.eMessage .u-muted,
.eBlock .u-muted {
    color: var(--muted);
}

.eMessage .center,
.eBlock .center {
    text-align: center;
}

.comm-form-box {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 14px;
    margin: 14px 0 22px;
    container: comm-form-box / inline-size;
}

.comm-form-unsubscribe {
    display: inline-block;
    margin: 6px 0 10px;
    font-size: 0.92rem;
    color: var(--muted);
    text-decoration: none;
}

.comm-form-unsubscribe:hover {
    color: var(--text);
    text-decoration: underline;
}

.comm-form-inner {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 12px;
    align-items: flex-start;
}

.comm-form-avatar {
    position: relative;
}

.comm-form-avatar .svg-icon {
    width: 24px;
    height: 24px;
    color: var(--muted);
}

.comm-avatar-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: block;
    object-fit: cover;
    background: var(--surface);
    border: 1px solid var(--line);
}

.comm-form-label {
    color: var(--muted);
    font: var(--tpl-font-text-m1);
    margin-bottom: 4px;
    display: block;
}

.comm-form-body {
    min-width: 0;
}

.comm-form-field {
    margin-bottom: 10px;
}

.comm-form-input {
    width: 100%;
    min-height: 42px;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg);
    color: var(--text);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    font: inherit;
}

.comm-form-input:focus {
    border-color: color-mix(in oklab, var(--primary) 60%, var(--line));
    box-shadow: 0 0 0 6px var(--ring);
}

.comm-form-message .comm-form-input {
    min-height: 160px;
    resize: vertical;
}

.comm-form-box .ucf-bb {
    float: none !important;
    width: auto !important;
    max-width: 100%;
    margin: 0 0 8px 0;
    padding: 0;
    background: transparent;
    border: 0;
}

.comm-form-box .ucf-bb table,
.comm-form-box .ucf-bb tbody,
.comm-form-box .ucf-bb tr {
    display: flex !important;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    border: 0 !important;
}

.comm-form-box .ucf-bb td {
    display: block !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.comm-form-box .ucf-bb img,
.comm-form-box .ucf-bb a,
.comm-form-box .ucf-bb span {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--card);
}

.comm-form-box .ucf-bb br {
    display: none !important;
}

.comm-form-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.comm-form-btn {
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--text);
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.1s ease, border-color 0.1s ease;
}

.comm-form-btn:hover {
    box-shadow: 0 0 0 6px var(--ring);
    border-color: color-mix(in oklab, var(--primary) 50%, var(--line));
}

.comm-form-options {
    display: flex;
    gap: 8px;
}

.comm-option {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--card);
    border: 1px solid var(--line);
    transition: box-shadow 0.12s ease, border-color 0.12s ease, transform 0.12s ease;
}

.comm-option:hover {
    box-shadow: 0 0 0 6px var(--ring);
    border-color: color-mix(in oklab, var(--primary) 60%, var(--line));
}

.comm-option-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.comm-option .svg-icon {
    width: 18px;
    height: 18px;
}

.comm-option-input:checked+.svg-icon,
.comm-option-input:checked~.svg-icon {
    transform: translateY(-1px);
}

.comm-option.subscribe:has(.comm-option-input:checked) {
    border-color: color-mix(in oklab, var(--primary) 60%, var(--line));
    background: color-mix(in oklab, var(--primary) 12%, var(--card));
    box-shadow: 0 0 0 6px var(--ring);
}

.comm-option.subscribe:has(.comm-option-input:checked) .svg-icon {
    color: var(--primary);
    transform: scale(1.1);
    transition: transform 0.2s ease, color 0.2s ease;
}

.comm-card {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 12px;
    align-items: start;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    padding: 12px 14px;
    margin: 14px 0;
}

.comm-card-avatar {
    grid-row: 1/span 2;
}

.comm-card-avatar .svg-icon {
    width: 24px;
    height: 24px;
    color: var(--muted);
}

.comm-card .comm-avatar-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: block;
    object-fit: cover;
    background: var(--surface);
    border: 1px solid var(--line);
}

.comm-card-header {
    grid-column: 2/-1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 2px;
}

.comm-card-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
}

.comm-card-header-left b {
    font-weight: 800;
}

.comm-card-header-left a {
    color: var(--text);
    text-decoration: none;
}

.comm-card-header-left a:hover {
    text-decoration: underline;
}

.comm-info {
    color: var(--muted);
    font: var(--tpl-font-text-m1);
}

.comm-card-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comm-rates {
    display: flex;
    align-items: center;
    gap: 8px;
}

.u-rate-btn {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--card);
    border: 1px solid var(--line);
    transition: box-shadow 0.12s ease, border-color 0.12s ease, transform 0.12s ease;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

.u-rate-btn:hover {
    box-shadow: 0 0 0 6px var(--ring);
    border-color: color-mix(in oklab, var(--primary) 60%, var(--line));
}

.u-rate-btn .svg-icon {
    width: 18px;
    height: 18px;
}

.highlight-green .svg-icon {
    color: #17a34a;
}

.highlight-red .svg-icon {
    color: #d33;
}

.u-rate-wrapper {
    min-width: 2.2ch;
    text-align: center;
    font-weight: 700;
    color: var(--text);
}

.comm-moder-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
}

.comm-card-body {
    grid-column: 2/-1;
}

.comm-message {
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--text);
}

.comm-message p {
    margin: 0.8rem 0;
}

.comm-message img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.comm-message blockquote {
    margin: 10px 0;
    padding: 10px 12px;
    background: color-mix(in oklab, var(--card) 85%, transparent);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
}

.comm-answer {
    margin-top: 10px;
    background: linear-gradient(180deg, color-mix(in oklab, var(--primary) 10%, var(--card)), var(--card));
    border: 1px solid var(--line);
    border-left: 4px solid var(--primary);
    border-radius: 10px;
    padding: 10px 12px;
    color: var(--text);
    font-size: 0.98rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.comm-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.comm-answer-link {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 10px;
    background: var(--card);
    border: 1px solid var(--line);
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    transition: box-shadow 0.12s ease, border-color 0.12s ease, transform 0.12s ease;
}

.comm-answer-link:hover {
    background: color-mix(in oklab, var(--primary) 8%, var(--card));
    border-color: color-mix(in oklab, var(--primary) 60%, var(--line));
    box-shadow: 0 0 0 6px var(--ring);
}

.comm-to-entry a {
    color: var(--primary);
}

.highlight-red {
    margin: 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: color-mix(in oklab, #ffdddd 70%, var(--card) 30%);
    border: 1px solid #f2b9b9;
    color: #7a1c1c;
}

.auth-links {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.auth-links-label {
    font-weight: 700;
    color: var(--text);
}

.form-error {
    margin-bottom: 8px;
}

.form-error .commError:empty {
    display: none;
}

.form-error .commError:not(:empty) {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    background: color-mix(in oklab, #ffdddd 70%, var(--card) 30%);
    border: 1px solid #f2b9b9;
    color: #7a1c1c;
}

.gb-form {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 16px;
    margin: 18px 0 28px;
}

.gb-form .commFl,
.form-input,
.gb-form input[type="text"],
.gb-form input[type="email"],
.gb-form input[type="url"],
.form-textarea,
.gb-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg);
    color: var(--text);
    outline: none;
    font: inherit;
}

.gb-form .commFl:focus,
.gb-form textarea:focus {
    border-color: color-mix(in oklab, var(--primary) 60%, var(--line));
    box-shadow: 0 0 0 6px var(--ring);
}

.form-textarea {
    min-height: 160px;
    resize: vertical;
}

.csTop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0 12px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 16px;
}

#allEntries {
    display: grid;
    gap: 14px;
}

.entry-answer-block {
    margin-top: 12px;
    padding: 12px;
    background: linear-gradient(180deg, color-mix(in oklab, var(--primary) 10%, var(--card)), var(--card));
    border: 1px solid var(--line);
    border-left: 4px solid var(--primary);
    border-radius: 12px;
}

.answer-title {
    margin: 0 0 8px;
    font-weight: 800;
}

.answer-content {
}

.library-section .list-vert {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.library-section .book-item {
    grid-column: auto;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.library-section .book-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 0 6px var(--ring);
    border-color: color-mix(in oklab, var(--primary) 55%, var(--line));
}

.library-section .book-cover {
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, color-mix(in oklab, var(--primary) 22%, var(--card)), color-mix(in oklab, var(--accent) 18%, var(--card)));
}

.library-section .book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.library-section .book-body {
    padding: 12px;
    display: grid;
    gap: 6px;
}

.library-section .book-title {
    font-weight: 700;
    line-height: 1.25;
}

.library-section .book-meta {
    color: var(--muted);
    font-size: 12px;
}

.events-list {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 14px;
}

.event-item {
    grid-column: span 6;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 12px;
    padding: 12px;
    align-items: center;
}

.event-date {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--primary), color-mix(in oklab, var(--primary) 65%, #fff));
    color: #fff;
    font-weight: 700;
}

.event-body {
    display: grid;
    gap: 4px;
}

.event-title {
    font-weight: 700;
}

.event-meta {
    color: var(--muted);
    font-size: 12px;
}

@media (max-width:1060px) {
    .event-item {
        grid-column: span 12;
    }
}

.qgrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 14px;
    align-items: start;
}

.qotd-informer,
.poll-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px;
}

.qotd-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qotd-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-grid;
    place-items: center;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), color-mix(in oklab, var(--primary) 65%, #fff));
    color: #fff;
}

.qotd-title {
    font-weight: 700;
}

.qotd-informer .informer-content {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.qotd-informer .question-text {
    font-weight: 600;
    line-height: 1.35;
}

.qotd-informer .replies-count {
    color: var(--muted);
    font-weight: 600;
    margin-left: 6px;
}

.qotd-informer .reply-button {
    border: 1px solid var(--line);
    background: var(--surface);
    padding: 10px 12px;
    border-radius: 10px;
    font-weight: 700;
}

.qotd-informer .reply-button:hover {
    border-color: color-mix(in oklab, var(--primary) 60%, var(--line));
    box-shadow: 0 0 0 6px var(--ring);
}

.qotd-link {
    display: inline-block;
    color: var(--muted);
}

.qotd-link:hover {
    color: var(--text);
}

.poll-card h3 {
    margin: 0 0 10px;
    font-weight: 700;
}

.poll-body {
    border-radius: 12px;
    background: color-mix(in oklab, var(--card) 85%, transparent);
    padding: 10px;
}

.poll-body :where(form, div) {
    color: var(--text);
}

@media (max-width:1200px) {
    .library-section .list-vert {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width:960px) {
    .library-section .list-vert {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width:720px) {
    .library-section .list-vert {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width:480px) {
    .library-section .list-vert {
        grid-template-columns: 1fr;
    }
}

#pagesBlock1,
#pagesBlock2,
.pagesBlock1,
.pagesBlock2,
.pagesBlockuz,
.pagesBlockuz1,
.pagesBlockuz2,
.forum-pages,
.forumMemSwch {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    justify-content: center;
    font-weight: 600;
}

.swchItem,
.swchItem1,
.swchItemA,
.swchItemA1,
.switchNext,
.switchBack,
.switchDigit,
.switchActive,
.pgPrev,
.pgNext,
.pgSwch,
.pgSwchA {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    line-height: 2.4;
    padding: 0 10px;
    border-radius: 10px;
    color: var(--muted);
    background: var(--card);
    border: 1px solid var(--line);
    transition: transform 0.1s, box-shadow 0.12s, border-color 0.12s;
}

.swchItemA,
.swchItemA1,
.switchActive,
.pgSwchA {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), color-mix(in oklab, var(--primary) 65%, #fff));
    border-color: transparent;
}

.swchItem:hover,
.pgSwch:hover,
.switchNext:hover,
.switchBack:hover {
    border-color: color-mix(in oklab, var(--primary) 60%, var(--line));
    box-shadow: 0 0 0 6px var(--ring);
}

.switchNext::before,
.switchBack::before,
.pgPrev::before,
.pgNext::before,
.swchItem-prev::before,
.swchItem-next::before {
    content: none !important;
}

.calTable td:not(.calMonth) {
    border: 0;
    line-height: 20px;
    min-width: 34px;
    padding: 8px 2px;
    text-align: center;
    color: var(--text);
}

.calWdaySe,
.calWdaySu,
.calTable td:not(.calMdayA):nth-child(6),
.calTable td:not(.calMdayA):nth-child(7) {
    color: #d44c4c;
}

.calMdayA,
.calMdayIsA {
    background: var(--primary);
    color: #0b1320;
    border-radius: 10px;
}

.calMdayIsA .calMdayLink {
    color: #0b1320;
}

.calMonth {
    line-height: 20px;
    padding: 0 0 8px;
    position: relative;
}

.calMonthLink {
    position: absolute;
    top: 0;
    min-width: 20px;
    min-height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cal-month-link-prev {
    left: 0;
}

.cal-month-link-next {
    right: 0;
}

.cal-month-current {
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
}

.cal-month-link-prev::before,
.cal-month-link-next::before {
    content: "";
    display: block;
    width: 8px;
    height: 8px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
}

.cal-month-link-prev::before {
    transform: rotate(45deg);
}

.cal-month-link-next::before {
    transform: rotate(225deg);
}

.login-form-wrapper .login-form {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    font: var(--tpl-font-text-m1);
    padding: 16px;
    box-shadow: var(--shadow);
    width: fit-content;
    margin: 0 auto;
}

.login-form .login-form-label {
    color: var(--muted);
    padding-bottom: 8px;
}

.login-form .login-form-val {
    padding-bottom: 8px;
}

.login-form input[type="checkbox"] {
    margin-left: 0;
}

.login-form .login-form-links {
    padding-top: 8px;
}

.login-form-wrapper button.tgme_widget_login_button {
    display: flex;
    gap: 6px;
    align-items: center;
    padding: 10px 14px;
    background: linear-gradient(135deg, var(--primary), color-mix(in oklab, var(--primary) 65%, #fff));
    border: none;
    border-radius: 12px;
    color: #fff;
    font: var(--tpl-font-text-sb1);
}

.footer {
    border-top: 1px solid var(--line);
    background: color-mix(in oklab, var(--bg) 92%, transparent);
    padding: 18px 0 calc(22px + var(--safe-bottom));
    color: var(--muted);
    font-size: 14px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: center;
}

.footer-left {
    display: grid;
    gap: 8px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    padding: 4px 0;
    border-radius: 8px;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--text);
    outline: none;
    box-shadow: 0 0 0 6px var(--ring);
}

.copy {
    opacity: 0.9;
}

.ucoz-copy {
    opacity: 0.75;
}

.footer-right {
    justify-self: end;
}

.footer-social-list {
    display: flex;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.social-list-link {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--card);
    border: 1px solid var(--line);
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.social-list-link:hover,
.social-list-link:focus-visible {
    transform: translateY(-1px);
    border-color: color-mix(in oklab, var(--primary) 60%, var(--line));
    box-shadow: 0 0 0 6px var(--ring);
    outline: none;
}

.social-list-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
    color: var(--text);
}

@media (max-width:900px) {
    .footer-container {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .footer-right {
        justify-self: start;
    }
}

.news-grid #allEntries,
.news-grid [id^="entryID"] {
    display: contents;
}

.news-grid .card.publication {
    min-height: auto;
}

.publication .card-body {
    padding: 14px;
    display: grid;
    gap: 8px;
}

.publication .card-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, color-mix(in oklab, var(--primary) 30%, var(--card)), color-mix(in oklab, var(--accent) 25%, var(--card)));
}

.publication .card-img>picture,
.publication .card-img>img {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.publication .card-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}

.cover-link {
    display: block;
}

.title-link {
    color: inherit;
}

.title-link:hover,
.title-link:focus-visible {
    box-shadow: 0 0 0 6px var(--ring);
    border-radius: 8px;
    outline: none;
}

.news-filter-value {
    color: var(--muted);
    font-size: 12px;
}

.publication-message {
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 6px;
}

.publication-footer {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.news-grid.compact {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

.news-grid.compact .card.publication {
    display: grid;
    grid-template-columns: minmax(240px, 340px) 1fr;
    gap: 22px;
    align-items: start;
    padding: 0 0 22px 0;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-bottom: 1px solid var(--border, rgba(0, 0, 0, 0.08));
}

.news-grid.compact .card.publication:last-child {
    border-bottom-color: transparent;
}

.news-grid.compact .card.publication .card-img {
    position: relative;
    width: 100%;
    height: 220px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, color-mix(in oklab, var(--primary) 22%, var(--card)), color-mix(in oklab, var(--accent) 18%, var(--card)));
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.news-grid.compact .card.publication .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.news-grid.compact .card.publication:hover .card-img img {
    transform: scale(1.03);
}

.news-grid.compact .card.publication .publication-moder-container {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 2;
}

.news-grid.compact .card.publication .card-body {
    padding: 0;
    margin-top: 2px;
}

.news-grid.compact .card.publication .card-title {
    margin: 0 0 10px;
    font-size: clamp(1.15rem, 1.6vw, 1.35rem);
    line-height: 1.28;
    font-weight: 800;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-grid.compact .card.publication .title-link {
    text-decoration: none;
}

.news-grid.compact .card.publication .title-link:hover {
    text-decoration: underline;
}

.news-grid.compact .card.publication .publication-message {
    margin: 0 0 14px;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--muted-fg);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-grid.compact .card.publication .publication-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    font-size: 0.95rem;
    color: var(--muted-fg);
}

.news-grid.compact .card.publication .publication-footer .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.news-grid.compact .card.publication .publication-footer .svg-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    opacity: 0.75;
}

.news-grid.compact .card.publication:hover,
.news-grid.compact .card.publication:focus-within {
    border: none;
    box-shadow: none;
    transform: none;
}

.news-grid.compact .card.publication .title-link:focus-visible {
    outline: none;
    text-decoration: underline;
    box-shadow: none;
}

@media (max-width:980px) {
    .news-grid.compact .card.publication {
        grid-template-columns: minmax(220px, 280px) 1fr;
    }

    .news-grid.compact .card.publication .card-img {
        height: 200px;
    }
}

@media (max-width:720px) {
    .news-grid.compact .card.publication {
        grid-template-columns: 1fr;
        gap: 14px;
        padding-bottom: 18px;
    }

    .news-grid.compact .card.publication .card-img {
        height: 200px;
        border-radius: 14px;
    }

    .news-grid.compact .card.publication .publication-message {
        -webkit-line-clamp: 3;
    }
}

.m-item {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 16px;
    align-items: start;
    background: transparent;
    border: none;
    box-shadow: none;
}

.m-cover {
    display: block;
    width: 100%;
    height: 164px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--card);
    position: relative;
}

.m-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.25s ease;
}

.m-item:hover .m-cover img {
    transform: scale(1.02);
}

.m-cover--empty {
    background: linear-gradient(135deg, color-mix(in oklab, var(--primary) 18%, var(--card)), color-mix(in oklab, var(--accent) 14%, var(--card)));
}

.m-body {
    min-width: 0;
}

.m-title {
    margin: 0 0 8px;
    font-size: clamp(18px, 1.6vw, 20px);
    line-height: 1.3;
    font-weight: 800;
}

.m-title-link {
    color: inherit;
    text-decoration: none;
}

.m-title-link:hover {
    text-decoration: underline;
}

.m-excerpt {
    margin: 0 0 8px;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.m-attach {
    font-size: 12px;
    color: var(--muted);
}

.m-meta {
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    font-size: 12px;
    color: var(--muted);
}

.m-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.m-meta-item a {
    color: inherit;
}

.m-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.m-book {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 16px;
    align-items: start;
    background: transparent;
    border: none;
    box-shadow: none;
}

.m-book-thumb {
    display: block;
    width: 100%;
    height: 220px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--card);
    position: relative;
}

.m-book-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.25s ease;
}

.m-book:hover .m-book-thumb img {
    transform: scale(1.02);
}

.m-book-body {
    min-width: 0;
}

.m-book-title {
    margin: 0 0 8px;
    font-size: clamp(18px, 1.6vw, 20px);
    line-height: 1.3;
    font-weight: 800;
}

.m-book-title a {
    color: inherit;
    text-decoration: none;
}

.m-book-title a:hover {
    text-decoration: underline;
}

.m-book-desc {
    margin: 0 0 8px;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.m-book-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    font-size: 12px;
    color: var(--muted);
}

.m-book-meta .m-icon {
    width: 16px;
    height: 16px;
}

@media (max-width:720px) {
    .m-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .m-cover {
        height: 200px;
    }

    .m-book {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .m-book-thumb {
        height: 240px;
    }
}

.entry-screenshot-book,
.entry-screenshot,
.eText {
    max-width: var(--container);
    margin-left: auto;
    margin-right: auto;
}

.eTitle {
    font-weight: 800;
    font-size: clamp(1.8rem, 2.5vw, 2.2rem);
    line-height: 1.28;
    margin: 0.4rem 0 1.1rem;
}

.eText {
    font-size: 1.14rem;
    line-height: 1.9;
    letter-spacing: 0.005em;
    color: var(--text);
    padding: 0 0.5rem 2rem;
}

.eText p {
    margin: 1.1rem 0;
}

.eText h2,
.eText h3 {
    scroll-margin-top: calc(var(--header-h) + 18px);
    margin: 2.2rem 0 0.8rem;
    line-height: 1.35;
    font-weight: 800;
}

.eText h2 {
    font-size: clamp(1.35rem, 2.1vw, 1.75rem);
    border-left: 5px solid var(--primary);
    padding-left: 12px;
}

.eText h3 {
    font-size: clamp(1.15rem, 1.7vw, 1.35rem);
}

.entry-screenshot-book .screenshot-book-cover,
.entry-screenshot img {
    display: block;
    width: 100%;
    max-height: 520px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.12);
    margin: 0.2rem 0 1.4rem;
}

.entry-screenshot-book img,
.entry-screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.eDetails1,
.eDetails2 {
    border-top: 1px solid var(--line);
    padding: 12px 0;
    font-size: 0.98rem;
    color: var(--muted);
}

.rate-stars-wrapper {
    float: right;
    display: inline-block;
}

.eDetails2 {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    align-items: center;
}

.eDetails2 .ed-sep {
    display: none;
}

.eDetails2 .ed-title {
    font-weight: 600;
    color: var(--text);
}

.clean-modern-related {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    max-width: var(--container);
    margin-left: auto;
    margin-right: auto;
}

.clean-modern-header {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text);
}

.clean-modern-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.clean-modern-item {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 12px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid color-mix(in oklab, var(--line) 85%, transparent);
    transition: transform 0.18s ease;
}

.clean-modern-item:last-child {
    border-bottom: none;
}

.clean-modern-item:hover {
    transform: translateX(4px);
}

.clean-modern-image {
    width: 64px;
    height: 44px;
    border-radius: 8px;
    overflow: hidden;
    background: color-mix(in oklab, var(--card) 80%, transparent);
}

.clean-modern-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.clean-modern-title {
    font-size: 1rem;
    line-height: 1.45;
    color: var(--primary);
    text-decoration: none;
}

.clean-modern-item:hover .clean-modern-title {
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

@media (max-width:820px) {
    .eText {
        font-size: 1.06rem;
        line-height: 1.8;
        padding: 0 0.25rem 1.6rem;
    }

    .entry-screenshot-book .screenshot-book-cover,
    .entry-screenshot img {
        max-height: 360px;
        border-radius: 14px;
    }

    .clean-modern-item {
        grid-template-columns: 56px 1fr;
    }
}

.entry-full,
.content,
.eMessage,
.eBlock {
    container-type: inline-size;
}

.entry-full .eCover,
.entry-full .simage,
.entry-full .eMessage img {
    float: left;
    width: 260px;
    max-height: 520px;
    height: auto;
    object-fit: cover;
    margin: 0 24px 16px 0;
    border-radius: 18px;
    display: block;
}

@container (max-width:820px) {

    .entry-full .eCover,
    .entry-full .simage,
    .entry-full .eMessage img {
        float: none;
        width: 100%;
        max-height: none;
        margin: 0 0 16px;
    }
}

.entry-screenshot {
    margin: 20px 0;
    text-align: center;
}

.screenshot-link {
    display: block;
    position: relative;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.screenshot-link:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.screenshot-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

.screenshot-label {
    display: block;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 14px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.screenshot-link:hover .screenshot-label {
    opacity: 1;
}

.entry-screenshot-book {
    margin: 20px 0;
}

.screenshot-book-container {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.screenshot-book-cover {
    flex: 0 0 200px;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.screenshot-book-image {
    width: 100%;
    height: auto;
    display: block;
}

.screenshot-book-description {
    flex: 1;
}

.screenshot-book-description h3 {
    margin-top: 0;
    font-size: 24px;
    color: var(--text);
}

.screenshot-book-description p {
    font-size: 16px;
    color: var(--muted);
    line-height: 1.5;
}

.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--line);
    z-index: 9999;
}

.reading-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.2s ease-out;
}

.reading-progress-text {
    position: fixed;
    top: 10px;
    right: 20px;
    font-family: Arial, system-ui, sans-serif;
    font-size: 14px;
    color: var(--text);
    background: color-mix(in oklab, var(--card) 90%, transparent);
    padding: 2px 8px;
    border-radius: 10px;
    z-index: 10000;
    border: 1px solid var(--line);
}

.loading:after {
    content: " ...";
    animation: dots 1s steps(5, end) infinite;
}

@keyframes dots {

    0%,
    20% {
        content: " .";
    }

    40% {
        content: " ..";
    }

    60% {
        content: " ...";
    }

    80%,
    100% {
        content: " ";
    }
}

:focus-visible {
    outline: 2px solid color-mix(in oklab, var(--primary) 65%, #fff);
    outline-offset: 2px;
    border-radius: 10px;
}

@media (prefers-reduced-motion:reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

@media (max-width:1060px) {
    .news-grid .card {
        grid-column: span 6;
    }
}

@media (max-width:900px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .newsletter {
        grid-template-columns: 1fr;
    }
}

@media (max-width:820px) {
    .eMessage {
        font-size: 1.05rem;
        line-height: 1.65;
    }

    .eMessage :where(h1, h2, h3, h4) {
        margin: 1.6rem 0 0.8rem;
    }

    .eMessage>p:first-of-type {
        font-size: 1.1em;
    }
}

@media (max-width:767.98px) {
    .menu {
        display: none;
    }

    .burger {
        display: flex;
    }
}

@media (max-width:720px) {
    .hide-sm {
        display: none;
    }

    .card {
        grid-column: span 12;
    }

    .news-grid .card {
        grid-column: span 12;
    }

    .btn,
    .chip-link,
    .menu a,
    .nav-panel a {
        padding: 12px 14px;
    }

    .comm-form-inner {
        grid-template-columns: 44px 1fr;
        gap: 10px;
    }

    .comm-avatar-img {
        width: 40px;
        height: 40px;
    }

    .comm-card {
        grid-template-columns: 44px 1fr;
        gap: 10px;
    }

    .comm-card .comm-avatar-img {
        width: 40px;
        height: 40px;
    }

    .comm-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .comm-form-box .ucf-bb img,
    .comm-form-box .ucf-bb a,
    .comm-form-box .ucf-bb span {
        width: 26px;
        height: 26px;
        border-radius: 7px;
    }

    .herogb {
        padding: 28px 0 16px;
    }

    .gb-form {
        padding: 14px;
    }

    .entry-card {
        padding: 14px;
    }

    .entry-view {
        padding: 12px;
        border-radius: 14px;
    }

    .entry-cover img {
        height: 220px;
    }

    .kv {
        grid-template-columns: 1fr;
    }

    .only-desktop {
        display: none !important;
    }

    .cta {
        min-width: 0;
    }

    #pagesBlock1,
    #pagesBlock2,
    .pagesBlock1,
    .pagesBlock2,
    .pagesBlockuz,
    .pagesBlockuz1,
    .pagesBlockuz2,
    .forum-pages,
    .forumMemSwch {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        justify-content: flex-start;
        width: 100%;
    }

    section[aria-labelledby="sec-practice"] .grid {
        grid-template-columns: 1fr !important;
    }

    section[aria-labelledby="sec-practice"] .grid>.card {
        grid-column: 1/-1 !important;
    }

    section[aria-labelledby="sec-library"] .list-vert {
        display: flex !important;
        gap: 12px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }

    section[aria-labelledby="sec-library"] .list-vert>.book-item {
        flex: 0 0 80vw;
        max-width: 80vw;
        min-width: 0;
        scroll-snap-align: start;
    }

    section[aria-labelledby="sec-library"] .book-cover {
        aspect-ratio: 3/4;
    }
}

@media (max-width:640px) {
    .hide-sm {
        display: none;
    }

    .card {
        grid-column: span 12;
    }

    .news-grid .card {
        grid-column: span 12;
    }

    .eMessage :where(dl) {
        grid-template-columns: 1fr;
    }
}

html[data-theme=dark] .eMessage :where(th, td) {
    border-color: var(--line);
}

html[data-theme=dark] .eMessage :where(img, video) {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

html,
select[multiple],
.quoteMessage,
.cart-scroll-container,
.searchForumsFl,
#goods-options-list,
#transactions_cont,
#message.manFl,
.uploaderPhotosContainer,
.compare-layout .tabs,
.scrollable-table-container,
.module-search .results-layout #sFltLst .xw-mc {
    scrollbar-width: thin;
    scrollbar-color: var(--tpl-dark-300) var(--tpl-dark-100);
}

.uf-with-tooltip:hover .uf-tooltip {
    display: block;
}

.uf-tooltip {
    position: absolute;
    left: 60px;
    top: 0;
    display: none;
    z-index: 10;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 8px 10px;
}

.uf-tt-item {
    display: block;
    padding: 4px 0;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
}

.uf-tt-hr {
    display: block;
    height: 1px;
    background: var(--line);
    margin: 6px 0;
}

.uf-tt-exit {
    color: #d14;
}

.cross-source-engine {
    counter-reset: biblio-counter;
}

.biblio-node {
    display: flex !important;
    align-items: flex-start;
    gap: 15px;
    counter-increment: biblio-counter;
    padding: 10px !important;
    border-bottom: 1px solid #eee;
}

.biblio-counter::before {
    content: counter(biblio-counter);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #2c3e50;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    border-radius: 50%;
    flex-shrink: 0;
}

.biblio-author {
    font-size: 11px;
    color: #777;
    margin-top: 3px;
    line-height: 1.2;
}

.related-view-cards .related-item .card-view {
    display: block;
}

.related-view-cards .related-item .biblio-view {
    display: none;
}

.related-view-biblio .related-item.is-biblio .biblio-view {
    display: block;
}

.related-view-biblio .related-item.is-card .card-view {
    display: block;
}

.related-view-biblio .related-item.is-biblio .card-view,
.related-view-biblio .related-item.is-card .biblio-view {
    display: none;
}

.term-body a {
    border-bottom: 1px dashed #666 !important;
}

.Gterm .term {
    border-bottom: 1px dashed #666 !important;
    text-decoration: none !important;
    cursor: help !important;
    position: relative !important;
    display: inline !important;
    color: inherit !important;
}

.Gterm .term a.ency-link {
    color: inherit !important;
    text-decoration: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.Gterm .term a.ency-link:hover {
    color: #000 !important;
    text-decoration: none !important;
}

.Gterm .term:hover::after {
    content: attr(title);
    position: absolute;
    left: 50%;
    bottom: 130%;
    transform: translateX(-50%);
    background: #333 !important;
    color: #fff !important;
    padding: 12px !important;
    border-radius: 8px !important;
    width: 300px !important;
    z-index: 9999 !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3) !important;
    font-size: 13px !important;
    font-weight: normal !important;
    line-height: 1.5 !important;
    text-align: left !important;
    white-space: normal !important;
}

.Gterm .term:hover::before {
    content: "" !important;
    position: absolute;
    left: 50%;
    bottom: 110%;
    transform: translateX(-50%);
    border-width: 8px !important;
    border-style: solid !important;
    border-color: #333 transparent transparent transparent !important;
    z-index: 9999 !important;
}

.dm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--card);
    color: var(--text);
    cursor: pointer;
    transition: background .2s, color .2s
}

.dm-btn:hover {
    background: var(--surface);
    color: var(--primary)
}

.dm-btn .svg-icon-24 {
    width: 20px;
    height: 20px;
    stroke-width: 1.6;
    display: block
}

.dm-spin {
    animation: dmspin .5s linear
}

@keyframes dmspin {
    to {
        transform: rotate(180deg)
    }
}

.eMessage,
.eText {
    position: relative !important;
    transition: all 0.3s ease;
    overflow: visible !important;
}

@media screen and (min-width: 1100px) {

    .eMessage,
    .eText {
        margin-right: 350px !important;
    }
}

.note-opinion {
    --note-color: var(--primary, #f1c40f);
    --note-bg: color-mix(in oklab, var(--primary, #f1c40f) 15%, transparent);
}

.note-question {
    --note-color: #3498db;
    --note-bg: color-mix(in oklab, #3498db 15%, transparent);
}

.note-error {
    --note-color: #e74c3c;
    --note-bg: color-mix(in oklab, #e74c3c 15%, transparent);
}

.note-forum {
    --note-color: #2ecc71;
    --note-bg: color-mix(in oklab, #2ecc71 15%, transparent);
}

.note-highlight {
    background: var(--note-bg, color-mix(in oklab, var(--primary) 15%, transparent)) !important;
    border-bottom: 2px solid var(--note-color, var(--primary));
    display: inline;
    cursor: help;
    position: relative;
    transition: outline 0.3s ease;
}

.note-highlight.active-link {
    background: var(--note-color, var(--primary)) !important;
    color: var(--bg);
}

.note-count {
    font-size: 9px;
    background: var(--note-color, var(--primary));
    color: var(--bg);
    padding: 1px 4px;
    border-radius: 10px;
    margin-left: 4px;
    vertical-align: super;
    font-weight: bold;
}

.side-note {
    position: absolute;
    left: calc(100% + 40px);
    width: 280px;
    background: var(--card);
    border-left: 5px solid var(--note-color, var(--primary));
    padding: 12px;
    font-size: 13px;
    color: var(--text);
    box-shadow: var(--shadow);
    z-index: 1000;
    border-radius: 0 4px 4px 0;
    box-sizing: border-box;
    transition: top 0.3s ease, outline 0.3s ease;
}

.note-meta {
    font-size: 10px;
    color: var(--muted);
    margin-bottom: 5px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 3px;
    cursor: pointer;
}

.note-meta a {
    color: var(--accent);
    font-weight: bold;
    text-decoration: none;
}

.reply-item {
    margin-top: 8px;
    padding-left: 8px;
    border-left: 2px solid var(--line);
}

.forum-btn {
    display: block;
    margin-top: 10px;
    background: var(--accent-green, #2ecc71);
    color: var(--bg) !important;
    text-align: center;
    padding: 8px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 11px;
}

.reply-btn {
    display: inline-block;
    margin-top: 10px;
    font-size: 10px;
    color: var(--primary);
    cursor: pointer;
    font-weight: bold;
}

#note-toolbar {
    position: absolute;
    z-index: 2147483647;
    display: flex;
    background: var(--surface);
    border-radius: 10px;
    padding: 4px 8px;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    gap: 4px;
    align-items: center;
    display: none;
}

#note-toolbar::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 15px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--surface);
}

#note-toolbar button {
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    font-size: 22px;
    padding: 6px;
    transition: 0.15s;
    border-radius: 8px;
}

#note-toolbar button:hover {
    background: color-mix(in oklab, var(--muted) 20%, transparent);
    transform: scale(1.1);
}

#note-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--tpl-ovelay, rgba(0, 0, 0, 0.6));
    z-index: 1000000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.2s ease;
}

#note-modal-overlay.active {
    display: flex;
    opacity: 1;
}

#note-modal {
    background: var(--card);
    width: 95%;
    max-width: 450px;
    padding: 25px;
    border-radius: var(--radius);
    box-sizing: border-box;
    box-shadow: var(--shadow);
}

.btn-auth,
.btn-reg {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    margin: 5px;
}

.btn-auth {
    background: var(--primary);
    color: var(--bg) !important;
}

.btn-reg {
    background: var(--accent-green, #2ecc71);
    color: var(--bg) !important;
}

#note-modal h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: var(--text);
}

#note-modal textarea {
    width: 100%;
    height: 100px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    resize: none;
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
    background: var(--bg);
    color: var(--text);
}

#note-url-input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-sizing: border-box;
    margin-bottom: 10px;
    outline: none;
    background: var(--bg);
    color: var(--text);
}

.modal-btns {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 15px;
}

.modal-btns button {
    padding: 10px 22px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

.btn-send {
    background: var(--accent, #ff9800);
    color: var(--bg);
}

.btn-cancel {
    background: var(--surface);
    color: var(--muted);
}

#note-svg-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 99;
}

.note-path {
    fill: none;
    stroke-width: 1.5;
    stroke-dasharray: 4;
    opacity: 0.4;
}

@media screen and (max-width: 1099px) {

    .eMessage,
    .eText {
        margin-right: 0 !important;
    }

    .side-note {
        position: relative !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        margin: 15px 0 !important;
        display: block !important;
        box-shadow: none !important;
        border-right: 1px solid var(--line);
        border-top: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
    }
}

.comm-forum-btn {
    display: inline-block;
    margin-top: 8px;
    background: var(--accent-green, #2ecc71);
    color: var(--bg) !important;
    padding: 4px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
}

.note-footer-rates {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.note-footer-rates .comm-rates {
    display: flex;
    align-items: center;
    gap: 6px;
}

.note-footer-rates .u-rate-btn {
    text-decoration: none;
    display: flex;
    align-items: center;
    color: var(--muted);
    transition: color 0.2s;
}

.note-footer-rates .u-rate-btn:hover {
    color: var(--primary);
}

.note-footer-rates .author-stat {
    font-size: 11px;
    color: var(--muted);
    font-style: italic;
}

.note-footer-rates .author-stat b {
    color: var(--primary);
    margin-left: 3px;
}

.note-footer-rates svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.note-footer-rates .u-rate-wrapper {
    font-weight: bold;
    font-size: 12px;
    color: var(--text);
}

.uc-read-flag {
    position: relative;
    margin: 14px 0;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: color-mix(in oklab, var(--muted) 8%, transparent);
    border: 1px solid var(--line);
    line-height: 1.35;
    font-size: 14px;
}

.uc-read-flag__title {
    font-weight: 700;
    margin: 0 0 4px 0;
    font-size: 15px;
}

.uc-read-flag__meta {
    opacity: 0.85;
    margin: 0;
}

.uc-read-flag__btn {
    position: absolute;
    top: 10px;
    right: 10px;
    border: 0;
    border-radius: 10px;
    padding: 6px 10px;
    cursor: pointer;
    background: color-mix(in oklab, var(--muted) 12%, transparent);
    font-size: 13px;
}

.uc-resume-bar {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--card);
    backdrop-filter: blur(8px);
    background: color-mix(in oklab, var(--card) 96%, transparent);
    border-radius: 60px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    z-index: 9999;
    transform: translateY(120%);
    transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    font-family: var(--tpl-font-system);
}

.uc-resume-bar.is-show {
    transform: translateY(0);
}

.uc-resume-bar__text {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    flex: 1;
    white-space: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}

.uc-resume-bar__text::-webkit-scrollbar {
    display: none;
}

.uc-resume-bar__btn,
.uc-resume-bar__close {
    background: transparent;
    border: none;
    border-radius: 40px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
}

.uc-resume-bar__btn {
    background: var(--primary);
    color: var(--bg);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.uc-resume-bar__btn:hover {
    background: var(--tpl-accent-blue-dark, color-mix(in oklab, var(--primary) 85%, #000));
    transform: scale(0.98);
}

.uc-resume-bar__close {
    background: color-mix(in oklab, var(--muted) 12%, transparent);
    color: var(--text);
    border: 1px solid var(--line);
}

.uc-resume-bar__close:hover {
    background: color-mix(in oklab, var(--muted) 20%, transparent);
    transform: scale(0.98);
}

.uc-resume-mark {
    background-color: var(--accent) !important;
    transition: background 0.3s ease;
    border-radius: 8px;
}

@media (max-width: 600px) {
    .uc-resume-bar {
        border-radius: 28px;
        padding: 8px 16px;
        bottom: 12px;
        left: 12px;
        right: 12px;
        gap: 10px;
    }

    .uc-resume-bar__text {
        font-size: 12px;
        white-space: normal;
        line-height: 1.3;
    }

    .uc-resume-bar__btn,
    .uc-resume-bar__close {
        padding: 6px 14px;
        font-size: 12px;
        min-width: 70px;
    }
}

@media (max-width: 400px) {
    .uc-resume-bar {
        flex-wrap: wrap;
        justify-content: flex-start;
        border-radius: 24px;
    }

    .uc-resume-bar__text {
        width: 100%;
        margin-bottom: 6px;
    }
}

.topics-strip--mt12 {
    margin-top: 12px;
}

.grid--mt12 {
    margin-top: 12px;
}

.sidebar-label {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 12px;
    font-weight: 500;
}

.popular-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.popular-entry {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.popular-entry__img {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius);
}

.popular-entry__title {
    font-weight: 700;
    line-height: 1.3;
    font-size: 1rem;
}

.popular-entry__title a {
    color: var(--text);
    text-decoration: none;
}

.popular-entry__title a:hover {
    text-decoration: underline;
}

.popular-entry__meta {
    font-size: 12px;
    color: var(--muted);
}

.card--compact {
    min-height: auto;
}

.card-body__description {
    margin: var(--tpl-spacing-s, 8px) 0 0 0;
    color: var(--muted);
}

.tags-block {
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}

:not(.entry-page) .tags-block {
    padding-bottom: 10px;
    border-bottom: 1px solid #eaeaea;
}

.tags-label {
    flex-shrink: 0;
    padding-top: 2px;
    font-weight: 500;
    color: #555;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.tags-list a {
    display: inline-block;
    padding: 2px 5px;
    margin-right: 4px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 10px;
    line-height: 1.3;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

:not(.entry-page) .tags-list a {
    margin-top: 4px;
}

.eTag {
    background: #f8f8f8;
    color: #555;
    border: 1px solid #e1e1e1;
}

.country-tag {
    background: #f0f7ff;
    color: #1a4b8c;
    border: 1px solid #cce0ff;
}

.tags-list a:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.eTag:hover {
    background: #f0f0f0;
}

.country-tag:hover {
    background: #e6f0ff;
}

.entry-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.entry-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.entry-header {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 16px;
}

.entry-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    flex-shrink: 0;
}

.entry-user {
    flex: 1;
}

.entry-name {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
}

.user-detail-username {
    font-size: 0.85rem;
    color: var(--muted);
    margin-left: 8px;
}

.entry-date {
    margin: 4px 0 0;
    font-size: 0.8rem;
    color: var(--muted);
}

.entry-message {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 16px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    color: var(--text);
}

.entry-footer {
    margin-bottom: 16px;
}

.support-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 40px;
    padding: 8px 16px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
}

.support-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.support-btn svg {
    stroke: currentColor;
}

.entry-answer-block {
    background: var(--surface);
    border-left: 4px solid var(--primary);
    padding: 16px;
    border-radius: 12px;
    margin-top: 16px;
}

.answer-title {
    margin: 0 0 8px;
    font-weight: 800;
    color: var(--text);
}

.answer-content {
    color: var(--muted);
    line-height: 1.5;
}

.gb-form {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    margin: 24px 0;
}

.form-row {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.gb-form input[type="text"],
.gb-form input[type="email"],
.gb-form input[type="url"],
.gb-form textarea,
.gb-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
    font-size: 1rem;
}

.gb-form textarea {
    min-height: 160px;
    resize: vertical;
}

.entry-tags {
    margin: 12px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: var(--surface);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--muted);
    border: 1px solid var(--line);
}

.comments-section {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.comment-item {
    background: var(--surface);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-bottom: 12px;
}

.comment-author {
    font-weight: bold;
    margin-bottom: 4px;
}

.comment-text {
    font-size: 0.9rem;
}

.forum-link-block {
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
}

.forum-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary);
    color: white;
    padding: 6px 12px;
    border-radius: 40px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: 0.2s;
}

.forum-link:hover {
    background: color-mix(in srgb, var(--primary) 80%, black);
    transform: translateY(-1px);
}

.eBlock img,
.eMessage img,
.eText img,
.Gterm img {
    max-width: 100% !important;
    height: auto !important;
    width: auto !important;
    margin-left: auto;
    margin-right: auto;
}

/* ===== ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ ШОРТКОДОВ (если не хватает) ===== */
.news-item {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}
.news-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--muted);
    margin-top: 12px;
}
.events-list {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 14px;
}
.event-item {
    grid-column: span 6;
}
.event-date {
    width: 56px;
    height: 56px;
}
.subscribe-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px;
}


/* ===== ИСПРАВЛЕНИЯ ДЛЯ ГЛАВНОЙ СТРАНИЦЫ (GUTENBERG) ===== */
/* Убираем лишние отступы и фон у .entry-content на главной странице */
body.page .entry-content {
    background: transparent;
    padding: 0;
    margin: 0;
}

/* Обеспечиваем, чтобы блоки внутри .entry-content не наследовали лишние стили */
body.page .entry-content > * {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

/* Классы для Gutenberg-блоков, имитирующие старую вёрстку */
.wp-block-columns.hero {
    padding: 34px 0 18px;
    gap: 20px;
    align-items: start;
}
.wp-block-columns.hero > .wp-block-column:first-child {
    flex-basis: 66.66%;
}
.wp-block-columns.hero > .wp-block-column:last-child {
    flex-basis: 33.33%;
}
@media (max-width: 900px) {
    .wp-block-columns.hero {
        flex-direction: column;
    }
    .wp-block-columns.hero > .wp-block-column {
        flex-basis: 100% !important;
    }
}

/* Чипсы внутри группы */
.wp-block-group.chips-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.wp-block-group.chips-group .wp-block-paragraph {
    margin: 0;
}

/* Секции */
.wp-block-group.section-border {
    border-top: 1px solid var(--line);
    padding: 48px 0;
}
.wp-block-group.section-border:first-of-type {
    border-top: none;
    padding-top: 24px;
}

/* Сетка для публикаций */
.wp-block-group.section-border .grid {
    margin-top: 20px;
}

/* Подписка */
.wp-block-columns.newsletter-block {
    background: linear-gradient(160deg, color-mix(in oklab, var(--primary) 12%, var(--card)), var(--card));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    gap: 24px;
    margin: 0;
}
.wp-block-group.subscribe-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px;
}

/* ===== ИСПРАВЛЕНИЯ ДЛЯ ГЛАВНОЙ СТРАНИЦЫ ===== */
/* Убираем лишний фон и отступы у контейнера .entry-content на главной странице */
body.page .entry-content,
body.home .entry-content {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}
body.page .entry-content > *,
body.home .entry-content > * {
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Классы для Gutenberg-блоков, имитирующие старую вёрстку главной */
.wp-block-group.hero-section {
    padding: 34px 0 18px;
}
.wp-block-group.hero-section .wp-block-columns {
    gap: 20px;
}
.wp-block-group.chips-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.wp-block-group.section-border {
    border-top: 1px solid var(--line);
    padding: 48px 0;
}
.wp-block-group.section-border:first-of-type {
    border-top: none;
    padding-top: 24px;
}

/* Сетка для библиотеки на главной (5 колонок) */
.books-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin: 20px 0;
}
@media (max-width: 960px) {
    .books-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 640px) {
    .books-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.book-item {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.book-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.book-cover {
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, color-mix(in oklab, var(--primary) 22%, var(--card)), color-mix(in oklab, var(--accent) 18%, var(--card)));
    overflow: hidden;
}
.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.book-info {
    padding: 12px;
}
.book-title {
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.3;
}
.book-title a {
    color: var(--text);
    text-decoration: none;
}
.book-title a:hover {
    text-decoration: underline;
}