/* ═══════════════════════════════════════════════════════════════
   JS Agency journal — blog listing + article detail
   Extends the site's own world: dark canvas, foil-bevel cards (D1),
   3D gold pictograms and the three Flexi mascots (D16). Service colours
   arrive only through `--svc-rgb` (set by [data-svc] in
   d16-service-mascots.css) as glows and washes beside a mascot or a
   service pictogram; text, buttons and borders stay gold on dark.
   Load AFTER head-common (needs d16 tokens and .svc-mascot/.svc-medallion).
   ═══════════════════════════════════════════════════════════════ */

.journal-page {
    --j-gold: #c9a255;
    --j-gold-hi: #e0bc78;
    --j-gold-pale: #f3dfaa;
    --j-ink: #f5f4f0;
    --j-text: #d6d4ce;
    --j-muted: #bdb8ad;
    --j-line: rgba(255, 255, 255, 0.08);
    --j-line-gold: rgba(201, 162, 85, 0.32);
    --j-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --j-tint: rgb(var(--svc-rgb) / min(1, calc(0.09 * var(--svc-tint))));
    --j-tint-soft: rgb(var(--svc-rgb) / min(1, calc(0.045 * var(--svc-tint))));
    --j-foil: linear-gradient(155deg, #1e1d1a 0%, #151514 55%, #0f0e0b 100%);
    --j-bevel: inset 0 1.5px 0 rgba(255, 255, 255, 0.08), inset 0 -1.5px 0 rgba(0, 0, 0, 0.5);
    color: var(--j-text);
    font-weight: 400;
}

.journal-page [data-preloader] { display: none !important; }
.journal-page :focus-visible { outline: 2px solid var(--j-gold-hi); outline-offset: 5px; }
.journal-page .journal-main:focus { outline: none; }
.journal-page svg { flex: none; }

.journal-skip { position: fixed; left: 20px; top: -90px; z-index: 99999; padding: 14px 22px; background: var(--j-gold-hi); color: #17130c; border-radius: 8px; }
.journal-skip:focus { top: 12px; }

.journal-wrap { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.journal-main { position: relative; padding-top: 195px; overflow-x: clip; }

/* Page atmosphere: one wash of the current theme behind the opening viewport. */
.journal-main::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 1100px;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 46% 38% at 82% 18%, rgb(var(--svc-rgb) / min(1, calc(0.07 * var(--svc-tint)))), transparent 72%),
        radial-gradient(ellipse 60% 44% at 10% 4%, rgba(201, 162, 85, 0.07), transparent 70%);
}

/* ─── Shared atoms ─────────────────────────────────────────────── */
.journal-arrow {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--j-line-gold);
    transition: transform 0.45s var(--j-ease), background 0.3s, border-color 0.3s, color 0.3s;
}
.journal-arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.journal-chip { display: inline-flex; align-items: center; gap: 8px; color: var(--j-gold-hi); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.01em; }
.journal-chip img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 8px rgb(var(--svc-rgb) / min(1, calc(0.22 * var(--svc-tint)))));
}

.journal-emblem {
    --size: 64px;
    position: relative;
    display: block;
    flex: 0 0 auto;
    width: var(--size);
    height: var(--size);
    padding: 3px;
    border-radius: 50%;
    background: conic-gradient(from 210deg, rgba(243, 223, 170, 0.95), rgba(201, 162, 85, 0.45) 30%, rgba(120, 90, 40, 0.6) 52%, rgba(201, 162, 85, 0.45) 74%, rgba(243, 223, 170, 0.95));
    box-shadow: 0 16px 30px -16px rgba(0, 0, 0, 0.9), 0 8px 30px -14px rgba(201, 162, 85, 0.45);
}
.journal-emblem img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 14%;
    border-radius: 50%;
    object-fit: contain;
    background: radial-gradient(circle at 50% 38%, rgba(201, 162, 85, 0.22), transparent 66%), radial-gradient(circle, #1a1712, #0a0907);
}

.journal-button {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    justify-content: center;
    min-height: 52px;
    padding: 8px 10px 8px 26px;
    border: 1px solid var(--j-gold);
    border-radius: 999px;
    color: #18140c;
    background: linear-gradient(180deg, #e2c07c, var(--j-gold));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 14px 30px -16px rgba(201, 162, 85, 0.75);
    font-weight: 600;
    font-size: 0.96rem;
    transition: transform 0.45s var(--j-ease), box-shadow 0.45s var(--j-ease);
}
.journal-button:only-child, .journal-empty .journal-button, .journal-error .journal-button { padding-right: 26px; }
.journal-button::after {
    content: '';
    position: absolute;
    inset: -20%;
    z-index: -1;
    background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.55) 50%, transparent 62%);
    transform: translateX(-70%);
    transition: transform 0.9s var(--j-ease);
}
.journal-button .journal-arrow { border-color: rgba(24, 20, 12, 0.25); background: rgba(24, 20, 12, 0.08); }
.journal-button:hover { color: #18140c; transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 20px 36px -16px rgba(201, 162, 85, 0.85); }
.journal-button:hover::after { transform: translateX(70%); }
.journal-button:hover .journal-arrow { transform: translateX(3px); background: #18140c; color: var(--j-gold-pale); }

/* ═══ LISTING HERO ═══════════════════════════════════════════════ */
.journal-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 40px;
    padding-block: 10px 0;
}
.journal-hero__copy { position: relative; z-index: 2; max-width: 720px; }
.journal-hero h1 {
    margin: 0 0 22px;
    color: var(--j-ink);
    font-family: 'Lora', serif;
    font-weight: 500;
    font-size: clamp(2.6rem, 5.6vw, 4.6rem);
    line-height: 1.04;
    letter-spacing: -0.035em;
    text-wrap: balance;
}
.journal-lead { color: #cfcdc7; font-size: 1.2rem; line-height: 1.7; max-width: 62ch; margin: 0; }

.journal-back {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    padding: 4px 0;
    color: var(--j-gold-hi);
    font-size: 0.92rem;
    font-weight: 600;
}
.journal-back:hover { color: var(--j-gold-pale); }
.journal-back:hover .journal-arrow { transform: translateX(-3px); border-color: var(--j-gold); }

/* Gold JS monogram for "all topics" and "Zo života JS Agency". */
.journal-hero__emblem {
    position: relative;
    z-index: 1;
    width: clamp(170px, 19vw, 250px);
    aspect-ratio: 1;
    margin-right: clamp(20px, 6vw, 90px);
}
.journal-hero__emblem::before {
    content: '';
    position: absolute;
    inset: -18%;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(201, 162, 85, 0.24), rgba(201, 162, 85, 0.06) 60%, transparent);
    z-index: -1;
}
.journal-hero__emblem img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 22px 30px rgba(0, 0, 0, 0.7)); }

