/* CSS Variables for dark theme */
:root {
    --bg-color: #0a1424;
    --bg-secondary: #111d31;
    --heading-color: #eef3f9;
    --body-color: #cdd5e0;
    --text-color: #c3cddb;
    --text-secondary: #8d9bb1;
    --accent-color: #6cb2ff;
    --border-color: #22324b;
    --font-main: 'Schibsted Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Schibsted Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: Charter, 'Bitstream Charter', 'Charis SIL', Georgia, Cambria, "Times New Roman", Times, serif;
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
}

/* Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Base */
html {
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Atmospheric backdrop: faint dot-grid + top accent glow */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(800px 420px at 80% -8%, rgba(108, 178, 255, 0.10), transparent 60%),
        radial-gradient(rgba(139, 148, 158, 0.06) 1px, transparent 1px);
    background-size: auto, 32px 32px;
}

/* Container - Medium-inspired width */
#container {
    max-width: 880px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.015em;
    margin: 2rem 0 1rem;
    color: var(--heading-color);
}

h1 {
    font-size: 1.75rem;
    margin-top: 0;
}

h2 {
    font-size: 1.35rem;
    margin-top: 3rem;
}

.section-heading-inline {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
}

.section-heading-inline h2 {
    border-bottom: 0;
    margin: 0;
    padding: 0;
}

.section-heading-link {
    font-size: 0.85rem;
    color: var(--accent-color);
    white-space: nowrap;
}

.section-heading-link:hover {
    color: var(--accent-color);
}

h3 {
    font-size: 1.15rem;
}

p {
    margin: 1rem 0;
}

/* Links */
a {
    color: var(--accent-color);
    text-decoration: none;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Links inside running text need an underline, the accent alone is too close to the body color */
.content :is(p, li, td, blockquote) a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    text-decoration-color: color-mix(in srgb, var(--accent-color) 45%, transparent);
}

.content :is(p, li, td, blockquote) a:hover {
    opacity: 1;
    text-decoration-color: var(--accent-color);
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    gap: 2rem;
}

.header-brand {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

header h1 {
    font-size: 1.5rem;
    margin: 0;
    line-height: 1.1;
}

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

header h1 a:hover {
    opacity: 0.7;
}

.header-tagline {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    margin: 0;
    letter-spacing: 0.02em;
}

.header-nav {
    display: flex;
    gap: 1.1rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.header-nav-link {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    font-size: 0.9rem;
    color: var(--text-color) !important;
    text-decoration: none !important;
    transition: color 0.15s;
}

.header-nav-link:hover {
    color: var(--accent-color) !important;
    opacity: 1;
}

.header-nav-icon {
    display: inline-flex;
    align-items: center;
    color: var(--text-secondary) !important;
}

.header-nav-icon:hover {
    color: var(--accent-color) !important;
}

.header-nav-lang {
    font-size: 0.8rem;
    font-family: var(--font-mono);
    color: var(--text-secondary);
}

.header-nav-lang .header-nav-link {
    display: inline;
    font-size: inherit;
}

.header-nav-lang [aria-current] {
    color: var(--accent-color);
}

@media (max-width: 600px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .header-nav {
        justify-content: flex-start;
        gap: 0.65rem;
    }
    .header-tagline {
        font-size: 0.7rem;
    }
}

/* Homepage hero */
#hero {
    margin: 1rem 0 3rem;
    padding: 0;
}

#hero .hero-eyebrow {
    font-size: 0.78rem;
    font-family: var(--font-mono);
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0 0 1rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 2rem;
    line-height: 1.2;
    margin: 0 0 1.5rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--text-color);
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0 0 1.75rem;
    line-height: 1.65;
}

.hero-sub strong {
    color: var(--text-color);
}

