/*
Theme Name: Saffron
Description: A quiet, journal-style classic theme for long-form Indonesian reading sites. Serif typography on warm bone paper, charcoal ink text, muted olive accents, and a hand-ruled measuring line that recurs as a divider between sections.
Version: 1.4.3
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* ============================================================
   Tokens
   ============================================================ */
:root {
	--bg: #f5f0e4;
	--bg-soft: #ede6d4;
	--fg: #2d2a24;
	--muted: #6e6759;
	--border: #d9d0bc;
	--accent: #687438;
	--accent-deep: #4e5929;
	--radius: 3px;
	--shadow: 0 1px 3px rgba(45, 42, 36, .08);
	--media-ratio: 8 / 5;
	--thumb-ratio: 8 / 5;
	--serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
	--sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--wrap: 1120px;
	--gap: 1.5rem;
}

/* ============================================================
   Base
   ============================================================ */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background-color: var(--bg);
	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='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
	color: var(--fg);
	font-family: var(--serif);
	font-size: 1.0625rem;
	line-height: 1.75;
	overflow-wrap: break-word;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--accent-deep);
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

a:hover,
a:focus-visible {
	color: var(--accent);
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--serif);
	font-weight: 600;
	line-height: 1.3;
	color: var(--fg);
	margin: 0 0 .75rem;
}

p {
	margin: 0 0 1.25rem;
}

figure {
	margin: 0;
}

blockquote {
	margin: 1.5rem 0;
	padding: .25rem 0 .25rem 1.25rem;
	border-left: 3px solid var(--accent);
	color: var(--muted);
	font-style: italic;
}

code, pre, kbd {
	font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
	font-size: .9em;
	background: var(--bg-soft);
	border: 1px solid var(--border);
	border-radius: var(--radius);
}

code {
	padding: .1em .35em;
}

pre {
	padding: 1rem 1.25rem;
	overflow-x: auto;
}

pre code {
	background: none;
	border: 0;
	padding: 0;
}

table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5rem 0;
	font-size: .95rem;
}

th, td {
	padding: .5rem .75rem;
	border: 1px solid var(--border);
	text-align: left;
}

th {
	background: var(--bg-soft);
	font-family: var(--sans);
	font-size: .85rem;
	text-transform: uppercase;
	letter-spacing: .04em;
}

input, textarea, select, button {
	font-family: var(--sans);
	font-size: 1rem;
	color: var(--fg);
}

input[type="text"],
input[type="search"],
input[type="email"],
input[type="url"],
textarea {
	width: 100%;
	padding: .6rem .8rem;
	background: #faf7ee;
	border: 1px solid var(--border);
	border-radius: var(--radius);
}

input:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

/* ============================================================
   Utilities
   ============================================================ */
.qnjrl-wrap {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 1.25rem;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.qnjrl-skip:focus {
	position: fixed !important;
	top: .75rem;
	left: .75rem;
	width: auto;
	height: auto;
	margin: 0;
	padding: .5rem 1rem;
	clip: auto;
	background: var(--fg);
	color: var(--bg);
	z-index: 100;
	font-family: var(--sans);
	font-size: .9rem;
}

/* Hand-ruled measuring line: a slightly wobbly ink stroke with a tick. */
.qnjrl-rule {
	height: 12px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='12' viewBox='0 0 140 12'%3E%3Cpath d='M1 6.5 Q 18 5 35 6.5 T 69 6.5 T 103 6.5 T 139 6' stroke='%23687438' stroke-width='1' fill='none' stroke-linecap='round'/%3E%3Cpath d='M117 3.2 L117.6 9.6' stroke='%23687438' stroke-width='1' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x center / auto 12px;
	opacity: .55;
}

/* ============================================================
   Header
   ============================================================ */
.qnjrl-header {
	padding-top: 1.25rem;
}

.qnjrl-header-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding-bottom: 1rem;
}

.qnjrl-site-name {
	margin: 0;
	font-size: 1.6rem;
	font-weight: 600;
	letter-spacing: .01em;
}

.qnjrl-site-name a {
	color: var(--fg);
	text-decoration: none;
}

