/* ==========================================================================
   Auravia – Single post
   ========================================================================== */

.aur-single {
	--aur-sticky-top: calc(var(--aur-header-h, 110px) + 28px);
	display: grid;
	grid-template-columns: 80px minmax(0, 760px) 270px;
	justify-content: center;
	gap: 40px;
	max-width: 1240px;
	margin: 0 auto;
	padding: 28px var(--aur-gutter) 64px;
	background: #fbf8f6;
	color: var(--aur-ink);
	font-family: var(--aur-font);
	box-sizing: content-box;
}

.aur-single--no-toc { grid-template-columns: 80px minmax(0, 760px) 80px; }

.aur-single *,
.aur-single *::before,
.aur-single *::after { box-sizing: border-box; }

body.single-post { background: #fbf8f6; }

/* ---------- Reading progress ---------- */
.aur-read-progress {
	position: fixed;
	z-index: 99;
	left: 0;
	right: 0;
	top: var(--aur-header-h, 0px);
	height: 3px;
	pointer-events: none;
}

.aur-read-progress span {
	display: block;
	height: 100%;
	background: var(--aur-maroon);
	transform: scaleX(var(--p, 0));
	transform-origin: left;
}

/* ---------- Left share rail ---------- */
.aur-rail-share {
	padding-top: var(--aur-content-top, 420px);
}

.aur-rail-share__inner {
	position: sticky;
	top: var(--aur-sticky-top);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	opacity: 0;
	visibility: hidden;
	transform: translateX(-14px);
	transition: opacity .45s var(--aur-ease), transform .45s var(--aur-ease), visibility .45s;
}

.aur-rail-share.is-visible .aur-rail-share__inner {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.aur-rail-share__label {
	margin-bottom: 4px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
}

.aur-single .aur-share {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	cursor: pointer;
	text-decoration: none;
	transition: transform .2s, background .2s, color .2s, box-shadow .2s;
}

.aur-share--rail {
	width: 46px;
	height: 46px;
	border-radius: 10px;
	background: #fff;
	color: var(--c);
	box-shadow: 0 2px 10px rgba(35, 26, 26, .07);
}

.aur-share--rail:hover,
.aur-share--rail:focus-visible {
	background: var(--aur-maroon);
	color: #fff;
	transform: translateY(-2px);
}

/* Messenger works only on phones */
@media (hover: hover) and (pointer: fine) {
	.aur-share--touch { display: none !important; }
}

/* ---------- Article header ---------- */
.aur-post { min-width: 0; }

.aur-post__crumbs {
	justify-content: center;
	margin-bottom: 18px;
}

.aur-single .aur-crumbs a { color: var(--aur-maroon); text-decoration: none; }
.aur-single .aur-crumbs a:hover { text-decoration: underline; }

.aur-post__hero {
	margin: 0;
	overflow: hidden;
	border-radius: 18px;
	background: repeating-linear-gradient(135deg, #efe3de 0 10px, #f6eeea 10px 20px);
}

.aur-post__hero-img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.aur-post__hero figcaption {
	padding: 8px 12px;
	background: #fff;
	color: var(--aur-muted);
	font-size: 13px;
	text-align: center;
}

.aur-post__title {
	margin: 26px 0 14px;
	color: var(--aur-ink);
	font-family: var(--aur-font);
	font-size: clamp(26px, 3vw, 38px);
	font-weight: 700;
	line-height: 1.35;
	text-align: center;
	text-wrap: balance;
}

.aur-post__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px 14px;
	margin-bottom: 30px;
	color: var(--aur-muted);
	font-size: 14px;
}

.aur-post__meta a { color: inherit; text-decoration: none; }
.aur-post__meta a:hover { color: var(--aur-maroon); }

.aur-single .aur-post__author {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--aur-ink);
	font-size: 15px;
	font-weight: 600;
}

.aur-post__sep { color: #ddd0cc; }

.aur-avatar {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	font-weight: 700;
}

.aur-avatar--sm {
	width: 32px;
	height: 32px;
	background: #f3e3e2;
	color: var(--aur-maroon);
	font-size: 14px;
}

.aur-avatar--lg {
	width: 64px;
	height: 64px;
	background: var(--aur-maroon);
	color: #fff;
	font-size: 24px;
}

/* ---------- Content typography ---------- */
.aur-prose {
	color: #2d2322;
	font-size: 18px;
	line-height: 1.9;
	overflow-wrap: break-word;
}

.aur-prose > * { margin-top: 0; margin-bottom: 18px; }

.aur-prose h2,
.aur-prose h3,
.aur-prose h4 {
	color: var(--aur-ink);
	font-family: var(--aur-font);
	font-weight: 700;
	scroll-margin-top: calc(var(--aur-header-h, 110px) + 24px);
}

.aur-prose h2 { margin: 40px 0 12px; font-size: 26px; line-height: 1.4; }
.aur-prose h3 { margin: 26px 0 8px; font-size: 20px; line-height: 1.45; }
.aur-prose h4 { margin: 22px 0 8px; font-size: 18px; }

.aur-prose a {
	color: var(--aur-maroon);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.aur-prose a:hover { text-decoration-thickness: 2px; }

.aur-prose strong { color: var(--aur-ink); font-weight: 700; }

.aur-prose ul,
.aur-prose ol { padding-left: 24px; }
.aur-prose li + li { margin-top: 6px; }
.aur-prose li::marker { color: var(--aur-maroon); }

.aur-prose img {
	max-width: 100%;
	height: auto;
	border-radius: 14px;
}

.aur-prose figure { margin-left: 0; margin-right: 0; }

.aur-prose figcaption,
.aur-prose .wp-element-caption {
	margin-top: 8px;
	color: var(--aur-muted);
	font-size: 14px;
	line-height: 1.6;
	text-align: center;
}

.aur-prose .alignwide,
.aur-prose .alignfull { width: 100%; max-width: 100%; margin-left: 0; margin-right: 0; }

.aur-prose blockquote,
.aur-prose .wp-block-quote,
.aur-prose .wp-block-pullquote {
	position: relative;
	margin: 0 0 24px;
	padding: 22px 24px 22px 42px;
	border: 0;
	border-radius: 14px;
	background: #f6e9e8;
	color: #3a2c2b;
	font-size: 17px;
	font-style: italic;
	line-height: 1.75;
	text-align: left;
}

.aur-prose blockquote::before {
	content: '';
	position: absolute;
	left: 22px;
	top: 22px;
	bottom: 22px;
	width: 4px;
	border-radius: 2px;
	background: var(--aur-maroon);
}

.aur-prose blockquote p:last-child { margin-bottom: 0; }

.aur-prose blockquote cite {
	display: block;
	margin-top: 8px;
	color: var(--aur-muted);
	font-size: 14px;
	font-style: normal;
}

.aur-prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: 16px;
	line-height: 1.6;
}

.aur-prose .wp-block-table { overflow-x: auto; }

.aur-prose th,
.aur-prose td {
	padding: 10px 12px;
	border: 1px solid var(--aur-line);
	text-align: left;
}

.aur-prose th { background: #f6eeea; font-weight: 700; }

.aur-prose [tabindex="-1"]:focus { outline: none; }

.aur-prose hr {
	margin: 36px auto;
	border: 0;
	border-top: 1px solid var(--aur-line);
}

.aur-prose code {
	padding: 2px 6px;
	border-radius: 6px;
	background: #f3ece9;
	font-size: .9em;
}

.aur-prose iframe,
.aur-prose video { max-width: 100%; border-radius: 14px; }

/* ---------- TOC (shared list) ---------- */
.aur-toc-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.aur-single .aur-toc-list a,
.aur-tocsheet .aur-toc-list a {
	display: flex;
	gap: 8px;
	color: #6d5f5d;
	text-decoration: none;
	transition: color .2s, border-color .2s;
}

.aur-single .aur-toc-list a:hover,
.aur-tocsheet .aur-toc-list a:hover { color: var(--aur-maroon); }

.aur-toc-list a.is-active {
	color: var(--aur-maroon) !important;
	font-weight: 700;
}

.aur-toc-list__n { flex-shrink: 0; }

/* right sticky TOC */
.aur-toc-side { padding-top: var(--aur-content-top, 420px); }

.aur-toc-side__box {
	position: sticky;
	top: var(--aur-sticky-top);
	padding: 22px 20px;
	border: 1px solid #efe6e2;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 10px 40px rgba(35, 26, 26, .06);
}

.aur-toc-side__title {
	margin: 0 0 14px;
	font-size: 17px;
	font-weight: 700;
}

.aur-toc-side .aur-toc-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-height: calc(100vh - var(--aur-header-h, 110px) - 140px);
	overflow-y: auto;
	padding-right: 6px;
	overscroll-behavior: contain;
}

.aur-toc-side .aur-toc-list a {
	padding-left: 10px;
	border-left: 2px solid transparent;
	font-size: 15px;
	line-height: 1.5;
}

.aur-toc-side .aur-toc-list a.is-active { border-left-color: var(--aur-maroon); }

/* inline collapsible TOC (mobile/tablet) */
.aur-toc-inline {
	display: none;
	margin-bottom: 24px;
	overflow: hidden;
	border: 1px solid var(--aur-line);
	border-radius: 14px;
	background: #fff;
}

.aur-toc-inline summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 18px;
	font-size: 17px;
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}

.aur-toc-inline summary::-webkit-details-marker { display: none; }

.aur-toc-inline__icon {
	position: relative;
	width: 14px;
	height: 14px;
}

.aur-toc-inline__icon::before,
.aur-toc-inline__icon::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: 6px;
	height: 2px;
	border-radius: 2px;
	background: var(--aur-maroon);
	transition: transform .25s var(--aur-ease);
}