/* Available-for-consulting footer CTA */
.footer-cta {
    margin: 3rem 0 0;
    padding: 1.1rem 1.5rem;
    background: linear-gradient(90deg, rgba(108, 178, 255, 0.07), rgba(108, 178, 255, 0.02));
    border: 1px solid rgba(108, 178, 255, 0.25);
    border-radius: 8px;
}

.footer-cta p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.footer-cta strong {
    color: var(--text-color);
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3fb950;
    box-shadow: 0 0 0 0 rgba(63, 185, 80, 0.6);
    animation: pulse 2s infinite;
    margin-right: 0.5rem;
    vertical-align: middle;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(63, 185, 80, 0.6); }
    70% { box-shadow: 0 0 0 8px rgba(63, 185, 80, 0); }
    100% { box-shadow: 0 0 0 0 rgba(63, 185, 80, 0); }
}

/* Posts page intro */
.posts-intro {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin: 1rem 0 2.5rem;
}

/* Consulting: FAQ + "what I don't do" */
.faq details {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1rem 1.25rem;
    margin: 0.5rem 0;
    background: var(--bg-secondary);
    transition: border-color 0.2s;
}

.faq details[open] {
    border-color: var(--accent-color);
}

.faq summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--text-color);
    list-style: none;
    position: relative;
    padding-right: 1.5rem;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 0;
    color: var(--accent-color);
    font-size: 1.2rem;
    line-height: 1;
    transition: transform 0.2s;
}

.faq details[open] summary::after {
    content: "−";
}

.faq details p {
    margin: 1rem 0 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.dont-list li::before {
    content: "×";
    color: #f85149;
}

/* Lists */
ul, ol {
    margin: 1rem 0 1rem 1.5rem;
}

li {
    margin: 0.5rem 0;
}

/* Posts list */
#posts {
    list-style: none;
    margin: 1rem 0;
    padding: 0;
}

#posts li {
    margin: 0;
    padding: 1.25rem 0;
    border-top: 1px solid var(--border-color);
}

#posts li:first-child {
    border-top: 0;
    padding-top: 0;
}

#posts h3 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin: 0;
}

#posts h3 a {
    color: var(--heading-color);
}

/* Home list sits under a section heading, so its titles stay smaller than it */
.section-heading-inline + #posts {
    margin-top: 1.75rem;
}

.section-heading-inline + #posts h3 {
    font-size: 1.125rem;
}

.section-heading-inline + #posts li:not(:first-child) {
    padding: 1rem 0;
}

/* Home list: date and title on one row, tags under the title */
.section-heading-inline + #posts li {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.5rem;
}

.section-heading-inline + #posts .post-date {
    display: inline;
    margin: 0;
    width: 5.75rem;
    white-space: nowrap;
}

.section-heading-inline + #posts h3 {
    font-weight: 500;
}

/* Read time and status sit at the right end of the title row */
.section-heading-inline + #posts .read-time {
    margin-left: auto;
}

.section-heading-inline + #posts .tags {
    display: flex;
    flex-basis: 100%;
    gap: 0.35rem;
    margin: 0.15rem 0 0;
    padding-left: 6.25rem;
    /* One row only, extra tags scroll sideways with no visible scrollbar */
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}

.section-heading-inline + #posts .tags::-webkit-scrollbar {
    display: none;
}

.section-heading-inline + #posts .tags .tag {
    flex-shrink: 0;
}

.section-heading-inline + #posts .tag {
    margin-right: 0;
}

/* Phones: date and status share the first row, the break pushes the title to the next */
@media (max-width: 600px) {
    .section-heading-inline + #posts li {
        row-gap: 0;
    }

    .section-heading-inline + #posts .post-date {
        order: 1;
    }

    .section-heading-inline + #posts .post-status {
        order: 2;
        margin-left: auto;
    }

    .section-heading-inline + #posts li::before {
        content: "";
        flex-basis: 100%;
        order: 3;
    }

    .section-heading-inline + #posts h3 {
        order: 4;
        margin-top: 0.15rem;
    }

    .section-heading-inline + #posts .read-time {
        order: 5;
    }

    .section-heading-inline + #posts .tags {
        order: 6;
        margin-top: 0.4rem;
    }

    .section-heading-inline + #posts .tags {
        padding-left: 0;
    }
}

