:root {
    /* Dark mode colors (default) */
    --background: #0f1419;
    --background-blur: rgba(15, 20, 25, 0.8);
    --foreground: #e2e8f0;
    --foreground-90: rgba(226, 232, 240, 0.9);
    --muted: #94a3b8;
    --muted-foreground: #94a3b8;
    --primary: #3b82f6;
    --primary-hover: rgba(59, 130, 246, 0.8);
    --border: rgba(148, 163, 184, 0.4);
    --muted-surface: rgba(148, 163, 184, 0.1);

    /* Fonts */
    --font-display: "EB Garamond", serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Radius */
    --radius: 0.25rem;
}

/* Light mode colors */
[data-theme="light"] {
    --background: #ffffff;
    --background-blur: rgba(255, 255, 255, 0.8);
    --foreground: #1e293b;
    --foreground-90: rgba(30, 41, 59, 0.9);
    --muted: #64748b;
    --muted-foreground: #64748b;
    --primary: #3b82f6;
    --primary-hover: rgba(59, 130, 246, 0.8);
    --border: rgba(100, 116, 139, 0.2);
    --muted-surface: rgba(100, 116, 139, 0.1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    border-color: var(--border);
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    min-height: 100vh;
    background-color: var(--background);
    color: var(--foreground);
    font-family: var(--font-body);
    line-height: 1.75;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    -webkit-font-smoothing: antialiased;
    padding: 6rem 2rem 4rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 200ms ease;
}

a:hover,
a:focus-visible {
    color: var(--primary-hover);
    text-decoration: underline;
}

a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}

.container {
    width: min(56rem, 100%);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.site-nav {
    position: fixed;
    inset-inline: 0;
    top: 0;
    z-index: 100;
    background: linear-gradient(180deg, var(--background-blur), transparent);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.nav-inner {
    display: flex;
    justify-content: flex-start;
    gap: 2rem;
    align-items: center;
    padding: 1.25rem 1.5rem;
    max-width: 64rem;
}

.nav-link {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    transition: color 200ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--foreground);
    text-decoration: none;
}

.nav-link-active {
    color: var(--foreground);
    position: relative;
    padding-bottom: 0.25rem;
}

.nav-link-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background-color: var(--primary);
}

.hero {
    flex: 1;
    display: flex;
    width: 100%;
}

.hero-inner {
    margin: auto;
    max-width: 42rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.hero-header h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 3.75rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--foreground);
    text-align: center;
}

.hero-body {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    color: var(--foreground-90);
    font-size: 1.125rem;
    text-align: center;
}

.hero-body p {
    margin: 0;
    line-height: 1.75;
}

.hero-body p.text-muted {
    font-size: 1rem;
    color: var(--muted-foreground);
}

.social-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.social-links-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.social-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius);
    color: var(--foreground);
    background-color: transparent;
    transition: all 200ms ease;
    position: relative;
}

.social-icon-link:hover,
.social-icon-link:focus-visible {
    background-color: var(--muted-surface);
    color: var(--primary);
    transform: translateY(-1px);
}

.social-icon-link:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.social-icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* Legacy social links for compatibility */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.1rem;
    border-radius: 999px;
    border: 1px solid transparent;
    color: var(--foreground);
    background-color: transparent;
    transition: border-color 200ms ease, background-color 200ms ease, transform 200ms ease;
}

.social-links a:hover,
.social-links a:focus-visible {
    background-color: var(--muted-surface);
    border-color: var(--border);
    transform: translateY(-1px);
}

.animate-fade-in {
    animation: fade-in 0.5s ease-out both;
}