.aur-toc-inline__icon::after { transform: rotate(90deg); }
.aur-toc-inline[open] .aur-toc-inline__icon::after { transform: rotate(0); }

.aur-toc-inline .aur-toc-list {
	padding: 4px 18px 12px;
	border-top: 1px solid #f3ece9;
}

.aur-toc-inline .aur-toc-list a,
.aur-tocsheet .aur-toc-list a {
	padding: 10px 0;
	font-size: 16px;
	line-height: 1.5;
}

/* mobile sticky "now reading" bar */
.aur-tocbar {
	position: fixed;
	z-index: 98;
	left: 0;
	right: 0;
	top: var(--aur-header-h, 0px);
	display: none;
	align-items: center;
	gap: 12px;
	width: 100%;
	margin: 0;
	padding: 10px var(--aur-gutter);
	border: 0;
	border-bottom: 1px solid var(--aur-line);
	background: rgba(255, 255, 255, .97);
	box-shadow: 0 6px 18px rgba(35, 26, 26, .06);
	color: var(--aur-ink);
	font-family: var(--aur-font);
	text-align: left;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-100%);
	transition: opacity .3s var(--aur-ease), transform .3s var(--aur-ease), visibility .3s;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.aur-tocbar.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.aur-tocbar__icon {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #f6e9e8;
	color: var(--aur-maroon);
}

