/*
 * Atlas Arcadia — AA Blog Post template and AA Post Card (plan 2026-10-08-001, U5).
 *
 * The frame is an Elementor Pro single template (built by
 * wp/build-blog-post-template.php); this file is its look. Tokens come from
 * aa-design-system (--aa-*); every var() carries its literal fallback so the
 * page survives that file being absent. Selectors are two or three classes
 * deep on purpose: The7 and Elementor style bare h1/h2/p/a under their own
 * classes, and one class loses to them.
 *
 * Loaded on single posts and the blog archives (inc/template.php).
 */

/* --- frame ---------------------------------------------------------------- */

.aa-post {
	--p-orange: var(--aa-orange, #db680b);
	--p-brown: var(--aa-brown, #6a3306);
	--p-ink: var(--aa-ink, #8a4a12);
	--p-muted: var(--aa-muted, #7d6f5a);
	--p-cream: var(--aa-cream, #fdf6e8);
	--p-rule: var(--aa-rule, #e2ded4);
	--p-display: var(--aa-display, 'Cartridge', ui-sans-serif, system-ui, sans-serif);
	--p-text: var(--aa-text, 'Poppins', ui-sans-serif, system-ui, sans-serif);
	--p-stripes: linear-gradient(90deg, var(--aa-stripe-1, #e8c68a) 0 20%, var(--aa-stripe-2, #f5a623) 20% 40%, var(--aa-stripe-3, #ef7f2c) 40% 60%, var(--aa-stripe-4, #e8542a) 60% 80%, var(--aa-stripe-5, #8a4c1a) 80% 100%);

	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	padding: 0 16px 72px;
	font-family: var(--p-text);
	color: var(--p-brown);
}

.aa-post *,
.aa-post *::before,
.aa-post *::after {
	box-sizing: border-box;
}

.aa-post .elementor-widget {
	margin: 0;
}

.aa-post .elementor-widget-container {
	padding: 0;
}

/* --- hero ----------------------------------------------------------------- */

.aa-post .aa-post-hero {
	align-items: center;
	max-width: 864px;
	margin: 0 auto;
	padding: 56px 0 0;
	text-align: center;
}

.aa-post .aa-post-kicker ul,
.aa-post .aa-post-kicker li {
	margin: 0;
	padding: 0;
	list-style: none;
	justify-content: center;
}

.aa-post .aa-post-kicker a,
.aa-post .aa-post-kicker .elementor-icon-list-text,
.aa-post .aa-post-kicker .elementor-post-info__terms-list-item {
	font-family: var(--p-text);
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--p-orange);
	text-decoration: none;
}

.aa-post .aa-post-kicker a:hover,
.aa-post .aa-post-kicker a:focus-visible {
	color: var(--p-brown);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.aa-post .aa-post-title {
	margin: 14px 0 0;
}

.aa-post .aa-post-title .elementor-heading-title {
	margin: 0;
	font-family: var(--p-display);
	font-weight: 700;
	font-size: clamp(2rem, 5.2vw, 3.5rem);
	line-height: 1.08;
	letter-spacing: normal;
	text-transform: none;
	color: var(--p-brown);
	text-wrap: balance;
	overflow-wrap: anywhere;
}

/* An empty excerpt leaves an empty wrapper; the text styles live on the inner
   element only, so nothing is drawn and no height is reserved. */
.aa-post .aa-post-dek {
	max-width: 660px;
}

.aa-post .aa-post-dek .elementor-widget-container {
	margin: 0;
	font-family: var(--p-text);
	font-size: 1.2rem;
	line-height: 1.55;
	font-weight: 400;
	color: var(--p-muted);
	text-wrap: pretty;
}

.aa-post .aa-post-dek .elementor-widget-container:not(:empty) {
	margin-top: 18px;
}

.aa-post .aa-post-byline {
	align-items: center;
	justify-content: center;
	margin-top: 22px;
	column-gap: 14px;
	row-gap: 6px;
	font-size: .9rem;
	color: var(--p-muted);
}

.aa-post .aa-post-byline .elementor-widget,
.aa-post .aa-post-card__meta .elementor-widget {
	width: auto;
}

.aa-post .aa-post-byline ul.elementor-inline-items,
.aa-post .aa-post-byline ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.aa-post .aa-post-byline li {
	margin: 0;
	padding: 0;
}

.aa-post .aa-post-byline .elementor-icon-list-text,
.aa-post .aa-post-byline .elementor-post-info__item {
	font-family: var(--p-text);
	font-size: .9rem;
	font-weight: 500;
	color: var(--p-muted);
}

.aa-post .aa-post-byline .elementor-post-info__item--type-author .elementor-icon-list-text {
	color: var(--p-brown);
	font-weight: 600;
}

.aa-post .aa-post-byline .elementor-icon-list-item .elementor-icon-list-icon img,
.aa-post .aa-post-byline .elementor-avatar {
	width: 30px;
	height: 30px;
	max-width: none;
	flex-shrink: 0;
	border-radius: 50%;
	object-fit: cover;
}

/* The avatar sits in Post Info's icon slot, which Elementor sizes to the widget's
   icon size (14px: `.elementor-111399 .elementor-element-… .elementor-icon-list-icon`).
   With `.elementor img { max-width: 100% }` that squeezed the 30px avatar to 14x30
   and object-fit turned the circle into an oval. Size the slot to the avatar; the
   extra .elementor-icon-list-item class outranks Elementor's generated rule. */
.aa-post .aa-post-byline .elementor-icon-list-item .elementor-icon-list-icon:has(> img) {
	width: 30px;
	min-width: 30px;
}

/* dots between byline parts */
.aa-post .aa-post-byline li + li::before,
.aa-post .aa-post-byline .aa-reading-time::before {
	content: '\00b7';
	margin-right: 14px;
	color: var(--p-orange);
	font-weight: 700;
}

.aa-post .aa-post-byline__time .elementor-widget-container {
	display: flex;
	align-items: center;
}

.aa-post .aa-reading-time {
	font-weight: 500;
}

/* the stripe sweep, as in the Points panels */
.aa-post .aa-post-hero::after {
	content: '';
	order: 99;
	display: block;
	width: 120px;
	height: 6px;
	margin-top: 26px;
	border-radius: 3px;
	background: var(--p-stripes);
}

.aa-post .aa-post-image {
	order: 100;
	width: 100%;
	margin-top: 0;
}

.aa-post .aa-post-image:has(img) {
	margin-top: 36px;
}

/* The article opens with its own featured image (inc/template.php adds the body
   class): show it once, uncropped in the body, not again in the hero. The image
   stays the featured image for cards and social previews. */
body.aa-post--lead-image .aa-post .aa-post-image {
	display: none;
}

.aa-post .aa-post-image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 14px;
	box-shadow: 0 10px 30px rgba(106, 51, 6, .18);
}

/* --- body ----------------------------------------------------------------- */

.aa-post .aa-post-body {
	margin-top: 44px;
}

/* The 864px measure is article.css's job (U2), on the widget's inner container, so
   wide blocks can break out of it; the widget itself stays full width. */
.aa-post .aa-article {
	width: 100%;
}

/* --- end matter ----------------------------------------------------------- */

.aa-post .aa-post-end {
	max-width: 864px;
	margin: 56px auto 0;
	padding-top: 28px;
	position: relative;
}

.aa-post .aa-post-end::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	border-radius: 2px;
	background: var(--p-stripes);
}

/* share: the site's orange pill, restated (the shared pill's layout overrides are
   documented in docs/solutions/ui-bugs/aa-points-cta-inline-block-overrides-feature-layout.md) */
.aa-post .aa-post-share {
	align-items: flex-start;
}

.aa-post .aa-share.aa-share--post {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: .6em 1.3em;
	border: 0;
	border-radius: 999px;
	background: var(--p-orange);
	color: #fff;
	font-family: var(--p-display);
	font-size: .9rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: normal;
	text-transform: none;
	cursor: pointer;
	box-shadow: none;
}

.aa-post .aa-share.aa-share--post:hover,
.aa-post .aa-share.aa-share--post:focus-visible {
	background: var(--p-brown);
	color: #fff;
}

/* author note: shown only when the author wrote a bio */
.aa-post .aa-author-note {
	display: flex;
	gap: 18px;
	align-items: flex-start;
	margin-top: 32px;
	padding: 22px;
	background: #fff;
	border: 1px solid var(--p-rule);
	border-radius: 14px;
	box-shadow: 0 2px 10px rgba(106, 51, 6, .06);
}

.aa-post .aa-author-note__avatar img {
	display: block;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
}

.aa-post .aa-author-note p {
	margin: 0;
}

.aa-post .aa-author-note__eyebrow {
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--p-orange);
}

.aa-post .aa-author-note__name {
	margin-top: 2px !important;
	font-family: var(--p-display);
	font-size: 1.25rem;
	line-height: 1.2;
	color: var(--p-brown);
}

.aa-post .aa-author-note__bio {
	margin-top: 8px !important;
	font-size: .95rem;
	line-height: 1.6;
	color: var(--p-muted);
}

/* related: the whole section disappears when the loop has no cards */
.aa-post .aa-related {
	margin-top: 56px;
}

.aa-post .aa-related:not(:has(.aa-post-card)) {
	display: none;
}

.aa-post .aa-related__title .elementor-heading-title {
	margin: 0 0 22px;
	font-family: var(--p-display);
	font-size: 1.7rem;
	font-weight: 700;
	line-height: 1.15;
	color: var(--p-brown);
	text-transform: none;
	letter-spacing: normal;
}

/* The grid is wider than the 864 text column; break out symmetrically. */
.aa-post .aa-related__grid {
	width: min(1040px, calc(100vw - 32px));
	position: relative;
	left: 50%;
	transform: translateX(-50%);
}

.aa-post .aa-related__grid .elementor-loop-container {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

/* --- the AA Post Card (also the loop item U6 reuses) ----------------------- */

.aa-post-card {
	--c-orange: var(--aa-orange, #db680b);
	--c-brown: var(--aa-brown, #6a3306);
	--c-muted: var(--aa-muted, #7d6f5a);
	--c-rule: var(--aa-rule, #e2ded4);
	--c-cream: var(--aa-cream, #fdf6e8);

	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--c-rule);
	border-radius: 14px;
	box-shadow: 0 2px 10px rgba(106, 51, 6, .06);
	font-family: var(--aa-text, 'Poppins', ui-sans-serif, system-ui, sans-serif);
	transition: box-shadow .15s ease, transform .15s ease;
}

.aa-post-card:hover,
.aa-post-card:focus-within {
	box-shadow: 0 8px 24px rgba(106, 51, 6, .16);
	transform: translateY(-2px);
}

.aa-post-card.e-con,
.aa-post-card .e-con {
	--padding-top: 0;
	--padding-right: 0;
	--padding-bottom: 0;
	--padding-left: 0;
}

.aa-post-card .elementor-widget {
	margin: 0;
	width: 100%;
}

.aa-post-card .elementor-widget-container {
	padding: 0;
}

/* 4:3 media panel; cream when there is no photo */
.aa-post-card .aa-post-card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	width: 100%;
	overflow: hidden;
	background: var(--c-cream);
	background-image: linear-gradient(135deg, rgba(232, 198, 138, .35), rgba(245, 166, 35, .12));
}

.aa-post-card .aa-post-card__img,
.aa-post-card .aa-post-card__img .elementor-widget-container {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.aa-post-card .aa-post-card__img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
}

.aa-post-card .aa-post-card__fallback {
	display: none;
	position: absolute;
	inset: 0;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 16px;
}

.aa-post-card .aa-post-card__media:not(:has(img)) .aa-post-card__fallback {
	display: flex;
}

.aa-post-card .aa-post-card__media:not(:has(img)) ~ .aa-post-card__body .aa-post-card__kicker {
	display: none;
}

.aa-post-card .aa-post-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 16px 18px 18px;
	gap: 0;
}

.aa-post-card ul,
.aa-post-card li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.aa-post-card .aa-post-card__kicker .elementor-icon-list-text,
.aa-post-card .aa-post-card__fallback .elementor-icon-list-text,
.aa-post-card .aa-post-card__kicker .elementor-post-info__terms-list-item,
.aa-post-card .aa-post-card__fallback .elementor-post-info__terms-list-item {
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .13em;
	text-transform: uppercase;
	color: var(--c-orange);
}

.aa-post-card .aa-post-card__fallback .elementor-icon-list-text,
.aa-post-card .aa-post-card__fallback .elementor-post-info__terms-list-item {
	font-family: var(--aa-display, 'Cartridge', ui-sans-serif, system-ui, sans-serif);
	font-size: 1rem;
	color: var(--c-brown);
}

.aa-post-card .aa-post-card__title {
	margin-top: 8px;
}

.aa-post-card .aa-post-card__title .elementor-heading-title {
	margin: 0;
	font-family: var(--aa-display, 'Cartridge', ui-sans-serif, system-ui, sans-serif);
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.22;
	letter-spacing: normal;
	text-transform: none;
	color: var(--c-brown);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
}

.aa-post-card .aa-post-card__title a {
	color: inherit;
	text-decoration: none;
}

/* whole card is the link: the title's anchor stretches over it */
.aa-post-card .aa-post-card__title a::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 2;
}

.aa-post-card .aa-post-card__title a:focus-visible {
	outline: none;
}

.aa-post-card:has(.aa-post-card__title a:focus-visible) {
	outline: 3px solid var(--c-orange);
	outline-offset: 2px;
}

.aa-post-card .aa-post-card__dek .elementor-widget-container {
	margin: 0;
	font-size: .9rem;
	line-height: 1.55;
	color: var(--c-muted);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	overflow: hidden;
}

.aa-post-card .aa-post-card__dek .elementor-widget-container:not(:empty) {
	margin-top: 8px;
}

.aa-post-card .aa-post-card__meta {
	margin-top: auto;
	padding-top: 14px;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	column-gap: 8px;
	font-size: .78rem;
	color: var(--c-muted);
}

.aa-post-card .aa-post-card__meta .elementor-widget {
	width: auto;
}

.aa-post-card .aa-post-card__date .elementor-icon-list-text,
.aa-post-card .aa-post-card__time,
.aa-post-card .aa-post-card__time .aa-reading-time {
	font-size: .78rem;
	font-weight: 500;
	color: var(--c-muted);
}

.aa-post-card .aa-post-card__time .elementor-widget-container {
	display: flex;
	align-items: center;
}

.aa-post-card .aa-post-card__date .elementor-icon-list-text,
.aa-post-card .aa-post-card__date .elementor-post-info__item {
	font-family: var(--aa-text, 'Poppins', ui-sans-serif, system-ui, sans-serif);
}

.aa-post-card .aa-post-card__time .aa-reading-time::before {
	content: '\00b7';
	margin-right: 8px;
	color: var(--c-orange);
	font-weight: 700;
}

/* featured variant (U6): double width, image beside the text */
.aa-post-card--featured {
	flex-direction: row;
}

.aa-post-card--featured .aa-post-card__media {
	width: 50%;
	aspect-ratio: auto;
	min-height: 100%;
}

.aa-post-card--featured .aa-post-card__body {
	width: 50%;
	padding: 28px;
	justify-content: center;
}

.aa-post-card--featured .aa-post-card__title .elementor-heading-title {
	font-size: 1.8rem;
	-webkit-line-clamp: 3;
	line-clamp: 3;
}

/* --- comments ------------------------------------------------------------- */

.aa-post .aa-post-comments {
	margin-top: 56px;
}

.aa-post .aa-post-comments .comments-area,
.aa-post .aa-post-comments #comments {
	background: #fff;
	border: 1px solid var(--p-rule);
	border-radius: 14px;
	padding: 22px;
	color: var(--p-brown);
	font-family: var(--p-text);
}

.aa-post .aa-post-comments .comment-respond {
	background: transparent;
	border: 0;
	box-shadow: none;
	margin: 0;
	padding: 0;
}

.aa-post .aa-post-comments h2,
.aa-post .aa-post-comments h3,
.aa-post .aa-post-comments .comment-respond .comment-reply-title,
.aa-post .aa-post-comments .comments-area .comments-title {
	margin: 0 0 12px;
	font-family: var(--p-display);
	font-size: 1.3rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: normal;
	text-transform: none;
	color: var(--p-brown) !important;
}

.aa-post .aa-post-comments .logged-in-as,
.aa-post .aa-post-comments .must-log-in,
.aa-post .aa-post-comments .comment-notes {
	margin: 0 0 12px;
	font-size: .9rem;
	color: var(--p-muted);
}

.aa-post .aa-post-comments a {
	color: var(--p-orange);
}

.aa-post .aa-post-comments textarea,
.aa-post .aa-post-comments input[type='text'],
.aa-post .aa-post-comments input[type='email'],
.aa-post .aa-post-comments input[type='url'] {
	display: block;
	width: 100%;
	padding: 10px 12px;
	background: var(--p-cream);
	color: var(--p-brown);
	font-family: var(--p-text);
	font-size: 15px;
	border: 1px solid var(--p-rule);
	border-radius: 10px;
	box-shadow: none;
}

.aa-post .aa-post-comments textarea {
	min-height: 120px;
	resize: vertical;
}

.aa-post .aa-post-comments textarea:focus,
.aa-post .aa-post-comments input:focus {
	outline: 2px solid var(--p-orange);
	outline-offset: 1px;
	border-color: transparent;
}

.aa-post .aa-post-comments .form-submit {
	margin: 14px 0 0;
}

/* The submit as the site's orange pill, for The7's <a class="dt-btn"> and for a
   standard input/button. (Elementor snippet #94971 restyles .dt-btn site-wide
   with !important; the same values are restated here so a standard submit,
   after the theme switch, matches it.) */
.aa-post .aa-post-comments input[type='submit'],
.aa-post .aa-post-comments button[type='submit'],
.aa-post .aa-post-comments a.dt-btn,
.aa-post .aa-post-comments .dt-btn {
	display: inline-block;
	width: auto;
	padding: .6em 1.3em !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: var(--p-orange) !important;
	color: #fff !important;
	font-family: var(--p-display) !important;
	font-size: .9rem !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	letter-spacing: normal !important;
	text-decoration: none !important;
	text-transform: none !important;
	box-shadow: none !important;
	cursor: pointer;
}

.aa-post .aa-post-comments input[type='submit']:hover,
.aa-post .aa-post-comments button[type='submit']:hover,
.aa-post .aa-post-comments a.dt-btn:hover,
.aa-post .aa-post-comments input[type='submit']:focus-visible,
.aa-post .aa-post-comments a.dt-btn:focus-visible {
	background: var(--p-brown) !important;
	color: #fff !important;
}

.aa-post .aa-post-comments .dt-btn span {
	color: #fff !important;
}

/* --- previous / next ------------------------------------------------------- */

.aa-post .aa-post-nav {
	margin-top: 40px;
}

.aa-post .aa-post-nav .elementor-post-navigation {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	align-items: stretch;
	border: 0;
	padding: 0;
}

.aa-post .aa-post-nav .elementor-post-navigation__prev,
.aa-post .aa-post-nav .elementor-post-navigation__next {
	flex: 1 1 0;
	min-width: 0;
	margin: 0;
}

.aa-post .aa-post-nav .elementor-post-navigation__separator-wrapper {
	display: none;
}

.aa-post .aa-post-nav .elementor-post-navigation__next {
	text-align: right;
}

.aa-post .aa-post-nav .elementor-post-navigation__prev:empty,
.aa-post .aa-post-nav .elementor-post-navigation__next:empty {
	display: none;
}

.aa-post .aa-post-nav a {
	display: flex;
	align-items: center;
	gap: 14px;
	height: 100%;
	padding: 14px 18px;
	background: #fff;
	border: 1px solid var(--p-rule);
	border-radius: 12px;
	color: var(--p-brown);
	text-decoration: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.aa-post .aa-post-nav a:hover,
.aa-post .aa-post-nav a:focus-visible {
	border-color: var(--p-orange);
	box-shadow: 0 4px 14px rgba(106, 51, 6, .12);
}

.aa-post .aa-post-nav .elementor-post-navigation__next .post-navigation__arrow-wrapper {
	order: 2;
}

.aa-post .aa-post-nav .post-navigation__arrow-wrapper,
.aa-post .aa-post-nav .post-navigation__arrow-wrapper i,
.aa-post .aa-post-nav .post-navigation__arrow-wrapper svg {
	flex: 0 0 auto;
	color: var(--p-orange);
	fill: var(--p-orange);
	font-size: 1.1rem;
}

.aa-post .aa-post-nav .post-navigation__prev--title,
.aa-post .aa-post-nav .post-navigation__next--title {
	white-space: normal;
	text-overflow: clip;
}

.aa-post .aa-post-nav .elementor-post-navigation__link__prev,
.aa-post .aa-post-nav .elementor-post-navigation__link__next {
	display: block;
}

.aa-post .aa-post-nav .post-navigation__prev--label,
.aa-post .aa-post-nav .post-navigation__next--label {
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--p-orange);
}

.aa-post .aa-post-nav .post-navigation__prev--title,
.aa-post .aa-post-nav .post-navigation__next--title {
	font-family: var(--p-display);
	font-size: 1rem;
	line-height: 1.25;
	color: var(--p-brown);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
}

/* --- image credit (added to every core/image by inc/credits.php) ---------------
   Reads as a credit, not as body copy: caption scale, muted, tight under the image
   or its caption. Never hidden. Links stay legible in the ink colour. Under a
   full-bleed image article.css already holds it in the text column. */

.aa-article .aa-credit {
	margin: .5em 0 0;
	padding: 0;
	font-family: var(--aa-text, 'Poppins', ui-sans-serif, system-ui, sans-serif);
	font-size: .8rem;
	font-weight: 400;
	line-height: 1.45;
	letter-spacing: .01em;
	color: var(--aa-muted, #7d6f5a);
	text-align: left;
}

.aa-article figcaption + .aa-credit {
	margin-top: .2em;
}

.aa-article .aa-credit a {
	color: var(--aa-ink, #8a4a12);
	text-decoration: underline;
	text-decoration-color: var(--aa-rule, #e2ded4);
	text-decoration-thickness: 1px;
	text-underline-offset: .2em;
}

.aa-article .aa-credit a:hover,
.aa-article .aa-credit a:focus-visible {
	color: var(--aa-brown, #6a3306);
	text-decoration-color: currentColor;
}

/* Captions sit flush with the image edge (The7 pads figcaptions 8px). Framed and
   full-bleed images set their own caption padding in article.css. */
.aa-article :not(.wp-block-gallery) > .wp-block-image:not(.is-style-aa-framed):not(.is-style-aa-full-bleed) > figcaption {
	padding: 0;
}

/* Pattern placeholders (an image with no picture yet) render nothing, so a columns or
   gallery block made only of them is empty: drop it rather than leave its margin as a gap. */
.aa-article.aa-article :is(.wp-block-columns, .wp-block-gallery):not(:has(img, p, h2, h3, h4, a, ul, ol, figure, blockquote, aside, dl, table, iframe)) {
	display: none !important; /* article.css gives the grid style display: grid !important; the doubled class outranks it */
}

/* --- small screens --------------------------------------------------------- */

@media (max-width: 880px) {
	.aa-post .aa-related__grid .elementor-loop-container {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.aa-post {
		padding-bottom: 48px;
	}

	/* wrapped byline parts would strand a dot at a line start; spacing does the separating */
	.aa-post .aa-post-byline li + li::before,
	.aa-post .aa-post-byline .aa-reading-time::before {
		display: none;
	}

	.aa-post .aa-post-hero {
		padding-top: 32px;
	}

	.aa-post .aa-post-dek .elementor-widget-container {
		font-size: 1.05rem;
	}

	.aa-post .aa-post-image img {
		border-radius: 10px;
	}

	.aa-post .aa-related__grid .elementor-loop-container {
		grid-template-columns: minmax(0, 1fr);
	}

	.aa-post .aa-author-note {
		flex-direction: column;
		padding: 18px;
	}

	.aa-post .aa-post-nav .elementor-post-navigation {
		flex-direction: column;
	}

	.aa-post .aa-post-nav .elementor-post-navigation__next {
		text-align: left;
	}

	.aa-post .aa-post-comments .comments-area,
	.aa-post .aa-post-comments #comments {
		padding: 16px;
	}
}

/* The7 already pads its content wrapper 20px on a phone, so the template container adds
   nothing there: side gutter = 20px for the hero, the article and the end matter alike. */
@media (max-width: 767px) {
	.aa-post {
		padding-left: 0;
		padding-right: 0;
	}
}
