/* JRPG Design System - single-post article surfaces. Extracted verbatim from jrpg-design.css (L3160-3810, L7423-8171); loads after it. */
/* ============================================================
   ARTICLE PAGE
   ============================================================ */
.jrpg-article {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 28px;
	align-items: start;
	margin: 0 0 56px;
}
.jrpg-article-main { min-width: 0; }
.jrpg-article-main #primary.content-area {
	width: 100%;
	float: none;
}
.jrpg-article #secondary.widget-area {
	position: sticky;
	top: 88px;
	float: none;
	width: auto;
	min-width: 0;
	max-width: none;
	margin: 0;
}
@media (max-width: 1023px) {
	.jrpg-article { grid-template-columns: 1fr; }
}

/* No top padding (aligns the article's first row with the sidebar top) and no .hentry
   bottom margin (the footer owns that gap via its own padding-top). */
article.art { padding: 0; margin: 0; }

.art-top { margin-bottom: 24px; }

.art-back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 18px;
	font-family: var(--font-headline);
	font-size: var(--fs-eyebrow);
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--fg-2) !important;
	background: rgba(255, 255, 255, .04);
	border: 1px solid var(--bg-line);
	border-radius: 999px;
	padding: 7px 14px;
	text-decoration: none !important;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.art-back:hover {
	background: color-mix(in oklch, var(--jrpg-purple-bright) 12%, transparent);
	color: var(--fg-1) !important;
	border-color: color-mix(in oklch, var(--jrpg-purple-bright) 40%, transparent);
}

a.art-cat-chip {
	display: inline-block;
	margin: 0 0 14px;
	font-family: var(--font-headline);
	font-size: var(--fs-eyebrow);
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--fg-1) !important;
	background: var(--jrpg-purple);
	border-radius: 999px;
	padding: 5px 12px;
	text-decoration: none !important;
}
a.art-cat-chip:hover { background: var(--jrpg-purple-bright); color: var(--fg-1) !important; }

.art-title {
	font-family: var(--font-headline) !important;
	font-size: clamp(30px, 4vw, 48px);
	line-height: 1.05 !important;
	letter-spacing: .005em;
	text-transform: none !important;
	color: var(--fg-1) !important;
	margin: 0 0 12px;
	max-width: 980px;
	text-wrap: balance;
	font-weight: 500;
}
.art-sub {
	font-family: var(--font-body);
	font-size: 18px;
	line-height: 1.5;
	color: var(--fg-2);
	margin: 0 0 22px;
	max-width: 820px;
}

.art-lead-img {
	margin: 0 0 18px;
	border: 1px solid var(--bg-line);
	border-radius: 14px;
	overflow: hidden;
	background: var(--bg-2);
	aspect-ratio: 16 / 9;
}
.art-lead-img img,
.art-lead-img picture {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}

.art-byline {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 0 18px;
	border-bottom: 1px solid var(--bg-line);
	margin: 0 0 28px;
}
.art-by-author { display: flex; align-items: center; gap: 12px; }
.art-by-avatar {
	width: 36px;
	height: 36px;
	border-radius: 999px;
	object-fit: cover;
	display: block;
}
.art-by-avatar-fallback {
	background: linear-gradient(135deg, var(--jrpg-purple), var(--jrpg-purple-bright));
	color: var(--fg-1);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-mono);
	font-size: var(--fs-meta);
}
.art-by-meta { display: flex; flex-direction: column; gap: 2px; }
.art-by-name {
	font-family: var(--font-mono);
	font-size: var(--fs-eyebrow);
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--fg-3);
}
.art-by-name a {
	color: var(--fg-1) !important;
	text-decoration: underline;
	text-decoration-color: rgba(255, 255, 255, .25);
	text-underline-offset: 3px;
}
.art-by-name a:hover { color: var(--jrpg-purple-bright) !important; }
.art-by-title { color: var(--fg-mute); }
.art-by-when {
	font-family: var(--font-mono);
	font-size: var(--fs-eyebrow);
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--fg-3);
}
.art-by-cmt {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--font-mono);
	font-size: var(--fs-eyebrow);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--fg-2) !important;
	padding: 8px 12px;
	border: 1px solid var(--bg-line);
	border-radius: 999px;
	text-decoration: none !important;
	transition: color .15s ease, border-color .15s ease;
}
.art-by-cmt:hover { color: var(--fg-1) !important; border-color: color-mix(in oklch, var(--jrpg-purple-bright) 45%, transparent); }

/* ============================================================
   ART BODY — Gutenberg-friendly typography
   ============================================================ */
.art-body {
	max-width: none;
	margin: 0 0 36px;
	color: var(--fg-1);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.65;
}
.art-body > * { margin: 0 0 18px; }
.art-body > *:last-child { margin-bottom: 0; }


.art-body p { font-size: 17px; line-height: 1.65; color: var(--fg-1); }
.art-body p.has-large-font-size,
.art-body .has-large-font-size { font-size: 21px; line-height: 1.5; color: var(--fg-1); }