#posts h3 a:hover {
    color: var(--accent-color);
}

.post-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: block;
    margin-top: 0.5rem;
}

/* Tags */
.tags {
    margin: 1rem 0;
}

.tag {
    display: inline-block;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    background: var(--bg-secondary);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    margin-right: 0.5rem;
}

#posts .tags {
    margin: 0.6rem 0 0;
}

a.tag:hover {
    color: var(--accent-color);
    text-decoration: none;
    opacity: 1;
}

/* Content - Serif font for articles */
.content {
    margin: 2.5rem 0;
    font-size: 1.25rem;
    line-height: 1.6;
    font-family: var(--font-serif);
    color: var(--body-color);
}

.content h2 {
    margin-top: 3.5rem;
    margin-bottom: 1rem;
    font-size: 1.75rem;
    letter-spacing: -0.02em;
}

.content h3 {
    margin-top: 2.75rem;
    margin-bottom: 0.75rem;
    font-size: 1.375rem;
}

.content h4 {
    margin-top: 2.25rem;
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.content p {
    margin: 1.5rem 0;
    font-weight: 400;
}

.content strong {
    font-weight: 700;
    color: var(--heading-color);
}

.content pre {
    background: var(--bg-secondary);
    padding: 1.25rem;
    border-radius: 6px;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    margin: 2rem 0;
    line-height: 1.6;
}

.content code {
    font-family: var(--font-mono);
    font-size: 0.85em;
    background: var(--bg-secondary);
    padding: 0.2em 0.4em;
    border-radius: 3px;
}

.content pre code {
    background: none;
    padding: 0;
    font-size: inherit;
}

.content blockquote {
    border-left: 4px solid var(--accent-color);
    margin: 2rem 0;
    padding-left: 1.5rem;
    color: var(--text-secondary);
    font-style: italic;
}

.content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 2rem 0;
}

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

.content li {
    margin: 0.75rem 0;
}

.content hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 1rem 0;
}

/* An all-italic paragraph is a caption or the "Originally published" footer */
.content p > em:only-child {
    display: block;
    font-size: 0.95rem;
    font-family: var(--font-main);
    font-style: normal;
    color: var(--text-secondary);
}

/* Article header */
article {
    margin-top: 1rem;
}

article .post-date {
    font-size: 1rem;
    margin: 0 0 1rem;
}

article h1 {
    margin-bottom: 1.25rem;
}

/* Post navigation */
.post-nav {
    display: flex;
    justify-content: space-between;
    margin: 1rem 0;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
}

.post-nav a {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

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

/* Footer */
#page-footer {
    margin-top: 3rem;
    padding-top: 0;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: right;
}

#page-footer a {
    color: var(--text-secondary);
    margin-left: 1rem;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

#page-footer a:hover {
    color: var(--accent-color);
}

#page-footer svg {
    vertical-align: middle;
}

#page-footer .footer-extra {
    margin-top: 0.5rem;
    font-size: 0.8rem;
}

#page-footer .footer-extra a {
    margin: 0;
    color: var(--text-secondary);
}

#page-footer .footer-extra a:hover {
    color: var(--accent-color);
}

/* Print */
@media print {
    .no-print {
        display: none !important;
    }
}

/* Responsive */
@media (max-width: 600px) {
    #container {
        padding: 2rem 1.5rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.2rem;
    }
}

/* Selection */
::selection {
    background: var(--accent-color);
    color: var(--bg-color);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* GitHub Repositories - Two columns like GitHub */
#repos {
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (max-width: 768px) {
    #repos {
        grid-template-columns: 1fr;
    }
}

