/*
 * Northline theme for AllBlog
 * Clean blue-gray visual system with dark and light modes.
 */

:root {
    color-scheme: dark;
    --nl-bg: #0f141b;
    --nl-bg-soft: #121923;
    --nl-surface: #18202b;
    --nl-surface-2: #202936;
    --nl-surface-3: #263241;
    --nl-elevated: #1d2733;
    --nl-text: #e7edf5;
    --nl-muted: #9aa8b8;
    --nl-soft: #c2cad6;
    --nl-border: rgba(133, 159, 189, .22);
    --nl-border-strong: rgba(133, 159, 189, .34);
    --nl-accent: #71aaeb;
    --nl-accent-strong: #5297df;
    --nl-accent-soft: rgba(113, 170, 235, .14);
    --nl-accent-glow: rgba(113, 170, 235, .28);
    --nl-danger: #ff6b7c;
    --nl-success: #49c894;
    --nl-warning: #f2b84b;
    --nl-shadow: 0 14px 34px rgba(0, 0, 0, .28);
    --nl-shadow-soft: 0 8px 22px rgba(0, 0, 0, .18);
    --nl-radius-lg: 22px;
    --nl-radius-md: 16px;
    --nl-radius-sm: 12px;
    --nl-header-h: 76px;

    /* Compatibility variables used by existing templates/scripts */
    --background: radial-gradient(circle at 15% -10%, rgba(113, 170, 235, .16), transparent 36%), linear-gradient(180deg, #101620 0%, #0f141b 56%, #111720 100%);
    --text-color: var(--nl-text);
    --header-bg: rgba(18, 25, 35, .88);
    --header-text: var(--nl-text);
    --sidebar-bg: var(--nl-surface);
    --sidebar-text: var(--nl-text);
    --category-bg: transparent;
    --category-hover-bg: rgba(113, 170, 235, .10);
    --category-active-bg: var(--nl-accent);
    --category-active-text: #07111f;
    --category-border: var(--nl-accent);
    --category-active-border: var(--nl-accent-strong);
    --post-bg: var(--nl-surface);
    --post-link: var(--nl-text);
    --post-link-hover: var(--nl-accent);
    --post-preview: var(--nl-soft);
    --post-meta: var(--nl-muted);
    --post-meta-color: var(--nl-muted);
    --post-meta-border: var(--nl-border);
    --post-content-color: var(--nl-text);
    --post-content-link: var(--nl-accent);
    --post-content-link-hover: var(--nl-accent-strong);
    --admin-comment-glow: var(--nl-accent-glow);
    --back-link-color: var(--nl-soft);
    --back-link-bg: var(--nl-surface);
    --back-link-border: var(--nl-border);
    --back-link-hover-bg: var(--nl-accent-soft);
    --back-link-hover-border: var(--nl-accent);
    --back-link-shadow: var(--nl-accent-glow);
    --article-bg: var(--nl-surface);
    --article-h1-color: var(--nl-text);
    --pre-bg: #0b1119;
    --pagination-bg: var(--nl-surface-2);
    --pagination-hover-bg: rgba(113, 170, 235, .14);
    --pagination-active-bg: var(--nl-accent);
    --pagination-active-text: #07111f;
    --pagination-text: var(--nl-text);
    --scroll-top-bg: var(--nl-accent);
    --scroll-top-hover-bg: var(--nl-accent-strong);
    --scroll-top-color: #07111f;
    --shadow: var(--nl-shadow-soft);
    --shadow-hover: var(--nl-shadow);
    --hamburger-stroke: var(--nl-text);
    --error-content-bg: var(--nl-surface);
    --error-code-color: var(--nl-accent);
    --error-code-shadow: rgba(113, 170, 235, .38);
    --error-h1-color: var(--nl-text);
    --error-p-color: var(--nl-muted);
    --error-shadow: var(--nl-shadow);
}

[data-theme="light"] {
    color-scheme: light;
    --nl-bg: #f2f5f9;
    --nl-bg-soft: #e8eef6;
    --nl-surface: #ffffff;
    --nl-surface-2: #f6f8fb;
    --nl-surface-3: #edf2f8;
    --nl-elevated: #ffffff;
    --nl-text: #1f2937;
    --nl-muted: #6d7886;
    --nl-soft: #3f4c5a;
    --nl-border: rgba(41, 77, 117, .14);
    --nl-border-strong: rgba(41, 77, 117, .24);
    --nl-accent: #2688eb;
    --nl-accent-strong: #1f75cc;
    --nl-accent-soft: rgba(38, 136, 235, .10);
    --nl-accent-glow: rgba(38, 136, 235, .18);
    --nl-danger: #e23b52;
    --nl-success: #229c73;
    --nl-warning: #c98a14;
    --nl-shadow: 0 18px 42px rgba(22, 42, 65, .12);
    --nl-shadow-soft: 0 8px 24px rgba(22, 42, 65, .08);

    --background: linear-gradient(180deg, #eef3f8 0%, #f7f9fc 46%, #eef3f8 100%);
    --text-color: var(--nl-text);
    --header-bg: rgba(255, 255, 255, .92);
    --header-text: var(--nl-text);
    --sidebar-bg: var(--nl-surface);
    --sidebar-text: var(--nl-text);
    --category-bg: transparent;
    --category-hover-bg: rgba(38, 136, 235, .08);
    --category-active-bg: var(--nl-accent);
    --category-active-text: #ffffff;
    --category-border: var(--nl-accent);
    --category-active-border: var(--nl-accent-strong);
    --post-bg: var(--nl-surface);
    --post-link: var(--nl-text);
    --post-link-hover: var(--nl-accent);
    --post-preview: #4d5a68;
    --post-meta: var(--nl-muted);
    --post-meta-color: var(--nl-muted);
    --post-meta-border: var(--nl-border);
    --post-content-color: var(--nl-text);
    --post-content-link: var(--nl-accent);
    --post-content-link-hover: var(--nl-accent-strong);
    --admin-comment-glow: var(--nl-accent-glow);
    --back-link-color: var(--nl-soft);
    --back-link-bg: var(--nl-surface);
    --back-link-border: var(--nl-border);
    --back-link-hover-bg: var(--nl-accent-soft);
    --back-link-hover-border: var(--nl-accent);
    --back-link-shadow: var(--nl-accent-glow);
    --article-bg: var(--nl-surface);
    --article-h1-color: var(--nl-text);
    --pre-bg: #eef3f8;
    --pagination-bg: #ffffff;
    --pagination-hover-bg: rgba(38, 136, 235, .10);
    --pagination-active-bg: var(--nl-accent);
    --pagination-active-text: #ffffff;
    --pagination-text: var(--nl-text);
    --scroll-top-bg: var(--nl-accent);
    --scroll-top-hover-bg: var(--nl-accent-strong);
    --scroll-top-color: #ffffff;
    --hamburger-stroke: var(--nl-text);
    --error-content-bg: var(--nl-surface);
    --error-code-color: var(--nl-accent);
    --error-code-shadow: rgba(38, 136, 235, .22);
    --error-h1-color: var(--nl-text);
    --error-p-color: var(--nl-muted);
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    background: var(--background);
    color: var(--text-color);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; }
a, button, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button, input, textarea, select { font: inherit; }
img, video { max-width: 100%; height: auto; }
::selection { background: var(--nl-accent); color: #fff; }

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(circle at 75% 10%, var(--nl-accent-glow), transparent 28%),
        radial-gradient(circle at 10% 85%, rgba(80, 130, 190, .12), transparent 30%);
}

/* Header */
.nl-site-header,
header.nl-site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    min-height: var(--nl-header-h);
    padding: 12px max(18px, env(safe-area-inset-left)) 12px max(18px, env(safe-area-inset-right));
    background: var(--header-bg);
    border-bottom: 1px solid var(--nl-border);
    box-shadow: 0 1px 0 rgba(255,255,255,.03), 0 10px 30px rgba(0,0,0,.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.nl-header-inner {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.logo,
.nl-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: var(--nl-text);
    text-decoration: none;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 800;
    letter-spacing: -0.035em;
    transition: transform .18s ease, opacity .18s ease;
}
.logo:hover,
.nl-logo:hover { transform: translateY(-1px); }
.nl-logo-mark {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: var(--nl-accent);
    background: linear-gradient(180deg, rgba(113,170,235,.18), rgba(113,170,235,.06));
    border: 1px solid var(--nl-border);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06), var(--nl-shadow-soft);
}
.nl-logo-text {
    color: var(--nl-text);
    font-size: clamp(23px, 2.6vw, 32px);
    line-height: 1;
    white-space: nowrap;
}
.nl-logo-text span { color: var(--nl-accent); }
.nl-header-actions,
.nav_butt {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 0;
}
.nl-icon-button,
.flow-button,
.theme-toggle,
.hamburger {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--nl-border-strong);
    border-radius: 15px;
    color: var(--nl-soft);
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 8px 16px rgba(0,0,0,.12);
    cursor: pointer;
    transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.nl-icon-button:hover,
.flow-button:hover,
.theme-toggle:hover,
.hamburger:hover,
.hamburger[aria-expanded="true"] {
    color: var(--nl-accent);
    border-color: rgba(113, 170, 235, .48);
    background: var(--nl-accent-soft);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px var(--nl-accent-glow);
}
.nl-icon-button svg,
.flow-button svg,
.theme-toggle svg,
.hamburger svg {
    width: 22px;
    height: 22px;
    display: block;
    stroke: currentColor;
}
.hamburger { display: none !important; }

/* Layout */
.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 26px 0 42px;
    display: grid;
    grid-template-columns: minmax(250px, 310px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}
main, article, .main-content { min-width: 0; }

.sidebar {
    position: sticky;
    top: calc(var(--nl-header-h) + 18px);
    padding: 18px;
    border: 1px solid var(--nl-border);
    border-radius: var(--nl-radius-lg);
    background: var(--sidebar-bg);
    box-shadow: var(--nl-shadow-soft);
    overflow: hidden;
}
.sidebar::before {
    content: "";
    display: block;
    height: 3px;
    margin: -18px -18px 16px;
    background: linear-gradient(90deg, transparent, var(--nl-accent), transparent);
    opacity: .55;
}
.sidebar h2,
.header-links-title {
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--sidebar-text);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .02em;
}

#search-form {
    position: relative;
    display: flex;
    gap: 8px;
    margin: 0 0 18px;
}
#search-form input,
input[type="text"],
input[type="email"],
input[type="url"],
input[type="file"],
textarea,
select {
    width: 100%;
    min-height: 44px;
    color: var(--nl-text);
    background: var(--nl-surface-2);
    border: 1px solid var(--nl-border);
    border-radius: 13px;
    padding: 11px 13px;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
#search-form input:focus,
input:focus,
textarea:focus,
select:focus {
    border-color: var(--nl-accent);
    box-shadow: 0 0 0 3px var(--nl-accent-soft);
}
#search-form button,
button[type="submit"],
.form-button {
    min-height: 44px;
    border: 0;
    border-radius: 13px;
    padding: 0 16px;
    color: var(--scroll-top-color);
    background: var(--scroll-top-bg);
    cursor: pointer;
    font-weight: 800;
    box-shadow: 0 10px 22px var(--nl-accent-glow);
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
#search-form button:hover,
button[type="submit"]:hover,
.form-button:hover { transform: translateY(-1px); background: var(--scroll-top-hover-bg); }

.category,
.admin-login-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    margin: 4px 0;
    border-radius: 13px;
    color: var(--nl-soft);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    border: 1px solid transparent;
    background: var(--category-bg);
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.category svg,
.admin-login-btn svg { flex: 0 0 16px; stroke: currentColor !important; opacity: .9; }
.category:hover,
.admin-login-btn:hover {
    color: var(--nl-text);
    background: var(--category-hover-bg);
    border-color: var(--nl-border);
    transform: translateX(2px);
}
.category.active {
    color: var(--category-active-text);
    background: linear-gradient(135deg, var(--category-active-bg), var(--category-active-border));
    border-color: transparent;
    box-shadow: 0 10px 24px var(--nl-accent-glow);
}
.category.active svg { stroke: currentColor !important; }

.category-description,
.static-page-content,
.empty-message,
.notification {
    padding: 24px;
    margin: 0 0 22px;
    border-radius: var(--nl-radius-lg);
    border: 1px solid var(--nl-border);
    background: var(--post-bg);
    box-shadow: var(--nl-shadow-soft);
}
.category-description h2,
.static-page-content h1,
.static-page-content h2 {
    margin: 0 0 12px;
    color: var(--nl-text);
    letter-spacing: -0.025em;
}
.category-description h2 { display: flex; align-items: center; gap: 9px; font-size: clamp(21px, 3vw, 30px); }
.category-description p,
.static-page-content p,
.empty-message { color: var(--post-preview); }

/* Post cards */
.post,
article {
    position: relative;
    overflow: hidden;
    margin: 0 0 22px;
    padding: 22px;
    border-radius: var(--nl-radius-lg);
    border: 1px solid var(--nl-border);
    background: var(--post-bg);
    box-shadow: var(--nl-shadow-soft);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.post:hover {
    transform: translateY(-2px);
    border-color: var(--nl-border-strong);
    box-shadow: var(--nl-shadow);
}
.post-content { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.post-title {
    display: inline-block;
    color: var(--post-link);
    text-decoration: none;
    font-size: clamp(20px, 2.5vw, 27px);
    line-height: 1.16;
    font-weight: 850;
    letter-spacing: -0.035em;
    overflow-wrap: anywhere;
    transition: color .18s ease;
}
.post-title:hover { color: var(--post-link-hover); }
.post-image,
.gallery__image,
.post-content img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid var(--nl-border);
    background: var(--nl-surface-2);
    box-shadow: 0 10px 26px rgba(0,0,0,.16);
}
.post-preview {
    color: var(--post-preview);
    font-size: 15px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}
.post-preview p { margin: 0 0 10px; }
.post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    color: var(--post-meta);
    font-size: 13px;
    line-height: 1.35;
}
.post-meta svg { flex: 0 0 16px; stroke: currentColor !important; }
.post-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    color: var(--post-meta);
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;
    margin: 28px 0 0;
}
.pagination span,
.pagination a,
.pagination-link {
    min-width: 42px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border-radius: 13px;
    border: 1px solid var(--nl-border);
    color: var(--pagination-text);
    background: var(--pagination-bg);
    text-decoration: none;
    cursor: pointer;
    font-weight: 750;
    transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.pagination span:hover,
.pagination a:hover,
.pagination-link:hover { background: var(--pagination-hover-bg); border-color: var(--nl-border-strong); transform: translateY(-1px); }
.pagination .active,
.pagination span.active,
.pagination a.active,
.pagination-link.active { color: var(--pagination-active-text); background: var(--pagination-active-bg); border-color: transparent; box-shadow: 0 10px 20px var(--nl-accent-glow); }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--nl-border);
    background: var(--nl-surface);
    color: var(--nl-soft);
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    box-shadow: var(--nl-shadow-soft);
}
.back-link::before { content: "←"; }
.back-link:hover { color: var(--nl-accent); border-color: var(--nl-border-strong); }