.aur-tocbar__text {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
	line-height: 1.35;
}

.aur-tocbar__label {
	color: var(--aur-muted);
	font-size: 12px;
}

.aur-tocbar__current {
	overflow: hidden;
	font-size: 15px;
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.aur-tocbar__chev { color: var(--aur-maroon); }

/* bottom sheet */
.aur-tocsheet {
	position: fixed;
	z-index: 10000;
	inset: 0;
	visibility: hidden;
	pointer-events: none;
	font-family: var(--aur-font);
}

.aur-tocsheet.is-open {
	visibility: visible;
	pointer-events: auto;
}

.aur-tocsheet__overlay {
	position: absolute;
	inset: 0;
	background: rgba(35, 26, 26, .45);
	opacity: 0;
	transition: opacity .3s var(--aur-ease);
}

.aur-tocsheet.is-open .aur-tocsheet__overlay { opacity: 1; }

.aur-tocsheet__panel {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	max-height: 75vh;
	max-height: 75dvh;
	padding: 8px 20px calc(20px + env(safe-area-inset-bottom));
	overflow-y: auto;
	border-radius: 20px 20px 0 0;
	background: #fff;
	box-shadow: 0 -10px 40px rgba(35, 26, 26, .15);
	transform: translateY(100%);
	transition: transform .32s var(--aur-ease);
}

.aur-tocsheet.is-open .aur-tocsheet__panel { transform: none; }

.aur-tocsheet__handle {
	width: 42px;
	height: 4px;
	margin: 4px auto 10px;
	border-radius: 4px;
	background: #e2d6d2;
}

.aur-tocsheet__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 8px;
	border-bottom: 1px solid #f3ece9;
}

