/* RXI Journal — blog archive + single post.
   Plain CSS on purpose: assets/tailwind.build.css is a prebuilt artefact and
   there is no CLI in this repo, so any new Tailwind utility here would silently
   resolve to nothing. Everything the blog needs lives in this one file. */

/* ---------- tokens ---------- */
:root {
    --j-sans: 'Satoshi', system-ui, -apple-system, sans-serif;
    --j-serif: 'Gambetta', Georgia, 'Times New Roman', serif;

    --j-bg: #090F1D;
    --j-surface: #0C1427;
    --j-surface-2: rgba(255, 255, 255, .035);
    --j-ink: #FFFFFF;
    --j-ink-2: rgba(255, 255, 255, .72);
    --j-ink-3: rgba(255, 255, 255, .46);
    --j-line: rgba(255, 255, 255, .11);
    --j-line-2: rgba(255, 255, 255, .06);
    --j-accent: #00B2A9;
    --j-accent-ink: #2FD3C9;
    --j-shadow: 0 24px 60px -28px rgba(0, 0, 0, .8);
    --j-grain: .035;
}

html[data-journal="light"] {
    --j-bg: #FBFAF7;
    --j-surface: #FFFFFF;
    --j-surface-2: rgba(11, 18, 32, .025);
    --j-ink: #0B1220;
    --j-ink-2: rgba(11, 18, 32, .70);
    --j-ink-3: rgba(11, 18, 32, .48);
    --j-line: rgba(11, 18, 32, .12);
    --j-line-2: rgba(11, 18, 32, .07);
    --j-accent: #00B2A9;
    /* brand teal is only 2.3:1 on white — text uses the darkened tone */
    --j-accent-ink: #00756F;
    --j-shadow: 0 24px 60px -32px rgba(36, 58, 114, .28);
    --j-grain: .02;
}

/* ---------- shell ---------- */
.journal {
    background: var(--j-bg);
    color: var(--j-ink-2);
    font-family: var(--j-sans);
    min-height: 100dvh;
    position: relative;
    overflow: clip;
    transition: background-color .5s cubic-bezier(.32, .72, 0, 1), color .5s cubic-bezier(.32, .72, 0, 1);
}

/* paper tooth — keeps the light theme from reading as flat #fff */
.journal::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: var(--j-grain);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.journal::after {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 900px;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(60% 70% at 12% 0%, color-mix(in srgb, var(--j-accent) 9%, transparent) 0%, transparent 62%),
        radial-gradient(55% 60% at 92% 12%, color-mix(in srgb, #6B7FE8 9%, transparent) 0%, transparent 60%);
}

.j-wrap {
    position: relative;
    z-index: 1;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- masthead ---------- */
.j-masthead {
    padding: 128px 0 72px;
}

.j-masthead-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 40px;
}

.j-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--j-accent-ink);
}

.j-eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--j-accent);
    box-shadow: 0 0 12px var(--j-accent);
}

.j-title {
    font-family: var(--j-sans);
    font-weight: 700;
    font-size: clamp(3rem, 8vw, 6.5rem);
    line-height: .95;
    letter-spacing: -.035em;
    color: var(--j-ink);
    margin: 0;
    text-wrap: balance;
}

.j-title em {
    font-family: var(--j-serif);
    font-style: italic;
    font-weight: 400;
    letter-spacing: -.02em;
    color: var(--j-ink-3);
}

.j-dek {
    margin: 28px 0 0;
    max-width: 46ch;
    font-size: 1.15rem;
    line-height: 1.65;
    color: var(--j-ink-2);
}

.j-rule {
    margin-top: 56px;
    padding-top: 18px;
    border-top: 1px solid var(--j-line);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--j-ink-3);
}

/* ---------- theme toggle ---------- */
.j-toggle {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 8px;
    border-radius: 999px;
    border: 1px solid var(--j-line);
    background: var(--j-surface-2);
    color: var(--j-ink-3);
    cursor: pointer;
    transition: color .3s, border-color .3s;
}

.j-toggle:hover {
    color: var(--j-ink);
    border-color: var(--j-ink-3);
    border-color: color-mix(in srgb, var(--j-ink) 28%, transparent);
}

