


:root {
    --color-text-light: #000000;
    --color-text: #000000;
    --color-muted: #000000;
    --spacing-container: 1200px;
    --color-accent: #000000;
    --color-bg: #ffffff;
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    /* No gray, only black */
    --color-border: #000000;
}

* {
    /* Force all borders black */
    outline-color: #000000 !important;
    border-color: #000000 !important;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    -webkit-font-smoothing: antialiased;
    color: var(--color-text) !important;
    font-size: 16.33px;
    -ms-text-size-adjust: 100%;
    line-height: 1.46;
    background-color: var(--color-bg);
    font-family: var(--font-main);
    text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
    color: #000000;
    opacity: 1;
}

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

h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.02em;
    font-weight: 700;
    line-height: 1.25;
    color: #000000 !important;
    margin-bottom: 0.41em;
}

/* Fix Chrome deprecation warning: explicit font-sizes for h1 in article/section */
h1 {
    font-size: 1.95em;
}
article h1, section h1 {
    font-size: 1.99em;
}

/* Remove empty spacers generated by rich text editors/CMS */
p:empty, .content-area p:empty {
    display: none !important;
}
.content-area > br {
    display: none !important;
}

p {
    color: #000000 !important;
    margin-bottom: 0.93em;
}
small {
    color: #000000 !important;
}
span {
    color: #000000 !important;
}

/* Layout */
.shell {
    margin: 0 auto;
    padding: 0 19.32px;
    max-width: var(--spacing-container);
}

/* Header */
.main-header {
    background: #ffffff;
    padding: 22.59px 0;
    border-bottom: 2px solid #000000;
    margin-bottom: 29.35px;
}
.main-header .shell {
    display: flex !important;
    gap: 13.35px !important;
    align-items: flex-start !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
}
.identity {
    letter-spacing: -0.51px;
    text-decoration: none;
    text-transform: uppercase;
    color: #000000 !important;
    font-size: 25.58px;
    font-weight: 800;
}
.nav-bar {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 26.9px;
}
.nav-bar a {
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14.38px;
    color: #000000 !important;
    font-weight: 700;
}
.nav-bar a:hover {
    opacity: 0.7;
    text-decoration: none;
}

/* Main Grid */
.page-grid {
    margin-bottom: 77.85px;
    grid-template-columns: 1fr 300px;
    /* Left Content - Right Sidebar */
    gap: 60px;
    display: grid;
}

/* Mega Article */
.primary-content {
    padding: 45.24px;
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 10.5px;
}
.primary-content h1 {
    color: #000000 !important;
    margin-bottom: 13px;
    font-size: 37.45px;
}
.primary-content h2 {
    font-size: 23.27px;
    color: #000000 !important;
    margin-top: 14.81px;
    margin-bottom: 5.66px;
    padding-bottom: 0;
}
.content-area > h2:first-of-type {
    margin-top: 0 !important;
}
.primary-content h3 {
    color: #000000 !important;
    font-size: 20.52px;
    margin-top: 22.79px;
}
.pub-info {
    margin-bottom: 39.13px;
    font-size: 13.79px;
    gap: 13.96px;
    border-bottom: 1px solid #000000;
    color: #000000 !important;
    font-weight: 600;
    padding-bottom: 8.46px;
    display: flex;
}
.content-area {
    color: #000000 !important;
    line-height: 1.65;
    font-size: 16.31px;
}
.author-title {
    color: #555555 !important;
    font-style: italic;
    font-weight: 400;
    font-size: 12.3px;
}
.content-area a {
    text-decoration: underline;
    /* Blue link for backlinks */;
    font-weight: 700;
    color: #0056b3 !important;
}
.content-area a:hover {
    text-decoration: none;
    color: #003d82 !important;
}

/* Internal Backlink / Related Topic Box */
.general-dock {
    border-radius: 9.9px;
    font-style: italic;
    padding: 16.17px;
    border: 2px solid #000000;
    background: #ffffff;
    margin-top: 28.57px;
    color: #000000 !important;
}
.general-dock a {
    font-weight: 700;
    text-decoration: underline;
}

/* Sidebar */
.secondary {
    top: 40px;
    position: sticky;
    align-self: start;
}
.panel-item {
    border: 2px solid #000000;
    margin-bottom: 30.05px;
    background: #ffffff;
    padding: 21.29px;
    border-radius: 13.65px;
}
.box-title {
    padding-bottom: 7.18px;
    /* H3 Size */
    font-weight: 800;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    border-bottom: 2px solid #000000;
    margin-bottom: 22.79px;
    color: #000000 !important;
    font-size: 19.59px;
}
.latest-entries {
    margin: 0 !important;
    list-style: none !important;
    padding-left: 0 !important;
}
.latest-entries li {
    margin-bottom: 12.64px;
    border-bottom: 1px solid rgba(0,0,0,0.15) !important;
    padding-bottom: 7.99px;
    position: relative;
}
.latest-entries li:last-child {
    border: none !important;
}
.latest-entries a {
    display: block;
    text-decoration: none;
    color: #000000 !important;
    font-weight: 600;
    margin-bottom: 1.86px;
}
.latest-entries a:hover {
    text-decoration: underline;
    color: #333333 !important;
}

/* Latest Posts (for SSI included content) */
.article-link {
    border-bottom: 1px solid #000000;
    padding: 9.33px 0;
}
.article-link:last-child {
    border-bottom: none;
}
.article-link a {
    font-weight: 600;
    color: #000000 !important;
    font-size: 13.24px;
    text-decoration: none;
    display: block;
    line-height: 1.4;
    margin-bottom: 6.31px;
}
.article-link a:hover {
    text-decoration: underline;
}
.when {
    font-size: 12.44px;
    color: #000000 !important;
    font-weight: 600;
}

.history-list {
    list-style: none;
}
.history-list li {
    margin-bottom: 11.68px;
}
.history-list a {
    font-size: 13.7px;
    justify-content: space-between;
    display: flex;
    color: #000000 !important;
    font-weight: 600;
}
.entry-count {
    color: #000000 !important;
}

.topic-list {
    flex-wrap: wrap;
    gap: 11.87px;
    display: flex;
}
.term-badge {
    color: #000000 !important;
    padding: 4.61px 13.8px;
    display: inline-block;
    font-weight: 600;
    transition: all 0.2s ease;
    border-radius: 7.64px;
    border: 2px solid #000000;
    text-decoration: none;
    font-size: 13.34px;
    background: #ffffff;
}
.term-badge:hover {
    color: #ffffff !important;
    transform: translateY(-1px);
    background: #000000;
}

/* Footer */
.page-bottom {
    background: #fff;
    font-size: 13.15px;
    color: #000000 !important;
    padding: 38.52px 0;
    text-align: center;
    font-weight: 600;
    border-top: 2px solid #000000;
}
.global-node {
    margin-top: 11.07px;
    font-weight: 600;
    font-size: 13.44px;
}
.global-node a {
    text-decoration: none;
    color: #000000 !important;
}
.global-node a:hover {
    text-decoration: underline;
}
.global-node .flex-rail {
    color: #000000 !important;
    margin: 0 9.02px;
}

/* Responsive */
@media (max-width: 900px) {
    .page-grid { grid-template-columns: 1fr; gap: 40px; }
    .secondary {
    position: static;
}
    .primary-content h1 {
    font-size: 31.56px;
}
}