/* Floating 3D pictograms — the homepage hero's vault, scaled to an editorial header. */
.journal-hero__float { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.journal-float { position: absolute; display: block; width: var(--s, 76px); opacity: var(--o, 0.85); }
.journal-float img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 14px 16px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 18px rgb(var(--svc-rgb) / min(1, calc(0.14 * var(--svc-tint)))));
}
.journal-float--1 { --s: 74px; right: 33%; top: 0; }
.journal-float--2 { --s: 64px; right: 1%; top: -8%; }
.journal-float--3 { --s: 82px; right: 29%; bottom: -4%; }
.journal-float--4 { --s: 58px; right: -2%; bottom: 14%; }
.journal-float--5 { --s: 44px; right: 35%; bottom: 40%; --o: 0.5; filter: blur(1.2px); }
.journal-float--6 { --s: 52px; right: 22%; top: -12%; --o: 0.6; filter: blur(0.8px); }
.journal-hero:not(.has-emblem) .journal-float--1 { right: 22%; top: 0; --s: 88px; }
.journal-hero:not(.has-emblem) .journal-float--2 { right: 3%; top: 16%; --s: 104px; }
.journal-hero:not(.has-emblem) .journal-float--3 { right: 34%; bottom: 0; --s: 66px; --o: 0.65; filter: blur(0.8px); }

/* ═══ TOPIC CARDS (service filters) ═══════════════════════════════ */
.journal-list { position: relative; z-index: 1; padding-block: 0 64px; }
.journal-main > .journal-hero, .journal-main > .journal-cta { z-index: 1; }
/* Service listing: the subpages' aura field behind hero, topics and articles. */
.journal-aura--list { --aura-x: 40%; --aura-y: 0%; inset: 0; }
.journal-topics ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }

/* Padding % resolves against the column width, so the room left above
   each card for its mascot scales with the card itself. */
.journal-topic { padding-top: 46%; }
.journal-topic__stage { position: relative; height: 100%; container-type: inline-size; isolation: isolate; --lift: 0px; --tile: clamp(58px, 21cqw, 80px); }

.journal-topic__card {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
    min-height: 196px;
    padding: max(54px, calc(14cqw + 8px)) 26px 20px;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 26px;
    color: var(--j-text);
    background:
        radial-gradient(110% 70% at var(--wash-x, 30%) 0%, rgb(var(--svc-rgb) / min(1, calc(0.085 * var(--svc-tint)))), transparent 62%),
        var(--j-foil);
    box-shadow: var(--j-bevel), 0 16px 34px -16px rgba(0, 0, 0, 0.8);
    transform: translate3d(0, var(--lift), 0);
    transition: transform 0.6s var(--j-ease), box-shadow 0.7s var(--j-ease), border-color 0.5s var(--j-ease), opacity 0.5s var(--j-ease);
}
.journal-topic__card::after {
    content: '';
    position: absolute;
    inset: -20%;
    z-index: -1;
    background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.05) 46%, rgba(201, 162, 85, 0.42) 50%, rgba(255, 255, 255, 0.05) 54%, transparent 62%);
    transform: translateX(-60%);
    transition: transform 0.85s var(--j-ease);
    mix-blend-mode: screen;
    pointer-events: none;
}
.journal-topic__label { color: var(--j-ink); font-family: 'Lora', serif; font-size: clamp(1.35rem, 2.1vw, 1.7rem); font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; transition: color 0.4s; }
.journal-topic__hook { color: #c8c4ba; font-size: 0.95rem; line-height: 1.55; }
.journal-topic__go {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--j-line);
    color: var(--j-gold-hi);
    font-size: 0.86rem;
    font-weight: 600;
}
.journal-topic__seal { display: none; }

.journal-topic__icon.hero-card-icon {
    z-index: 4;
    top: 18px;
    right: 18px;
    width: var(--tile);
    height: var(--tile);
    border-radius: 16px;
    transform: translate3d(0, var(--lift), 0);
}
.journal-topic__icon.hero-card-icon img { width: 84%; height: 84%; }