.aur-tocsheet__head p {
	margin: 0;
	color: var(--aur-ink);
	font-size: 18px;
	font-weight: 700;
}

.aur-tocsheet__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 1px solid var(--aur-line);
	border-radius: 50%;
	background: #fff;
	color: var(--aur-ink);
	cursor: pointer;
}

.aur-tocsheet .aur-toc-list li + li { border-top: 1px solid #f7f1ef; }
.aur-tocsheet .aur-toc-list a { padding: 13px 0; }

/* floating share (mobile) */
.aur-fab-share {
	position: fixed;
	z-index: 97;
	right: 16px;
	bottom: calc(18px + env(safe-area-inset-bottom));
	display: none;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--aur-maroon);
	color: #fff;
	box-shadow: 0 10px 24px rgba(142, 23, 29, .35);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(16px) scale(.9);
	transition: opacity .35s var(--aur-ease), transform .35s var(--aur-ease), visibility .35s;
}

.aur-fab-share.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
}

/* toast */
.aur-toast {
	position: fixed;
	z-index: 10001;
	left: 50%;
	bottom: 90px;
	padding: 10px 18px;
	border-radius: 999px;
	background: var(--aur-ink);
	color: #fff;
	font-family: var(--aur-font);
	font-size: 15px;
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, 10px);
	transition: all .3s var(--aur-ease);
}

.aur-toast.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
}

/* ---------- After content ---------- */
.aur-post__tags {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 40px 0 30px;
}

.aur-single .aur-post__tags a {
	padding: 6px 14px;
	border: 1px solid var(--aur-line);
	border-radius: 6px;
	background: #fff;
	color: #6d5f5d;
	font-size: 14px;
	text-decoration: none;
	transition: border-color .2s, color .2s;
}

.aur-single .aur-post__tags a:hover {
	border-color: var(--aur-maroon);
	color: var(--aur-maroon);
}

.aur-post__share { margin-bottom: 56px; text-align: center; }

.aur-post__share-title {
	margin: 0 0 14px;
	font-size: 17px;
	font-weight: 700;
}

.aur-post__share-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.aur-share--row {
	width: 42px;
	height: 42px;
	border-radius: 8px;
	background: var(--c);
	color: #fff;
}

.aur-share--row:hover,
.aur-share--row:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 6px 14px rgba(35, 26, 26, .2);
}

.aur-section-title {
	margin: 0 0 22px;
	color: var(--aur-ink);
	font-family: var(--aur-font);
	font-size: 26px;
	font-weight: 700;
	text-align: center;
}

/* related */
.aur-related { margin-bottom: 48px; }

.aur-related__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.aur-rcard {
	overflow: hidden;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 6px 24px rgba(35, 26, 26, .07);
	transition: box-shadow .25s, transform .25s;
}

.aur-rcard:hover {
	box-shadow: 0 12px 30px rgba(142, 23, 29, .14);
	transform: translateY(-3px);
}

.aur-rcard__media { aspect-ratio: 16 / 9; }

.aur-rcard__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 14px 16px 18px;
}

.aur-rcard__cat {
	color: var(--aur-maroon);
	font-size: 13px;
	font-weight: 600;
}

.aur-rcard__title {
	margin: 0;
	font-family: var(--aur-font);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.55;
}

