/* ══════════════════════════════════════════════════════════════════
   SINGLE POST DETAIL
══════════════════════════════════════════════════════════════════ */

.post-header {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    position: relative;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.post-hero-media {
    position: relative;
    flex: 0 0 215px;
    width: 215px;
    align-self: stretch;
    overflow: hidden;
    border-right: 1px solid var(--border-color);
}

.post-hero-img {
    flex: 0 0 215px;
    width: 215px;
    object-fit: cover;
    object-position: center top;
    align-self: stretch;
    min-height: 180px;
    max-height: 360px;
    display: block;
}

.post-hero-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    font-size: .65rem;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: .03em;
    line-height: 1.5;
    text-decoration: none;
    box-shadow: 0 1px 5px rgba(0,0,0,.28);
}

.post-hero-reading-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 9px;
    border: 1px solid rgba(15, 23, 42, .14);
    border-radius: 20px;
    background: rgba(255, 255, 255, .94);
    color: var(--text-primary);
    font-size: var(--fs-xs);
    font-weight: 700;
    line-height: 1.7;
    letter-spacing: .4px;
    white-space: nowrap;
    box-shadow: 0 1px 5px rgba(0,0,0,.18);
}

.post-hero-reading-badge strong {
    color: inherit;
}

.post-header:not(:has(.post-hero-media)) .post-header-body,
.post-header:not(:has(.post-hero-img)) .post-header-body {
    padding-left: 24px;
}

.post-header-body {
    flex: 1;
    padding: 20px 100px 20px 24px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
}

.content-favorite-form {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 3;
    margin: 0;
}

.content-favorite {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 26px;
    padding: 5px 9px;
    border: 1px solid rgba(148, 163, 184, .18);
    border-top: 0;
    border-right: 0;
    border-radius: 0 0 0 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .98) 0%, rgba(248, 250, 252, .96) 100%);
    color: var(--text-primary);
    font-size: .78rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .05);
    transition: var(--transition-fast);
}

.content-favorite:hover,
.content-favorite:focus-visible {
    border-color: rgba(13, 148, 136, .28);
    color: var(--accent-teal);
    text-decoration: none;
    outline: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(241, 245, 249, .98) 100%);
}

.content-favorite--active {
    background: linear-gradient(180deg, rgba(240, 253, 250, .98) 0%, rgba(236, 253, 245, .96) 100%);
    border-color: rgba(13, 148, 136, .22);
    color: #0f766e;
}

.content-favorite__icon {
    font-size: .92rem;
}

.content-favorite__label {
    white-space: nowrap;
}

.post-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.post-title {
    font-size: var(--fs-h1);
    font-weight: 800;
    line-height: 1.25;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: var(--fs-xs);
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
    margin-top: 0;
}

.post-meta__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1.35;
}

.post-meta__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .86rem;
    line-height: 1;
    flex-shrink: 0;
}

.post-meta__label {
    color: var(--text-muted);
    font-weight: 600;
}

.post-meta strong {
    color: var(--text-primary);
}

.post-meta__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit;
    text-decoration: none;
}

.post-meta__link:hover {
    color: var(--accent-teal);
}

.reading-time-badge {
    font-weight: 600;
}