.j-toggle svg {
    width: 16px;
    height: 16px;
    display: block;
}

.j-toggle span {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    transition: background-color .3s, color .3s;
}

html:not([data-journal="light"]) .j-toggle .j-t-dark,
html[data-journal="light"] .j-toggle .j-t-light {
    background: var(--j-accent);
    color: #fff;
}

/* ---------- cards ---------- */

.j-shot {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: var(--j-surface-2);
    border: 1px solid var(--j-line-2);
    aspect-ratio: 4 / 3;
}

.j-shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1.2s cubic-bezier(.32, .72, 0, 1);
}

.j-card:hover .j-shot img {
    transform: scale(1.04);
}

.j-no {
    font-family: var(--j-serif);
    font-size: 13px;
    letter-spacing: .04em;
    color: var(--j-ink-3);
    display: block;
    margin-bottom: 20px;
}

.j-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--j-ink-3);
    margin-bottom: 18px;
}

.j-meta b {
    color: var(--j-accent-ink);
    font-weight: 700;
}

.j-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor;
    opacity: .5;
}

.j-h {
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.1;
    color: var(--j-ink);
    margin: 0 0 16px;
    text-wrap: balance;
    transition: color .35s;
}

.j-card:hover .j-h {
    color: var(--j-accent-ink);
}

.j-excerpt {
    color: var(--j-ink-2);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0 0 28px;
}

.j-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--j-ink);
}

.j-more svg {
    width: 15px;
    height: 15px;
    transition: transform .45s cubic-bezier(.32, .72, 0, 1);
}

.j-card:hover .j-more svg {
    transform: translate(3px, -3px);
}

/* ---------- grid ---------- */
.j-grid {
    display: grid;
    gap: 56px 40px;
    grid-template-columns: 1fr;
}

@media (min-width: 700px) {
    .j-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1060px) {
    .j-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.j-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.j-card .j-shot { margin-bottom: 24px; }

.j-card .j-h {
    font-size: 1.35rem;
}

.j-card .j-excerpt {
    font-size: .95rem;
    margin-bottom: 20px;
}

.j-card .j-more {
    margin-top: auto;
}

.j-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 120px 0;
    font-family: var(--j-serif);
    font-size: 1.5rem;
    color: var(--j-ink-3);
}

/* ---------- pagination ---------- */
.j-pager {
    margin: 96px 0 0;
    padding: 24px 0 128px;
    border-top: 1px solid var(--j-line);
    display: flex;
    justify-content: center;
    gap: 6px;
}

.j-pager .page-numbers {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: var(--j-ink-3);
    transition: color .3s, background-color .3s;
}

.j-pager .page-numbers:hover {
    color: var(--j-ink);
    background: var(--j-surface-2);
}

.j-pager .page-numbers.current {
    color: var(--j-ink);
    background: var(--j-surface-2);
    border: 1px solid var(--j-line);
}

.j-pager svg {
    width: 18px;
    height: 18px;
}

/* ---------- single: progress ---------- */
.j-progress {
    position: fixed;
    inset: 0 0 auto;
    height: 2px;
    z-index: 60;
    background: var(--j-accent);
    transform: scaleX(0);
    transform-origin: 0 50%;
    display: none;
}

@supports (animation-timeline: scroll()) {
    .j-progress {
        display: block;
        animation: j-progress linear;
        animation-timeline: scroll(root block);
    }
}

@keyframes j-progress {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

/* ---------- single: header ---------- */
.j-post-head {
    padding: 120px 0 56px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.j-post-head .j-eyebrow {
    margin-bottom: 28px;
}

.j-post-title {
    font-size: clamp(2.25rem, 5.2vw, 4.25rem);
    font-weight: 700;
    line-height: 1.03;
    letter-spacing: -.035em;
    color: var(--j-ink);
    margin: 0 0 24px;
    text-wrap: balance;
}

.j-post-dek {
    font-family: var(--j-serif);
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    line-height: 1.55;
    color: var(--j-ink-2);
    max-width: 56ch;
    margin: 0 auto 40px;
}

.j-byline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 13px;
    color: var(--j-ink-3);
}

.j-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--j-accent);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.j-byline strong {
    color: var(--j-ink);
    font-weight: 600;
}