.art-body strong, .art-body b { color: var(--fg-1); font-weight: 600; }
.art-body em, .art-body i { color: var(--fg-1); }
.art-body mark {
	background: rgba(245, 185, 66, .25);
	color: var(--fg-1);
	padding: 0 4px;
	border-radius: 3px;
}

.art-body a {
	color: var(--jrpg-purple-bright) !important;
	text-decoration: none;
	border-bottom: 1px solid color-mix(in oklch, var(--jrpg-purple-bright) 40%, transparent);
	transition: color .15s ease, border-color .15s ease;
}
.art-body a:hover {
	color: var(--fg-1) !important;
	border-bottom-color: var(--fg-1);
}

/* Headings */
.art-body h2,
.art-body .wp-block-heading {
	font-family: var(--font-headline);
	font-size: 28px;
	line-height: 1.1;
	letter-spacing: .01em;
	text-transform: uppercase;
	color: var(--fg-1);
	margin: 36px 0 14px;
	font-weight: 400;
}
.art-body h3,
.art-body h3.wp-block-heading {
	font-family: var(--font-headline);
	font-size: 22px;
	line-height: 1.15;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--fg-1);
	margin: 28px 0 12px;
	font-weight: 400;
}
.art-body h4,
.art-body h4.wp-block-heading {
	font-family: var(--font-body);
	font-size: 18px;
	font-weight: 700;
	color: var(--fg-1);
	margin: 24px 0 10px;
	letter-spacing: -.005em;
}
.art-body h5, .art-body h6 {
	font-family: var(--font-headline);
	font-size: var(--fs-meta);
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--jrpg-purple-bright);
	margin: 20px 0 8px;
}

/* Lists */
.art-body ul, .art-body ol {
	padding-left: 24px;
	margin: 0 0 20px;
}
.art-body ul { list-style: disc; }
.art-body ol { list-style: decimal; }
.art-body li { margin: 0 0 8px; padding-left: 4px; }
.art-body li::marker { color: var(--jrpg-purple-bright); }
.art-body ul.is-style-checkmark-list,
.art-body ul.wp-block-list { list-style: disc; }
.art-body ul ul, .art-body ol ol, .art-body ul ol, .art-body ol ul { margin: 8px 0; }

/* Block quote */
.art-body blockquote,
.art-body .wp-block-quote {
	margin: 28px 0;
	padding: 16px 22px;
	border-left: 3px solid var(--jrpg-purple-bright);
	background: color-mix(in oklch, var(--jrpg-purple-bright) 08%, transparent);
	border-radius: 0 10px 10px 0;
	color: var(--fg-1);
	font-size: 18px;
	line-height: 1.5;
}
.art-body blockquote p { font-size: 18px; line-height: 1.5; margin: 0 0 8px; }
.art-body blockquote p:last-child { margin-bottom: 0; }
.art-body blockquote cite,
.art-body .wp-block-quote cite,
.art-body .wp-block-quote__citation {
	display: block;
	margin-top: 8px;
	font-family: var(--font-mono);
	font-size: var(--fs-meta);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--fg-3);
	font-style: normal;
}

/* Pullquote — inner blockquote stays bare, only the figure draws the chrome */
.art-body .wp-block-pullquote {
	margin: 36px 0;
	padding: 28px 24px;
	border: 0;
	border-top: 3px solid var(--jrpg-purple-bright);
	border-bottom: 3px solid var(--jrpg-purple-bright);
	border-radius: 0;
	background: transparent;
	text-align: center;
}
.art-body .wp-block-pullquote blockquote {
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
}
.art-body .wp-block-pullquote p {
	font-family: var(--font-headline);
	font-size: 26px;
	line-height: 1.2;
	letter-spacing: .005em;
	text-transform: uppercase;
	color: var(--fg-1);
	margin: 0 0 12px;
}
.art-body .wp-block-pullquote cite,
.art-body .wp-block-pullquote__citation {
	font-family: var(--font-mono);
	font-size: var(--fs-meta);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--fg-3);
	font-style: normal;
}

/* Code */
.art-body code:not(pre code),
.art-body .wp-block-code code {
	font-family: var(--font-mono);
	font-size: 14px;
	background: rgba(255, 255, 255, .06);
	border: 1px solid var(--bg-line);
	color: var(--jrpg-purple-bright);
	padding: 2px 6px;
	border-radius: 4px;
}
.art-body pre,
.art-body .wp-block-code,
.art-body .wp-block-preformatted {
	background: var(--bg-0);
	border: 1px solid var(--bg-line);
	border-radius: 10px;
	padding: 16px 18px;
	overflow-x: auto;
	font-family: var(--font-mono);
	font-size: var(--fs-meta);
	line-height: 1.55;
	color: var(--fg-1);
	margin: 24px 0;
}
.art-body pre code, .art-body .wp-block-code code {
	background: transparent;
	border: 0;
	padding: 0;
	color: inherit;
	font-size: inherit;
}
.art-body kbd {
	font-family: var(--font-mono);
	font-size: var(--fs-meta);
	background: rgba(255, 255, 255, .08);
	border: 1px solid var(--bg-line);
	border-bottom-width: 2px;
	border-radius: 4px;
	padding: 1px 6px;
	color: var(--fg-1);
}