.repo-item {
    margin: 0;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: border-color 0.2s;
    display: flex;
    flex-direction: column;
}

.repo-item:hover {
    border-color: var(--accent-color);
}

.repo-item h3 {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    margin: 0 0 0.5rem;
}

.repo-item h3 a {
    color: var(--accent-color);
}

.repo-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0.5rem 0;
    line-height: 1.5;
    flex-grow: 1;
}

.repo-meta {
    display: flex;
    gap: 1rem;
    margin-top: auto;
    padding-top: 0.75rem;
    font-size: 0.8rem;
    font-family: var(--font-mono);
    color: var(--text-secondary);
}

.repo-lang {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.repo-lang::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-color);
}

.repo-stars {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.star-icon {
    font-size: 1rem;
}

.repo-owner {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-left: 0.5rem;
}

.repo-owner::before {
    content: "/";
    margin-right: 0.3rem;
    opacity: 0.5;
}

/* Consulting page */
#consulting {
    margin: 1rem 0;
}

.consulting-hero {
    padding: 0;
    margin-bottom: 0;
}

.consulting-hero h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin: 0 0 1.25rem;
    font-weight: 700;
}

.hero-eyebrow {
    font-size: 0.8rem;
    font-family: var(--font-mono);
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 0.75rem;
}

.consulting-lede {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin: 0 auto 2rem;
    max-width: 38em;
}

.cta-button {
    display: inline-block;
    background: var(--accent-color);
    color: var(--bg-color) !important;
    padding: 0.85rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none !important;
    transition: opacity 0.2s, transform 0.1s;
}

.cta-button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    text-decoration: none !important;
}

.cta-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0.75rem 0 0;
    font-family: var(--font-mono);
    text-align: center;
}

.cta-meta-detail {
    margin-top: 1rem;
    text-align: left;
}

.consulting-section {
    margin: 3rem 0;
}

.consulting-hero + .consulting-section {
    margin-top: 1.75rem;
}

.consulting-hero .cta-button {
    display: block;
    width: fit-content;
    margin: 0 auto;
}

.consulting-section h2 {
    font-size: 1.35rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

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

.consulting-list li {
    margin: 1rem 0;
    padding-left: 1.25rem;
    position: relative;
}

.consulting-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 600;
}

.consulting-steps {
    margin: 0;
    padding-left: 1.5rem;
}

.consulting-steps li {
    margin: 1rem 0;
}

.domain-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (max-width: 600px) {
    .domain-grid {
        grid-template-columns: 1fr;
    }
}

.domain-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1.5rem;
}

.domain-card .domain-label {
    font-size: 0.7rem;
    font-family: var(--font-mono);
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 0.5rem;
}

.domain-card h3 {
    margin: 0 0 1rem;
    font-family: var(--font-mono);
    font-size: 1rem;
    letter-spacing: -0.01em;
    color: var(--text-color);
}

.domain-card ul {
    margin: 0;
    padding-left: 1.1rem;
    list-style: none;
}

.domain-card li {
    margin: 0.4rem 0;
    font-size: 0.92rem;
    color: var(--text-secondary);
    position: relative;
    padding-left: 0.3rem;
}

.domain-card li::before {
    content: "›";
    color: var(--accent-color);
    position: absolute;
    left: -0.7rem;
    font-weight: 700;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (max-width: 600px) {
    .service-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1.5rem;
    transition: border-color 0.2s;
}

.service-card:hover {
    border-color: var(--accent-color);
}

.service-card h3 {
    margin: 0 0 0.25rem;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    color: var(--accent-color);
}

.service-card .service-tag {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    margin: 0 0 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.service-card p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.consulting-cta {
    margin: 4rem 0 2rem;
    padding: 2.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
}

.consulting-cta h2 {
    border: 0;
    margin: 0 0 1.5rem;
    padding: 0;
    font-size: 1.5rem;
}

/* Only zola serve renders drafts and scheduled posts, this marks them */
.post-badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-color);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    padding: 0.05rem 0.4rem;
    margin-left: 0.4rem;
    vertical-align: middle;
}