.post-body {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 28px 32px;
    box-shadow: var(--shadow-sm);
    font-size: 1.01rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.post-body h2,
.post-body h3,
.post-body h4 {
    color: var(--text-primary);
    font-weight: 700;
    margin: 2em 0 .7em;
    line-height: 1.3;
    scroll-margin-top: calc(var(--header-h) + var(--quicklinks-h) + var(--member-bar-h, 0px) + 18px);
}

.post-body h2 {
    font-size: var(--fs-h2);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: .4em;
}

.post-body h3 {
    font-size: var(--fs-h3);
}

.post-body h4 {
    font-size: var(--fs-h4);
}

.post-body p {
    margin-bottom: 1.2em;
}

.post-body ul,
.post-body ol {
    margin: 1em 0 1.2em 1.5em;
}

.post-body li {
    margin-bottom: .4em;
}

.post-body .editorjs-block {
    margin: 1.2em 0;
}

.post-body .editorjs-block:first-child {
    margin-top: 0;
}

.post-body .editorjs-block:last-child {
    margin-bottom: 0;
}

.post-body .editorjs-block:last-child {
    margin-bottom: 0;
}

.post-body .editorjs-paragraph p,
.post-body .editorjs-quote blockquote p,
.post-body .editorjs-list__item,
.post-body .editorjs-table th,
.post-body .editorjs-table td {
    white-space: pre-wrap;
}

.post-body .editorjs-list {
    margin: 1em 0 1.2em;
}

.post-body .editorjs-list__items {
    margin: 0 0 0 1.4rem;
    padding-left: 1rem;
    padding-inline-start: 1rem;
    list-style-position: outside;
}

.post-body .editorjs-list__items li {
    padding-left: .35em;
}

.post-body .editorjs-list__items:not(ol) {
    list-style: disc outside;
}

.post-body ol.editorjs-list__items {
    list-style: decimal outside;
}

.post-body .editorjs-list__item > .editorjs-list__items {
    margin-top: .55em;
    margin-bottom: 0;
    margin-left: 1.2rem;
}

.post-body .editorjs-list__item > ul.editorjs-list__items {
    list-style-type: circle;
}

.post-body .editorjs-list__item > ul.editorjs-list__items ul.editorjs-list__items {
    list-style-type: square;
}

.post-body .editorjs-checklist ul {
    list-style: none;
    padding-left: 0;
    margin: 1em 0 1.2em;
}

.post-body .editorjs-checklist li {
    margin-bottom: .75em;
}

.post-body .editorjs-checklist label {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.post-body .editorjs-checklist input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    margin-top: .25rem;
    accent-color: var(--accent-teal);
}

.post-body .editorjs-quote blockquote {
    margin: 0;
}

.post-body .editorjs-quote cite {
    display: block;
    margin-top: .85rem;
    font-style: normal;
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

.post-body .editorjs-quote--center blockquote {
    text-align: center;
}

.post-body strong {
    font-weight: 700;
    color: var(--text-primary);
}

.post-body a {
    color: var(--accent-teal);
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: color .2s ease, text-decoration-color .2s ease;
}

.post-body a:hover,
.post-body a:focus-visible {
    color: var(--primary-color);
    text-decoration-color: currentColor;
}

.post-body code {
    font-family: 'JetBrains Mono', 'Cascadia Code', Consolas, monospace;
    font-size: .88em;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 3px;
    color: #c7254e;
}

.post-body pre {
    background: var(--bg-dark-2);
    color: #e2e8f0;
    padding: 18px 22px;
    border-radius: var(--radius);
    overflow-x: auto;
    font-size: .88em;
    line-height: 1.6;
    margin: 1.5em 0;
}

.post-body pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

.post-body img {
    border-radius: var(--radius-sm);
    margin: 1.5em 0;
}

.post-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: var(--fs-sm);
}

.post-body th,
.post-body td {
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    text-align: left;
}

.post-body th {
    background: var(--bg-secondary);
    font-weight: 700;
}

.post-share {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 14px 0;
    border-top: 1px solid var(--border-color);
    margin-top: 24px;
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: var(--fs-xs);
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.share-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.share-btn.fb:hover {
    background: #1877f2;
    color: #fff;
    border-color: #1877f2;
}

.share-btn.tw:hover {
    background: #1da1f2;
    color: #fff;
    border-color: #1da1f2;
}

.share-btn.li:hover {
    background: #0077b5;
    color: #fff;
    border-color: #0077b5;
}

.share-btn.ma:hover {
    background: #6364ff;
    color: #fff;
    border-color: #6364ff;
}

.share-btn.em:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.share-btn.pr:hover {
    background: #334155;
    color: #fff;
    border-color: #334155;
}

.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 20px;
    margin-bottom: 28px;
}

.post-nav a {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 14px 18px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.post-nav a:hover {
    border-color: var(--accent-teal);
}

.post-nav .direction {
    font-size: var(--fs-xs);
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.post-nav .nav-title {
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--text-primary);
}

.post-nav .next {
    text-align: right;
}

.post-author-box {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin: 0 0 28px;
    padding: 22px 24px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(248,250,252,.96) 0%, rgba(255,255,255,.99) 100%);
    box-shadow: 0 1px 3px rgba(15,23,42,.05), 0 14px 30px rgba(15,23,42,.04);
}

.post-author-box__avatar,
.post-author-box__avatar-placeholder {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    flex-shrink: 0;
}

.post-author-box__avatar {
    object-fit: cover;
    border: 2px solid rgba(30,58,95,.08);
    background: #fff;
}

.post-author-box__avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: .06em;
}