/* Tables — bordered card, no inner cell borders, hover row tint */
.art-body .wp-block-table,
.art-body figure.wp-block-table {
	margin: 28px 0;
}
.art-body table,
.art-body .wp-block-table table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	font-family: var(--font-body);
	font-size: 14.5px;
	line-height: 1.5;
	border: 1px solid var(--bg-line);
	border-radius: 12px;
	overflow: hidden;
	background: var(--bg-2);
	margin: 0;
}
.art-body th,
.art-body td {
	padding: 12px 16px;
	border: 0;
	border-bottom: 1px solid var(--bg-line);
	text-align: left;
	vertical-align: top;
	color: var(--fg-1);
}
.art-body tbody tr:last-child td { border-bottom: 0; }
.art-body thead th {
	background: rgba(255, 255, 255, .04);
	font-family: var(--font-headline);
	font-size: var(--fs-eyebrow);
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--jrpg-purple-bright);
	font-weight: 400;
}
.art-body tbody tr { transition: background .15s ease; }
.art-body tbody tr:hover td { background: color-mix(in oklch, var(--jrpg-purple-bright) 07%, transparent); }
.art-body .wp-block-table.is-style-stripes tbody tr:nth-child(odd) td {
	background: rgba(255, 255, 255, .025);
}
.art-body .wp-block-table.is-style-stripes tbody tr:nth-child(odd):hover td {
	background: color-mix(in oklch, var(--jrpg-purple-bright) 09%, transparent);
}
.art-body .wp-block-table figcaption,
.art-body .wp-block-table .wp-element-caption {
	margin: 10px 4px 0;
	padding: 0;
	background: transparent;
	border: 0;
	font-family: var(--font-mono);
	font-size: var(--fs-meta);
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--fg-3);
	text-align: left;
}

/* Images */
.art-body .wp-block-image,
.art-body figure {
	margin: 24px 0;
}
.art-body .wp-block-image figure {
	margin: 0;
	/* display: table makes the figure shrink-wrap to the image's intrinsic
	   width (the only block-level child in the table). The figcaption is
	   placed via display: table-caption below, so its width follows the
	   table — meaning the caption matches the image width and long text
	   wraps inside instead of stretching the frame. */
	display: table;
	max-width: 100%;
}
.art-body .wp-block-image.aligncenter figure {
	margin-inline: auto;
}
.art-body .wp-block-image.alignfull figure,
.art-body .wp-block-image.alignwide figure {
	display: block;
}
.art-body .wp-block-image img {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: 14px 14px 0 0;
	border: 1px solid var(--bg-line);
	border-bottom: none;
}
.art-body .wp-block-image figure:not(:has(> .wp-element-caption)):not(:has(> figcaption)) img,
.art-body .wp-block-image figure > img:only-child {
	border-radius: 14px;
	border-bottom: 1px solid var(--bg-line);
}
.art-body .wp-block-image img,
.art-body figure img {
	display: block;
	max-width: 100%;
	height: auto;
}
.art-body .wp-block-image .wp-element-caption,
.art-body figcaption {
	font-family: var(--font-mono);
	font-size: var(--fs-meta);
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--fg-3);
	padding: 10px 14px;
	background: oklch(var(--b1) / .4);
	border: 1px solid var(--bg-line);
	border-radius: 0 0 14px 14px;
	text-align: left;
	margin: 0;
}
.art-body .wp-block-image figure > .wp-element-caption,
.art-body .wp-block-image figure > figcaption {
	display: table-caption;
	caption-side: bottom;
}
.art-body .wp-block-image.alignleft { float: left; margin: 8px 24px 12px 0; max-width: 40%; }
.art-body .wp-block-image.alignright { float: right; margin: 8px 0 12px 24px; max-width: 40%; }
.art-body .wp-block-image.aligncenter { margin-left: auto; margin-right: auto; }
.art-body .wp-block-image.alignfull,
.art-body .wp-block-image.alignwide {
	max-width: 100%;
}

/* Gallery */
.art-body .wp-block-gallery {
	display: grid !important;
	grid-template-columns: repeat(var(--columns, 3), minmax(0, 1fr));
	gap: 12px;
	margin: 24px 0;
}
.art-body .wp-block-gallery .wp-block-image {
	margin: 0;
}

/* Buttons */
.art-body .wp-block-buttons {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin: 24px 0;
}
.art-body .wp-block-button__link {
	/* glow removed per design ask */
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-headline) !important;
	font-size: var(--fs-meta) !important;
	letter-spacing: .16em !important;
	text-transform: uppercase !important;
	padding: 10px 22px !important;
	border-radius: 999px !important;
	border: 0 !important;
	color: var(--fg-1) !important;
	background: linear-gradient(180deg, var(--jrpg-purple-bright), var(--jrpg-purple)) !important;
	text-decoration: none !important;
	transition: transform .15s ease;
}
.art-body .wp-block-button__link:hover {
	transform: translateY(-1px);
	color: var(--fg-1) !important;
}
.art-body .wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent !important;
	border: 1px solid rgba(255, 255, 255, .25) !important;
	box-shadow: none;
}
.art-body .wp-block-button.is-style-outline .wp-block-button__link:hover {
	border-color: var(--jrpg-purple-bright) !important;
}