.animate-slide-up {
    animation: slide-up 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.animate-slide-up-delay {
    animation: slide-up 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

.animate-slide-up-delay-2 {
    animation: slide-up 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s both;
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Additional responsive improvements */
@media (max-width: 640px) {
    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .social-links-icons {
        gap: 1rem;
    }

    .social-icon-link {
        width: 2.25rem;
        height: 2.25rem;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 5.5rem;
        padding-bottom: 3rem;
    }

    .nav-inner {
        gap: 1.5rem;
        padding: 1rem 1.25rem;
    }

    .hero-inner {
        gap: 2.5rem;
    }

    .hero-body {
        font-size: 1.05rem;
    }

    .social-links {
        gap: 0.6rem;
    }

    .social-links a {
        padding: 0.6rem 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .nav-inner {
        justify-content: center;
    }

    .hero-inner {
        gap: 2rem;
    }

    .hero-body {
        gap: 1.25rem;
    }
}

/* Writing Pages Styles */
.writing-page,
.article-page {
    flex: 1;
    display: flex;
    width: 100%;
    padding-top: 6rem;
}

.writing-container,
.article-container {
    max-width: 42rem;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

.writing-header {
    text-align: center;
    margin-bottom: 4rem;
}

.writing-header h1 {
    margin: 0 0 1rem 0;
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 3rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--foreground);
}

.writing-intro {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin: 0;
}

.writing-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.writing-item {
    border-bottom: 1px solid var(--border);
    padding-bottom: 2rem;
}

.writing-item:last-child {
    border-bottom: none;
}

.writing-link {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: transform 200ms ease;
}

.writing-link:hover {
    transform: translateX(4px);
}

.writing-meta {
    margin-bottom: 0.75rem;
}

.writing-meta time {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.writing-title {
    margin: 0 0 0.75rem 0;
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.2;
    color: var(--foreground);
    transition: color 200ms ease;
}

.writing-link:hover .writing-title {
    color: var(--primary);
}

.writing-excerpt {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--foreground-90);
}

/* Article Page Styles */
.article-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.article-header h1 {
    margin: 0 0 1rem 0;
    font-family: var(--font-display);
    font-size: clamp(2rem, 6vw, 2.5rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--foreground);
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.article-meta time {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-content {
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--foreground-90);
}

.article-content p {
    margin: 0 0 1.5rem 0;
}

.article-content h2 {
    margin: 2.5rem 0 1rem 0;
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.3;
    color: var(--foreground);
}

.article-content h3 {
    margin: 2rem 0 0.75rem 0;
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.3;
    color: var(--foreground);
}

.article-content em {
    font-style: italic;
    color: var(--foreground);
}

.article-content strong {
    font-weight: 600;
    color: var(--foreground);
}

.article-content blockquote {
    margin: 2rem 0;
    padding-left: 1.5rem;
    border-left: 3px solid var(--primary);
    font-style: italic;
    color: var(--muted-foreground);
}

.article-content blockquote p {
    margin: 0.5rem 0;
}

.article-content figure {
    margin: 3rem 0;
}

.article-content figure.article-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 3rem auto;
    max-width: 100%;
}

.article-content figure.article-image img {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: var(--radius);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2rem auto;
    border-radius: var(--radius);
}

.article-quote {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--muted-foreground);
    padding: 1.5rem 0;
    margin: 2rem 0;
    border-left: 3px solid var(--primary);
    padding-left: 1.5rem;
}

.article-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted-foreground);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 200ms ease, transform 200ms ease;
}

.back-link:hover {
    color: var(--primary);
    transform: translateX(-4px);
}

@media (max-width: 768px) {
    .writing-container,
    .article-container {
        padding: 1.5rem 1rem 3rem;
    }

    .writing-header {
        margin-bottom: 3rem;
    }

    .writing-list {
        gap: 2rem;
    }

    .article-content {
        font-size: 1.0625rem;
    }

    .article-content h2 {
        font-size: 1.5rem;
        margin: 2rem 0 0.75rem 0;
    }

    .article-quote {
        font-size: 1.125rem;
        padding-left: 1rem;
        margin: 1.5rem 0;
    }
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 1.25rem;
    right: 1.5rem;
    z-index: 1000;
    background: var(--muted-surface);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 200ms ease;
    backdrop-filter: blur(12px);
}

.theme-toggle:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1);
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.theme-toggle svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--foreground);
    transition: transform 300ms ease;
}

.theme-toggle:hover svg {
    color: white;
    transform: rotate(180deg);
}

/* Hide/show icons based on theme */
.theme-toggle .sun-icon {
    display: none;
}

[data-theme="light"] .theme-toggle .sun-icon {
    display: block;
}

[data-theme="light"] .theme-toggle .moon-icon {
    display: none;
}

@media (max-width: 768px) {
    .theme-toggle {
        top: 1rem;
        right: 1rem;
        width: 2.25rem;
        height: 2.25rem;
    }

    .theme-toggle svg {
        width: 1.125rem;
        height: 1.125rem;
    }
}

/* Research Article Styles */
.research-article {
    max-width: 50rem;
}

.research-article .article-content {
    font-size: 1.15rem;
    line-height: 1.8;
}

.research-article .article-content h2 {
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    font-size: 1.875rem;
}