.journal-topic:hover .journal-topic__stage,
.journal-topic:focus-within .journal-topic__stage { --lift: -5px; }
.journal-topic__card:hover,
.journal-topic__card:focus-visible {
    color: var(--j-text);
    border-color: rgba(201, 162, 85, 0.45);
    box-shadow:
        inset 0 1.5px 0 rgba(255, 255, 255, 0.12),
        inset 0 -1.5px 0 rgba(0, 0, 0, 0.55),
        0 24px 46px -18px rgba(0, 0, 0, 0.85),
        0 -18px 46px -26px rgb(var(--svc-rgb) / min(1, calc(0.55 * var(--svc-tint))));
}
.journal-topic__card:hover::after,
.journal-topic__card:focus-visible::after { transform: translateX(60%); }
.journal-topic__card:hover .journal-topic__label { color: var(--j-gold-pale); }
.journal-topic__card:hover .journal-arrow { transform: translateX(3px); background: var(--j-gold); border-color: var(--j-gold); color: #18140c; }
.journal-topic:hover .journal-topic__icon.hero-card-icon,
.journal-topic:focus-within .journal-topic__icon.hero-card-icon {
    background: linear-gradient(155deg, rgba(240, 211, 138, 0.5), rgba(201, 162, 85, 0.16));
    border-color: rgba(240, 211, 138, 0.72);
    transform: translate3d(0, calc(var(--lift) - 3px), 0) scale(1.04);
}

/* Current topic: gold edge, awake mascot; the other two step back. */
.journal-topic__card[aria-current] { border-color: rgba(224, 188, 120, 0.7); box-shadow: var(--j-bevel), 0 0 0 1px rgba(224, 188, 120, 0.25), 0 22px 46px -20px rgb(var(--svc-rgb) / min(1, calc(0.5 * var(--svc-tint)))); }
.journal-topic__card[aria-current] .journal-arrow { background: var(--j-gold); border-color: var(--j-gold); color: #18140c; }
.journal-topics:has([aria-current]) .journal-topic:not(:has([aria-current])) .journal-topic__card { opacity: 0.66; }
.journal-topics:has([aria-current]) .journal-topic:not(:has([aria-current])) .journal-pose img { filter: saturate(0.55) brightness(0.72) drop-shadow(0 14px 18px rgba(0, 0, 0, 0.55)); transition: filter 0.5s; }
.journal-topics:has([aria-current]) .journal-topic:not(:has([aria-current])):hover .journal-topic__card { opacity: 1; }
.journal-topics:has([aria-current]) .journal-topic:not(:has([aria-current])):hover .journal-pose img { filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 22px rgb(var(--svc-rgb) / min(1, calc(0.16 * var(--svc-tint))))); }

.journal-topic[data-svc="uctovnictvo"] { --wash-x: 22%; }
.journal-topic[data-svc="marketing"] { --wash-x: 56%; }
.journal-topic[data-svc="web"] { --wash-x: 24%; }

/* ─── Mascot poses on a surface edge ───────────────────────────────
   Geometry from d16: lean = flat cut at the image bottom (hidden behind
   the surface, sinks 8.5% of its width); lie = ledge at 72.1% of the
   width from the top (rests 3.6% into the surface); stand = toes 33% of
   the width below the edge, legs hanging over the surface face. */
.journal-pose { width: var(--mw); }
.journal-pose[data-pose="lean"] { bottom: calc(100% - var(--mw) * 0.085); z-index: 2; }
.journal-pose[data-pose="lie"] { top: calc(var(--mw) * -0.685); z-index: 5; }
.journal-pose[data-pose="stand"] { bottom: calc(100% - var(--mw) * 0.33); z-index: 5; }

.journal-topic__pose[data-pose] { transform: translate3d(0, var(--lift), 0); }
.journal-topic__pose[data-pose="lean"] { --mw: 58cqw; left: 7cqw; }
.journal-topic__pose[data-pose="lie"] { --mw: min(62cqw, calc(100cqw - var(--tile) - 52px)); right: calc(18px + var(--tile) + 10px); }
.journal-topic__pose[data-pose="stand"] { --mw: 40cqw; right: calc(18px + var(--tile) + 8px - var(--mw) * 0.02); }
.journal-topic:hover .journal-topic__pose[data-pose="lean"] { transform: translate3d(0, var(--lift), 0) rotate(-2.2deg); }
.journal-topic:hover .journal-topic__pose[data-pose="lie"] { transform: translate3d(-4px, var(--lift), 0); }
.journal-topic:hover .journal-topic__pose[data-pose="stand"] { transform: translate3d(0, calc(var(--lift) - 2px), 0) rotate(1.6deg); }

/* ─── Secondary topics + search ─────────────────────────────────── */
.journal-tools { display: flex; gap: 28px; align-items: flex-end; justify-content: space-between; margin: 34px 0 46px; }
.journal-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.journal-filters a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 8px 18px 8px 12px;
    border: 1px solid #39362f;
    border-radius: 999px;
    background: rgba(18, 17, 15, 0.7);
    color: var(--j-text);
    font-size: 0.87rem;
    font-weight: 600;
    transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.45s var(--j-ease);
}
.journal-filters svg { width: 22px; height: 22px; padding: 3px; fill: none; stroke: var(--j-gold-hi); stroke-width: 1.6; }
.journal-filters img { width: 24px; height: 24px; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6)); }
.journal-filters a:hover { border-color: #b29457; background: #1d1a14; color: var(--j-ink); transform: translateY(-2px); }
.journal-filters a[aria-current] { background: linear-gradient(180deg, #e2c07c, var(--j-gold)); color: #16130c; border-color: var(--j-gold); box-shadow: 0 10px 24px -14px rgba(201, 162, 85, 0.8); }
.journal-filters a[aria-current] svg { stroke: #16130c; }

.journal-search { flex: 0 0 auto; }
.journal-search label { display: block; font-size: 0.82rem; margin-bottom: 8px; color: #c9c6bf; }
.journal-search > div {
    position: relative;
    display: flex;
    align-items: center;
    width: 300px;
    padding: 4px;
    border: 1px solid #4a4438;
    border-radius: 999px;
    background: #121210;
    transition: border-color 0.3s, box-shadow 0.4s;
}
.journal-search > div:focus-within { border-color: var(--j-gold); box-shadow: 0 0 0 4px rgba(201, 162, 85, 0.14); }
.journal-search__glass { width: 18px; height: 18px; margin-left: 12px; fill: none; stroke: #a5a198; stroke-width: 1.8; }
.journal-search input { min-width: 0; flex: 1; border: 0; padding: 9px 10px; background: transparent; color: var(--j-ink); font: inherit; font-size: 0.94rem; }
.journal-search input:focus-visible { outline: none; }
.journal-search input::placeholder { color: #a5a198; }
.journal-search input::-webkit-search-cancel-button { filter: sepia(1) saturate(3) hue-rotate(5deg); }
.journal-search button { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: var(--j-gold); color: #18140c; cursor: pointer; }
.journal-search button .journal-arrow { border: 0; width: 42px; height: 42px; }
.journal-search button:hover { background: var(--j-gold-hi); }
.journal-search button:hover .journal-arrow { transform: translateX(2px); }

.journal-results { color: #c7c3b9; margin: -18px 0 30px; }
.journal-results strong { color: var(--j-gold-hi); }
.journal-results a { color: var(--j-gold-hi); text-decoration: underline; text-underline-offset: 4px; margin-left: 12px; }

/* ═══ ARTICLE CARDS ═══════════════════════════════════════════════ */
.journal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 26px; }

.journal-card {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid var(--j-line);
    border-radius: 22px;
    background: var(--j-foil);
    box-shadow: var(--j-bevel), 0 18px 36px -20px rgba(0, 0, 0, 0.85);
    transition: border-color 0.5s var(--j-ease), box-shadow 0.6s var(--j-ease);
}
/* Pointer spotlight in the article's service tint (position fed by blog.js). */
.journal-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgb(var(--svc-rgb) / min(1, calc(0.09 * var(--svc-tint)))), transparent 60%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}
.journal-card:hover { border-color: rgba(201, 162, 85, 0.4); box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.12), inset 0 -1.5px 0 rgba(0, 0, 0, 0.55), 0 28px 50px -22px rgba(0, 0, 0, 0.9), 0 12px 34px -18px rgb(var(--svc-rgb) / min(1, calc(0.32 * var(--svc-tint)))); }
.journal-card:hover::before { opacity: 1; }

.journal-card__image {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 110%, rgb(var(--svc-rgb) / min(1, calc(0.12 * var(--svc-tint)))), #151513 72%);
}
.journal-card__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.14) 50%, transparent 60%), linear-gradient(180deg, transparent 62%, rgba(15, 14, 11, 0.55));
    background-size: 250% 100%, 100% 100%;
    background-position: 130% 0, 0 0;
    transition: background-position 1s var(--j-ease);
    pointer-events: none;
}
.journal-card:hover .journal-card__image::after { background-position: -30% 0, 0 0; }
.journal-card__image > img { width: 100%; height: 100%; object-fit: contain; transition: transform 1.1s var(--j-ease); }
.journal-card:hover .journal-card__image > img { transform: scale(1.05); }

.journal-card__fallback { display: grid; place-items: center; width: 100%; height: 100%; }
.journal-card__fallback img {
    width: auto;
    height: 52%;
    object-fit: contain;
    filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 26px rgb(var(--svc-rgb) / min(1, calc(0.16 * var(--svc-tint)))));
    transition: transform 0.9s var(--j-ease);
}
.journal-card[data-svc="general"] .journal-card__fallback img { height: 62%; }
.journal-card:hover .journal-card__fallback img { transform: translateY(-6px) rotate(-4deg) scale(1.04); }

.journal-card__body { position: relative; z-index: 1; display: flex; flex-direction: column; flex: 1; padding: 20px 24px 18px; }
.journal-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.78rem; color: var(--j-muted); }
.journal-card h2 { margin: 14px 0 10px; font-family: 'Lora', serif; font-weight: 500; font-size: 1.42rem; line-height: 1.3; letter-spacing: -0.015em; overflow-wrap: anywhere; text-wrap: pretty; }
.journal-card h2 a {
    color: var(--j-ink);
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
    transition: background-size 0.6s var(--j-ease), color 0.3s;
}
/* The title link covers the whole card; the read link stays on top of it. */
.journal-card h2 a::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.journal-card:hover h2 a { color: var(--j-gold-pale); background-size: 100% 1px; }
.journal-card p { margin: 0 0 18px; color: #bebbb3; font-size: 0.97rem; line-height: 1.65; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.journal-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--j-line); }
.journal-card__time { color: var(--j-muted); font-size: 0.8rem; }
.journal-card__read { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 12px; color: var(--j-gold-hi); font-size: 0.88rem; font-weight: 600; }
.journal-card__read:hover, .journal-card:hover .journal-card__read { color: var(--j-gold-pale); }
.journal-card:hover .journal-card__read .journal-arrow { transform: translateX(3px); background: var(--j-gold); border-color: var(--j-gold); color: #18140c; }

/* Lead story: the newest article on the first page runs across the grid,
   picture left and a larger headline right. */
.journal-grid--lead > .journal-card:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.journal-grid--lead > .journal-card:first-child .journal-card__image { aspect-ratio: auto; min-height: 380px; height: 100%; }
.journal-grid--lead > .journal-card:first-child .journal-card__body { justify-content: center; padding: clamp(28px, 3.4vw, 46px); }
.journal-grid--lead > .journal-card:first-child h2 { font-size: clamp(1.8rem, 2.7vw, 2.45rem); line-height: 1.18; margin: 20px 0 16px; }
.journal-grid--lead > .journal-card:first-child p { font-size: 1.05rem; -webkit-line-clamp: 4; margin-bottom: 26px; }
.journal-grid--lead > .journal-card:first-child .journal-card__foot { margin-top: 0; }
.journal-grid--lead > .journal-card:first-child .journal-card__fallback img { height: 46%; }

/* ─── Empty / error / pagination ───────────────────────────────── */
.journal-empty { max-width: 730px; margin-inline: auto; padding: 70px 0; text-align: center; }
.journal-empty__seal { --size: 96px; margin: 0 auto 26px; }
.journal-empty h2 { font-family: 'Lora', serif; color: var(--j-ink); font-size: 2rem; font-weight: 500; margin-bottom: 18px; line-height: 1.3; }
.journal-empty p { color: #c7c3ba; margin-bottom: 28px; }
.journal-error { padding-block: 60px 100px; }
.journal-error h1 { color: var(--j-ink); font-family: 'Lora', serif; font-weight: 500; font-size: 2.5rem; letter-spacing: -0.03em; line-height: 1.2; margin-bottom: 24px; text-wrap: balance; }

.journal-pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 26px; padding-top: 56px; font-size: 0.93rem; }
.journal-pagination a { display: inline-flex; align-items: center; gap: 12px; color: var(--j-gold-hi); padding: 6px 0; font-weight: 600; }
.journal-pagination a:hover { color: var(--j-gold-pale); }
.journal-pagination a[rel="next"]:hover .journal-arrow { transform: translateX(3px); border-color: var(--j-gold); }
.journal-pagination a[rel="prev"]:hover .journal-arrow { transform: translateX(-3px); border-color: var(--j-gold); }
.journal-pagination span { color: var(--j-muted); }
.journal-pagination strong { color: var(--j-ink); }

/* ═══ ARTICLE ════════════════════════════════════════════════════ */
.journal-progress { position: fixed; inset: 0 0 auto; z-index: 10050; height: 3px; pointer-events: none; }
.journal-progress span {
    display: block;
    height: 100%;
    transform: scaleX(var(--p, 0));
    transform-origin: 0 50%;
    background: linear-gradient(90deg, #8e6e33, var(--j-gold) 55%, var(--j-gold-pale));
    box-shadow: 0 0 12px rgba(224, 188, 120, 0.55);
}

.journal-breadcrumb { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; color: #858074; margin-bottom: 26px; font-size: 0.9rem; }
.journal-breadcrumb a { color: var(--j-gold-hi); padding: 5px 0; }
.journal-breadcrumb a:hover { color: var(--j-gold-pale); }
.journal-breadcrumb__topic .journal-chip { font-size: 0.9rem; }
.journal-breadcrumb__topic { display: inline-flex; padding: 4px 14px 4px 6px !important; border: 1px solid var(--j-line-gold); border-radius: 999px; background: rgba(201, 162, 85, 0.06); transition: background 0.3s, border-color 0.3s; }
.journal-breadcrumb__topic:hover { background: rgba(201, 162, 85, 0.14); border-color: var(--j-gold); }

/* Service glow behind the whole article — the same aura field as the
   service subpages (d16 .svc-aura), in the article's own service colour. */
.journal-article { position: relative; isolation: isolate; }
.journal-article > :not(.journal-aura) { position: relative; z-index: 1; }
.journal-aura { --aura-x: 46%; --aura-y: -2%; inset: -120px 0 0; }

/* One reading column: header, contents and prose share the same measure,
   only the cover runs wide. */
.journal-page { --j-measure: 760px; }
.journal-article__header { position: relative; padding-block: 20px 46px; }
.journal-article__header h1 {
    margin: 0 0 26px;
    color: var(--j-ink);
    font-family: 'Lora', serif;
    font-weight: 500;
    font-size: clamp(2.3rem, 4.6vw, 3.9rem);
    line-height: 1.1;
    letter-spacing: -0.035em;
    overflow-wrap: anywhere;
    text-wrap: balance;
}
.journal-article__header .journal-lead { max-width: none; }
.journal-byline { display: flex; align-items: center; gap: 16px 18px; flex-wrap: wrap; margin-top: 30px; font-size: 0.86rem; line-height: 1.6; color: var(--j-muted); }
.journal-byline__seal.svc-medallion, .journal-byline__seal.journal-emblem { --size: 58px; }
.journal-byline strong { color: #f0e7d3; font-weight: 600; display: block; }
.journal-byline > span > span { display: block; }
.journal-byline__time { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid var(--j-line); border-radius: 999px; background: rgba(255, 255, 255, 0.02); }
.journal-byline__time svg { width: 16px; height: 16px; fill: none; stroke: var(--j-gold-hi); stroke-width: 1.7; stroke-linecap: round; }
.journal-byline .journal-modified { color: #9f998d; }

/* Cover with the service mascot resting on its top edge. */
.journal-cover { margin: 0 auto 64px; }
.journal-cover__stage { position: relative; isolation: isolate; }
.journal-cover__frame {
    position: relative;
    z-index: 3;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    background: #121210;
    box-shadow: var(--j-bevel), 0 40px 80px -40px rgba(0, 0, 0, 0.9), 0 -30px 70px -50px rgb(var(--svc-rgb) / min(1, calc(0.55 * var(--svc-tint))));
}
.journal-cover__frame > img { display: block; width: 100%; height: auto; max-height: 690px; object-fit: contain; }
.journal-cover__pose[data-pose="lean"] { --mw: clamp(150px, 17vw, 230px); right: 6%; z-index: 1; }
.journal-cover__pose[data-pose="lie"] { --mw: clamp(160px, 18vw, 250px); right: 5%; z-index: 4; }
.journal-cover__pose[data-pose="stand"] { --mw: clamp(110px, 11vw, 160px); right: 7%; z-index: 4; }
.journal-cover figcaption, .journal-prose figcaption { color: #aaa59a; font-size: 0.87rem; line-height: 1.6; margin-top: 12px; }

@media (min-width: 1100px) {
    /* The mascot rises beside the lead, so the lead and byline leave it room. */
    /* Title and lead run the full width; the byline row below them is as tall
       as the mascot rising above the cover, and stays clear of it — a safe zone. */
    .journal-article__header.has-pose { --pose-h: 172px; padding-bottom: 30px; }
    .journal-article__header.has-pose[data-pose="lean"] { --pose-h: 158px; }
    .journal-article__header.has-pose[data-pose="stand"] { --pose-h: 160px; }
    .journal-article__header.has-pose .journal-byline { max-width: calc(100% - 360px); margin-top: max(30px, calc(var(--pose-h) - 58px - 30px + 22px)); }
}

.journal-reading { max-width: var(--j-measure); }

/* Contents: an opening card listing the sections; while reading, the
   floating dock (built by blog.js) takes over. */
.journal-toc { margin-bottom: 44px; font-size: 0.92rem; line-height: 1.5; }
.journal-toc details { padding: 20px 24px 16px; border: 1px solid var(--j-line); border-radius: 20px; background: radial-gradient(80% 120% at 0% 0%, rgba(201, 162, 85, 0.07), transparent 60%), rgba(20, 19, 17, 0.72); box-shadow: var(--j-bevel); }
.journal-toc summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 30px; color: #f0e7d3; cursor: pointer; font-weight: 600; list-style: none; }
.journal-toc summary::-webkit-details-marker { display: none; }
.journal-toc summary svg { width: 18px; height: 18px; fill: none; stroke: var(--j-gold-hi); stroke-width: 1.8; transition: transform 0.4s var(--j-ease); }
.journal-toc details:not([open]) summary svg { transform: rotate(-90deg); }
.journal-toc nav { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--j-line); }
.journal-toc ol { margin: 0; padding: 0; list-style: none; columns: 2 280px; column-gap: 36px; }
.journal-toc li { break-inside: avoid; }
.journal-toc a { position: relative; display: block; padding: 7px 0 7px 20px; color: var(--j-muted); transition: color 0.3s, transform 0.45s var(--j-ease); }
.journal-toc a::before { content: ''; position: absolute; left: 0; top: calc(7px + 0.75em); width: 14px; height: 1.5px; border-radius: 2px; background: var(--j-gold); opacity: 0.55; transform: scaleX(0.72); transform-origin: left; transition: transform 0.45s var(--j-ease), opacity 0.3s; }
.journal-toc a:hover { color: var(--j-gold-hi); }
.journal-toc a:hover::before { transform: scaleX(1); opacity: 1; }
.journal-toc a[aria-current] { color: var(--j-ink); }
.journal-toc a[aria-current]::before { opacity: 1; }
.journal-toc__sub { padding-left: 14px; font-size: 0.87rem; }

/* Floating reading dock: current section + progress ring, opens the section list. */
.journal-dock {
    position: fixed;
    left: 50%;
    bottom: 22px;
    z-index: 1040;
    width: min(540px, calc(100% - 32px));
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 130%);
    transition: transform 0.6s var(--j-ease), opacity 0.35s, visibility 0s 0.6s;
}
.journal-dock.is-shown { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.journal-dock__bar {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 60px;
    padding: 8px 18px 8px 8px;
    border: 1px solid rgba(201, 162, 85, 0.38);
    border-radius: 999px;
    background: rgba(17, 16, 14, 0.88);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    backdrop-filter: blur(16px) saturate(1.2);
    box-shadow: var(--j-bevel), 0 22px 44px -18px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.4), 0 10px 40px -20px rgb(var(--svc-rgb) / min(1, calc(0.5 * var(--svc-tint))));
    color: var(--j-ink);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.3s;
}
.journal-dock__bar:hover { border-color: var(--j-gold); }
.journal-dock__ring { position: relative; flex: none; width: 44px; height: 44px; }
.journal-dock__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); fill: none; stroke-width: 2.4; }
.journal-dock__ring circle:first-child { stroke: rgba(255, 255, 255, 0.1); }
.journal-dock__ring circle:last-child { stroke: var(--j-gold-hi); stroke-linecap: round; stroke-dasharray: 113.1; stroke-dashoffset: calc(113.1 * (1 - var(--p, 0))); filter: drop-shadow(0 0 4px rgba(224, 188, 120, 0.6)); }
.journal-dock__ring img { position: absolute; inset: 9px; width: 26px; height: 26px; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6)); }
.journal-dock__text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.journal-dock__label { color: var(--j-muted); font-size: 0.72rem; font-weight: 600; }
.journal-dock__title { overflow: hidden; color: var(--j-ink); font-size: 0.92rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.journal-dock__chev { width: 20px; height: 20px; fill: none; stroke: var(--j-gold-hi); stroke-width: 1.8; transform: rotate(180deg); transition: transform 0.45s var(--j-ease); }
.journal-dock.is-open .journal-dock__chev { transform: rotate(0deg); }
.journal-dock__panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% + 10px);
    max-height: min(52vh, 420px);
    overflow-y: auto;
    padding: 14px 10px;
    border: 1px solid rgba(201, 162, 85, 0.3);
    border-radius: 22px;
    background: rgba(17, 16, 14, 0.94);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: var(--j-bevel), 0 30px 60px -24px rgba(0, 0, 0, 0.95);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.98);
    transform-origin: 50% 100%;
    transition: transform 0.45s var(--j-ease), opacity 0.25s, visibility 0s 0.45s;
}
.journal-dock.is-open .journal-dock__panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.journal-dock__panel ol { margin: 0; padding: 0; list-style: none; }
.journal-dock__panel a { display: block; padding: 10px 14px; border-radius: 12px; color: var(--j-muted); font-size: 0.92rem; line-height: 1.45; transition: background 0.25s, color 0.25s; }
.journal-dock__panel .journal-toc__sub a { padding-left: 28px; font-size: 0.86rem; }
.journal-dock__panel a:hover { background: rgba(201, 162, 85, 0.1); color: var(--j-gold-pale); }
.journal-dock__panel a[aria-current] { background: rgba(201, 162, 85, 0.14); color: var(--j-ink); font-weight: 600; }