.post-author-box__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.post-author-box__eyebrow {
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent-teal);
}

.post-author-box__name {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.3;
    color: var(--text-primary);
}

.post-author-box__name-link {
    color: inherit;
    text-decoration: none;
}

.post-author-box__name-link:hover {
    color: var(--accent-teal);
}

.post-author-box__bio {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.75;
}

body.dark-mode .post-author-box {
    background: linear-gradient(180deg, rgba(17,24,39,.95) 0%, rgba(15,23,42,.96) 100%);
    border-color: var(--border-dark);
    box-shadow: none;
}

body.dark-mode .post-author-box__avatar {
    border-color: rgba(148,163,184,.18);
    background: rgba(15,23,42,.8);
}

body.dark-mode .post-author-box__bio {
    color: var(--text-secondary);
}

.comments-section {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: 0 1px 3px rgba(15,23,42,.05), 0 16px 34px rgba(15,23,42,.05);
    position: relative;
    overflow: hidden;
}

.comments-section::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(232,168,56,.0) 0%, rgba(232,168,56,.88) 14%, rgba(30,58,95,.92) 56%, rgba(13,148,136,.22) 100%);
}

.comments-section__meta {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(148,163,184,.16);
}

.comments-section__count {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 12px;
    border: 1px solid rgba(232,168,56,.26);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255,251,235,.92) 0%, rgba(248,250,252,.95) 100%);
    color: var(--primary-color);
    font-size: var(--fs-xs);
    font-weight: 700;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.comment-item {
    display: flex;
    gap: 16px;
    padding: 18px;
    border: 1px solid rgba(30,58,95,.10);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255,255,255,.99) 0%, rgba(247,250,252,.98) 100%);
    box-shadow: 0 1px 2px rgba(15,23,42,.04), inset 0 1px 0 rgba(255,255,255,.5);
    position: relative;
}

.comment-item:last-of-type {
    border-bottom: 1px solid rgba(30,58,95,.10);
}

.comment-item--reply {
    margin-left: 28px;
    padding-left: 22px;
}

.comment-item--reply::before {
    content: '';
    position: absolute;
    left: -14px;
    top: 22px;
    bottom: 22px;
    width: 1px;
    background: linear-gradient(180deg, rgba(30,58,95,.20) 0%, rgba(232,168,56,.38) 100%);
}

.comment-item--reply::after {
    content: '';
    position: absolute;
    left: -14px;
    top: 26px;
    width: 18px;
    height: 18px;
    border-left: 1px solid rgba(30,58,95,.20);
    border-bottom: 1px solid rgba(30,58,95,.20);
    border-bottom-left-radius: 10px;
}

.comment-item--reply-deep {
    margin-left: 44px;
}

.comment-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--primary-light), var(--primary-color));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: .95rem;
    flex-shrink: 0;
    box-shadow: 0 10px 20px rgba(30,58,95,.14);
}

.comment-body-wrap {
    flex: 1;
    min-width: 0;
}

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

.comment-author {
    font-weight: 700;
    font-size: .95rem;
    color: var(--text-primary);
}

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

.comment-author--link:hover {
    color: var(--accent-teal);
}

.comment-date {
    font-size: var(--fs-xs);
    color: var(--text-light);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.comment-date::before {
    content: '•';
    color: var(--accent-color);
    font-size: .9rem;
}

.comment-text {
    font-size: .95rem;
    color: var(--text-secondary);
    line-height: 1.75;
    white-space: pre-wrap;
}

.comment-form-wrap {
    background: linear-gradient(180deg, rgba(244,247,251,.98) 0%, rgba(248,250,252,.99) 100%);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-top: 24px;
    border: 1px solid rgba(30,58,95,.12);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 10px 28px rgba(15,23,42,.04);
}

.comment-form-wrap__header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

.comment-form-wrap h4 {
    font-size: 1.08rem;
    font-weight: 800;
    margin: 0;
    color: var(--text-primary);
}

.comment-form-wrap__intro {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    line-height: 1.65;
}

.comment-form-wrap__notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid rgba(232,168,56,.20);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255,251,235,.82) 0%, rgba(255,255,255,.9) 100%);
}