.research-article .article-content h3 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.research-article .article-content h4 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.3;
    color: var(--foreground);
}

.research-article .article-content ul,
.research-article .article-content ol {
    margin: 1.5rem 0;
    padding-left: 1.75rem;
}

.research-article .article-content li {
    margin: 0.5rem 0;
}

.research-article .article-content code {
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
    background-color: var(--muted-surface);
    padding: 0.2em 0.4em;
    border-radius: 3px;
    color: var(--foreground);
}

/* Table Styles */
.table-wrapper {
    margin: 2.5rem 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.research-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 0.95rem;
    background-color: var(--background);
}

.research-table caption {
    caption-side: top;
    text-align: left;
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--foreground);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.research-table thead {
    background-color: #1f4e79;
}

[data-theme="light"] .research-table thead {
    background-color: #2e74b5;
}

.research-table th {
    padding: 0.875rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #ffffff;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.research-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--foreground-90);
}

.research-table tbody tr:nth-child(even) {
    background-color: var(--muted-surface);
}

.research-table tbody tr:hover {
    background-color: rgba(59, 130, 246, 0.05);
}

.table-source {
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    font-style: italic;
    color: var(--muted-foreground);
    text-align: center;
}

/* Category Title Styles */
.category-title {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted-foreground);
    margin: 3rem 0 1.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.category-title:first-child {
    margin-top: 0;
}

/* Subtitle styles for research articles */
.article-subtitle {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin: 0.5rem 0 0 0;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .research-article .article-content {
        font-size: 1.0625rem;
    }

    .research-article .article-content h2 {
        font-size: 1.625rem;
        margin-top: 2.5rem;
    }

    .research-article .article-content h3 {
        font-size: 1.375rem;
        margin-top: 2rem;
    }

    .research-table {
        font-size: 0.875rem;
    }

    .research-table th,
    .research-table td {
        padding: 0.65rem 0.75rem;
    }

    .research-table caption {
        font-size: 1rem;
    }

    .table-wrapper {
        margin: 2rem -0.5rem;
        padding: 0 0.5rem;
    }
}

@media (max-width: 480px) {
    .research-table {
        font-size: 0.8125rem;
    }

    .research-table th,
    .research-table td {
        padding: 0.5rem 0.6rem;
    }
}

/* ==================== */
/* Category Collapse    */
/* Editorial/Literary Aesthetic */
/* ==================== */

.category-section {
    margin-bottom: 3rem;
    position: relative;
}

.category-section:last-child {
    margin-bottom: 0;
}

/* Decorative spine/binding element on the left */
.category-section::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom,
        transparent 0%,
        var(--border) 5%,
        var(--border) 95%,
        transparent 100%);
    opacity: 0.4;
}

.category-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem 1.5rem 1.75rem;
    background: transparent;
    border: none;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid transparent;
    cursor: pointer;
    transition: all 400ms cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: visible;
}

/* Ornamental corner detail */
.category-header::after {
    content: '◆';
    position: absolute;
    left: 0.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.5rem;
    color: var(--muted-foreground);
    opacity: 0;
    transition: all 300ms ease;
}

.category-header:hover::after {
    opacity: 0.6;
    left: 0.5rem;
}

/* Subtle paper texture on hover */
.category-header::before {
    content: '';
    position: absolute;
    inset: -1px;
    background:
        radial-gradient(circle at 20% 50%, var(--muted-surface) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, var(--muted-surface) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 400ms ease;
    pointer-events: none;
    z-index: -1;
}

.category-header:hover::before {
    opacity: 0.3;
}

.category-header:hover {
    border-bottom-color: var(--border);
    padding-left: 2.25rem;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--muted-surface) 50%,
        transparent 100%);
    background-size: 200% 100%;
    background-position: 0% 0%;
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 100% 0%; }
}

.category-header:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
    border-bottom-color: var(--primary);
}

.category-header:active {
    transform: scale(0.995);
}

.category-header-content {
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.category-header .category-title {
    margin: 0;
    padding: 0;
    border: none;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: none;
    color: var(--foreground);
    transition: all 300ms ease;
    position: relative;
}

/* Subtle underline decoration */
.category-header .category-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width 400ms cubic-bezier(0.23, 1, 0.32, 1);
}

.category-header:hover .category-title::after {
    width: 100%;
}

/* Editorial-style page number */
.category-count {
    display: inline-flex;
    align-items: baseline;
    font-family: var(--font-display);
    font-size: 0.875rem;
    color: var(--muted-foreground);
    transition: all 300ms ease;
    position: relative;
    font-variant-numeric: oldstyle-nums;
}