.qnjrl-site-name a:hover {
	color: var(--accent-deep);
}

/* ---------- Primary navigation ---------- */
.qnjrl-nav-toggle {
	display: none;
	align-items: center;
	gap: .5rem;
	padding: .5rem .8rem;
	background: none;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	cursor: pointer;
	font-family: var(--sans);
	font-size: .9rem;
	color: var(--fg);
}

.qnjrl-nav-toggle-bars,
.qnjrl-nav-toggle-bars::before,
.qnjrl-nav-toggle-bars::after {
	display: block;
	width: 16px;
	height: 1.5px;
	background: var(--fg);
	content: "";
}

.qnjrl-nav-toggle-bars {
	position: relative;
}

.qnjrl-nav-toggle-bars::before {
	position: absolute;
	top: -5px;
}

.qnjrl-nav-toggle-bars::after {
	position: absolute;
	top: 5px;
}

.qnjrl-menu {
	display: flex;
	flex-wrap: wrap;
	gap: .25rem 1.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
	font-family: var(--sans);
	font-size: .95rem;
}

.qnjrl-menu li {
	position: relative;
}

.qnjrl-menu a {
	display: block;
	padding: .4rem .1rem;
	color: var(--fg);
	text-decoration: none;
}

.qnjrl-menu > li > a {
	border-bottom: 2px solid transparent;
}

.qnjrl-menu > li > a:hover,
.qnjrl-menu > li > a:focus-visible {
	color: var(--accent-deep);
	border-bottom-color: var(--accent);
}

.qnjrl-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 30;
	min-width: 230px;
	margin: 0;
	padding: .5rem 0;
	list-style: none;
	background: #faf7ee;
	border: 1px solid var(--border);
	border-top: 2px solid var(--accent);
	border-radius: 0 0 var(--radius) var(--radius);
	box-shadow: var(--shadow);
	visibility: hidden;
	opacity: 0;
}

.qnjrl-menu li:hover > .sub-menu,
.qnjrl-menu li:focus-within > .sub-menu,
.qnjrl-menu li.is-open > .sub-menu {
	visibility: visible;
	opacity: 1;
}

.qnjrl-menu .sub-menu a {
	padding: .45rem 1.1rem;
	white-space: nowrap;
}

.qnjrl-menu .sub-menu a:hover,
.qnjrl-menu .sub-menu a:focus-visible {
	background: var(--bg-soft);
	color: var(--accent-deep);
}

.qnjrl-sub-toggle {
	display: none;
	position: absolute;
	top: 0;
	right: 0;
	width: 2.5rem;
	height: 100%;
	background: none;
	border: 0;
	cursor: pointer;
	color: var(--muted);
	font-size: .8rem;
}

/* ============================================================
   Layout
   ============================================================ */
.qnjrl-main {
	padding: 1.5rem 0 3rem;
}

.qnjrl-two-col {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 3rem;
	align-items: start;
}

/* ============================================================
   Breadcrumb
   ============================================================ */
.breadcrumb {
	margin-bottom: 1.25rem;
	font-family: var(--sans);
	font-size: .82rem;
	color: var(--muted);
}