.j-hero-shot {
    max-width: 1100px;
    margin: 0 auto 88px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--j-line-2);
    box-shadow: var(--j-shadow);
    aspect-ratio: 21 / 9;
}

.j-hero-shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---------- single: body + rail ---------- */
.j-body {
    display: grid;
    grid-template-columns: minmax(0, 680px);
    justify-content: center;
    gap: 48px;
    padding-bottom: 96px;
}

@media (min-width: 1200px) {
    .j-body {
        grid-template-columns: 180px minmax(0, 680px) 180px;
        gap: 48px;
    }
}

.j-rail {
    display: none;
}

@media (min-width: 1200px) {
    .j-rail {
        display: block;
        position: sticky;
        top: 112px;
        align-self: start;
        max-height: calc(100dvh - 160px);
        overflow-y: auto;
    }
}

.j-rail-h {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--j-ink-3);
    margin: 0 0 16px;
}

.j-toc a {
    display: block;
    padding: 7px 0 7px 14px;
    border-left: 1px solid var(--j-line);
    font-size: 13px;
    line-height: 1.45;
    color: var(--j-ink-3);
    text-decoration: none;
    transition: color .3s, border-color .3s;
}

.j-toc a:hover {
    color: var(--j-ink);
}

.j-toc a.is-active {
    color: var(--j-ink);
    border-left-color: var(--j-accent);
}

.j-toc a[data-depth="3"] {
    padding-left: 26px;
    font-size: 12.5px;
}

/* ---------- prose ---------- */
.j-prose {
    font-size: 1.16rem;
    line-height: 1.8;
    color: var(--j-ink-2);
}

.j-prose p {
    margin: 0 0 1.6em;
}

.j-prose > p:first-of-type::first-letter {
    float: left;
    font-family: var(--j-serif);
    font-size: 4.2em;
    line-height: .78;
    font-weight: 500;
    color: var(--j-ink);
    padding: .04em .09em 0 0;
}

.j-prose h2,
.j-prose h3,
.j-prose h4 {
    color: var(--j-ink);
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.2;
    margin: 2.6em 0 .8em;
    scroll-margin-top: 110px;
}

.j-prose h2 { font-size: 2rem; }
.j-prose h3 { font-size: 1.4rem; }
.j-prose h4 { font-size: 1.15rem; }

.j-prose a {
    color: var(--j-ink);
    text-decoration: none;
    border-bottom: 1px solid var(--j-accent);
    border-bottom-color: color-mix(in srgb, var(--j-accent) 55%, transparent);
    transition: color .3s, border-color .3s;
}

.j-prose a:hover {
    color: var(--j-accent-ink);
    border-bottom-color: var(--j-accent);
}

.j-prose strong { color: var(--j-ink); }

.j-prose ul,
.j-prose ol {
    margin: 0 0 1.8em;
    padding-left: 1.4em;
}

.j-prose li {
    margin-bottom: .6em;
    padding-left: .3em;
}

.j-prose ul { list-style: none; padding-left: 0; }

.j-prose ul li {
    position: relative;
    padding-left: 1.6em;
}

.j-prose ul li::before {
    content: "";
    position: absolute;
    left: .3em;
    top: .72em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--j-accent);
}

.j-prose blockquote {
    margin: 2.8em 0;
    padding: 0 0 0 28px;
    border: none;
    border-left: 2px solid var(--j-accent);
    font-family: var(--j-serif);
    font-size: 1.5rem;
    line-height: 1.45;
    color: var(--j-ink);
}

.j-prose blockquote p { margin-bottom: .5em; }
.j-prose blockquote cite {
    display: block;
    font-family: var(--j-sans);
    font-style: normal;
    font-size: .78rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--j-ink-3);
}

.j-prose img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
    border: 1px solid var(--j-line-2);
}

.j-prose figure {
    margin: 3em 0;
    max-width: none;
}