.category-count::before {
    content: '·';
    margin-right: 0.5rem;
    opacity: 0.5;
}

.category-count::after {
    content: attr(data-label);
    margin-left: 0.35rem;
    font-size: 0.75rem;
    opacity: 0.7;
    font-style: italic;
}

.category-header:hover .category-count {
    color: var(--primary);
    transform: translateX(2px);
}

/* Chevron - styled as a page corner fold */
.category-chevron {
    width: 1.125rem;
    height: 1.125rem;
    color: var(--muted-foreground);
    transition: all 500ms cubic-bezier(0.23, 1, 0.32, 1);
    flex-shrink: 0;
    opacity: 0.6;
}

.category-header:hover .category-chevron {
    color: var(--primary);
    opacity: 1;
}

.category-header[aria-expanded="true"] .category-chevron {
    transform: rotate(180deg) scale(0.9);
    opacity: 0.5;
}

/* Collapsible content - page unfold effect */
.category-content {
    overflow: hidden;
    transition: all 600ms cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
}

/* Fold line effect */
.category-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--border) 20%,
        var(--border) 80%,
        transparent 100%);
    opacity: 0;
    transition: opacity 400ms ease;
}

.category-content:not([hidden])::before {
    opacity: 0.3;
}

.category-content[hidden] {
    display: block;
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    transform: perspective(1000px) rotateX(-2deg);
    transform-origin: top center;
}

