:root {
    --primary-text: #1a1a1a;
    --secondary-text: #5f6368;
    --accent-color: #1a73e8;
    --bg-page: #ffffff;
    --surface-soft: #f8f9fa;
    --surface-search: #f1f3f4;
    --border-color: #e8eaed;
    --footer-bg: #f8f9fa;
    --article-body: #000000;
    --meta-text: #444444;
    --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.06);
}

body {
    font-family: "Inter", sans-serif;
    background-color: var(--bg-page);
    color: var(--primary-text);
    letter-spacing: -0.01em;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode {
    --bg-page: #121212;
    --primary-text: #f1f3f4;
    --secondary-text: #9aa0a6;
    --border-color: #303134;
    --footer-bg: #1a1c1e;
    --article-body: #e1e3e1;
    --meta-text: #9aa0a6;
    --surface-soft: #1a1c1e;
    --surface-search: #202124;
    background-color: #121212;
    color: #f1f3f4;
}

body.dark-mode .text-gray-300,
body.dark-mode .text-gray-400,
body.dark-mode .text-gray-500,
body.dark-mode .text-gray-600 {
    color: var(--secondary-text) !important;
}

body.dark-mode .bg-gray-100 {
    background-color: #1a1c1e !important;
}

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

.container {
    width: 100%;
    max-width: 80% !important;
    margin-left: auto;
    margin-right: auto;
}

.title-font {
    font-family: "Plus Jakarta Sans", sans-serif;
    letter-spacing: -0.02em;
}

.content-font {
    font-family: "Lora", serif;
    line-height: 1.8;
}

.article-title {
    color: var(--primary-text) !important;
    line-height: 1.25;
}

.sticky-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: var(--bg-page);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(14px);
}

.header-main-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 4rem;
}

.header-brand-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.header-mobile-trigger,
.header-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    color: var(--secondary-text);
    background: transparent;
    border: 0;
    border-radius: 999px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.header-mobile-trigger:hover,
.header-icon-button:hover {
    background: rgba(26, 115, 232, 0.08);
    color: var(--primary-text);
}

.header-icon-button.is-active {
    background: rgba(26, 115, 232, 0.14);
    color: var(--accent-color);
}

.header-icon-button.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.header-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    text-decoration: none;
}

.header-brand-link-stacked {
    align-items: flex-start;
}

.header-brand-logo {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.header-brand-logo img {
    display: block;
    width: auto;
    max-width: 100%;
}

.header-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 0.08rem;
    min-width: 0;
}

.header-brand-title {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: clamp(1.1rem, 1.35vw, 1.7rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--primary-text);
}

.header-brand-tagline {
    font-size: 0.76rem;
    line-height: 1.35;
    color: var(--secondary-text);
    letter-spacing: 0.01em;
}

.header-brand-primary {
    font-size: clamp(1.3rem, 1.5vw, 2rem);
    font-weight: 800;
    color: var(--primary-text);
}

.header-brand-secondary {
    font-size: clamp(1.3rem, 1.5vw, 2rem);
    font-weight: 500;
    color: var(--secondary-text);
}

.header-search-shell {
    display: none;
    flex: 1 1 auto;
    max-width: 40rem;
}

.header-main-row-no-actions {
    justify-content: flex-start;
}

.header-search-shell-align-right {
    margin-left: auto;
    flex: 0 1 40rem;
}

.search-container {
    display: flex;
    align-items: center;
    padding: 0.6rem 1rem;
    background: var(--surface-search);
    border: 1px solid transparent;
    border-radius: 0.6rem;
    transition: all 0.2s ease;
}