/* Article typography */
article h1,
.static-page-content h1,
.error-code {
    margin: 0 0 16px;
    color: var(--article-h1-color);
    font-size: clamp(30px, 5vw, 52px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.055em;
    overflow-wrap: anywhere;
}
article h2, article h3, article h4,
.post-content h2, .post-content h3, .post-content h4 {
    color: var(--nl-text);
    margin: 1.35em 0 .55em;
    line-height: 1.18;
    letter-spacing: -0.03em;
}
article p,
.post-content p,
.static-page-content p { margin: 0 0 1em; color: var(--post-content-color); }
.post-content a,
.static-page-content a { color: var(--nl-accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.post-content ul,
.post-content ol,
.static-page-content ul,
.static-page-content ol { padding-left: 1.35em; color: var(--post-content-color); }
.post-content li { margin: .35em 0; }
.post-content blockquote,
.quote {
    margin: 1.25em 0;
    padding: 16px 18px;
    border-left: 4px solid var(--nl-accent);
    border-radius: 14px;
    background: var(--nl-accent-soft);
    color: var(--nl-soft);
}
pre, code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
pre {
    overflow: auto;
    max-width: 100%;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--nl-border);
    background: var(--pre-bg);
    color: var(--nl-text);
}
code { padding: .15em .35em; border-radius: 7px; background: var(--nl-surface-3); }
pre code { padding: 0; background: transparent; }
table { width: 100%; border-collapse: collapse; overflow: hidden; border-radius: 14px; }
th, td { padding: 11px 12px; border-bottom: 1px solid var(--nl-border); text-align: left; }
th { background: var(--nl-surface-2); color: var(--nl-text); }

/* Header quick links */
.header-links-block,
.nl-quicklinks {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 28px;
    padding: 20px;
    border-radius: var(--nl-radius-lg);
    border: 1px solid var(--nl-border);
    background: var(--nl-surface);
    box-shadow: var(--nl-shadow-soft);
}
.header-links-header { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; }
.header-links-icon { color: var(--nl-accent); }
.header-links-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.header-link-btn {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 15px;
    border: 1px solid var(--nl-border);
    background: var(--nl-surface-2);
    color: var(--nl-soft);
    text-decoration: none;
    font-weight: 800;
    overflow-wrap: anywhere;
}
.header-link-btn:hover { color: var(--nl-text); border-color: var(--nl-border-strong); background: var(--nl-accent-soft); }
.header-link-btn .arrow { flex: 0 0 auto; color: var(--nl-accent); font-size: 20px; }

/* Promo */
.promo-promotion-block,
.nl-promo {
    width: min(1180px, calc(100% - 32px));
    margin: 18px auto 0;
    padding: 18px 20px;
    border-radius: var(--nl-radius-lg);
    border: 1px solid var(--nl-border);
    background: linear-gradient(135deg, var(--nl-surface), var(--nl-surface-2));
    box-shadow: var(--nl-shadow-soft);
    position: relative;
}
.promo-hide-button {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 1px solid var(--nl-border);
    border-radius: 11px;
    background: transparent;
    color: var(--nl-muted);
    cursor: pointer;
}
.promo-promotion-header { display: flex; align-items: center; gap: 10px; margin-right: 40px; }
.promo-promotion-icon { color: var(--nl-accent); }
.promo-promotion-title { font-weight: 900; font-size: 18px; color: var(--nl-text); }
.promo-promotion-description { color: var(--nl-soft); margin: 10px 0 14px; }
.promo-promotion-cta {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--nl-accent);
    color: var(--scroll-top-color);
    text-decoration: none;
    font-weight: 900;
}

/* Footer */
.footer,
.nl-footer {
    width: min(1180px, calc(100% - 32px));
    margin: 10px auto 0;
    padding: 26px;
    border-radius: var(--nl-radius-lg) var(--nl-radius-lg) 0 0;
    border: 1px solid var(--nl-border);
    border-bottom: 0;
    background: var(--nl-surface);
    box-shadow: var(--nl-shadow-soft);
}
.footer-container,
.nl-footer-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
}
.footer-logo { min-width: 0; }
.footer-copyright { margin: 12px 0 0; color: var(--nl-muted); }
.footer-links { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.footer-link {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--nl-border);
    border-radius: 999px;
    color: var(--nl-soft);
    text-decoration: none;
    font-weight: 750;
}
.footer-link:hover { color: var(--nl-accent); background: var(--nl-accent-soft); }
.footer-stats,
.nl-footer-stats {
    margin: 18px 0 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--nl-border);
    color: var(--nl-muted);
    background: var(--nl-surface-2);
    font-size: 14px;
}
.footer-stats span { color: var(--nl-accent); font-weight: 900; }

/* Static pages, errors */
.static-page-content { max-width: 920px; margin: 0 auto; }
.error-code { color: var(--error-code-color); text-shadow: 0 14px 44px var(--error-code-shadow); font-size: clamp(70px, 18vw, 150px); text-align: center; }

/* Gallery */
.gallery, .archives { width: 100%; }
.gallery__title, .archives__title { margin: 0 0 18px; color: var(--nl-text); font-size: clamp(28px, 4vw, 44px); letter-spacing: -0.05em; }
.gallery__grid,
.archives__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 14px;
}
.gallery__item,
.archives__card {
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid var(--nl-border);
    background: var(--nl-surface);
    box-shadow: var(--nl-shadow-soft);
}
.gallery__image { display: block; aspect-ratio: 4/3; border: 0; border-radius: 0; }
.archives__card { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.archives__card-name { color: var(--nl-text); font-weight: 800; overflow-wrap: anywhere; }
.archives__card-size { color: var(--nl-muted); font-size: 13px; }
.archives__card-button { color: var(--nl-accent); font-weight: 900; text-decoration: none; }

/* Profile */
.profile-header,
.profile-section {
    padding: 22px;
    margin: 0 0 22px;
    border-radius: var(--nl-radius-lg);
    border: 1px solid var(--nl-border);
    background: var(--nl-surface);
    box-shadow: var(--nl-shadow-soft);
}
.profile-header { display: flex; align-items: center; gap: 18px; }
.profile-avatar { width: 74px; height: 74px; border-radius: 22px; object-fit: cover; border: 1px solid var(--nl-border); }
.profile-name { margin: 0; color: var(--nl-text); font-size: 26px; font-weight: 900; letter-spacing: -0.04em; }
.profile-bio { margin: 6px 0 0; color: var(--nl-muted); }
.profile-list { display: grid; gap: 12px; }
.profile-item {
    display: block;
    padding: 15px;
    border: 1px solid var(--nl-border);
    border-radius: 16px;
    background: var(--nl-surface-2);
    text-decoration: none;
}
.profile-item-title { color: var(--nl-text); font-weight: 850; }
.profile-item-meta { color: var(--nl-muted); font-size: 13px; margin-top: 5px; }

/* Reactions/comments/share */
.reactions-container,
.share-block,
.comments-section,
.author-block {
    margin: 24px 0;
    padding: 18px;
    border-radius: var(--nl-radius-lg);
    border: 1px solid var(--nl-border);
    background: var(--nl-surface-2);
}
.reactions-container { display: flex; flex-wrap: wrap; gap: 9px; }
.reaction-btn {
    min-height: 40px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--nl-border);
    background: var(--nl-surface);
    color: var(--nl-text);
    cursor: pointer;
    font-weight: 800;
}
.reaction-btn.active,
.reaction-btn:hover { border-color: var(--nl-accent); background: var(--nl-accent-soft); }
.reaction-btn .count { color: var(--nl-accent); }
.share-block__title,
.comments-section h2,
.author-block__title { margin: 0 0 14px; color: var(--nl-text); font-size: 20px; font-weight: 900; }
.share-block__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.share-block__action {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--nl-border);
    background: var(--nl-surface);
    color: var(--nl-soft);
    text-decoration: none;
    cursor: pointer;
    font-weight: 850;
}
.share-block__action:hover { color: #fff; background: var(--nl-accent); border-color: transparent; }
.comment {
    padding: 15px;
    border: 1px solid var(--nl-border);
    border-radius: 16px;
    background: var(--nl-surface);
    margin: 12px 0;
}
.comment-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.comment-author { color: var(--nl-text); font-weight: 900; }
.comment-date { color: var(--nl-muted); font-size: 12px; }
.comment-content { color: var(--nl-soft); overflow-wrap: anywhere; }
.comment-input-group { position: relative; }
.emoji-picker-toggle {
    position: absolute;
    right: 8px;
    top: 8px;
    width: 36px;
    height: 36px;
    border: 1px solid var(--nl-border);
    border-radius: 12px;
    background: var(--nl-surface);
    cursor: pointer;
}
emoji-picker { display: none; position: absolute; z-index: 20; right: 0; top: 48px; max-width: min(340px, 88vw); }
.reply-btn, .admin-indicator { color: var(--nl-accent); font-weight: 850; }
.author-block { display: flex; align-items: center; gap: 16px; }
.author-block__avatar { width: 64px; height: 64px; border-radius: 20px; object-fit: cover; border: 1px solid var(--nl-border); }
.author-block__login { color: var(--nl-text); font-weight: 900; }
.author-block__bio { color: var(--nl-muted); }

/* Media/video */
.video-wrapper,
.post-content-video {
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    background: #000;
    border: 1px solid var(--nl-border);
}
.post-content-video { display: block; max-height: 620px; }

/* Utility compatibility classes */
.bg-var-post-bg { background: var(--post-bg); }
.bg-var-pagination-bg { background: var(--pagination-bg); }
.bg-var-pagination-active-bg { background: var(--pagination-active-bg); }
.bg-var-pre-bg { background: var(--pre-bg); }
.bg-var-scroll-top-bg { background: var(--scroll-top-bg); }
.hover\:bg-var-scroll-top-hover-bg:hover { background: var(--scroll-top-hover-bg); }
.text-var-text-color { color: var(--text-color); }
.text-var-post-meta-color { color: var(--post-meta); }
.text-var-post-content-color { color: var(--post-content-color); }
.text-var-pagination-text { color: var(--pagination-text); }
.text-var-pagination-active-text { color: var(--pagination-active-text); }
.text-var-scroll-top-color { color: var(--scroll-top-color); }
.border-var-post-meta-border { border-color: var(--post-meta-border); }
.shadow-var-shadow { box-shadow: var(--shadow); }
.rounded-lg { border-radius: 16px; }
.rounded-full { border-radius: 999px; }
.p-1 { padding: .25rem; } .p-3 { padding: .75rem; } .p-6 { padding: 1.5rem; }
.px-3 { padding-left: .75rem; padding-right: .75rem; } .px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-1 { padding-top: .25rem; padding-bottom: .25rem; } .py-2 { padding-top: .5rem; padding-bottom: .5rem; }
.mt-2 { margin-top: .5rem; } .mt-4 { margin-top: 1rem; } .mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; } .mb-8 { margin-bottom: 2rem; } .ml-4 { margin-left: 1rem; } .mr-2 { margin-right: .5rem; }
.pb-4 { padding-bottom: 1rem; }
.flex { display: flex; } .grid { display: grid; } .flex-wrap { flex-wrap: wrap; } .items-center { align-items: center; } .justify-center { justify-content: center; } .justify-end { justify-content: flex-end; }
.gap-1 { gap: .25rem; } .gap-2 { gap: .5rem; } .gap-4 { gap: 1rem; }
.w-full { width: 100%; } .w-32 { width: 8rem; } .h-32 { height: 8rem; } .h-auto { height: auto; }
.max-w-full { max-width: 100%; } .max-w-lg { max-width: 32rem; }
.object-cover { object-fit: cover; }
.text-sm { font-size: .875rem; } .text-xl { font-size: 1.25rem; } .text-2xl { font-size: 1.5rem; } .text-3xl { font-size: 1.875rem; } .font-bold { font-weight: 800; }
.text-white { color: #fff; } .text-gray-100 { color: #f3f4f6; }
.bg-gray-800 { background: #1f2937; } .bg-green-600 { background: var(--nl-success); } .bg-red-600 { background: var(--nl-danger); }
.relative { position: relative; } .absolute { position: absolute; } .static { position: static; }
.top-0 { top: 0; } .top-2 { top: .5rem; } .right-0 { right: 0; } .right-2 { right: .5rem; } .bottom-full { bottom: 100%; }

/* Scroll top */
.scroll-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--scroll-top-bg);
    color: var(--scroll-top-color);
    box-shadow: 0 14px 28px var(--nl-accent-glow);
    cursor: pointer;
    z-index: 999;
}