.category-content:not([hidden]) {
    max-height: 5000px;
    opacity: 1;
    margin-top: 2.5rem;
    padding-top: 2rem;
    transform: perspective(1000px) rotateX(0deg);
    animation: page-unfold 600ms cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes page-unfold {
    0% {
        max-height: 0;
        opacity: 0;
        transform: perspective(1000px) rotateX(-3deg);
        filter: blur(2px);
    }
    40% {
        opacity: 0.3;
    }
    100% {
        max-height: 5000px;
        opacity: 1;
        transform: perspective(1000px) rotateX(0deg);
        filter: blur(0);
    }
}

/* Stagger article animations - elegant cascade */
.category-content .writing-item {
    animation: article-reveal 700ms cubic-bezier(0.23, 1, 0.32, 1) both;
    border-left: 2px solid transparent;
    padding-left: 1rem;
    margin-left: -1rem;
    transition: border-color 300ms ease;
}

.category-content .writing-item:hover {
    border-left-color: var(--primary);
}

.category-content .writing-item:nth-child(1) {
    animation-delay: 100ms;
}

.category-content .writing-item:nth-child(2) {
    animation-delay: 200ms;
}

.category-content .writing-item:nth-child(3) {
    animation-delay: 300ms;
}

.category-content .writing-item:nth-child(4) {
    animation-delay: 400ms;
}

@keyframes article-reveal {
    0% {
        opacity: 0;
        transform: translateY(20px) translateX(-10px);
    }
    60% {
        opacity: 0.8;
    }
    100% {
        opacity: 1;
        transform: translateY(0) translateX(0);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .category-header,
    .category-content,
    .category-chevron,
    .category-count,
    .category-content .writing-item {
        animation: none !important;
        transition: none !important;
    }

    .category-header::after,
    .category-header::before {
        display: none;
    }

    .category-content[hidden] {
        transform: none;
    }

    .category-content:not([hidden]) {
        transform: none;
    }
}

/* Mobile responsive - maintain editorial sophistication */
@media (max-width: 768px) {
    .category-section {
        margin-bottom: 2.5rem;
    }

    .category-section::before {
        left: -1rem;
    }

    .category-header {
        padding: 1.25rem 1.5rem 1.25rem 1.5rem;
    }

    .category-header:hover {
        padding-left: 2rem;
    }

    .category-header-content {
        gap: 0.75rem;
    }

    .category-header .category-title {
        font-size: 1.25rem;
    }

    .category-count {
        font-size: 0.8125rem;
    }

    .category-count::after {
        font-size: 0.6875rem;
    }

    .category-chevron {
        width: 1rem;
        height: 1rem;
    }

    .category-content:not([hidden]) {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }

    .category-content .writing-item {
        padding-left: 0.75rem;
        margin-left: -0.75rem;
    }
}

@media (max-width: 480px) {
    .category-section {
        margin-bottom: 2rem;
    }

    .category-section::before {
        display: none;
    }

    .category-header {
        padding: 1rem 1.25rem;
    }

    .category-header::after {
        display: none;
    }

    .category-header:hover {
        padding-left: 1.25rem;
    }

    .category-header .category-title {
        font-size: 1.125rem;
        letter-spacing: 0.01em;
    }

    .category-count {
        font-size: 0.75rem;
    }

    .category-count::before {
        margin-right: 0.35rem;
    }

    .category-count::after {
        display: none;
    }

    .category-content:not([hidden]) {
        margin-top: 1.5rem;
        padding-top: 1.25rem;
    }

    .category-content .writing-item {
        padding-left: 0.5rem;
        margin-left: -0.5rem;
    }
}

/* ==================== */
/* Article Enhancements */
/* Editorial Typography & Distinctive Features */
/* ==================== */

/* Dropcap - First letter treatment for essays */
.article-content > p:first-of-type::first-letter {
    float: left;
    font-family: var(--font-display);
    font-size: 4.5rem;
    line-height: 0.85;
    margin: 0.1em 0.15em 0 0;
    color: var(--primary);
    font-weight: 500;
}

/* Enhanced subtitle */
.article-subtitle {
    font-family: var(--font-display);
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--muted-foreground);
    margin-top: 1rem;
    font-weight: 400;
}

/* Pull quotes - Extract key passages */
.pull-quote {
    font-family: var(--font-display);
    font-size: 1.75rem;
    line-height: 1.4;
    color: var(--foreground);
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    font-style: italic;
    position: relative;
}

.pull-quote::before {
    content: '"';
    position: absolute;
    left: -0.5em;
    top: 1.5rem;
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.3;
    font-family: var(--font-display);
}

.pull-quote cite {
    display: block;
    margin-top: 1rem;
    font-size: 0.875rem;
    font-style: normal;
    color: var(--muted-foreground);
    text-align: right;
}

/* Enhanced blockquotes with ornamental quotes */
blockquote {
    position: relative;
    margin: 2.5rem 0;
    padding: 1.5rem 2rem 1.5rem 3rem;
    border-left: 3px solid var(--primary);
    background: linear-gradient(90deg, var(--muted-surface) 0%, transparent 100%);
    font-style: italic;
}

blockquote::before {
    content: '"';
    position: absolute;
    left: 0.5rem;
    top: 0.25rem;
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.4;
    line-height: 1;
}

blockquote p {
    margin: 0;
}

blockquote strong {
    font-style: normal;
    color: var(--foreground);
}

/* Section ornaments - Decorative dividers */
.section-ornament {
    text-align: center;
    margin: 4rem 0;
    color: var(--muted-foreground);
    opacity: 0.5;
    font-size: 1rem;
    letter-spacing: 0.5em;
}

.section-ornament::before {
    content: '◆  ◆  ◆';
}

/* Enhanced figures and images */
.article-image {
    margin: 3rem 0;
    text-align: center;
}

.article-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.article-image figcaption {
    margin-top: 1rem;
    font-family: var(--font-display);
    font-size: 0.9375rem;
    color: var(--muted-foreground);
    font-style: italic;
}

/* Reading progress indicator */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-hover) 100%);
    z-index: 1000;
    transition: width 150ms ease-out;
}

/* Data callout boxes - For key statistics in research articles */
.data-callout {
    margin: 2.5rem 0;
    padding: 1.75rem 2rem;
    background: var(--muted-surface);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    position: relative;
}

.data-callout::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, var(--primary), transparent 70%);
    opacity: 0.05;
    pointer-events: none;
}