.j-prose figcaption {
    margin-top: 14px;
    font-size: .82rem;
    letter-spacing: .04em;
    color: var(--j-ink-3);
}

.j-prose hr {
    margin: 3.5em 0;
    border: none;
    border-top: 1px solid var(--j-line);
}

.j-prose code {
    font-size: .88em;
    padding: .15em .4em;
    border-radius: 5px;
    background: var(--j-surface-2);
    border: 1px solid var(--j-line-2);
}

.j-prose pre {
    max-width: none;
    overflow-x: auto;
    padding: 20px 22px;
    border-radius: 14px;
    background: var(--j-surface);
    border: 1px solid var(--j-line);
    font-size: .9rem;
    line-height: 1.6;
}

.j-prose pre code { background: none; border: none; padding: 0; }

.j-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 2.4em 0;
    font-size: .96rem;
}

.j-prose th,
.j-prose td {
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid var(--j-line);
}

.j-prose th { color: var(--j-ink); font-weight: 700; }

/* ---------- post footer ---------- */
.j-post-foot {
    max-width: 680px;
    margin: 72px auto 0;
    padding-top: 32px;
    border-top: 1px solid var(--j-line);
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
}

.j-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.j-tag {
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    color: var(--j-ink-3);
    border: 1px solid var(--j-line);
    border-radius: 999px;
    padding: 7px 14px;
    transition: color .3s, border-color .3s;
}

.j-tag:hover {
    color: var(--j-ink);
    border-color: var(--j-accent);
}

.j-share {
    display: flex;
    align-items: center;
    gap: 8px;
}

.j-share > span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--j-ink-3);
    margin-right: 4px;
}

.j-share a,
.j-share button {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 1px solid var(--j-line);
    background: transparent;
    color: var(--j-ink-3);
    cursor: pointer;
    transition: color .3s, border-color .3s, transform .2s;
}

.j-share a:hover,
.j-share button:hover {
    color: var(--j-ink);
    border-color: var(--j-accent);
}

.j-share a:active,
.j-share button:active { transform: scale(.94); }

.j-share svg { width: 16px; height: 16px; }

.j-copied {
    font-size: 12px;
    color: var(--j-accent-ink);
}

/* ---------- prev / next + related ---------- */
.j-adjacent {
    max-width: 1240px;
    margin: 96px auto 0;
    display: grid;
    gap: 1px;
    background: var(--j-line);
    border-top: 1px solid var(--j-line);
    border-bottom: 1px solid var(--j-line);
}

@media (min-width: 800px) {
    .j-adjacent { grid-template-columns: 1fr 1fr; }
}

.j-adj {
    background: var(--j-bg);
    padding: 40px 32px;
    text-decoration: none;
    color: inherit;
    transition: background-color .35s;
}

.j-adj:hover { background: var(--j-surface-2); }
.j-adj.is-next { text-align: right; }

.j-adj small {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--j-ink-3);
    margin-bottom: 12px;
}

.j-adj strong {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.02em;
    color: var(--j-ink);
}

.j-related {
    padding: 96px 0 128px;
}

.j-related h2 {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--j-ink-3);
    margin: 0 0 40px;
}

@media (prefers-reduced-motion: reduce) {
    .journal *,
    .journal *::before,
    .journal *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}

/* the rail is display:block above 1200px, which outranks the UA [hidden] rule —
   journal.js hides it this way when a post has no headings */
.j-rail[hidden] { display: none !important; }

/* body still carries the site's dark Tailwind background; without this the
   light theme shows a dark band on iOS overscroll */
html[data-journal="light"] body { background: var(--j-bg); }

/* ---------- search ---------- */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.j-masthead-search { margin-top: 32px; }

.j-search {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 520px;
    padding: 6px 6px 6px 16px;
    border-radius: 999px;
    border: 1px solid var(--j-line);
    background: var(--j-surface-2);
    transition: border-color .3s;
}

.j-search:focus-within { border-color: var(--j-accent); }

.j-search-ico {
    width: 17px;
    height: 17px;
    flex: none;
    color: var(--j-ink-3);
}