.trail {
	display: flex;
	flex-wrap: wrap;
	gap: .3rem .55rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.crumb + .crumb::before {
	content: "\203A";
	margin-right: .55rem;
	color: var(--border);
}

.crumb a {
	color: var(--muted);
	text-decoration: none;
}

.crumb a:hover {
	color: var(--accent-deep);
	text-decoration: underline;
}

.crumb[aria-current="page"] {
	color: var(--fg);
}

/* ============================================================
   Post rows (archives, search, home list)
   ============================================================ */
.qnjrl-row {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	gap: 1.5rem;
	padding: 1.75rem 0;
	border-bottom: 1px solid var(--border);
}

.qnjrl-row:first-of-type {
	padding-top: 0;
}

.qnjrl-row-thumb img,
.qnjrl-hero-thumb img,
.qnjrl-rel-thumb img {
	width: 100%;
	aspect-ratio: var(--thumb-ratio);
	object-fit: cover;
	border: 1px solid var(--border);
	border-radius: var(--radius);
}

.qnjrl-row-title {
	font-size: 1.35rem;
	margin-bottom: .3rem;
}

.qnjrl-row-title a,
.qnjrl-hero-title a,
.qnjrl-rel-title a {
	color: var(--fg);
	text-decoration: none;
}

.qnjrl-row-title a:hover,
.qnjrl-hero-title a:hover,
.qnjrl-rel-title a:hover {
	color: var(--accent-deep);
	text-decoration: underline;
}

.qnjrl-excerpt {
	color: var(--muted);
	font-size: .98rem;
}

.qnjrl-excerpt p {
	margin-bottom: 0;
}

.qnjrl-meta {
	margin: 0 0 .6rem;
	font-family: var(--sans);
	font-size: .82rem;
	letter-spacing: .02em;
	color: var(--muted);
}

.qnjrl-meta a {
	color: var(--muted);
}

.qnjrl-meta a:hover {
	color: var(--accent-deep);
}

.qnjrl-meta-sep {
	margin: 0 .35rem;
}

/* ============================================================
   Homepage hero
   ============================================================ */
.qnjrl-hero {
	padding-bottom: 2rem;
}

.qnjrl-hero-thumb {
	display: block;
	margin-bottom: 1.25rem;
}

.qnjrl-hero-thumb img {
	aspect-ratio: var(--media-ratio);
}

.qnjrl-hero-title {
	font-size: 2rem;
	margin-bottom: .4rem;
}

.qnjrl-more {
	display: inline-block;
	margin-top: .9rem;
	font-family: var(--sans);
	font-size: .85rem;
	letter-spacing: .03em;
}

/* ============================================================
   Archive headers
   ============================================================ */
.qnjrl-archive-head {
	margin-bottom: 1.75rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--border);
}

.qnjrl-archive-title {
	font-size: 1.9rem;
	margin-bottom: .35rem;
}

.qnjrl-archive-desc {
	color: var(--muted);
	font-size: .95rem;
}

.qnjrl-search-again {
	margin-bottom: 1.75rem;
}

/* ============================================================
   Single article
   ============================================================ */
.qnjrl-article-head {
	margin-bottom: 1.5rem;
}

.qnjrl-title {
	font-size: 2.2rem;
	margin-bottom: .5rem;
}

.qnjrl-featured {
	margin: 0 0 1.75rem;
}

.qnjrl-featured img {
	width: 100%;
	aspect-ratio: var(--media-ratio);
	object-fit: cover;
	border: 1px solid var(--border);
	border-radius: var(--radius);
}

/* Article note */
.qnjrl-note {
	margin: 0 0 1.75rem;
	padding: 1rem 1.25rem;
	background: var(--bg-soft);
	border-left: 3px solid var(--accent);
	border-radius: 0 var(--radius) var(--radius) 0;
}

.qnjrl-note-label {
	margin: 0 0 .25rem;
	font-family: var(--sans);
	font-size: .78rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--accent-deep);
}

.qnjrl-note-text {
	margin: 0;
	font-size: .95rem;
	color: var(--fg);
}

/* Table of contents */
.qnjrl-toc {
	margin: 0 0 2rem;
	padding: 1.1rem 1.4rem 1.25rem;
	border: 1px solid var(--border);
	border-top: 2px solid var(--accent);
	border-radius: var(--radius);
	background: #faf7ee;
}

.qnjrl-toc-title {
	margin: 0 0 .6rem;
	padding-bottom: .5rem;
	font-family: var(--sans);
	font-size: .82rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--muted);
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='12' viewBox='0 0 140 12'%3E%3Cpath d='M1 6.5 Q 18 5 35 6.5 T 69 6.5 T 103 6.5 T 139 6' stroke='%23687438' stroke-width='1' fill='none' stroke-linecap='round'/%3E%3Cpath d='M117 3.2 L117.6 9.6' stroke='%23687438' stroke-width='1' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x bottom / auto 8px;
}

.qnjrl-toc ol {
	margin: 0;
	padding-left: 1.4rem;
	font-size: .95rem;
}