.data-callout-title {
    font-family: var(--font-display);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.data-callout-value {
    font-family: var(--font-display);
    font-size: 2.25rem;
    line-height: 1.2;
    color: var(--foreground);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.data-callout-description {
    font-size: 0.9375rem;
    color: var(--muted-foreground);
    line-height: 1.6;
}

/* Enhanced research tables */
.research-table {
    position: relative;
}

.research-table caption {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.research-table thead th {
    position: relative;
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: 0.05em;
}

.research-table thead th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

.research-table tbody tr:hover {
    background: var(--muted-surface);
    transition: background 200ms ease;
}

.research-table tbody tr:hover td:first-child {
    color: var(--primary);
    transition: color 200ms ease;
}

/* Executive summary styling */
.executive-summary {
    margin: 3rem 0;
    padding: 2.5rem;
    background: linear-gradient(135deg, var(--muted-surface) 0%, transparent 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
}

.executive-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
}

.executive-summary h2:first-child {
    margin-top: 0;
    font-size: 1.5rem;
}

/* Key insights box */
.insight-box {
    margin: 2.5rem 0;
    padding: 1.5rem 2rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.insight-box::before {
    content: '✦';
    display: block;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    opacity: 0.6;
}

.insight-box-title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--foreground);
}

/* Article quote callouts - highlighted passages */
.article-quote {
    font-family: var(--font-display);
    font-size: 1.375rem;
    line-height: 1.5;
    margin: 2.5rem 0;
    padding: 1.5rem 2rem;
    background: linear-gradient(90deg, var(--muted-surface) 0%, transparent 100%);
    border-left: 3px solid var(--primary);
    font-style: italic;
    color: var(--foreground-90);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Anchor links within articles */
.article-content h2[id],
.article-content h3[id] {
    scroll-margin-top: 6rem;
}

/* Scroll-triggered fade-in animations */
@keyframes fade-in-up-scroll {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-reveal {
    animation: fade-in-up-scroll 0.8s cubic-bezier(0.23, 1, 0.32, 1) both;
}

/* Article metadata enhancement */
.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    font-size: 0.9375rem;
    color: var(--muted-foreground);
}

.article-meta::before {
    content: '';
    width: 2rem;
    height: 1px;
    background: var(--border);
}

.article-meta time {
    font-family: var(--font-display);
    font-style: italic;
}

/* Reading time estimate */
.reading-time {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.reading-time::before {
    content: '·';
}

/* Responsive refinements for article enhancements */
@media (max-width: 768px) {
    .article-content > p:first-of-type::first-letter {
        font-size: 3.5rem;
        margin: 0.05em 0.1em 0 0;
    }

    .pull-quote {
        font-size: 1.375rem;
        padding: 1.5rem 0;
        margin: 2rem 0;
    }

    .pull-quote::before {
        font-size: 3rem;
        top: 1rem;
    }

    blockquote {
        padding: 1.25rem 1.5rem 1.25rem 2.5rem;
    }

    blockquote::before {
        font-size: 2.5rem;
    }

    .data-callout {
        padding: 1.5rem;
    }

    .data-callout-value {
        font-size: 1.875rem;
    }

    .article-quote {
        font-size: 1.125rem;
        padding: 1.25rem 1.5rem;
    }

    .insight-box {
        padding: 1.25rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .article-content > p:first-of-type::first-letter {
        font-size: 3rem;
    }

    .pull-quote {
        font-size: 1.125rem;
        margin: 1.5rem 0;
    }

    .pull-quote::before {
        display: none;
    }

    .article-subtitle {
        font-size: 1.125rem;
    }

    .section-ornament {
        margin: 3rem 0;
        font-size: 0.875rem;
    }

    .data-callout-value {
        font-size: 1.5rem;
    }
}

/* ==================== */
/* Research Article Special Boxes */
/* Editorial Sophistication: Bloomberg Terminal × The Economist */
/* ==================== */

/* Shared box styling with refined depth */
.key-insight,
.highlight-box,
.warning-box,
.economics-box {
    position: relative;
    padding: 2rem 2.5rem;
    margin: 3rem 0;
    border-radius: 2px;
    overflow: hidden;
    transition: all 400ms cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 4px 8px rgba(0, 0, 0, 0.02);
}

.key-insight:hover,
.highlight-box:hover,
.warning-box:hover,
.economics-box:hover {
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.08),
        0 8px 16px rgba(0, 0, 0, 0.04);
    transform: translateY(-1px);
}

/* Subtle noise texture overlay for premium feel */
.key-insight::after,
.highlight-box::after,
.warning-box::after,
.economics-box::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 255, 255, 0.01) 2px, rgba(255, 255, 255, 0.01) 4px);
    pointer-events: none;
    mix-blend-mode: overlay;
    opacity: 0.3;
}

/* Key Insight Box - Primary highlight with animated accent */
.key-insight {
    background: linear-gradient(135deg,
        rgba(59, 130, 246, 0.12) 0%,
        rgba(139, 92, 246, 0.08) 100%);
    border-left: 3px solid transparent;
    border-image: linear-gradient(180deg, #3b82f6 0%, #8b5cf6 100%) 1;
    font-size: 1.0625rem;
    line-height: 1.75;
}

[data-theme="light"] .key-insight {
    background: linear-gradient(135deg,
        rgba(59, 130, 246, 0.06) 0%,
        rgba(139, 92, 246, 0.04) 100%);
}

/* Decorative corner accent */
.key-insight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, transparent 100%);
    opacity: 0.15;
    clip-path: polygon(0 0, 100% 0, 0 100%);
}