.aur-single .aur-rcard__title a { color: var(--aur-ink); text-decoration: none; }
.aur-single .aur-rcard__title a:hover { color: var(--aur-maroon); }

/* author box */
.aur-authorbox {
	display: flex;
	gap: 18px;
	margin-bottom: 52px;
	padding: 26px;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 6px 24px rgba(35, 26, 26, .06);
}

.aur-authorbox__body { flex: 1; min-width: 0; }

.aur-authorbox__label {
	display: block;
	color: var(--aur-muted);
	font-size: 13px;
}

.aur-single .aur-authorbox__name {
	display: inline-block;
	margin-bottom: 6px;
	color: var(--aur-ink);
	font-size: 19px;
	font-weight: 700;
	text-decoration: none;
}

.aur-single .aur-authorbox__name:hover { color: var(--aur-maroon); }

.aur-authorbox__bio {
	margin: 0;
	color: #6d5f5d;
	font-size: 15px;
	line-height: 1.7;
}

/* ---------- Comments ---------- */
.aur-box-card {
	margin-bottom: 28px;
	padding: 8px 24px;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 6px 24px rgba(35, 26, 26, .06);
}

.aur-comment-list,
.aur-comment-list .children {
	margin: 0;
	padding: 0;
	list-style: none;
}

.aur-comment-list .children { padding-left: 40px; }

.aur-comment__inner {
	display: flex;
	gap: 14px;
	padding: 20px 0;
	border-bottom: 1px solid #f3ece9;
}

.aur-comment-list > .aur-comment:last-child > .aur-comment__inner:last-child,
.aur-comment-list > li:last-child .children > li:last-child > .aur-comment__inner { border-bottom: 0; }

.aur-comment__avatar {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #ece3df;
	color: #6d5f5d;
	font-weight: 700;
}

.aur-comment.is-author > .aur-comment__inner .aur-comment__avatar {
	background: var(--aur-maroon);
	color: #fff;
}

.aur-comment__body { flex: 1; min-width: 0; }

.aur-comment__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.aur-comment__name {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-weight: 700;
}

.aur-comment__badge {
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--aur-ink);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
}

.aur-single .comment-reply-link {
	flex-shrink: 0;
	padding: 3px 10px;
	border: 1px solid var(--aur-line);
	border-radius: 6px;
	color: var(--aur-maroon);
	font-size: 13px;
	text-decoration: none;
	transition: border-color .2s;
}

.aur-single .comment-reply-link:hover { border-color: var(--aur-maroon); }

.aur-single .aur-comment__time {
	display: inline-block;
	margin: 2px 0 8px;
	color: var(--aur-muted);
	font-size: 13px;
	text-decoration: none;
}

.aur-comment__pending {
	margin: 0 0 6px;
	color: var(--aur-maroon);
	font-size: 13px;
}

.aur-comment__text {
	font-size: 16px;
	line-height: 1.7;
}

.aur-comment__text p { margin: 0 0 8px; }
.aur-comment__text p:last-child { margin-bottom: 0; }

.aur-comments__closed {
	color: var(--aur-muted);
	text-align: center;
}

/* comment form */
.aur-cform-wrap { padding: 24px; }

.aur-cform-wrap .comment-respond { margin: 0; }

.aur-cform__title {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 0 0 12px;
	font-family: var(--aur-font);
	font-size: 19px;
	font-weight: 700;
}

.aur-cform__title small a {
	color: var(--aur-maroon);
	font-size: 14px;
	font-weight: 500;
}

.aur-cform p { margin: 0 0 12px; }

.aur-cform__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 12px;
}

.aur-single .aur-cform textarea,
.aur-single .aur-cform input[type="text"],
.aur-single .aur-cform input[type="email"] {
	width: 100%;
	margin: 0;
	padding: 12px 14px;
	border: 1px solid var(--aur-line);
	border-radius: 10px;
	background: #fff;
	color: var(--aur-ink);
	font-family: var(--aur-font);
	font-size: 16px;
	box-shadow: none;
	outline: none;
	transition: border-color .2s, box-shadow .2s;
}