.search-container:focus-within {
    background: var(--bg-page);
    border-color: var(--accent-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.search-container-icon {
    margin-right: 0.75rem;
    color: #9ca3af;
}

.search-container-input {
    width: 100%;
    background: transparent;
    border: 0;
    color: var(--primary-text);
    font-size: 0.9rem;
    outline: none;
}

.search-container-input::placeholder {
    color: var(--secondary-text);
}

.header-action-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.header-nav {
    position: relative;
}

.mobile-menu-overlay,
.mobile-menu-panel {
    display: none;
}

#navMenu {
    display: flex;
    align-items: center;
    gap: 2rem;
    overflow-x: auto;
    white-space: nowrap;
}

#navMenu,
#navMenu li,
.footer-menu,
.footer-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    color: var(--secondary-text);
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 2px;
    white-space: nowrap;
    text-decoration: none;
}

.nav-link:hover {
    color: var(--primary-text);
}

.nav-link-active {
    color: var(--accent-color);
    font-weight: 700;
    border-bottom: 3px solid var(--accent-color);
}

.v-separator {
    background-color: var(--border-color);
    width: 1px;
    height: 1rem;
    display: inline-block;
}

.separator-line {
    background-color: var(--border-color);
    width: 100%;
}

.pill-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-color);
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: 4px;
}

body.dark-mode .pill-label {
    background-color: rgba(26, 115, 232, 0.2);
    border-color: transparent;
    color: #8ab4f8;
}

.btn-minimal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    padding: 8px 20px;
    font-size: 13px;
    border-radius: 6px;
    font-weight: 600;
    color: var(--accent-color);
    transition: all 0.2s ease;
}

.btn-minimal:hover {
    border-color: var(--accent-color);
    background: rgba(26, 115, 232, 0.06);
}

.post-card {
    transition: transform 0.3s ease;
}

.post-card:hover {
    transform: translateY(-3px);
}

.ad-slot {
    background: var(--surface-soft);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bdc1c6;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 8px;
    text-align: center;
    padding: 1rem;
}

.featured-ad-slot {
    color: inherit;
    font-size: inherit;
    letter-spacing: normal;
    text-transform: none;
    overflow: hidden;
}

.featured-ad-slot > * {
    max-width: 100%;
}

.featured-ad-slot ins {
    max-width: 100%;
}

.single-inline-ad-shell {
    margin: 0 0 2.5rem;
}

.single-inline-ad-slot {
    width: 100%;
    aspect-ratio: 1 / 1;
    min-height: 18rem;
    overflow: hidden;
}

.single-inline-ad-slot > * {
    max-width: 100%;
}

.single-inline-ad-slot ins {
    max-width: 100%;
}

@media (min-width: 768px) {
    .single-inline-ad-slot {
        aspect-ratio: 16 / 5;
        min-height: 9rem;
    }
}

.for-you-card {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    transition: opacity 0.2s ease;
}

.for-you-card:hover {
    opacity: 0.8;
}

.category-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-color);
}

.trending-number {
    font-size: 3rem;
    line-height: 0.95;
}

.explore-column {
    display: flex;
    flex-direction: column;
}

.explore-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    text-decoration: none;
}

.explore-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-text);
}

.explore-item {
    display: flex;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    transition: opacity 0.2s ease;
}

.explore-item:hover {
    opacity: 0.78;
}

.explore-thumb {
    width: 84px;
    height: 84px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.single-meta {
    color: var(--meta-text);
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-wrap: wrap;
}

.meta-dot {
    width: 0.25rem;
    height: 0.25rem;
    background: #d1d5db;
    border-radius: 999px;
}

.single-share-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.single-share-label {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--primary-text);
}

.single-share-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.single-share-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.9rem;
    height: 2.9rem;
    border: 1px solid var(--border-color);
    border-radius: 0.85rem;
    background: var(--surface-soft);
    color: var(--secondary-text);
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.single-share-chip:hover {
    border-color: rgba(var(--accent-rgb), 0.26);
    background: rgba(var(--accent-rgb), 0.08);
    color: var(--accent-color);
    transform: translateY(-1px);
}

.single-share-chip.is-copied {
    border-color: rgba(var(--accent-rgb), 0.36);
    background: rgba(var(--accent-rgb), 0.14);
    color: var(--accent-color);
}