/* ─── Prose ─────────────────────────────────────────────────────── */
.journal-prose { min-width: 0; font-size: 1.12rem; line-height: 1.85; overflow-wrap: anywhere; }
.journal-prose p { margin: 0 0 1.4em; line-height: inherit; }
.journal-prose h2 { position: relative; color: var(--j-ink); font-family: 'Lora', serif; font-size: 2rem; font-weight: 500; line-height: 1.3; letter-spacing: -0.02em; margin: 2.3em 0 0.8em; scroll-margin-top: 150px; text-wrap: balance; }
.journal-body h2::before { content: ''; display: block; width: 44px; height: 2px; margin-bottom: 18px; border-radius: 2px; background: linear-gradient(90deg, var(--j-gold), transparent); }
.journal-prose h3 { color: #f0ede5; font-size: 1.4rem; font-weight: 600; line-height: 1.4; margin: 1.9em 0 0.7em; scroll-margin-top: 150px; }
.journal-body > :first-child { margin-top: 0; }
.journal-body a, .journal-summary a, .journal-faq a { color: var(--j-gold-hi); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color 0.3s, text-decoration-thickness 0.3s, text-underline-offset 0.3s; }
.journal-body a:hover, .journal-summary a:hover, .journal-faq a:hover { color: var(--j-gold-pale); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.journal-prose ul, .journal-prose ol { padding-left: 1.5em; margin-bottom: 1.6em; }
.journal-prose li { margin-block: 0.45em; padding-left: 0.3em; }
.journal-prose li > p { margin: 0; }
.journal-prose li::marker { color: var(--j-gold-hi); }
.journal-prose ol > li::marker { font-family: 'Lora', serif; font-weight: 600; }
.journal-prose strong { font-weight: 700; color: var(--j-ink); }
.journal-prose mark {
    padding: 0.03em 0.18em;
    border-radius: 3px;
    color: #221b0f;
    background: linear-gradient(100deg, #f0d391, #e0bc78) 0 0 / 100% 100% no-repeat;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    transition: background-size 1s var(--j-ease) 0.1s, color 0.6s;
}
.journal-prose blockquote {
    position: relative;
    margin: 40px 0;
    padding: 28px 30px 28px 74px;
    border-radius: 20px;
    background: radial-gradient(90% 120% at 0% 0%, rgba(201, 162, 85, 0.1), transparent 60%), rgba(255, 255, 255, 0.02);
    border: 1px solid var(--j-line);
    color: #ece3cf;
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 1.22rem;
    line-height: 1.7;
}
.journal-prose blockquote::before { content: '\201C'; position: absolute; left: 22px; top: 6px; color: var(--j-gold); font-size: 4.6rem; line-height: 1; font-style: normal; }
.journal-prose blockquote p:last-child { margin-bottom: 0; }
.journal-prose figure { margin: 40px 0; }
.journal-prose img { display: block; max-width: 100%; height: auto; border-radius: 16px; box-shadow: 0 30px 60px -36px rgba(0, 0, 0, 0.9); }

.journal-summary {
    position: relative;
    margin-bottom: 46px;
    padding: 28px 30px 26px;
    border: 1px solid rgba(201, 162, 85, 0.24);
    border-radius: 22px;
    background: radial-gradient(90% 90% at 100% 0%, var(--j-tint), transparent 60%), var(--j-foil);
    box-shadow: var(--j-bevel), 0 24px 44px -28px rgba(0, 0, 0, 0.9);
}
.journal-summary__icon { position: absolute; top: -26px; right: 22px; width: 76px !important; height: 76px; object-fit: contain; border-radius: 0 !important; box-shadow: none !important; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 18px rgb(var(--svc-rgb) / min(1, calc(0.18 * var(--svc-tint))))); }
.journal-summary h2 { font: 600 1.12rem/1.4 'Instrument Sans', sans-serif; margin: 0 0 14px; padding-right: 80px; color: var(--j-gold-hi); letter-spacing: 0; }
.journal-summary p { margin-bottom: 0; font-size: 1.03rem; }

.journal-faq { margin-top: 60px; }
.journal-faq > h2, .journal-sources > h2 { margin-top: 0; }
.journal-faq details { border-bottom: 1px solid #36332b; }
.journal-faq details:first-of-type { border-top: 1px solid #36332b; }
.journal-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; cursor: pointer; color: #eee8db; font-weight: 600; line-height: 1.55; list-style: none; transition: color 0.3s; }
.journal-faq summary::-webkit-details-marker { display: none; }
.journal-faq summary:hover { color: var(--j-gold-pale); }
.journal-faq__toggle { position: relative; flex: none; width: 34px; height: 34px; border: 1px solid var(--j-line-gold); border-radius: 50%; transition: background 0.3s, border-color 0.3s, transform 0.5s var(--j-ease); }
.journal-faq__toggle::before, .journal-faq__toggle::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.6px; margin: -0.8px 0 0 -6px; border-radius: 2px; background: var(--j-gold-hi); transition: transform 0.5s var(--j-ease); }
.journal-faq__toggle::after { transform: rotate(90deg); }
.journal-faq details[open] .journal-faq__toggle { background: var(--j-gold); border-color: var(--j-gold); transform: rotate(180deg); }
.journal-faq details[open] .journal-faq__toggle::before, .journal-faq details[open] .journal-faq__toggle::after { background: #18140c; }
.journal-faq details[open] .journal-faq__toggle::after { transform: rotate(0deg); }
.journal-faq__answer { overflow: hidden; }
.journal-faq__answer p { font-size: 1.03rem; margin: 0 0 22px; padding-right: 54px; }

.journal-sources { margin-top: 48px; padding: 26px 28px; border: 1px solid var(--j-line); border-radius: 20px; background: rgba(255, 255, 255, 0.015); font-size: 0.97rem; }
.journal-sources h2 { font: 600 1.15rem/1.4 'Instrument Sans', sans-serif; letter-spacing: 0; margin-bottom: 12px; }
.journal-sources ul { margin: 0; padding: 0; list-style: none; }
.journal-sources li { padding: 0; margin: 0; }
.journal-sources li + li { border-top: 1px solid var(--j-line); }
.journal-sources a, .journal-sources li > span { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; }
.journal-sources a { color: var(--j-gold-hi); text-decoration: none; transition: color 0.3s; }
.journal-sources a:hover { color: var(--j-gold-pale); }
.journal-sources a svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; transition: transform 0.45s var(--j-ease); }
.journal-sources a:hover svg { transform: translate(3px, -3px); }

.journal-share { display: flex; gap: 14px 22px; align-items: center; flex-wrap: wrap; margin-top: 46px; padding-top: 24px; border-top: 1px solid #36332b; font-size: 0.9rem; }
.journal-share__back { display: inline-flex; align-items: center; gap: 12px; color: var(--j-gold-hi); font-weight: 600; }
.journal-share__back:hover { color: var(--j-gold-pale); }
.journal-share__back:hover .journal-arrow { transform: translateX(-3px); border-color: var(--j-gold); }
.journal-share button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    margin-left: auto;
    padding: 8px 18px 8px 14px;
    border: 1px solid #5d4d30;
    border-radius: 999px;
    background: transparent;
    color: var(--j-gold-hi);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s, transform 0.45s var(--j-ease);
}
.journal-share button:hover { background: #211d15; border-color: var(--j-gold); transform: translateY(-2px); }
.journal-share button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.45s var(--j-ease), opacity 0.3s; }
.journal-share__check { position: absolute; opacity: 0; transform: scale(0.4); }
.journal-share button { position: relative; }
.journal-share button.is-copied .journal-share__link { opacity: 0; transform: scale(0.4) rotate(-30deg); }
.journal-share button.is-copied .journal-share__check { opacity: 1; transform: scale(1); }
.journal-share [role="status"] { width: 100%; text-align: right; color: #c4bdad; }
.journal-share [role="status"]:empty { display: none; }

.journal-related { margin-top: 110px; }
.journal-related > h2 { color: var(--j-ink); font-family: 'Lora', serif; font-size: clamp(1.9rem, 3vw, 2.4rem); font-weight: 500; letter-spacing: -0.02em; margin-bottom: 32px; }

/* ═══ CTA ═══════════════════════════════════════════════════════ */
.journal-cta { position: relative; isolation: isolate; margin-block: 110px 100px; }
.journal-cta.has-pose { margin-top: 210px; }
.journal-cta__panel {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    overflow: hidden;
    padding: clamp(34px, 5vw, 56px) clamp(26px, 5vw, 60px);
    border: 1px solid rgba(201, 162, 85, 0.3);
    border-radius: 30px;
    background:
        radial-gradient(60% 120% at 88% 0%, rgb(var(--svc-rgb) / min(1, calc(0.1 * var(--svc-tint)))), transparent 64%),
        radial-gradient(70% 100% at 0% 100%, rgba(201, 162, 85, 0.1), transparent 60%),
        var(--j-foil);
    box-shadow: var(--j-bevel), 0 40px 80px -40px rgba(0, 0, 0, 0.9), 0 -26px 60px -44px rgb(var(--svc-rgb) / min(1, calc(0.6 * var(--svc-tint))));
}
.journal-cta__copy { max-width: 640px; }
.journal-cta h2 { font: 500 clamp(1.9rem, 3.4vw, 2.6rem)/1.2 'Lora', serif; letter-spacing: -0.025em; color: var(--j-ink); margin-bottom: 16px; text-wrap: balance; }
.journal-cta p { color: #c7c1b4; margin-bottom: 28px; }
.journal-cta__emblem { flex: 0 0 auto; width: clamp(120px, 14vw, 180px); aspect-ratio: 1; }
.journal-cta__emblem img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 20px 26px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 30px rgba(201, 162, 85, 0.25)); }
.journal-cta__pose[data-pose="lean"] { --mw: clamp(160px, 17vw, 230px); right: 8%; z-index: 2; }
.journal-cta__pose[data-pose="lie"] { --mw: clamp(170px, 19vw, 260px); right: 7%; z-index: 4; }
.journal-cta__pose[data-pose="stand"] { --mw: clamp(116px, 12vw, 164px); right: 9%; z-index: 4; }

.journal-preview { position: relative; margin: 175px auto -165px; width: min(1160px, calc(100% - 64px)); border: 1px solid var(--j-gold); padding: 14px 20px; border-radius: 12px; display: flex; flex-wrap: wrap; gap: 10px 20px; background: #282217; color: #f0dfbf; font-size: 0.88rem; z-index: 2; }
.journal-preview a { color: #efd396; text-decoration: underline; margin-left: auto; }
.journal-page:has(.journal-preview) .journal-main { padding-top: 215px; }

/* ═══ ENTRANCE MOTION GATE ═══════════════════════════════════════
   html.journal-motion is set in <head> only when motion is allowed;
   blog.js takes over and adds .journal-ready. If the script never runs,
   the failsafe reveals everything after 2.4s. */
html.journal-motion:not(.journal-ready) :is([data-reveal], [data-split], .journal-pose, .journal-float, .journal-progress) { opacity: 0; animation: journal-failsafe 0.4s 2.4s forwards; }
html.journal-motion:not(.journal-ready) .journal-prose mark { background-size: 0 100%; color: inherit; }
@keyframes journal-failsafe { to { opacity: 1; } }
.journal-motion .journal-prose mark:not(.is-lit) { background-size: 0 100%; color: inherit; }
.journal-split-line { display: inline-block; overflow: unset; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.journal-split-word { display: inline-block; will-change: transform; }

/* ═══ RESPONSIVE ════════════════════════════════════════════════ */
@media (max-width: 1100px) {
    .journal-tools { align-items: stretch; flex-direction: column; gap: 22px; }
    .journal-search > div, .journal-search > div:focus-within { width: min(100%, 420px); }
    .journal-grid { gap: 26px 22px; }
    .journal-topic__hook { font-size: 0.88rem; }
    .journal-topic__card { padding-inline: 20px; min-height: 180px; }
    /* Below the side-by-side header, the cover leaves room above for its mascot. */
    .journal-article__header.has-pose + .journal-cover { margin-top: 96px; }
}

@media (max-width: 900px) {
    .journal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .journal-grid--lead > .journal-card:first-child { display: flex; }
    .journal-grid--lead > .journal-card:first-child .journal-card__image { aspect-ratio: 16 / 8; min-height: 0; height: auto; }
    .journal-grid--lead > .journal-card:first-child .journal-card__foot { margin-top: auto; }
    .journal-topic__hook { display: none; }
    .journal-topic__card { min-height: 0; gap: 4px; }
}

@media (max-width: 800px) {
    .journal-wrap { width: calc(100% - 40px); }
    .journal-main { padding-top: 160px; }
    .journal-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-block: 8px 30px; }
    .journal-hero.has-emblem .journal-hero__copy { padding-right: 120px; }
    .journal-hero__emblem { position: absolute; right: 0; top: 0; width: 104px; margin: 0; }
    .journal-hero:not(.has-emblem) .journal-hero__copy { padding-right: 0; }
    .journal-hero__float { display: none; }
    .journal-lead { font-size: 1.08rem; }
    .journal-toc nav { max-height: 260px; overflow-y: auto; }
    .journal-dock { bottom: 14px; }
    .journal-prose { width: 100%; font-size: 1.06rem; }
    .journal-cover { margin-bottom: 40px; }
    .journal-preview { margin: 150px auto -140px; width: calc(100% - 40px); }
    .journal-page:has(.journal-preview) .journal-main { padding-top: 185px; }
    .journal-cta__pose[data-pose="lean"] { --mw: 150px; right: 22px; }
    .journal-cta__pose[data-pose="lie"] { --mw: 160px; right: 18px; }
    .journal-cta__pose[data-pose="stand"] { --mw: 108px; right: 26px; }
    .journal-cta.has-pose { margin-top: 160px; }
    .journal-cover__pose[data-pose="lean"] { --mw: 140px; }
    .journal-cover__pose[data-pose="lie"] { --mw: 150px; }
    .journal-cover__pose[data-pose="stand"] { --mw: 104px; }
    .journal-article__header.has-pose + .journal-cover { margin-top: 84px; }
}

/* Phones: the three topics become compact seals — the mascot portrait
   carries the service, the pose and pictogram tile step aside. */
@media (max-width: 767.98px) {
    .journal-topics ul { gap: 8px; }
    .journal-topic { padding-top: 0; }
    .journal-topic__stage { height: auto; }
    .journal-topic__pose, .journal-topic__icon.hero-card-icon, .journal-topic__go { display: none; }
    .journal-topic__card { align-items: center; text-align: center; gap: 10px; min-height: 0; padding: 16px 6px 14px; border-radius: 20px; transform: none; }
    .journal-topic__seal { display: block; }
    .journal-topic__seal.svc-medallion { --size: clamp(54px, 15vw, 66px); }
    .journal-topic__label { font-family: 'Instrument Sans', sans-serif; font-size: clamp(0.76rem, 3.4vw, 0.9rem); font-weight: 700; letter-spacing: 0; }
    .journal-topic__card[aria-current] { background: radial-gradient(110% 80% at 50% 0%, rgb(var(--svc-rgb) / min(1, calc(0.14 * var(--svc-tint)))), transparent 66%), var(--j-foil); }
    .journal-tools { margin: 22px 0 32px; }
}

@media (max-width: 540px) {
    .journal-main { padding-top: 140px; }
    .journal-hero h1 { font-size: clamp(2.2rem, 10vw, 2.7rem); }
    .journal-hero.has-emblem .journal-hero__copy { padding-right: 0; }
    .journal-hero.has-emblem h1 { padding-right: 88px; }
    .journal-hero__emblem { width: 78px; }
    .journal-desktop-break { display: none; }
    .journal-filters { gap: 8px; }
    .journal-filters a { font-size: 0.82rem; padding-right: 14px; }
    .journal-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
    .journal-grid--lead > .journal-card:first-child .journal-card__image { aspect-ratio: 16 / 10; }
    .journal-grid--lead > .journal-card:first-child .journal-card__body { padding: 20px 22px 18px; }
    .journal-grid--lead > .journal-card:first-child h2 { font-size: 1.6rem; }
    .journal-card__body { padding: 18px 20px 16px; }
    .journal-card h2 { font-size: 1.35rem; }
    .journal-article__header h1 { font-size: clamp(2rem, 8.6vw, 2.4rem); letter-spacing: -0.025em; }
    .journal-byline { gap: 12px; }
    .journal-byline .journal-modified { width: 100%; }
    .journal-prose h2 { font-size: 1.65rem; }
    .journal-prose h3 { font-size: 1.25rem; }
    .journal-prose blockquote { padding: 56px 20px 22px; font-size: 1.1rem; }
    .journal-prose blockquote::before { left: 18px; top: 2px; }
    .journal-summary { padding: 22px 20px; }
    .journal-summary__icon { width: 62px !important; height: 62px; top: -22px; right: 14px; }
    .journal-summary h2 { font-size: 1.06rem; padding-right: 60px; }
    .journal-faq__answer p { padding-right: 0; }
    .journal-sources { padding: 20px; }
    .journal-share button { margin-left: 0; }
    .journal-share [role="status"] { text-align: left; }
    .journal-cta { margin-block: 70px 70px; }
    .journal-cta.has-pose { margin-top: 140px; }
    .journal-cta__panel { flex-direction: column; align-items: flex-start; gap: 22px; border-radius: 24px; }
    .journal-cta__emblem { position: absolute; right: 16px; top: 18px; width: 64px; }
    .journal-cta:not(.has-pose) h2 { padding-right: 70px; }
    .journal-cta__pose[data-pose="lean"] { --mw: 130px; }
    .journal-cta__pose[data-pose="lie"] { --mw: 140px; }
    .journal-cta__pose[data-pose="stand"] { --mw: 96px; }
    .journal-related { margin-top: 70px; }
    .journal-preview { margin: 135px auto -130px; }
    .journal-page:has(.journal-preview) .journal-main { padding-top: 230px; }
    .journal-preview a { margin-left: 0; }
    .journal-error h1 { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
    .journal-page *, .journal-page *::before, .journal-page *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