.comment-form-wrap__notice-icon {
    flex-shrink: 0;
    color: var(--accent-color);
    font-size: .95rem;
    line-height: 1.6;
}

body.dark-mode .comment-form-wrap {
    background: var(--bg-dark-3);
    border-color: var(--border-dark);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-group--fullwidth {
    grid-column: 1 / -1;
}

.form-group--spaced {
    margin-bottom: 14px;
}

.form-group--honeypot {
    margin-bottom: 14px;
}

.form-row--spaced {
    margin-bottom: 14px;
}

.form-group label {
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.form-control {
    padding: 12px 14px;
    border: 1px solid rgba(148,163,184,.28);
    border-radius: 10px;
    font-size: var(--fs-sm);
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    outline: none;
    width: 100%;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.45);
}

.form-control:focus {
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 4px rgba(13,148,136,.12);
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

textarea.form-control {
    resize: vertical;
    min-height: 140px;
    margin-top: 4px;
}

.comment-profile-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
    padding: 16px 18px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--bg-primary);
    color: var(--text-primary);
    box-shadow: 0 1px 3px rgba(15,23,42,.05), 0 8px 20px rgba(15,23,42,.04);
    position: relative;
    overflow: hidden;
}

.comment-profile-card::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, var(--accent-color) 0%, var(--primary-color) 100%);
}

.comment-profile-card__status {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 6px;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(13, 148, 136, .10);
    color: #0f766e;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.comment-profile-card__status::before {
    content: '•';
    font-size: .95rem;
    line-height: 1;
}

.comment-profile-card__main {
    display: flex;
    align-items: center;
    gap: 14px;
}

.comment-profile-card__avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, var(--primary-light), var(--primary-color));
    color: #fff;
    font-size: .95rem;
    font-weight: 800;
    letter-spacing: .06em;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}

.comment-profile-card__content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.comment-profile-card__name {
    font-size: .98rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.comment-profile-card__email {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    overflow-wrap: anywhere;
}

.comment-profile-card__meta {
    font-size: var(--fs-xs);
    color: var(--text-light);
    line-height: 1.5;
}

.field-required {
    color: #ef4444;
}

.field-optional {
    color: var(--text-muted);
    font-weight: 400;
}

.form-helper-text {
    font-size: var(--fs-xs);
    color: var(--text-light);
}

.visually-hidden-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

.comment-empty-state {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border: 1px dashed rgba(30,58,95,.22);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(248,250,252,.98) 0%, rgba(255,255,255,.96) 100%);
    color: var(--text-muted);
}

.comment-empty-state__icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30,58,95,.08);
    color: var(--primary-color);
    font-size: 1.2rem;
}

.comment-empty-state__content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.comment-empty-state__content strong {
    color: var(--text-primary);
    font-size: .96rem;
}

.comment-empty-state__content p {
    font-size: var(--fs-sm);
    line-height: 1.65;
}

.alert-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-top: 16px;
    font-size: var(--fs-sm);
    border: 1px solid transparent;
    line-height: 1.6;
}

.alert-box__icon {
    flex-shrink: 0;
    font-size: 1rem;
    line-height: 1.4;
}

.alert-box__content {
    flex: 1;
}

.alert-box--error {
    background: #fee2e2;
    border-color: #f87171;
    color: #991b1b;
}

.alert-box--success {
    background: #dcfce7;
    border-color: #4ade80;
    color: #166534;
}

.comment-form__actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 8px;
}

.comment-anonymous-toggle {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(30,58,95,.12);
    border-radius: 12px;
    background: rgba(255,255,255,.72);
    cursor: pointer;
}

.comment-anonymous-toggle input[type="checkbox"] {
    margin-top: 2px;
    accent-color: var(--primary-color);
}

.comment-anonymous-toggle__text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    color: var(--text-secondary);
    font-size: var(--fs-sm);
    line-height: 1.55;
}

.comment-anonymous-toggle__text strong {
    color: var(--text-primary);
    font-size: .92rem;
}

.comment-anonymous-toggle__text small {
    color: var(--text-muted);
    font-size: var(--fs-xs);
}

.comment-form__actions .btn {
    min-height: 46px;
}

