html {
    font-size: 16px;
    scroll-behavior: smooth;
}

:root {
    --bg: #f6f7fb;
    --surface: #ffffff;
    --surface-muted: #f0f3f8;
    --border: #d9e1ec;
    --text: #111827;
    --text-soft: #5f6b7a;
    --title: #0f172a;
    --accent: #111827;
    --accent-soft: #2563eb;
    --shadow-sm: 0 18px 50px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 28px 80px rgba(15, 23, 42, 0.12);
    --radius-sm: 0.75rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --content-width: 1180px;
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at top, #ffffff 0%, var(--bg) 55%);
    color: var(--text);
    font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
}

main {
    flex: 1;
}

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

p,
ul,
ol {
    color: var(--text-soft);
}

a {
    color: inherit;
    text-decoration-color: rgba(37, 99, 235, 0.35);
    text-underline-offset: 0.18em;
}

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

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.12rem white, 0 0 0 0.25rem rgba(37, 99, 235, 0.35);
}

.site-shell {
    max-width: var(--content-width);
}

.reading-progress {
    position: fixed;
    inset: 0 0 auto 0;
    height: 3px;
    background: rgba(15, 23, 42, 0.08);
    z-index: 1040;
}

.reading-progress__bar {
    height: 100%;
    width: 100%;
    transform-origin: left center;
    transform: scaleX(0);
    background: linear-gradient(90deg, #2563eb, #111827);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    backdrop-filter: blur(18px);
    background: rgba(246, 247, 251, 0.86);
    border-bottom: 1px solid rgba(217, 225, 236, 0.9);
}

.site-navbar {
    padding: 1rem 0;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    font-weight: 700;
    color: var(--title);
}

.site-brand__mark {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.9rem;
    background: var(--accent);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.site-nav {
    gap: 0.65rem;
}

.site-nav .nav-link {
    color: var(--text-soft);
    font-weight: 600;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-nav .nav-link:hover,
.site-nav .nav-link:focus {
    color: var(--title);
    background: rgba(17, 24, 39, 0.06);
    transform: translateY(-1px);
}

.site-nav__actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.site-search {
    min-width: 310px;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(217, 225, 236, 0.95);
    border-radius: 999px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.site-search i {
    color: var(--text-soft);
}

.site-search input {
    width: 100%;
    background: transparent;
    border: 0;
    outline: 0;
    color: var(--text);
}

.site-search input::placeholder {
    color: #8a97a8;
}

.site-admin-link {
    border-radius: 999px;
    padding-inline: 1rem;
}

.site-main {
    padding: 2rem 0 5rem;
}

.breadcrumb-wrap {
    margin: 0 0 1.5rem;
}

.breadcrumb-modern {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0;
    padding: 0.65rem 0.9rem;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(217, 225, 236, 0.95);
    border-radius: 999px;
    font-size: 0.92rem;
    color: var(--text-soft);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.breadcrumb-modern .breadcrumb-item {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.breadcrumb-modern .breadcrumb-item + .breadcrumb-item::before {
    float: none;
    padding-right: 0.6rem;
    color: #9aa6b2;
    content: ">";
}

.breadcrumb-modern a {
    color: var(--text-soft);
    text-decoration: none;
}

.breadcrumb-modern a:hover,
.breadcrumb-modern .active {
    color: var(--title);
}

.breadcrumb-label {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.06);
    color: var(--title);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page-hero {
    padding: 2.5rem 0 2rem;
}

.page-hero--compact {
    padding-top: 1rem;
}

.page-hero__content {
    max-width: 760px;
}

.eyebrow,
.footer-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 1rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-soft);
}

.page-title {
    margin: 0;
    color: var(--title);
    font-size: clamp(2.2rem, 5vw, 4.6rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.page-lead {
    margin: 1.4rem 0 0;
    max-width: 62ch;
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-soft);
}

.page-section {
    margin-top: 3rem;
}

.hero-grid,
.content-grid,
.page-copy-grid,
.footer-grid,
.category-hero,
.topic-grid,
.home-topic-grid,
.article-layout,
.admin-dashboard-grid {
    display: grid;
    gap: 1.5rem;
}

.hero-grid,
.category-hero,
.page-copy-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
    align-items: start;
}

.home-topic-grid,
.topic-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.content-grid,
.article-layout {
    grid-template-columns: minmax(0, 2fr) minmax(280px, 0.9fr);
    align-items: start;
}

.content-grid__main,
.article-layout__main {
    min-width: 0;
}

.content-grid__sidebar,
.article-layout__sidebar {
    display: grid;
    gap: 1rem;
}

.card-surface,
.sidebar-panel,
.topic-card,
.post-card,
.empty-state,
.article-sidebar__section,
.article-nav-card,
.newsletter-box,
.taxonomy-group,
.admin-surface,
.search-panel,
.hero-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(217, 225, 236, 0.95);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.hero-card,
.card-surface,
.sidebar-panel,
.empty-state,
.newsletter-box,
.taxonomy-group,
.admin-surface,
.search-panel {
    padding: 1.5rem;
}

.topic-card,
.post-card,
.article-nav-card {
    padding: 1.5rem;
}

.topic-card {
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.topic-card:hover,
.post-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(37, 99, 235, 0.18);
}

.topic-card__count,
.post-card__summary,
.footer-copy,
.results-count,
.meta-row,
.article-meta,
.contact-card li,
.sidebar-list a,
.article-sidebar__section p {
    color: var(--text-soft);
}

.topic-card__title,
.post-card__title,
.footer-title,
.sidebar-title,
.article-title,
.article-section-title,
.taxonomy-group__header h2,
.admin-title {
    margin: 0;
    color: var(--title);
    letter-spacing: -0.03em;
}

.topic-card__title,
.post-card__title {
    font-size: 1.35rem;
    line-height: 1.25;
}

.topic-card__title a,
.post-card__title a,
.sidebar-list a,
.taxonomy-group__header a,
.article-nav-card a {
    text-decoration: none;
}

.topic-card__title a:hover,
.post-card__title a:hover,
.sidebar-list a:hover,
.taxonomy-group__header a:hover,
.article-nav-card a:hover {
    color: var(--accent-soft);
}

.post-stack,
.taxonomy-stack {
    display: grid;
    gap: 1rem;
}

.post-card--horizontal {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.9fr);
    gap: 1.25rem;
    align-items: stretch;
}

.post-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.post-card__meta,
.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.92rem;
}

.meta-separator {
    color: #9aa6b2;
}

.post-card__summary {
    margin: 0;
    line-height: 1.8;
}

.post-card__media {
    overflow: hidden;
    border-radius: 1.1rem;
}

.post-card__media img {
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
}

.badge-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent-soft);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.badge-chip--link {
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.badge-chip--link:hover {
    transform: translateY(-1px);
    background: rgba(37, 99, 235, 0.16);
    color: var(--accent-soft);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.sidebar-title,
.footer-section-title,
.article-section-title {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.sidebar-list,
.footer-links,
.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-list,
.footer-links {
    display: grid;
    gap: 0.8rem;
}

.search-form {
    display: flex;
    gap: 0.75rem;
}

.search-form--wide input {
    min-height: 3.2rem;
}

.page-copy,
.article-copy {
    max-width: 72ch;
}

.page-copy h2,
.taxonomy-group__header h2,
.article-content h2,
.article-content h3,
.article-content h4 {
    color: var(--title);
    letter-spacing: -0.03em;
}

.article-layout {
    margin-top: 1rem;
}

.article-card {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(217, 225, 236, 0.95);
    border-radius: calc(var(--radius-lg) + 0.25rem);
    box-shadow: var(--shadow-sm);
}

.article-title {
    font-size: clamp(2.2rem, 5vw, 3.7rem);
    line-height: 1.06;
}

.article-summary {
    margin: 1.25rem 0 0;
    font-size: 1.08rem;
    line-height: 1.9;
}

.article-cover {
    margin: 2rem 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.article-cover img {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
}

.article-content {
    color: var(--text);
    line-height: 1.9;
    font-size: 1.03rem;
}

.article-content > *:first-child {
    margin-top: 0;
}

.article-content p,
.article-content li,
.article-content blockquote {
    color: var(--text);
}

.article-content h2 {
    margin-top: 3rem;
    margin-bottom: 1rem;
    font-size: 1.85rem;
}

.article-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-size: 1.35rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    margin: 1.5rem 0;
}

.article-content pre {
    margin: 1.75rem 0;
    padding: 1.25rem 1.4rem;
    overflow-x: auto;
    border: 1px solid rgba(51, 65, 85, 0.95);
    border-radius: 1rem;
    background: #0b1220;
    color: #e2e8f0;
    font-family: "Cascadia Code", "Fira Code", Consolas, monospace;
    font-size: 0.95rem;
    line-height: 1.75;
    tab-size: 4;
    box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.06);
}

.article-content code {
    padding: 0.2rem 0.45rem;
    border-radius: 0.4rem;
    background: #e8eef8;
    color: #1d4ed8;
    font-size: 0.92em;
    font-family: "Cascadia Code", "Fira Code", Consolas, monospace;
}

.article-content pre code {
    display: block;
    padding: 0;
    background: transparent;
    color: inherit;
    font-size: 1em;
    line-height: inherit;
    white-space: pre;
}

.article-content pre code.hljs {
    padding: 0;
    background: transparent;
}

.article-content table {
    display: block;
    width: 100%;
    margin: 1.5rem 0;
    overflow-x: auto;
    border-collapse: collapse;
}

.article-content th,
.article-content td {
    padding: 0.85rem 1rem;
    border: 1px solid rgba(217, 225, 236, 0.95);
}

.article-content th {
    background: #eef4fb;
}

.article-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--accent-soft);
    background: rgba(37, 99, 235, 0.06);
    border-radius: 0 1rem 1rem 0;
}

.article-sidebar__section {
    padding: 1.25rem;
    position: sticky;
    top: 6.5rem;
}

.toc-list {
    display: grid;
    gap: 0.75rem;
}

.toc-item a {
    color: var(--text-soft);
    text-decoration: none;
}

.toc-item a:hover {
    color: var(--title);
}

.toc-item--nested {
    padding-left: 1rem;
}

.newsletter-box {
    margin-top: 2rem;
}

.newsletter-box h2,
.empty-state h2 {
    color: var(--title);
    margin-top: 0;
}

.newsletter-form {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.article-nav-grid {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.article-nav-card {
    display: block;
    text-decoration: none;
    color: var(--title);
}

.related-grid {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.pagination-modern .page-link {
    color: var(--title);
    background: rgba(255, 255, 255, 0.92);
    border-color: var(--border);
    border-radius: 999px !important;
    padding: 0.65rem 1rem;
}

.pagination-modern .page-item {
    margin: 0 0.25rem;
}

.pagination-modern .page-item.active .page-link {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.site-footer {
    margin-top: 4rem;
    padding: 4rem 0 2rem;
    background: #0f172a;
    color: #e2e8f0;
}

.footer-grid {
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
}

.footer-title {
    font-size: 1.7rem;
    color: #fff;
}

.footer-copy,
.footer-links a,
.footer-link-cta,
.footer-meta {
    color: rgba(226, 232, 240, 0.72);
}

.footer-links a,
.footer-link-cta {
    text-decoration: none;
}

.footer-links a:hover,
.footer-link-cta:hover {
    color: #fff;
}

.footer-meta {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.92rem;
}

.taxonomy-group__header {
    margin-bottom: 1rem;
}

.contact-card ul,
.page-copy ul {
    margin-bottom: 0;
}

.admin-shell {
    background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
}

.admin-sidebar {
    min-height: 100vh;
    background: rgba(15, 23, 42, 0.92);
    border-right: 1px solid rgba(148, 163, 184, 0.16);
}

.admin-sidebar .nav-link {
    color: rgba(226, 232, 240, 0.72);
    border-radius: 0.9rem;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.admin-content {
    min-height: 100vh;
    background: #f8fafc;
}

.admin-title {
    font-size: 2rem;
}

.admin-dashboard-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-metric {
    padding: 1.5rem;
}

.admin-metric__label {
    margin: 0 0 0.75rem;
    color: var(--text-soft);
    font-size: 0.95rem;
}

.admin-metric__value {
    margin: 0;
    color: var(--title);
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.page-hero {
    padding: 2.75rem 0 2.25rem;
}

.page-hero__eyebrow-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.page-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.4rem;
}

.page-hero__summary {
    margin-top: 1.25rem;
    display: grid;
    gap: 0.85rem;
}

.page-hero__summary-item {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 0.95rem 1rem;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(217, 225, 236, 0.95);
    border-radius: 1rem;
}

.page-hero__summary-item i {
    color: var(--accent-soft);
}

.page-hero__summary-item strong {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--title);
}

.page-hero__summary-item span {
    color: var(--text-soft);
}

.page-section__header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: end;
    margin-bottom: 1rem;
}

.page-section__description {
    margin: 0;
    max-width: 48ch;
    color: var(--text-soft);
}

.relationship-caption {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.95rem;
    line-height: 1.7;
}

.relationship-caption strong {
    color: var(--title);
}

.taxonomy-path {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.taxonomy-path__arrow {
    color: #9aa6b2;
}

.meta-link {
    color: var(--text-soft);
    text-decoration: none;
    font-weight: 500;
}

.meta-link:hover {
    color: var(--accent-soft);
}

.meta-link--strong {
    color: var(--title);
}

.home-hero {
    padding: 4rem 0 3rem;
}

.home-hero__grid,
.home-section__header,
.home-notes__grid,
.home-footer-cta,
.admin-list-card__row,
.admin-list-card__actions,
.admin-page-header {
    display: grid;
    gap: 1.5rem;
}

.home-hero__grid,
.home-section__header {
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.9fr);
    align-items: end;
}

.home-hero__title {
    margin: 0;
    color: var(--title);
    font-size: clamp(2.5rem, 5.5vw, 4.8rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
    max-width: 15ch;
}

.home-hero__lead {
    margin: 1.5rem 0 0;
    max-width: 62ch;
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-soft);
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-top: 1.75rem;
}

.home-section,
.home-notes {
    margin-top: 4rem;
}

.home-section__title {
    margin: 0;
    color: var(--title);
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.home-section__copy {
    margin: 0;
    max-width: 48ch;
    color: var(--text-soft);
    line-height: 1.8;
}

.home-topic-list {
    display: grid;
    gap: 1rem;
}

.home-topic-item {
    position: relative;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(217, 225, 236, 0.95);
    border-radius: 1.35rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-topic-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(37, 99, 235, 0.18);
}

.home-topic-item__link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: start;
    text-decoration: none;
    color: inherit;
}

.home-topic-item__label {
    margin: 0 0 0.45rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.home-topic-item__title {
    margin: 0;
    color: var(--title);
    font-size: 1.45rem;
    letter-spacing: -0.03em;
}

.home-topic-item__description,
.home-topic-item__meta {
    margin: 0;
    color: var(--text-soft);
}

.home-topic-item__description {
    margin-top: 0.8rem;
    max-width: 56ch;
    line-height: 1.75;
}

.home-topic-item__meta {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    white-space: nowrap;
    font-weight: 600;
}

.home-topic-item__meta i {
    color: var(--accent-soft);
}

.home-topic-item__link:hover .home-topic-item__title,
.home-topic-item__link:hover .home-topic-item__meta {
    color: var(--accent-soft);
}

.home-notes__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 1.5rem;
}

.home-note {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(217, 225, 236, 0.95);
}

.home-note h3 {
    margin: 0 0 0.6rem;
    color: var(--title);
    font-size: 1rem;
}

.home-note p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.8;
}

.home-footer-cta {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    margin-top: 4rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(217, 225, 236, 0.95);
}

.home-footer-cta__copy {
    margin: 0;
    color: var(--text-soft);
}

.home-footer-cta__link {
    color: var(--title);
    text-decoration: none;
    font-weight: 600;
}

.home-footer-cta__link:hover {
    color: var(--accent-soft);
}

.admin-page-header {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    margin-bottom: 1.5rem;
}

.admin-page-header__copy {
    margin: 0.65rem 0 0;
    max-width: 60ch;
    color: var(--text-soft);
}

.admin-list-grid {
    display: grid;
    gap: 1rem;
}

.admin-list-card {
    padding: 1.5rem;
}

.admin-list-card__row {
    grid-template-columns: minmax(0, 1.8fr) minmax(240px, 1fr) auto;
    align-items: center;
}

.admin-list-card__title {
    margin: 0;
    color: var(--title);
    font-size: 1.15rem;
}

.admin-list-card__title a {
    color: inherit;
    text-decoration: none;
}

.admin-list-card__title a:hover {
    color: var(--accent-soft);
}

.admin-list-card__meta,
.admin-list-card__support,
.admin-list-card__id {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
}

.admin-list-card__support {
    margin-top: 0.8rem;
}

.admin-list-card__id,
.admin-list-card__label,
.admin-list-card__summary,
.admin-pill--muted {
    color: var(--text-soft);
}

.admin-list-card__label {
    margin: 0 0 0.35rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.admin-list-card__summary {
    margin: 0.55rem 0 0;
    line-height: 1.7;
}

.admin-list-card__actions {
    grid-auto-flow: column;
    gap: 0.65rem;
    align-items: center;
    justify-content: end;
}

.admin-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}

.admin-pill--topic {
    background: rgba(15, 23, 42, 0.08);
    color: var(--title);
}

.admin-pill--category {
    background: rgba(37, 99, 235, 0.12);
    color: var(--accent-soft);
}

.admin-pill--status-published {
    background: rgba(22, 163, 74, 0.12);
    color: #15803d;
}

.admin-pill--status-draft {
    background: rgba(245, 158, 11, 0.16);
    color: #b45309;
}

.admin-empty-state {
    text-align: center;
}

.admin-empty-state p {
    margin: 0.8rem 0 0;
}

@media (max-width: 1199.98px) {
    .home-topic-grid,
    .topic-grid,
    .related-grid,
    .admin-dashboard-grid,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    html {
        font-size: 15px;
    }

    .hero-grid,
    .content-grid,
    .page-copy-grid,
    .category-hero,
    .article-layout,
    .footer-grid,
    .post-card--horizontal,
    .admin-dashboard-grid,
    .home-hero__grid,
    .home-section__header,
    .admin-page-header,
    .admin-list-card__row,
    .home-footer-cta {
        grid-template-columns: 1fr;
    }

    .site-nav__actions {
        flex-direction: column;
        align-items: stretch;
        padding-top: 1rem;
    }

    .site-search {
        min-width: 0;
    }

    .article-sidebar__section {
        position: static;
        top: auto;
    }

    .article-nav-grid,
    .newsletter-form {
        grid-template-columns: 1fr;
        display: grid;
    }
}

@media (max-width: 767.98px) {
    .site-main {
        padding-bottom: 3.5rem;
    }

    .page-title,
    .article-title {
        letter-spacing: -0.03em;
    }

    .home-topic-grid,
    .topic-grid,
    .related-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .article-card,
    .topic-card,
    .post-card,
    .hero-card,
    .card-surface,
    .sidebar-panel,
    .newsletter-box,
    .search-panel {
        padding: 1.25rem;
    }

    .footer-meta {
        flex-direction: column;
    }
}

.site-theme {
    color-scheme: dark;
    --bg: #08111f;
    --surface: #0f172a;
    --surface-muted: #111c31;
    --border: #23324a;
    --text: #e5edf7;
    --text-soft: #9fb1c9;
    --title: #f8fbff;
    --accent: #dbe7ff;
    --accent-soft: #60a5fa;
    --shadow-sm: 0 18px 50px rgba(2, 6, 23, 0.45);
    --shadow-md: 0 28px 80px rgba(2, 6, 23, 0.6);
    background: radial-gradient(circle at top, #13203a 0%, var(--bg) 58%);
}

.site-theme .btn:focus,
.site-theme .btn:active:focus,
.site-theme .btn-link.nav-link:focus,
.site-theme .form-control:focus,
.site-theme .form-check-input:focus {
    box-shadow: 0 0 0 0.12rem rgba(8, 17, 31, 0.95), 0 0 0 0.25rem rgba(96, 165, 250, 0.45);
}

.site-theme .reading-progress {
    background: rgba(159, 177, 201, 0.14);
}

.site-theme .reading-progress__bar {
    background: linear-gradient(90deg, #60a5fa, #c4b5fd);
}

.site-theme .site-header {
    background: rgba(8, 17, 31, 0.84);
    border-bottom: 1px solid rgba(35, 50, 74, 0.9);
}

.site-theme .site-brand__mark {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #eff6ff;
}

.site-theme .site-nav .nav-link:hover,
.site-theme .site-nav .nav-link:focus {
    background: rgba(96, 165, 250, 0.14);
}

.site-theme .navbar-toggler {
    border-color: rgba(159, 177, 201, 0.35);
}

.site-theme .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(96, 165, 250, 0.3);
}

.site-theme .navbar-toggler-icon {
    filter: invert(1) brightness(1.8);
}

.site-theme .site-search,
.site-theme .breadcrumb-modern,
.site-theme .card-surface,
.site-theme .sidebar-panel,
.site-theme .topic-card,
.site-theme .post-card,
.site-theme .empty-state,
.site-theme .article-sidebar__section,
.site-theme .article-nav-card,
.site-theme .newsletter-box,
.site-theme .taxonomy-group,
.site-theme .search-panel,
.site-theme .hero-card,
.site-theme .article-card,
.site-theme .page-hero__summary-item,
.site-theme .home-topic-item {
    background: rgba(15, 23, 42, 0.88);
    border-color: rgba(35, 50, 74, 0.95);
    box-shadow: var(--shadow-sm);
}

.site-theme .breadcrumb-modern .breadcrumb-item + .breadcrumb-item::before,
.site-theme .meta-separator,
.site-theme .taxonomy-path__arrow {
    color: #6f86a5;
}

.site-theme .home-note,
.site-theme .home-footer-cta {
    border-top-color: rgba(35, 50, 74, 0.95);
}

.site-theme .site-search input::placeholder,
.site-theme .form-control::placeholder {
    color: #7f94b2;
}

.site-theme .btn-dark,
.site-theme .site-btn-primary {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border-color: transparent;
    color: #eff6ff;
}

.site-theme .btn-dark:hover,
.site-theme .btn-dark:focus,
.site-theme .site-btn-primary:hover,
.site-theme .site-btn-primary:focus {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    color: #fff;
}

.site-theme .btn-link,
.site-theme .text-dark,
.site-theme .text-reset,
.site-theme .site-link-strong {
    color: var(--title) !important;
}

.site-theme .btn-link:hover,
.site-theme .text-dark:hover,
.site-theme .text-reset:hover,
.site-theme .site-link-strong:hover {
    color: var(--accent-soft) !important;
}

.site-theme .form-control {
    background: rgba(8, 17, 31, 0.72);
    border-color: rgba(47, 67, 98, 0.95);
    color: var(--text);
}

.site-theme .form-control:focus {
    background: rgba(8, 17, 31, 0.92);
    border-color: rgba(96, 165, 250, 0.6);
    color: var(--text);
}

.site-theme .article-content code {
    background: rgba(37, 99, 235, 0.14);
    color: #bfdbfe;
}

.site-theme .article-content pre {
    border-color: rgba(47, 67, 98, 0.95);
    background: #020817;
    color: #dbeafe;
}

.site-theme .article-content pre code.hljs {
    color: inherit;
}

.site-theme .article-content th,
.site-theme .article-content td {
    border-color: rgba(47, 67, 98, 0.95);
}

.site-theme .article-content th {
    background: rgba(17, 28, 49, 0.95);
}

.site-theme .article-content blockquote {
    background: rgba(37, 99, 235, 0.12);
}

.site-theme .pagination-modern .page-link {
    background: rgba(15, 23, 42, 0.92);
    border-color: rgba(35, 50, 74, 0.95);
    color: var(--title);
}

.site-theme .pagination-modern .page-link:hover,
.site-theme .pagination-modern .page-link:focus {
    background: rgba(30, 41, 59, 0.96);
    color: var(--accent-soft);
}

.site-theme .pagination-modern .page-item.active .page-link {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border-color: transparent;
    color: #eff6ff;
}

.site-theme .site-footer {
    background: #020817;
    color: var(--text);
}

.site-theme .footer-copy,
.site-theme .footer-links a,
.site-theme .footer-link-cta,
.site-theme .footer-meta {
    color: rgba(229, 237, 247, 0.74);
}

.site-theme .footer-links a:hover,
.site-theme .footer-link-cta:hover {
    color: var(--title);
}

.site-theme .footer-meta {
    border-top-color: rgba(47, 67, 98, 0.9);
}

.site-theme .admin-shell,
.site-theme .admin-content,
.site-theme .admin-sidebar,
.site-theme .admin-surface {
    color-scheme: light;
}