/* Separator */
.art-body hr,
.art-body .wp-block-separator {
	border: 0;
	border-top: 1px solid var(--bg-line);
	margin: 36px 0;
	height: 0;
}
.art-body .wp-block-separator.is-style-wide { border-top-width: 2px; }
.art-body .wp-block-separator.is-style-dots {
	border: 0;
	text-align: center;
	color: var(--jrpg-purple-bright);
	font-size: 22px;
	letter-spacing: .5em;
	margin: 36px 0;
}
.art-body .wp-block-separator.is-style-dots::before {
	content: "···";
}

/* Embeds (YouTube etc.) */
.art-body .wp-block-embed {
	margin: 24px 0;
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid var(--bg-line);
}
.art-body .wp-block-embed iframe {
	display: block;
	width: 100%;
}
.art-body .wp-block-embed__wrapper {
	position: relative;
}
.art-body .wp-block-embed.wp-has-aspect-ratio .wp-block-embed__wrapper {
	aspect-ratio: 16 / 9;
}
.art-body .wp-block-embed.wp-has-aspect-ratio iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}
.art-body .wp-block-embed figcaption {
	margin-top: 8px;
	border: 0;
	background: transparent;
}

/* Video / audio / file */
.art-body .wp-block-video video,
.art-body .wp-block-audio audio { width: 100%; }
.art-body .wp-block-file {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	background: rgba(255, 255, 255, .04);
	border: 1px solid var(--bg-line);
	border-radius: 10px;
}
.art-body .wp-block-file a { border: 0; }

/* Verse */
.art-body .wp-block-verse {
	font-family: var(--font-body);
	background: var(--bg-2);
	border: 1px solid var(--bg-line);
	border-radius: 10px;
	padding: 18px;
	font-style: italic;
	color: var(--fg-2);
}

/* Page break (paginated posts) */
.art-pages {
	margin: 28px 0;
	font-family: var(--font-headline);
	font-size: var(--fs-eyebrow);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--fg-2);
	display: flex;
	gap: 8px;
	align-items: center;
	flex-wrap: wrap;
}
.art-pages a {
	color: var(--jrpg-purple-bright) !important;
	padding: 4px 10px;
	border: 1px solid var(--bg-line);
	border-radius: 999px;
	text-decoration: none !important;
}
.art-pages a:hover {
	color: var(--fg-1) !important;
	border-color: color-mix(in oklch, var(--jrpg-purple-bright) 45%, transparent);
}

/* ============================================================
   Magazine treatments — layered on top of .art-body styles
   ============================================================ */

/* (scroll-behavior:smooth removed — it silently cancelled long TOC jumps; see the anchor notes near :root) */

/* Hero image — fill the article column */
.art-lead-img { margin-bottom: 16px; }
.art-lead-img img { width: 100%; height: auto; display: block; }

/* (7) Reading-progress bar */
.jrpg-progress {
	position: fixed;
	top: 0; left: 0;
	width: 100%;
	height: 3px;
	background: color-mix(in srgb, var(--bg-line) 40%, transparent);
	z-index: 60;
	pointer-events: none;
}
.jrpg-progress-bar {
	height: 100%;
	width: 0%;
	background: linear-gradient(90deg, var(--jrpg-gold), var(--jrpg-purple-bright));
	box-shadow: 0 0 10px color-mix(in srgb, var(--jrpg-gold) 60%, transparent);
	transition: width .08s linear;
}

/* (8) Inline TOC at top of article — works on all screen sizes */
.jrpg-toc {
	margin: 0 0 36px;
	padding: 18px 22px 20px;
	border: 1px dashed var(--bg-line);
	border-radius: 4px;
	background: color-mix(in srgb, var(--bg-1) 50%, transparent);
}
.jrpg-toc-label {
	font-family: var(--font-headline);
	font-size: 12px;
	letter-spacing: .24em;
	text-transform: uppercase;
	color: var(--jrpg-gold);
	margin: 0 0 14px;
	display: flex;
	align-items: center;
	gap: 10px;
}
.jrpg-toc-label::before { content: "◆"; font-size: 9px; }
.jrpg-toc ol {
	list-style: none !important;
	counter-reset: toc;
	margin: 0 !important;
	padding: 0 !important;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.jrpg-toc li {
	counter-increment: toc;
	position: relative;
	padding: 0 0 0 32px !important;
	margin: 0 !important;
	font-family: var(--font-body);
	font-size: 15px;
	line-height: 1.45;
	list-style: none !important;
}
.jrpg-toc li::before {
	content: counter(toc, decimal-leading-zero);
	position: absolute;
	left: 0; top: 1px;
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--fg-mute);
	transition: color .15s ease;
}
.jrpg-toc li::marker { content: none; }
.jrpg-toc a {
	color: var(--fg-2) !important;
	text-decoration: none !important;
	transition: color .15s ease;
}
.jrpg-toc a:hover { color: var(--fg-1) !important; }
.jrpg-toc li.is-active a { color: var(--jrpg-gold) !important; }
.jrpg-toc li.is-active::before { color: var(--jrpg-gold); }