.read-time {
    font-family: var(--font-mono);
    font-weight: 400;
    color: var(--text-secondary);
}

/* Giscus comments under a post */
.comments {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.comments h2 {
    margin-top: 0;
}

/* Code blocks, same palette as the zola-docs theme */
:root {
    --code-bg: #060c17;
    --syntax-comment: #6b7a90;
    --syntax-string: #9ece6a;
    --syntax-constant: #ff9e64;
    --syntax-keyword: #bb9af7;
    --syntax-entity: #7aa2f7;
    --syntax-support: #7dcfff;
    --syntax-variable: #c0caf5;
}

.content pre,
.docs-content pre {
    background: var(--code-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.1rem 1.35rem;
    color: var(--body-color, var(--text-color));
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.content pre::-webkit-scrollbar,
.docs-content pre::-webkit-scrollbar {
    height: 6px;
}

.content pre::-webkit-scrollbar-thumb,
.docs-content pre::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.content pre::-webkit-scrollbar-track,
.docs-content pre::-webkit-scrollbar-track {
    background: transparent;
}

.content pre .z-comment,
.docs-content pre .z-comment {
    color: var(--syntax-comment);
    font-style: italic;
}

.content pre .z-string,
.docs-content pre .z-string {
    color: var(--syntax-string);
}

.content pre .z-constant,
.docs-content pre .z-constant {
    color: var(--syntax-constant);
}

.content pre .z-keyword,
.content pre .z-storage,
.docs-content pre .z-keyword,
.docs-content pre .z-storage {
    color: var(--syntax-keyword);
}

.content pre .z-entity,
.content pre .z-function,
.docs-content pre .z-entity,
.docs-content pre .z-function {
    color: var(--syntax-entity);
}

.content pre .z-support,
.docs-content pre .z-support {
    color: var(--syntax-support);
}

.content pre .z-variable,
.docs-content pre .z-variable {
    color: var(--syntax-variable);
}

/* Zola 0.18 tags a command as both variable and function, show it as a function */
.content pre .z-variable.z-function,
.docs-content pre .z-variable.z-function {
    color: var(--syntax-entity);
}

.content pre .z-variable.z-parameter,
.docs-content pre .z-variable.z-parameter {
    color: var(--syntax-constant);
}

/* Tables in posts, sans and smaller than the body so they read as reference */
.content table {
    display: block;
    width: max-content;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    margin: 2rem 0;
    font-family: var(--font-main);
    font-size: 0.95rem;
    line-height: 1.5;
}

.content th,
.content td {
    text-align: left;
    vertical-align: top;
    padding: 0.65rem 1rem 0.65rem 0;
    border-bottom: 1px solid var(--border-color);
}

.content th {
    color: var(--heading-color);
    font-weight: 700;
    font-size: 0.85rem;
}

/* The first column names the row, keep it whole */
.content td:first-child {
    white-space: nowrap;
    color: var(--heading-color);
    font-weight: 600;
}

/* A page title followed by text, like About, sits as close as the Posts intro */
h1 + .content {
    margin-top: 1.25rem;
}

/* Heading anchors from insert_anchor_links, shown on hover */
.zola-anchor {
    color: var(--text-secondary);
    opacity: 0;
    text-decoration: none;
    margin-left: 0.25rem;
    transition: opacity 0.15s;
}

.content :is(h2, h3, h4):hover .zola-anchor,
.zola-anchor:focus {
    opacity: 1;
}

@media (hover: none) {
    .zola-anchor {
        opacity: 0.5;
    }
}

/* X sets inline margins on embedded posts, so these need important */
.twitter-tweet,
.twitter-tweet-rendered {
    margin: 2rem auto !important;
}