.qnjrl-toc li {
	margin-bottom: .25rem;
}

.qnjrl-toc a {
	text-decoration: none;
}

.qnjrl-toc a:hover {
	text-decoration: underline;
}

/* Body */
.qnjrl-body h2 {
	font-size: 1.55rem;
	margin-top: 2.25rem;
}

.qnjrl-body h3 {
	font-size: 1.25rem;
	margin-top: 1.75rem;
}

.qnjrl-body h4 {
	font-size: 1.1rem;
	margin-top: 1.5rem;
}

.qnjrl-body ul,
.qnjrl-body ol {
	padding-left: 1.5rem;
	margin: 0 0 1.25rem;
}

.qnjrl-body li {
	margin-bottom: .35rem;
}

.qnjrl-body img {
	border: 1px solid var(--border);
	border-radius: var(--radius);
}

.qnjrl-page-links {
	font-family: var(--sans);
	font-size: .9rem;
}

/* Tags */
.qnjrl-tags {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin: 2rem 0 0;
	font-family: var(--sans);
	font-size: .82rem;
}

.qnjrl-tags a {
	display: inline-block;
	padding: .2rem .7rem;
	border: 1px solid var(--border);
	border-radius: 999px;
	color: var(--muted);
	text-decoration: none;
	background: #faf7ee;
}

.qnjrl-tags a:hover {
	border-color: var(--accent);
	color: var(--accent-deep);
}

/* Author bio */
.qnjrl-author {
	display: flex;
	gap: 1.1rem;
	align-items: flex-start;
	margin: 2.25rem 0 0;
	padding: 1.25rem 1.4rem;
	background: var(--bg-soft);
	border-radius: var(--radius);
}

.qnjrl-author-avatar {
	flex: 0 0 auto;
}

.qnjrl-author-avatar img {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	border: 1px solid var(--border);
}

.qnjrl-author-name {
	margin: 0 0 .25rem;
	font-weight: 600;
	font-size: 1.02rem;
}

.qnjrl-author-name a {
	color: var(--fg);
	text-decoration: none;
}

.qnjrl-author-name a:hover {
	color: var(--accent-deep);
	text-decoration: underline;
}

.qnjrl-author-desc {
	margin: 0;
	font-size: .93rem;
	color: var(--muted);
}

/* Related posts */
.qnjrl-related {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--border);
}

.qnjrl-related-title {
	font-size: 1.3rem;
	margin-bottom: 1.1rem;
}

.qnjrl-related-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
}

.qnjrl-rel-thumb {
	display: block;
	margin-bottom: .6rem;
}

.qnjrl-rel-title {
	font-size: 1.02rem;
	margin-bottom: .15rem;
}

.qnjrl-rel-date {
	margin: 0;
	font-family: var(--sans);
	font-size: .78rem;
	color: var(--muted);
}

/* ============================================================
   Comments
   ============================================================ */
.qnjrl-comments {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--border);
}

.qnjrl-comments-title {
	font-size: 1.3rem;
}

.qnjrl-comment-list {
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
}

.qnjrl-comment-list .comment {
	padding: 1.1rem 0;
	border-bottom: 1px solid var(--border);
}

.qnjrl-comment-list .children {
	list-style: none;
	margin: 0;
	padding-left: 1.5rem;
}

.qnjrl-comment-list .comment-author {
	display: flex;
	align-items: center;
	gap: .6rem;
	font-family: var(--sans);
	font-size: .9rem;
	font-weight: 600;
}

.qnjrl-comment-list .avatar {
	border-radius: 50%;
	border: 1px solid var(--border);
}

.qnjrl-comment-list .comment-metadata {
	font-family: var(--sans);
	font-size: .78rem;
	color: var(--muted);
	margin: .15rem 0 .5rem;
}

.qnjrl-comment-list .reply {
	font-family: var(--sans);
	font-size: .82rem;
}

.qnjrl-comments-closed {
	font-size: .9rem;
	color: var(--muted);
	font-style: italic;
}

.comment-respond {
	margin-top: 1.5rem;
}

.comment-reply-title {
	font-size: 1.2rem;
}