.j-search input[type="search"] {
    flex: 1;
    min-width: 0;
    border: 0;
    background: none;
    outline: none;
    font: inherit;
    font-size: .95rem;
    color: var(--j-ink);
    padding: 10px 0;
}

.j-search input::placeholder { color: var(--j-ink-3); }

.j-search button {
    flex: none;
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    padding: 11px 20px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    background: var(--j-accent);
    color: #fff;
    transition: transform .2s, filter .3s;
}

.j-search button:hover { filter: brightness(1.08); }
.j-search button:active { transform: scale(.97); }

/* the empty state now carries a retry field, so it is a block not a bare line */
.j-empty {
    grid-column: 1 / -1;
    padding: 96px 0;
    text-align: center;
}

.j-empty p {
    font-family: var(--j-serif);
    font-size: 1.5rem;
    color: var(--j-ink-3);
    margin: 0;
}

.j-empty .j-search { margin: 32px auto 0; }

/* ---------- comments ---------- */
.j-comments {
    max-width: 680px;
    margin: 88px auto 0;
    padding-top: 40px;
    border-top: 1px solid var(--j-line);
}

.j-comments-h {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--j-ink-3);
    margin: 0 0 28px;
}

.j-comment-list,
.j-comment-list .children {
    list-style: none;
    margin: 0;
    padding: 0;
}

.j-comment-list .children {
    margin-left: 24px;
    padding-left: 20px;
    border-left: 1px solid var(--j-line);
}

.j-comment-list li { margin-bottom: 28px; }

.j-comment-list .comment-body { font-size: 1rem; line-height: 1.7; }

.j-comment-list .comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--j-ink);
}

.j-comment-list .comment-author img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.j-comment-list .comment-metadata,
.j-comment-list .comment-metadata a {
    font-size: 12px;
    color: var(--j-ink-3);
    text-decoration: none;
    margin: 6px 0 10px;
    display: block;
}

.j-comment-list .comment-content p { margin: 0 0 .9em; }

.j-comment-list .reply a,
.j-comments-closed {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--j-accent-ink);
    text-decoration: none;
}

.j-comments-closed { color: var(--j-ink-3); }

.j-comment-form { margin-top: 40px; }

.j-note {
    font-size: 13px;
    color: var(--j-ink-3);
    margin: 0 0 20px;
}

.j-field { margin: 0 0 18px; }

.j-field label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--j-ink-3);
    margin-bottom: 8px;
}

.j-field input,
.j-field textarea {
    width: 100%;
    font: inherit;
    font-size: 1rem;
    color: var(--j-ink);
    background: var(--j-surface-2);
    border: 1px solid var(--j-line);
    border-radius: 12px;
    padding: 12px 14px;
    outline: none;
    resize: vertical;
    transition: border-color .3s;
}

.j-field input:focus,
.j-field textarea:focus { border-color: var(--j-accent); }

.j-comment-form .j-submit,
.j-comment-form input[type="submit"] {
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    padding: 13px 28px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    background: var(--j-accent);
    color: #fff;
    transition: transform .2s, filter .3s;
}

.j-comment-form .j-submit:hover { filter: brightness(1.08); }
.j-comment-form .j-submit:active { transform: scale(.97); }

.j-comment-form .comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--j-ink-3);
    margin-bottom: 18px;
}

.j-comment-form .comment-form-cookies-consent input { width: auto; }

/* ---------- prev/next: one neighbour only ---------- */
/* .j-adjacent fakes its divider with a 1px gap over a hairline-coloured
   background. With a single child the empty half of the grid showed that
   background as a solid ghost block, so let the one link span the full row. */
.j-adj:only-child { grid-column: 1 / -1; }

/* ---------- related: heading + link to the full index ---------- */
.j-related-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 40px;
}

.j-related-head h2 { margin: 0; }

.j-related-head .j-more {
    font-size: 12px;
    color: var(--j-ink-3);
    text-decoration: none;
    transition: color .3s;
}

.j-related-head .j-more:hover { color: var(--j-ink); }
.j-related-head .j-more:hover svg { transform: translateX(3px); }