/* Variant E ordering — category chip is NOT a kicker; JS moves it into
   the byline. Keep the back-link / title / subtitle / hero / byline order. */
.art-top {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}
/* Header flow: topbar (back + category) → title → excerpt → hero → byline → divider. */
.art-top .art-topbar   { order: 1; align-self: stretch; }
.art-top .art-title    { order: 2; }
.art-top .art-sub      { order: 3; }
.art-top .art-lead-img { order: 4; align-self: stretch; }
.art-top .art-byline   { order: 5; align-self: stretch; }
.art-top .art-divider  { order: 7; align-self: stretch; }

.art-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 18px;
}
.art-topbar .art-back { margin-bottom: 0; }
.art-topbar .art-cat-chip {
	font-size: var(--fs-eyebrow) !important;
	letter-spacing: .16em !important;
	padding: 7px 14px !important;
}

/* Category pill style — visible inside the byline, not as a kicker */
.art-cat-chip {
	background: var(--jrpg-purple) !important;
	border: 0 !important;
	padding: 4px 11px !important;
	margin: 0 !important;
	font-family: var(--font-headline) !important;
	font-size: 11px !important;
	font-weight: 500 !important;
	letter-spacing: .2em !important;
	text-transform: uppercase !important;
	color: var(--fg-1) !important;
	display: inline-block !important;
	border-radius: 999px !important;
	box-shadow: none !important;
	flex-shrink: 0;
}
.art-cat-chip::before { content: none !important; display: none !important; }
.art-cat-chip:hover { background: var(--jrpg-purple-bright) !important; color: var(--fg-1) !important; }

/* Author byline: avatar + stacked name/date on the left, badges + category on the right. */
.art-byline {
	width: 100%;
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 18px 0 0 !important;
	border-bottom: 0 !important;
	margin: 0 0 16px !important;
	flex-wrap: wrap;
}
.art-by-author {
	display: flex !important;
	align-items: center;
	gap: 14px;
	min-width: 0;
}
.art-by-avatar,
.art-by-avatar-fallback {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 999px;
	object-fit: cover;
	flex-shrink: 0;
	border: 1px solid var(--bg-line);
}
.art-by-avatar-fallback {
	background: linear-gradient(135deg, var(--jrpg-purple), var(--jrpg-purple-bright));
	color: var(--fg-1);
	font-family: var(--font-mono);
	font-size: var(--fs-meta);
	font-weight: 600;
}
.art-by-meta {
	display: flex !important;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.art-by-name {
	font-family: var(--font-body) !important;
	font-size: 14px !important;
	color: var(--fg-2) !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	margin: 0 !important;
}
.art-by-name a {
	color: var(--fg-1) !important;
	font-weight: 600 !important;
	text-decoration: none !important;
	border-bottom: 1px solid color-mix(in srgb, var(--jrpg-gold) 60%, transparent);
	padding-bottom: 1px;
	transition: border-color .15s ease;
}
.art-by-name a:hover { border-bottom-color: var(--jrpg-gold) !important; }
.art-by-title {
	display: block !important;
	font-family: var(--font-body) !important;
	font-size: 12.5px !important;
	color: var(--fg-3) !important;
	letter-spacing: 0;
	margin: 0;
}
.art-by-when {
	font-family: var(--font-mono) !important;
	font-size: 11.5px !important;
	color: var(--fg-3) !important;
	letter-spacing: .04em !important;
	text-transform: none !important;
	margin: 0 !important;
}
.art-by-when::before { content: none !important; }
.art-by-right {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-left: auto;
	flex-shrink: 0;
	flex-wrap: wrap;
	justify-content: flex-end;
}

@media (max-width: 640px) {
	.art-byline {
		flex-direction: column;
		align-items: flex-start !important;
		gap: 10px;
	}
	.art-by-right {
		margin-left: 0 !important;
		justify-content: flex-start !important;
		width: 100%;
	}
	.art-by-right > .jrpg-token-badges {
		flex: 0 0 auto;
		width: auto;
	}
	.art-by-meta { flex-shrink: 1; }
	.art-by-when { white-space: normal; }
}

.art-divider {
	width: 100%;
	height: 0;
	border: 0;
	border-top: 1px solid var(--bg-line);
	margin: 0 0 24px;
}

/* (11) Reading-time chip — sits on the far right of .art-byline */
.jrpg-reading-chip {
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--jrpg-gold);
	letter-spacing: .06em;
	border: 1px solid color-mix(in srgb, var(--jrpg-gold) 36%, transparent);
	padding: 4px 11px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--jrpg-gold) 7%, transparent);
	white-space: nowrap;
	margin-left: auto !important;
	flex-shrink: 0;
	align-self: center;
}

/* (1) Drop cap — serif, lifted so its top sits at the cap-height of line 1
   (not x-height). Negative margin-top pulls the floated letter upward. */