/* Animated pulse on key insights */
@keyframes insight-pulse {
    0%, 100% {
        border-image-source: linear-gradient(180deg, #3b82f6 0%, #8b5cf6 100%);
    }
    50% {
        border-image-source: linear-gradient(180deg, #8b5cf6 0%, #3b82f6 100%);
    }
}

.key-insight {
    animation: insight-pulse 8s ease-in-out infinite;
}

.key-insight strong {
    color: var(--primary);
    font-weight: 600;
    position: relative;
}

.key-insight strong::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--primary) 0%, transparent 100%);
    opacity: 0.4;
}

/* Highlight Box - Informational with corner brackets */
.highlight-box {
    background: rgba(59, 130, 246, 0.06);
    border-left: 3px solid var(--primary);
    border-top: 1px solid rgba(59, 130, 246, 0.2);
    border-right: 1px solid rgba(59, 130, 246, 0.1);
    border-bottom: 1px solid rgba(59, 130, 246, 0.15);
}

[data-theme="light"] .highlight-box {
    background: rgba(59, 130, 246, 0.04);
}

/* Terminal-style corner brackets */
.highlight-box::before {
    content: '┌';
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    font-size: 1.25rem;
    color: var(--primary);
    opacity: 0.4;
    font-family: 'Monaco', monospace;
    line-height: 1;
}

.highlight-box h4 {
    margin: 0 0 1rem 0;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: var(--font-body);
}

/* Warning Box - Critical information with attention signal */
.warning-box {
    background:
        linear-gradient(90deg, rgba(239, 68, 68, 0.08) 0%, rgba(239, 68, 68, 0.04) 100%);
    border-left: 3px solid #ef4444;
    border-top: 1px solid rgba(239, 68, 68, 0.2);
}

[data-theme="light"] .warning-box {
    background:
        linear-gradient(90deg, rgba(239, 68, 68, 0.05) 0%, rgba(239, 68, 68, 0.02) 100%);
}

/* Animated warning indicator */
.warning-box::before {
    content: '⚠';
    position: absolute;
    top: 1.75rem;
    right: 1.75rem;
    font-size: 1.5rem;
    opacity: 0.25;
    animation: warning-pulse 2s ease-in-out infinite;
}

@keyframes warning-pulse {
    0%, 100% { opacity: 0.25; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.05); }
}

.warning-box h4 {
    margin: 0 0 1rem 0;
    color: #ef4444;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: var(--font-body);
}

/* Economics Box - Financial data with grid aesthetic */
.economics-box {
    background: rgba(16, 185, 129, 0.06);
    border-left: 3px solid #10b981;
    border-top: 1px solid rgba(16, 185, 129, 0.2);
}

[data-theme="light"] .economics-box {
    background: rgba(16, 185, 129, 0.04);
}