.comment-submit-btn {
    padding: 11px 18px;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(15,23,42,.10);
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-color: rgba(15,34,64,.95);
}

.comment-submit-btn:hover {
    transform: translateY(-1px);
    background: linear-gradient(180deg, #23466f 0%, var(--primary-dark) 100%);
}

body.dark-mode .comment-profile-card {
    background: rgba(15, 23, 42, .28);
    border-color: var(--border-dark);
    box-shadow: none;
}

body.dark-mode .post-meta,
body.dark-mode .post-meta__label,
body.dark-mode .post-share,
body.dark-mode .share-btn,
body.dark-mode .post-alt-language,
body.dark-mode .comment-form-wrap__intro,
body.dark-mode .comment-profile-card__email,
body.dark-mode .comment-profile-card__meta,
body.dark-mode .field-optional,
body.dark-mode .form-helper-text {
    color: var(--text-secondary);
}

body.dark-mode .post-body,
body.dark-mode .comment-text,
body.dark-mode .comment-anonymous-toggle__text,
body.dark-mode .comment-empty-state,
body.dark-mode .comment-empty-state__content p {
    color: var(--text-secondary);
}

body.dark-mode .post-header,
body.dark-mode .post-body,
body.dark-mode .post-nav a,
body.dark-mode .comments-section,
body.dark-mode .comment-profile-card {
    background: var(--bg-dark-2);
    border-color: var(--border-dark);
}

body.dark-mode .post-hero-media,
body.dark-mode .post-meta,
body.dark-mode .post-share,
body.dark-mode .post-nav a,
body.dark-mode .comments-section__meta {
    border-color: var(--border-dark);
}

body.dark-mode .share-btn {
    background: var(--bg-dark-3);
    border-color: var(--border-dark);
}

body.dark-mode .post-nav .direction {
    color: var(--text-muted);
}

body.dark-mode .comment-form-wrap h4,
body.dark-mode .comment-profile-card__name,
body.dark-mode .comment-anonymous-toggle__text strong,
body.dark-mode .comment-empty-state__content strong {
    color: var(--text-primary);
}

body.dark-mode .form-group label {
    color: var(--text-muted);
}

body.dark-mode .comment-anonymous-toggle__text small {
    color: var(--text-secondary);
}

body.dark-mode .comment-profile-card__status {
    background: rgba(20, 184, 166, .16);
    color: #7dd3fc;
}

body.dark-mode .post-hero-reading-badge {
    background: rgba(15, 23, 42, .88);
    border-color: rgba(148, 163, 184, .24);
    color: #f8fafc;
}

body.dark-mode .comments-section {
    box-shadow: none;
}

body.dark-mode .comments-section__eyebrow {
    background: rgba(125, 211, 252, .12);
    color: #7dd3fc;
}

body.dark-mode .comments-section__count {
    background: linear-gradient(180deg, rgba(51,65,85,.5) 0%, rgba(15,23,42,.35) 100%);
    border-color: rgba(232,168,56,.28);
    color: #f8fafc;
}

body.dark-mode .comment-item {
    background: linear-gradient(180deg, rgba(17,24,39,.96) 0%, rgba(15,23,42,.96) 100%);
    border-color: rgba(51,65,85,.75);
}

body.dark-mode .comment-item--reply::before,
body.dark-mode .comment-item--reply::after {
    border-color: rgba(232,168,56,.28);
    background: linear-gradient(180deg, rgba(148,163,184,.2) 0%, rgba(232,168,56,.28) 100%);
}

body.dark-mode .comment-empty-state {
    background: rgba(15,23,42,.32);
    border-color: rgba(71,85,105,.75);
}

body.dark-mode .comment-empty-state__icon {
    background: rgba(125,211,252,.08);
    color: #7dd3fc;
}

body.dark-mode .form-control {
    background: rgba(15,23,42,.45);
    border-color: rgba(71,85,105,.75);
    box-shadow: none;
}

body.dark-mode .comment-form-wrap {
    background: linear-gradient(180deg, rgba(17,24,39,.94) 0%, rgba(15,23,42,.92) 100%);
}

body.dark-mode .comment-anonymous-toggle {
    background: rgba(15,23,42,.32);
    border-color: rgba(71,85,105,.72);
}

body.dark-mode .comment-form-wrap__notice {
    background: linear-gradient(180deg, rgba(51,65,85,.35) 0%, rgba(15,23,42,.3) 100%);
    border-color: rgba(232,168,56,.24);
}

body.dark-mode .comment-submit-btn {
    box-shadow: none;
}

.post-alt-language {
    font-size: .85rem;
    color: var(--text-muted);
    padding: 8px 0;
}

.post-alt-language__link {
    color: var(--accent-teal);
}

@media (max-width: 768px) {
    .post-header {
        flex-direction: column;
        margin-bottom: 18px;
    }

    .post-hero-media {
        flex: none;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .post-hero-img {
        flex: none;
        width: 100%;
        min-height: 180px;
        max-height: 240px;
        border-right: none;
        border-bottom: none;
    }

    .post-header-body {
        padding: 58px 16px 16px;
    }

    .post-cats {
        margin-bottom: 8px;
    }

    .post-meta {
        gap: 8px;
        padding-top: 12px;
    }

    .post-hero-reading-badge {
        top: 10px;
        left: 10px;
        padding: 2px 9px;
        font-size: var(--fs-xs);
    }

    .post-meta span,
    .post-meta .post-meta__link {
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }

    .post-body {
        padding: 22px 18px;
        line-height: 1.75;
        overflow-wrap: anywhere;
    }

    .post-body h2 {
        font-size: clamp(1.18rem, 4.8vw, 1.42rem);
    }

    .post-body h3 {
        font-size: clamp(1.04rem, 4vw, 1.22rem);
    }

    .post-body img {
        width: 100%;
        height: auto;
    }

    .post-body table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .post-share {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .post-share > span {
        grid-column: 1 / -1;
    }

    .share-btn {
        justify-content: center;
        min-height: 40px;
        border-radius: 10px;
    }

    .form-row,
    .post-nav {
        grid-template-columns: 1fr;
    }

    .post-author-box {
        padding: 18px;
        gap: 14px;
    }

    .post-author-box__avatar,
    .post-author-box__avatar-placeholder {
        width: 60px;
        height: 60px;
    }

    .post-title {
        font-size: clamp(1.42rem, 6vw, 2rem);
        margin-bottom: 12px;
    }

    .content-favorite-form {
        top: 0;
        right: 0;
    }

    .content-favorite {
        min-height: 24px;
        padding: 4px 8px;
        font-size: .78rem;
    }

    .comments-section {
        padding: 22px 18px;
    }

    .comment-form-wrap {
        padding: 20px 18px;
    }

    .comment-item {
        gap: 12px;
        padding: 16px;
    }

    .comment-profile-card {
        padding: 15px 16px;
    }

    .comment-profile-card__main {
        align-items: flex-start;
    }

    .comment-avatar {
        width: 40px;
        height: 40px;
        font-size: .82rem;
    }

    .comments-section__headline {
        align-items: flex-start;
    }

    .comment-empty-state {
        align-items: flex-start;
    }

    .comment-item--reply {
        margin-left: 18px;
        padding-left: 18px;
    }

}

@media (max-width: 480px) {
    .post-body,
    .post-header-body,
    .comments-section {
        padding: 16px 14px;
    }

    .comment-form-wrap {
        padding: 16px 14px;
    }

    .comments-section__count {
        min-height: 30px;
    }

    .post-hero-reading-badge {
        top: 8px;
        left: 8px;
        padding: 4px 9px;
        font-size: .7rem;
    }

    .comments-section__meta {
        justify-content: flex-start;
    }

    .comment-empty-state {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }

    .comment-item--reply,
    .comment-item--reply-deep {
        margin-left: 0;
        padding-left: 16px;
    }

    .comment-item--reply::before,
    .comment-item--reply::after {
        left: 8px;
    }

    .comment-profile-card__main {
        flex-direction: column;
        gap: 10px;
    }

    .comment-profile-card__avatar {
        width: 46px;
        height: 46px;
        font-size: .88rem;
    }

    .post-meta {
        gap: 6px;
    }

    .post-meta__item {
        gap: 5px;
    }

    .content-favorite__label {
        display: none;
    }

    .content-favorite {
        min-width: 34px;
        justify-content: center;
        padding-inline: 9px;
    }

    .post-share {
        grid-template-columns: 1fr;
    }

    .post-author-box {
        flex-direction: column;
        align-items: flex-start;
    }
}