.art-body > p:first-of-type::first-letter {
	font-family: "DM Serif Display", "Cormorant Garamond", "Playfair Display", Georgia, serif;
	font-weight: 400;
	font-size: 4em;
	line-height: 1;
	float: left;
	padding: 0 0.06em 0 0;
	margin: -0.18em 0.04em -0.18em 0;
	background: linear-gradient(135deg, var(--jrpg-gold) 0%, var(--jrpg-purple-bright) 85%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	text-shadow: 0 2px 24px color-mix(in srgb, var(--jrpg-purple) 30%, transparent);
}

/* (4) Lead paragraph */
.art-body > p:first-of-type {
	font-size: 20px;
	line-height: 1.7;
	color: var(--fg-1);
	font-weight: 400;
}

/* Scroll anchor offset under sticky chrome */
.art-body h2, .art-body .wp-block-heading { scroll-margin-top: 90px; }

/* (2) Section divider — two half-width background gradients leave a gap in
   the middle where the diamond ::before sits. No knockout, no line through. */
.art-body hr.wp-block-separator,
.art-body hr {
	border: 0 !important;
	height: 20px !important;
	margin: 56px 0 !important;
	position: relative;
	overflow: visible !important;
	opacity: 1 !important;
	background-image:
		linear-gradient(90deg, transparent, var(--bg-line) 30%, var(--jrpg-gold)),
		linear-gradient(90deg, var(--jrpg-gold), var(--bg-line) 70%, transparent) !important;
	background-size: calc(50% - 22px) 1px, calc(50% - 22px) 1px !important;
	background-position: left center, right center !important;
	background-repeat: no-repeat !important;
}
.art-body hr.wp-block-separator::before,
.art-body hr::before {
	content: "◆";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 15px;
	color: var(--jrpg-gold);
	line-height: 1;
}
.art-body hr.wp-block-separator::after,
.art-body hr::after { content: none; }

/* (9) Image figure — flat caption matching the standalone preview.
   Counter only increments on wp-block-image so the YouTube embed isn't
   counted. The hero is outside .art-body, so the first in-body image is Image 01. */
.art-body { counter-reset: art-fig; }
.art-body .wp-block-image figure { counter-increment: art-fig; }
/* Strip the existing card-style image styling */
.art-body .wp-block-image figure { display: block !important; }
.art-body .wp-block-image img,
.art-body figure img {
	border: 0 !important;
	border-radius: 4px !important;
	display: block;
	width: 100%;
	height: auto;
}
.art-body .wp-block-image .wp-element-caption,
.art-body .wp-block-image figcaption,
.art-body figcaption,
.art-body .wp-element-caption {
	display: block !important;
	caption-side: unset !important;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	margin: 12px 0 0 !important;
	padding: 0 4px !important;
	font-family: var(--font-body) !important;
	font-size: 14px !important;
	line-height: 1.55 !important;
	color: var(--fg-3) !important;
	font-style: italic !important;
	font-weight: 400 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	text-align: left !important;
}
.art-body .wp-block-image .wp-element-caption::before,
.art-body .wp-block-image figcaption::before {
	content: "Image " counter(art-fig, decimal-leading-zero) " ";
	font-family: var(--font-headline);
	font-style: normal;
	font-size: 11px;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--jrpg-gold);
	margin-right: 10px;
}

/* (5) Magazine quote — scoped so it does NOT touch .wp-block-pullquote
   (which keeps its existing site styling). Selector uses `> blockquote`
   to skip the inner <blockquote> nested inside a pull-quote <figure>. */
.art-body > blockquote,
.art-body .wp-block-quote {
	margin: 52px 0 !important;
	padding: 32px 56px 32px 84px !important;
	border: 0 !important;
	border-top: 1px solid var(--jrpg-gold) !important;
	border-bottom: 1px solid var(--jrpg-gold) !important;
	border-radius: 0 !important;
	position: relative;
	font-family: var(--font-headline) !important;
	font-size: 26px !important;
	font-weight: 500;
	line-height: 1.4 !important;
	font-style: italic;
	color: var(--fg-1) !important;
	background: linear-gradient(180deg,
		color-mix(in srgb, var(--jrpg-gold) 5%, transparent),
		transparent 60%) !important;
	text-align: left !important;
}
.art-body > blockquote::before,
.art-body .wp-block-quote::before {
	content: "\201C";
	position: absolute;
	left: 16px; top: 6px;
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 700;
	font-size: 84px;
	line-height: 1;
	color: var(--jrpg-gold);
	opacity: .9;
}
.art-body > blockquote p,
.art-body .wp-block-quote p {
	margin: 0 0 .5em !important;
	font-size: inherit !important;
	line-height: inherit !important;
	color: inherit !important;
	font-family: inherit !important;
}
.art-body > blockquote p:last-of-type,
.art-body .wp-block-quote p:last-of-type { margin: 0 !important; }
.art-body > blockquote cite,
.art-body .wp-block-quote cite,
.art-body .wp-block-quote__citation {
	display: block !important;
	margin-top: 16px !important;
	font-family: var(--font-headline) !important;
	font-size: 13px !important;
	font-style: normal !important;
	color: var(--jrpg-gold) !important;
	letter-spacing: .2em !important;
	text-transform: uppercase !important;
	font-weight: 500 !important;
	opacity: 1 !important;
}
.art-body > blockquote cite::before,
.art-body .wp-block-quote cite::before { content: "— "; }