/* Responsive */
/* 1.3.1: keep the single Flow post isolated from /flow index selectors. */
.ae-flow-post-page .ae-flow-entry > .ae-flow-hero,
.ae-flow-post-page .ae-flow-entry > .ae-flow-layout {
    grid-column: 1 / -1;
    min-width: 0;
}

@media (max-width: 980px) {
    :root { --nl-header-h: 72px; }
    .nl-site-header { padding: 10px 14px; }
    .nl-header-inner { gap: 10px; }
    .nl-logo-mark { width: 42px; height: 42px; flex-basis: 42px; border-radius: 13px; }
    .nl-logo-text { font-size: clamp(21px, 6vw, 28px); }
    .nl-icon-button,
    .flow-button,
    .theme-toggle,
    .hamburger { width: 44px; height: 44px; flex-basis: 44px; border-radius: 14px; }
    .hamburger { display: inline-flex !important; }

    .container {
        width: min(100% - 24px, 760px);
        display: block !important;
        padding-top: 18px;
    }
    .sidebar {
        position: fixed;
        top: var(--nl-header-h);
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 999;
        width: 100%;
        max-width: none;
        height: calc(100dvh - var(--nl-header-h));
        padding: 18px max(16px, env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
        border-radius: 0;
        border-left: 0;
        border-right: 0;
        overflow-y: auto;
        transform: translateX(-105%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform .24s ease, opacity .24s ease, visibility .24s ease;
        background: var(--nl-bg);
        box-shadow: 0 24px 50px rgba(0,0,0,.35);
    }
    .sidebar.visible,
    .sidebar.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    .sidebar::before { margin-left: -18px; margin-right: -18px; }
    .category,
    .admin-login-btn { min-height: 52px; font-size: 16px; padding: 13px 14px; }
    #search-form input { min-height: 50px; }
    #search-form button { min-height: 50px; min-width: 52px; }
    .post, article, .category-description, .static-page-content { padding: 18px; border-radius: 20px; }
    .post-title { font-size: clamp(21px, 6vw, 30px); }
    .post-meta { gap: 8px 10px; font-size: 12.5px; }
    .header-links-block, .nl-quicklinks, .footer, .nl-footer, .promo-promotion-block, .nl-promo { width: min(100% - 24px, 760px); }
    .header-links-grid { grid-template-columns: 1fr; }
    .footer-container, .nl-footer-inner { flex-direction: column; }
    .footer-links { justify-content: flex-start; }
}

@media (max-width: 560px) {
    :root { --nl-header-h: 66px; }
    .nl-site-header { min-height: var(--nl-header-h); }
    .nl-header-inner { gap: 8px; }
    .nl-logo-mark { width: 38px; height: 38px; flex-basis: 38px; border-radius: 12px; }
    .nl-logo-mark svg { width: 20px; height: 20px; }
    .nl-logo-text { font-size: 24px; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; }
    .nl-header-actions,
    .nav_butt { gap: 7px; }
    .nl-icon-button,
    .flow-button,
    .theme-toggle,
    .hamburger { width: 40px; height: 40px; flex-basis: 40px; border-radius: 13px; }
    .nl-icon-button svg,
    .flow-button svg,
    .theme-toggle svg,
    .hamburger svg { width: 20px; height: 20px; }
    .container { width: min(100% - 20px, 560px); padding-top: 14px; }
    .post, article, .category-description, .static-page-content, .comments-section, .share-block, .author-block { padding: 16px; border-radius: 18px; }
    article h1, .static-page-content h1 { font-size: clamp(28px, 10vw, 42px); }
    .post-image, .gallery__image, .post-content img { border-radius: 14px; max-height: 390px; }
    .pagination span, .pagination a, .pagination-link { min-width: 38px; min-height: 38px; padding: 8px 12px; }
    .share-block__action { width: 100%; justify-content: center; }
    .author-block, .profile-header { align-items: flex-start; flex-direction: column; }
    .footer, .nl-footer { padding: 20px 16px; }
    .footer-stats, .nl-footer-stats { width: 100%; border-radius: 16px; justify-content: center; flex-wrap: wrap; text-align: center; }
}

@media (max-width: 380px) {
    .nl-logo-text { font-size: 21px; max-width: 42vw; }
    .nl-header-actions, .nav_butt { gap: 5px; }
    .nl-icon-button, .flow-button, .theme-toggle, .hamburger { width: 38px; height: 38px; flex-basis: 38px; }
}

@supports not (height: 100dvh) {
    @media (max-width: 980px) {
        .sidebar { height: calc(100vh - var(--nl-header-h)); }
    }
}

@media (hover: none) and (pointer: coarse) {
    body::before { display: none; }
    .post:hover, .logo:hover, .category:hover, .nl-icon-button:hover, .flow-button:hover, .theme-toggle:hover, .hamburger:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Additional polished elements after template inline CSS removal */
.reply-to {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--nl-border);
    background: var(--nl-accent-soft);
    color: var(--nl-accent);
    font-size: 13px;
    font-weight: 800;
}
.reply-to::before { content: "↳"; }
.reply-to a { color: inherit; }
.error-content { text-align: center; }
.error-content h1 { color: var(--nl-text); }
.post-content video { width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--nl-border); box-shadow: var(--nl-shadow-soft); }

/* Aurora palette bridge for inherited article templates. */
:root {
    --nl-bg: var(--ae-bg);
    --nl-bg-soft: var(--ae-bg-soft);
    --nl-surface: var(--ae-surface);
    --nl-surface-2: var(--ae-surface-2);
    --nl-surface-3: var(--ae-surface-3);
    --nl-elevated: var(--ae-surface-2);
    --nl-text: var(--ae-text);
    --nl-muted: var(--ae-muted);
    --nl-soft: var(--ae-text-soft);
    --nl-border: var(--ae-line);
    --nl-border-strong: var(--ae-line-strong);
    --nl-accent: var(--ae-accent);
    --nl-accent-strong: var(--ae-accent-2);
    --nl-accent-soft: var(--ae-accent-soft);
    --nl-accent-glow: var(--ae-glow);
    --nl-danger: var(--ae-danger);
    --nl-success: var(--ae-success);
    --nl-shadow: var(--ae-shadow);
    --nl-shadow-soft: var(--ae-shadow-soft);
    --background: var(--ae-bg);
    --text-color: var(--ae-text);
    --header-bg: color-mix(in srgb, var(--ae-bg) 86%, transparent);
    --post-bg: var(--ae-surface);
    --post-link: var(--ae-text);
    --post-link-hover: var(--ae-accent-2);
    --post-preview: var(--ae-text-soft);
    --post-meta: var(--ae-muted);
    --post-content-color: var(--ae-text-soft);
    --post-content-link: var(--ae-accent-2);
    --post-content-link-hover: var(--ae-accent);
    --article-bg: var(--ae-surface);
    --pre-bg: var(--ae-bg-soft);
}
.article, article.article { border-color: var(--ae-line); box-shadow: var(--ae-shadow-soft); }
.article h1, .post-content h1 { letter-spacing: -.045em; }

/* ========================================================================== 
   Aurora Editorial 1.1 — dedicated article experience
   Scoped to .ae-post-page so Flow, Gallery and Preview keep their layouts.
   ========================================================================== */

.ae-post-page {
    --ae-reading-width: 860px;
    --ae-post-rail-width: 154px;
}

.ae-post-page .ae-reading-progress {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1300;
    height: 3px;
    pointer-events: none;
    background: transparent;
}
.ae-post-page .ae-reading-progress span {
    display: block;
    width: 100%;
    height: 100%;
    transform: scaleX(0);
    transform-origin: 0 50%;
    background: linear-gradient(90deg, var(--ae-accent), var(--ae-accent-2), var(--ae-accent-3));
    box-shadow: 0 0 16px var(--ae-glow);
    will-change: transform;
}

.ae-post-page .ae-post-main {
    padding: clamp(28px, 4vw, 58px) 0 110px;
}
.ae-post-page .ae-post-breadcrumb {
    margin: 0 0 22px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    color: var(--ae-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 10px;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.ae-post-page .ae-post-breadcrumb a {
    color: var(--ae-text-soft);
    text-decoration: none;
    transition: color .18s ease;
}
.ae-post-page .ae-post-breadcrumb a:hover { color: var(--ae-accent-2); }
.ae-post-page .ae-post-breadcrumb > span[aria-hidden] { opacity: .45; }

/* Reset the inherited generic article card. */
.ae-post-page .ae-post-article {
    position: static;
    overflow: visible;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transition: none;
}

.ae-post-page .ae-post-hero {
    position: relative;
    min-height: clamp(500px, 56vw, 650px);
    display: grid;
    grid-template-columns: minmax(0, .88fr) minmax(440px, 1.12fr);
    overflow: hidden;
    border: 1px solid var(--ae-line);
    border-radius: clamp(24px, 3vw, 38px);
    background:
        radial-gradient(circle at 17% 15%, rgba(167,139,250,.17), transparent 29rem),
        linear-gradient(145deg, color-mix(in srgb, var(--ae-surface) 92%, transparent), var(--ae-surface-2));
    box-shadow: var(--ae-shadow);
    isolation: isolate;
}
.ae-post-page .ae-post-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    opacity: .35;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(90deg, #000, transparent 70%);
}
[data-theme="light"] .ae-post-page .ae-post-hero::before {
    background-image:
        linear-gradient(rgba(22,18,30,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(22,18,30,.035) 1px, transparent 1px);
}
.ae-post-page .ae-post-hero__copy {
    position: relative;
    z-index: 2;
    min-width: 0;
    padding: clamp(42px, 6vw, 82px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.ae-post-page .ae-post-hero__copy::after {
    content: "";
    width: 68px;
    height: 3px;
    margin-top: 35px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--ae-accent), var(--ae-accent-2));
}
.ae-post-page .ae-post-hero h1 {
    max-width: 790px;
    margin: 18px 0 22px;
    color: var(--ae-text);
    font-size: clamp(42px, 5.15vw, 76px);
    line-height: .99;
    font-weight: 900;
    letter-spacing: -.067em;
    text-wrap: balance;
    overflow-wrap: anywhere;
}
.ae-post-page .ae-post-hero__lead {
    max-width: 660px;
    margin: 0;
    color: var(--ae-text-soft);
    font-size: clamp(15px, 1.25vw, 18px);
    line-height: 1.72;
}
.ae-post-page .ae-post-meta {
    margin-top: 30px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.ae-post-page .ae-post-meta > * {
    min-height: 34px;
    padding: 0 11px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--ae-line);
    border-radius: 999px;
    color: var(--ae-muted);
    background: color-mix(in srgb, var(--ae-surface-2) 72%, transparent);
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.ae-post-page .ae-post-meta a:hover { color: var(--ae-text); border-color: var(--ae-line-strong); }
.ae-post-page .ae-post-meta i { color: var(--ae-accent-2); }

.ae-post-page .ae-post-hero__media {
    position: relative;
    min-width: 0;
    min-height: 100%;
    overflow: hidden;
    border-left: 1px solid var(--ae-line);
    background: #0b0b10;
    text-decoration: none;
}
.ae-post-page .ae-post-hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(9,9,13,.38), transparent 32%),
        linear-gradient(180deg, transparent 60%, rgba(9,9,13,.58));
}
.ae-post-page .ae-post-hero__media img {
    width: 100%;
    height: 100%;
    min-height: clamp(500px, 56vw, 650px);
    display: block;
    object-fit: cover;
    object-position: left;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .5s ease;
}
.ae-post-page .ae-post-hero__media:hover img { transform: scale(1.035); filter: saturate(1.06); }
.ae-post-page .ae-post-hero__media > span {
    position: absolute;
    z-index: 2;
    right: 24px;
    bottom: 22px;
    min-height: 38px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    color: #fff;
    background: rgba(9,9,13,.56);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    font-size: 10px;
    font-weight: 800;
}
.ae-post-page .ae-post-hero__media > span i { color: var(--ae-accent-2); font-style: normal; }
.ae-post-page .ae-post-hero--no-image { grid-template-columns: minmax(0, 1fr) 38%; }
.ae-post-page .ae-post-hero__visual {
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-left: 1px solid var(--ae-line);
    background:
        radial-gradient(circle at 30% 22%, rgba(167,139,250,.24), transparent 30%),
        radial-gradient(circle at 72% 70%, rgba(103,232,249,.15), transparent 29%),
        #101017;
}
.ae-post-page .ae-post-hero__visual::before,
.ae-post-page .ae-post-hero__visual::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 50%;
}
.ae-post-page .ae-post-hero__visual::before { width: 420px; height: 420px; }
.ae-post-page .ae-post-hero__visual::after { width: 265px; height: 265px; }
.ae-post-page .ae-post-hero__terminal {
    position: relative;
    z-index: 2;
    width: min(310px, 78%);
    padding: 25px;
    display: grid;
    gap: 20px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 22px;
    color: #d8d4e0;
    background: rgba(10,10,15,.72);
    box-shadow: 0 32px 80px rgba(0,0,0,.34);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.ae-post-page .ae-post-hero__terminal span { color: var(--ae-accent-2); font-size: 12px; }
.ae-post-page .ae-post-hero__terminal b { font-size: 15px; line-height: 1.7; }
.ae-post-page .ae-post-hero__terminal i { color: var(--ae-accent); font-size: 12px; font-style: normal; }

.ae-post-page .ae-post-layout {
    margin-top: clamp(52px, 7vw, 92px);
    display: grid;
    grid-template-columns: var(--ae-post-rail-width) minmax(0, var(--ae-reading-width));
    justify-content: center;
    align-items: start;
    gap: clamp(32px, 5vw, 64px);
}
.ae-post-page .ae-post-column { min-width: 0; }
.ae-post-page .ae-post-rail { min-width: 0; }
.ae-post-page .ae-post-rail__sticky {
    position: sticky;
    top: calc(var(--ae-header-h) + 26px);
    display: grid;
    gap: 14px;
}
.ae-post-page .ae-post-back {
    min-height: 42px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--ae-line);
    border-radius: 12px;
    color: var(--ae-text-soft);
    background: var(--ae-surface);
    box-shadow: var(--ae-shadow-soft);
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
    transition: border-color .18s ease, color .18s ease, transform .18s ease;
}
.ae-post-page .ae-post-back:hover { color: var(--ae-accent-2); border-color: var(--ae-line-strong); transform: translateX(-2px); }
.ae-post-page .ae-post-rail__stat {
    padding: 13px 2px;
    display: grid;
    gap: 3px;
    border-bottom: 1px solid var(--ae-line);
}
.ae-post-page .ae-post-rail__stat small,
.ae-post-page .ae-post-rail__share > span {
    color: var(--ae-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 8px;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.ae-post-page .ae-post-rail__stat strong { color: var(--ae-text); font-size: 15px; letter-spacing: -.02em; }
.ae-post-page .ae-post-rail__share { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.ae-post-page .ae-post-rail__share > span { width: 100%; margin-bottom: 2px; }
.ae-post-page .ae-post-rail__share a,
.ae-post-page .ae-post-rail__share button {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--ae-line);
    border-radius: 11px;
    color: var(--ae-muted);
    background: var(--ae-surface);
    text-decoration: none;
    cursor: pointer;
    transition: color .18s ease, border-color .18s ease, transform .18s ease, background .18s ease;
}
.ae-post-page .ae-post-rail__share a:hover,
.ae-post-page .ae-post-rail__share button:hover {
    color: var(--ae-text);
    border-color: var(--ae-line-strong);
    background: var(--ae-accent-soft);
    transform: translateY(-2px);
}

/* Long-form typography */
.ae-post-page .ae-post-content {
    min-width: 0;
    display: block;
    color: var(--ae-text-soft);
    font-size: clamp(17px, 1.45vw, 19px);
    line-height: 1.88;
    counter-reset: ae-section;
}
.ae-post-page .ae-post-content > *:first-child { margin-top: 0; }
.ae-post-page .ae-post-content > p:first-child {
    margin-bottom: 2.1em;
    padding: 20px 0 20px 24px;
    border-left: 3px solid var(--ae-accent);
    color: var(--ae-text);
    font-size: clamp(19px, 1.75vw, 23px);
    line-height: 1.68;
}
.ae-post-page .ae-post-content p { margin: 0 0 1.45em; color: var(--ae-text-soft); }
.ae-post-page .ae-post-content h2 {
    position: relative;
    margin: 2.5em 0 .82em;
    padding-top: 1.2em;
    border-top: 1px solid var(--ae-line);
    color: var(--ae-text);
    font-size: clamp(30px, 3.7vw, 46px);
    line-height: 1.08;
    letter-spacing: -.052em;
    text-wrap: balance;
}
.ae-post-page .ae-post-content h2::before {
    counter-increment: ae-section;
    content: "0" counter(ae-section);
    position: absolute;
    top: 18px;
    right: 0;
    color: var(--ae-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: .12em;
}
.ae-post-page .ae-post-content h3 {
    margin: 2.1em 0 .72em;
    color: var(--ae-text);
    font-size: clamp(23px, 2.7vw, 32px);
    line-height: 1.16;
    letter-spacing: -.038em;
}
.ae-post-page .ae-post-content h4 {
    margin: 1.8em 0 .65em;
    color: var(--ae-text);
    font-size: 20px;
    line-height: 1.24;
}
.ae-post-page .ae-post-content strong { color: var(--ae-text); font-weight: 800; }
.ae-post-page .ae-post-content a {
    color: var(--ae-accent-2);
    text-decoration-color: color-mix(in srgb, var(--ae-accent-2) 46%, transparent);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}
.ae-post-page .ae-post-content a:hover { color: var(--ae-accent); text-decoration-color: currentColor; }
.ae-post-page .ae-post-content ul,
.ae-post-page .ae-post-content ol {
    margin: 0 0 1.7em;
    padding: 0;
    display: grid;
    gap: .65em;
    list-style: none;
    color: var(--ae-text-soft);
}
.ae-post-page .ae-post-content li { position: relative; margin: 0; padding-left: 28px; }
.ae-post-page .ae-post-content ul > li::before {
    content: "";
    position: absolute;
    left: 5px;
    top: .72em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ae-accent), var(--ae-accent-2));
    box-shadow: 0 0 12px var(--ae-glow);
}
.ae-post-page .ae-post-content ol { counter-reset: ae-list; }
.ae-post-page .ae-post-content ol > li { counter-increment: ae-list; }
.ae-post-page .ae-post-content ol > li::before {
    content: counter(ae-list, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: .1em;
    color: var(--ae-accent);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 10px;
    font-weight: 800;
}
.ae-post-page .ae-post-content blockquote,
.ae-post-page .ae-post-content .quote {
    position: relative;
    margin: 2.1em 0;
    padding: 30px 34px 30px 74px;
    overflow: hidden;
    border: 1px solid var(--ae-line);
    border-left: 0;
    border-radius: 22px;
    color: var(--ae-text);
    background:
        radial-gradient(circle at 0 0, var(--ae-accent-soft), transparent 48%),
        var(--ae-surface);
    box-shadow: var(--ae-shadow-soft);
}
.ae-post-page .ae-post-content blockquote::before,
.ae-post-page .ae-post-content .quote::before {
    content: "“";
    position: absolute;
    left: 24px;
    top: 14px;
    color: var(--ae-accent);
    font-family: Georgia, serif;
    font-size: 60px;
    line-height: 1;
}
.ae-post-page .ae-post-content blockquote p:last-child { margin-bottom: 0; }
.ae-post-page .ae-post-content img,
.ae-post-page .ae-post-content .post-content-image,
.ae-post-page .ae-post-content video {
    width: 100%;
    max-height: none;
    margin: .7em 0 1.8em;
    display: block;
    object-fit: contain;
    border: 1px solid var(--ae-line);
    border-radius: 22px;
    background: var(--ae-surface);
    box-shadow: var(--ae-shadow-soft);
}
.ae-post-page .ae-post-content a:has(> img) { display: block; text-decoration: none; }
.ae-post-page .ae-post-content pre {
    position: relative;
    margin: 2em 0;
    padding: 25px 26px;
    overflow: auto;
    border: 1px solid var(--ae-line);
    border-radius: 20px;
    color: #ded9e9;
    background: #0b0b10;
    box-shadow: var(--ae-shadow-soft);
    font-size: 14px;
    line-height: 1.75;
}
[data-theme="light"] .ae-post-page .ae-post-content pre { color: #ece9f1; }
.ae-post-page .ae-post-content code {
    padding: .14em .4em;
    border: 1px solid var(--ae-line);
    border-radius: 7px;
    color: var(--ae-text);
    background: var(--ae-surface-3);
    font-size: .9em;
}
.ae-post-page .ae-post-content pre code { padding: 0; border: 0; color: inherit; background: transparent; }
.ae-post-page .ae-post-content table {
    width: 100%;
    margin: 2em 0;
    overflow: hidden;
    border: 1px solid var(--ae-line);
    border-radius: 17px;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--ae-surface);
    font-size: 14px;
}
.ae-post-page .ae-post-content th,
.ae-post-page .ae-post-content td { padding: 14px 16px; border-bottom: 1px solid var(--ae-line); }
.ae-post-page .ae-post-content tr:last-child td { border-bottom: 0; }
.ae-post-page .ae-post-content th { color: var(--ae-text); background: var(--ae-surface-2); }
.ae-post-page .ae-post-content hr { margin: 3em 0; border: 0; border-top: 1px solid var(--ae-line); }

/* Shared post sections */
.ae-post-page .ae-post-section,
.ae-post-page .share-block,
.ae-post-page .author-block,
.ae-post-page .comments-section,
.ae-post-page .ae-post-reactions {
    margin: clamp(54px, 7vw, 82px) 0 0;
}
.ae-post-page .ae-post-section__eyebrow {
    display: block;
    margin-bottom: 8px;
    color: var(--ae-accent-2);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.ae-post-page .ae-post-section__head {
    margin-bottom: 24px;
    padding-bottom: 20px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--ae-line);
}
.ae-post-page .ae-post-section__head h2,
.ae-post-page .share-block h2,
.ae-post-page .ae-post-reactions h2,
.ae-post-page .comments-section h2,
.ae-post-page .author-block h2 {
    margin: 0;
    color: var(--ae-text);
    font-size: clamp(28px, 3.6vw, 42px);
    line-height: 1.06;
    letter-spacing: -.048em;
}
.ae-post-page .ae-post-section__head > span {
    color: var(--ae-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 9px;
    white-space: nowrap;
}

/* Reactions */
.ae-post-page .ae-post-reactions {
    padding: clamp(24px, 4vw, 38px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    overflow: hidden;
    border: 1px solid var(--ae-line);
    border-radius: 26px;
    background:
        radial-gradient(circle at 0 100%, rgba(103,232,249,.09), transparent 34%),
        radial-gradient(circle at 100% 0, var(--ae-accent-soft), transparent 40%),
        var(--ae-surface);
    box-shadow: var(--ae-shadow-soft);
}
.ae-post-page .ae-post-reactions p { margin: 10px 0 0; color: var(--ae-muted); font-size: 13px; }
.ae-post-page .reactions-container {
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
}
.ae-post-page .reaction-btn {
    min-width: 58px;
    min-height: 50px;
    padding: 6px 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid var(--ae-line);
    border-radius: 15px;
    color: var(--ae-text);
    background: var(--ae-surface-2);
    box-shadow: inset 0 1px rgba(255,255,255,.04);
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.ae-post-page .reaction-btn > span { font-size: 20px; }
.ae-post-page .reaction-btn .count { min-width: 12px; color: var(--ae-muted); font-size: 10px; }
.ae-post-page .reaction-btn:hover { transform: translateY(-2px); border-color: var(--ae-line-strong); background: var(--ae-surface-3); }
.ae-post-page .reaction-btn.active { border-color: color-mix(in srgb, var(--ae-accent) 70%, transparent); background: var(--ae-accent-soft); box-shadow: 0 8px 24px var(--ae-glow); }
.ae-post-page .reaction-btn.active .count { color: var(--ae-accent-2); }

/* Gallery */
.ae-post-page .gallery__grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: 122px;
    gap: 12px;
}
.ae-post-page .gallery__item {
    grid-column: span 4;
    grid-row: span 2;
    position: relative;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--ae-line);
    border-radius: 19px;
    background: var(--ae-surface);
    box-shadow: var(--ae-shadow-soft);
}
.ae-post-page .gallery__item:first-child { grid-column: span 8; grid-row: span 3; }
.ae-post-page .gallery__item:nth-child(4n + 4) { grid-column: span 8; }
.ae-post-page .gallery__item a { position: absolute; inset: 0; display: block; }
.ae-post-page .gallery__image {
    width: 100%;
    height: 100%;
    max-height: none;
    display: block;
    object-fit: cover;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transition: transform .5s cubic-bezier(.2,.7,.2,1), filter .4s ease;
}
.ae-post-page .gallery__item:hover .gallery__image { transform: scale(1.045); filter: saturate(1.08); }
.ae-post-page .gallery__item a > span {
    position: absolute;
    right: 12px;
    top: 12px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 11px;
    color: #fff;
    background: rgba(9,9,13,.54);
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity .18s ease, transform .18s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.ae-post-page .gallery__item:hover a > span { opacity: 1; transform: translateY(0); }
.ae-post-page .gallery__item figcaption {
    position: absolute;
    z-index: 2;
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 9px 11px;
    border-radius: 10px;
    color: #fff;
    background: rgba(9,9,13,.65);
    font-size: 10px;
    pointer-events: none;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

/* Downloads */
.ae-post-page .archives__grid { display: grid; gap: 10px; }
.ae-post-page .archives__card {
    min-height: 92px;
    padding: 15px 17px;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    overflow: visible;
    border: 1px solid var(--ae-line);
    border-radius: 18px;
    background: var(--ae-surface);
    box-shadow: var(--ae-shadow-soft);
    transition: border-color .18s ease, transform .18s ease;
}
.ae-post-page .archives__card:hover { transform: translateY(-2px); border-color: var(--ae-line-strong); }
.ae-post-page .archives__card-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: var(--ae-accent-2);
    background: linear-gradient(145deg, var(--ae-accent-soft), var(--ae-surface-2));
    font-size: 21px;
}
.ae-post-page .archives__card-info { min-width: 0; display: grid; gap: 5px; }
.ae-post-page .archives__card-name { color: var(--ae-text); font-size: 14px; font-weight: 800; overflow-wrap: anywhere; }
.ae-post-page .archives__card-size { color: var(--ae-muted); font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 9px; text-transform: uppercase; }
.ae-post-page .archives__card-button {
    min-height: 42px;
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border-radius: 12px;
    color: #100b1b;
    background: linear-gradient(135deg, var(--ae-accent), var(--ae-accent-3));
    box-shadow: 0 10px 25px var(--ae-glow);
    font-size: 11px;
    font-weight: 900;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease;
}
.ae-post-page .archives__card-button:hover { transform: translateY(-1px); box-shadow: 0 14px 34px var(--ae-glow); }

/* Full share panel */
.ae-post-page .share-block {
    padding: clamp(24px, 4vw, 40px);
    display: grid;
    grid-template-columns: minmax(220px, .75fr) minmax(0, 1.25fr);
    align-items: center;
    gap: 35px;
    border: 1px solid var(--ae-line);
    border-radius: 26px;
    background: var(--ae-surface);
    box-shadow: var(--ae-shadow-soft);
}
.ae-post-page .share-block__copy p { margin: 12px 0 0; color: var(--ae-muted); font-size: 13px; line-height: 1.6; }
.ae-post-page .share-block__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}
.ae-post-page .share-block__action {
    min-height: 48px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 11px;
    border: 1px solid var(--ae-line);
    border-radius: 13px;
    color: var(--ae-text-soft);
    background: var(--ae-surface-2);
    text-decoration: none;
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
    transition: transform .18s ease, color .18s ease, border-color .18s ease, background .18s ease;
}
.ae-post-page .share-block__action i { width: 18px; color: var(--ae-muted); font-size: 17px; text-align: center; transition: color .18s ease; }
.ae-post-page .share-block__action:hover { transform: translateY(-2px); color: var(--ae-text); border-color: var(--ae-line-strong); background: var(--ae-surface-3); }
.ae-post-page .share-block__action:hover i { color: var(--ae-accent-2); }
.ae-post-page .share-block__action.vk-action:hover i { color: #4c91d7; }
.ae-post-page .share-block__action.telegram-action:hover i { color: #2aabee; }
.ae-post-page .share-block__action.ok-action:hover i { color: #ee8208; }
.ae-post-page .share-block__action.whatsapp-action:hover i { color: #25d366; }
.ae-post-page .native-share { display: none; }
.ae-post-page .native-share.is-supported { display: flex; }

/* Author */
.ae-post-page .author-block {
    position: relative;
    padding: clamp(24px, 4vw, 38px);
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr) auto;
    align-items: center;
    gap: 22px;
    overflow: hidden;
    border: 1px solid var(--ae-line);
    border-radius: 26px;
    background:
        radial-gradient(circle at 0 100%, rgba(167,139,250,.11), transparent 38%),
        var(--ae-surface);
    box-shadow: var(--ae-shadow-soft);
}
.ae-post-page .author-block::after {
    content: "A/B";
    position: absolute;
    right: 22px;
    bottom: -22px;
    color: color-mix(in srgb, var(--ae-text) 4%, transparent);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 92px;
    font-weight: 900;
    line-height: 1;
    pointer-events: none;
}
.ae-post-page .author-block__avatar {
    position: relative;
    z-index: 1;
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    object-fit: cover;
    border: 1px solid var(--ae-line-strong);
    border-radius: 24px;
    background: linear-gradient(145deg, var(--ae-accent-soft), var(--ae-surface-2));
    box-shadow: 0 14px 35px rgba(0,0,0,.17);
}
.ae-post-page .author-block__avatar--fallback { color: var(--ae-accent-2); font-size: 32px; font-weight: 900; }
.ae-post-page .author-block__info { position: relative; z-index: 1; min-width: 0; }
.ae-post-page .author-block h2 { font-size: 27px; }
.ae-post-page .author-block h2 a { color: inherit; text-decoration: none; }
.ae-post-page .author-block__bio { max-width: 590px; margin: 9px 0 0; color: var(--ae-muted); font-size: 12px; line-height: 1.65; }
.ae-post-page .author-block__link {
    position: relative;
    z-index: 1;
    min-height: 42px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--ae-line);
    border-radius: 12px;
    color: var(--ae-text-soft);
    background: var(--ae-surface-2);
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
}
.ae-post-page .author-block__link span { color: var(--ae-accent-2); }

/* Previous / next */
.ae-post-page .ae-post-neighbors {
    margin-top: clamp(54px, 7vw, 82px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.ae-post-page .ae-post-neighbors > a {
    position: relative;
    min-height: 135px;
    padding: 22px 54px 22px 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    overflow: hidden;
    border: 1px solid var(--ae-line);
    border-radius: 19px;
    background: var(--ae-surface);
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.ae-post-page .ae-post-neighbors > a:nth-child(2) { padding: 22px 22px 22px 54px; text-align: right; }
.ae-post-page .ae-post-neighbors > a:hover { transform: translateY(-2px); border-color: var(--ae-line-strong); background: var(--ae-surface-2); }
.ae-post-page .ae-post-neighbors small { color: var(--ae-accent-2); font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 8px; letter-spacing: .09em; text-transform: uppercase; }
.ae-post-page .ae-post-neighbors strong { color: var(--ae-text); font-size: 13px; line-height: 1.45; }
.ae-post-page .ae-post-neighbors > a > span {
    position: absolute;
    right: 20px;
    top: 50%;
    color: var(--ae-muted);
    font-size: 22px;
    transform: translateY(-50%);
}
.ae-post-page .ae-post-neighbors > a:nth-child(2) > span { right: auto; left: 20px; }

/* Comments */
.ae-post-page .comments-section {
    padding: clamp(24px, 4.5vw, 42px);
    border: 1px solid var(--ae-line);
    border-radius: 28px;
    background: var(--ae-surface);
    box-shadow: var(--ae-shadow-soft);
    scroll-margin-top: calc(var(--ae-header-h) + 28px);
}
.ae-post-page .ae-comments-head {
    padding-bottom: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    border-bottom: 1px solid var(--ae-line);
}
.ae-post-page .comments-section h2 sup { color: var(--ae-accent-2); font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 11px; vertical-align: top; }
.ae-post-page .ae-comments-head > p { max-width: 270px; margin: 0; color: var(--ae-muted); font-size: 11px; text-align: right; }
.ae-post-page .ae-comments-list { margin-top: 24px; display: grid; gap: 12px; }
.ae-post-page .ae-comments-empty {
    min-height: 190px;
    padding: 30px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 6px;
    border: 1px dashed var(--ae-line-strong);
    border-radius: 20px;
    color: var(--ae-muted);
    background: var(--ae-surface-2);
    text-align: center;
}
.ae-post-page .ae-comments-empty > span { font-size: 28px; filter: grayscale(.35); }
.ae-post-page .ae-comments-empty strong { color: var(--ae-text); font-size: 16px; }
.ae-post-page .ae-comments-empty p { margin: 0; color: var(--ae-muted); font-size: 11px; }
.ae-post-page .ae-comment {
    position: relative;
    overflow: visible;
    margin: 0;
    padding: 18px;
    border: 1px solid var(--ae-line);
    border-radius: 17px;
    background: var(--ae-surface-2);
    box-shadow: none;
}
.ae-post-page .ae-comment--depth-1 { margin-left: 26px; }
.ae-post-page .ae-comment--depth-2 { margin-left: 52px; }
.ae-post-page .ae-comment--depth-3 { margin-left: 78px; }
.ae-post-page .ae-comment.admin-comment { border-color: color-mix(in srgb, var(--ae-accent) 46%, var(--ae-line)); background: linear-gradient(135deg, var(--ae-accent-soft), var(--ae-surface-2)); }
.ae-post-page .comment-header { margin-bottom: 14px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.ae-post-page .ae-comment__author { display: flex; align-items: center; gap: 10px; }
.ae-post-page .ae-comment__avatar {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid var(--ae-line);
    border-radius: 11px;
    color: var(--ae-accent-2);
    background: var(--ae-surface);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}
.ae-post-page .ae-comment__author > div { display: grid; gap: 1px; }
.ae-post-page .comment-author { color: var(--ae-text); font-size: 12px; }
.ae-post-page .ae-comment__author small { color: var(--ae-accent); font-size: 8px; }
.ae-post-page .comment-date { color: var(--ae-muted); font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 8px; white-space: nowrap; }
.ae-post-page .comment-content { color: var(--ae-text-soft); font-size: 13px; line-height: 1.7; }
.ae-post-page .reply-to { margin: 13px 8px 0 0; padding: 6px 9px; border: 1px solid var(--ae-line); border-radius: 999px; color: var(--ae-muted); background: var(--ae-surface); font-size: 8px; }
.ae-post-page .reply-btn { margin-top: 12px; padding: 0; border: 0; color: var(--ae-accent-2); background: transparent; cursor: pointer; font-size: 9px; font-weight: 800; }

.ae-post-page .ae-comment-form {
    margin-top: 28px;
    padding-top: 27px;
    display: grid;
    gap: 18px;
    border-top: 1px solid var(--ae-line);
}
.ae-post-page .ae-comment-form__head { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.ae-post-page .ae-comment-form__head strong { color: var(--ae-text); font-size: 16px; }
.ae-post-page #reply-status { color: var(--ae-accent-2); font-size: 9px; }
.ae-post-page .comment-input-group { position: relative; display: grid; gap: 8px; }
.ae-post-page .comment-input-group > span { color: var(--ae-muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ae-post-page .comment-input-group input,
.ae-post-page .comment-input-group textarea {
    width: 100%;
    min-height: 50px;
    padding: 13px 15px;
    border: 1px solid var(--ae-line);
    border-radius: 14px;
    color: var(--ae-text);
    background: var(--ae-surface-2);
    outline: 0;
    resize: vertical;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.ae-post-page .comment-input-group textarea { min-height: 142px; padding-right: 58px; line-height: 1.65; }
.ae-post-page .comment-input-group input:focus,
.ae-post-page .comment-input-group textarea:focus { border-color: color-mix(in srgb, var(--ae-accent) 68%, transparent); background: var(--ae-surface); box-shadow: 0 0 0 4px var(--ae-accent-soft); }
.ae-post-page .admin-indicator { color: var(--ae-accent-2) !important; font-size: 9px !important; }
.ae-post-page .emoji-picker-toggle {
    position: absolute;
    right: 10px;
    top: 35px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--ae-line);
    border-radius: 11px;
    background: var(--ae-surface);
    cursor: pointer;
}
.ae-post-page emoji-picker {
    position: absolute;
    z-index: 30;
    right: 0;
    top: 82px;
    display: none;
    max-width: min(350px, 86vw);
    --background: var(--ae-surface);
    --border-color: var(--ae-line);
    --input-border-color: var(--ae-line);
    --input-font-color: var(--ae-text);
    --input-placeholder-color: var(--ae-muted);
}
.ae-post-page emoji-picker.is-open { display: block; }
.ae-post-page .ae-comment-form__footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.ae-post-page .ae-comment-form__footer small { color: var(--ae-muted); font-size: 9px; }
.ae-post-page .ae-comment-form__footer button {
    min-height: 48px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 13px;
    color: #100b1b;
    background: linear-gradient(135deg, var(--ae-accent), var(--ae-accent-3));
    box-shadow: 0 12px 28px var(--ae-glow);
    cursor: pointer;
    font-size: 11px;
    font-weight: 900;
}
.ae-post-page .ae-comment-form__footer button:disabled { opacity: .55; cursor: wait; }

.ae-post-page .notification {
    position: fixed;
    z-index: 1500;
    left: 50%;
    bottom: 24px;
    min-width: min(360px, calc(100% - 32px));
    padding: 13px 17px;
    border: 1px solid var(--ae-line-strong);
    border-radius: 13px;
    color: var(--ae-text);
    background: color-mix(in srgb, var(--ae-surface) 90%, transparent);
    box-shadow: var(--ae-shadow);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 16px);
    transition: opacity .2s ease, transform .2s ease;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}
.ae-post-page .notification.show { opacity: 1; transform: translate(-50%, 0); }
.ae-post-page .notification.error { border-color: color-mix(in srgb, var(--ae-danger) 60%, transparent); }

@media (max-width: 1120px) {
    .ae-post-page .ae-post-hero { grid-template-columns: minmax(0, 1fr) minmax(360px, .92fr); }
    .ae-post-page .ae-post-hero h1 { font-size: clamp(40px, 5.8vw, 64px); }
    .ae-post-page .ae-post-layout { grid-template-columns: 120px minmax(0, var(--ae-reading-width)); gap: 34px; }
    .ae-post-page .ae-post-rail__stat { display: none; }
}

@media (max-width: 900px) {
    .ae-post-page .ae-post-main { padding-top: 26px; }
    .ae-post-page .ae-post-hero,
    .ae-post-page .ae-post-hero--no-image { min-height: 0; grid-template-columns: 1fr; }
    .ae-post-page .ae-post-hero__copy { padding: 42px 34px; }
    .ae-post-page .ae-post-hero h1 { font-size: clamp(38px, 8vw, 62px); }
    .ae-post-page .ae-post-hero__media { min-height: 420px; border-top: 1px solid var(--ae-line); border-left: 0; }
    .ae-post-page .ae-post-hero__media img { min-height: 420px; max-height: 560px; }
    .ae-post-page .ae-post-hero__visual { min-height: 380px; border-top: 1px solid var(--ae-line); border-left: 0; }
    .ae-post-page .ae-post-layout { grid-template-columns: 1fr; }
    .ae-post-page .ae-post-rail { display: none; }
    .ae-post-page .share-block { grid-template-columns: 1fr; }
    .ae-post-page .gallery__grid { grid-auto-rows: 105px; }
    .ae-post-page .gallery__item { grid-column: span 6; }
    .ae-post-page .gallery__item:first-child,
    .ae-post-page .gallery__item:nth-child(4n + 4) { grid-column: span 12; }
}

@media (max-width: 640px) {
    .ae-post-page .ae-post-main { padding-bottom: 78px; }
    .ae-post-page .ae-post-breadcrumb { margin-bottom: 15px; }
    .ae-post-page .ae-post-hero { border-radius: 23px; }
    .ae-post-page .ae-post-hero__copy { padding: 31px 22px 34px; }
    .ae-post-page .ae-post-hero h1 { margin-top: 14px; font-size: clamp(34px, 11vw, 48px); line-height: 1.01; }
    .ae-post-page .ae-post-hero__lead { font-size: 14px; }
    .ae-post-page .ae-post-meta { margin-top: 23px; }
    .ae-post-page .ae-post-meta > * { min-height: 31px; padding: 0 9px; font-size: 9px; }
    .ae-post-page .ae-post-hero__copy::after { margin-top: 26px; }
    .ae-post-page .ae-post-hero__media,
    .ae-post-page .ae-post-hero__media img { min-height: 270px; max-height: 380px; }
    .ae-post-page .ae-post-layout { margin-top: 46px; }
    .ae-post-page .ae-post-content { font-size: 16.5px; line-height: 1.82; }
    .ae-post-page .ae-post-content > p:first-child { padding-left: 17px; font-size: 18px; }
    .ae-post-page .ae-post-content h2 { font-size: 31px; }
    .ae-post-page .ae-post-content blockquote { padding: 25px 22px 25px 55px; }
    .ae-post-page .ae-post-content blockquote::before { left: 16px; }
    .ae-post-page .ae-post-reactions { align-items: flex-start; flex-direction: column; }
    .ae-post-page .reactions-container { justify-content: flex-start; }
    .ae-post-page .gallery__grid { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 145px; gap: 8px; }
    .ae-post-page .gallery__item,
    .ae-post-page .gallery__item:first-child,
    .ae-post-page .gallery__item:nth-child(4n + 4) { grid-column: span 1; grid-row: span 1; border-radius: 14px; }
    .ae-post-page .gallery__item:first-child { grid-column: 1 / -1; grid-row: span 2; }
    .ae-post-page .archives__card { grid-template-columns: 46px minmax(0, 1fr); }
    .ae-post-page .archives__card-icon { width: 46px; height: 46px; border-radius: 13px; }
    .ae-post-page .archives__card-button { grid-column: 1 / -1; justify-content: center; }
    .ae-post-page .share-block__actions { grid-template-columns: 1fr; }
    .ae-post-page .author-block { grid-template-columns: 70px minmax(0, 1fr); padding: 24px; }
    .ae-post-page .author-block__avatar { width: 70px; height: 70px; border-radius: 20px; }
    .ae-post-page .author-block__link { grid-column: 1 / -1; justify-content: center; }
    .ae-post-page .ae-post-neighbors { grid-template-columns: 1fr; }
    .ae-post-page .ae-post-neighbors > a:nth-child(2) { text-align: left; padding: 22px 54px 22px 22px; }
    .ae-post-page .ae-post-neighbors > a:nth-child(2) > span { left: auto; right: 20px; }
    .ae-post-page .comments-section { padding: 22px 17px; border-radius: 22px; }
    .ae-post-page .ae-comments-head { align-items: flex-start; flex-direction: column; }
    .ae-post-page .ae-comments-head > p { text-align: left; }
    .ae-post-page .ae-comment--depth-1,
    .ae-post-page .ae-comment--depth-2,
    .ae-post-page .ae-comment--depth-3 { margin-left: 12px; }
    .ae-post-page .comment-header { align-items: flex-start; flex-direction: column; gap: 8px; }
    .ae-post-page .ae-comment-form__footer { align-items: stretch; flex-direction: column; }
    .ae-post-page .ae-comment-form__footer button { justify-content: center; }
}

@media (max-width: 390px) {
    .ae-post-page .ae-post-meta > *:nth-child(3) { display: none; }
    .ae-post-page .gallery__grid { grid-template-columns: 1fr; }
    .ae-post-page .gallery__item,
    .ae-post-page .gallery__item:first-child { grid-column: 1; grid-row: span 2; }
}

@media (prefers-reduced-motion: reduce) {
    .ae-post-page .ae-reading-progress span { transition: none; }
}

/* ========================================================================== 
   Aurora Editorial 1.2 — compact article hero, media and Flow entry
   ========================================================================== */

/* Article: less billboard, more reading. */
.ae-post-page .ae-post-hero {
    min-height: 0;
    grid-template-columns: minmax(360px, .92fr) minmax(0, 1.08fr);
    border-radius: clamp(22px, 2.4vw, 32px);
}
.ae-post-page .ae-post-hero__copy {
    padding: clamp(34px, 4.4vw, 58px);
}
.ae-post-page .ae-post-hero__copy::after {
    width: 54px;
    margin-top: 24px;
}
.ae-post-page .ae-post-hero h1 {
    margin: 14px 0 17px;
    font-size: clamp(38px, 4.2vw, 38px);
    line-height: 1.01;
    letter-spacing: -.059em;
}
.ae-post-page .ae-post-hero__lead {
    display: -webkit-box;
    max-width: 590px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    font-size: clamp(14px, 1.05vw, 16px);
    line-height: 1.62;
}
.ae-post-page .ae-post-meta { margin-top: 22px; }
.ae-post-page .ae-post-hero__media { min-height: 390px; }
.ae-post-page .ae-post-hero__media img {
    min-height: 390px;
    max-height: 515px;
    object-fit: cover;
}
.ae-post-page .ae-post-layout { margin-top: clamp(42px, 5.5vw, 66px); }
.ae-post-page .ae-post-section,
.ae-post-page .share-block,
.ae-post-page .author-block,
.ae-post-page .comments-section,
.ae-post-page .ae-post-reactions { margin-top: clamp(42px, 5.5vw, 62px); }
.ae-post-page .ae-post-section__head { margin-bottom: 17px; padding-bottom: 15px; }
.ae-post-page .ae-post-section__head h2,
.ae-post-page .share-block h2,
.ae-post-page .ae-post-reactions h2,
.ae-post-page .comments-section h2,
.ae-post-page .author-block h2 { font-size: clamp(26px, 3vw, 36px); }

/* Article gallery: a compact editorial contact sheet. */
.ae-post-page .gallery__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 118px;
    gap: 9px;
}
.ae-post-page .gallery__item,
.ae-post-page .gallery__item:nth-child(4n + 4) {
    grid-column: span 1;
    grid-row: span 1;
    border-radius: 15px;
}
.ae-post-page .gallery__item:first-child {
    grid-column: span 2;
    grid-row: span 2;
}
.ae-post-page .gallery__item a > span {
    top: 9px;
    right: 9px;
    width: 32px;
    height: 32px;
    border-radius: 9px;
}
.ae-post-page .gallery__item figcaption {
    left: 9px;
    right: 9px;
    bottom: 9px;
    padding: 7px 9px;
    font-size: 9px;
}

/* Article downloads: always use the full reading column. */
.ae-post-page .archives__grid { grid-template-columns: minmax(0, 1fr); }
.ae-post-page .archives__card {
    width: 100%;
    min-height: 82px;
    padding: 13px 15px;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 14px;
    border-radius: 16px;
}
.ae-post-page .archives__card-icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    font-size: 18px;
}
.ae-post-page .archives__card-name {
    font-size: 13px;
    line-height: 1.35;
    word-break: normal;
    overflow-wrap: anywhere;
}
.ae-post-page .archives__card-button {
    min-width: 116px;
    min-height: 40px;
    justify-content: center;
}

/* Flow post page */
.ae-flow-post-page { --ae-flow-width: 790px; --ae-flow-rail: 142px; }
.ae-flow-post-page .ae-reading-progress {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1300;
    height: 3px;
    pointer-events: none;
}
.ae-flow-post-page .ae-reading-progress span {
    display: block;
    width: 100%;
    height: 100%;
    transform: scaleX(0);
    transform-origin: 0 50%;
    background: linear-gradient(90deg, var(--ae-accent), var(--ae-accent-2), var(--ae-accent-3));
    box-shadow: 0 0 16px var(--ae-glow);
}
.ae-flow-post-page .ae-flow-post-main { padding: clamp(28px, 4vw, 54px) 0 100px; }
.ae-flow-post-page .ae-flow-post-wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.ae-flow-post-page .ae-flow-breadcrumb {
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--ae-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 9px;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.ae-flow-post-page .ae-flow-breadcrumb a { color: var(--ae-text-soft); text-decoration: none; }
.ae-flow-post-page .ae-flow-breadcrumb a:hover { color: var(--ae-accent-2); }
.ae-flow-post-page .ae-flow-breadcrumb > span[aria-hidden] { opacity: .4; }
.ae-flow-post-page .ae-flow-entry {
    /* Reset the timeline card layout used on /flow. Without this reset the
       single post is forced into the 108px date column from style.css. */
    position: static;
    display: block;
    grid-template-columns: none;
    gap: 0;
    width: 100%;
    overflow: visible;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transition: none;
}
.ae-flow-post-page .ae-flow-hero {
    /* Reset the large index-page hero padding inherited from style.css. */
    position: relative;
    min-height: 0;
    width: 100%;
    padding: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(330px, .78fr);
    overflow: hidden;
    border: 1px solid var(--ae-line);
    border-radius: clamp(22px, 2.7vw, 32px);
    background:
        radial-gradient(circle at 8% 0, rgba(103,232,249,.10), transparent 32rem),
        radial-gradient(circle at 82% 100%, rgba(167,139,250,.13), transparent 28rem),
        var(--ae-surface);
    box-shadow: var(--ae-shadow);
}
.ae-flow-post-page .ae-flow-hero--no-image { grid-template-columns: minmax(0, 1fr) minmax(260px, .42fr); }
.ae-flow-post-page .ae-flow-hero__copy {
    min-width: 0;
    padding: clamp(34px, 5vw, 62px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.ae-flow-post-page .ae-flow-hero h1 {
    max-width: 720px;
    margin: 15px 0 16px;
    color: var(--ae-text);
    font-size: clamp(38px, 4.7vw, 38px);
    line-height: 1.01;
    letter-spacing: -.06em;
    text-wrap: balance;
    overflow-wrap: anywhere;
}
.ae-flow-post-page .ae-flow-hero__copy > p {
    max-width: 610px;
    margin: 0;
    color: var(--ae-text-soft);
    font-size: 15px;
    line-height: 1.68;
}
.ae-flow-post-page .ae-flow-meta {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
.ae-flow-post-page .ae-flow-meta > * {
    min-height: 33px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--ae-line);
    border-radius: 999px;
    color: var(--ae-muted);
    background: color-mix(in srgb, var(--ae-surface-2) 75%, transparent);
    font-size: 9px;
    font-weight: 700;
    text-decoration: none;
}
.ae-flow-post-page .ae-flow-meta i { color: var(--ae-accent-2); }
.ae-flow-post-page .ae-flow-hero__media {
    position: relative;
    min-width: 0;
    min-height: 360px;
    overflow: hidden;
    border-left: 1px solid var(--ae-line);
    background: var(--ae-bg-soft);
}
.ae-flow-post-page .ae-flow-hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 62%, rgba(7,7,11,.55));
}
.ae-flow-post-page .ae-flow-hero__media img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    max-height: 460px;
    display: block;
    object-fit: cover;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transition: transform .55s cubic-bezier(.2,.7,.2,1);
}
.ae-flow-post-page .ae-flow-hero__media:hover img { transform: scale(1.035); }
.ae-flow-post-page .ae-flow-hero__media > span {
    position: absolute;
    z-index: 2;
    right: 16px;
    bottom: 15px;
    min-height: 35px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    color: #fff;
    background: rgba(8,8,12,.55);
    backdrop-filter: blur(10px);
    font-size: 9px;
    font-weight: 800;
}
.ae-flow-post-page .ae-flow-hero__visual {
    min-height: 360px;
    display: grid;
    place-content: center;
    gap: 13px;
    border-left: 1px solid var(--ae-line);
    color: var(--ae-muted);
    background:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
        var(--ae-bg-soft);
    background-size: 28px 28px;
    text-align: center;
}
.ae-flow-post-page .ae-flow-hero__visual span { color: var(--ae-accent-2); font-size: 56px; font-weight: 900; letter-spacing: -.08em; }
.ae-flow-post-page .ae-flow-hero__visual b { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; letter-spacing: .08em; }
.ae-flow-post-page .ae-flow-layout {
    margin-top: clamp(38px, 5vw, 62px);
    display: grid;
    grid-template-columns: var(--ae-flow-rail) minmax(0, var(--ae-flow-width));
    justify-content: center;
    align-items: start;
    gap: clamp(28px, 4vw, 52px);
}
.ae-flow-post-page .ae-flow-rail__sticky { position: sticky; top: calc(var(--ae-header-h) + 24px); display: grid; gap: 15px; }
.ae-flow-post-page .ae-flow-back {
    min-height: 42px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--ae-line);
    border-radius: 12px;
    color: var(--ae-text-soft);
    background: var(--ae-surface);
    box-shadow: var(--ae-shadow-soft);
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
}
.ae-flow-post-page .ae-flow-back:hover { color: var(--ae-accent-2); border-color: var(--ae-line-strong); }
.ae-flow-post-page .ae-flow-rail__label,
.ae-flow-post-page .ae-flow-media-section header span,
.ae-flow-post-page .ae-flow-reactions > div > span,
.ae-flow-post-page .ae-flow-share > div > span,
.ae-flow-post-page .ae-flow-author small,
.ae-flow-post-page .ae-flow-comments__head > div > span {
    color: var(--ae-accent-2);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.ae-flow-post-page .ae-flow-rail__actions { display: flex; flex-wrap: wrap; gap: 7px; }
.ae-flow-post-page .ae-flow-rail__actions a,
.ae-flow-post-page .ae-flow-rail__actions button {
    width: 36px;
    height: 36px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 1px solid var(--ae-line);
    border-radius: 11px;
    color: var(--ae-muted);
    background: var(--ae-surface);
    cursor: pointer;
    text-decoration: none;
}
.ae-flow-post-page .ae-flow-rail__actions a:hover,
.ae-flow-post-page .ae-flow-rail__actions button:hover { color: var(--ae-text); border-color: var(--ae-line-strong); background: var(--ae-accent-soft); }
.ae-flow-post-page .ae-flow-column { min-width: 0; }
.ae-flow-post-page .ae-flow-content {
    display: block;
    min-width: 0;
    padding: clamp(28px, 4.6vw, 46px);
    border: 1px solid var(--ae-line);
    border-radius: 24px;
    color: var(--ae-text-soft);
    background: var(--ae-surface);
    box-shadow: var(--ae-shadow-soft);
    font-size: clamp(16px, 1.35vw, 18px);
    line-height: 1.82;
}
.ae-flow-post-page .ae-flow-content > *:first-child { margin-top: 0; }
.ae-flow-post-page .ae-flow-content > *:last-child { margin-bottom: 0; }
.ae-flow-post-page .ae-flow-content p { margin: 0 0 1.25em; color: var(--ae-text-soft); }
.ae-flow-post-page .ae-flow-content h2,
.ae-flow-post-page .ae-flow-content h3,
.ae-flow-post-page .ae-flow-content h4 { color: var(--ae-text); letter-spacing: -.04em; }
.ae-flow-post-page .ae-flow-content h2 { margin: 2em 0 .7em; font-size: clamp(27px, 3.2vw, 38px); }
.ae-flow-post-page .ae-flow-content h3 { margin: 1.8em 0 .65em; font-size: clamp(22px, 2.5vw, 29px); }
.ae-flow-post-page .ae-flow-content a { color: var(--ae-accent-2); text-underline-offset: 4px; }
.ae-flow-post-page .ae-flow-content img,
.ae-flow-post-page .ae-flow-content .post-content-image {
    width: 100%;
    max-height: 620px;
    margin: 1.45em 0;
    object-fit: contain;
    border: 1px solid var(--ae-line);
    border-radius: 17px;
    background: var(--ae-bg-soft);
    box-shadow: var(--ae-shadow-soft);
}
.ae-flow-post-page .ae-flow-content blockquote {
    margin: 1.6em 0;
    padding: 20px 22px;
    border-left: 3px solid var(--ae-accent);
    border-radius: 0 15px 15px 0;
    background: var(--ae-accent-soft);
}
.ae-flow-post-page .ae-flow-content pre { overflow: auto; padding: 18px; border: 1px solid var(--ae-line); border-radius: 15px; background: var(--ae-bg-soft); }
.ae-flow-post-page .ae-flow-content code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.ae-flow-post-page .ae-flow-media-section,
.ae-flow-post-page .ae-flow-reactions,
.ae-flow-post-page .ae-flow-share,
.ae-flow-post-page .ae-flow-author,
.ae-flow-post-page .ae-flow-comments { margin-top: clamp(38px, 5vw, 58px); }
.ae-flow-post-page .ae-flow-media-section header,
.ae-flow-post-page .ae-flow-comments__head {
    margin-bottom: 16px;
    padding-bottom: 15px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--ae-line);
}
.ae-flow-post-page .ae-flow-media-section h2,
.ae-flow-post-page .ae-flow-reactions h2,
.ae-flow-post-page .ae-flow-share h2,
.ae-flow-post-page .ae-flow-author h2,
.ae-flow-post-page .ae-flow-comments h2 {
    margin: 6px 0 0;
    color: var(--ae-text);
    font-size: clamp(25px, 3vw, 35px);
    line-height: 1.08;
    letter-spacing: -.045em;
}
.ae-flow-post-page .ae-flow-media-section header small { color: var(--ae-muted); }
.ae-flow-post-page .ae-flow-video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ae-flow-post-page .ae-flow-video-grid video { width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--ae-line); border-radius: 17px; background: #000; box-shadow: var(--ae-shadow-soft); }
.ae-flow-post-page .ae-flow-reactions {
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border: 1px solid var(--ae-line);
    border-radius: 22px;
    background: radial-gradient(circle at 100% 0, var(--ae-accent-soft), transparent 42%), var(--ae-surface);
    box-shadow: var(--ae-shadow-soft);
}
.ae-flow-post-page .reactions-container { margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; border: 0; background: transparent; }
.ae-flow-post-page .reaction-btn {
    min-width: 54px;
    min-height: 46px;
    padding: 5px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid var(--ae-line);
    border-radius: 14px;
    color: var(--ae-text);
    background: var(--ae-surface-2);
    cursor: pointer;
}
.ae-flow-post-page .reaction-btn > span { font-size: 19px; }
.ae-flow-post-page .reaction-btn .count { color: var(--ae-muted); font-size: 9px; }
.ae-flow-post-page .reaction-btn:hover { transform: translateY(-2px); border-color: var(--ae-line-strong); }
.ae-flow-post-page .reaction-btn.active { border-color: color-mix(in srgb, var(--ae-accent) 70%, transparent); background: var(--ae-accent-soft); box-shadow: 0 8px 22px var(--ae-glow); }
.ae-flow-post-page .ae-flow-share {
    padding: 24px;
    display: grid;
    grid-template-columns: minmax(190px, .75fr) minmax(0, 1.25fr);
    align-items: center;
    gap: 24px;
    border: 1px solid var(--ae-line);
    border-radius: 22px;
    background: var(--ae-surface);
    box-shadow: var(--ae-shadow-soft);
}
.ae-flow-post-page .ae-flow-share__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ae-flow-post-page .ae-flow-share__actions a,
.ae-flow-post-page .ae-flow-share__actions button {
    min-height: 44px;
    padding: 0 13px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--ae-line);
    border-radius: 12px;
    color: var(--ae-text-soft);
    background: var(--ae-surface-2);
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}
.ae-flow-post-page .ae-flow-share__actions a:hover,
.ae-flow-post-page .ae-flow-share__actions button:hover { color: var(--ae-text); border-color: var(--ae-line-strong); background: var(--ae-accent-soft); }
.ae-flow-post-page .ae-flow-author {
    position: relative;
    padding: 25px;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    border: 1px solid var(--ae-line);
    border-radius: 22px;
    background: radial-gradient(circle at 0 100%, rgba(167,139,250,.10), transparent 38%), var(--ae-surface);
    box-shadow: var(--ae-shadow-soft);
}
.ae-flow-post-page .ae-flow-author > img,
.ae-flow-post-page .ae-flow-author__fallback { width: 72px; height: 72px; display: grid; place-items: center; object-fit: cover; border: 1px solid var(--ae-line-strong); border-radius: 20px; background: var(--ae-surface-2); color: var(--ae-accent-2); font-size: 27px; font-weight: 900; }
.ae-flow-post-page .ae-flow-author h2 { font-size: 25px; }
.ae-flow-post-page .ae-flow-author h2 a { color: inherit; text-decoration: none; }
.ae-flow-post-page .ae-flow-author p { max-width: 520px; margin: 7px 0 0; color: var(--ae-muted); font-size: 11px; line-height: 1.6; }
.ae-flow-post-page .ae-flow-author__link { min-height: 40px; padding: 0 13px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--ae-line); border-radius: 12px; color: var(--ae-text-soft); text-decoration: none; font-size: 10px; font-weight: 800; }
.ae-flow-post-page .ae-flow-comments {
    padding: clamp(24px, 4vw, 34px);
    border: 1px solid var(--ae-line);
    border-radius: 24px;
    background: var(--ae-surface);
    box-shadow: var(--ae-shadow-soft);
}
.ae-flow-post-page .ae-flow-comments__head > p { max-width: 230px; margin: 0; color: var(--ae-muted); font-size: 11px; line-height: 1.5; text-align: right; }
.ae-flow-post-page .ae-flow-comments h2 sup { color: var(--ae-accent-2); font-size: 11px; vertical-align: top; }
.ae-flow-post-page .ae-flow-comments-list { display: grid; gap: 10px; }
.ae-flow-post-page .ae-flow-comments-empty { padding: 30px; display: grid; place-items: center; gap: 8px; border: 1px dashed var(--ae-line-strong); border-radius: 17px; color: var(--ae-muted); background: var(--ae-surface-2); text-align: center; }
.ae-flow-post-page .ae-flow-comments-empty i { color: var(--ae-accent-2); font-size: 25px; }
.ae-flow-post-page .ae-flow-comments-empty strong { color: var(--ae-text); }
.ae-flow-post-page .ae-flow-comments-empty p { margin: 0; font-size: 11px; }
.ae-flow-post-page .comment {
    position: relative;
    margin: 0 !important;
    padding: 16px;
    border: 1px solid var(--ae-line);
    border-radius: 16px;
    background: var(--ae-surface-2);
    box-shadow: none;
}
.ae-flow-post-page .comment[data-parent] { margin-left: 22px !important; border-left: 2px solid var(--ae-accent); }
.ae-flow-post-page .admin-comment { background: color-mix(in srgb, var(--ae-accent-soft) 55%, var(--ae-surface-2)); }
.ae-flow-post-page .comment-header { display: flex; justify-content: space-between; gap: 14px; }
.ae-flow-post-page .comment-author { color: var(--ae-text); font-size: 12px; font-weight: 850; }
.ae-flow-post-page .comment-date { color: var(--ae-muted); font-size: 9px; }
.ae-flow-post-page .comment-content { margin-top: 10px; color: var(--ae-text-soft); font-size: 13px; line-height: 1.65; }
.ae-flow-post-page .reply-to { margin-top: 10px; font-size: 9px; }
.ae-flow-post-page .reply-btn { margin-top: 10px; padding: 0; border: 0; color: var(--ae-accent-2); background: transparent; cursor: pointer; font-size: 10px; font-weight: 800; }
.ae-flow-post-page .ae-flow-comment-form { margin-top: 22px; padding-top: 22px; display: grid; gap: 15px; border-top: 1px solid var(--ae-line); }
.ae-flow-post-page .ae-flow-comment-form__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ae-flow-post-page .ae-flow-comment-form__head strong { color: var(--ae-text); }
.ae-flow-post-page #reply-status { color: var(--ae-accent-2); font-size: 10px; }
.ae-flow-post-page .ae-flow-comment-form label { position: relative; display: grid; gap: 7px; color: var(--ae-muted); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.ae-flow-post-page .ae-flow-comment-form input,
.ae-flow-post-page .ae-flow-comment-form textarea { width: 100%; border: 1px solid var(--ae-line); border-radius: 13px; color: var(--ae-text); background: var(--ae-surface-2); outline: none; text-transform: none; letter-spacing: 0; }
.ae-flow-post-page .ae-flow-comment-form input { min-height: 46px; padding: 0 13px; }
.ae-flow-post-page .ae-flow-comment-form textarea { min-height: 130px; padding: 13px 46px 13px 13px; resize: vertical; }
.ae-flow-post-page .ae-flow-comment-form input:focus,
.ae-flow-post-page .ae-flow-comment-form textarea:focus { border-color: var(--ae-accent); box-shadow: 0 0 0 3px var(--ae-accent-soft); }
.ae-flow-post-page .emoji-picker-toggle { position: absolute; right: 9px; top: 30px; width: 34px; height: 34px; padding: 0; border: 1px solid var(--ae-line); border-radius: 10px; background: var(--ae-surface); cursor: pointer; }
.ae-flow-post-page emoji-picker { position: absolute; z-index: 30; right: 0; bottom: calc(100% - 24px); display: none; --background: var(--ae-surface); --border-color: var(--ae-line); }
.ae-flow-post-page emoji-picker.is-open { display: block; }
.ae-flow-post-page .ae-flow-comment-form__footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.ae-flow-post-page .ae-flow-comment-form__footer small { color: var(--ae-muted); font-size: 9px; }
.ae-flow-post-page .ae-flow-comment-form__footer button { min-height: 46px; padding: 0 17px; display: inline-flex; align-items: center; gap: 9px; border: 0; border-radius: 12px; color: #100b1b; background: linear-gradient(135deg, var(--ae-accent), var(--ae-accent-3)); box-shadow: 0 11px 26px var(--ae-glow); cursor: pointer; font-size: 11px; font-weight: 900; }
.ae-flow-post-page .ae-flow-comment-form__footer button:disabled { opacity: .55; cursor: wait; }
.ae-flow-post-page .notification {
    position: fixed;
    z-index: 1500;
    left: 50%;
    bottom: 24px;
    min-width: min(360px, calc(100% - 32px));
    padding: 13px 17px;
    border: 1px solid var(--ae-line-strong);
    border-radius: 13px;
    color: var(--ae-text);
    background: color-mix(in srgb, var(--ae-surface) 90%, transparent);
    box-shadow: var(--ae-shadow);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 16px);
    transition: opacity .2s ease, transform .2s ease;
    backdrop-filter: blur(16px);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}
.ae-flow-post-page .notification.show { opacity: 1; transform: translate(-50%, 0); }
.ae-flow-post-page .notification.error { border-color: color-mix(in srgb, var(--ae-danger) 60%, transparent); }

@media (max-width: 980px) {
    .ae-post-page .ae-post-hero { grid-template-columns: minmax(0, 1fr) minmax(350px, .9fr); }
    .ae-post-page .ae-post-hero h1 { font-size: clamp(36px, 5vw, 52px); }
    .ae-flow-post-page .ae-flow-hero { grid-template-columns: minmax(0, 1fr) minmax(300px, .7fr); }
    .ae-flow-post-page .ae-flow-layout { grid-template-columns: 1fr; }
    .ae-flow-post-page .ae-flow-rail { display: none; }
}

@media (max-width: 820px) {
    .ae-post-page .ae-post-hero,
    .ae-post-page .ae-post-hero--no-image,
    .ae-flow-post-page .ae-flow-hero,
    .ae-flow-post-page .ae-flow-hero--no-image { grid-template-columns: 1fr; }
    .ae-post-page .ae-post-hero__copy { padding: 34px 28px; }
    .ae-post-page .ae-post-hero__media { min-height: 300px; border-top: 1px solid var(--ae-line); border-left: 0; }
    .ae-post-page .ae-post-hero__media img { min-height: 300px; max-height: 430px; }
    .ae-flow-post-page .ae-flow-hero__copy { padding: 35px 29px; }
    .ae-flow-post-page .ae-flow-hero__media,
    .ae-flow-post-page .ae-flow-hero__visual { min-height: 300px; border-top: 1px solid var(--ae-line); border-left: 0; }
    .ae-flow-post-page .ae-flow-hero__media img { min-height: 300px; max-height: 420px; }
}

@media (max-width: 640px) {
    .ae-post-page .ae-post-hero h1 { font-size: clamp(32px, 10vw, 44px); }
    .ae-post-page .gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 128px; }
    .ae-post-page .gallery__item:first-child { grid-column: span 2; grid-row: span 2; }
    .ae-post-page .archives__card { grid-template-columns: 44px minmax(0, 1fr); }
    .ae-post-page .archives__card-icon { width: 44px; height: 44px; }
    .ae-post-page .archives__card-button { grid-column: 1 / -1; width: 100%; }
    .ae-flow-post-page .ae-flow-post-wrap { width: min(100% - 24px, 1120px); }
    .ae-flow-post-page .ae-flow-hero h1 { font-size: clamp(32px, 10.5vw, 46px); }
    .ae-flow-post-page .ae-flow-hero__copy { padding: 29px 21px 31px; }
    .ae-flow-post-page .ae-flow-meta > * { min-height: 31px; padding: 0 9px; font-size: 8px; }
    .ae-flow-post-page .ae-flow-layout { margin-top: 30px; }
    .ae-flow-post-page .ae-flow-content { padding: 23px 19px; border-radius: 19px; font-size: 16px; }
    .ae-flow-post-page .ae-flow-video-grid { grid-template-columns: 1fr; }
    .ae-flow-post-page .ae-flow-reactions { align-items: flex-start; flex-direction: column; }
    .ae-flow-post-page .reactions-container { justify-content: flex-start; }
    .ae-flow-post-page .ae-flow-share { grid-template-columns: 1fr; }
    .ae-flow-post-page .ae-flow-share__actions { grid-template-columns: 1fr; }
    .ae-flow-post-page .ae-flow-author { grid-template-columns: 62px minmax(0, 1fr); padding: 21px; }
    .ae-flow-post-page .ae-flow-author > img,
    .ae-flow-post-page .ae-flow-author__fallback { width: 62px; height: 62px; border-radius: 17px; }
    .ae-flow-post-page .ae-flow-author__link { grid-column: 1 / -1; justify-content: center; }
    .ae-flow-post-page .ae-flow-comments { padding: 21px 16px; border-radius: 20px; }
    .ae-flow-post-page .ae-flow-comments__head { align-items: flex-start; flex-direction: column; }
    .ae-flow-post-page .ae-flow-comments__head > p { text-align: left; }
    .ae-flow-post-page .comment[data-parent] { margin-left: 10px !important; }
    .ae-flow-post-page .ae-flow-comment-form__footer { align-items: stretch; flex-direction: column; }
    .ae-flow-post-page .ae-flow-comment-form__footer button { justify-content: center; }
}

/* ========================================================================== 
   Aurora 1.7.0 — live preview + compact editorial callouts
   ========================================================================== */

/* Preview dock: the preview is the real public template with a small admin-only status strip. */
.ae-preview-dock {
    position: relative;
    z-index: 20;
    border-bottom: 1px solid var(--ae-line);
    background:
        linear-gradient(90deg, rgba(103,232,249,.055), transparent 42%, rgba(167,139,250,.06)),
        color-mix(in srgb, var(--ae-bg) 90%, transparent);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}
.ae-preview-dock__inner {
    min-height: 70px;
    padding: 12px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}
.ae-preview-dock__copy {
    min-width: 0;
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    gap: 9px 12px;
}
.ae-preview-dock__copy > span {
    color: var(--ae-accent-2);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.ae-preview-dock__copy > strong {
    padding: 5px 9px;
    border: 1px solid color-mix(in srgb, var(--ae-accent) 36%, var(--ae-line));
    border-radius: 999px;
    color: var(--ae-text);
    background: var(--ae-accent-soft);
    font-size: 10px;
}
.ae-preview-dock__copy > small {
    overflow: hidden;
    color: var(--ae-muted);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ae-preview-dock__inner > a {
    min-height: 42px;
    padding: 0 15px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--ae-line-strong);
    border-radius: 13px;
    color: var(--ae-text);
    background: var(--ae-surface);
    box-shadow: var(--ae-shadow-soft);
    text-decoration: none;
    font-size: 11px;
    font-weight: 850;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.ae-preview-dock__inner > a:hover { transform: translateY(-1px); border-color: var(--ae-accent); background: var(--ae-surface-2); }
.ae-preview-mode .ae-post-main,
.ae-preview-mode .ae-flow-post-main { padding-top: clamp(22px, 3vw, 38px); }
.ae-preview-mode :is(.reaction-btn, .share-block__action, .ae-flow-share__actions button, .ae-flow-rail__actions button)[disabled] {
    cursor: not-allowed;
    opacity: .52;
    filter: saturate(.65);
}
.ae-preview-mode :is(.reaction-btn, .share-block__action, .ae-flow-share__actions button, .ae-flow-rail__actions button)[disabled]:hover {
    transform: none;
    border-color: var(--ae-line);
    color: var(--ae-text-soft);
    background: var(--ae-surface-2);
    box-shadow: none;
}
.ae-preview-mode .is-preview-disabled { position: relative; }
.ae-preview-mode .ae-comment-form.is-preview-disabled,
.ae-preview-mode .ae-flow-comment-form.is-preview-disabled { opacity: .78; }
.ae-preview-mode .emoji-picker-toggle { pointer-events: none; opacity: .45; }

/* Accent blocks copied from the editor. They share one compact editorial system. */
.ae-post-page .ae-post-content :is(.attention, .important, .quote),
.ae-flow-post-page .ae-flow-content :is(.attention, .important, .quote) {
    --callout-tone: var(--ae-accent);
    --callout-soft: var(--ae-accent-soft);
    position: relative;
    margin: 1.75em 0;
    padding: 44px 22px 20px 68px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--callout-tone) 34%, var(--ae-line));
    border-radius: 20px;
    color: var(--ae-text-soft);
    background:
        radial-gradient(circle at 0 0, color-mix(in srgb, var(--callout-tone) 15%, transparent), transparent 46%),
        linear-gradient(145deg, color-mix(in srgb, var(--callout-soft) 58%, var(--ae-surface)), var(--ae-surface));
    box-shadow: 0 18px 46px rgba(0,0,0,.16), inset 0 1px rgba(255,255,255,.035);
    font-size: clamp(14px, 1.45vw, 16px);
    font-style: normal;
    font-weight: 580;
    line-height: 1.72;
    overflow-wrap: anywhere;
}
.ae-post-page .ae-post-content :is(.attention, .important, .quote)::before,
.ae-flow-post-page .ae-flow-content :is(.attention, .important, .quote)::before {
    position: absolute;
    left: 20px;
    top: 18px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--callout-tone) 42%, transparent);
    border-radius: 11px;
    color: var(--callout-tone);
    background: color-mix(in srgb, var(--callout-tone) 12%, var(--ae-surface));
    box-shadow: 0 8px 20px color-mix(in srgb, var(--callout-tone) 15%, transparent);
    font-family: Inter, system-ui, sans-serif;
    font-size: 15px;
    font-weight: 950;
    line-height: 1;
}
.ae-post-page .ae-post-content :is(.attention, .important, .quote)::after,
.ae-flow-post-page .ae-flow-content :is(.attention, .important, .quote)::after {
    position: absolute;
    left: 68px;
    top: 20px;
    color: var(--callout-tone);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.ae-post-page .ae-post-content .attention,
.ae-flow-post-page .ae-flow-content .attention { --callout-tone: #f6b94a; --callout-soft: rgba(246,185,74,.13); }
.ae-post-page .ae-post-content .attention::before,
.ae-flow-post-page .ae-flow-content .attention::before { content: "!"; }
.ae-post-page .ae-post-content .attention::after,
.ae-flow-post-page .ae-flow-content .attention::after { content: "Внимание"; }
.ae-post-page .ae-post-content .important,
.ae-flow-post-page .ae-flow-content .important { --callout-tone: #61ddb4; --callout-soft: rgba(97,221,180,.12); }
.ae-post-page .ae-post-content .important::before,
.ae-flow-post-page .ae-flow-content .important::before { content: "✓"; }
.ae-post-page .ae-post-content .important::after,
.ae-flow-post-page .ae-flow-content .important::after { content: "Важно"; }
.ae-post-page .ae-post-content .quote,
.ae-flow-post-page .ae-flow-content .quote { --callout-tone: var(--ae-accent-2); --callout-soft: rgba(103,232,249,.10); }
.ae-post-page .ae-post-content .quote::before,
.ae-flow-post-page .ae-flow-content .quote::before { content: "“"; font-family: Georgia, serif; font-size: 24px; }
.ae-post-page .ae-post-content .quote::after,
.ae-flow-post-page .ae-flow-content .quote::after { content: "Цитата"; }
.ae-post-page .ae-post-content :is(.attention, .important, .quote) > :last-child,
.ae-flow-post-page .ae-flow-content :is(.attention, .important, .quote) > :last-child { margin-bottom: 0; }

/* Video attachments share the same visual language as the gallery and downloads. */
.ae-post-page .ae-post-video-grid,
.ae-flow-post-page .ae-flow-video-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.ae-post-page .ae-post-video-grid video,
.ae-flow-post-page .ae-flow-video-grid video,
.ae-post-page .ae-post-video-placeholder,
.ae-flow-post-page .ae-flow-video-placeholder {
    width: 100%;
    min-height: 250px;
    display: block;
    overflow: hidden;
    border: 1px solid var(--ae-line);
    border-radius: 20px;
    background: #090a0f;
    box-shadow: var(--ae-shadow-soft);
}
.ae-post-page .ae-post-video-grid video,
.ae-flow-post-page .ae-flow-video-grid video { aspect-ratio: 16 / 9; object-fit: contain; }
.ae-post-page .ae-post-video-placeholder,
.ae-flow-post-page .ae-flow-video-placeholder {
    padding: 28px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 8px;
    color: var(--ae-text);
    background:
        radial-gradient(circle at 20% 10%, var(--ae-accent-soft), transparent 42%),
        var(--ae-surface);
}
.ae-post-page .ae-post-video-placeholder i,
.ae-flow-post-page .ae-flow-video-placeholder i { color: var(--ae-accent-2); font-size: 30px; }
.ae-post-page .ae-post-video-placeholder strong,
.ae-flow-post-page .ae-flow-video-placeholder strong { font-size: 15px; overflow-wrap: anywhere; }
.ae-post-page .ae-post-video-placeholder span,
.ae-flow-post-page .ae-flow-video-placeholder span { color: var(--ae-muted); font-size: 11px; }
.ae-post-page .archives__card-button--disabled {
    cursor: not-allowed;
    opacity: .65;
    white-space: nowrap;
}

@media (max-width: 760px) {
    .ae-preview-dock__inner { padding: 12px 0; align-items: stretch; flex-direction: column; gap: 10px; }
    .ae-preview-dock__copy { grid-template-columns: auto 1fr; }
    .ae-preview-dock__copy > small { grid-column: 1 / -1; white-space: normal; }
    .ae-preview-dock__inner > a { width: 100%; justify-content: center; }
    .ae-post-page .ae-post-content :is(.attention, .important, .quote),
    .ae-flow-post-page .ae-flow-content :is(.attention, .important, .quote) { padding: 43px 17px 18px 58px; border-radius: 17px; }
    .ae-post-page .ae-post-content :is(.attention, .important, .quote)::before,
    .ae-flow-post-page .ae-flow-content :is(.attention, .important, .quote)::before { left: 14px; top: 16px; }
    .ae-post-page .ae-post-content :is(.attention, .important, .quote)::after,
    .ae-flow-post-page .ae-flow-content :is(.attention, .important, .quote)::after { left: 58px; top: 19px; }
    .ae-post-page .ae-post-video-grid,
    .ae-flow-post-page .ae-flow-video-grid { grid-template-columns: 1fr; }
    .ae-post-page .ae-post-video-grid video,
    .ae-flow-post-page .ae-flow-video-grid video,
    .ae-post-page .ae-post-video-placeholder,
    .ae-flow-post-page .ae-flow-video-placeholder { min-height: 190px; }
}