.aur-single .aur-cform textarea { min-height: 120px; resize: vertical; }
.aur-single .aur-cform input[type="text"],
.aur-single .aur-cform input[type="email"] { height: 48px; }

.aur-single .aur-cform textarea:focus,
.aur-single .aur-cform input:focus {
	border-color: var(--aur-maroon);
	box-shadow: 0 0 0 3px rgba(142, 23, 29, .1);
}

.aur-cform__cookies {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	color: var(--aur-muted);
	font-size: 14px;
	line-height: 1.5;
}

.aur-cform__cookies input { margin-top: 4px; accent-color: var(--aur-maroon); }

.aur-single .aur-cform .form-submit { margin: 4px 0 0; }

.aur-single .aur-cform__submit {
	height: 48px;
	padding: 0 28px;
	border: 0;
	border-radius: 10px;
	background: var(--aur-maroon);
	color: #fff;
	font-family: var(--aur-font);
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background .2s;
}

.aur-single .aur-cform__submit:hover { background: var(--aur-maroon-dark); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1180px) {
	.aur-single { grid-template-columns: 64px minmax(0, 1fr) 240px; gap: 28px; }
	.aur-single--no-toc { grid-template-columns: 64px minmax(0, 1fr) 0; }
}

@media (max-width: 1024px) {
	.aur-single,
	.aur-single--no-toc {
		display: block;
		max-width: 760px;
		padding-top: 20px;
	}

	.aur-rail-share,
	.aur-toc-side { display: none; }

	.aur-toc-inline { display: block; }
	.aur-tocbar { display: flex; }
	.aur-fab-share { display: inline-flex; }

	.aur-prose h2,
	.aur-prose h3,
	.aur-prose h4 { scroll-margin-top: calc(var(--aur-header-h, 70px) + 80px); }

	/* progress sits at the bottom of the TOC bar when it is shown */
	.aur-read-progress.has-bar { top: calc(var(--aur-header-h, 0px) + var(--aur-tocbar-h, 0px) - 3px); }
}

@media (max-width: 640px) {
	.aur-post__hero { border-radius: 14px; margin-inline: calc(var(--aur-gutter) * -1 + 4px); }
	.aur-post__title { margin-top: 20px; font-size: 25px; }
	.aur-post__meta { gap: 6px 10px; margin-bottom: 22px; font-size: 13px; }
	.aur-post__sep { display: none; }
	.aur-post__meta > *:not(.aur-post__author):not(:last-child)::after { content: ' ·'; color: #cdbfbb; }
	.aur-post__author { width: 100%; justify-content: center; }

	.aur-prose { font-size: 17px; line-height: 1.85; }
	.aur-prose h2 { margin-top: 32px; font-size: 22px; }
	.aur-prose h3 { font-size: 18px; }
	.aur-prose blockquote { padding: 18px 18px 18px 34px; font-size: 16px; }
	.aur-prose blockquote::before { left: 16px; top: 18px; bottom: 18px; }

	.aur-section-title { font-size: 22px; }

	.aur-related__grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
	.aur-rcard { display: grid; grid-template-columns: 120px minmax(0, 1fr); }
	.aur-rcard__media { aspect-ratio: auto; min-height: 100%; }
	.aur-rcard__body { justify-content: center; padding: 12px 14px; }
	.aur-rcard__title { font-size: 15px; }

	.aur-authorbox { flex-direction: column; align-items: center; gap: 12px; padding: 22px 18px; text-align: center; }

	.aur-box-card { padding: 4px 16px; }
	.aur-cform-wrap { padding: 18px 16px; }
	.aur-comment-list .children { padding-left: 18px; }
	.aur-comment__avatar { width: 38px; height: 38px; font-size: 14px; }
	.aur-comment__inner { gap: 10px; }
	.aur-single .aur-cform__submit { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.aur-single *,
	.aur-tocbar,
	.aur-tocsheet *,
	.aur-fab-share { transition: none !important; }
}