.single-share-chip i {
    font-size: 1.05rem;
}

.single-share-copy {
    cursor: pointer;
    padding: 0;
}

.article-body-content {
    color: var(--article-body);
    font-size: 20px;
    line-height: 1.8;
}

.article-body-content > p,
.article-body-content > ul,
.article-body-content > ol,
.article-body-content > blockquote,
.article-body-content > figure,
.article-body-content > h2,
.article-body-content > h3,
.article-body-content > h4 {
    margin-bottom: 2.5rem;
}

.article-body-content h2,
.article-body-content h3,
.article-body-content h4 {
    font-family: "Plus Jakarta Sans", sans-serif;
    color: var(--primary-text);
    font-weight: 700;
    line-height: 1.2;
}

.article-body-content h2 {
    font-size: 2rem;
}

.article-body-content h3 {
    font-size: 1.6rem;
}

.article-body-content h4 {
    font-size: 1.3rem;
}

.article-body-content a {
    color: var(--accent-color);
}

.single-toc-box {
    margin: 0 0 2.5rem;
    padding: 1.25rem 1.35rem;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    background: var(--surface-soft);
}

.single-toc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.single-toc-title {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-color);
}

.single-toc-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 0.65rem;
    background: rgba(0, 0, 0, 0.04);
    color: var(--secondary-text);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.single-toc-toggle:hover {
    background: rgba(var(--accent-rgb), 0.12);
    color: var(--accent-color);
}

.single-toc-box.is-collapsed .single-toc-toggle i {
    transform: rotate(-180deg);
}

.single-toc-content[hidden] {
    display: none !important;
}

.single-toc-list {
    margin: 0;
    padding-left: 0;
    list-style: none;
    display: grid;
    gap: 0.9rem;
}

.single-toc-item {
    color: var(--primary-text);
    line-height: 1.5;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.95em;
}

.single-toc-item a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
}

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

.single-toc-number {
    min-width: 2rem;
    color: var(--accent-color);
    font-weight: 700;
    letter-spacing: 0.01em;
}

.single-toc-text {
    flex: 1 1 auto;
}

.single-toc-level-3 {
    margin-left: 1.75rem;
}

.single-toc-level-4 {
    margin-left: 3.5rem;
}

.article-body-content img {
    border-radius: 1rem;
    height: auto;
}