/* Code block — dashed border, no left accent */
.art-body pre.wp-block-code {
	background: color-mix(in srgb, var(--bg-1) 70%, transparent) !important;
	border: 1px dashed var(--bg-line) !important;
	border-radius: 6px;
	padding: 18px 22px !important;
	overflow-x: auto;
	font-family: var(--font-mono) !important;
	color: var(--fg-1);
	box-shadow: none;
}
.art-body pre.wp-block-code code {
	font-family: var(--font-mono) !important;
	color: var(--fg-1);
	background: none !important;
}

/* Table — use the existing .art-body table styling from jrpg-design.css.
   No overrides. */
.art-body .wp-block-table figcaption,
.art-body figure.wp-block-table .wp-element-caption {
	background: transparent !important;
	border: 0 !important;
	padding: 12px 4px 0 !important;
	font-style: italic !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	color: var(--fg-3) !important;
	font-family: var(--font-body) !important;
	font-size: 14px !important;
	margin: 0 !important;
}

/* Buttons */
.art-body .wp-block-button:not(.is-style-outline) .wp-block-button__link {
	background: linear-gradient(135deg, var(--jrpg-purple), var(--jrpg-purple-bright)) !important;
	color: #fff !important;
	border: 0 !important;
	font-family: var(--font-headline) !important;
	letter-spacing: .12em !important;
	text-transform: uppercase !important;
	font-size: 13px !important;
}
.art-body .wp-block-button.is-style-outline .wp-block-button__link {
	border-color: var(--jrpg-gold) !important;
	color: var(--jrpg-gold) !important;
	background: transparent !important;
	font-family: var(--font-headline) !important;
	letter-spacing: .12em !important;
	text-transform: uppercase !important;
	font-size: 13px !important;
}

/* (12) Wikipedia-style citations */
.jrpg-cite {
	font-family: var(--font-mono);
	font-size: .68em;
	vertical-align: super;
	line-height: 0;
	margin-left: 1px;
	white-space: nowrap;
}
.jrpg-cite a {
	color: var(--jrpg-gold);
	text-decoration: none;
	padding: 1px 2px;
	border-radius: 2px;
	transition: background .15s ease, color .15s ease;
	scroll-margin-top: 100px;
}
.jrpg-cite a:hover {
	background: color-mix(in srgb, var(--jrpg-gold) 20%, transparent);
	color: var(--fg-1);
}
.jrpg-cite a:target { animation: jrpg-cite-flash 1.6s ease-out; }
@keyframes jrpg-cite-flash {
	0%   { background: color-mix(in srgb, var(--jrpg-gold) 45%, transparent); color: var(--fg-1); }
	100% { background: transparent; color: var(--jrpg-gold); }
}

.jrpg-references {
	margin-top: 56px;
	padding-top: 28px;
	border-top: 1px solid var(--bg-line);
}
.jrpg-references h2 {
	font-family: var(--font-display);
	font-size: 24px;
	font-weight: 400;
	color: var(--fg-1);
	margin: 0 0 22px;
	letter-spacing: -.005em;
	scroll-margin-top: 90px;
}
.jrpg-references ol {
	counter-reset: ref;
	list-style: none !important;
	padding: 0 !important;
	margin: 0 !important;
}
.jrpg-references li {
	counter-increment: ref;
	position: relative;
	padding: 4px 8px 4px 42px !important;
	margin: 0 0 .6em !important;
	font-size: 14px;
	line-height: 1.6;
	color: var(--fg-3);
	font-family: var(--font-body);
	scroll-margin-top: 100px;
	border-radius: 4px;
}
.jrpg-references li::marker { content: none; }
.jrpg-references li::before {
	content: counter(ref) ".";
	position: absolute;
	left: 0; top: 4px;
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--jrpg-gold);
	width: 28px;
	text-align: right;
	padding-right: 6px;
}
.jrpg-references li:target {
	background: color-mix(in srgb, var(--jrpg-gold) 10%, transparent);
	animation: jrpg-ref-flash 1.6s ease-out;
}
@keyframes jrpg-ref-flash {
	0%   { background: color-mix(in srgb, var(--jrpg-gold) 30%, transparent); }
	100% { background: color-mix(in srgb, var(--jrpg-gold) 10%, transparent); }
}
.jrpg-references cite { color: var(--fg-1); font-style: italic; }
.jrpg-references a.source {
	color: var(--jrpg-cyan);
	text-decoration: none;
	border-bottom: 1px dotted color-mix(in srgb, var(--jrpg-cyan) 55%, transparent);
}
.jrpg-references a.source:hover { color: var(--fg-1); border-bottom-color: var(--fg-1); }
.jrpg-references a.backref {
	display: inline-block;
	margin-right: 6px;
	color: var(--jrpg-gold);
	text-decoration: none;
	font-family: var(--font-mono);
	font-size: 13px;
}
.jrpg-references a.backref:hover { color: var(--fg-1); }

/* Variant E — expanded author card. Lives between .art-body and .art-ymal.
   Layout: "About the author" header at the top (full-width, with bottom rule),
   then a 2-column grid below with avatar on the left and name/role/bio/link
   stacked on the right. Pattern from videogamer.com. */
