:root {
    color-scheme: dark;
    --page-bg: #07101f;
    --surface: #0c182c;
    --surface-subtle: #102442;
    --text: #f3f7ff;
    --text-soft: #d8e3f4;
    --muted: #91a4c6;
    --border: #29415f;
    --border-strong: #4c6888;
    --accent: #3de4d4;
    --accent-strong: #7af2e6;
    --accent-soft: #123e52;
    --signature: #f4c86a;
    --profile: #0a172b;
    --profile-soft: #102e49;
    --code-bg: #0b1220;
    --code-text: #dbeafe;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.18);
    --shadow-md: 0 18px 50px rgba(0, 0, 0, 0.28);
    --radius: 14px;
    --radius-control: 12px;
    --container: 1180px;
    --sidebar-width: 300px;
    --layout-gap: 28px;
    --page-gutter: 20px;
    --header-height: 68px;
    --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--page-bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    transition: background-color 180ms ease, color 180ms ease;
}

body.nav-open,
body.search-open {
    overflow: hidden;
}

img,
svg {
    display: block;
    max-width: 100%;
}

button,
input,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    color: var(--accent-strong);
}

button {
    color: inherit;
}

.icon {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

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

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 10px;
    left: 10px;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--text);
    color: var(--surface);
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.32);
    outline-offset: 3px;
}

/* Header */

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    min-height: var(--header-height);
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    backdrop-filter: blur(14px);
}

@supports not (background: color-mix(in srgb, white 50%, transparent)) {
    .site-header {
        background: var(--surface);
    }
}

.header-inner {
    display: grid;
    grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
    align-items: center;
    width: min(calc(100% - var(--page-gutter) - var(--page-gutter)), var(--container));
    min-height: var(--header-height);
    margin: 0 auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 10px;
    color: var(--text);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.035em;
}

.brand-copy {
    display: grid;
    gap: 2px;
}

.brand-subtitle {
    color: #90a9c8;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: none;
}

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

.brand-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--surface-subtle);
    color: var(--accent);
}

.brand-mark .icon {
    width: 24px;
    height: 24px;
}

.site-nav {
    display: flex;
    align-items: stretch;
    align-self: stretch;
    gap: 34px;
}

.site-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: var(--text-soft);
    font-size: 15px;
    font-weight: 600;
}

.site-nav a::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--accent);
    content: "";
    opacity: 0;
    transform: scaleX(0.5);
    transition: opacity 160ms ease, transform 160ms ease;
}

.site-nav a:hover,
.site-nav a.is-current {
    color: var(--accent);
}

.site-nav a.is-current::after {
    opacity: 1;
    transform: scaleX(1);
}

.header-actions {
    display: flex;
    justify-self: end;
    gap: 4px;
}

.icon-button {
    display: inline-grid;
    width: 44px;
    height: 44px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease;
}

.icon-button:hover {
    background: var(--surface-subtle);
    color: var(--accent);
}

.icon-button .icon-close,
.menu-toggle {
    display: none;
}

.search-open [data-search-toggle] .icon-search {
    display: none;
}

.search-open [data-search-toggle] .icon-close {
    display: block;
}

.search-panel {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-md);
}

.search-panel[hidden] {
    display: none;
}

.search-form {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    width: min(100%, 720px);
    min-height: 52px;
    margin: 0 auto;
    padding-left: 16px;
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    background: var(--surface-subtle);
    overflow: hidden;
}

.search-form > .icon {
    color: var(--muted);
}

.search-form input {
    min-width: 0;
    height: 50px;
    padding: 0 14px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
}

.search-form input::placeholder {
    color: var(--muted);
}

.search-form button {
    align-self: stretch;
    min-width: 86px;
    border: 0;
    background: var(--accent);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.search-form button:hover {
    background: var(--accent-strong);
}

/* Main layout */

.site-main {
    min-height: calc(100vh - var(--header-height) - 120px);
}

.page-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--sidebar-width);
    align-items: start;
    gap: var(--layout-gap);
    width: min(calc(100% - var(--page-gutter) - var(--page-gutter)), var(--container));
    margin: 0 auto;
    padding: 42px 0 72px;
}

.content-column {
    min-width: 0;
}

.page-intro {
    margin: 0 0 24px;
}

.page-intro h1 {
    margin: 0;
    color: var(--text);
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.2;
    letter-spacing: -0.035em;
}

.page-intro p {
    max-width: 700px;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 16px;
}

.archive-intro h1 {
    font-size: clamp(28px, 3.2vw, 38px);
}

.post-list {
    display: grid;
    gap: 14px;
}

/* Article cards */

.post-card {
    position: relative;
    display: grid;
    min-height: 186px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.post-card::after {
    position: absolute;
    top: -1px;
    right: -1px;
    width: 22px;
    height: 22px;
    border: solid var(--border);
    border-width: 0 0 1px 1px;
    border-radius: 0 18px 0 8px;
    background: var(--page-bg);
    content: "";
}

.post-card:hover {
    border-color: var(--border-strong);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.09);
    transform: translateY(-2px);
}

.post-card.is-pinned {
    border-color: color-mix(in srgb, var(--accent) 28%, var(--border));
    box-shadow: 0 10px 28px color-mix(in srgb, var(--accent) 9%, transparent);
}

.post-card-content {
    display: flex;
    min-width: 0;
    padding: 24px 28px 22px 30px;
    border-left: 4px solid var(--accent);
    flex-direction: column;
}

.post-card-category {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
}

.post-card-category .icon {
    width: 16px;
    height: 16px;
}

.post-card-category a {
    color: inherit;
}

.post-card-pin {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    margin-left: auto;
    padding: 2px 9px;
    border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--border));
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent) 9%, var(--surface));
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1;
}

.post-card-title {
    margin: 9px 0 8px;
    font-size: clamp(20px, 2vw, 25px);
    line-height: 1.38;
    letter-spacing: -0.02em;
}

.post-card-title a {
    color: var(--text);
    text-decoration: none;
}

.post-card-title a:hover {
    color: var(--accent);
}

.post-card-excerpt {
    display: -webkit-box;
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.75;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: auto;
    padding-top: 18px;
    color: var(--muted);
    font-size: 13px;
}

.post-card-meta > span,
.post-card-meta > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.post-card-meta .icon {
    width: 16px;
    height: 16px;
}

.post-card-read {
    margin-left: auto;
    color: var(--accent);
    font-weight: 700;
}

.post-card-read .icon {
    transition: transform 160ms ease;
}

.post-card-read:hover .icon {
    transform: translateX(3px);
}

/* Sidebar */

.sidebar {
    min-width: 0;
}

.sidebar-sticky {
    position: sticky;
    top: calc(var(--header-height) + 22px);
    display: grid;
    align-content: start;
    gap: 14px;
}

.sidebar-persistent,
.sidebar-toc-shell {
    display: grid;
    min-width: 0;
}

.sidebar-scroll-body {
    display: grid;
    min-width: 0;
    align-content: start;
    gap: 14px;
    grid-auto-rows: max-content;
}

.is-post .sidebar,
.is-page .sidebar {
    align-self: stretch;
}

.is-post .sidebar-sticky,
.is-page .sidebar-sticky {
    position: static;
    min-height: 100%;
}

:is(.is-post, .is-page) .sidebar[data-sidebar-mode="toc"] .sidebar-toc-shell,
:is(.is-post, .is-page) .sidebar[data-sidebar-mode="content"] .sidebar-persistent {
    --sidebar-scroll-rail: 14px;
    position: sticky;
    z-index: 1;
    top: calc(var(--header-height) + 22px);
    width: calc(100% + var(--sidebar-scroll-rail));
    margin-right: calc(var(--sidebar-scroll-rail) * -1);
    background: var(--page-bg);
}

:is(.is-post, .is-page) .sidebar[data-sidebar-mode="toc"] .sidebar-toc-shell::before,
:is(.is-post, .is-page) .sidebar[data-sidebar-mode="content"] .sidebar-persistent::before {
    position: absolute;
    right: 0;
    bottom: 100%;
    left: 0;
    height: 22px;
    background: var(--page-bg);
    content: "";
}

:is(.is-post, .is-page) .sidebar[data-sidebar-mode="toc"] .sidebar-toc-shell > .sidebar-scroll-body,
:is(.is-post, .is-page) .sidebar[data-sidebar-mode="content"] .sidebar-persistent > .sidebar-scroll-body {
    max-height: calc(100vh - var(--header-height) - 44px);
    max-height: calc(100dvh - var(--header-height) - 44px);
    padding-right: 4px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: color-mix(in srgb, var(--muted) 45%, transparent) transparent;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
}

.sidebar-scroll-body::-webkit-scrollbar {
    width: 6px;
}

.sidebar-scroll-body::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-scroll-body::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: color-mix(in srgb, var(--muted) 45%, transparent);
}