.article-body-content blockquote,
.wp-block-quote {
    padding: 2.5rem 1rem;
    margin: 4rem 0;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 1.85rem;
    font-weight: 700;
    font-style: italic;
    text-align: center;
    color: var(--primary-text);
    line-height: 1.35;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.border-uniform {
    border-color: var(--border-color) !important;
}

.dark-surface {
    background-color: var(--surface-soft);
}

.article-sidebar {
    position: sticky;
    top: 6rem;
}

.single-post-layout {
    align-items: start;
}

.single-post-content-column,
.single-post-sidebar-column {
    min-width: 0;
}

.quick-read-stream {
    display: grid;
    gap: 4rem;
}

.single-article-unit + .single-article-unit {
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.quick-read-loader {
    margin: 1.5rem 0 0;
    color: var(--secondary-text);
    font-size: 0.92rem;
    font-weight: 600;
    text-align: center;
}

.quick-read-sentinel {
    width: 100%;
    height: 1px;
}

body.quick-read-mode .single-post-layout {
    display: block !important;
}

body.quick-read-mode .single-post-content-column {
    width: 100%;
}

body.quick-read-mode .single-post-content-wrap {
    max-width: 52rem;
    margin: 0 auto;
}

body.quick-read-mode .single-post-sidebar-column,
body.quick-read-mode .quick-read-hide {
    display: none !important;
}

body.quick-read-mode .single-article-unit {
    scroll-margin-top: 7rem;
}

.single-sidebar-panel,
.single-post-widget {
    border: 1px solid var(--border-color);
    background: var(--bg-page);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    color: var(--primary-text);
}

.single-post-widget.single-post-recommendations-widget {
    display: grid;
    gap: 1.5rem;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.single-post-widget.single-post-recommendations-widget .single-sidebar-panel {
    margin: 0;
}

.single-post-widget.single-post-recommendations-widget .explore-thumb {
    width: 88px !important;
    height: 88px !important;
    min-width: 88px;
    max-width: 88px;
    aspect-ratio: 1 / 1;
    object-fit: cover !important;
    object-position: center;
    border-radius: 14px;
    display: block;
}

.single-post-sidebar-column .single-sidebar-title,
.single-post-sidebar-column .single-post-widget .widget-title,
.single-post-sidebar-column .single-post-widget .single-widget-heading {
    margin-bottom: 1.25rem;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-color);
}

.single-post-widget ul,
.single-post-widget ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.single-post-widget li + li {
    margin-top: 0.85rem;
}

.single-post-widget p,
.single-post-widget li,
.single-post-widget span,
.single-post-widget div,
.single-post-widget label,
.single-post-widget small,
.single-post-widget strong,
.single-post-widget time,
.single-post-widget cite {
    color: var(--primary-text);
}

.single-post-widget a {
    color: var(--primary-text);
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 700;
    line-height: 1.5;
    transition: color 0.2s ease;
}

.single-post-widget a:hover {
    color: var(--accent-color);
}

.single-post-widget select,
.single-post-widget input,
.single-post-widget textarea,
.single-post-widget button {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 0.85rem;
    padding: 0.75rem 0.9rem;
    background: transparent;
    color: var(--primary-text);
}

.single-post-widget button {
    width: auto;
    cursor: pointer;
}

.single-post-widget .wp-block-latest-posts__post-date,
.single-post-widget .post-date,
.single-post-widget .rss-date,
.single-post-widget .wp-block-calendar caption {
    color: var(--secondary-text);
}

body.dark-mode .single-sidebar-panel,
body.dark-mode .single-post-widget {
    background: var(--surface-soft) !important;
    color: var(--primary-text) !important;
    border-color: var(--border-color) !important;
    box-shadow: none;
}

body.dark-mode .single-post-widget.single-post-recommendations-widget {
    background: transparent !important;
    border: 0 !important;
}

body.dark-mode .single-toc-box {
    background: rgba(255, 255, 255, 0.03);
}

body.dark-mode .single-share-chip {
    background: rgba(255, 255, 255, 0.04);
}

body.dark-mode .single-toc-toggle {
    background: rgba(255, 255, 255, 0.05);
    color: var(--secondary-text);
}

body.dark-mode .single-toc-toggle:hover {
    background: rgba(var(--accent-rgb), 0.18);
    color: var(--accent-color);
}

body.dark-mode .single-post-sidebar-column .single-sidebar-title,
body.dark-mode .single-post-sidebar-column .single-post-widget .widget-title,
body.dark-mode .single-post-sidebar-column .single-post-widget .single-widget-heading {
    color: var(--accent-color) !important;
}

body.dark-mode .single-post-widget p,
body.dark-mode .single-post-widget li,
body.dark-mode .single-post-widget span,
body.dark-mode .single-post-widget div,
body.dark-mode .single-post-widget label,
body.dark-mode .single-post-widget small,
body.dark-mode .single-post-widget strong,
body.dark-mode .single-post-widget time,
body.dark-mode .single-post-widget cite,
body.dark-mode .single-post-widget table,
body.dark-mode .single-post-widget th,
body.dark-mode .single-post-widget td {
    color: var(--primary-text) !important;
}

body.dark-mode .single-post-widget a {
    color: var(--primary-text) !important;
}

body.dark-mode .single-post-widget a:hover {
    color: #8ab4f8 !important;
}

body.dark-mode .single-post-widget select,
body.dark-mode .single-post-widget input,
body.dark-mode .single-post-widget textarea,
body.dark-mode .single-post-widget button {
    background: #202124 !important;
    color: var(--primary-text) !important;
    border-color: var(--border-color) !important;
}

body.dark-mode .single-post-widget .wp-block-latest-posts__post-date,
body.dark-mode .single-post-widget .post-date,
body.dark-mode .single-post-widget .rss-date,
body.dark-mode .single-post-widget .wp-block-calendar caption {
    color: var(--secondary-text) !important;
}

.wp-block-image figcaption {
    margin-top: 0.75rem;
    color: var(--secondary-text);
    font-size: 0.75rem;
    text-align: center;
    font-style: italic;
}

.related-card {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.related-card:hover {
    transform: translateY(-4px);
}

.comments-area {
    background: var(--bg-page);
    box-shadow: var(--shadow-soft);
}

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

.comment-list .children {
    list-style: none;
    margin: 1.5rem 0 0 1.25rem;
    padding-left: 1.25rem;
    border-left: 1px solid var(--border-color);
}

.comment-body {
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.25rem;
    background: var(--surface-soft);
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.comment-author img {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    object-fit: cover;
}

.comment-author .fn,
.comment-author .says {
    font-style: normal;
    font-weight: 700;
    color: var(--primary-text);
}

.comment-metadata a,
.comment-reply-link,
.logged-in-as a,
.comment-edit-link {
    color: var(--accent-color);
    font-weight: 600;
}

.comment-content {
    color: var(--article-body);
    line-height: 1.8;
}

.comment-respond {
    margin-top: 2rem;
}

.comment-form-grid {
    display: grid;
    gap: 1rem;
}

.comment-form-grid label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-text);
}

.comment-form-grid input,
.comment-form-grid textarea {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 0.95rem;
    padding: 0.9rem 1rem;
    background: transparent;
    color: var(--primary-text);
}

.comment-form-grid textarea {
    resize: vertical;
    min-height: 170px;
}

.comment-submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    padding: 0.9rem 1.5rem;
    background: var(--accent-color);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.comment-submit-button:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.comment-notes,
.logged-in-as,
.comment-metadata,
.comments-closed,
.comment-awaiting-moderation,
.form-allowed-tags {
    color: var(--secondary-text);
}

body.dark-mode .comments-area {
    background: var(--surface-soft);
    box-shadow: none;
}

body.dark-mode .comment-body {
    background: #202124;
}

body.dark-mode .comment-form-grid input,
body.dark-mode .comment-form-grid textarea {
    background: #202124;
}

.site-footer {
    background-color: var(--footer-bg);
    border-top: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
    padding: 4rem 0 2rem;
}

.footer-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3.5rem;
}

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

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

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

.footer-feature-column {
    display: flex;
    flex-direction: column;
}

.footer-feature-list {
    display: flex;
    flex-direction: column;
}

.footer-feature-item {
    border-bottom: 1px solid var(--border-color);
    padding: 0 0 1rem;
    margin-bottom: 1rem;
}

.footer-feature-item:last-child {
    margin-bottom: 0;
}

.footer-feature-link {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.45;
    color: var(--secondary-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-feature-link:hover {
    color: var(--accent-color);
}

.footer-widget-stack {
    margin-top: 1.5rem;
}

.footer-widget-shell {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 1rem;
}

.footer-widget-title {
    color: var(--accent-color);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    margin: 0 0 1rem;
    text-transform: uppercase;
}

.home-featured-sidebar .home-trending-block-title {
    color: var(--accent-color) !important;
}

.footer-widget-shell ul,
.footer-widget-shell ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-widget-shell li + li {
    margin-top: 0.75rem;
}

.footer-widget-shell a {
    color: var(--secondary-text);
    text-decoration: none;
}

.footer-widget-shell a:hover {
    color: var(--accent-color);
}

.footer-widget-shell select,
.footer-widget-shell input,
.footer-widget-shell textarea {
    width: 100%;
}

.footer-bottom-row {
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
    padding-top: 2rem;
    text-align: center;
}

.footer-copyright {
    color: #9aa0a6;
    font-size: 12px;
    letter-spacing: 0.01em;
    margin: 0;
}

body.dark-mode .footer-feature-link,
body.dark-mode .footer-widget-title,
body.dark-mode .footer-widget-shell a {
    color: #d7dbe0;
}

body.dark-mode .footer-widget-title,
body.dark-mode .home-featured-sidebar .home-trending-block-title {
    color: var(--accent-color) !important;
}

body.dark-mode .footer-feature-link:hover,
body.dark-mode .footer-widget-shell a:hover {
    color: #8ab4f8;
}

.pagination .nav-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 0.55rem 0.9rem;
    font-size: 0.875rem;
    color: var(--primary-text);
}

.pagination .current {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

@media (min-width: 768px) {
    .header-search-shell {
        display: block;
    }
}

@media (max-width: 1024px) {
    .container {
        max-width: 90% !important;
    }

    .article-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 94% !important;
    }

    body.mobile-menu-open {
        overflow: hidden;
    }

    .header-main-row {
        gap: 1rem;
    }

    .header-brand-row {
        gap: 0.2rem;
    }

    .header-mobile-trigger-left {
        width: 3rem;
        min-width: 3rem;
        height: 3rem;
        margin-left: -0.7rem;
        margin-right: -0.05rem;
        padding: 0;
        justify-content: center;
    }

    .header-mobile-trigger-right {
        width: 3rem;
        min-width: 3rem;
        height: 3rem;
        margin: 0 -0.55rem 0 0;
        padding: 0;
        justify-content: center;
    }

    .header-main-row-mobile-right .header-brand-row {
        flex: 1 1 auto;
        min-width: 0;
    }

    .header-main-row-mobile-right .header-brand-link {
        min-width: 0;
    }

    .header-action-row-mobile-menu-right {
        gap: 0.2rem;
    }

    .header-brand-secondary {
        display: none;
    }

    .header-brand-title {
        font-size: 1.05rem;
    }

    .header-brand-tagline {
        font-size: 0.68rem;
        max-width: 12rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .header-nav {
        overflow: hidden;
    }

    #navMenu {
        gap: 1.2rem;
    }

    .mobile-menu-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.42);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.22s ease;
        z-index: 95;
    }

    .mobile-menu-overlay.is-open {
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-menu-panel {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: min(86vw, 360px);
        height: 100vh;
        padding: 1.25rem 1.25rem 2rem;
        background: var(--bg-page);
        border-right: 1px solid var(--border-color);
        box-shadow: 0 22px 60px rgba(15, 23, 42, 0.18);
        transform: translateX(-105%);
        transition: transform 0.24s ease;
        z-index: 96;
        overflow-y: auto;
    }

    .mobile-menu-panel.is-open {
        transform: translateX(0);
    }

    .mobile-menu-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        margin-bottom: 1.25rem;
        padding-bottom: 0.9rem;
        border-bottom: 1px solid var(--border-color);
    }

    .mobile-menu-title {
        font-size: 0.8rem;
        font-weight: 800;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--accent-color);
    }

    .mobile-menu-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.25rem;
        height: 2.25rem;
        border: 0;
        border-radius: 999px;
        background: transparent;
        color: var(--secondary-text);
    }

    .mobile-menu-nav {
        padding-bottom: 1rem;
    }

    .mobile-nav-list {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .mobile-nav-list li + li {
        border-top: 1px solid var(--border-color);
    }

    .mobile-nav-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: 0.95rem 0;
        color: var(--primary-text);
        font-size: 1rem;
        font-weight: 600;
        text-decoration: none;
        transition: color 0.2s ease;
    }

    .mobile-nav-link:hover,
    .mobile-nav-link-active {
        color: var(--accent-color);
    }

    .article-body-content {
        font-size: 18px;
    }

    .footer-feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .site-footer {
        padding-top: 3rem;
    }

    .footer-bottom-row {
        margin-top: 2.5rem;
    }
}