.jrpg-author-card {
	padding: 24px 28px 28px;
	margin: 40px 0;
	background: color-mix(in srgb, var(--bg-1) 60%, transparent);
	border: 1px solid var(--bg-line);
	border-radius: 4px;
}
.jrpg-author-card .author-eyebrow {
	font-family: var(--font-headline);
	font-size: 11px;
	letter-spacing: .24em;
	text-transform: uppercase;
	color: var(--jrpg-gold);
	margin: 0 0 18px;
	display: flex;
	align-items: center;
	gap: 12px;
}
.jrpg-author-card .author-eyebrow::before {
	content: "";
	width: 22px;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--jrpg-gold));
	flex-shrink: 0;
}
.jrpg-author-card .author-eyebrow::after {
	content: "";
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, color-mix(in srgb, var(--jrpg-gold) 35%, transparent), transparent);
}
.jrpg-author-card .author-row {
	display: grid;
	grid-template-columns: 80px 1fr;
	gap: 22px;
	align-items: start;
}
.jrpg-author-card .author-avatar {
	width: 80px; height: 80px;
	border-radius: 50%;
	object-fit: cover;
	background: linear-gradient(135deg, var(--jrpg-purple), var(--jrpg-purple-bright));
	box-shadow: 0 0 0 2px var(--bg-0), 0 0 0 3px color-mix(in srgb, var(--jrpg-gold) 50%, transparent);
	display: block;
}
.jrpg-author-card .author-who { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.jrpg-author-card .author-name {
	font-family: var(--font-headline);
	font-size: 24px;
	font-weight: 600;
	color: var(--fg-1);
	line-height: 1.1;
}
.jrpg-author-card .author-name a { color: inherit; text-decoration: none; }
.jrpg-author-card .author-name a:hover { color: var(--jrpg-gold); }
.jrpg-author-card .author-role {
	font-family: var(--font-body);
	font-size: 14px;
	color: var(--fg-3);
}
.jrpg-author-card .author-card-bio {
	margin: 6px 0 14px !important;
	font-family: var(--font-body);
	font-size: 14px;
	color: var(--fg-2);
	line-height: 1.6;
}
.jrpg-author-card .author-more {
	font-family: var(--font-headline);
	font-size: 11px;
	letter-spacing: .2em;
	text-transform: uppercase;
	/* !important: daisyUI's layered `a:not(.btn)` link color otherwise wins */
	color: var(--jrpg-gold) !important;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	border: 1px solid color-mix(in srgb, var(--jrpg-gold) 40%, transparent);
	padding: 10px 18px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--jrpg-gold) 8%, transparent);
	transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
	align-self: flex-start;
}
.jrpg-author-card .author-more-icon {
	width: 15px;
	height: 15px;
	flex-shrink: 0;
	transition: transform .18s ease;
}
.jrpg-author-card .author-more:hover {
	color: var(--bg-0) !important;
	background: var(--jrpg-gold);
	border-color: var(--jrpg-gold);
	box-shadow: 0 6px 18px color-mix(in srgb, var(--jrpg-gold) 28%, transparent);
}
.jrpg-author-card .author-more:hover .author-more-icon { transform: translateX(3px); }
@media (max-width: 620px) {
	.jrpg-author-card { padding: 20px 22px; }
	.jrpg-author-card .author-row { grid-template-columns: 64px 1fr; gap: 16px; }
	.jrpg-author-card .author-avatar { width: 64px; height: 64px; }
	.jrpg-author-card .author-name { font-size: 20px; }
}

/* (6) End-of-article mark — high specificity to beat .art-body p { color: var(--fg-1) } */
.art-body p.jrpg-end-mark {
	text-align: center;
	margin: 64px 0 0;
	color: var(--jrpg-gold) !important;
	font-size: 16px;
	letter-spacing: .8em;
	padding-left: .8em;
}

/* ============================================================
   TOKEN BADGES — "in this story" row under the article title
   ============================================================ */
.jrpg-token-badges {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0;
}
.jrpg-token-badges__label {
	font-size: var(--fs-eyebrow);
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--fg-3);
}
.jrpg-token-badge {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 4px 11px;
	border-radius: var(--r-pill);
	border: 1px solid var(--jrpg-purple);
	background: color-mix(in oklch, var(--jrpg-purple) 16%, transparent);
	text-decoration: none;
	line-height: 1.2;
	transition: background .15s ease, border-color .15s ease;
}
.jrpg-token-badge:hover {
	background: color-mix(in oklch, var(--jrpg-purple) 28%, transparent);
	border-color: var(--jrpg-purple-bright);
}
.jrpg-token-badge__tk {
	font-family: var(--font-mono);
	font-weight: 700;
	font-size: var(--fs-meta);
	color: var(--jrpg-gold);
}
.jrpg-token-badge__chg {
	font-family: var(--font-mono);
	font-size: var(--fs-meta);
	font-weight: 600;
}
.jrpg-token-badge__chg.is-up   { color: var(--jrpg-success); }
.jrpg-token-badge__chg.is-down { color: var(--jrpg-danger); }