.comment-form label {
	display: block;
	font-family: var(--sans);
	font-size: .85rem;
	margin-bottom: .3rem;
}

.comment-form p {
	margin-bottom: 1rem;
}

.comment-form .submit,
.search-submit {
	display: inline-block;
	padding: .55rem 1.4rem;
	background: var(--accent);
	border: 1px solid var(--accent-deep);
	border-radius: var(--radius);
	color: #faf7ee;
	font-family: var(--sans);
	font-size: .92rem;
	cursor: pointer;
}

.comment-form .submit:hover,
.search-submit:hover {
	background: var(--accent-deep);
}

/* ============================================================
   Search form
   ============================================================ */
.search-form {
	display: flex;
	gap: .5rem;
}

.search-form .search-field {
	flex: 1;
	min-width: 0;
}

/* ============================================================
   Sidebar
   ============================================================ */
.qnjrl-widget {
	margin-bottom: 2.25rem;
	padding-bottom: 1.75rem;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='12' viewBox='0 0 140 12'%3E%3Cpath d='M1 6.5 Q 18 5 35 6.5 T 69 6.5 T 103 6.5 T 139 6' stroke='%23687438' stroke-width='1' fill='none' stroke-linecap='round'/%3E%3Cpath d='M117 3.2 L117.6 9.6' stroke='%23687438' stroke-width='1' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x bottom / auto 10px;
}

.qnjrl-widget:last-child {
	background: none;
	padding-bottom: 0;
}

.qnjrl-widget-title {
	font-family: var(--sans);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .07em;
	font-size: .85rem;
	color: var(--fg);
	margin-bottom: .9rem;
}

.qnjrl-cat-list,
.qnjrl-recent-list,
.qnjrl-plain-list {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: .95rem;
}

.qnjrl-cat-list li,
.qnjrl-plain-list li {
	padding: .35rem 0;
	border-bottom: 1px dashed var(--border);
}

.qnjrl-cat-list li:last-child,
.qnjrl-plain-list li:last-child {
	border-bottom: 0;
}

.qnjrl-cat-list a,
.qnjrl-plain-list a {
	text-decoration: none;
}

.qnjrl-cat-list a:hover,
.qnjrl-plain-list a:hover {
	text-decoration: underline;
}

.qnjrl-cat-list .count,
.qnjrl-cat-list li > .children {
	color: var(--muted);
	font-family: var(--sans);
	font-size: .8rem;
}

.qnjrl-recent-list li {
	padding: .4rem 0;
	border-bottom: 1px dashed var(--border);
}

.qnjrl-recent-list li:last-child {
	border-bottom: 0;
}

.qnjrl-recent-list a {
	display: block;
	text-decoration: none;
	line-height: 1.45;
}

.qnjrl-recent-list a:hover {
	text-decoration: underline;
}

.qnjrl-recent-date {
	font-family: var(--sans);
	font-size: .78rem;
	color: var(--muted);
}

/* ============================================================
   Pagination
   ============================================================ */
.pagination,
.nav-links {
	font-family: var(--sans);
	font-size: .9rem;
}

.qnjrl-content .pagination {
	margin-top: 2rem;
	display: flex;
	justify-content: center;
}

.qnjrl-content .pagination .nav-links {
	display: flex;
	gap: .4rem;
}

.page-numbers {
	display: inline-block;
	padding: .3rem .8rem;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	color: var(--fg);
	text-decoration: none;
	background: #faf7ee;
}

.page-numbers.current {
	background: var(--accent);
	border-color: var(--accent-deep);
	color: #faf7ee;
}

.page-numbers:hover:not(.current) {
	border-color: var(--accent);
	color: var(--accent-deep);
}

.page-numbers.dots {
	border: 0;
	background: none;
}

/* ============================================================
   Footer
   ============================================================ */
.qnjrl-footer {
	margin-top: 2rem;
	padding-bottom: 2rem;
}

.qnjrl-footer .qnjrl-rule {
	margin-bottom: 2rem;
}

.qnjrl-footer-nav {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.75rem;
	list-style: none;
	margin: 0 0 2rem;
	padding: 0;
}