/* Subtle grid pattern for data aesthetic */
.economics-box::after {
    background-image:
        linear-gradient(rgba(16, 185, 129, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 185, 129, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    mix-blend-mode: normal;
    opacity: 0.5;
}

.economics-box h4 {
    margin: 0 0 1rem 0;
    color: #10b981;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: var(--font-body);
}

/* Calculation Box - Terminal aesthetic with monospace perfection */
.calculation {
    background: rgba(251, 191, 36, 0.05);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Courier New', monospace;
    font-size: 0.9375rem;
    line-height: 1.7;
    border: 1px solid rgba(251, 191, 36, 0.25);
    border-radius: 3px;
    position: relative;
    overflow: hidden;
    box-shadow:
        inset 0 1px 2px rgba(0, 0, 0, 0.05),
        0 1px 3px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .calculation {
    background: rgba(251, 191, 36, 0.04);
    border-color: rgba(251, 191, 36, 0.3);
}

/* Terminal cursor effect */
.calculation::before {
    content: '>';
    position: absolute;
    left: 0.75rem;
    top: 0.75rem;
    color: #f59e0b;
    font-weight: 700;
    opacity: 0.5;
    font-size: 0.875rem;
}

.calculation::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(251, 191, 36, 0.02) 2px,
            rgba(251, 191, 36, 0.02) 4px
        );
    pointer-events: none;
}

.calculation strong {
    color: #f59e0b;
    font-weight: 700;
}

/* Section Introduction - Refined editorial lead */
.section-intro {
    font-size: 1.1875rem;
    color: var(--muted-foreground);
    margin-bottom: 2.5rem;
    font-style: italic;
    line-height: 1.75;
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid var(--border);
}

.section-intro::before {
    content: '"';
    position: absolute;
    left: -0.5rem;
    top: -0.5rem;
    font-size: 4rem;
    font-family: var(--font-display);
    color: var(--primary);
    opacity: 0.15;
    line-height: 1;
}

/* Table of Contents - Interactive navigation instrument */
.toc {
    background:
        linear-gradient(135deg,
            rgba(59, 130, 246, 0.03) 0%,
            transparent 100%);
    padding: 2.5rem;
    margin: 3.5rem 0;
    border: 1px solid var(--border);
    border-radius: 3px;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .toc {
    background:
        linear-gradient(135deg,
            rgba(59, 130, 246, 0.02) 0%,
            transparent 100%);
}

/* Corner accent marks */
.toc::before,
.toc::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border: 2px solid var(--primary);
    opacity: 0.2;
}

.toc::before {
    top: 1rem;
    left: 1rem;
    border-right: none;
    border-bottom: none;
}

.toc::after {
    bottom: 1rem;
    right: 1rem;
    border-left: none;
    border-top: none;
}

.toc h3 {
    margin: 0 0 1.75rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--foreground);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: var(--font-body);
    position: relative;
    padding-bottom: 0.75rem;
}

.toc h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary) 0%, transparent 100%);
}

.toc ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
    position: relative;
}

/* Vertical progress line */
.toc ul::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg,
        var(--border) 0%,
        var(--border) 50%,
        transparent 100%);
}

.toc li {
    padding: 0.875rem 0;
    padding-left: 2rem;
    position: relative;
    transition: all 200ms ease;
}

/* Section number indicators */
.toc li::before {
    content: '';
    position: absolute;
    left: -3px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: 50%;
    transition: all 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;
}

.toc li:hover::before {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.3);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.toc a {
    color: var(--foreground-90);
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    transition: all 250ms cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.toc a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

/* Citation superscript - refined academic styling */
.citation {
    font-size: 0.75em;
    color: var(--primary);
    vertical-align: super;
    font-weight: 700;
    padding: 0 0.15em;
    transition: all 200ms ease;
}

.citation:hover {
    color: var(--primary-hover);
}

/* Responsive adjustments - refined scaling */
@media (max-width: 768px) {
    .key-insight,
    .highlight-box,
    .warning-box,
    .economics-box {
        padding: 1.5rem 1.75rem;
        margin: 2.5rem 0;
    }

    .calculation {
        padding: 1.25rem 1.5rem;
        font-size: 0.875rem;
    }

    .section-intro {
        font-size: 1.0625rem;
        padding-left: 1.5rem;
    }

    .section-intro::before {
        font-size: 3rem;
    }

    .toc {
        padding: 2rem;
        margin: 2.5rem 0;
    }

    .toc h3 {
        font-size: 1rem;
    }

    .toc a {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .key-insight,
    .highlight-box,
    .warning-box,
    .economics-box {
        padding: 1.25rem 1.5rem;
        margin: 2rem 0;
    }

    .key-insight::before {
        width: 32px;
        height: 32px;
    }

    .highlight-box::before {
        font-size: 1rem;
        top: 0.5rem;
        left: 0.5rem;
    }

    .warning-box::before {
        font-size: 1.25rem;
        top: 1.25rem;
        right: 1.25rem;
    }

    .calculation {
        padding: 1rem 1.25rem;
        font-size: 0.8125rem;
    }

    .section-intro {
        font-size: 1rem;
        padding-left: 1.25rem;
    }

    .section-intro::before {
        font-size: 2.5rem;
        left: -0.35rem;
    }

    .toc {
        padding: 1.5rem;
        margin: 2rem 0;
    }

    .toc::before,
    .toc::after {
        width: 16px;
        height: 16px;
    }

    .toc::before {
        top: 0.75rem;
        left: 0.75rem;
    }

    .toc::after {
        bottom: 0.75rem;
        right: 0.75rem;
    }

    .toc h3 {
        font-size: 0.9375rem;
        margin-bottom: 1.25rem;
    }

    .toc li {
        padding-left: 1.5rem;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .toc a {
        font-size: 0.8125rem;
    }
}