.profile-card,
.sidebar-widget {
    position: relative;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.profile-card {
    padding: 30px 24px 24px;
    border-color: rgba(255, 255, 255, 0.08);
    background: var(--profile);
    color: #e8eefb;
    text-align: center;
}

.profile-ears::before,
.profile-ears::after {
    position: absolute;
    top: -1px;
    width: 0;
    height: 0;
    border-right: 16px solid transparent;
    border-bottom: 20px solid var(--profile);
    border-left: 16px solid transparent;
    content: "";
}

.profile-ears::before {
    left: 92px;
}

.profile-ears::after {
    right: 92px;
}

.profile-avatar-wrap {
    width: 92px;
    height: 92px;
    margin: 0 auto 16px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    background: #fff;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.profile-card h2 {
    margin: 0;
    color: #fff;
    font-size: 23px;
    line-height: 1.25;
}

.profile-tagline {
    margin: 7px 0 0;
    color: #cbd7ef;
    font-size: 14px;
}

.profile-accent {
    display: block;
    width: 36px;
    height: 4px;
    margin: 15px auto;
    border-radius: 4px;
    background: var(--signature);
}

.profile-bio {
    margin: 0;
    color: #aebbd4;
    font-size: 13px;
    line-height: 1.75;
}

.profile-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.profile-links a {
    display: inline-flex;
    min-height: 38px;
    padding: 0 10px;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #dbe7ff;
    font-size: 12px;
    font-weight: 700;
}

.profile-links a:hover {
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.profile-links .icon {
    width: 17px;
    height: 17px;
}

.sidebar-widget {
    padding: 20px;
}

.widget-title {
    margin: 0 0 14px;
    color: var(--text);
    font-size: 15px;
    line-height: 1.4;
}

.category-list,
.friend-link-list,
.recent-list,
.recent-comment-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.category-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.category-list li {
    min-width: 0;
    --category-color: #2563eb;
}

.category-list li:nth-child(6n + 2) {
    --category-color: #7c3aed;
}

.category-list li:nth-child(6n + 3) {
    --category-color: #d97706;
}

.category-list li:nth-child(6n + 4) {
    --category-color: #059669;
}

.category-list li:nth-child(6n + 5) {
    --category-color: #db2777;
}

.category-list li:nth-child(6n) {
    --category-color: #0891b2;
}

.category-list a {
    display: grid;
    min-height: 68px;
    padding: 10px;
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    border: 1px solid color-mix(in srgb, var(--category-color) 18%, var(--border));
    border-radius: 13px;
    background: color-mix(in srgb, var(--category-color) 7%, var(--surface));
    color: var(--text-soft);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.category-list a:hover {
    border-color: color-mix(in srgb, var(--category-color) 38%, var(--border));
    color: var(--category-color);
    box-shadow: 0 8px 20px color-mix(in srgb, var(--category-color) 12%, transparent);
    transform: translateY(-2px);
}

.category-icon {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 10px;
    background: color-mix(in srgb, var(--category-color) 13%, var(--surface));
    color: var(--category-color);
}

.category-icon .icon {
    width: 16px;
    height: 16px;
}

.category-copy {
    min-width: 0;
}

.category-name {
    display: block;
    overflow: hidden;
    color: var(--text);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-list a:hover .category-name {
    color: var(--category-color);
}

.category-count {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.3;
}

.friend-link-list {
    display: grid;
    gap: 8px;
}

.friend-link-list a {
    display: grid;
    min-height: 50px;
    padding: 8px 9px;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-subtle);
    color: var(--text-soft);
    transition: border-color 160ms ease, background-color 160ms ease;
}

.friend-link-list a:hover {
    border-color: color-mix(in srgb, var(--accent) 36%, var(--border));
    background: var(--accent-soft);
    color: var(--accent);
}

.friend-link-icon {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 10px;
    background: var(--surface);
    color: var(--accent);
    box-shadow: inset 0 0 0 1px var(--border);
}

.friend-link-icon .icon,
.friend-link-arrow {
    width: 16px;
    height: 16px;
}

.friend-link-copy {
    min-width: 0;
}

.friend-link-copy strong,
.friend-link-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.friend-link-copy strong {
    color: var(--text);
    font-size: 12px;
    line-height: 1.4;
}

.friend-link-copy small {
    margin-top: 1px;
    color: var(--muted);
    font-size: 10px;
}

.friend-link-arrow {
    color: var(--muted);
    transition: transform 160ms ease;
}

.friend-link-list a:hover .friend-link-arrow {
    transform: translateX(2px);
}

.recent-list {
    counter-reset: recent;
}

.recent-list li {
    position: relative;
    padding: 0 0 13px 20px;
    counter-increment: recent;
}

.recent-list li:last-child {
    padding-bottom: 0;
}

.recent-list li::before {
    position: absolute;
    top: 8px;
    left: 1px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    content: "";
}

.recent-list a {
    display: -webkit-box;
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.55;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.recent-list a:hover {
    color: var(--accent);
}

.recent-list time {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
}

.recent-comment-list {
    display: grid;
    gap: 12px;
}

.recent-comment-list li {
    min-width: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.recent-comment-list li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.recent-comment-link {
    display: block;
    min-width: 0;
    color: var(--text-soft);
}

.recent-comment-meta {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.recent-comment-author {
    min-width: 0;
    overflow: hidden;
    color: var(--text);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recent-comment-meta time {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.4;
}

.recent-comment-excerpt {
    display: -webkit-box;
    margin-top: 5px;
    overflow: hidden;
    color: var(--text-soft);
    font-size: 12px;
    line-height: 1.6;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.recent-comment-link:hover .recent-comment-author,
.recent-comment-link:hover .recent-comment-excerpt {
    color: var(--accent);
}

.widget-empty {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.feed-link {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 650;
}

.feed-link > .icon:first-child {
    color: var(--signature);
}

.feed-link > .icon:last-child {
    width: 17px;
    height: 17px;
    color: var(--muted);
}

/* Table of contents */

.sidebar-toc-shell[hidden],
.toc-widget[hidden],
.mobile-toc-panel[hidden],
.mobile-toc-toggle[hidden] {
    display: none;
}

.toc-widget {
    overflow: hidden;
}

.toc-list ol,
.mobile-toc-panel ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.toc-list li,
.mobile-toc-panel li {
    position: relative;
}

.toc-list a,
.mobile-toc-panel a {
    display: block;
    padding: 7px 0 7px 15px;
    border-left: 2px solid var(--border);
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.toc-list .toc-level-2 > a,
.mobile-toc-panel .toc-level-2 > a {
    padding-left: 28px;
    font-size: 12px;
}

.toc-list .toc-level-3 > a,
.mobile-toc-panel .toc-level-3 > a {
    padding-left: 40px;
    font-size: 12px;
}

.toc-list a:hover,
.toc-list a.is-active,
.mobile-toc-panel a:hover,
.mobile-toc-panel a.is-active {
    border-left-color: var(--accent);
    color: var(--accent);
}

.mobile-toc-toggle,
.mobile-toc-panel {
    display: none;
}

/* Article */

.post-layout {
    padding-top: 32px;
}

.article-card,
.comments-card,
.post-near {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.article-card {
    position: relative;
    padding: 42px 48px 48px;
    overflow: hidden;
}

.article-card::after {
    position: absolute;
    right: -34px;
    bottom: -34px;
    width: 76px;
    height: 76px;
    border: 8px solid var(--accent);
    transform: rotate(45deg);
    content: "";
    opacity: 0.9;
}

.article-header {
    margin-bottom: 34px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.article-header h1 {
    margin: 0;
    color: var(--text);
    font-size: clamp(30px, 4.2vw, 45px);
    line-height: 1.25;
    letter-spacing: -0.035em;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
    margin-top: 18px;
    color: var(--muted);
    font-size: 13px;
}

.article-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

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

.article-meta a {
    color: var(--muted);
}

.article-meta a:hover {
    color: var(--accent);
}

.markdown-body {
    color: var(--text-soft);
    font-size: 17px;
    line-height: 1.9;
    overflow-wrap: break-word;
    word-break: break-word;
}

.markdown-body > :first-child {
    margin-top: 0 !important;
}

.markdown-body > :last-child {
    margin-bottom: 0 !important;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
    position: relative;
    margin: 2.1em 0 0.75em;
    scroll-margin-top: calc(var(--header-height) + 24px);
    color: var(--text);
    font-weight: 780;
    line-height: 1.38;
    letter-spacing: -0.018em;
}

.markdown-body h1 {
    font-size: 2em;
}

.markdown-body h2 {
    padding-bottom: 0.38em;
    border-bottom: 1px solid var(--border);
    font-size: 1.55em;
}

.markdown-body h2::before {
    display: inline-block;
    width: 4px;
    height: 0.9em;
    margin-right: 10px;
    border-radius: 4px;
    background: var(--accent);
    content: "";
    vertical-align: -0.05em;
}

.markdown-body h3 {
    font-size: 1.27em;
}

.markdown-body h4 {
    font-size: 1.08em;
}

.heading-anchor {
    position: absolute;
    top: 50%;
    left: -28px;
    display: grid;
    width: 24px;
    height: 28px;
    place-items: center;
    color: var(--muted);
    opacity: 0;
    transform: translateY(-50%);
    transition: opacity 160ms ease;
}

.heading-anchor .icon {
    width: 16px;
    height: 16px;
}

.markdown-body h2:hover .heading-anchor,
.markdown-body h3:hover .heading-anchor,
.markdown-body h4:hover .heading-anchor,
.heading-anchor:focus-visible {
    opacity: 1;
}

.markdown-body p,
.markdown-body ul,
.markdown-body ol,
.markdown-body blockquote,
.markdown-body pre,
.markdown-body table,
.markdown-body .table-scroll,
.markdown-body figure,
.markdown-body details {
    margin-top: 1.2em;
    margin-bottom: 1.2em;
}

.markdown-body ul,
.markdown-body ol {
    padding-left: 1.55em;
}

.markdown-body li + li {
    margin-top: 0.35em;
}

.markdown-body li::marker {
    color: var(--accent);
}

.markdown-body a {
    text-decoration: underline;
    text-decoration-color: rgba(37, 99, 235, 0.3);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.markdown-body strong {
    color: var(--text);
    font-weight: 750;
}

.markdown-body em {
    color: var(--text-soft);
}

.markdown-body blockquote {
    padding: 18px 22px;
    border-left: 4px solid var(--accent);
    border-radius: 0 12px 12px 0;
    background: var(--accent-soft);
    color: var(--text-soft);
}

.markdown-body blockquote > :first-child {
    margin-top: 0;
}

.markdown-body blockquote > :last-child {
    margin-bottom: 0;
}

.markdown-body code,
.markdown-body kbd,
.markdown-body pre {
    font-family: var(--font-mono);
}

.markdown-body :not(pre) > code {
    padding: 0.18em 0.42em;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface-subtle);
    color: #dc2626;
    font-size: 0.88em;
}

.markdown-body :not(pre) > code {
    color: #fda4af;
}

.markdown-body pre {
    position: relative;
    max-width: 100%;
    padding: 22px 24px;
    border: 1px solid #1e293b;
    border-radius: 14px;
    background: var(--code-bg);
    color: var(--code-text);
    font-size: 14px;
    line-height: 1.75;
    overflow: auto;
    tab-size: 4;
}

.markdown-body pre code {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: inherit;
}

.code-copy {
    position: absolute;
    z-index: 2;
    top: 10px;
    right: 10px;
    display: inline-flex;
    min-height: 34px;
    padding: 0 10px;
    align-items: center;
    gap: 6px;
    border: 1px solid #334155;
    border-radius: 9px;
    background: #111c2f;
    color: #cbd5e1;
    font-family: var(--font-sans);
    font-size: 12px;
    cursor: pointer;
}

.code-copy:hover {
    border-color: #64748b;
    color: #fff;
}

.code-copy .icon {
    width: 15px;
    height: 15px;
}

/* Mermaid diagrams */

.mermaid-viewer {
    margin: 28px 0;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.mermaid-toolbar {
    display: flex;
    min-height: 50px;
    padding: 8px 10px 8px 16px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid var(--border);
    background: var(--surface-subtle);
}

.mermaid-title {
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 750;
}

.mermaid-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.mermaid-action {
    min-height: 34px;
    padding: 0 11px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--surface);
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.mermaid-action:hover,
.mermaid-action.is-active {
    border-color: color-mix(in srgb, var(--accent) 44%, var(--border));
    background: var(--accent-soft);
    color: var(--accent);
}

.mermaid-fullscreen-button {
    margin-left: 4px;
}

.mermaid-stage {
    min-width: 0;
    background: var(--surface);
}

.mermaid-diagram {
    display: grid;
    min-height: 220px;
    padding: 28px;
    place-items: center;
    overflow: auto;
}

.mermaid-diagram[hidden],
.mermaid-source-panel[hidden] {
    display: none;
}

.mermaid-diagram svg {
    width: 100%;
    height: auto;
    max-height: 72vh;
}

.mermaid-source-panel {
    padding: 16px;
}

.markdown-body .mermaid-source-code {
    min-height: 220px;
    max-height: 68vh;
    margin: 0;
}

.mermaid-error {
    margin: 20px 0 8px;
    padding: 10px 13px;
    border: 1px solid #f59e0b;
    border-radius: 10px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 13px;
}

.mermaid-error {
    background: #431407;
    color: #fed7aa;
}

body.mermaid-fullscreen-open {
    overflow: hidden;
}

.mermaid-viewer:fullscreen,
.mermaid-viewer.is-fullscreen,
.mermaid-viewer.is-fallback-fullscreen {
    display: flex;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: var(--surface);
    flex-direction: column;
}

.mermaid-viewer.is-fallback-fullscreen {
    position: fixed;
    z-index: 1000;
    inset: 0;
}

.mermaid-viewer:fullscreen::backdrop {
    background: var(--surface);
}

.mermaid-viewer:fullscreen .mermaid-toolbar,
.mermaid-viewer.is-fullscreen .mermaid-toolbar,
.mermaid-viewer.is-fallback-fullscreen .mermaid-toolbar {
    flex: 0 0 auto;
    padding-right: max(16px, env(safe-area-inset-right));
    padding-left: max(16px, env(safe-area-inset-left));
}

.mermaid-viewer:fullscreen .mermaid-stage,
.mermaid-viewer.is-fullscreen .mermaid-stage,
.mermaid-viewer.is-fallback-fullscreen .mermaid-stage {
    display: grid;
    min-height: 0;
    flex: 1 1 auto;
}

.mermaid-viewer:fullscreen .mermaid-diagram,
.mermaid-viewer.is-fullscreen .mermaid-diagram,
.mermaid-viewer.is-fallback-fullscreen .mermaid-diagram,
.mermaid-viewer:fullscreen .mermaid-source-panel,
.mermaid-viewer.is-fullscreen .mermaid-source-panel,
.mermaid-viewer.is-fallback-fullscreen .mermaid-source-panel {
    min-height: 0;
    height: 100%;
    overflow: auto;
}

.mermaid-viewer:fullscreen .mermaid-diagram svg,
.mermaid-viewer.is-fullscreen .mermaid-diagram svg,
.mermaid-viewer.is-fallback-fullscreen .mermaid-diagram svg {
    width: min(100%, 2200px);
    max-width: min(100%, 2200px) !important;
    max-height: calc(100vh - 86px);
    max-height: calc(100dvh - 86px);
}

.mermaid-viewer:fullscreen .mermaid-source-code,
.mermaid-viewer.is-fullscreen .mermaid-source-code,
.mermaid-viewer.is-fallback-fullscreen .mermaid-source-code {
    min-height: 100%;
    max-height: none;
}

.markdown-body .table-scroll {
    max-width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow-x: auto;
}

.markdown-body table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.6;
}

.markdown-body th,
.markdown-body td {
    min-width: 110px;
    padding: 12px 14px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.markdown-body th:last-child,
.markdown-body td:last-child {
    border-right: 0;
}

.markdown-body tr:last-child td {
    border-bottom: 0;
}

.markdown-body th {
    background: var(--surface-subtle);
    color: var(--text);
    font-weight: 720;
}

.markdown-body img {
    height: auto;
    margin: 1.6em auto;
    border-radius: 14px;
}

.markdown-body figure img {
    margin-bottom: 0.6em;
}

.markdown-body figcaption {
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.markdown-body hr {
    height: 1px;
    margin: 2.4em 0;
    border: 0;
    background: var(--border);
}

.markdown-body input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin: 0 8px 0 0;
    accent-color: var(--accent);
    vertical-align: -3px;
}

.markdown-body kbd {
    padding: 2px 7px;
    border: 1px solid var(--border-strong);
    border-bottom-width: 3px;
    border-radius: 6px;
    background: var(--surface-subtle);
    color: var(--text);
    font-size: 0.82em;
}

.markdown-body mark {
    padding: 0.08em 0.18em;
    border-radius: 3px;
    background: #fef3c7;
    color: #713f12;
}

.markdown-body details {
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-subtle);
}

.markdown-body summary {
    color: var(--text);
    font-weight: 700;
    cursor: pointer;
}

.markdown-body .footnotes {
    margin-top: 3em;
    padding-top: 1em;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 14px;
}

.article-footer {
    margin-top: 42px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.article-tags a {
    display: inline-flex;
    min-height: 34px;
    padding: 0 12px;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-subtle);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.article-tags a::before {
    margin-right: 2px;
    content: "#";
    color: var(--accent);
}

.article-tags a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Adjacent posts */

.post-near {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 16px;
    overflow: hidden;
}

.post-near-item {
    min-width: 0;
    padding: 20px 22px;
}

.post-near-item + .post-near-item {
    border-left: 1px solid var(--border);
}

.post-near-item > span {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 12px;
}

.post-near-item .icon {
    width: 16px;
    height: 16px;
}

.post-near-item > a {
    display: block;
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-near-item > a:hover {
    color: var(--accent);
}

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

.post-near-next > span {
    justify-content: flex-end;
}

/* Comments */

.comments-card {
    margin-top: 16px;
    padding: 30px;
}

.comments-header h2,
.respond h2 {
    margin: 0 0 22px;
    color: var(--text);
    font-size: 22px;
}

.comment-list,
.comment-children {
    margin: 0;
    padding: 0;
    list-style: none;
}

.comment-list > .comment-body + .comment-body {
    margin-top: 14px;
}

.comment-list > .comment-body {
    position: relative;
    display: grid;
    padding: 18px;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-subtle);
}

.comment-list > .comment-by-author {
    border-color: color-mix(in srgb, var(--accent) 30%, var(--border));
    background: color-mix(in srgb, var(--accent) 4%, var(--surface));
}

.comment-body > .comment-author {
    display: grid;
    min-width: 0;
    grid-column: 1 / -1;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
}

.comment-author > span {
    grid-column: 1;
}

.comment-author .avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--surface);
    box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--border);
    object-fit: cover;
}

.comment-author .fn {
    min-width: 0;
    grid-column: 2;
    color: var(--text);
    font-size: 14px;
    font-style: normal;
    font-weight: 750;
    line-height: 1.35;
}

.comment-author .fn a {
    color: inherit;
}

.comment-body > .comment-meta,
.comment-body > .comment-content,
.comment-body > .comment-reply {
    min-width: 0;
    grid-column: 2;
}

.comment-body > .comment-meta {
    margin-top: -11px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.4;
}

.comment-body > .comment-meta a,
.comment-body > .comment-meta time {
    color: inherit;
}

.comment-awaiting-moderation {
    display: block;
    margin-top: 5px;
    color: var(--signature);
    font-style: normal;
    font-weight: 650;
}

.comment-body > .comment-content {
    margin-top: 12px;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.comment-content p {
    margin: 0 0 0.7em;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

.comment-body > .comment-reply {
    margin-top: 9px;
}

.comment-reply a {
    display: inline-flex;
    min-height: 28px;
    padding: 0 9px;
    align-items: center;
    border-radius: 8px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
}

.comment-body > .comment-children {
    margin: 18px 0 0 30px;
    padding-left: 14px;
    grid-column: 1 / -1;
    border-left: 2px solid var(--accent-soft);
}

.comment-body > .respond {
    width: 100%;
    margin-top: 18px;
    padding-top: 18px;
    grid-column: 1 / -1;
}

.respond {
    margin-top: 30px;
    padding-top: 26px;
    border-top: 1px solid var(--border);
}

.comment-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.comment-form label > span,
.comment-textarea-label {
    display: block;
    margin-bottom: 7px;
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 700;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    border: 1px solid var(--border-strong);
    border-radius: 11px;
    background: var(--surface-subtle);
    color: var(--text);
    outline: 0;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.comment-form input {
    height: 44px;
    padding: 0 12px;
}

.comment-form textarea {
    min-height: 150px;
    margin-top: 0;
    padding: 12px;
    resize: vertical;
}

.comment-textarea-label {
    margin-top: 16px;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.primary-button {
    display: inline-flex;
    min-height: 44px;
    margin-top: 14px;
    padding: 0 18px;
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: 11px;
    background: var(--accent);
    color: #fff;
    font-size: 14px;
    font-weight: 750;
    cursor: pointer;
}

.primary-button:hover {
    background: var(--accent-strong);
}

.primary-button .icon {
    width: 17px;
    height: 17px;
}

.logged-in-note,
.comments-closed {
    color: var(--muted);
    font-size: 13px;
}

/* Pagination */

.page-navigator {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.page-navigator a,
.page-navigator span {
    display: grid;
    min-width: 42px;
    min-height: 42px;
    padding: 0 12px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 700;
}

.page-navigator a:hover,
.page-navigator .current a,
.page-navigator .current span {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

/* Empty and error states */

.empty-state,
.error-card {
    padding: 54px 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.empty-state-mark {
    display: grid;
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
    place-items: center;
    border-radius: 18px;
    background: var(--accent-soft);
    color: var(--accent);
}

.empty-state-mark .icon {
    width: 28px;
    height: 28px;
}

.empty-state h2,
.error-card h1 {
    margin: 0;
    color: var(--text);
}

.empty-state p,
.error-card p {
    margin: 8px 0 0;
    color: var(--muted);
}

.error-layout {
    display: grid;
    min-height: calc(100vh - var(--header-height) - 130px);
    padding: 60px 20px;
    place-items: center;
}

.error-card {
    width: min(100%, 680px);
}

.error-code {
    display: block;
    color: var(--accent);
    font-size: clamp(64px, 12vw, 112px);
    font-weight: 850;
    line-height: 1;
    letter-spacing: -0.06em;
}

.error-search {
    margin-top: 24px;
}

.text-link {
    display: inline-flex;
    margin-top: 22px;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 700;
}

.text-link .icon {
    width: 17px;
    height: 17px;
}

/* Footer */

.site-footer {
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.footer-inner {
    display: flex;
    width: min(calc(100% - var(--page-gutter) - var(--page-gutter)), var(--container));
    min-height: 92px;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: var(--muted);
    font-size: 12px;
}

.footer-inner p {
    margin: 0;
}

.footer-copy {
    display: grid;
    gap: 6px;
}

.footer-record {
    white-space: nowrap;
}

.footer-inner a {
    color: var(--text-soft);
    font-weight: 700;
}

.back-to-top {
    position: fixed;
    z-index: 80;
    right: 22px;
    bottom: 22px;
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--surface);
    box-shadow: var(--shadow-md);
    color: var(--text);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 160ms ease, transform 160ms ease, color 160ms ease;
}

.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    color: var(--accent);
}

/* Dark-specific corrections */

.post-card:hover {
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.3);
}

.markdown-body mark {
    background: #713f12;
    color: #fef3c7;
}

/* Responsive */

@media (min-width: 1440px) {
    :root {
        --container: 1320px;
        --sidebar-width: 310px;
        --layout-gap: 30px;
    }
}

@media (min-width: 1680px) {
    :root {
        --container: 1520px;
        --sidebar-width: 320px;
        --layout-gap: 32px;
    }
}

@media (min-width: 1920px) {
    :root {
        --container: 1720px;
        --sidebar-width: 330px;
        --layout-gap: 34px;
    }
}

@media (min-width: 2560px) {
    :root {
        --container: 2200px;
        --sidebar-width: 360px;
        --layout-gap: 40px;
        --page-gutter: 28px;
    }
}

@media (min-width: 3200px) {
    :root {
        --container: 2600px;
        --sidebar-width: 380px;
        --layout-gap: 44px;
        --page-gutter: 36px;
    }
}

@media (max-width: 1080px) {
    .header-inner,
    .page-shell,
    .footer-inner {
        width: min(calc(100% - 32px), var(--container));
    }

    .header-inner {
        grid-template-columns: minmax(170px, 1fr) auto minmax(120px, 1fr);
    }

    .site-nav {
        gap: 24px;
    }

    .page-shell {
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: 20px;
    }

    .post-card-content {
        padding: 22px;
    }

    .article-card {
        padding: 36px;
    }
}

@media (max-width: 960px) {
    .page-shell {
        grid-template-columns: minmax(0, 1fr);
        max-width: 820px;
    }

    .sidebar-sticky {
        position: static;
        min-height: 0;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sidebar-persistent {
        display: contents;
    }

    .sidebar-persistent > .sidebar-scroll-body {
        display: contents;
    }

    .sidebar-toc-shell {
        display: none !important;
    }

    .is-post .sidebar,
    .is-page .sidebar {
        align-self: start;
    }

    :is(.is-post, .is-page) .sidebar[data-sidebar-mode="toc"] .sidebar-toc-shell,
    :is(.is-post, .is-page) .sidebar[data-sidebar-mode="content"] .sidebar-persistent {
        position: static;
        width: auto;
        margin-right: 0;
        background: transparent;
    }

    :is(.is-post, .is-page) .sidebar[data-sidebar-mode="toc"] .sidebar-toc-shell::before,
    :is(.is-post, .is-page) .sidebar[data-sidebar-mode="content"] .sidebar-persistent::before {
        content: none;
    }

    :is(.is-post, .is-page) .sidebar[data-sidebar-mode="toc"] .sidebar-toc-shell > .sidebar-scroll-body,
    :is(.is-post, .is-page) .sidebar[data-sidebar-mode="content"] .sidebar-persistent > .sidebar-scroll-body {
        max-height: none;
        padding-right: 0;
        overflow: visible;
        overscroll-behavior: auto;
        scrollbar-gutter: auto;
        scrollbar-width: auto;
    }

    .profile-card {
        grid-row: span 2;
    }

    .toc-widget {
        display: none !important;
    }

    .mobile-toc-toggle {
        display: inline-flex;
        min-height: 44px;
        margin-top: 18px;
        padding: 0 14px;
        align-items: center;
        gap: 8px;
        border: 1px solid var(--border);
        border-radius: 11px;
        background: var(--surface-subtle);
        color: var(--text-soft);
        font-size: 13px;
        font-weight: 750;
        cursor: pointer;
    }

    .mobile-toc-toggle .icon {
        width: 17px;
        height: 17px;
        transition: transform 160ms ease;
    }

    .mobile-toc-toggle[aria-expanded="true"] .icon {
        transform: rotate(180deg);
    }

    .mobile-toc-panel {
        display: block;
        margin-top: 12px;
        padding: 12px 14px;
        border: 1px solid var(--border);
        border-radius: 12px;
        background: var(--surface-subtle);
    }
}

@media (max-width: 760px) {
    :root {
        --header-height: 62px;
    }

    .header-inner {
        display: flex;
        width: calc(100% - 28px);
        justify-content: space-between;
    }

    .brand {
        min-width: 0;
        font-size: 16px;
    }

    .brand-mark {
        width: 32px;
        height: 32px;
    }

    .site-nav {
        position: absolute;
        z-index: 99;
        top: 100%;
        right: 0;
        bottom: auto;
        left: 0;
        display: flex;
        height: calc(100vh - var(--header-height));
        height: calc(100dvh - var(--header-height));
        padding: 24px 20px 40px;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        background: var(--surface);
        opacity: 0;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        pointer-events: none;
        transform: translateY(-10px);
        visibility: hidden;
        transition: opacity 160ms ease, transform 160ms ease, visibility 0s linear 160ms;
        -webkit-overflow-scrolling: touch;
    }

    .nav-open .site-nav {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
        visibility: visible;
        transition-delay: 0s;
    }

    .site-nav a {
        min-height: 52px;
        padding: 0 14px;
        border-radius: 12px;
        font-size: 17px;
    }

    .site-nav a::after {
        display: none;
    }

    .site-nav a:hover,
    .site-nav a.is-current {
        background: var(--accent-soft);
    }

    .menu-toggle {
        display: inline-grid;
    }

    .nav-open .menu-toggle .icon-menu {
        display: none;
    }

    .nav-open .menu-toggle .icon-close {
        display: block;
    }

    .page-shell {
        width: calc(100% - 28px);
        padding: 30px 0 52px;
    }

    .page-intro {
        margin-bottom: 20px;
    }

    .page-intro h1 {
        font-size: 31px;
    }

    .post-card-content {
        padding: 21px 20px;
        border-left: 0;
        border-top: 4px solid var(--accent);
    }

    .post-card-title {
        font-size: 21px;
    }

    .post-card-meta {
        gap: 12px;
        flex-wrap: wrap;
    }

    .post-card-read {
        margin-left: 0;
    }

    .sidebar-sticky {
        grid-template-columns: minmax(0, 1fr);
    }

    .profile-card {
        grid-row: auto;
    }

    .article-card {
        padding: 26px 22px 32px;
    }

    .article-header {
        margin-bottom: 26px;
        padding-bottom: 20px;
    }

    .article-header h1 {
        font-size: 30px;
    }

    .markdown-body {
        font-size: 16px;
        line-height: 1.86;
    }

    .heading-anchor {
        display: none;
    }

    .markdown-body h2 {
        font-size: 1.42em;
    }

    .markdown-body pre {
        margin-right: -6px;
        margin-left: -6px;
        padding: 20px 18px;
        font-size: 13px;
    }

    .mermaid-viewer {
        margin-right: -6px;
        margin-left: -6px;
    }

    .mermaid-toolbar {
        padding: 9px 10px;
        align-items: flex-start;
        flex-direction: column;
    }

    .mermaid-actions {
        width: 100%;
    }

    .mermaid-action {
        flex: 1 1 auto;
    }

    .mermaid-diagram {
        min-height: 180px;
        padding: 18px 12px;
    }

    .mermaid-source-panel {
        padding: 10px;
    }

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

    .post-near-item + .post-near-item {
        border-top: 1px solid var(--border);
        border-left: 0;
    }

    .post-near-next {
        text-align: left;
    }

    .post-near-next > span {
        justify-content: flex-start;
    }

    .comments-card {
        padding: 24px 20px;
    }

    .comment-fields {
        grid-template-columns: 1fr;
    }

    .comment-body > .comment-children {
        margin-left: 18px;
    }

    .footer-inner {
        width: calc(100% - 28px);
        min-height: 120px;
        padding: 24px 0;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 5px;
    }

    .back-to-top {
        right: 14px;
        bottom: 14px;
    }
}

@media (max-width: 480px) {
    .brand-text {
        max-width: 145px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .header-actions {
        gap: 0;
    }

    .icon-button {
        width: 42px;
        height: 42px;
    }

    .page-shell {
        width: calc(100% - 22px);
    }

    .page-intro h1 {
        font-size: 28px;
    }

    .post-card-content {
        padding: 19px 17px;
    }

    .post-card-title {
        font-size: 20px;
    }

    .post-card-meta > span:nth-child(2) {
        display: none;
    }

    .article-card {
        padding: 23px 17px 28px;
    }

    .article-header h1 {
        font-size: 27px;
    }

    .article-meta {
        gap: 8px 14px;
    }

    .markdown-body h2::before {
        width: 3px;
        margin-right: 7px;
    }

    .comment-list > .comment-body {
        padding: 14px;
        grid-template-columns: 36px minmax(0, 1fr);
        column-gap: 10px;
    }

    .comment-body > .comment-author {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 10px;
    }

    .comment-author .avatar {
        width: 36px;
        height: 36px;
    }

    .comment-body > .comment-meta {
        margin-top: -8px;
    }

    .comment-body > .comment-content,
    .comment-body > .comment-reply {
        grid-column: 1 / -1;
    }

    .comment-body > .comment-children {
        margin-left: 8px;
        padding-left: 9px;
    }
}

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

@media print {
    .site-header,
    .sidebar,
    .site-footer,
    .back-to-top,
    .comments-card,
    .post-near,
    .mobile-toc-toggle,
    .mobile-toc-panel,
    .code-copy,
    .mermaid-toolbar,
    .mermaid-source-panel {
        display: none !important;
    }

    .mermaid-diagram {
        display: grid !important;
    }

    body,
    .article-card {
        background: #fff;
        color: #000;
    }

    .page-shell {
        display: block;
        width: 100%;
        padding: 0;
    }

    .article-card {
        padding: 0;
        border: 0;
        box-shadow: none;
    }
}

/* ========================================================================== */
/* Azeroth Nexus 1.0.1 visual system                                      */
/* ========================================================================== */

:root {
    color-scheme: dark;
    --page-bg: #090807;
    --surface: #100e0c;
    --surface-subtle: #171310;
    --text: #ead9b8;
    --text-soft: #d2bc98;
    --muted: #9e8b70;
    --border: #493722;
    --border-strong: #8d6a42;
    --accent: #c33b2f;
    --accent-strong: #ef5a43;
    --accent-soft: #2d1714;
    --signature: #c8a36d;
    --profile: #0b0a09;
    --profile-soft: #18130f;
    --code-bg: #11100f;
    --code-text: #e9d6b4;
    --shadow-sm: 0 12px 30px rgba(0, 0, 0, 0.34);
    --shadow-md: 0 24px 70px rgba(0, 0, 0, 0.5);
    --radius: 0;
    --radius-control: 0;
    --container: 1420px;
    --sidebar-width: 318px;
    --layout-gap: 18px;
    --page-gutter: 14px;
    --header-height: 86px;
    --font-sans: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    --font-display: Georgia, "Times New Roman", "Songti SC", "STSong", serif;
    --font-mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
    --etched-shadow: inset 0 0 0 1px rgba(197, 153, 93, 0.08), 0 18px 50px rgba(0, 0, 0, 0.34);
}

html {
    background: #070605;
    scrollbar-color: #745337 #100d0b;
}

body.azeroth-nexus {
    position: relative;
    min-height: 100vh;
    background:
        radial-gradient(circle at 74% 8%, rgba(124, 34, 25, 0.12), transparent 30rem),
        radial-gradient(circle at 12% 65%, rgba(126, 91, 50, 0.06), transparent 34rem),
        repeating-linear-gradient(135deg, transparent 0 3px, rgba(255, 255, 255, 0.007) 3px 4px),
        var(--page-bg);
    color: var(--text);
    letter-spacing: 0.008em;
}

.azeroth-nexus::before {
    position: fixed;
    z-index: 0;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.46), transparent 12%, transparent 88%, rgba(0, 0, 0, 0.48));
    content: "";
}

.site-header,
.site-main,
.site-footer,
.search-panel {
    position: relative;
    z-index: 2;
}

.ember-network {
    position: fixed;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.7;
    pointer-events: none;
}

.reading-progress {
    position: fixed;
    z-index: 120;
    top: 0;
    right: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, #6d4428, #e8bc78 55%, #c33b2f);
    box-shadow: 0 0 10px rgba(222, 82, 54, 0.7);
    transform: scaleX(0);
    transform-origin: left;
}

.is-index .reading-progress,
.is-archive .reading-progress,
.is-404 .reading-progress {
    display: none;
}

:focus-visible {
    outline: 2px solid #e0af6d;
    outline-offset: 3px;
}

::selection {
    background: rgba(195, 59, 47, 0.75);
    color: #fff4dd;
}

a {
    color: #c9a36b;
}

a:hover {
    color: #f0c88a;
}

/* Header: carved black iron with restrained controls. */

.site-header {
    position: sticky;
    z-index: 100;
    min-height: var(--header-height);
    border: 0;
    border-bottom: 1px solid #5a4027;
    background:
        linear-gradient(180deg, rgba(24, 20, 17, 0.98), rgba(9, 8, 7, 0.98)),
        #0b0a09;
    box-shadow: 0 7px 24px rgba(0, 0, 0, 0.55), inset 0 -3px 0 rgba(163, 112, 61, 0.06);
    backdrop-filter: blur(18px);
}

.site-header::after {
    position: absolute;
    right: 12px;
    bottom: 4px;
    left: 12px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #6b4d30 18%, #9b7043 50%, #6b4d30 82%, transparent);
    content: "";
    opacity: 0.7;
}

.header-inner {
    grid-template-columns: minmax(300px, 1fr) auto minmax(300px, 1fr);
    width: min(calc(100% - 32px), var(--container));
    gap: 24px;
}

.brand {
    gap: 12px;
    color: #d7b982;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.brand:hover {
    color: #f0d4a0;
}

.brand-mark {
    width: 58px;
    height: 64px;
    border: 0;
    border-radius: 0;
    background: transparent;
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.85));
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.site-nav {
    gap: 36px;
}

.site-nav a {
    color: #c9b28e;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.site-nav a::after {
    right: 25%;
    bottom: 17px;
    left: 25%;
    height: 1px;
    border-radius: 0;
    background: #dc4637;
    box-shadow: 0 0 9px rgba(220, 70, 55, 0.8);
}

.site-nav a:hover,
.site-nav a.is-current {
    color: #ed4a39;
}

.header-actions {
    align-items: center;
    gap: 8px;
}

.icon-button {
    border: 1px solid #624628;
    background: linear-gradient(180deg, rgba(31, 25, 20, 0.94), rgba(12, 10, 8, 0.98));
    color: #c9aa77;
    clip-path: polygon(7px 0, calc(100% - 7px) 0, 100% 7px, 100% calc(100% - 7px), calc(100% - 7px) 100%, 7px 100%, 0 calc(100% - 7px), 0 7px);
    box-shadow: inset 0 0 0 1px rgba(221, 174, 105, 0.05);
}

.icon-button:hover {
    border-color: #a77743;
    background: linear-gradient(180deg, #2d2017, #17100c);
    color: #f1c985;
}

.search-toggle {
    display: inline-flex;
    width: 132px;
    padding: 0 14px;
    gap: 9px;
}

.search-toggle .action-label {
    font-size: 13px;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.search-panel {
    position: absolute;
    padding: 20px;
    border-bottom-color: #5a4027;
    background: rgba(10, 9, 8, 0.98);
}

.search-form {
    border-color: #725133;
    border-radius: 0;
    background: #14110e;
    clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
}

.search-form button {
    background: linear-gradient(180deg, #6f2a21, #401714);
    color: #f0d2a0;
}

/* Main frame and editorial rail. */

.site-main {
    min-height: calc(100vh - var(--header-height) - 154px);
}

.page-shell {
    grid-template-columns: minmax(0, 1fr) var(--sidebar-width);
    width: min(calc(100% - 28px), var(--container));
    margin: 16px auto 0;
    padding: 0 0 44px;
}

.post-list {
    position: relative;
    gap: 0;
    border: 1px solid #4a3521;
    background: rgba(11, 10, 9, 0.88);
    box-shadow: var(--etched-shadow);
}

.post-list::before,
.post-list::after,
.sidebar-widget::before,
.profile-card::before,
.article-card::before,
.comments-card::before {
    position: absolute;
    z-index: 3;
    width: 14px;
    height: 14px;
    border-color: #8b6338;
    border-style: solid;
    content: "";
    pointer-events: none;
}

.post-list::before,
.sidebar-widget::before,
.profile-card::before,
.article-card::before,
.comments-card::before {
    top: 5px;
    left: 5px;
    border-width: 1px 0 0 1px;
}

.post-list::after {
    right: 5px;
    bottom: 5px;
    border-width: 0 1px 1px 0;
}

.post-card {
    min-height: 176px;
    border: 0;
    border-bottom: 1px solid #35281b;
    border-radius: 0;
    background: linear-gradient(90deg, rgba(31, 24, 19, 0.5), rgba(13, 11, 9, 0.3));
    box-shadow: none;
    overflow: visible;
    transform: none;
}

.post-card:last-child {
    border-bottom: 0;
}

.post-card::before {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 24px;
    width: 12px;
    height: 12px;
    border: 1px solid #c04634;
    background: #130d0a;
    box-shadow: 0 0 0 4px rgba(101, 65, 35, 0.45), 0 0 14px rgba(195, 59, 47, 0.45);
    content: "";
    transform: translateY(-50%) rotate(45deg);
}

.post-card::after {
    top: 22px;
    bottom: 22px;
    left: 29px;
    width: 1px;
    height: auto;
    border: 0;
    border-radius: 0;
    background: linear-gradient(#6c4c2d, #2d2217);
}

.post-card:hover {
    border-color: transparent;
    background: linear-gradient(90deg, rgba(55, 34, 23, 0.74), rgba(21, 15, 12, 0.56));
    box-shadow: inset -3px 0 0 rgba(197, 55, 42, 0.9), inset 0 0 34px rgba(183, 53, 39, 0.05);
    transform: none;
}

.post-card.is-pinned {
    border-color: #5b3c26;
    box-shadow: inset 3px 0 0 #8f2f25;
}

.post-card-content {
    min-height: 176px;
    padding: 24px 30px 22px 66px;
    border: 0;
}

.post-card-category {
    color: #c99a5f;
    font-size: 12px;
    letter-spacing: 0.08em;
}

.post-card-pin {
    min-height: 24px;
    border-color: #7e4f2d;
    border-radius: 0;
    background: #271713;
    color: #df8d65;
    clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
}

.post-card-title {
    margin: 8px 0 7px;
    font-family: var(--font-display);
    font-size: clamp(22px, 2.1vw, 28px);
    font-weight: 700;
    letter-spacing: 0.035em;
}

.post-card-title a {
    color: #e2cca7;
}

.post-card-title a:hover {
    color: #f4d8a6;
}

.post-card-excerpt {
    color: #a9977d;
    line-height: 1.8;
}

.post-card-meta {
    gap: 17px;
    color: #8f7b61;
    font-size: 12px;
}

.post-card-meta .icon {
    color: #b68a54;
}

.post-card-fingerprint {
    font-family: var(--font-mono);
    letter-spacing: 0.025em;
}

.post-card-read,
.primary-button {
    position: relative;
    min-height: 42px;
    padding: 0 22px 0 58px;
    border: 1px solid #8b5731;
    border-radius: 15px 6px 15px 6px;
    background:
        url("../img/azeroth-emblem.png?v=1.0.0") 16px 50% / 34px auto no-repeat,
        linear-gradient(180deg, #321b15, #1b100d);
    background-blend-mode: soft-light, normal;
    color: #e4bd82;
    box-shadow: inset 0 0 0 1px rgba(232, 179, 102, 0.07), inset 0 0 18px rgba(169, 65, 40, 0.08), 0 7px 18px rgba(0, 0, 0, 0.28);
    font-size: 13px;
    letter-spacing: 0.08em;
    overflow: hidden;
}

.post-card-read:hover,
.primary-button:hover {
    border-color: #c37a45;
    background:
        url("../img/azeroth-emblem.png?v=1.0.0") 16px 50% / 34px auto no-repeat,
        linear-gradient(180deg, #54261d, #2b1511);
    color: #ffe0a9;
    box-shadow: inset 0 0 0 1px rgba(255, 211, 147, 0.12), inset 0 0 20px rgba(195, 59, 47, 0.14), 0 9px 22px rgba(0, 0, 0, 0.34);
}

/* Mermaid uses its own SVG variables, but the viewer still lives inside the
   parchment article surface. Keep every chart layer on the same black-iron
   board so light labels and ember edges remain readable. */
.article-card .mermaid-viewer {
    border-color: #6f4b2f;
    border-radius: 8px;
    background: #0d0b0a;
    box-shadow: inset 0 0 0 3px rgba(7, 6, 5, 0.86), inset 0 0 26px rgba(156, 71, 37, 0.1), 0 12px 26px rgba(45, 29, 17, 0.22);
    color: #ead9b8;
}

.article-card .mermaid-toolbar {
    min-height: 48px;
    border-bottom-color: #60432b;
    background: linear-gradient(180deg, #201611, #15100d);
}

.article-card .mermaid-title {
    color: #d8b57e;
    letter-spacing: 0.06em;
}

.article-card .mermaid-actions {
    gap: 7px;
}

.article-card .mermaid-action {
    border-color: #62452d;
    border-radius: 7px;
    background: #17110e;
    color: #c8a36e;
}

.article-card .mermaid-action:hover,
.article-card .mermaid-action.is-active {
    border-color: #b64f38;
    background: #3a1813;
    color: #f0c98e;
    box-shadow: 0 0 12px rgba(195, 59, 47, 0.16);
}

.article-card .mermaid-stage,
.article-card .mermaid-diagram {
    background:
        radial-gradient(circle at 50% 0%, rgba(145, 91, 48, 0.12), transparent 58%),
        #0d0b0a;
    color: #ead9b8;
}

.article-card .mermaid-diagram {
    min-height: 240px;
    padding: 30px 28px;
}

.article-card .mermaid-diagram .nodeLabel,
.article-card .mermaid-diagram .nodeLabel p,
.article-card .mermaid-diagram .edgeLabel,
.article-card .mermaid-diagram .edgeLabel p,
.article-card .mermaid-diagram .cluster-label,
.article-card .mermaid-diagram .cluster-label span {
    color: #ead9b8 !important;
}

.article-card .mermaid-diagram .labelBkg,
.article-card .mermaid-diagram .edgeLabel p {
    background-color: #130f0d !important;
}

.article-card .mermaid-diagram .node rect,
.article-card .mermaid-diagram .node circle,
.article-card .mermaid-diagram .node ellipse,
.article-card .mermaid-diagram .node polygon,
.article-card .mermaid-diagram .node path {
    fill: #2b1b16 !important;
    stroke: #b74734 !important;
}

.article-card .mermaid-diagram .edgePaths .path,
.article-card .mermaid-diagram .flowchart-link,
.article-card .mermaid-diagram .marker {
    stroke: #b8854e !important;
    fill: #b8854e !important;
}

.post-card.is-featured {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
    min-height: 438px;
    background: #0b0a09;
    overflow: hidden;
}

.post-card.is-featured::before,
.post-card.is-featured::after {
    display: none;
}

.post-card.is-featured .featured-art {
    grid-area: 1 / 2;
    min-height: 438px;
    background-image: url("../img/azeroth-hero.png?v=1.0.0");
    background-position: 58% center;
    background-size: cover;
    mask-image: linear-gradient(to right, transparent 0, #000 17%, #000 100%);
}

.post-card.is-featured .post-card-content {
    z-index: 1;
    grid-area: 1 / 1 / 2 / -1;
    min-height: 438px;
    padding: 50px 36% 38px 48px;
    justify-content: center;
    background: linear-gradient(90deg, #0b0a09 0%, #0b0a09 57%, rgba(11, 10, 9, 0.92) 68%, transparent 100%);
}

.post-card.is-featured .post-card-title {
    max-width: 9.6em;
    margin: 16px 0 15px;
    font-size: clamp(38px, 4.3vw, 62px);
    line-height: 1.18;
    letter-spacing: 0.035em;
}

.post-card.is-featured .post-card-excerpt {
    max-width: 620px;
    color: #b7a58b;
    font-size: 15px;
    -webkit-line-clamp: 3;
}

.post-card.is-featured .post-card-meta {
    margin-top: 22px;
    flex-wrap: wrap;
}

.post-card.is-featured .post-card-read {
    order: 8;
    min-width: 152px;
    margin-top: 16px;
    margin-right: 100%;
    justify-content: center;
}

/* Sidebar modules: etched archive panels. */

.sidebar-sticky {
    gap: 12px;
}

.sidebar-persistent,
.sidebar-toc-shell {
    gap: 12px;
}

.profile-card,
.sidebar-widget {
    position: relative;
    border: 1px solid #4f3923;
    border-radius: 0;
    background:
        linear-gradient(135deg, rgba(202, 151, 87, 0.035), transparent 25%),
        linear-gradient(180deg, rgba(20, 17, 14, 0.97), rgba(9, 8, 7, 0.97));
    box-shadow: inset 0 0 0 3px #0c0a08, inset 0 0 0 4px rgba(107, 77, 45, 0.35), var(--shadow-sm);
}

.profile-card {
    padding: 22px 22px 20px;
}

.profile-heading,
.widget-title {
    position: relative;
    margin: 0 0 18px;
    padding-bottom: 11px;
    color: #d5b47e;
    font-family: var(--font-display);
    font-size: 19px;
    letter-spacing: 0.07em;
}

.profile-heading::after,
.widget-title::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, #8f6338, transparent);
    content: "";
}

.profile-avatar-wrap {
    float: left;
    width: 82px;
    height: 82px;
    margin: 0 16px 8px 0;
    border: 1px solid #775130;
    border-radius: 50%;
    background: radial-gradient(circle, #291912, #0a0908 72%);
    box-shadow: 0 0 0 4px #0d0b09, 0 0 0 5px #3e2d1d;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.profile-emblem {
    padding: 8px;
    object-fit: contain;
}

.profile-card > h2:not(.profile-heading) {
    margin: 4px 0 4px;
    color: #ead1a5;
    font-family: var(--font-display);
    font-size: 18px;
}

.profile-tagline {
    color: #c44a39;
    font-size: 12px;
}

.profile-accent {
    display: none;
}

.profile-bio {
    margin-top: 10px;
    color: #a89577;
    font-size: 13px;
    line-height: 1.75;
}

.profile-links {
    clear: both;
    padding-top: 14px;
}

.profile-links a {
    border-color: #4f3924;
    border-radius: 0;
    background: #14100d;
    color: #b99a6c;
}

.sidebar-widget {
    padding: 20px;
}

.stats-widget {
    overflow: hidden;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid #3c2c1e;
    border-radius: 10px 3px 10px 3px;
    background: rgba(10, 8, 7, 0.62);
    list-style: none;
}

.stats-grid li {
    position: relative;
    min-width: 0;
    padding: 13px 12px 12px;
}

.stats-grid li:nth-child(odd) {
    border-right: 1px solid #3c2c1e;
}

.stats-grid li:nth-child(n+3) {
    border-top: 1px solid #3c2c1e;
}

.stats-value {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ddbd88;
}

.stats-value .icon {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    color: #b54132;
}

.stats-value strong {
    min-width: 0;
    overflow: hidden;
    font-family: var(--font-display);
    font-size: 20px;
    font-variant-numeric: tabular-nums;
    line-height: 1.15;
    text-overflow: ellipsis;
}

.stats-label {
    display: block;
    margin: 5px 0 0 24px;
    color: #8f7c62;
    font-size: 11px;
    letter-spacing: 0.12em;
}

.category-list {
    grid-template-columns: 1fr;
    gap: 0;
}

.category-list li + li,
.recent-list li + li,
.recent-comment-list li + li,
.friend-link-list li + li {
    border-top-color: #34271b;
}

.category-list a,
.friend-link-list a,
.recent-comment-link {
    min-height: 44px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #c1aa84;
}

.category-list a:hover,
.friend-link-list a:hover,
.recent-comment-link:hover {
    background: linear-gradient(90deg, rgba(137, 49, 36, 0.2), transparent);
    color: #efd5aa;
    transform: none;
}

.category-icon,
.friend-link-icon {
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #aa7845;
}

.category-count,
.recent-list time,
.recent-comment-meta time {
    color: #7f6d56;
}

.feed-link {
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #c89b5d;
}

.feed-link:hover {
    background: rgba(150, 55, 40, 0.14);
}

.fingerprint-copy {
    display: grid;
    width: 100%;
    padding: 10px 0;
    border: 0;
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    background: transparent;
    color: #d3ad73;
    text-align: left;
    cursor: pointer;
}

.fingerprint-copy .icon {
    grid-row: 1 / 3;
    width: 34px;
    height: 34px;
    color: #c33b2f;
}

.fingerprint-copy span {
    font-family: var(--font-mono);
    font-size: 15px;
}

.fingerprint-copy small {
    color: #86735c;
    font-size: 11px;
}

.is-post .sidebar-toc-shell,
.is-page .sidebar-toc-shell {
    order: -3;
}

.is-post .sidebar-persistent,
.is-page .sidebar-persistent,
.is-post .sidebar-toc-shell,
.is-page .sidebar-toc-shell {
    width: 100%;
    margin-right: 0;
}

:is(.is-post, .is-page) .sidebar[data-sidebar-mode="toc"] .sidebar-toc-shell,
:is(.is-post, .is-page) .sidebar[data-sidebar-mode="content"] .sidebar-persistent {
    width: 100%;
    margin-right: 0;
}

.is-post .sidebar-persistent,
.is-page .sidebar-persistent {
    order: -2;
}

.toc-list a {
    border-left-color: #45321f;
    color: #9f8d72;
}

.toc-list a:hover,
.toc-list a.is-active {
    border-left-color: #d34233;
    background: linear-gradient(90deg, rgba(182, 51, 39, 0.17), transparent);
    color: #edc88f;
}

/* Article parchment, surrounded by black iron chrome. */

.post-layout {
    grid-template-columns: minmax(0, 1fr) 330px;
}

.article-card {
    position: relative;
    padding: 54px 64px 48px;
    border: 1px solid #684a2d;
    border-radius: 0;
    --surface: #d7c39e;
    --surface-subtle: #cbb38a;
    --text: #2d2118;
    --text-soft: #473629;
    --muted: #6d5942;
    --border: #9b7d57;
    --border-strong: #715336;
    background:
        radial-gradient(circle at 16% 18%, rgba(255, 246, 218, 0.26), transparent 26rem),
        radial-gradient(circle at 84% 72%, rgba(84, 52, 27, 0.1), transparent 24rem),
        repeating-linear-gradient(94deg, transparent 0 5px, rgba(62, 39, 21, 0.012) 5px 6px),
        #d7c39e;
    color: #2d2118;
    box-shadow: inset 0 0 50px rgba(54, 34, 18, 0.2), 0 20px 60px rgba(0, 0, 0, 0.48);
    clip-path: polygon(13px 0, calc(100% - 13px) 0, 100% 13px, 100% calc(100% - 13px), calc(100% - 13px) 100%, 13px 100%, 0 calc(100% - 13px), 0 13px);
}

.article-card::after {
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(87, 56, 31, 0.24);
    content: "";
    pointer-events: none;
}

.article-header {
    position: relative;
    z-index: 1;
    border-bottom-color: rgba(89, 59, 35, 0.35);
    text-align: center;
}

.article-header h1 {
    color: #251b14;
    font-family: var(--font-display);
    font-size: clamp(38px, 4.4vw, 58px);
    letter-spacing: 0.04em;
    text-shadow: 0 1px rgba(255, 244, 212, 0.4);
}

.article-meta {
    justify-content: center;
    color: #73553b;
}

.article-meta a {
    color: #6b4228;
}

.markdown-body {
    position: relative;
    z-index: 1;
    color: #2f241a;
    font-family: "Songti SC", "STSong", Georgia, serif;
    font-size: 17px;
    line-height: 1.92;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
    color: #2a1e16;
    font-family: var(--font-display);
}

.markdown-body h2 {
    border-bottom-color: rgba(91, 60, 34, 0.25);
}

.markdown-body h2::before {
    background: #a23429;
}

.markdown-body p,
.markdown-body li {
    color: #3d2f23;
}

.markdown-body a {
    color: #84352a;
    text-decoration-color: rgba(132, 53, 42, 0.42);
}

.markdown-body blockquote {
    border-left-color: #a2382c;
    background: rgba(91, 58, 33, 0.08);
    color: #4a3929;
}

.markdown-body :not(pre) > code {
    border-color: rgba(105, 72, 43, 0.45);
    background: rgba(61, 40, 25, 0.11);
    color: #8d2f26;
}

.markdown-body pre,
.markdown-body .mermaid-source-code {
    border: 1px solid #4d3724;
    border-radius: 0;
    background: #121110;
    color: #e2d1b5;
    box-shadow: inset 3px 0 #a33529;
}

.code-copy {
    border-color: #5f452c;
    border-radius: 0;
    background: #1c1814;
    color: #c6a776;
}

.markdown-body table {
    border-color: #6f5436;
    background: rgba(54, 36, 23, 0.08);
}

.markdown-body th,
.markdown-body td {
    border-color: rgba(84, 56, 34, 0.35);
}

.markdown-body th {
    background: rgba(63, 42, 26, 0.15);
    color: #3a291c;
}

.markdown-body img {
    border-radius: 0;
    box-shadow: 0 10px 28px rgba(45, 29, 17, 0.24);
}

.article-footer {
    border-top-color: rgba(93, 62, 35, 0.32);
}

.article-tags a {
    border-color: #896843;
    border-radius: 0;
    background: rgba(88, 57, 32, 0.1);
    color: #673a25;
    clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
}

.article-Azeroth-banner {
    position: relative;
    z-index: 1;
    margin: 42px 0 0;
    border: 1px solid #725334;
    background: #100e0c;
    box-shadow: 0 0 0 5px rgba(74, 49, 29, 0.13);
}

.article-Azeroth-banner img {
    width: 100%;
    aspect-ratio: 3 / 1;
    object-fit: cover;
    filter: sepia(0.1) saturate(0.82) brightness(0.85);
}

.article-Azeroth-banner figcaption {
    padding: 8px 14px;
    background: #17130f;
    color: #c6a879;
    font-family: var(--font-display);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-align: center;
}

.mobile-toc-toggle,
.mobile-toc-panel {
    border-radius: 0;
}

.post-near,
.comments-card {
    border: 1px solid #4e3823;
    border-radius: 0;
    background: linear-gradient(180deg, #15120f, #0c0a09);
    color: var(--text);
    box-shadow: var(--etched-shadow);
}

.post-near-item + .post-near-item {
    border-left-color: #403020;
}

.post-near a {
    color: #ddc29a;
}

.comments-card {
    position: relative;
}

.comments-header h2,
.respond h2 {
    color: #d8b57e;
    font-family: var(--font-display);
    letter-spacing: 0.06em;
}

.comment-list > li,
.comment-children .comment-body {
    border-color: #3f2f20;
    border-radius: 0;
    background: rgba(25, 20, 16, 0.72);
}

.comment-author,
.comment-author a {
    color: #d2b58a;
}

.comment-content,
.comment-content p {
    color: #ad9a7d;
}

.comment-form input,
.comment-form textarea {
    border-color: #5b4129;
    border-radius: 0;
    background: #100e0c;
    color: #e6d3b2;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: #a77540;
    box-shadow: 0 0 0 3px rgba(172, 91, 50, 0.14);
}

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mermaid-viewer {
    border-color: #6e5133;
    border-radius: 0;
    background: rgba(27, 21, 16, 0.08);
}

.mermaid-toolbar {
    border-bottom-color: #6e5133;
    background: rgba(45, 30, 19, 0.12);
}

.mermaid-action {
    border-radius: 0;
}

/* Pagination, empty state and footer. */

.page-navigator a,
.page-navigator span {
    border-color: #513a25;
    border-radius: 0;
    background: #110f0d;
    color: #b79a70;
}

.page-navigator a:hover,
.page-navigator .current a {
    border-color: #9d6137;
    background: #351a15;
    color: #f0c98e;
}

.empty-state,
.error-card {
    border-color: #513a25;
    border-radius: 0;
    background: linear-gradient(180deg, #16120f, #0a0908);
    color: #b29d7c;
}

.error-code {
    color: #b5362b;
    font-family: var(--font-display);
    text-shadow: 0 0 24px rgba(195, 59, 47, 0.35);
}

.site-footer {
    border-top: 1px solid #4d3824;
    background: linear-gradient(180deg, #0d0b09, #070605);
}

.footer-inner {
    position: relative;
    flex-direction: column;
    gap: 5px;
    padding: 32px 0 30px;
    color: #7f6b51;
    text-align: center;
}

.footer-rune {
    position: absolute;
    top: -17px;
    left: 50%;
    display: grid;
    width: 34px;
    height: 34px;
    border: 1px solid #784929;
    place-items: center;
    background: #0c0a08;
    color: #c13b2e;
    transform: translateX(-50%) rotate(45deg);
}

.footer-rune .icon {
    width: 18px;
    height: 18px;
    transform: rotate(-45deg);
}

.back-to-top {
    border-color: #725033;
    border-radius: 0;
    background: #17110d;
    color: #c89f68;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

@media (min-width: 1600px) {
    :root {
        --container: 1540px;
        --sidebar-width: 336px;
    }
}

@media (max-width: 1240px) {
    .header-inner {
        grid-template-columns: minmax(250px, 1fr) auto minmax(240px, 1fr);
        gap: 14px;
    }

    .site-nav {
        gap: 22px;
    }

    .search-toggle {
        width: 44px;
        padding: 0;
        justify-content: center;
    }

    .search-toggle .action-label {
        display: none;
    }

}

@media (max-width: 960px) {
    :root {
        --header-height: 72px;
        --page-gutter: 14px;
    }

    .header-inner {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        width: calc(100% - 24px);
    }

    .brand {
        grid-column: 2;
    }

    .brand-text {
        display: none;
    }

    .brand-mark {
        width: 52px;
        height: 58px;
    }

    .header-actions {
        grid-column: 3;
        grid-row: 1;
    }

    .menu-toggle {
        position: absolute;
        left: 0;
        display: inline-grid;
    }

    .site-nav {
        border-bottom-color: #604327;
        background: rgba(10, 8, 7, 0.99);
    }

    .site-nav a {
        border-bottom-color: #33271b;
        color: #c8aa7c;
    }

    .page-shell,
    .post-layout {
        grid-template-columns: minmax(0, 1fr);
        width: calc(100% - 24px);
        margin-top: 12px;
    }

    .post-card.is-featured {
        grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
    }

    .post-card.is-featured .post-card-content {
        padding-left: 38px;
    }

    .sidebar {
        margin-top: 0;
    }

    .sidebar-persistent {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .sidebar-persistent > .sidebar-scroll-body {
        display: contents;
    }

    .profile-card {
        grid-row: span 2;
    }

    .sidebar-toc-shell {
        display: none !important;
    }
}

@media (max-width: 760px) {
    body.azeroth-nexus {
        font-size: 15px;
    }

    .header-actions {
        gap: 5px;
    }

    .icon-button {
        width: 44px;
        height: 44px;
    }

    .page-shell {
        width: calc(100% - 20px);
        padding-bottom: 34px;
    }

    .is-index .home-intro.sr-only {
        position: relative;
        width: auto;
        height: auto;
        margin: 0 0 10px;
        padding: 22px 12px 24px;
        overflow: visible;
        clip: auto;
        white-space: normal;
        border: 1px solid #49331f;
        background: linear-gradient(180deg, #15120f, #0b0a09);
        text-align: center;
    }

    .is-index .home-intro h1 {
        color: #d7b982;
        font-family: var(--font-display);
        font-size: clamp(22px, 7vw, 30px);
        letter-spacing: 0.08em;
    }

    .is-index .home-intro h1::after {
        display: block;
        width: 68px;
        height: 1px;
        margin: 14px auto 0;
        background: linear-gradient(90deg, transparent, #a83b2e, transparent);
        box-shadow: 0 0 8px rgba(195, 59, 47, 0.45);
        content: "";
    }

    .is-index .home-intro p {
        display: none;
    }

    .post-list {
        border-color: #49331f;
    }

    .post-card.is-featured {
        display: grid;
        grid-template-columns: 1fr;
        min-height: 430px;
    }

    .post-card.is-featured .featured-art,
    .post-card.is-featured .post-card-content {
        grid-area: 1 / 1;
        min-height: 430px;
    }

    .post-card.is-featured .featured-art {
        background-position: 62% center;
        mask-image: linear-gradient(to bottom, #000 0, #000 100%);
        opacity: 0.72;
    }

    .post-card.is-featured .post-card-content {
        padding: 34px 24px 28px;
        justify-content: flex-end;
        background: linear-gradient(180deg, rgba(9, 8, 7, 0.12) 8%, rgba(9, 8, 7, 0.56) 45%, #090807 95%);
    }

    .post-card.is-featured .post-card-title {
        max-width: 8.2em;
        margin: 12px 0;
        font-size: clamp(34px, 10vw, 46px);
    }

    .post-card.is-featured .post-card-excerpt {
        display: none;
    }

    .post-card.is-featured .post-card-meta > span:nth-child(n+3) {
        display: none;
    }

    .post-card.is-featured .post-card-read {
        margin-top: 8px;
    }

    .post-card:not(.is-featured) {
        min-height: 0;
    }

    .post-card:not(.is-featured)::before {
        left: 16px;
    }

    .post-card:not(.is-featured)::after {
        left: 21px;
    }

    .post-card:not(.is-featured) .post-card-content {
        min-height: 0;
        padding: 22px 20px 22px 45px;
    }

    .post-card-title {
        font-size: 22px;
    }

    .post-card-excerpt {
        -webkit-line-clamp: 2;
    }

    .post-card-meta {
        gap: 12px;
        flex-wrap: wrap;
    }

    .post-card-fingerprint {
        display: none !important;
    }

    .post-card:not(.is-featured) .post-card-read {
        width: 100%;
        margin-top: 8px;
        justify-content: center;
    }

    .sidebar-persistent {
        grid-template-columns: minmax(0, 1fr);
    }

    .profile-card {
        grid-row: auto;
    }

    .article-card {
        padding: 30px 20px 28px;
        --surface: #11100e;
        --surface-subtle: #181411;
        --text: #ead9b8;
        --text-soft: #d0b993;
        --muted: #98836a;
        --border: #4d3925;
        --border-strong: #876139;
        background:
            radial-gradient(circle at 70% 8%, rgba(122, 39, 29, 0.12), transparent 20rem),
            linear-gradient(180deg, #14110e, #0b0a09);
        color: #ead9b8;
        clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
    }

    .article-header h1 {
        color: #ecd1a4;
        font-size: clamp(32px, 9vw, 44px);
    }

    .article-meta {
        color: #9f8868;
    }

    .article-meta a {
        color: #c7a875;
    }

    .mobile-toc-toggle {
        border-color: #785331;
        background: #17120f;
        color: #dbb77f;
    }

    .mobile-toc-panel {
        max-height: 320px;
        border-color: #4d3925;
        background: #0d0b09;
        overflow: auto;
    }

    .markdown-body {
        color: #d8c3a0;
        font-family: var(--font-sans);
        font-size: 16px;
        line-height: 1.86;
    }

    .markdown-body h1,
    .markdown-body h2,
    .markdown-body h3,
    .markdown-body h4,
    .markdown-body h5,
    .markdown-body h6 {
        color: #e9cca0;
    }

    .markdown-body p,
    .markdown-body li {
        color: #cbb896;
    }

    .markdown-body a {
        color: #dc8263;
    }

    .markdown-body blockquote {
        background: rgba(91, 51, 35, 0.2);
        color: #d0b68e;
    }

    .markdown-body :not(pre) > code {
        border-color: #63432c;
        background: #251814;
        color: #f08a6e;
    }

    .markdown-body table {
        background: #110f0d;
        color: #d0bb97;
    }

    .markdown-body th {
        background: #211711;
        color: #e0c394;
    }

    .article-Azeroth-banner {
        margin-top: 30px;
    }

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

    .post-near-item + .post-near-item {
        border-top-color: #403020;
        border-left: 0;
    }

    .footer-inner {
        width: calc(100% - 28px);
    }
}

@media (max-width: 480px) {
    .brand-mark {
        width: 48px;
        height: 54px;
    }

    .post-card.is-featured,
    .post-card.is-featured .featured-art,
    .post-card.is-featured .post-card-content {
        min-height: 402px;
    }

    .post-card.is-featured .post-card-content {
        padding: 28px 20px 24px;
    }

    .post-card.is-featured .post-card-title {
        font-size: 36px;
    }

    .post-card-meta > span:nth-child(2) {
        display: none;
    }

    .article-card {
        padding-right: 17px;
        padding-left: 17px;
    }

    .article-Azeroth-banner img {
        aspect-ratio: 2.2 / 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ember-network {
        opacity: 0.42;
    }
}

@media print {
    .ember-network,
    .reading-progress,
    .article-Azeroth-banner,
    .article-rail {
        display: none !important;
    }
}

/* Shared desktop archive rail for home, post and standalone page templates. */

.rail-layout {
    grid-template-columns: 104px minmax(0, 1fr) 318px;
    gap: 14px;
}

.article-rail {
    min-width: 0;
    align-self: stretch;
}

.article-rail-inner {
    position: sticky;
    top: calc(var(--header-height) + 14px);
    display: flex;
    height: calc(100vh - var(--header-height) - 28px);
    min-height: 620px;
    max-height: 920px;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #4e3823;
    background: #0b0a09;
    box-shadow: inset 0 0 22px rgba(109, 73, 39, 0.16), 0 18px 50px rgba(0, 0, 0, 0.38);
}

.article-rail-emblem {
    display: grid;
    min-height: 94px;
    place-items: center;
    border-bottom: 1px solid #49341f;
}

.article-rail-emblem img {
    width: 66px;
    height: 70px;
    object-fit: contain;
    filter: sepia(0.18) saturate(0.86) brightness(0.9);
}

.article-rail-nav {
    display: grid;
}

.article-rail-nav a {
    position: relative;
    display: grid;
    min-height: 72px;
    place-items: center;
    align-content: center;
    gap: 7px;
    border-bottom: 1px solid #2f251a;
    color: #9f8764;
    font-family: var(--font-display);
    font-size: 13px;
    letter-spacing: 0.12em;
    text-decoration: none;
    transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.article-rail-nav a:hover,
.article-rail-nav a:focus-visible,
.article-rail-nav a.is-current,
.article-rail-nav a.is-primary {
    border-bottom-color: #745033;
    background: #18110d;
    color: #d7b47e;
}

.article-rail-nav a.is-current,
.article-rail-nav a.is-primary {
    box-shadow: inset 3px 0 #b64031;
}

.article-rail-nav .icon {
    width: 25px;
    height: 25px;
    color: #b18a57;
    stroke-width: 1.55;
}

.article-rail-relic {
    width: 78px;
    height: clamp(144px, 22vh, 210px);
    margin: auto auto 16px;
    object-fit: fill;
    filter: saturate(0.82) brightness(0.86);
}

.rail-anchor,
#article-start,
#post-near,
#article-toc {
    scroll-margin-top: calc(var(--header-height) + 18px);
}

@media (min-width: 1600px) {
    .rail-layout {
        grid-template-columns: 112px minmax(0, 1fr) 336px;
        gap: 16px;
    }

    .article-rail-nav a {
        min-height: 76px;
        font-size: 14px;
    }

    .article-rail-relic {
        width: 84px;
    }
}

@media (max-width: 1180px) {
    .rail-layout {
        grid-template-columns: minmax(0, 1fr) 318px;
        gap: 18px;
    }

    .article-rail {
        display: none;
    }
}

@media (max-width: 960px) {
    .rail-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ========================================================================== */
/* Azeroth Nexus high-fidelity pass                                       */
/* Calibrated against design/azeroth-nexus/concepts/*-desktop.png (1435x1096).    */
/* ========================================================================== */

:root {
    --container: 1420px;
    --sidebar-width: 326px;
    --layout-gap: 8px;
    --page-gutter: 7px;
    --header-height: 104px;
}

body.azeroth-nexus {
    background:
        radial-gradient(circle at 78% 12%, rgba(143, 53, 35, 0.11), transparent 28rem),
        radial-gradient(circle at 18% 76%, rgba(137, 89, 43, 0.06), transparent 32rem),
        repeating-linear-gradient(135deg, transparent 0 3px, rgba(255, 255, 255, 0.009) 3px 4px),
        #080706;
}

body.azeroth-nexus::after {
    position: fixed;
    z-index: 1;
    inset: 6px;
    border: 1px solid rgba(104, 74, 43, 0.64);
    box-shadow: inset 0 0 0 1px rgba(23, 17, 12, 0.95), 0 0 0 1px rgba(0, 0, 0, 0.76);
    content: "";
    pointer-events: none;
}

.site-header {
    min-height: var(--header-height);
    border: 1px solid #5e4329;
    border-top-color: #2f2419;
    background:
        linear-gradient(180deg, rgba(21, 18, 15, 0.985), rgba(8, 7, 6, 0.99)),
        #0b0a09;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.66), inset 0 -3px 0 rgba(155, 106, 56, 0.12), inset 0 0 0 5px rgba(9, 7, 6, 0.92);
}

.site-header::before {
    position: absolute;
    z-index: 0;
    inset: 5px;
    border: 1px solid rgba(103, 74, 43, 0.58);
    content: "";
    pointer-events: none;
}

.site-header::after {
    right: 18px;
    bottom: 7px;
    left: 18px;
    background: linear-gradient(90deg, transparent, #6d4c2d 12%, #aa7843 50%, #6d4c2d 88%, transparent);
    opacity: 0.88;
}

.header-inner {
    position: relative;
    z-index: 1;
    grid-template-columns: minmax(360px, 1fr) auto minmax(280px, 1fr);
    width: min(calc(100% - 24px), var(--container));
    min-height: 98px;
    gap: 24px;
}

.brand {
    gap: 16px;
    font-size: 27px;
    letter-spacing: 0.08em;
}

.brand-mark {
    width: 68px;
    height: 76px;
}

.site-nav {
    gap: 42px;
}

.site-nav a {
    font-size: 18px;
    letter-spacing: 0.11em;
}

.site-nav a::after {
    right: 18%;
    bottom: 15px;
    left: 18%;
    height: 2px;
}

.header-actions {
    gap: 10px;
}

.search-toggle {
    width: 240px;
    min-height: 42px;
    padding: 0 15px;
    justify-content: flex-start;
}

.search-toggle .action-label {
    font-size: 14px;
}

.page-shell {
    width: min(calc(100% - 14px), var(--container));
    margin-top: 8px;
    padding-bottom: 56px;
}

.rail-layout {
    grid-template-columns: 96px minmax(0, 1fr) var(--sidebar-width);
    gap: var(--layout-gap);
}

.post-layout {
    padding-top: 0;
}

.article-rail-inner {
    top: calc(var(--header-height) + 10px);
    height: calc(100vh - var(--header-height) - 18px);
    min-height: 650px;
    max-height: 980px;
    border-color: #553c25;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.32), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.42)),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.008) 0 1px, transparent 1px 4px),
        #0b0a09;
    box-shadow: inset 0 0 0 4px #0b0908, inset 0 0 0 5px rgba(101, 71, 40, 0.38), inset 0 0 32px rgba(103, 66, 34, 0.2), 0 22px 52px rgba(0, 0, 0, 0.48);
}

.article-rail-emblem {
    min-height: 94px;
    border-bottom-color: #503823;
    background: linear-gradient(180deg, rgba(42, 29, 19, 0.2), transparent);
}

.article-rail-emblem img {
    width: 70px;
    height: 74px;
}

.article-rail-nav a {
    min-height: 75px;
    gap: 8px;
    border-bottom-color: #302419;
    font-size: 13px;
    letter-spacing: 0.13em;
}

.article-rail-nav a.is-current,
.article-rail-nav a.is-primary {
    box-shadow: inset 3px 0 #c04331, inset 0 0 18px rgba(145, 50, 33, 0.08);
}

.article-rail-nav .icon {
    width: 27px;
    height: 27px;
    color: #be955d;
}

.article-rail-relic {
    width: 74px;
    height: clamp(170px, 24vh, 238px);
    margin-bottom: 20px;
    filter: saturate(0.86) brightness(0.88) drop-shadow(0 0 8px rgba(126, 42, 28, 0.12));
}

.post-list {
    border-color: #503923;
    background: rgba(11, 10, 9, 0.91);
    box-shadow: inset 0 0 0 4px rgba(7, 6, 5, 0.88), inset 0 0 0 5px rgba(90, 61, 35, 0.28), 0 20px 60px rgba(0, 0, 0, 0.42);
}

.post-list::before,
.post-list::after,
.article-card::before,
.comments-card::before {
    width: 22px;
    height: 22px;
    border-color: #956b3c;
}

.post-list::before,
.article-card::before,
.comments-card::before {
    top: 7px;
    left: 7px;
}

.post-list::after {
    right: 7px;
    bottom: 7px;
}

.post-card {
    min-height: 142px;
    background: linear-gradient(90deg, rgba(32, 24, 18, 0.48), rgba(13, 11, 9, 0.24));
}

.post-card::before {
    left: 31px;
    width: 13px;
    height: 13px;
    border-color: #c84b36;
    box-shadow: 0 0 0 4px rgba(101, 65, 35, 0.42), 0 0 15px rgba(195, 59, 47, 0.58);
}

.post-card::after {
    top: 18px;
    bottom: 18px;
    left: 36px;
    background: linear-gradient(#825b35, #2c2117);
}

.post-card-content {
    min-height: 142px;
    padding: 21px 28px 19px 78px;
}

.post-card-category {
    font-size: 13px;
    letter-spacing: 0.1em;
}

.post-card-title {
    margin: 6px 0 6px;
    font-size: clamp(22px, 2vw, 29px);
    line-height: 1.26;
}

.post-card-excerpt {
    font-size: 14px;
    line-height: 1.66;
}

.post-card-meta {
    gap: 15px;
    padding-top: 12px;
    font-size: 11px;
}

.post-card-read,
.primary-button {
    min-height: 44px;
    padding-right: 22px;
    padding-left: 57px;
    border-radius: 18px 7px 18px 7px;
    background-position: 15px 50%, 0 0;
    background-size: 34px auto, auto;
    box-shadow: inset 0 0 0 1px rgba(232, 179, 102, 0.09), inset 0 0 21px rgba(169, 65, 40, 0.11), 0 8px 20px rgba(0, 0, 0, 0.3);
    font-size: 13px;
}

.post-card.is-featured {
    min-height: 442px;
    grid-template-columns: minmax(0, 1fr);
}

.post-card.is-featured .featured-art {
    grid-area: 1 / 1;
    min-height: 442px;
    background-position: 63% center;
    background-size: cover;
    mask-image: linear-gradient(to right, transparent 0, #000 26%, #000 100%);
    opacity: 0.98;
}

.post-card.is-featured .post-card-content {
    grid-area: 1 / 1;
    min-height: 442px;
    padding: 48px 46% 38px 48px;
    background: linear-gradient(90deg, #090807 0%, #090807 42%, rgba(9, 8, 7, 0.94) 60%, rgba(9, 8, 7, 0.28) 78%, transparent 100%);
}

.post-card.is-featured .post-card-category {
    color: #e14e3a;
    font-size: 14px;
}

.post-card.is-featured .post-card-title {
    max-width: 8.3em;
    margin: 15px 0 17px;
    font-size: clamp(44px, 4.5vw, 67px);
    line-height: 1.18;
    letter-spacing: 0.055em;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.82);
}

.post-card.is-featured .post-card-excerpt {
    max-width: 570px;
    color: #c8b393;
    font-size: 15px;
    line-height: 1.8;
}

.post-card.is-featured .post-card-meta {
    position: relative;
    min-height: 27px;
    margin-top: 16px;
    padding-top: 0;
}

.post-card.is-featured .post-card-read {
    position: absolute;
    left: 0;
    bottom: -68px;
    min-width: 174px;
    margin: 0;
}

.sidebar-sticky {
    gap: 8px;
}

.sidebar-persistent,
.sidebar-toc-shell {
    gap: 8px;
}

.profile-card,
.sidebar-widget {
    border-color: #563d25;
    background:
        linear-gradient(135deg, rgba(201, 151, 87, 0.045), transparent 24%),
        linear-gradient(180deg, rgba(19, 16, 13, 0.985), rgba(8, 7, 6, 0.985));
    box-shadow: inset 0 0 0 4px #0b0908, inset 0 0 0 5px rgba(107, 77, 45, 0.36), inset 0 0 32px rgba(117, 73, 37, 0.08), 0 13px 30px rgba(0, 0, 0, 0.36);
}

.profile-card {
    min-height: 260px;
    padding: 22px 20px 18px;
}

.profile-heading,
.widget-title {
    margin-bottom: 15px;
    padding-bottom: 10px;
    color: #dfbd83;
    font-size: 20px;
}

.profile-avatar-wrap {
    width: 80px;
    height: 80px;
    margin-right: 14px;
    border-color: #87613a;
    box-shadow: 0 0 0 4px #0c0a08, 0 0 0 5px #4a3320, 0 0 18px rgba(122, 53, 33, 0.2);
}

.profile-guardian {
    object-position: center;
    filter: saturate(0.82) contrast(1.08) brightness(0.78);
}

.profile-card > h2:not(.profile-heading) {
    font-size: 19px;
}

.profile-tagline {
    color: #d14d39;
}

.profile-bio {
    font-size: 12px;
    line-height: 1.65;
}

.sidebar-widget {
    padding: 17px 18px;
}

.stats-grid {
    border-radius: 9px 3px 9px 3px;
}

.stats-grid li {
    padding: 11px 10px 10px;
}

.stats-value strong {
    font-size: 19px;
}

.category-list a,
.friend-link-list a,
.recent-comment-link {
    min-height: 42px;
}

.recent-list a,
.recent-comment-excerpt {
    font-size: 12px;
}

.is-post .sidebar-toc-shell,
.is-page .sidebar-toc-shell {
    order: -3;
}

.toc-widget {
    min-height: 356px;
}

.toc-list a {
    padding-top: 6px;
    padding-bottom: 6px;
    border-left-width: 2px;
    color: #b29a77;
    font-family: var(--font-display);
    font-size: 14px;
}

.toc-list .toc-level-2 > a {
    font-size: 12px;
}

.article-card {
    padding: 40px 78px 54px;
    border-color: #765636;
    background:
        radial-gradient(circle at 12% 12%, rgba(255, 246, 218, 0.32), transparent 24rem),
        radial-gradient(circle at 86% 76%, rgba(84, 52, 27, 0.12), transparent 25rem),
        repeating-linear-gradient(94deg, transparent 0 5px, rgba(62, 39, 21, 0.018) 5px 6px),
        #bea789;
    box-shadow: inset 0 0 62px rgba(54, 34, 18, 0.23), inset 0 0 0 5px rgba(64, 41, 23, 0.09), 0 20px 66px rgba(0, 0, 0, 0.52);
}

.article-card::after {
    inset: 10px;
    border-color: rgba(87, 56, 31, 0.3);
}

.article-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
}

.article-header h1 {
    font-size: clamp(42px, 4vw, 56px);
    line-height: 1.25;
    letter-spacing: 0.055em;
}

.article-meta {
    gap: 10px 20px;
    margin-top: 15px;
    font-size: 13px;
}

.markdown-body {
    font-size: 17.5px;
    line-height: 1.84;
}

.markdown-body h2 {
    margin-top: 29px;
    margin-bottom: 11px;
    font-size: 25px;
    letter-spacing: 0.06em;
}

.markdown-body h3 {
    font-size: 20px;
}

.markdown-body p,
.markdown-body li {
    color: #3b2d21;
}

.markdown-body blockquote {
    margin: 18px 0 21px;
    padding: 12px 20px;
    border-left-width: 3px;
    background: rgba(91, 58, 33, 0.09);
}

.markdown-body pre,
.markdown-body .mermaid-source-code {
    margin-top: 16px;
    margin-bottom: 18px;
    border-radius: 7px;
}

.markdown-body table {
    border-radius: 6px;
    overflow: hidden;
}

.article-Azeroth-banner {
    margin-top: 36px;
    border-color: #745334;
    box-shadow: 0 0 0 6px rgba(74, 49, 29, 0.13), 0 12px 28px rgba(42, 26, 16, 0.16);
}

.article-Azeroth-banner figcaption {
    padding: 9px 14px;
}

.post-near,
.comments-card {
    border-color: #563d25;
    box-shadow: inset 0 0 0 4px rgba(7, 6, 5, 0.82), inset 0 0 0 5px rgba(90, 61, 35, 0.26), 0 18px 42px rgba(0, 0, 0, 0.38);
}

.site-footer {
    position: relative;
    z-index: 2;
    border-top-color: #62472c;
    box-shadow: inset 0 4px 0 rgba(31, 22, 15, 0.8);
}

.footer-inner {
    width: min(calc(100% - 28px), var(--container));
    padding-top: 36px;
    padding-bottom: 34px;
}

.back-to-top {
    position: fixed;
    z-index: 140;
    right: 22px;
    bottom: 22px;
    border-radius: 13px 5px 13px 5px;
    clip-path: none;
}

@media (min-width: 961px) {
    /* The article reference uses a tighter 92px archive masthead; the home
       reference keeps the taller 104px landing masthead above. */
    body.azeroth-nexus.is-post,
    body.azeroth-nexus.is-page {
        --header-height: 92px;
    }

    body.azeroth-nexus.is-post .site-header,
    body.azeroth-nexus.is-page .site-header {
        min-height: 92px;
    }

    body.azeroth-nexus.is-post .header-inner,
    body.azeroth-nexus.is-page .header-inner {
        min-height: 86px;
    }
}

@media (min-width: 1600px) {
    :root {
        --container: 1540px;
        --sidebar-width: 342px;
    }

    .rail-layout {
        grid-template-columns: 104px minmax(0, 1fr) var(--sidebar-width);
        gap: 10px;
    }
}

@media (max-width: 1240px) {
    .header-inner {
        width: calc(100% - 20px);
    }

    .site-nav {
        gap: 24px;
    }

    .search-toggle {
        width: 44px;
    }
}

@media (max-width: 1180px) {
    .rail-layout {
        grid-template-columns: minmax(0, 1fr) 326px;
        gap: 12px;
    }

    .article-rail {
        display: none;
    }
}

@media (max-width: 960px) {
    :root {
        --header-height: 76px;
    }

    .site-header {
        min-height: var(--header-height);
    }

    .header-inner {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        min-height: 70px;
    }

    .brand {
        grid-column: 2;
    }

    .brand-text {
        display: none;
    }

    .header-actions {
        grid-column: 3;
        grid-row: 1;
    }

    .menu-toggle {
        position: absolute;
        left: 0;
        display: inline-grid;
    }

    .brand-mark {
        width: 54px;
        height: 60px;
    }

    .page-shell,
    .post-layout {
        width: calc(100% - 18px);
        margin-top: 8px;
    }

    .rail-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .post-card.is-featured .post-card-content {
        padding-left: 40px;
    }

    .article-card {
        padding-right: 48px;
        padding-left: 48px;
    }
}

@media (max-width: 760px) {
    :root {
        --header-height: 68px;
    }

    .site-header {
        min-height: var(--header-height);
    }

    .header-inner {
        min-height: 62px;
        width: calc(100% - 14px);
    }

    .brand-mark {
        width: 48px;
        height: 54px;
    }

    .page-shell,
    .post-layout {
        width: calc(100% - 12px);
        margin-top: 6px;
    }

    .rail-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .post-card.is-featured {
        min-height: 430px;
    }

    .post-card.is-featured .featured-art,
    .post-card.is-featured .post-card-content {
        min-height: 430px;
    }

    .post-card.is-featured .post-card-content {
        padding: 32px 24px 28px;
        background: linear-gradient(180deg, rgba(9, 8, 7, 0.14) 7%, rgba(9, 8, 7, 0.6) 50%, #090807 96%);
    }

    .post-card.is-featured .post-card-title {
        max-width: 8.1em;
        font-size: clamp(35px, 10vw, 48px);
    }

    .post-card.is-featured .post-card-read {
        position: static;
        margin-top: 8px;
    }

    .post-card:not(.is-featured) .post-card-content {
        padding-left: 50px;
    }

    .article-card {
        padding: 32px 22px 30px;
    }

    .article-header h1 {
        font-size: clamp(32px, 9vw, 46px);
    }

    .markdown-body {
        font-size: 16px;
        line-height: 1.86;
    }

    .back-to-top {
        right: 14px;
        bottom: 14px;
    }
}

@media (max-width: 480px) {
    .post-card.is-featured .post-card-content {
        padding: 28px 20px 24px;
    }

    .post-card.is-featured .post-card-title {
        font-size: 36px;
    }

    .article-card {
        padding-right: 17px;
        padding-left: 17px;
    }
}

/* Homepage list metadata: taxonomy first, then publication date, reading
   time and the real Typecho author. The featured card intentionally keeps
   only its reading CTA. */
.post-card-meta .post-card-taxonomy,
.post-card-meta .post-card-author {
    color: #c99a5f;
    white-space: nowrap;
}

.post-card-meta .post-card-taxonomy a,
.post-card-meta .post-card-author a,
.post-card-meta .post-card-author > span {
    color: inherit;
}

.post-card-meta .post-card-taxonomy .icon,
.post-card-meta .post-card-author .icon {
    color: #c18a4d;
}

.post-card:not(.is-featured) .post-card-title {
    margin-top: 0;
}

.post-card.is-featured .post-card-meta {
    min-height: 44px;
}

/* 1.0.11 banner alignment and featured CTA clearance. Keep the masthead on
   the same measured frame as the page shell, while a subdued Azeroth hall
   image gives the header a real material backdrop instead of a flat strip. */
.site-header {
    width: min(calc(100% - 14px), var(--container));
    margin-right: auto;
    margin-left: auto;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(8, 7, 6, 0.98) 0%, rgba(8, 7, 6, 0.88) 35%, rgba(8, 7, 6, 0.72) 68%, rgba(8, 7, 6, 0.95) 100%),
        url("../img/azeroth-hero.png?v=1.0.0") center 43% / cover no-repeat,
        #0b0a09;
}

.post-card.is-featured .post-card-read {
    bottom: -42px;
}

@media (max-width: 760px) {
    .site-header {
        width: calc(100% - 12px);
    }

    .post-card.is-featured .post-card-read {
        bottom: auto;
    }
}

/* 1.0.11 list metadata contrast pass. Keep the warm Azeroth hierarchy and
   give every text field the same readable light-gold token on black iron. */
.post-card-meta {
    color: #d6b476;
}

.post-card-meta .post-card-taxonomy,
.post-card-meta .post-card-author {
    color: #d6b476;
}

.post-card-meta .icon {
    color: #d1a15c;
}

/* 1.0.11 category hover restraint. The card still gains its background,
   border and shadow response, while category text keeps its resting color. */
.category-list a:hover {
    color: #c1aa84;
}

.category-list a:hover .category-name {
    color: var(--text);
}

/* -------------------------------------------------------------------------
   Azeroth Nexus 1.0.0 — original fantasy skin
   The visual language is an original night-sky observatory: stone/steel
   frames, arcane cyan light and parchment-gold accents. The animated canvas
   and tag cloud are lightweight Web effects; all content remains Typecho.
   ------------------------------------------------------------------------- */
body.azeroth-nexus {
    --page-bg: #07101f;
    --surface: rgba(9, 22, 42, .93);
    --surface-subtle: rgba(16, 36, 66, .9);
    --text: #f3f7ff;
    --text-soft: #d8e3f4;
    --muted: #91a4c6;
    --border: #2d4a6b;
    --border-strong: #5a789b;
    --accent: #3de4d4;
    --accent-strong: #7af2e6;
    --signature: #f4c86a;
    background: #050b16;
    overflow-x: hidden;
}

body.azeroth-nexus::before {
    position: fixed;
    z-index: -3;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(3, 8, 18, .28), rgba(3, 8, 18, .93) 72%),
        url("../img/azeroth-hero.png?v=1.0.0") center top / cover no-repeat;
    content: "";
    pointer-events: none;
}

body.azeroth-nexus::after {
    position: fixed;
    z-index: -2;
    inset: 0;
    background-image: radial-gradient(circle at 10% 18%, rgba(61, 228, 212, .22) 0 1px, transparent 1.5px), radial-gradient(circle at 78% 28%, rgba(244, 200, 106, .17) 0 1px, transparent 1.5px);
    background-size: 97px 113px, 131px 149px;
    content: "";
    opacity: .4;
    pointer-events: none;
}

.ember-network {
    z-index: -1;
    opacity: .62;
    pointer-events: none;
}

.site-header {
    width: 100%;
    max-width: none;
    margin: 0;
    border-bottom: 1px solid rgba(93, 128, 165, .52);
    background: linear-gradient(90deg, rgba(5, 13, 27, .98), rgba(9, 23, 44, .9) 50%, rgba(5, 13, 27, .98));
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

.header-inner {
    width: min(calc(100% - 40px), 1440px);
    min-height: 82px;
}

.brand {
    gap: 12px;
    color: var(--signature);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.brand-mark {
    width: 54px;
    height: 60px;
    border: 0;
    background: transparent;
}

.brand-mark img {
    width: 54px;
    height: 60px;
    filter: drop-shadow(0 0 12px rgba(61, 228, 212, .45));
    object-fit: contain;
}

.site-nav {
    gap: 38px;
}

.site-nav a {
    color: #cdd9eb;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
}

.site-nav a:hover,
.site-nav a.is-current {
    color: var(--accent);
    text-shadow: 0 0 14px rgba(61, 228, 212, .4);
}

.icon-button {
    border: 1px solid rgba(93, 128, 165, .5);
    border-radius: 8px;
    background: rgba(13, 35, 60, .7);
}

.search-toggle .action-label {
    display: none;
}

.page-shell {
    width: min(calc(100% - 40px), 1440px);
    margin-top: 28px;
}

.home-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
}

.home-layout .article-rail {
    display: none;
}

.content-column {
    min-width: 0;
}

.post-list {
    gap: 14px;
}

.post-card {
    overflow: hidden;
    border: 1px solid rgba(71, 108, 144, .62);
    border-radius: 8px;
    background: rgba(7, 18, 35, .86);
    box-shadow: 0 14px 38px rgba(0, 0, 0, .24);
}

.post-card:hover {
    border-color: rgba(61, 228, 212, .9);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .34), 0 0 24px rgba(61, 228, 212, .1);
    transform: translateY(-2px);
}

.post-card.is-featured {
    display: grid;
    min-height: 360px;
    grid-template-columns: 48% 52%;
    border-color: rgba(244, 200, 106, .72);
}

.post-card.is-featured .featured-art {
    grid-area: 1 / 1 / 2 / 2;
    min-height: 360px;
    background: url("../img/azeroth-hero.png?v=1.0.0") 66% center / cover no-repeat;
}

.post-card.is-featured .featured-art::after {
    background: linear-gradient(90deg, rgba(5, 13, 28, 0) 42%, rgba(5, 13, 28, .92) 100%);
}

.post-card.is-featured .post-card-content {
    grid-area: 1 / 2 / 2 / 3;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 42px 34px 30px;
    background: linear-gradient(110deg, rgba(5, 15, 31, .62), rgba(5, 15, 31, .96) 20%);
}

.post-card.is-featured .post-card-title {
    max-width: 14ch;
    color: #f4f7ff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(32px, 3.4vw, 52px);
    line-height: 1.12;
    letter-spacing: .01em;
}

.post-card.is-featured .post-card-excerpt {
    max-width: 44ch;
    color: #b8c8dd;
    font-size: 16px;
}

.post-card.is-featured .post-card-read,
.post-card-read {
    border: 1px solid rgba(244, 200, 106, .8);
    border-radius: 4px;
    color: var(--signature);
    background: linear-gradient(135deg, rgba(32, 48, 73, .9), rgba(11, 25, 45, .96));
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: .08em;
}

.post-card:not(.is-featured) {
    display: grid;
    grid-template-columns: 136px minmax(0, 1fr);
    min-height: 116px;
}

.post-card-art {
    display: block;
    align-self: stretch;
    min-height: 116px;
    background: url("../img/azeroth-hero.png?v=1.0.0") 68% center / cover no-repeat;
    border-right: 1px solid rgba(71, 108, 144, .56);
    filter: saturate(.82) brightness(.82);
}

.post-card:nth-child(3n) .post-card-art { background-position: 46% center; filter: hue-rotate(12deg) saturate(.75) brightness(.78); }
.post-card:nth-child(4n) .post-card-art { background-position: 82% center; filter: hue-rotate(-10deg) saturate(.72) brightness(.82); }

.post-card:not(.is-featured) .post-card-content {
    padding: 20px 24px 18px;
}

.post-card:not(.is-featured) .post-card-title {
    color: #edf4ff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
}

.post-card:not(.is-featured) .post-card-excerpt {
    margin: 4px 0 9px;
    color: #9fb2ce;
}

.post-card-meta {
    color: #94a9c6;
}

.post-card-meta .post-card-taxonomy,
.post-card-meta .post-card-author {
    color: var(--signature);
}

.sidebar {
    min-width: 0;
}

.sidebar-sticky {
    gap: 14px;
}

.profile-card,
.sidebar-widget {
    border: 1px solid rgba(71, 108, 144, .65);
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(11, 28, 51, .96), rgba(5, 15, 31, .92));
    box-shadow: 0 14px 36px rgba(0, 0, 0, .23);
}

.profile-card {
    position: relative;
    padding: 26px 24px 22px;
    text-align: center;
}

.profile-heading,
.widget-title {
    color: var(--accent);
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: .04em;
}

.profile-avatar-wrap {
    margin: 8px auto 12px;
}

.profile-avatar {
    width: 94px;
    height: 94px;
    border: 2px solid rgba(244, 200, 106, .8);
    box-shadow: 0 0 0 5px rgba(61, 228, 212, .08), 0 0 24px rgba(61, 228, 212, .25);
}

.profile-card > h2:not(.profile-heading) {
    color: #f4c86a;
    font-family: Georgia, "Times New Roman", serif;
}

.profile-tagline {
    color: #bed0e5;
}

.profile-bio {
    color: #8ea6c4;
}

.profile-links a {
    border-color: rgba(93, 128, 165, .55);
    color: #dce8f8;
    background: rgba(16, 36, 66, .6);
}

.stats-grid {
    grid-template-columns: repeat(2, 1fr);
}

.stats-value,
.stats-label {
    color: #a9bed9;
}

.stats-value strong {
    color: var(--signature);
}

.category-list a,
.recent-list a,
.friend-link-list a,
.feed-link {
    color: #dce8f8;
}

.star-map-widget {
    overflow: hidden;
}

.star-map-intro {
    margin: -4px 0 4px;
    color: #8da6c4;
    font-size: 13px;
}

.star-map {
    position: relative;
    min-height: 232px;
    overflow: hidden;
    border: 1px solid rgba(71, 108, 144, .45);
    border-radius: 6px;
    background: radial-gradient(circle at 50% 52%, rgba(61, 228, 212, .24), transparent 18%), radial-gradient(circle at 20% 20%, rgba(31, 91, 142, .24), transparent 35%), #08172b;
}

.star-map::before,
.star-map::after {
    position: absolute;
    inset: 10%;
    border: 1px solid rgba(61, 228, 212, .18);
    border-radius: 50%;
    content: "";
    transform: rotate(-16deg) scaleX(1.25);
}

.star-map::after {
    inset: 20% 6%;
    border-color: rgba(244, 200, 106, .16);
    transform: rotate(24deg) scaleX(1.2);
}

.star-map-orbit {
    position: absolute;
    inset: 17% 12%;
    border: 1px dashed rgba(115, 216, 221, .2);
    border-radius: 50%;
    animation: star-orbit 16s linear infinite;
}

.star-map-orbit-b {
    inset: 29% 18%;
    animation-duration: 11s;
    animation-direction: reverse;
}

.star-map-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border: 2px solid #e8c979;
    border-radius: 50%;
    background: #3de4d4;
    box-shadow: 0 0 0 5px rgba(61, 228, 212, .12), 0 0 20px rgba(61, 228, 212, .8);
    transform: translate(-50%, -50%);
}

.tag-cloud {
    position: absolute;
    inset: 0;
}

.tag-node {
    position: absolute;
    top: var(--tag-y, 50%);
    left: var(--tag-x, 50%);
    z-index: 2;
    color: #dce8f8;
    font-family: Georgia, "Times New Roman", serif;
    font-size: calc(clamp(12px, 1.1vw, 15px) * var(--tag-size, 1));
    text-shadow: 0 0 10px rgba(61, 228, 212, .3);
    transform: translate(-50%, -50%);
    transition: color 160ms ease, transform 160ms ease, text-shadow 160ms ease;
    animation: star-twinkle 4.8s ease-in-out var(--tag-delay, 0s) infinite;
}

.tag-node:nth-child(1) { --tag-x: 22%; --tag-y: 29%; }
.tag-node:nth-child(2) { --tag-x: 56%; --tag-y: 22%; }
.tag-node:nth-child(3) { --tag-x: 78%; --tag-y: 36%; }
.tag-node:nth-child(4) { --tag-x: 27%; --tag-y: 62%; }
.tag-node:nth-child(5) { --tag-x: 69%; --tag-y: 62%; }
.tag-node:nth-child(6) { --tag-x: 46%; --tag-y: 78%; }
.tag-node:nth-child(7) { --tag-x: 87%; --tag-y: 76%; }

.tag-node:hover {
    color: var(--signature);
    text-shadow: 0 0 16px rgba(244, 200, 106, .65);
    transform: translate(-50%, -50%) scale(1.12);
}

@keyframes star-orbit {
    to { transform: rotate(344deg); }
}

@keyframes star-twinkle {
    0%, 100% { opacity: .66; }
    50% { opacity: 1; }
}

.site-footer {
    margin-top: 44px;
    border-top: 1px solid rgba(71, 108, 144, .56);
    background: rgba(5, 13, 27, .84);
}

.footer-rune {
    color: var(--accent);
    filter: drop-shadow(0 0 10px rgba(61, 228, 212, .6));
}

@media (max-width: 1120px) {
    .home-layout {
        grid-template-columns: minmax(0, 1fr) 320px;
    }
}

@media (max-width: 960px) {
    .home-layout {
        grid-template-columns: minmax(0, 1fr);
    }

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

    .sidebar-sticky {
        display: contents;
    }
}

@media (max-width: 760px) {
    .header-inner,
    .page-shell {
        width: calc(100% - 24px);
    }

    .header-inner {
        min-height: 70px;
    }

    .brand {
        font-size: 16px;
    }

    .brand-mark,
    .brand-mark img {
        width: 44px;
        height: 48px;
    }

    .post-card.is-featured {
        grid-template-columns: 1fr;
    }

    .post-card.is-featured .featured-art {
        grid-area: 1 / 1 / 2 / 2;
    }

    .post-card.is-featured .post-card-content {
        grid-area: 2 / 1 / 3 / 2;
    }

    .post-card.is-featured .featured-art {
        min-height: 238px;
    }

    .post-card.is-featured .post-card-content {
        min-height: 280px;
        padding: 26px 22px 24px;
        background: linear-gradient(180deg, rgba(5, 15, 31, .16), rgba(5, 15, 31, .98) 32%);
    }

    .post-card.is-featured .post-card-title {
        max-width: 16ch;
        font-size: clamp(30px, 9vw, 44px);
    }

    .post-card:not(.is-featured) {
        grid-template-columns: 92px minmax(0, 1fr);
    }

    .post-card-art {
        min-height: 108px;
    }

    .post-card:not(.is-featured) .post-card-content {
        padding: 16px 15px 14px;
    }

    .post-card:not(.is-featured) .post-card-title {
        font-size: 18px;
    }

    .post-card:not(.is-featured) .post-card-excerpt {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        font-size: 14px;
    }

    .sidebar {
        display: block;
    }
}

@media (prefers-reduced-motion: reduce) {
    .star-map-orbit {
        animation: none;
    }

    .tag-node {
        animation: none;
    }
}

/* -------------------------------------------------------------------------
   Azeroth Nexus 1.1.4 — global Azeroth visual pass
   Keep the article experience in the same blue observatory language as the
   homepage. The original inherited parchment/iron rules are intentionally
   neutralised here so every template shares one visual system.
   ------------------------------------------------------------------------- */
body.azeroth-nexus {
    --azeroth-night: #081a35;
    --azeroth-deep: #0b2447;
    --azeroth-panel: rgba(11, 35, 69, .96);
    --azeroth-panel-soft: rgba(18, 53, 94, .78);
    --azeroth-gold: #f4ca74;
    --azeroth-cyan: #55e9df;
    --azeroth-lilac: #b9c8ff;
    background: #06142a;
    color: #e7f0ff;
}

body.azeroth-nexus::before {
    background:
        linear-gradient(180deg, rgba(7, 24, 54, .72), rgba(4, 15, 33, .9) 78%),
        url("../img/azeroth-hero.png?v=1.0.0") center 26% / cover no-repeat;
}

body.azeroth-nexus .site-header {
    position: relative;
    isolation: isolate;
    width: min(calc(100% - 40px), 1440px);
    max-width: 1440px;
    margin-right: auto;
    margin-left: auto;
    border-color: rgba(103, 160, 207, .64);
    background:
        linear-gradient(90deg, rgba(8, 27, 57, .88), rgba(18, 55, 101, .66) 48%, rgba(7, 24, 53, .9)),
        url("../img/azeroth-hero.png?v=1.0.0") center 30% / cover no-repeat;
    box-shadow: 0 12px 36px rgba(1, 8, 22, .46), inset 0 -1px 0 rgba(244, 202, 116, .28);
}

body.azeroth-nexus .site-header::before {
    display: none;
    content: none;
}

body.azeroth-nexus .site-header::after {
    display: none;
    content: none;
}

body.azeroth-nexus .header-inner {
    min-height: 92px;
}

body.azeroth-nexus .brand-copy {
    gap: 3px;
}

body.azeroth-nexus .brand-subtitle {
    color: #b9d9f3;
    font-size: 10px;
    letter-spacing: .12em;
}

body.azeroth-nexus .site-nav a {
    color: #e0ecff;
}

body.azeroth-nexus .site-nav a::after {
    background: var(--azeroth-cyan);
    box-shadow: 0 0 12px rgba(85, 233, 223, .62);
}

body.azeroth-nexus .site-nav a:hover,
body.azeroth-nexus .site-nav a.is-current {
    color: var(--azeroth-cyan);
    text-shadow: 0 0 16px rgba(85, 233, 223, .56);
}

body.azeroth-nexus.is-index .home-intro.sr-only {
    border-color: rgba(86, 151, 210, .72);
    background: linear-gradient(145deg, rgba(16, 52, 95, .96), rgba(7, 25, 54, .97));
}

body.azeroth-nexus.is-index .home-intro h1::after {
    background: linear-gradient(90deg, transparent, var(--azeroth-cyan), transparent);
    box-shadow: 0 0 8px rgba(85, 233, 223, .42);
}

body.azeroth-nexus .icon-button,
body.azeroth-nexus .search-panel {
    border-color: rgba(109, 170, 221, .72);
    background: rgba(8, 29, 59, .72);
    color: #e6f1ff;
}

body.azeroth-nexus .post-layout {
    grid-template-columns: 96px minmax(0, 1fr) 326px;
    align-items: start;
    gap: 14px;
}

body.azeroth-nexus .article-rail {
    border-color: rgba(86, 151, 210, .68);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(10, 39, 76, .95), rgba(5, 22, 47, .96));
    box-shadow: 0 14px 34px rgba(2, 13, 31, .42), inset 0 0 0 1px rgba(244, 202, 116, .16);
}

body.azeroth-nexus .article-rail-nav a {
    border-color: rgba(93, 155, 211, .38);
    color: #c7dafa;
}

body.azeroth-nexus .article-rail-nav a:hover,
body.azeroth-nexus .article-rail-nav a.is-primary {
    border-color: rgba(244, 202, 116, .76);
    background: linear-gradient(135deg, rgba(33, 100, 146, .62), rgba(18, 53, 94, .88));
    color: var(--azeroth-gold);
    box-shadow: inset 3px 0 0 var(--azeroth-cyan), 0 0 18px rgba(85, 233, 223, .16);
}

body.azeroth-nexus .article-card,
body.azeroth-nexus .post-near,
body.azeroth-nexus .comments-card {
    --surface: rgba(11, 37, 73, .98);
    --surface-subtle: rgba(18, 55, 98, .92);
    --text: #e7f0ff;
    --text-soft: #c9daf2;
    --muted: #8faed1;
    --border: rgba(86, 151, 210, .72);
    --border-strong: rgba(86, 151, 210, .88);
    --accent: var(--azeroth-cyan);
    --accent-strong: #8bf6ed;
    border: 1px solid rgba(86, 151, 210, .76);
    border-radius: 10px;
    background:
        linear-gradient(140deg, rgba(23, 65, 112, .64), transparent 36%),
        linear-gradient(180deg, rgba(11, 37, 73, .98), rgba(6, 22, 48, .98));
    color: #e7f0ff;
    box-shadow: 0 18px 46px rgba(1, 10, 28, .42), inset 0 0 0 1px rgba(244, 202, 116, .12);
    clip-path: none;
}

body.azeroth-nexus .article-header {
    border-bottom-color: rgba(103, 160, 207, .44);
}

body.azeroth-nexus .article-header h1 {
    color: var(--azeroth-gold);
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: .02em;
    text-shadow: 0 3px 18px rgba(1, 10, 28, .7);
}

body.azeroth-nexus .article-meta {
    color: #a8c0df;
}

body.azeroth-nexus .article-meta a,
body.azeroth-nexus .article-meta .icon {
    color: var(--azeroth-cyan);
}

body.azeroth-nexus .markdown-body {
    color: #d8e6fb;
    font-family: var(--font-sans);
    line-height: 1.9;
}

body.azeroth-nexus .markdown-body h1,
body.azeroth-nexus .markdown-body h2,
body.azeroth-nexus .markdown-body h3,
body.azeroth-nexus .markdown-body h4,
body.azeroth-nexus .markdown-body h5,
body.azeroth-nexus .markdown-body h6 {
    color: var(--azeroth-gold);
    font-family: Georgia, "Times New Roman", serif;
    text-shadow: 0 2px 12px rgba(3, 13, 31, .62);
}

body.azeroth-nexus .markdown-body h2,
body.azeroth-nexus .markdown-body h3 {
    border-left-color: var(--azeroth-cyan);
}

body.azeroth-nexus .markdown-body p,
body.azeroth-nexus .markdown-body li {
    color: #d4e2f7;
}

body.azeroth-nexus .markdown-body strong {
    color: var(--azeroth-gold);
    font-weight: 750;
}

body.azeroth-nexus .markdown-body em {
    color: #c9daf2;
}

body.azeroth-nexus .markdown-body a {
    color: var(--azeroth-cyan);
}

body.azeroth-nexus .markdown-body blockquote {
    border-left-color: var(--azeroth-gold);
    background: rgba(38, 92, 145, .3);
    color: #c9daf2;
}

body.azeroth-nexus .markdown-body code,
body.azeroth-nexus .markdown-body pre,
body.azeroth-nexus .markdown-body table {
    border-color: rgba(89, 151, 210, .52);
    background: rgba(4, 19, 41, .72);
    color: #dceaff;
}

body.azeroth-nexus .article-sanctuary-banner {
    border-color: rgba(244, 202, 116, .55);
    background: rgba(9, 34, 68, .9);
}

body.azeroth-nexus .article-sanctuary-banner figcaption {
    color: #b9cceb;
}

body.azeroth-nexus .article-tags a {
    border-color: rgba(244, 202, 116, .52);
    border-radius: 7px;
    background: linear-gradient(135deg, rgba(18, 59, 103, .9), rgba(7, 27, 57, .96));
    color: #dceaff;
    clip-path: none;
    box-shadow: inset 0 0 0 1px rgba(85, 233, 223, .08);
}

body.azeroth-nexus .article-tags a::before {
    color: var(--azeroth-cyan);
}

body.azeroth-nexus .article-tags a:hover {
    border-color: var(--azeroth-cyan);
    background: linear-gradient(135deg, rgba(36, 107, 137, .58), rgba(12, 42, 82, .94));
    color: var(--azeroth-gold);
}

body.azeroth-nexus .post-near-item,
body.azeroth-nexus .post-near-item a {
    color: #dceaff;
}

body.azeroth-nexus .post-card-art {
    display: flex;
    min-height: 116px;
    align-items: center;
    justify-content: center;
    border-right-color: rgba(86, 151, 210, .68);
    background:
        radial-gradient(circle at 50% 25%, rgba(85, 233, 223, .2), transparent 45%),
        linear-gradient(145deg, rgba(18, 59, 103, .96), rgba(5, 22, 48, .98));
    filter: none;
}

body.azeroth-nexus .post-list {
    border: 0;
    background: transparent;
    box-shadow: none;
}

body.azeroth-nexus .post-list::before,
body.azeroth-nexus .post-list::after {
    display: none;
    content: none;
}

/* Remove the inherited red diamond/vertical rail; the icon itself carries the
   small red accents so the list remains blue-led instead of looking burgundy. */
body.azeroth-nexus .post-card::before,
body.azeroth-nexus .post-card::after {
    display: none;
    content: none;
}

body.azeroth-nexus .post-card.is-pinned {
    border-color: rgba(244, 202, 116, .72);
    box-shadow: 0 16px 40px rgba(1, 10, 28, .38), inset 0 0 0 1px rgba(85, 233, 223, .12);
}

body.azeroth-nexus .post-card:hover {
    border-color: rgba(85, 233, 223, .58);
    background: linear-gradient(90deg, rgba(27, 86, 132, .72), rgba(8, 30, 64, .72));
    box-shadow: inset 3px 0 0 var(--azeroth-cyan), 0 12px 28px rgba(1, 10, 28, .28);
}

body.azeroth-nexus .stats-value .icon {
    color: var(--azeroth-cyan);
}

body.azeroth-nexus .category-icon,
body.azeroth-nexus .friend-link-icon {
    border: 1px solid rgba(244, 202, 116, .26);
    border-radius: 8px;
    background: rgba(8, 31, 66, .72);
    color: var(--azeroth-gold);
    box-shadow: inset 0 0 0 1px rgba(85, 233, 223, .08);
}

body.azeroth-nexus .category-list a:hover,
body.azeroth-nexus .friend-link-list a:hover,
body.azeroth-nexus .recent-comment-link:hover {
    background: linear-gradient(90deg, rgba(36, 107, 137, .34), transparent);
    color: var(--azeroth-cyan);
}

body.azeroth-nexus .feed-link:hover {
    background: rgba(85, 233, 223, .12);
    color: var(--azeroth-cyan);
}

body.azeroth-nexus .page-navigator a,
body.azeroth-nexus .page-navigator span {
    border-color: rgba(86, 151, 210, .72);
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(18, 59, 103, .9), rgba(7, 27, 57, .96));
    color: #bcd0eb;
    box-shadow: inset 0 0 0 1px rgba(85, 233, 223, .08);
}

body.azeroth-nexus .page-navigator a:hover,
body.azeroth-nexus .page-navigator .current a,
body.azeroth-nexus .page-navigator .current span {
    border-color: var(--azeroth-cyan);
    background: linear-gradient(145deg, rgba(36, 107, 137, .86), rgba(13, 55, 91, .98));
    color: #e7f0ff;
    box-shadow: 0 0 16px rgba(85, 233, 223, .18), inset 0 0 0 1px rgba(244, 202, 116, .2);
}

body.azeroth-nexus .post-card-art svg {
    width: clamp(66px, 6vw, 84px);
    height: clamp(66px, 6vw, 84px);
    overflow: visible;
    filter: drop-shadow(0 8px 12px rgba(1, 10, 28, .42));
    transition: transform 180ms ease, filter 180ms ease;
}

body.azeroth-nexus .post-card:hover .post-card-art svg {
    transform: translateY(-3px) rotate(-2deg) scale(1.06);
    filter: drop-shadow(0 0 12px rgba(85, 233, 223, .32));
}

body.azeroth-nexus .post-card:nth-child(3n) .post-card-art,
body.azeroth-nexus .post-card:nth-child(4n) .post-card-art {
    background:
        radial-gradient(circle at 50% 25%, rgba(244, 202, 116, .17), transparent 45%),
        linear-gradient(145deg, rgba(18, 59, 103, .96), rgba(5, 22, 48, .98));
    filter: none;
}

body.azeroth-nexus .sidebar-sticky {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

body.azeroth-nexus .sidebar-persistent,
body.azeroth-nexus .sidebar-toc-shell {
    width: 100%;
    margin: 0;
    background: transparent;
}

body.azeroth-nexus .sidebar-persistent {
    order: 0;
    position: static;
}

body.azeroth-nexus .sidebar-persistent > .sidebar-scroll-body,
body.azeroth-nexus .sidebar-toc-shell > .sidebar-scroll-body {
    max-height: none;
    padding-right: 0;
    overflow: visible;
}

body.azeroth-nexus .sidebar-persistent > .sidebar-scroll-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

body.azeroth-nexus .sidebar-toc-shell {
    order: 99;
    position: static;
    display: block;
}

body.azeroth-nexus.is-post .sidebar[data-sidebar-mode="toc"] .sidebar-toc-shell,
body.azeroth-nexus.is-page .sidebar[data-sidebar-mode="toc"] .sidebar-toc-shell {
    position: static !important;
    top: auto !important;
    width: 100% !important;
    margin: 0 !important;
}

body.azeroth-nexus .sidebar-toc-shell::before {
    content: none;
}

body.azeroth-nexus .profile-card,
body.azeroth-nexus .sidebar-widget {
    border-color: rgba(86, 151, 210, .7);
    border-radius: 10px;
    background: linear-gradient(145deg, rgba(16, 52, 95, .96), rgba(7, 25, 54, .97));
    box-shadow: 0 14px 34px rgba(1, 11, 28, .36), inset 0 0 0 1px rgba(244, 202, 116, .11);
}

body.azeroth-nexus .profile-card::before,
body.azeroth-nexus .profile-card::after,
body.azeroth-nexus .sidebar-widget::before,
body.azeroth-nexus .sidebar-widget::after {
    display: none;
    content: none;
}

body.azeroth-nexus .profile-heading,
body.azeroth-nexus .widget-title {
    color: var(--azeroth-cyan);
}

body.azeroth-nexus .profile-card > h2:not(.profile-heading),
body.azeroth-nexus .stats-value strong {
    color: var(--azeroth-gold);
}

body.azeroth-nexus .toc-widget {
    min-height: 0;
    max-height: none;
}

body.azeroth-nexus .toc-list a {
    border-left-color: rgba(91, 155, 212, .5);
    color: #bcd0eb;
}

body.azeroth-nexus .toc-list a:hover,
body.azeroth-nexus .toc-list a.is-active {
    border-left-color: var(--azeroth-cyan);
    background: linear-gradient(90deg, rgba(85, 233, 223, .18), transparent);
    color: var(--azeroth-gold);
}

body.azeroth-nexus .comments-card,
body.azeroth-nexus .comment-form,
body.azeroth-nexus .comment-list .comment-body {
    color: #d8e6fb;
}

body.azeroth-nexus .comment-form label {
    color: #bcd0eb;
}

body.azeroth-nexus .comment-form input,
body.azeroth-nexus .comment-form textarea {
    border-color: rgba(86, 151, 210, .72);
    border-radius: 8px;
    background: rgba(4, 19, 41, .78);
    color: #e7f0ff;
    caret-color: var(--azeroth-cyan);
}

body.azeroth-nexus .comment-form input::placeholder,
body.azeroth-nexus .comment-form textarea::placeholder {
    color: #8faed1;
}

body.azeroth-nexus .comment-form input:focus,
body.azeroth-nexus .comment-form textarea:focus {
    border-color: var(--azeroth-cyan);
    box-shadow: 0 0 0 3px rgba(85, 233, 223, .16), 0 0 18px rgba(85, 233, 223, .08);
}

body.azeroth-nexus .article-card .mermaid-viewer {
    border-color: rgba(86, 151, 210, .72);
    border-radius: 10px;
    background: #092246;
    box-shadow: inset 0 0 0 1px rgba(244, 202, 116, .12), 0 12px 28px rgba(2, 13, 31, .34);
}

body.azeroth-nexus .article-card .mermaid-toolbar {
    border-bottom-color: rgba(86, 151, 210, .52);
    background: linear-gradient(90deg, #123c6c, #0c2a52);
}

body.azeroth-nexus .article-card .mermaid-title {
    color: var(--azeroth-gold);
}

body.azeroth-nexus .article-card .mermaid-action {
    border-color: rgba(244, 202, 116, .5);
    border-radius: 7px;
    background: rgba(8, 29, 59, .8);
    color: #cfe3fb;
}

body.azeroth-nexus .article-card .mermaid-action:hover,
body.azeroth-nexus .article-card .mermaid-action.is-active {
    border-color: var(--azeroth-cyan);
    background: rgba(36, 107, 137, .58);
    color: #f7d998;
    box-shadow: 0 0 14px rgba(85, 233, 223, .18);
}

body.azeroth-nexus .article-card .mermaid-stage,
body.azeroth-nexus .article-card .mermaid-diagram {
    background: radial-gradient(circle at 50% 0%, rgba(85, 233, 223, .12), transparent 58%), #071b39;
    color: #e0edff;
}

body.azeroth-nexus .article-card .mermaid-diagram .nodeLabel,
body.azeroth-nexus .article-card .mermaid-diagram .nodeLabel p,
body.azeroth-nexus .article-card .mermaid-diagram .edgeLabel,
body.azeroth-nexus .article-card .mermaid-diagram .edgeLabel p,
body.azeroth-nexus .article-card .mermaid-diagram .cluster-label,
body.azeroth-nexus .article-card .mermaid-diagram .cluster-label span {
    color: #e0edff !important;
}

body.azeroth-nexus .article-card .mermaid-diagram .labelBkg,
body.azeroth-nexus .article-card .mermaid-diagram .edgeLabel p {
    background-color: #0b2a52 !important;
}

body.azeroth-nexus .article-card .mermaid-diagram .node rect,
body.azeroth-nexus .article-card .mermaid-diagram .node circle,
body.azeroth-nexus .article-card .mermaid-diagram .node ellipse,
body.azeroth-nexus .article-card .mermaid-diagram .node polygon,
body.azeroth-nexus .article-card .mermaid-diagram .node path {
    fill: #164979 !important;
    stroke: var(--azeroth-cyan) !important;
}

body.azeroth-nexus .article-card .mermaid-diagram .edgePaths .path,
body.azeroth-nexus .article-card .mermaid-diagram .flowchart-link,
body.azeroth-nexus .article-card .mermaid-diagram .marker {
    stroke: var(--azeroth-gold) !important;
    fill: var(--azeroth-gold) !important;
}

@media (max-width: 1180px) {
    body.azeroth-nexus .post-layout {
        grid-template-columns: 82px minmax(0, 1fr) 300px;
    }
}

@media (max-width: 960px) {
    body.azeroth-nexus .post-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    body.azeroth-nexus .article-rail {
        display: none;
    }

    body.azeroth-nexus .sidebar-sticky {
        display: flex;
    }

    body.azeroth-nexus .sidebar-persistent {
        display: flex;
        flex-direction: column;
    }

    body.azeroth-nexus .sidebar-toc-shell {
        display: none !important;
    }
}

@media (max-width: 760px) {
    body.azeroth-nexus .site-header {
        width: calc(100% - 24px);
    }

    body.azeroth-nexus .site-header {
        background-position: 56% 30%;
    }

    body.azeroth-nexus .header-inner {
        min-height: 74px;
    }

    body.azeroth-nexus .article-card {
        padding: 28px 20px 30px;
    }

    body.azeroth-nexus .article-header h1 {
        font-size: clamp(30px, 9vw, 44px);
    }

    body.azeroth-nexus .markdown-body {
        font-size: 16px;
    }

    body.azeroth-nexus .mobile-toc-toggle {
        border-color: rgba(244, 202, 116, .58);
        border-radius: 8px;
        background: linear-gradient(135deg, rgba(20, 63, 108, .94), rgba(7, 27, 57, .98));
        color: var(--azeroth-gold);
        box-shadow: 0 0 16px rgba(85, 233, 223, .1);
    }

    body.azeroth-nexus .mobile-toc-toggle:hover,
    body.azeroth-nexus .mobile-toc-toggle[aria-expanded="true"] {
        border-color: var(--azeroth-cyan);
        color: #fff1be;
        box-shadow: 0 0 18px rgba(85, 233, 223, .18);
    }

    body.azeroth-nexus .mobile-toc-panel {
        border-color: rgba(86, 151, 210, .72);
        border-radius: 10px;
        background: linear-gradient(145deg, rgba(9, 34, 68, .98), rgba(5, 18, 39, .99));
        color: #dceaff;
        box-shadow: 0 14px 32px rgba(1, 10, 28, .34), inset 0 0 0 1px rgba(244, 202, 116, .08);
    }

    body.azeroth-nexus .mobile-toc-panel a {
        border-left-color: rgba(91, 155, 212, .5);
        color: #bcd0eb;
    }

    body.azeroth-nexus .mobile-toc-panel a:hover,
    body.azeroth-nexus .mobile-toc-panel a.is-active {
        border-left-color: var(--azeroth-cyan);
        background: linear-gradient(90deg, rgba(85, 233, 223, .18), transparent);
        color: var(--azeroth-gold);
    }
}