.qnjrl-footer-head {
	display: block;
	margin-bottom: .6rem;
	font-family: var(--sans);
	font-size: .82rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .07em;
	color: var(--fg);
}

.qnjrl-footer-sub {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: .9rem;
}

.qnjrl-footer-item {
	margin-bottom: .3rem;
}

.qnjrl-footer-item a {
	color: var(--muted);
	text-decoration: none;
}

.qnjrl-footer-item a:hover {
	color: var(--accent-deep);
	text-decoration: underline;
}

.qnjrl-footer-note,
.qnjrl-copy {
	margin: 0;
	font-family: var(--sans);
	font-size: .82rem;
	color: var(--muted);
	text-align: center;
}

.qnjrl-footer-note {
	margin-bottom: .4rem;
}

/* ============================================================
   Misc
   ============================================================ */
.qnjrl-empty {
	padding: 2rem 0;
	color: var(--muted);
	font-style: italic;
}

.qnjrl-404 .search-form {
	max-width: 420px;
	margin-top: 1rem;
}

.qnjrl-404-recent {
	margin-top: 2rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--border);
}

.alignleft {
	float: left;
	margin: .3rem 1.25rem 1rem 0;
}

.alignright {
	float: right;
	margin: .3rem 0 1rem 1.25rem;
}

.aligncenter {
	display: block;
	margin: 1.25rem auto;
}

.wp-caption,
.gallery-caption {
	max-width: 100%;
	font-size: .85rem;
	color: var(--muted);
}

.sticky,
.bypostauthor {
	/* positions kept intentionally plain */
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
	.qnjrl-body {
		overflow-x: hidden;
	}

	.qnjrl-body table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.qnjrl-two-col {
		grid-template-columns: minmax(0, 1fr);
		gap: 2.5rem;
	}

	.qnjrl-nav-toggle {
		display: inline-flex;
	}

	.qnjrl-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		z-index: 40;
		background: #faf7ee;
		border-bottom: 1px solid var(--border);
		box-shadow: var(--shadow);
		padding: .75rem 1.25rem 1.25rem;
	}

	.qnjrl-header-row {
		position: relative;
		flex-wrap: wrap;
	}

	.qnjrl-nav.is-open {
		display: block;
	}

	.qnjrl-menu {
		flex-direction: column;
		gap: 0;
	}

	.qnjrl-menu > li {
		border-bottom: 1px dashed var(--border);
	}

	.qnjrl-menu > li:last-child {
		border-bottom: 0;
	}

	.qnjrl-menu > li > a {
		padding: .7rem 2.5rem .7rem 0;
		border-bottom: 0;
	}

	.qnjrl-menu .sub-menu {
		position: static;
		min-width: 0;
		box-shadow: none;
		border: 0;
		border-top: 0;
		padding: 0 0 .5rem 1rem;
		visibility: visible;
		opacity: 1;
		display: none;
	}

	.qnjrl-menu li.is-open > .sub-menu {
		display: block;
	}

	.qnjrl-menu .sub-menu a {
		padding: .5rem 0;
		white-space: normal;
	}

	/* Constrain the toggle to the top-level link row: with height:100% it
	   would stretch over the expanded sub-menu and the arrow would land
	   mid-list (browser centers the glyph inside the tall button). */
	.qnjrl-menu > li > .qnjrl-sub-toggle {
		display: block;
		height: calc(.95rem * 1.75 + 1.4rem);
	}

	.qnjrl-row {
		grid-template-columns: 140px minmax(0, 1fr);
		gap: 1rem;
	}

	.qnjrl-related-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.qnjrl-footer-nav {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.qnjrl-row {
		grid-template-columns: minmax(0, 1fr);
	}

	.qnjrl-row-thumb img {
		aspect-ratio: var(--media-ratio);
	}

	.qnjrl-related-grid,
	.qnjrl-footer-nav {
		grid-template-columns: minmax(0, 1fr);
	}

	.qnjrl-title {
		font-size: 1.7rem;
	}

	.qnjrl-hero-title {
		font-size: 1.5rem;
	}

	.qnjrl-author {
		flex-direction: column;
	}
}
