/*
Theme Name: Antoine Archive v4.8.4
Theme URI: https://antoineyeung.wordpress.com/
Author: Antoine Yeung
Description: A publication-like personal archive with optional password access for protected entries.
Version: 4.8.4
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: antoine-archive
*/

:root {
	--aa-bg: #f5f2eb;
	--aa-paper: #fbfaf6;
	--aa-text: #171717;
	--aa-muted: #736f68;
	--aa-line: #cfcac0;
	--aa-max: 1140px;
	--aa-reading: 760px;
	--aa-gap: clamp(1rem, 2.2vw, 2rem);
	--aa-heading-size: clamp(2.2rem, 5vw, 4.2rem);
	--aa-hero-size: clamp(3.4rem, 9vw, 7rem);
	--aa-serif-stack: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "STSong", Georgia, serif;
	--aa-sans-stack: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
	--aa-display-font: var(--aa-serif-stack);
	--aa-body-font: var(--aa-serif-stack);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--aa-bg);
	color: var(--aa-text);
	font-family: var(--aa-body-font);
	font-size: 18px;
	line-height: 1.82;
	text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { opacity: .68; }
img { max-width: 100%; height: auto; }
figure { margin: 2.25rem 0; }
figcaption { color: var(--aa-muted); font-size: .82rem; }
input, select, button, textarea { font: inherit; }
button, input[type="submit"] {
	background: var(--aa-text);
	color: var(--aa-paper);
	border: 1px solid var(--aa-text);
	padding: .65rem 1rem;
	cursor: pointer;
}
select, input[type="number"], input[type="text"] {
	background: transparent;
	color: inherit;
	border: 1px solid var(--aa-line);
	padding: .55rem .7rem;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 30;
	background: color-mix(in srgb, var(--aa-bg) 94%, transparent);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--aa-line);
}
.site-header-inner {
	max-width: var(--aa-max);
	margin: 0 auto;
	padding: .95rem 1.25rem;
	display: grid;
	grid-template-columns: minmax(180px, 1fr) auto;
	align-items: center;
	gap: 1.5rem;
}
.site-title {
	font-family: var(--aa-sans-stack);
	font-size: .96rem;
	font-weight: 600;
	letter-spacing: .01em;
	text-decoration: none;
}
.site-nav ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: .35rem 1.15rem;
	padding: 0;
	margin: 0;
}
.site-nav a {
	font-family: var(--aa-sans-stack);
	font-size: .78rem;
	text-decoration: none;
	white-space: nowrap;
}
.menu-toggle { display: none; }

.site-main { min-height: 70vh; }
.container {
	width: min(calc(100% - 2.5rem), var(--aa-max));
	margin-inline: auto;
}
.reading-column {
	width: min(calc(100% - 2.5rem), var(--aa-reading));
	margin-inline: auto;
}

.hero {
	padding: clamp(5rem, 12vw, 10rem) 0 clamp(4rem, 10vw, 8rem);
	border-bottom: 1px solid var(--aa-line);
}
.hero-grid {
	display: grid;
	grid-template-columns: 160px 1fr;
	gap: clamp(1.5rem, 4vw, 4rem);
	align-items: start;
}
.hero-kicker {
	font-family: var(--aa-sans-stack);
	font-size: .62rem;
	line-height: 1.45;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--aa-muted);
	padding-top: .7rem;
}
.hero h1 {
	font-family: var(--aa-display-font);
	margin: 0;
	font-size: var(--aa-hero-size);
	font-weight: 400;
	line-height: .96;
	letter-spacing: -.06em;
}
.hero-copy {
	max-width: 40rem;
	margin-top: 1rem;
}
.hero-copy p {
	font-size: clamp(1.12rem, 1.8vw, 1.45rem);
	line-height: 1.66;
	margin: 0;
}
.section {
	padding: clamp(3rem, 7vw, 5rem) 0;
	border-bottom: 1px solid var(--aa-line);
}
.section-header {
	max-width: 760px;
	margin-left: calc(160px + clamp(1.5rem, 4vw, 4rem));
	margin-bottom: 1.8rem;
}
.section-kicker {
	font-family: var(--aa-sans-stack);
	font-size: .62rem;
	line-height: 1.45;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--aa-muted);
	margin-bottom: .65rem;
}
.section-header h2 {
	font-family: var(--aa-display-font);
	font-size: var(--aa-heading-size);
	line-height: 1.02;
	letter-spacing: -.04em;
	font-weight: 400;
	margin: 0;
}
.section-description {
	max-width: 700px;
	margin-left: calc(160px + clamp(1.5rem, 4vw, 4rem));
	color: var(--aa-muted);
}

.archive-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(1.5rem, 3vw, 2.5rem);
	margin-left: calc(160px + clamp(1.5rem, 4vw, 4rem));
}
.archive-card {
	border-top: 1px solid var(--aa-text);
	padding-top: .75rem;
	min-height: 12rem;
}
.archive-card h3 {
	font-family: var(--aa-display-font);
	font-size: clamp(1.15rem, 2vw, 1.5rem);
	line-height: 1.3;
	font-weight: 400;
	margin: .45rem 0 .65rem;
}
.archive-card p {
	color: var(--aa-muted);
	font-size: .9rem;
	line-height: 1.75;
	margin: 0;
}
.archive-card-meta {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	color: var(--aa-muted);
	font-family: var(--aa-sans-stack);
	font-size: .68rem;
}
.archive-card-image { margin: 0 0 .9rem; aspect-ratio: 4/3; overflow: hidden; }
.archive-card-image img { width: 100%; height: 100%; object-fit: cover; }

.entry-header {
	padding: clamp(4rem, 10vw, 8rem) 0 3rem;
	border-bottom: 1px solid var(--aa-line);
}
.entry-header h1 {
	font-family: var(--aa-display-font);
	font-size: clamp(2.6rem, 7vw, 5.6rem);
	line-height: .98;
	font-weight: 400;
	letter-spacing: -.05em;
	margin: .8rem 0 2rem;
}
.eyebrow, .meta-label {
	font-family: var(--aa-sans-stack);
	text-transform: uppercase;
	letter-spacing: .12em;
	font-size: .67rem;
	color: var(--aa-muted);
}
.entry-meta {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--aa-gap);
	font-family: var(--aa-sans-stack);
	font-size: .78rem;
}
.entry-meta div { border-top: 1px solid var(--aa-line); padding-top: .65rem; }
.entry-content { padding: clamp(3rem, 7vw, 6rem) 0; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content p { margin: 0 0 1.55em; }
.entry-content h2, .entry-content h3 {
	font-weight: 400;
	line-height: 1.25;
	margin: 2.5em 0 .8em;
}
.entry-content blockquote {
	margin: 2.5rem 0;
	padding-left: 1.4rem;
	border-left: 1px solid var(--aa-text);
	font-size: 1.18em;
}
.entry-content .alignwide { width: min(100vw - 2.5rem, 1050px); margin-left: 50%; transform: translateX(-50%); }
.entry-content .alignfull { width: 100vw; margin-left: 50%; transform: translateX(-50%); }

.note-block {
	border-top: 1px solid var(--aa-text);
	padding: 1.2rem 0 0;
	margin: 4rem 0 0;
}
.note-block h2 {
	font-family: var(--aa-sans-stack);
	text-transform: uppercase;
	letter-spacing: .12em;
	font-size: .7rem;
	margin: 0 0 1.2rem;
}
.aa-hidden-entry {
	border: 1px solid var(--aa-line);
	padding: clamp(2rem, 5vw, 4rem);
	text-align: center;
	margin: 2rem 0;
}
.aa-hidden-entry p { margin: 0; }
.aa-hidden-entry-en { color: var(--aa-muted); font-size: .82rem; margin-top: .35rem !important; }

.aa-protected-access-intro {
	margin-top: 1.8rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--aa-line);
}
.aa-protected-access-form {
	max-width: 28rem;
	margin: 1.8rem auto 0;
	text-align: left;
}
.aa-protected-access-form label {
	display: block;
	margin-bottom: .6rem;
	font-family: var(--aa-sans-stack);
	font-size: .68rem;
	letter-spacing: .09em;
	text-transform: uppercase;
}
.aa-protected-access-form label span,
.aa-protected-access-form button span {
	color: var(--aa-muted);
}
.aa-protected-access-controls {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: .75rem;
}
.aa-protected-access-controls input {
	width: 100%;
	min-width: 0;
	border: 1px solid var(--aa-line);
	border-radius: 0;
	background: transparent;
	padding: .72rem .8rem;
	letter-spacing: .18em;
}
.aa-protected-access-controls button {
	border: 1px solid var(--aa-text);
	border-radius: 0;
	background: transparent;
	color: var(--aa-text);
	padding: .72rem 1rem;
	font-family: var(--aa-sans-stack);
	font-size: .72rem;
	letter-spacing: .04em;
	cursor: pointer;
}
.aa-protected-access-error {
	margin-top: 1.4rem !important;
	color: #8b2f24;
	font-family: var(--aa-sans-stack);
	font-size: .78rem;
	line-height: 1.55;
}
.aa-protected-access-error span {
	color: var(--aa-muted);
}
@media (max-width: 560px) {
	.aa-protected-access-controls {
		grid-template-columns: 1fr;
	}

	.aa-protected-access-controls button {
		width: 100%;
	}
}

.archive-list-header {
	padding: clamp(4rem, 10vw, 7rem) 0 2.5rem;
	border-bottom: 1px solid var(--aa-line);
}
.archive-list-header h1 {
	font-family: var(--aa-display-font);
	font-size: clamp(2.6rem, 7vw, 5.2rem);
	font-weight: 400;
	letter-spacing: -.05em;
	line-height: .98;
	margin: .7rem 0 1rem;
}
.archive-list { border-top: 1px solid var(--aa-text); }
.archive-list-item {
	display: grid;
	grid-template-columns: 1fr 4fr 1fr;
	gap: var(--aa-gap);
	padding: 1rem 0;
	border-bottom: 1px solid var(--aa-line);
	align-items: baseline;
}
.archive-list-item h2 { font-family: var(--aa-display-font); margin: 0; font-size: 1.08rem; font-weight: 400; line-height: 1.35; }
.archive-list-item time, .archive-list-item span {
	color: var(--aa-muted);
	font-family: var(--aa-sans-stack);
	font-size: .72rem;
}

.aa-timeline { padding: 1rem 0 4rem; }
.aa-timeline-year {
	display: grid;
	grid-template-columns: 150px 1fr;
	gap: clamp(1.5rem, 4vw, 4rem);
	border-top: 1px solid var(--aa-text);
	padding: 1.2rem 0 3rem;
}
.aa-timeline-year > h2 {
	font-family: var(--aa-display-font);
	position: sticky;
	top: 5rem;
	align-self: start;
	margin: 0;
	font-size: clamp(1.9rem, 5vw, 3.2rem);
	font-weight: 400;
	line-height: 1;
}
.aa-timeline-item {
	display: grid;
	grid-template-columns: 1.2fr 3fr .9fr;
	gap: var(--aa-gap);
	padding: .9rem 0;
	border-bottom: 1px solid var(--aa-line);
	align-items: baseline;
}
.aa-timeline-item h3 { font-family: var(--aa-display-font); margin: 0; font-size: 1rem; font-weight: 400; }
.aa-timeline-item time, .aa-timeline-item span {
	color: var(--aa-muted);
	font-family: var(--aa-sans-stack);
	font-size: .7rem;
}

.aa-index-filter {
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	gap: 1rem;
	padding: 1.2rem 0 2rem;
	border-top: 1px solid var(--aa-text);
}
.aa-index-filter label {
	display: grid;
	gap: .35rem;
	font-family: var(--aa-sans-stack);
	font-size: .72rem;
}
.aa-index-list article {
	display: grid;
	grid-template-columns: 1fr 4fr;
	gap: var(--aa-gap);
	border-top: 1px solid var(--aa-line);
	padding: .85rem 0;
}
.aa-index-list h2 { font-family: var(--aa-display-font); margin: 0; font-size: 1rem; font-weight: 400; }
.aa-index-list time { color: var(--aa-muted); font-size: .74rem; }

.pagination, .nav-links { margin: 2.5rem 0; display: flex; gap: .8rem; }
.page-numbers { border: 1px solid var(--aa-line); padding: .35rem .65rem; text-decoration: none; }

.site-footer {
	border-top: 1px solid var(--aa-line);
	padding: 2rem 0 4rem;
	font-family: var(--aa-sans-stack);
	font-size: .72rem;
	color: var(--aa-muted);
}
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; }

@media (max-width: 860px) {
	body { font-size: 17px; }
	.site-header-inner { grid-template-columns: 1fr auto; }
	.menu-toggle {
		display: inline-block;
		background: transparent;
		color: inherit;
		border: 1px solid var(--aa-line);
		padding: .4rem .6rem;
	}
	.site-nav { display: none; grid-column: 1 / -1; }
	.site-nav.is-open { display: block; }
	.site-nav ul { display: grid; justify-content: stretch; gap: 0; padding: .5rem 0; }
	.site-nav li { border-top: 1px solid var(--aa-line); padding: .55rem 0; }
	.hero-grid { grid-template-columns: 1fr; }
	.hero-kicker { padding-top: 0; }
	.section-header, .section-description, .archive-grid { margin-left: 0; }
	.archive-grid { grid-template-columns: 1fr; }
	.entry-meta { grid-template-columns: 1fr 1fr; }
	.archive-list-item { grid-template-columns: 1fr; gap: .25rem; }
	.aa-timeline-year { grid-template-columns: 1fr; }
	.aa-timeline-year > h2 { position: static; }
	.aa-timeline-item { grid-template-columns: 1fr; gap: .25rem; }
	.aa-index-list article { grid-template-columns: 1fr; gap: .25rem; }
	.footer-inner { display: grid; }
}


/* v0.4 — card flow, category hubs, compact timeline and intentional spacing */
.archive-grid {
	grid-auto-flow: row;
	align-items: start;
}
.archive-card {
	min-width: 0;
	overflow: hidden;
}
.archive-card-image {
	display: block;
	width: 100%;
	height: auto;
	line-height: 0;
}
.archive-card-image img {
	display: block;
	width: 100%;
	height: 100%;
}
.archive-card h3,
.archive-card p,
.aa-timeline-item h3,
.aa-category-hub-item h2 {
	overflow-wrap: anywhere;
	word-break: normal;
}

.aa-category-hub {
	padding-bottom: 3rem;
}
.aa-category-hub-nav {
	display: flex;
	flex-wrap: wrap;
	gap: .55rem 1.2rem;
	padding: 0 0 2rem;
	border-bottom: 1px solid var(--aa-text);
	font-family: var(--aa-sans-stack);
	font-size: .76rem;
}
.aa-category-hub-nav a {
	text-decoration: none;
	color: var(--aa-muted);
}
.aa-category-hub-nav a.is-active {
	color: var(--aa-text);
	text-decoration: underline;
	text-underline-offset: .25em;
}
.aa-category-hub-list {
	border-top: 0;
}
.aa-category-hub-item {
	display: grid;
	grid-template-columns: minmax(130px, 1fr) minmax(0, 4fr) minmax(120px, 1fr);
	gap: var(--aa-gap);
	padding: 1rem 0;
	border-bottom: 1px solid var(--aa-line);
	align-items: baseline;
}
.aa-category-hub-item h2 {
	margin: 0;
	font-family: var(--aa-display-font);
	font-size: 1.08rem;
	font-weight: 400;
	line-height: 1.35;
}
.aa-category-hub-item time,
.aa-category-hub-item span {
	color: var(--aa-muted);
	font-family: var(--aa-sans-stack);
	font-size: .72rem;
}

.aa-timeline--compact {
	padding-bottom: 0;
}
.aa-timeline--compact .aa-timeline-year {
	grid-template-columns: 110px minmax(0, 1fr);
	padding-bottom: 1.75rem;
}
.aa-timeline--compact .aa-timeline-year > h2 {
	position: static;
	font-size: clamp(1.6rem, 4vw, 2.5rem);
}
.aa-timeline--compact .aa-timeline-item {
	grid-template-columns: minmax(120px, 1.2fr) minmax(0, 3fr) minmax(100px, .9fr);
}

.entry-content .wp-block-spacer {
	display: block;
	min-height: 1.5rem;
}
.entry-content p:empty,
.entry-content .wp-block-paragraph:empty {
	display: block;
	min-height: 1.5em;
}
.aa-blank-line {
	display: block;
	height: 1.75em;
}

@media (max-width: 860px) {
	.aa-category-hub-item,
	.aa-timeline--compact .aa-timeline-year,
	.aa-timeline--compact .aa-timeline-item {
		grid-template-columns: 1fr;
	}
}


/* v0.6 — bilingual introduction and chronology portal */
.hero-copy-cn {
	margin: 0;
}
.hero-copy-en {
	max-width: 38rem;
	margin: .8rem 0 0;
	color: var(--aa-muted);
	font-family: var(--aa-sans-stack);
	font-size: clamp(.72rem, 1vw, .86rem);
	line-height: 1.65;
	letter-spacing: .015em;
}

.timeline-portal-section {
	padding: clamp(4.5rem, 10vw, 8rem) 0;
	border-bottom: 1px solid var(--aa-line);
}
.timeline-portal {
	display: grid;
	justify-items: center;
	text-align: center;
	max-width: 840px;
	margin: 0 auto;
	padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 4vw, 3rem);
	border-top: 1px solid var(--aa-text);
	border-bottom: 1px solid var(--aa-text);
	text-decoration: none;
}
.timeline-portal:hover {
	opacity: 1;
}
.timeline-portal-kicker {
	color: var(--aa-muted);
	font-family: var(--aa-sans-stack);
	font-size: .64rem;
	line-height: 1.5;
	letter-spacing: .14em;
	text-transform: uppercase;
}
.timeline-portal-title {
	margin: .9rem 0 .7rem;
	font-family: var(--aa-display-font);
	font-size: clamp(2.8rem, 7vw, 5.8rem);
	font-weight: 400;
	line-height: .95;
	letter-spacing: -.045em;
}
.timeline-portal-en {
	display: block;
	margin-top: .28rem;
	color: var(--aa-muted);
	font-family: var(--aa-sans-stack);
	font-size: clamp(.78rem, 1.2vw, .95rem);
	font-weight: 400;
	letter-spacing: .08em;
}
.timeline-portal-action {
	display: inline-flex;
	align-items: center;
	gap: .7rem;
	margin-top: 1.2rem;
	font-family: var(--aa-sans-stack);
	font-size: .75rem;
	letter-spacing: .04em;
}
.timeline-portal-arrow {
	transition: transform .2s ease;
}
.timeline-portal:hover .timeline-portal-arrow {
	transform: translateX(.3rem);
}

@media (max-width: 860px) {
	.hero-copy-en {
		max-width: 100%;
	}
	.timeline-portal-section {
		padding: 3.5rem 0;
	}
	.timeline-portal {
		padding: 3rem 1rem;
	}
}


/* v0.7 — quieter English introduction and seamless transition */
.hero {
	border-bottom: 0;
}

.hero-copy-en {
	max-width: 36rem;
	margin-top: .7rem;
	color: var(--aa-muted);
	font-family: var(--aa-body-font);
	font-size: clamp(.64rem, .82vw, .76rem);
	line-height: 1.72;
	letter-spacing: .005em;
}

@media (max-width: 860px) {
	.hero-copy-en {
		font-size: .7rem;
		line-height: 1.68;
	}
}


/* v0.8 — editable Now section and line-free homepage modules */
.home .hero,
.home .now-section,
.home .timeline-portal-section,
.home .section {
	border-bottom: 0;
}

.now-section {
	padding: clamp(3.75rem, 8vw, 6.5rem) 0 clamp(4.25rem, 9vw, 7rem);
}
.now-grid {
	display: grid;
	grid-template-columns: 160px minmax(0, 1fr);
	gap: clamp(1.5rem, 4vw, 4rem);
	align-items: start;
}
.now-label {
	color: var(--aa-muted);
	font-family: var(--aa-sans-stack);
	font-size: .64rem;
	line-height: 1.45;
	letter-spacing: .13em;
	text-transform: uppercase;
	padding-top: .48rem;
}
.now-content {
	max-width: 46rem;
	font-family: var(--aa-display-font);
	font-size: clamp(1.45rem, 2.5vw, 2.25rem);
	line-height: 1.55;
	letter-spacing: -.015em;
}
.now-content > *:first-child { margin-top: 0; }
.now-content > *:last-child { margin-bottom: 0; }
.now-content a {
	text-decoration-thickness: 1px;
	text-underline-offset: .22em;
}
.now-edit-link {
	display: inline-block;
	margin-top: 1.1rem;
	color: var(--aa-muted);
	font-family: var(--aa-sans-stack);
	font-size: .68rem;
	text-decoration: none;
}
.now-edit-link:hover { color: var(--aa-text); }

.timeline-portal-section {
	padding: clamp(4.25rem, 9vw, 7.5rem) 0;
}
.timeline-portal {
	border: 0;
	padding-top: clamp(2rem, 5vw, 4rem);
	padding-bottom: clamp(2rem, 5vw, 4rem);
}
.timeline-portal-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: clamp(3.1rem, 5vw, 4.25rem);
	height: clamp(3.1rem, 5vw, 4.25rem);
	margin-top: 1.5rem;
	color: var(--aa-text);
	transition: transform .22s ease;
}
.timeline-portal-icon svg {
	display: block;
	width: 100%;
	height: 100%;
}
.timeline-portal:hover .timeline-portal-icon {
	transform: translateX(.38rem);
}
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.home .section {
	padding-top: clamp(4rem, 8vw, 6.5rem);
	padding-bottom: clamp(4.5rem, 9vw, 7rem);
}

@media (max-width: 860px) {
	.now-grid { grid-template-columns: 1fr; }
	.now-label { padding-top: 0; }
	.now-content { font-size: clamp(1.35rem, 7vw, 1.85rem); }
}


/* v0.9 — header alignment, quieter Now text, animated chronology waves */
@media (min-width: 861px) {
	.site-header-inner {
		grid-template-columns: 160px minmax(0, 1fr);
		gap: clamp(1.5rem, 4vw, 4rem);
	}
	.site-nav ul {
		justify-content: flex-start;
	}
}

.site-nav a {
	font-family: var(--aa-body-font);
	font-size: .8rem;
}

.now-content {
	max-width: 40rem;
	font-size: clamp(1.12rem, 1.8vw, 1.45rem);
	line-height: 1.66;
	letter-spacing: 0;
}

.timeline-portal {
	display: grid;
	grid-template-columns: minmax(56px, 1fr) auto minmax(56px, 1fr);
	align-items: center;
	gap: clamp(1.25rem, 4vw, 4rem);
	width: 100%;
	max-width: none;
	padding-left: 0;
	padding-right: 0;
}

.timeline-portal-core {
	display: grid;
	justify-items: center;
	min-width: max-content;
}

.timeline-portal-wave {
	display: block;
	min-width: 0;
	height: clamp(2.4rem, 5vw, 3.7rem);
	overflow: hidden;
	color: var(--aa-muted);
	opacity: .68;
}

.timeline-portal-wave svg {
	display: block;
	width: 132%;
	height: 100%;
	margin-left: -16%;
	overflow: visible;
}

.timeline-portal-wave path {
	fill: none;
	stroke: currentColor;
	vector-effect: non-scaling-stroke;
}

.timeline-wave-base {
	stroke-width: .8;
	opacity: .42;
}

.timeline-wave-flow {
	stroke-width: .9;
	stroke-dasharray: 7 12;
	stroke-linecap: round;
	animation: aa-timeline-flow 13s linear infinite;
}

.timeline-portal-wave--right .timeline-wave-flow {
	animation-direction: reverse;
}

.timeline-portal:hover .timeline-portal-wave {
	opacity: .9;
}

.timeline-portal:hover .timeline-wave-flow {
	animation-duration: 7s;
}

@keyframes aa-timeline-flow {
	from { stroke-dashoffset: 0; }
	to { stroke-dashoffset: -190; }
}

@media (prefers-reduced-motion: reduce) {
	.timeline-wave-flow {
		animation: none;
	}
	.timeline-portal:hover .timeline-portal-icon {
		transform: none;
	}
}

@media (max-width: 860px) {
	.timeline-portal {
		grid-template-columns: minmax(32px, 1fr) auto minmax(32px, 1fr);
		gap: .8rem;
	}
	.timeline-portal-wave {
		height: 2.4rem;
	}
	.timeline-portal-wave svg {
		width: 170%;
		margin-left: -35%;
	}
	.now-content {
		font-size: clamp(1.12rem, 5vw, 1.35rem);
	}
}


/* v1.0 — chronology alignment, compact Now text, unified Recent Archives */
.now-content {
	max-width: 44rem;
	font-family: var(--aa-body-font);
	font-size: .9rem;
	line-height: 1.9;
	letter-spacing: 0;
}

.now-content p {
	margin-bottom: 1.35em;
}

.timeline-portal-wave {
	transform: translateY(-2.15rem);
}

.recent-grid {
	display: grid;
	grid-template-columns: 160px minmax(0, 1fr);
	gap: clamp(1.5rem, 4vw, 4rem);
	align-items: start;
}

.recent-label {
	color: var(--aa-muted);
	font-family: var(--aa-sans-stack);
	font-size: .64rem;
	line-height: 1.45;
	letter-spacing: .13em;
	text-transform: uppercase;
	padding-top: .52rem;
}

.recent-main {
	min-width: 0;
}

.recent-title {
	margin: 0 0 1.8rem;
	font-family: var(--aa-display-font);
	font-size: var(--aa-heading-size);
	font-weight: 400;
	line-height: 1.02;
	letter-spacing: -.04em;
}

.recent-archive-grid {
	margin-left: 0;
}

@media (max-width: 860px) {
	.now-content {
		font-size: .92rem;
		line-height: 1.85;
	}

	.timeline-portal-wave {
		transform: translateY(-1.25rem);
	}

	.recent-grid {
		grid-template-columns: 1fr;
	}

	.recent-label {
		padding-top: 0;
	}

	.recent-title {
		margin-bottom: 1.5rem;
	}
}


/* v1.1 — chronology before Now; Now follows archive-summary typography */
.now-content {
	max-width: 44rem;
	color: var(--aa-muted);
	font-family: var(--aa-body-font);
	font-size: .9rem;
	line-height: 1.75;
	letter-spacing: 0;
}

.now-content p {
	margin: 0 0 1.35em;
}

.now-content p:last-child {
	margin-bottom: 0;
}

.now-content a {
	color: inherit;
}


/* v1.2 — homepage refinement based on the approved full-page reference */

/* “此刻” uses the same scale as recent archive entry titles. */
.now-content {
	max-width: 44rem;
	color: var(--aa-text);
	font-family: var(--aa-body-font);
	font-size: clamp(1.15rem, 2vw, 1.5rem);
	line-height: 1.72;
	letter-spacing: 0;
}

.now-content p {
	margin: 0 0 1.35em;
}

.now-content p:last-child {
	margin-bottom: 0;
}

.now-content a {
	color: inherit;
}

/* Reduce the visual weight of the “最近归档” heading. */
.recent-title {
	font-size: clamp(1.85rem, 3.5vw, 2.85rem);
	line-height: 1.08;
	letter-spacing: -.03em;
	margin-bottom: 1.6rem;
}

/* Give the four recent items a quiet archival frame. */
.recent-archive-grid {
	align-items: stretch;
}

.recent-archive-grid .archive-card {
	display: flex;
	flex-direction: column;
	min-height: 100%;
	padding: 1rem 1.15rem 1.2rem;
	border: 1px solid var(--aa-line);
	background: transparent;
	overflow: hidden;
}

.recent-archive-grid .archive-card h3 {
	margin-top: .65rem;
}

.recent-archive-grid .archive-card p {
	margin-top: auto;
	padding-top: .15rem;
}

/* Tighten the chronology portal vertically without changing its composition. */
.timeline-portal-section {
	padding-top: clamp(2.5rem, 5vw, 4.25rem);
	padding-bottom: clamp(2.5rem, 5vw, 4.25rem);
}

.timeline-portal {
	padding-top: clamp(1.4rem, 3vw, 2.35rem);
	padding-bottom: clamp(1.4rem, 3vw, 2.35rem);
}

.timeline-portal-icon {
	margin-top: 1.1rem;
}

@media (max-width: 860px) {
	.now-content {
		font-size: 1.12rem;
		line-height: 1.72;
	}

	.recent-title {
		font-size: clamp(1.75rem, 8vw, 2.35rem);
	}

	.recent-archive-grid .archive-card {
		padding: .95rem 1rem 1.1rem;
	}

	.timeline-portal-section {
		padding-top: 2.4rem;
		padding-bottom: 2.4rem;
	}
}


/* v1.3 — editorial summaries for category hub pages */
.aa-category-hub-list {
	border-top: 1px solid var(--aa-text);
}

.aa-category-hub-item {
	grid-template-columns: minmax(130px, .9fr) minmax(0, 4.4fr) minmax(120px, .9fr);
	align-items: start;
	padding: 1.15rem 0 1.3rem;
}

.aa-category-hub-main {
	min-width: 0;
}

.aa-category-hub-main h2 {
	margin: 0;
	font-family: var(--aa-display-font);
	font-size: clamp(1.08rem, 1.8vw, 1.35rem);
	font-weight: 400;
	line-height: 1.38;
}

.aa-category-hub-main p {
	max-width: 46rem;
	margin: .5rem 0 0;
	color: var(--aa-muted);
	font-family: var(--aa-body-font);
	font-size: .86rem;
	line-height: 1.72;
}

.aa-category-hub-item > time,
.aa-category-hub-item > span {
	padding-top: .12rem;
}

@media (max-width: 860px) {
	.aa-category-hub-item {
		grid-template-columns: 1fr;
		gap: .28rem;
		padding: 1rem 0 1.15rem;
	}

	.aa-category-hub-main p {
		margin-top: .42rem;
		font-size: .88rem;
		line-height: 1.7;
	}

	.aa-category-hub-item > span {
		margin-top: .15rem;
	}
}


/* v1.5 — continuous reading navigation and category pagination */
.archive-entry-navigation {
	width: min(calc(100% - 2.5rem), var(--aa-max));
	margin: clamp(3.5rem, 8vw, 7rem) auto 0;
	padding: 1.15rem 0 clamp(3.5rem, 7vw, 6rem);
	border-top: 1px solid var(--aa-line);
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(1.5rem, 5vw, 5rem);
}

.archive-entry-nav-item {
	min-width: 0;
}

.archive-entry-nav-item--next {
	text-align: right;
}

.archive-entry-nav-link {
	display: block;
	text-decoration: none;
}

.archive-entry-nav-label {
	display: block;
	margin-bottom: .65rem;
	color: var(--aa-muted);
	font-family: var(--aa-sans-stack);
	font-size: .68rem;
	line-height: 1.45;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.archive-entry-nav-title {
	display: block;
	font-family: var(--aa-display-font);
	font-size: clamp(1.15rem, 2.2vw, 1.75rem);
	font-weight: 400;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.archive-entry-nav-context {
	display: block;
	margin-top: .55rem;
	color: var(--aa-muted);
	font-family: var(--aa-sans-stack);
	font-size: .7rem;
}

.aa-category-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem 2rem;
	padding-top: 1.5rem;
}

.aa-page-numbers {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .4rem;
}

.aa-page-number,
.aa-page-direction {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2rem;
	height: 2rem;
	padding: 0 .55rem;
	border: 1px solid var(--aa-line);
	font-family: var(--aa-sans-stack);
	font-size: .72rem;
	text-decoration: none;
}

.aa-page-number.is-current {
	border-color: var(--aa-text);
	background: var(--aa-text);
	color: var(--aa-paper);
}

.aa-page-jump {
	display: flex;
	align-items: center;
	gap: .55rem;
	color: var(--aa-muted);
	font-family: var(--aa-sans-stack);
	font-size: .72rem;
}

.aa-page-jump label {
	white-space: nowrap;
}

.aa-page-jump input {
	width: 4.2rem;
	height: 2rem;
	padding: .25rem .45rem;
	text-align: center;
}

.aa-page-jump button {
	min-height: 2rem;
	padding: .25rem .7rem;
	font-size: .72rem;
}

@media (max-width: 860px) {
	.archive-entry-navigation {
		grid-template-columns: 1fr;
		gap: 1.75rem;
	}

	.archive-entry-nav-item--next {
		text-align: left;
	}

	.aa-category-pagination {
		align-items: flex-start;
	}

	.aa-page-jump {
		width: 100%;
	}
}


/* v1.6 — contextual return link and cleaned menu page headings */
.entry-back {
	margin-bottom: clamp(1.4rem, 3vw, 2.25rem);
}

.entry-back-link {
	display: inline-flex;
	align-items: center;
	gap: .48rem;
	color: var(--aa-muted);
	font-family: var(--aa-sans-stack);
	font-size: .7rem;
	line-height: 1.4;
	letter-spacing: .025em;
	text-decoration: none;
}

.entry-back-arrow {
	display: inline-block;
	font-size: 1rem;
	line-height: 1;
	transition: transform .18s ease;
}

.entry-back-link:hover {
	color: var(--aa-text);
	opacity: 1;
}

.entry-back-link:hover .entry-back-arrow {
	transform: translateX(-.22rem);
}

/* Page titles no longer reserve visual space for the removed PAGE / PROJECTS eyebrow. */
.archive-list-header--clean h1 {
	margin-top: 0;
}

@media (max-width: 860px) {
	.entry-back {
		margin-bottom: 1.2rem;
	}
}


/* v1.7 — balanced single-page spacing */
.single-archive_entry .entry-header,
.single-archive_project .entry-header {
	padding-top: clamp(2rem, 4vw, 3rem);
}

.single-archive_entry .entry-back,
.single-archive_project .entry-back {
	margin-bottom: clamp(2rem, 4vw, 3rem);
}

@media (max-width: 860px) {
	.single-archive_entry .entry-header,
	.single-archive_project .entry-header {
		padding-top: 1.5rem;
	}

	.single-archive_entry .entry-back,
	.single-archive_project .entry-back {
		margin-bottom: 1.5rem;
	}
}


/* v1.9 — Other Memories / Memory Orbit */
.aa-memory-introduction {
	max-width: 760px;
	margin: 0 auto clamp(3rem, 7vw, 5rem);
	text-align: center;
}

.aa-memory-introduction p {
	margin: 0;
	font-size: clamp(1rem, 1.7vw, 1.25rem);
	line-height: 1.75;
}

.aa-memory-introduction-en {
	margin-top: .7rem !important;
	color: var(--aa-muted);
	font-size: .76rem !important;
}

.aa-memory-notice {
	max-width: 760px;
	margin: 0 auto 2rem;
	padding: .9rem 1rem;
	border: 1px solid var(--aa-line);
	font-size: .86rem;
	text-align: center;
}

.aa-memory-notice--error {
	border-color: var(--aa-text);
}

.aa-memory-orbit {
	margin: 0 auto clamp(4rem, 9vw, 7rem);
}

.aa-memory-orbit-stage {
	--aa-orbit-size: min(76vw, 720px);
	--aa-orbit-radius: calc(var(--aa-orbit-size) * .46);
	position: relative;
	width: var(--aa-orbit-size);
	aspect-ratio: 1;
	margin: 0 auto;
	border-radius: 50%;
	touch-action: pan-y;
	user-select: none;
	outline: none;
}

.aa-memory-orbit-stage:focus-visible {
	outline: 1px solid var(--aa-text);
	outline-offset: 1rem;
}

.aa-memory-ring,
.aa-memory-empty-ring {
	position: absolute;
	inset: 4%;
	border: 1px solid color-mix(in srgb, var(--aa-text) 44%, transparent);
	border-radius: 50%;
}

.aa-memory-ring::before,
.aa-memory-ring::after {
	content: "";
	position: absolute;
	inset: 12%;
	border: 1px solid color-mix(in srgb, var(--aa-line) 70%, transparent);
	border-radius: 50%;
}

.aa-memory-ring::after {
	inset: 24%;
}

.aa-memory-dots {
	position: absolute;
	inset: 50%;
}

.aa-memory-dot {
	position: absolute;
	left: 0;
	top: 0;
	width: .58rem;
	height: .58rem;
	padding: 0;
	border: 1px solid var(--aa-text);
	border-radius: 50%;
	background: var(--aa-text);
	color: inherit;
	transform:
		translate(-50%, -50%)
		rotate(var(--aa-memory-angle))
		translateY(calc(var(--aa-orbit-radius) * -1));
	transform-origin: center;
	transition: transform .5s cubic-bezier(.25,.7,.25,1), width .2s ease, height .2s ease, background .2s ease;
	z-index: 3;
}

.aa-memory-dot.is-approximate {
	background: var(--aa-bg);
}

.aa-memory-dot.is-active {
	width: 1rem;
	height: 1rem;
	box-shadow: 0 0 0 .35rem var(--aa-bg), 0 0 0 calc(.35rem + 1px) var(--aa-text);
}

.aa-memory-center {
	position: absolute;
	inset: 26%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	text-decoration: none;
	z-index: 2;
}

.aa-memory-center-year {
	color: var(--aa-muted);
	font-family: var(--aa-sans-stack);
	font-size: .68rem;
	letter-spacing: .08em;
}

.aa-memory-center-text {
	margin-top: 1.1rem;
	font-family: var(--aa-display-font);
	font-size: clamp(1.2rem, 2.6vw, 2rem);
	line-height: 1.55;
}

.aa-memory-center-author {
	margin-top: 1rem;
	color: var(--aa-muted);
	font-size: .78rem;
}

.aa-memory-center-action {
	margin-top: 1.2rem;
	font-family: var(--aa-sans-stack);
	font-size: .68rem;
}

.aa-memory-orbit-control {
	position: absolute;
	top: 50%;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 1px solid var(--aa-line);
	border-radius: 50%;
	background: var(--aa-bg);
	color: var(--aa-text);
	transform: translateY(-50%);
	z-index: 4;
}

.aa-memory-orbit-control--previous {
	left: -1rem;
}

.aa-memory-orbit-control--next {
	right: -1rem;
}

.aa-memory-orbit-instruction {
	margin: 1.5rem auto 0;
	color: var(--aa-muted);
	font-family: var(--aa-sans-stack);
	font-size: .68rem;
	text-align: center;
}

.aa-memory-empty {
	position: relative;
	width: min(70vw, 560px);
	aspect-ratio: 1;
	margin: 0 auto clamp(4rem, 9vw, 7rem);
	display: grid;
	place-items: center;
	text-align: center;
}

.aa-memory-empty-ring {
	inset: 5%;
}

.aa-memory-submission {
	max-width: 920px;
	margin: 0 auto clamp(4rem, 9vw, 7rem);
}

.aa-memory-submission summary {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 0;
	border-top: 1px solid var(--aa-text);
	border-bottom: 1px solid var(--aa-line);
	cursor: pointer;
	font-family: var(--aa-display-font);
	font-size: clamp(1.4rem, 3vw, 2.2rem);
	list-style: none;
}

.aa-memory-submission summary::-webkit-details-marker {
	display: none;
}

.aa-memory-submission summary span:last-child {
	color: var(--aa-muted);
	font-family: var(--aa-sans-stack);
	font-size: .72rem;
	align-self: center;
}

.aa-memory-submission-inner {
	padding: 1.5rem 0 0;
}

.aa-memory-submission-inner > p {
	max-width: 700px;
	color: var(--aa-muted);
	font-size: .88rem;
}

.aa-memory-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.15rem 1.5rem;
	margin-top: 2rem;
}

.aa-memory-form label {
	display: grid;
	gap: .4rem;
	font-family: var(--aa-sans-stack);
	font-size: .72rem;
}

.aa-memory-form input,
.aa-memory-form select,
.aa-memory-form textarea {
	width: 100%;
	background: transparent;
	border: 1px solid var(--aa-line);
	padding: .7rem .75rem;
	color: var(--aa-text);
}

.aa-memory-form textarea {
	resize: vertical;
	font-family: var(--aa-body-font);
	font-size: .95rem;
	line-height: 1.7;
}

.aa-memory-form-wide {
	grid-column: 1 / -1;
}

.aa-memory-form-consent {
	display: grid !important;
	grid-template-columns: auto 1fr;
	align-items: start;
}

.aa-memory-form-consent input {
	width: auto;
	margin-top: .24rem;
}

.aa-memory-form-actions button {
	padding: .65rem 1rem;
}

.aa-memory-form-honeypot {
	position: absolute;
	left: -9999px;
}

.aa-memory-fallback-list {
	max-width: 920px;
	margin: 0 auto;
	border-top: 1px solid var(--aa-text);
}

.aa-memory-fallback-list > h2 {
	margin: 1rem 0 1.5rem;
	font-size: 1rem;
	font-weight: 400;
}

.aa-memory-fallback-list article {
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr);
	gap: 1.5rem;
	padding: 1rem 0;
	border-top: 1px solid var(--aa-line);
}

.aa-memory-fallback-list time,
.aa-memory-fallback-list p {
	color: var(--aa-muted);
	font-family: var(--aa-sans-stack);
	font-size: .7rem;
}

.aa-memory-fallback-list h3 {
	margin: 0;
	font-size: 1rem;
	font-weight: 400;
}

.aa-memory-fallback-list p {
	margin: .4rem 0 0;
}

/* Timeline filters moved from Index */
.aa-timeline-controls {
	margin: 0 0 clamp(2.5rem, 6vw, 4.5rem);
}

.aa-timeline-source-switch {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem 1.2rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--aa-line);
}

.aa-timeline-source-switch a {
	color: var(--aa-muted);
	font-family: var(--aa-sans-stack);
	font-size: .72rem;
	text-decoration: none;
}

.aa-timeline-source-switch a.is-active {
	color: var(--aa-text);
	text-decoration: underline;
	text-underline-offset: .25em;
}

.aa-timeline-filter {
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	gap: 1rem;
	padding-top: 1rem;
}

.aa-timeline-filter label {
	display: grid;
	gap: .35rem;
	font-family: var(--aa-sans-stack);
	font-size: .7rem;
}

.aa-timeline-filter select,
.aa-timeline-filter input {
	min-width: 10rem;
}

.aa-timeline-reset {
	padding: .55rem 0;
	color: var(--aa-muted);
	font-family: var(--aa-sans-stack);
	font-size: .7rem;
}

.aa-timeline-filter-note {
	margin: .8rem 0 0;
	color: var(--aa-muted);
	font-family: var(--aa-sans-stack);
	font-size: .68rem;
}

.aa-timeline-item--memory {
	color: var(--aa-muted);
}

.aa-timeline-memory-main h3 {
	display: flex;
	align-items: center;
	gap: .5rem;
}

.aa-timeline-memory-main p {
	margin: .35rem 0 0;
	font-size: .82rem;
	line-height: 1.65;
}

.aa-timeline-memory-symbol,
.aa-memory-echo-symbol {
	display: inline-block;
	font-size: 1.1rem;
	line-height: 1;
}

.aa-memory-echo-wrap {
	position: relative;
	display: inline-flex;
	margin-left: .35rem;
	vertical-align: middle;
}

.aa-memory-echo-toggle {
	display: inline-flex;
	align-items: center;
	gap: .15rem;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--aa-text);
}

.aa-memory-echo-count {
	font-size: .58rem;
}

.aa-memory-echo-popover {
	position: absolute;
	left: 50%;
	bottom: calc(100% + .65rem);
	width: min(280px, 72vw);
	padding: .8rem .9rem;
	border: 1px solid var(--aa-line);
	background: var(--aa-paper);
	box-shadow: 0 8px 30px rgba(0,0,0,.06);
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, .3rem);
	transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
	z-index: 10;
}

.aa-memory-echo-toggle[aria-expanded="true"] + .aa-memory-echo-popover,
.aa-memory-echo-wrap:hover .aa-memory-echo-popover {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
}

.aa-memory-echo-label,
.aa-memory-echo-preview,
.aa-memory-echo-popover a {
	display: block;
}

.aa-memory-echo-label {
	color: var(--aa-muted);
	font-family: var(--aa-sans-stack);
	font-size: .62rem;
}

.aa-memory-echo-preview {
	margin-top: .45rem;
	font-size: .82rem;
	line-height: 1.55;
}

.aa-memory-echo-popover a {
	margin-top: .6rem;
	font-family: var(--aa-sans-stack);
	font-size: .65rem;
}

/* Single memory */
.memory-entry-header .entry-meta {
	grid-template-columns: repeat(3, 1fr);
}

.memory-entry-body {
	font-size: clamp(1.05rem, 1.7vw, 1.2rem);
}

.memory-entry-attribution {
	margin-top: 2.5rem;
	color: var(--aa-muted);
}

.memory-related {
	margin-top: 3.5rem;
	padding-top: 1rem;
	border-top: 1px solid var(--aa-line);
}

@media (prefers-reduced-motion: reduce) {
	.aa-memory-dot {
		transition: none;
	}
}

@media (max-width: 860px) {
	.aa-memory-orbit-stage {
		--aa-orbit-size: min(92vw, 540px);
	}

	.aa-memory-center {
		inset: 25%;
	}

	.aa-memory-center-text {
		font-size: clamp(1rem, 4vw, 1.35rem);
	}

	.aa-memory-orbit-control {
		top: auto;
		bottom: -3rem;
		transform: none;
	}

	.aa-memory-orbit-control--previous {
		left: calc(50% - 3rem);
	}

	.aa-memory-orbit-control--next {
		right: calc(50% - 3rem);
	}

	.aa-memory-orbit-instruction {
		margin-top: 4rem;
	}

	.aa-memory-form {
		grid-template-columns: 1fr;
	}

	.aa-memory-form-wide {
		grid-column: auto;
	}

	.aa-memory-fallback-list article {
		grid-template-columns: 1fr;
		gap: .3rem;
	}

	.aa-timeline-filter {
		display: grid;
		grid-template-columns: 1fr;
	}

	.aa-timeline-filter select,
	.aa-timeline-filter input {
		width: 100%;
	}

	.memory-entry-header .entry-meta {
		grid-template-columns: 1fr 1fr;
	}
}


/* v2.0 — balanced menu-page spacing */

/*
 * The distance from the sticky navigation to the page title now matches
 * the distance from the title to the dividing rule.
 */
.archive-list-header {
	padding-top: clamp(2.25rem, 4vw, 3rem);
	padding-bottom: clamp(2.25rem, 4vw, 3rem);
}

.archive-list-header h1,
.archive-list-header--clean h1 {
	margin-top: 0;
	margin-bottom: 0;
}

/*
 * The first control/category row begins closer to the title divider.
 * These values mirror the space beneath that row, creating an even band.
 */
.archive-list-header + .entry-content.container {
	padding-top: clamp(1.5rem, 3vw, 2rem);
}

.archive-list-header + .section {
	padding-top: clamp(1.5rem, 3vw, 2rem);
}

/* Category navigation: equal space above and below its text. */
.aa-category-hub-nav {
	padding-top: 0;
	padding-bottom: clamp(1.5rem, 3vw, 2rem);
}

/*
 * Timeline source tabs form the first compact band beneath the page title.
 * The page-content top space and the tabs' bottom space use the same scale.
 */
.aa-timeline-source-switch {
	padding-top: 0;
	padding-bottom: clamp(1.5rem, 3vw, 2rem);
}

/* Keep the complete filter control set on one horizontal line on desktop. */
.aa-timeline-filter {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: .8rem 1.1rem;
	padding-top: clamp(1.25rem, 2.5vw, 1.75rem);
}

.aa-timeline-filter label {
	display: inline-flex;
	flex: 0 1 auto;
	align-items: center;
	gap: .65rem;
	white-space: nowrap;
}

.aa-timeline-filter select,
.aa-timeline-filter input {
	min-width: 0;
	width: auto;
}

.aa-timeline-filter select {
	width: clamp(10.5rem, 16vw, 14rem);
}

.aa-timeline-filter input[type="number"] {
	width: clamp(7.5rem, 11vw, 10rem);
}

.aa-timeline-filter button {
	flex: 0 0 auto;
	white-space: nowrap;
	padding: .56rem .9rem;
	font-size: .78rem;
}

.aa-timeline-reset {
	flex: 0 0 auto;
	white-space: nowrap;
	padding: .56rem 0;
}

.aa-timeline-filter-note {
	display: block;
	clear: both;
	margin-top: .75rem;
	margin-bottom: 0;
}

/* Reduce the blank interval before the actual timeline or category list. */
.aa-timeline-controls {
	margin-bottom: clamp(1.75rem, 4vw, 3rem);
}

@media (max-width: 860px) {
	.archive-list-header {
		padding-top: 1.75rem;
		padding-bottom: 1.75rem;
	}

	.archive-list-header + .entry-content.container,
	.archive-list-header + .section {
		padding-top: 1.25rem;
	}

	.aa-category-hub-nav,
	.aa-timeline-source-switch {
		padding-bottom: 1.25rem;
	}

	.aa-timeline-filter {
		display: grid;
		grid-template-columns: 1fr;
		align-items: stretch;
		padding-top: 1.25rem;
	}

	.aa-timeline-filter label {
		display: grid;
		grid-template-columns: 1fr;
		gap: .35rem;
		white-space: normal;
	}

	.aa-timeline-filter select,
	.aa-timeline-filter input[type="number"] {
		width: 100%;
	}

	.aa-timeline-filter button,
	.aa-timeline-reset {
		justify-self: start;
	}
}


/* v2.1 — stationary Memory Orbit and mobile Timeline refinements */

/* Remove the former rotating-center presentation. */
.aa-memory-ring::before,
.aa-memory-ring::after {
	display: none;
}

.aa-memory-orbit-stage {
	--aa-orbit-size: min(72vw, 700px);
	overflow: visible;
	touch-action: pan-y;
}

.aa-memory-dots {
	position: absolute;
	inset: 0;
}

.aa-memory-dot {
	left: auto;
	top: auto;
	transform: translate(-50%, -50%);
	transform-origin: center;
	transition:
		width .18s ease,
		height .18s ease,
		background .18s ease,
		box-shadow .18s ease;
}

.aa-memory-dot.is-active {
	width: 1rem;
	height: 1rem;
	transform: translate(-50%, -50%);
}

.aa-memory-orbit-title {
	position: absolute;
	left: 50%;
	top: 50%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .25rem;
	transform: translate(-50%, -50%);
	color: var(--aa-muted);
	text-align: center;
	pointer-events: none;
}

.aa-memory-orbit-title span:first-child {
	font-family: var(--aa-display-font);
	font-size: clamp(.9rem, 1.4vw, 1.1rem);
}

.aa-memory-orbit-title span:last-child {
	font-family: var(--aa-sans-stack);
	font-size: .58rem;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.aa-memory-point-preview {
	position: absolute;
	width: min(290px, 36vw);
	padding: .9rem 1rem;
	border: 1px solid var(--aa-line);
	background: var(--aa-paper);
	box-shadow: 0 10px 35px rgba(0,0,0,.055);
	text-decoration: none;
	z-index: 5;
}

.aa-memory-point-preview.is-left-half.is-top-half {
	transform: translate(.9rem, .9rem);
}

.aa-memory-point-preview.is-right-half.is-top-half {
	transform: translate(calc(-100% - .9rem), .9rem);
}

.aa-memory-point-preview.is-left-half.is-bottom-half {
	transform: translate(.9rem, calc(-100% - .9rem));
}

.aa-memory-point-preview.is-right-half.is-bottom-half {
	transform: translate(calc(-100% - .9rem), calc(-100% - .9rem));
}

.aa-memory-point-date,
.aa-memory-point-text,
.aa-memory-point-author,
.aa-memory-point-action {
	display: block;
}

.aa-memory-point-date {
	color: var(--aa-muted);
	font-family: var(--aa-sans-stack);
	font-size: .62rem;
	letter-spacing: .04em;
}

.aa-memory-point-text {
	margin-top: .55rem;
	font-family: var(--aa-display-font);
	font-size: clamp(.95rem, 1.65vw, 1.25rem);
	line-height: 1.55;
}

.aa-memory-point-author {
	margin-top: .55rem;
	color: var(--aa-muted);
	font-size: .68rem;
}

.aa-memory-point-action {
	margin-top: .7rem;
	font-family: var(--aa-sans-stack);
	font-size: .62rem;
}

.aa-memory-orbit-navigation {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.25rem;
	margin: 1.25rem auto 0;
}

.aa-memory-orbit-control {
	position: static;
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	width: auto;
	height: auto;
	padding: .5rem .75rem;
	border: 0;
	border-bottom: 1px solid var(--aa-line);
	border-radius: 0;
	background: transparent;
	transform: none;
	font-family: var(--aa-sans-stack);
	font-size: .68rem;
}

.aa-memory-orbit-position {
	color: var(--aa-muted);
	font-family: var(--aa-sans-stack);
	font-size: .64rem;
}

.aa-memory-orbit-instruction {
	max-width: 620px;
	margin-top: .85rem;
	line-height: 1.6;
}

/* Echo popovers can show several linked memories. */
.aa-memory-echo-entry {
	display: block;
	padding-top: .55rem;
	margin-top: .55rem;
	border-top: 1px solid var(--aa-line);
}

.aa-memory-echo-entry:first-of-type {
	padding-top: 0;
	margin-top: .5rem;
	border-top: 0;
}

.aa-memory-echo-entry a {
	display: block;
	margin-top: .42rem;
}

/* Refine timeline rows on desktop. */
.aa-timeline-item--memory {
	position: relative;
	color: var(--aa-muted);
}

.aa-timeline-item--memory::before {
	content: "";
	position: absolute;
	left: 0;
	top: .9rem;
	bottom: .9rem;
	width: 1px;
	background: var(--aa-line);
}

.aa-timeline-item--memory > time {
	padding-left: .85rem;
}

.aa-timeline-item--archive > time {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: .25rem;
}

/* Memory detail return context. */
.single-archive_memory .entry-header {
	padding-top: clamp(2rem, 4vw, 3rem);
}

/* Mobile Timeline: clear hierarchy and stable row structure. */
@media (max-width: 860px) {
	.aa-timeline-year {
		display: block;
		padding: 1rem 0 2rem;
	}

	.aa-timeline-year > h2 {
		margin: 0 0 .9rem;
		font-size: 2rem;
	}

	.aa-timeline-items {
		border-top: 1px solid var(--aa-line);
	}

	.aa-timeline-item,
	.aa-timeline--compact .aa-timeline-item {
		display: grid;
		grid-template-columns: 1fr;
		gap: .35rem;
		padding: 1rem 0;
	}

	.aa-timeline-item > time {
		display: block;
		padding: 0;
		font-size: .68rem;
	}

	.aa-timeline-item h3 {
		font-size: 1rem;
		line-height: 1.5;
	}

	.aa-timeline-item > span {
		display: block;
		margin-top: .15rem;
		font-size: .66rem;
	}

	.aa-timeline-item--memory {
		padding-left: 1rem;
	}

	.aa-timeline-item--memory::before {
		top: 1rem;
		bottom: 1rem;
	}

	.aa-timeline-memory-main h3 {
		margin: 0;
	}

	.aa-timeline-memory-main p {
		margin-top: .4rem;
		font-size: .82rem;
		line-height: 1.6;
	}

	.aa-timeline-item--archive > time {
		display: flex;
		align-items: center;
	}

	/*
	 * On mobile the echo preview expands in the row instead of floating
	 * outside the viewport.
	 */
	.aa-memory-echo-wrap {
		position: static;
		display: inline-flex;
	}

	.aa-memory-echo-popover {
		position: static;
		display: none;
		width: 100%;
		margin-top: .65rem;
		padding: .75rem .8rem;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
	}

	.aa-memory-echo-toggle[aria-expanded="true"] + .aa-memory-echo-popover {
		display: block;
		transform: none;
	}

	.aa-memory-echo-wrap:hover .aa-memory-echo-popover {
		display: none;
	}

	.aa-memory-echo-wrap:has(.aa-memory-echo-toggle[aria-expanded="true"]) {
		display: flex;
		flex-wrap: wrap;
		width: 100%;
	}

	/* Mobile Memory Orbit. */
	.aa-memory-introduction {
		margin-bottom: 2.5rem;
		padding: 0 .25rem;
	}

	.aa-memory-introduction p {
		font-size: .96rem;
	}

	.aa-memory-introduction-en {
		font-size: .72rem !important;
		line-height: 1.55;
	}

	.aa-memory-orbit {
		margin-bottom: 3.5rem;
	}

	.aa-memory-orbit-stage {
		--aa-orbit-size: min(84vw, 430px);
		width: var(--aa-orbit-size);
	}

	.aa-memory-point-preview {
		width: min(225px, 58vw);
		padding: .75rem .8rem;
	}

	.aa-memory-point-text {
		font-size: .92rem;
		line-height: 1.48;
	}

	.aa-memory-point-action {
		margin-top: .55rem;
	}

	.aa-memory-orbit-navigation {
		margin-top: 1.1rem;
	}

	.aa-memory-orbit-control {
		bottom: auto;
		left: auto;
		right: auto;
	}

	.aa-memory-orbit-instruction {
		margin-top: .75rem;
		padding: 0 1rem;
		font-size: .64rem;
	}

	.aa-memory-submission,
	.aa-memory-fallback-list {
		margin-left: 0;
		margin-right: 0;
	}

	.aa-memory-submission summary {
		align-items: center;
		font-size: 1.45rem;
	}

	.aa-memory-submission summary span:last-child {
		font-size: .66rem;
	}

	.aa-memory-fallback-list > h2 {
		font-size: 1rem;
		line-height: 1.45;
	}
}

@media (max-width: 520px) {
	.aa-memory-orbit-stage {
		--aa-orbit-size: min(82vw, 350px);
	}

	.aa-memory-point-preview {
		width: min(205px, 62vw);
		padding: .68rem .72rem;
	}

	.aa-memory-point-text {
		font-size: .84rem;
	}

	.aa-memory-dot.is-active {
		width: .9rem;
		height: .9rem;
		box-shadow: 0 0 0 .28rem var(--aa-bg), 0 0 0 calc(.28rem + 1px) var(--aa-text);
	}
}


/* v2.2 — aligned Timeline echo column */
.aa-timeline-item,
.aa-timeline--compact .aa-timeline-item {
	display: grid;
	grid-template-columns:
		minmax(150px, .95fr)
		64px
		minmax(0, 4.4fr)
		minmax(120px, .9fr);
	grid-template-areas: "date echo title type";
	align-items: center;
	column-gap: clamp(.8rem, 2vw, 1.5rem);
}

.aa-timeline-item > time {
	grid-area: date;
}

.aa-timeline-echo-cell {
	grid-area: echo;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 64px;
	min-height: 2.9rem;
}

.aa-timeline-item > h3,
.aa-timeline-memory-main {
	grid-area: title;
	min-width: 0;
}

.aa-timeline-item > span {
	grid-area: type;
	text-align: right;
}

.aa-memory-echo-wrap {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
}

.aa-memory-echo-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .25rem;
	min-width: 2.4rem;
	min-height: 2.4rem;
	padding: .2rem;
	border: 0;
	background: transparent;
	color: var(--aa-text);
	cursor: pointer;
}

.aa-memory-echo-symbol {
	display: block;
	width: 1.18rem;
	height: 1.18rem;
	border: 1.5px solid currentColor;
	border-radius: 50%;
	box-sizing: border-box;
}

.aa-memory-echo-toggle:hover .aa-memory-echo-symbol,
.aa-memory-echo-toggle[aria-expanded="true"] .aa-memory-echo-symbol {
	background: var(--aa-text);
	box-shadow: inset 0 0 0 .24rem var(--aa-paper);
}

.aa-memory-echo-count {
	font-family: var(--aa-sans-stack);
	font-size: .66rem;
	line-height: 1;
}

.aa-timeline-memory-main {
	position: relative;
}

.aa-memory-standalone-title {
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--aa-muted);
	font-family: var(--aa-display-font);
	font-size: clamp(1rem, 1.65vw, 1.25rem);
	line-height: 1.45;
	text-align: left;
	text-decoration: underline;
	text-underline-offset: .18em;
	cursor: pointer;
}

.aa-timeline-item--memory-group {
	position: relative;
	color: var(--aa-muted);
}

.aa-timeline-item--memory-group::before {
	content: "";
	position: absolute;
	left: 0;
	top: .85rem;
	bottom: .85rem;
	width: 1px;
	background: var(--aa-line);
}

.aa-memory-echo-popover {
	position: absolute;
	left: 50%;
	top: calc(100% + .55rem);
	bottom: auto;
	width: min(310px, 72vw);
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, .25rem);
}

.aa-memory-echo-popover.is-open,
.aa-memory-echo-wrap:hover .aa-memory-echo-popover,
.aa-timeline-item--memory-group:hover .aa-memory-echo-popover--standalone {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
}

.aa-memory-echo-popover--standalone {
	left: 0;
	top: calc(100% + .55rem);
	transform: translate(0, .25rem);
}

.aa-memory-echo-popover--standalone.is-open,
.aa-timeline-item--memory-group:hover .aa-memory-echo-popover--standalone {
	transform: translate(0, 0);
}

.aa-memory-echo-entry a {
	font-size: .66rem;
}

/* Memory Orbit instructions */
.aa-memory-orbit-instruction {
	display: grid;
	gap: .35rem;
	max-width: 760px;
	margin: 1.45rem auto 0;
	padding: 0 1rem;
	color: var(--aa-muted);
	font-family: var(--aa-sans-stack);
	font-size: .68rem;
	line-height: 1.6;
	text-align: center;
}

.aa-memory-orbit-instruction p {
	margin: 0;
}

.aa-memory-orbit-instruction span {
	margin-left: .28rem;
	color: color-mix(in srgb, var(--aa-muted) 82%, transparent);
}

/* “Leave a Point” is now a clearly interactive framed module. */
.aa-memory-submission {
	max-width: 920px;
	margin: 0 auto clamp(4rem, 9vw, 7rem);
	padding: clamp(1.5rem, 3vw, 2.25rem);
	border: 1px solid var(--aa-line);
}

.aa-memory-submission summary {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1.25rem;
	min-height: 12rem;
	padding: 1.5rem;
	border: 0;
	text-align: center;
}

.aa-memory-submission-title {
	display: grid;
	gap: .35rem;
}

.aa-memory-submission-title > span:first-child {
	font-family: var(--aa-display-font);
	font-size: clamp(2rem, 5vw, 3.75rem);
	line-height: 1.1;
}

.aa-memory-submission-title > span:last-child {
	color: var(--aa-muted);
	font-family: var(--aa-sans-stack);
	font-size: .72rem;
	letter-spacing: .04em;
}

.aa-memory-submission-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .55rem;
	padding: .65rem 1rem;
	border: 1px solid var(--aa-text);
	font-family: var(--aa-sans-stack);
	font-size: .72rem;
}

.aa-memory-submission[open] .aa-memory-submission-action span[aria-hidden="true"] {
	transform: rotate(45deg);
}

.aa-memory-submission-inner {
	padding: 1.5rem 0 0;
	border-top: 1px solid var(--aa-line);
}

.aa-memory-image-field small {
	color: var(--aa-muted);
	font-size: .65rem;
	line-height: 1.6;
}

/* Submitted image on a public memory page. */
.memory-entry-image {
	margin: 2rem 0 2.5rem;
}

.memory-entry-image img {
	display: block;
	width: 100%;
	height: auto;
}

/* Mobile Timeline uses the same marker alignment in a compact two-column grid. */
@media (max-width: 860px) {
	.aa-timeline-item,
	.aa-timeline--compact .aa-timeline-item {
		display: grid;
		grid-template-columns: 2.25rem minmax(0, 1fr);
		grid-template-areas:
			"echo date"
			"echo title"
			"echo type";
		gap: .3rem .6rem;
		align-items: start;
		padding: 1rem 0;
	}

	.aa-timeline-echo-cell {
		align-items: flex-start;
		justify-content: center;
		min-width: 0;
		min-height: 0;
		padding-top: .02rem;
	}

	.aa-memory-echo-toggle {
		min-width: 1.8rem;
		min-height: 1.8rem;
		padding: 0;
	}

	.aa-memory-echo-symbol {
		width: 1rem;
		height: 1rem;
	}

	.aa-timeline-item > span {
		text-align: left;
	}

	.aa-timeline-item--memory-group {
		padding-left: 0;
	}

	.aa-timeline-item--memory-group::before {
		display: none;
	}

	.aa-memory-standalone-title {
		font-size: .98rem;
		line-height: 1.5;
	}

	.aa-memory-echo-popover,
	.aa-memory-echo-popover--standalone {
		position: static;
		display: none;
		grid-column: 1 / -1;
		width: 100%;
		margin-top: .65rem;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
	}

	.aa-memory-echo-popover.is-open {
		display: block;
		transform: none;
	}

	.aa-memory-echo-wrap:hover .aa-memory-echo-popover,
	.aa-timeline-item--memory-group:hover .aa-memory-echo-popover--standalone {
		display: none;
	}

	.aa-memory-orbit-instruction {
		margin-top: 1.5rem;
		padding: 0;
		font-size: .64rem;
	}

	.aa-memory-orbit-instruction p {
		display: block;
	}

	.aa-memory-orbit-instruction span {
		display: inline;
		margin-left: .2rem;
	}

	.aa-memory-submission {
		padding: 1rem;
	}

	.aa-memory-submission summary {
		min-height: 10rem;
		padding: 1rem;
	}

	.aa-memory-submission-title > span:first-child {
		font-size: 2rem;
	}
}


/* v2.3 — four-part memory introduction */
.aa-memory-introduction {
	display: grid;
	gap: .72rem;
	max-width: 1120px;
}

.aa-memory-introduction p,
.aa-memory-introduction-en {
	margin: 0 !important;
	line-height: 1.65;
}

.aa-memory-introduction-cn {
	font-size: clamp(1rem, 1.7vw, 1.25rem);
}

.aa-memory-introduction-en {
	font-size: .76rem !important;
}

/* v2.3 — compact instruction inside the Memory Orbit */
.aa-memory-orbit-title {
	width: min(250px, 36%);
	gap: .22rem;
}

.aa-memory-orbit-title-cn {
	font-family: var(--aa-display-font);
	font-size: clamp(.9rem, 1.4vw, 1.1rem);
}

.aa-memory-orbit-title-en {
	font-family: var(--aa-sans-stack);
	font-size: .58rem;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.aa-memory-orbit-center-instruction {
	display: grid;
	gap: .18rem;
	margin-top: .75rem;
	color: var(--aa-muted);
	font-family: var(--aa-sans-stack);
	font-size: .58rem;
	line-height: 1.5;
	letter-spacing: 0;
	text-transform: none;
}

.aa-memory-orbit-center-instruction > span {
	display: block;
}

/* v2.3 — position echo marker in a wider, centered gap */
.aa-timeline-item,
.aa-timeline--compact .aa-timeline-item {
	grid-template-columns:
		minmax(145px, .62fr)
		minmax(112px, .98fr)
		minmax(0, 4.75fr)
		minmax(110px, .82fr);
	column-gap: clamp(.5rem, 1vw, .9rem);
}

.aa-timeline-echo-cell {
	min-width: 0;
	width: 100%;
	justify-self: stretch;
	justify-content: center;
}

.aa-memory-echo-symbol {
	width: 1.18rem;
	height: 1.18rem;
	border: 1.5px dashed currentColor;
}

/* Standalone memory rows are intentionally quieter than archive titles. */
.aa-memory-standalone-title {
	color: var(--aa-muted);
	font-family: var(--aa-sans-stack);
	font-size: .82rem;
	font-weight: 400;
	line-height: 1.55;
	letter-spacing: .01em;
}

.aa-timeline-item--memory-group > span {
	display: none;
}

@media (max-width: 860px) {
	.aa-memory-introduction {
		gap: .55rem;
	}

	.aa-memory-introduction-cn {
		font-size: .96rem;
	}

	.aa-memory-introduction-en {
		font-size: .72rem !important;
	}

	.aa-memory-orbit-title {
		width: min(190px, 48%);
	}

	.aa-memory-orbit-center-instruction {
		margin-top: .6rem;
		font-size: .52rem;
		line-height: 1.45;
	}

	.aa-timeline-item,
	.aa-timeline--compact .aa-timeline-item {
		grid-template-columns: 2.4rem minmax(0, 1fr);
	}

	.aa-memory-echo-symbol {
		width: 1rem;
		height: 1rem;
	}

	.aa-memory-standalone-title {
		font-size: .76rem;
		line-height: 1.55;
	}
}


/* v2.4 — Memory Orbit begins without a selected point */
.aa-memory-point-preview[hidden] {
	display: none !important;
}

.aa-memory-orbit-center-instruction {
	font-size: .48rem;
	line-height: 1.42;
}

.aa-memory-orbit-title-cn {
	font-size: clamp(.92rem, 1.4vw, 1.08rem);
}

.aa-memory-orbit-title-en {
	font-size: .56rem;
}

/* v2.4 — shift the desktop echo column toward the visual center */
.aa-timeline-item,
.aa-timeline--compact .aa-timeline-item {
	grid-template-columns:
		minmax(185px, 1.15fr)
		72px
		minmax(0, 4.9fr)
		minmax(110px, .82fr);
	column-gap: clamp(.45rem, .9vw, .8rem);
}

.aa-timeline-echo-cell {
	transform: translateX(-24%);
}

/* Single-memory titles are direct links; multi-memory titles remain controls. */
a.aa-memory-standalone-title {
	display: inline;
	text-decoration: underline;
	text-underline-offset: .18em;
}

/* Explicit close control for Timeline memory previews. */
.aa-memory-popover-close {
	position: absolute;
	top: .45rem;
	right: .5rem;
	display: none;
	align-items: center;
	justify-content: center;
	width: 1.8rem;
	height: 1.8rem;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--aa-muted);
	font-size: 1.2rem;
	line-height: 1;
	cursor: pointer;
}

.aa-memory-echo-popover {
	padding-top: 1rem;
}

/* Bilingual image notes use independent lines. */
.aa-memory-image-field small {
	display: grid;
	gap: .38rem;
}

.aa-memory-image-field small > span {
	display: block;
}

@media (max-width: 860px) {
	/* Marker stays centered in its own column immediately left of the title. */
	.aa-timeline-item,
	.aa-timeline--compact .aa-timeline-item {
		grid-template-columns: 2.75rem minmax(0, 1fr);
		column-gap: .55rem;
	}

	.aa-timeline-echo-cell {
		transform: none;
		justify-content: center;
	}

	/*
	 * Mobile uses an explicit centered floating panel with a dimmed backdrop.
	 * Tapping outside or the close button closes it.
	 */
	body.aa-memory-popover-open {
		overflow: hidden;
	}

	body.aa-memory-popover-open::before {
		content: "";
		position: fixed;
		inset: 0;
		background: rgba(0, 0, 0, .18);
		z-index: 1000;
	}

	.aa-memory-echo-popover,
	.aa-memory-echo-popover--standalone {
		position: fixed;
		left: 50%;
		top: 50%;
		display: none;
		width: min(86vw, 420px);
		max-height: min(72vh, 560px);
		margin: 0;
		padding: 2.7rem 1.15rem 1.15rem;
		overflow-y: auto;
		border: 1px solid var(--aa-text);
		background: var(--aa-paper);
		opacity: 1;
		visibility: visible;
		transform: translate(-50%, -50%);
		box-shadow: 0 18px 55px rgba(0,0,0,.16);
		z-index: 1001;
	}

	.aa-memory-echo-popover.is-open,
	.aa-memory-echo-popover--standalone.is-open {
		display: block;
		transform: translate(-50%, -50%);
	}

	.aa-memory-popover-close {
		display: inline-flex;
	}

	.aa-memory-echo-wrap:hover .aa-memory-echo-popover,
	.aa-timeline-item--memory-group:hover .aa-memory-echo-popover--standalone {
		display: none;
	}

	.aa-memory-echo-wrap:hover .aa-memory-echo-popover.is-open,
	.aa-timeline-item--memory-group:hover .aa-memory-echo-popover--standalone.is-open {
		display: block;
	}

	.aa-memory-echo-entry {
		padding-top: .8rem;
		margin-top: .8rem;
	}

	.aa-memory-echo-entry a {
		display: inline-block;
		margin-top: .6rem;
		font-size: .7rem;
	}

	.aa-memory-orbit-center-instruction {
		font-size: .44rem;
	}
}


/* v2.5 — Memory source switch and concise page introduction */
.aa-memory-introduction--echoes {
	gap: .45rem;
	margin-bottom: clamp(1.6rem, 4vw, 2.5rem);
}

.aa-memory-introduction--echoes .aa-memory-introduction-cn {
	font-size: clamp(1.15rem, 2.1vw, 1.6rem);
}

.aa-memory-introduction--echoes .aa-memory-introduction-en {
	font-size: .76rem !important;
}

.aa-memory-source-switch {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .6rem 1.5rem;
	max-width: 920px;
	margin: 0 auto clamp(2.5rem, 6vw, 4rem);
	padding: .95rem 0;
	border-top: 1px solid var(--aa-line);
	border-bottom: 1px solid var(--aa-line);
}

.aa-memory-source-switch a {
	color: var(--aa-muted);
	font-family: var(--aa-sans-stack);
	font-size: .7rem;
	text-decoration: none;
}

.aa-memory-source-switch a.is-active {
	color: var(--aa-text);
	text-decoration: underline;
	text-underline-offset: .3em;
}

.aa-memory-point-source,
.aa-memory-echo-source,
.aa-memory-fallback-source {
	display: block;
	color: var(--aa-muted);
	font-family: var(--aa-sans-stack);
	font-size: .58rem;
	letter-spacing: .04em;
}

.aa-memory-point-source {
	margin-bottom: .4rem;
}

.aa-memory-echo-source {
	margin-bottom: .3rem;
}

.aa-memory-fallback-source {
	margin-bottom: .35rem;
}

/* Center instruction matches Previous / Next control size. */
.aa-memory-orbit-center-instruction {
	font-size: .68rem;
}

/* Timeline spacing: bottom of controls matches the top spacing. */
.aa-timeline-controls {
	margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

/* Standalone memory design line moves into the echo column instead of overlapping the date. */
.aa-timeline-item--memory-group::before {
	display: none;
}

.aa-timeline-item--memory-group .aa-timeline-echo-cell::before {
	content: "";
	position: absolute;
	left: 50%;
	top: .15rem;
	bottom: .15rem;
	width: 1px;
	background: var(--aa-line);
	transform: translateX(-50%);
	z-index: 0;
}

.aa-timeline-item--memory-group .aa-memory-echo-toggle {
	position: relative;
	background: var(--aa-paper);
	z-index: 1;
}

/* Move desktop marker farther left toward the date/title midpoint. */
.aa-timeline-echo-cell {
	transform: translateX(-52%);
}

/* Popover position follows the actual interaction point. */
.aa-memory-echo-popover--echo {
	left: 50%;
	top: calc(100% + .55rem);
	transform: translate(-50%, .25rem);
}

.aa-memory-echo-popover--echo.is-open,
.aa-memory-echo-wrap:hover .aa-memory-echo-popover--echo {
	transform: translate(-50%, 0);
}

.aa-memory-echo-popover--title {
	left: 0;
	top: calc(100% + .55rem);
	transform: translate(0, .25rem);
}

.aa-memory-echo-popover--title.is-open,
.aa-memory-standalone-title[data-aa-memory-toggle]:hover + .aa-memory-echo-popover--title {
	opacity: 1;
	visibility: visible;
	transform: translate(0, 0);
}

/* A single standalone title is only a direct link, never a popover trigger. */
a.aa-memory-standalone-title:hover {
	opacity: .7;
}

/* Public date selection */
.aa-memory-date-fields {
	margin: 0;
	padding: 1rem;
	border: 1px solid var(--aa-line);
}

.aa-memory-date-fields legend {
	padding: 0 .35rem;
	font-family: var(--aa-sans-stack);
	font-size: .72rem;
}

.aa-memory-date-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}

.aa-memory-date-fields small {
	display: block;
	margin-top: .65rem;
	color: var(--aa-muted);
	font-size: .65rem;
}

/* Memory detail source metadata */
.memory-entry-header .entry-meta {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 860px) {
	.aa-memory-source-switch {
		justify-content: flex-start;
		margin-bottom: 2.25rem;
	}

	.aa-memory-orbit-center-instruction {
		font-size: .6rem;
	}

	.aa-timeline-echo-cell {
		transform: none;
	}

	.aa-timeline-item--memory-group .aa-timeline-echo-cell::before {
		top: .1rem;
		bottom: .1rem;
	}

	.aa-memory-date-grid {
		grid-template-columns: 1fr;
	}

	.memory-entry-header .entry-meta {
		grid-template-columns: 1fr 1fr;
	}

	.aa-memory-echo-popover--echo,
	.aa-memory-echo-popover--title,
	.aa-memory-echo-popover--echo.is-open,
	.aa-memory-echo-popover--title.is-open {
		left: 50%;
		top: 50%;
		transform: translate(-50%, -50%);
	}
}


/* v2.6 — Timeline memory panels use one document-level overlay layer */
.aa-memory-echo-popover,
.aa-memory-echo-popover--echo,
.aa-memory-echo-popover--title,
.aa-memory-echo-popover--standalone {
	position: fixed;
	left: 0;
	top: 0;
	bottom: auto;
	width: min(320px, calc(100vw - 32px));
	max-height: min(72vh, 560px);
	margin: 0;
	padding: 1rem 1rem 1.05rem;
	overflow-y: auto;
	border: 1px solid var(--aa-line);
	background: var(--aa-paper);
	box-shadow: 0 18px 55px rgba(0, 0, 0, .14);
	opacity: 0;
	visibility: hidden;
	transform: none;
	pointer-events: none;
	isolation: isolate;
	z-index: 10020;
}

.aa-memory-echo-popover.is-measuring {
	display: block;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.aa-memory-echo-popover.is-open {
	display: block;
	opacity: 1;
	visibility: visible;
	transform: none;
	pointer-events: auto;
}

.aa-memory-echo-label {
	display: block;
	padding: 0 2rem .72rem 0;
	border-bottom: 1px solid var(--aa-line);
	color: var(--aa-muted);
	font-family: var(--aa-sans-stack);
	font-size: .66rem;
}

.aa-memory-echo-entry {
	display: block;
	padding-top: .8rem;
	margin-top: 0;
	border-top: 0;
}

.aa-memory-echo-entry + .aa-memory-echo-entry {
	margin-top: .8rem;
	border-top: 1px solid var(--aa-line);
}

.aa-memory-echo-source {
	margin-bottom: .45rem;
}

/*
 * Disable all former ancestor-hover CSS opening. The JavaScript controller
 * now owns every open/close state after moving panels into document.body.
 */
.aa-memory-echo-wrap:hover .aa-memory-echo-popover,
.aa-timeline-item--memory-group:hover .aa-memory-echo-popover--standalone,
.aa-memory-standalone-title[data-aa-memory-toggle]:hover + .aa-memory-echo-popover--title {
	opacity: 0;
	visibility: hidden;
}

.aa-memory-echo-wrap:hover .aa-memory-echo-popover.is-open,
.aa-timeline-item--memory-group:hover .aa-memory-echo-popover--standalone.is-open,
.aa-memory-standalone-title[data-aa-memory-toggle]:hover + .aa-memory-echo-popover--title.is-open {
	opacity: 1;
	visibility: visible;
}

/* Remove the square paper background behind standalone echo circles. */
.aa-timeline-item--memory-group .aa-memory-echo-toggle {
	background: transparent;
}

.aa-memory-echo-symbol {
	background: var(--aa-paper);
}

/* Open panels always sit above every Timeline row and marker. */
.aa-timeline-item,
.aa-timeline-echo-cell,
.aa-memory-echo-wrap,
.aa-memory-echo-toggle {
	z-index: auto;
}

/* v2.6 — balanced filter band */
.aa-timeline-controls {
	margin-bottom: 0;
}

.aa-timeline-filter {
	padding-top: clamp(1.5rem, 3vw, 2rem);
	padding-bottom: clamp(1.5rem, 3vw, 2rem);
}

.aa-timeline-source-switch + .aa-timeline-filter {
	margin-top: 0;
}

/* Clear close control on every viewport. */
.aa-memory-popover-close {
	position: absolute;
	top: .42rem;
	right: .48rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.8rem;
	height: 1.8rem;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--aa-muted);
	font-size: 1.2rem;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
}

@media (max-width: 860px) {
	body.aa-memory-popover-open {
		overflow: hidden;
	}

	body.aa-memory-popover-open::before {
		content: "";
		position: fixed;
		inset: 0;
		background: rgba(0, 0, 0, .18);
		z-index: 10010;
	}

	.aa-memory-echo-popover,
	.aa-memory-echo-popover--echo,
	.aa-memory-echo-popover--title,
	.aa-memory-echo-popover--standalone {
		left: 50%;
		top: 50%;
		width: min(86vw, 420px);
		max-height: min(72vh, 560px);
		padding: 2.7rem 1.15rem 1.15rem;
		transform: translate(-50%, -50%);
		z-index: 10020;
	}

	.aa-memory-echo-popover.is-open {
		transform: translate(-50%, -50%);
	}

	.aa-timeline-filter {
		padding-top: 1.25rem;
		padding-bottom: 1.25rem;
	}
}


/* v2.7 — dashed-circle required mark in the public memory form */
.aa-memory-required-label {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
}

.aa-memory-required-mark {
	display: inline-block;
	width: .82rem;
	height: .82rem;
	border: 1.3px dashed currentColor;
	border-radius: 50%;
	box-sizing: border-box;
	flex: 0 0 auto;
}

/* v2.7 — remove the standalone-memory vertical line completely */
.aa-timeline-item--memory-group .aa-timeline-echo-cell::before {
	content: none !important;
	display: none !important;
}

.aa-timeline-item--memory-group .aa-memory-echo-toggle,
.aa-timeline-item--memory-group .aa-memory-echo-symbol {
	background: transparent;
}

/*
 * v2.7 — visually center the filter controls between the upper and lower
 * rules. The row keeps symmetric structural padding and moves down by one
 * rem to compensate for the taller form controls and button baseline.
 */
.aa-timeline-filter {
	padding-top: clamp(2rem, 4vw, 3rem);
	padding-bottom: clamp(2rem, 4vw, 3rem);
	transform: translateY(1rem);
}

.aa-timeline-controls {
	margin-bottom: 0;
	overflow: visible;
}

@media (max-width: 860px) {
	.aa-memory-required-mark {
		width: .72rem;
		height: .72rem;
	}

	.aa-timeline-filter {
		padding-top: 1.25rem;
		padding-bottom: 1.25rem;
		transform: none;
	}
}


/* v2.8 — transparent memory circles */
.aa-memory-echo-symbol,
.aa-timeline-item--archive .aa-memory-echo-symbol,
.aa-timeline-item--memory-group .aa-memory-echo-symbol {
	background: transparent !important;
}

/*
 * Keep the source switch and the filter form on the same compact measure.
 * Both bands remain centered within the Timeline content column.
 */
.aa-timeline-source-switch,
.aa-timeline-filter {
	width: min(100%, 980px);
	margin-left: auto;
	margin-right: auto;
}

/*
 * v2.7 used a visual translate to compensate for the former full-width
 * filter band. The compact band can now use true symmetric spacing.
 */
.aa-timeline-filter {
	padding-top: clamp(2rem, 4vw, 3rem);
	padding-bottom: clamp(2rem, 4vw, 3rem);
	transform: none;
}

/* Keep controls compact rather than stretching across the whole page. */
.aa-timeline-filter label {
	flex: 0 1 auto;
}

.aa-timeline-filter select {
	width: clamp(10rem, 15vw, 12.5rem);
}

.aa-timeline-filter input[type="number"] {
	width: clamp(7rem, 10vw, 8.5rem);
}

@media (max-width: 860px) {
	/*
	 * Date sits on its own row. The marker and archive title share the next
	 * row, so the circle reads as belonging directly to the title.
	 */
	.aa-timeline-item,
	.aa-timeline--compact .aa-timeline-item {
		grid-template-columns: 2.75rem minmax(0, 1fr);
		grid-template-areas:
			". date"
			"echo title"
			". type";
		column-gap: .55rem;
	}

	.aa-timeline-echo-cell {
		align-self: center;
		justify-self: center;
		padding-top: 0;
	}

	.aa-timeline-item > time {
		align-self: end;
	}

	.aa-timeline-item > h3,
	.aa-timeline-memory-main {
		align-self: center;
	}

	/*
	 * Category and year stay full-width. Filter and Reset occupy one final
	 * row instead of being split into separate rows.
	 */
	.aa-timeline-filter {
		display: grid;
		grid-template-columns: max-content max-content;
		justify-content: start;
		align-items: center;
		gap: 1rem;
		width: 100%;
		padding-top: 1.25rem;
		padding-bottom: 1.25rem;
	}

	.aa-timeline-filter > label {
		grid-column: 1 / -1;
		width: 100%;
	}

	.aa-timeline-filter select,
	.aa-timeline-filter input[type="number"] {
		width: 100%;
	}

	.aa-timeline-filter > button {
		grid-column: 1;
		grid-row: auto;
		justify-self: start;
	}

	.aa-timeline-filter > .aa-timeline-reset {
		grid-column: 2;
		grid-row: auto;
		align-self: center;
		justify-self: start;
		margin: 0;
	}
}


/* v3.0 — progressive disclosure for optional memory fields */
.aa-memory-more-details {
	margin: .35rem 0 0;
	border: 1px solid var(--aa-line);
}

.aa-memory-more-details > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 4.75rem;
	padding: 1rem 1.15rem;
	cursor: pointer;
	list-style: none;
	user-select: none;
}

.aa-memory-more-details > summary::-webkit-details-marker {
	display: none;
}

.aa-memory-more-details-copy {
	display: grid;
	gap: .2rem;
}

.aa-memory-more-details-copy > span:first-child {
	font-family: var(--aa-display-font);
	font-size: clamp(1.05rem, 1.7vw, 1.3rem);
	line-height: 1.25;
}

.aa-memory-more-details-copy > span:last-child {
	color: var(--aa-muted);
	font-family: var(--aa-sans-stack);
	font-size: .64rem;
	letter-spacing: .03em;
}

.aa-memory-more-details-action {
	display: inline-flex;
	align-items: center;
	gap: .55rem;
	color: var(--aa-muted);
	font-family: var(--aa-sans-stack);
	font-size: .66rem;
	white-space: nowrap;
}

.aa-memory-more-details-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.65rem;
	height: 1.65rem;
	border: 1px solid var(--aa-line);
	border-radius: 50%;
	color: var(--aa-text);
	font-size: 1rem;
	line-height: 1;
	transition: transform .18s ease;
}

.aa-memory-more-details[open] .aa-memory-more-details-icon {
	transform: rotate(45deg);
}

.aa-memory-more-details-intro {
	padding: 1rem 1.15rem;
	border-top: 1px solid var(--aa-line);
	color: var(--aa-muted);
	font-family: var(--aa-sans-stack);
	font-size: .68rem;
	line-height: 1.65;
}

.aa-memory-more-details-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.15rem 1.5rem;
	padding: 1.15rem;
	border-top: 1px solid var(--aa-line);
}

.aa-memory-more-details-grid > .aa-memory-form-wide {
	grid-column: 1 / -1;
}

.aa-memory-more-details-grid label {
	display: grid;
	gap: .4rem;
	font-family: var(--aa-sans-stack);
	font-size: .72rem;
}

.aa-memory-more-details-grid input,
.aa-memory-more-details-grid select {
	width: 100%;
}

.aa-memory-more-details-grid .aa-memory-image-field small {
	display: grid;
	gap: .38rem;
}

@media (hover: hover) and (pointer: fine) {
	.aa-memory-more-details > summary:hover .aa-memory-more-details-copy > span:first-child {
		text-decoration: underline;
		text-underline-offset: .22em;
	}
}

@media (max-width: 860px) {
	.aa-memory-more-details > summary {
		min-height: 4.25rem;
		padding: .9rem;
	}

	.aa-memory-more-details-copy > span:first-child {
		font-size: 1.05rem;
	}

	.aa-memory-more-details-action {
		font-size: .6rem;
	}

	.aa-memory-more-details-grid {
		grid-template-columns: 1fr;
		padding: .9rem;
	}

	.aa-memory-more-details-grid > .aa-memory-form-wide {
		grid-column: auto;
	}

	.aa-memory-more-details-intro {
		padding: .9rem;
		font-size: .64rem;
	}
}


/* v3.1 — the memory form as a simple drop point */
.aa-memory-drop-form {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

.aa-memory-drop {
	border: 1px solid var(--aa-line);
	padding: clamp(1rem, 2.5vw, 1.5rem);
}

.aa-memory-drop-header {
	margin-bottom: 1rem;
	text-align: center;
}

.aa-memory-drop-header h3 {
	display: inline-flex;
	align-items: center;
	gap: .55rem;
	margin: 0;
	font-family: var(--aa-display-font);
	font-size: clamp(1.45rem, 3vw, 2.2rem);
	font-weight: 400;
}

.aa-memory-drop-header p {
	margin: .7rem 0 0;
	color: var(--aa-muted);
	font-size: .82rem;
	line-height: 1.65;
}

.aa-memory-drop-text {
	display: block;
}

.aa-memory-drop-text textarea {
	min-height: 11rem;
	border: 0;
	border-top: 1px solid var(--aa-line);
	border-bottom: 1px solid var(--aa-line);
	padding: 1rem .2rem;
	font-family: var(--aa-body-font);
	font-size: clamp(1rem, 1.6vw, 1.15rem);
	line-height: 1.75;
}

.aa-memory-drop-text textarea:focus {
	outline: 0;
	border-color: var(--aa-text);
}

.aa-memory-photo-entry {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .75rem 1rem;
	padding-top: 1rem;
}

.aa-memory-photo-button {
	display: inline-flex !important;
	grid-template-columns: none !important;
	align-items: center;
	gap: .5rem !important;
	width: auto;
	padding: .62rem .85rem;
	border: 1px solid var(--aa-text);
	cursor: pointer;
	font-family: var(--aa-sans-stack);
	font-size: .7rem !important;
}

.aa-memory-photo-button input {
	position: absolute;
	width: 1px !important;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.aa-memory-photo-name {
	color: var(--aa-muted);
	font-family: var(--aa-sans-stack);
	font-size: .66rem;
	overflow-wrap: anywhere;
}

.aa-memory-photo-notes {
	flex-basis: 100%;
	color: var(--aa-muted);
	font-family: var(--aa-sans-stack);
	font-size: .64rem;
}

.aa-memory-photo-notes summary {
	display: inline-block;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: .22em;
}

.aa-memory-photo-notes div {
	margin-top: .7rem;
	padding: .75rem;
	border: 1px solid var(--aa-line);
	line-height: 1.6;
}

.aa-memory-photo-notes p {
	margin: .35rem 0;
}

.aa-memory-content-error {
	flex-basis: 100%;
	margin: 0;
	color: var(--aa-text);
	font-family: var(--aa-sans-stack);
	font-size: .68rem;
}

.aa-memory-publication {
	border-top: 1px solid var(--aa-line);
	border-bottom: 1px solid var(--aa-line);
}

.aa-memory-publication > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 3.75rem;
	padding: .8rem .15rem;
	cursor: pointer;
	list-style: none;
}

.aa-memory-publication > summary::-webkit-details-marker {
	display: none;
}

.aa-memory-publication-status {
	font-family: var(--aa-sans-stack);
	font-size: .72rem;
}

.aa-memory-publication-change {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	color: var(--aa-muted);
	font-family: var(--aa-sans-stack);
	font-size: .66rem;
}

.aa-memory-publication[open] .aa-memory-publication-change span[aria-hidden="true"] {
	transform: rotate(45deg);
}

.aa-memory-publication-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem 1.5rem;
	padding: 1rem 0;
	border-top: 1px solid var(--aa-line);
}

.aa-memory-publication-grid label {
	display: grid;
	gap: .4rem;
	font-family: var(--aa-sans-stack);
	font-size: .72rem;
}

.aa-memory-more-details {
	margin-top: 0;
}

.aa-memory-more-details-intro {
	text-align: left;
}

.aa-memory-notice--left-here {
	display: grid;
	gap: .35rem;
}

.aa-memory-notice--left-here strong,
.aa-memory-notice--left-here span {
	display: block;
}

.aa-memory-form-actions {
	text-align: center;
}

.aa-memory-form-actions button {
	min-width: min(100%, 220px);
	padding: .75rem 1.2rem;
	font-family: var(--aa-display-font);
	font-size: 1rem;
}

.aa-memory-drop-form.is-leaving-memory {
	opacity: .58;
	transform: scale(.992);
	transition: opacity .18s ease, transform .18s ease;
	pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
	.aa-memory-photo-button:hover,
	.aa-memory-form-actions button:hover {
		opacity: .72;
	}
}

@media (max-width: 860px) {
	.aa-memory-drop {
		padding: .9rem;
	}

	.aa-memory-drop-header h3 {
		font-size: 1.45rem;
	}

	.aa-memory-drop-header p {
		font-size: .76rem;
	}

	.aa-memory-drop-text textarea {
		min-height: 9rem;
	}

	.aa-memory-photo-entry {
		align-items: flex-start;
	}

	.aa-memory-photo-button {
		width: 100%;
		justify-content: center;
	}

	.aa-memory-photo-name {
		width: 100%;
		text-align: center;
	}

	.aa-memory-publication-grid {
		grid-template-columns: 1fr;
	}

	.aa-memory-publication > summary {
		padding-left: 0;
		padding-right: 0;
	}
}


/* v3.2 — restore the restrained form language */
.aa-memory-drop-form { gap: .9rem; }
.aa-memory-drop { padding: 0; border: 0; }
.aa-memory-drop-text { display: grid; gap: .4rem; }
.aa-memory-field-label {
	display: inline-flex; align-items: center; gap: .45rem;
	font-family: var(--aa-sans-stack); font-size: .72rem;
}
.aa-memory-drop-text textarea {
	min-height: 10rem; padding: .8rem .75rem; border: 1px solid var(--aa-line);
	font-family: var(--aa-body-font); font-size: .95rem; line-height: 1.7;
}
.aa-memory-drop-text textarea:focus {
	outline: 1px solid var(--aa-text); outline-offset: -1px; border-color: var(--aa-text);
}
.aa-memory-drop-text textarea::placeholder { color: var(--aa-muted); opacity: .78; }
.aa-memory-photo-entry { padding-top: .7rem; gap: .55rem .8rem; }
.aa-memory-photo-button { padding: .48rem .7rem; font-size: .66rem !important; }
.aa-memory-photo-name { font-size: .64rem; }

/* Reset the large parent-summary rules for this small nested disclosure. */
.aa-memory-submission .aa-memory-photo-notes { margin: 0; padding: 0; font-size: .64rem; }
.aa-memory-submission .aa-memory-photo-notes > summary {
	display: inline-block; min-height: 0; margin: 0; padding: 0; border: 0;
	color: var(--aa-muted); font-family: var(--aa-sans-stack); font-size: .64rem;
	line-height: 1.4; text-decoration: underline; text-underline-offset: .2em;
}
.aa-memory-submission .aa-memory-photo-notes > summary::after { content: " ＋"; text-decoration: none; }
.aa-memory-submission .aa-memory-photo-notes[open] > summary::after { content: " −"; }
.aa-memory-submission .aa-memory-photo-notes > div {
	margin-top: .55rem; padding: .7rem .75rem; border: 1px solid var(--aa-line);
	font-size: .62rem; line-height: 1.55;
}
.aa-memory-submission .aa-memory-photo-notes p { margin: .25rem 0; }

/* Publication and optional context share one component. */
.aa-memory-option-panel { margin: 0; border: 1px solid var(--aa-line); }
.aa-memory-submission .aa-memory-option-panel > summary {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	min-height: 4.35rem; margin: 0; padding: .85rem 1rem; border: 0;
	color: var(--aa-text); font-family: inherit; font-size: inherit;
	list-style: none; cursor: pointer; user-select: none;
}
.aa-memory-submission .aa-memory-option-panel > summary::-webkit-details-marker { display: none; }
.aa-memory-option-copy { display: grid; gap: .18rem; text-align: left; }
.aa-memory-option-copy > span:first-child {
	color: var(--aa-text); font-family: var(--aa-display-font);
	font-size: clamp(1rem, 1.55vw, 1.2rem); line-height: 1.25;
}
.aa-memory-option-copy > span:nth-child(2) {
	color: var(--aa-muted); font-family: var(--aa-sans-stack);
	font-size: .63rem; letter-spacing: .02em;
}
.aa-memory-option-action {
	display: inline-flex; align-items: center; gap: .5rem; color: var(--aa-muted);
	font-family: var(--aa-sans-stack); font-size: .64rem; white-space: nowrap;
}
.aa-memory-option-icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 1.55rem; height: 1.55rem; border: 1px solid var(--aa-line);
	border-radius: 50%; color: var(--aa-text); font-size: .92rem; line-height: 1;
	transition: transform .18s ease;
}
.aa-memory-option-panel[open] .aa-memory-option-icon { transform: rotate(45deg); }
.aa-memory-publication-grid, .aa-memory-more-details-grid {
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem 1.35rem; margin: 0; padding: 1rem; border-top: 1px solid var(--aa-line);
}
.aa-memory-publication-grid label, .aa-memory-more-details-grid label {
	display: grid; gap: .4rem; font-family: var(--aa-sans-stack); font-size: .72rem;
}
.aa-memory-more-details-grid > .aa-memory-form-wide,
.aa-memory-publication-grid > .aa-memory-form-wide { grid-column: 1 / -1; }
.aa-memory-publication, .aa-memory-more-details { border: 1px solid var(--aa-line); }
.aa-memory-publication > summary, .aa-memory-more-details > summary {
	min-height: 4.35rem; padding: .85rem 1rem;
}
.aa-memory-publication-grid { padding: 1rem; }
@media (hover: hover) and (pointer: fine) {
	.aa-memory-option-panel > summary:hover .aa-memory-option-copy > span:first-child {
		text-decoration: underline; text-underline-offset: .2em;
	}
}
@media (max-width: 860px) {
	.aa-memory-drop-text textarea { min-height: 8.5rem; }
	.aa-memory-photo-button { width: auto; justify-content: flex-start; }
	.aa-memory-photo-name { width: auto; text-align: left; }
	.aa-memory-submission .aa-memory-option-panel > summary {
		min-height: 4rem; padding: .8rem .85rem;
	}
	.aa-memory-option-copy > span:first-child { font-size: 1rem; }
	.aa-memory-publication-grid, .aa-memory-more-details-grid {
		grid-template-columns: 1fr; padding: .85rem;
	}
	.aa-memory-more-details-grid > .aa-memory-form-wide,
	.aa-memory-publication-grid > .aa-memory-form-wide { grid-column: auto; }
}


/* v3.3 — refined memory form details */

/* Placeholder copy uses the same size and sans-serif language as the label. */
.aa-memory-drop-text textarea::placeholder {
	color: var(--aa-muted);
	opacity: .78;
	font-family: var(--aa-sans-stack);
	font-size: .72rem;
	line-height: 1.65;
}

/*
 * Photo button, selected filename, and Image Notes share one compact row.
 * The notes trigger sits at the far right.
 */
.aa-memory-photo-entry {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	width: 100%;
}

.aa-memory-submission .aa-memory-photo-notes {
	flex: 0 0 auto;
	flex-basis: auto;
	margin-left: auto;
}

.aa-memory-submission .aa-memory-photo-notes > summary {
	white-space: nowrap;
}

.aa-memory-submission .aa-memory-photo-notes[open] {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	flex-basis: 100%;
	width: 100%;
	margin-left: 0;
}

.aa-memory-submission .aa-memory-photo-notes[open] > summary {
	grid-column: 2;
	justify-self: end;
}

.aa-memory-submission .aa-memory-photo-notes[open] > div {
	grid-column: 1 / -1;
	width: 100%;
}

/* Center the English subtitle under the Chinese optional-context title. */
.aa-memory-more-details-copy {
	text-align: center;
}

/* The shortened bilingual consent reads as two intentional lines. */
.aa-memory-form-consent > span {
	line-height: 1.65;
}

@media (max-width: 860px) {
	.aa-memory-photo-entry {
		display: grid;
		grid-template-columns: 1fr auto;
		gap: .55rem .75rem;
	}

	.aa-memory-photo-button {
		grid-column: 1;
		width: auto;
		justify-content: flex-start;
	}

	.aa-memory-photo-name {
		grid-column: 1 / -1;
		width: 100%;
		text-align: left;
	}

	.aa-memory-submission .aa-memory-photo-notes {
		grid-column: 2;
		grid-row: 1;
		align-self: center;
		margin-left: 0;
	}

	.aa-memory-submission .aa-memory-photo-notes[open] {
		grid-column: 1 / -1;
		grid-row: auto;
	}

	.aa-memory-submission .aa-memory-photo-notes[open] > summary {
		grid-column: 2;
	}
}


/* v3.4 — tighten the top of the memory-writing field */
.aa-memory-submission-inner {
	padding-top: 0;
}

.aa-memory-drop-form {
	margin-top: 0;
}

.aa-memory-drop-text {
	margin-top: 0;
}

.aa-memory-field-label {
	margin-top: 0;
	margin-bottom: .4rem;
}

/*
 * Keep the distance above “Your Memory” equal to the label-to-textarea gap.
 * The parent submission panel previously contributed additional top padding.
 */
.aa-memory-submission-inner > .aa-memory-drop-form:first-child,
.aa-memory-drop-form > .aa-memory-drop:first-child {
	padding-top: 0;
}

/* v3.4 — move Image Specifications below the photo-control row */
.aa-memory-photo-entry {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	gap: .55rem .8rem;
	width: 100%;
}

.aa-memory-photo-button {
	grid-column: 1;
	grid-row: 1;
}

.aa-memory-photo-name {
	grid-column: 2;
	grid-row: 1;
	min-width: 0;
}

.aa-memory-submission .aa-memory-photo-notes,
.aa-memory-submission .aa-memory-photo-notes[open] {
	display: block;
	grid-column: 1 / -1;
	grid-row: 2;
	width: 100%;
	margin: 0;
}

.aa-memory-submission .aa-memory-photo-notes > summary,
.aa-memory-submission .aa-memory-photo-notes[open] > summary {
	display: inline-block;
	margin: 0;
	padding: 0;
	justify-self: auto;
	white-space: normal;
}

.aa-memory-submission .aa-memory-photo-notes > div,
.aa-memory-submission .aa-memory-photo-notes[open] > div {
	width: 100%;
	margin-top: .55rem;
}

/*
 * Opening the specification disclosure no longer changes the trigger's
 * horizontal position because its grid position remains fixed.
 */
.aa-memory-submission .aa-memory-photo-notes[open] {
	grid-template-columns: none;
}

@media (max-width: 860px) {
	.aa-memory-submission-inner {
		padding-top: 0;
	}

	.aa-memory-photo-entry {
		grid-template-columns: auto minmax(0, 1fr);
		align-items: center;
	}

	.aa-memory-photo-button {
		width: auto;
		justify-content: flex-start;
	}

	.aa-memory-photo-name {
		width: auto;
		text-align: left;
	}

	.aa-memory-submission .aa-memory-photo-notes,
	.aa-memory-submission .aa-memory-photo-notes[open] {
		grid-column: 1 / -1;
		grid-row: 2;
	}
}


/* v3.5 — balance the space above and below “Your Memory” */
.aa-memory-submission-inner {
	padding-top: .8rem;
}

.aa-memory-submission-inner > .aa-memory-drop-form:first-child,
.aa-memory-drop-form > .aa-memory-drop:first-child {
	padding-top: 0;
}

.aa-memory-drop-text {
	gap: .8rem;
}

.aa-memory-field-label {
	margin-top: 0;
	margin-bottom: 0;
}

/*
 * The label now sits one consistent .8rem away from both the top rule and
 * the textarea border.
 */
.aa-memory-submission-inner > .aa-memory-drop-form:first-child {
	margin-top: 0;
}

/* v3.5 — align Timeline controls to the page's normal left content axis */
.aa-timeline-source-switch,
.aa-timeline-filter {
	width: 100%;
	max-width: none;
	margin-left: 0;
	margin-right: 0;
	justify-content: flex-start;
}

.aa-timeline-source-switch {
	align-items: center;
}

.aa-timeline-filter {
	align-items: center;
}

@media (max-width: 860px) {
	.aa-memory-submission-inner {
		padding-top: .8rem;
	}

	.aa-memory-drop-text {
		gap: .8rem;
	}

	.aa-timeline-source-switch,
	.aa-timeline-filter {
		width: 100%;
		margin-left: 0;
		margin-right: 0;
	}
}


/* v3.6 — compact publication and optional-context panels */
.aa-memory-submission .aa-memory-option-panel > summary {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr);
	justify-items: center;
	align-content: center;
	gap: .38rem;
	min-height: 0 !important;
	padding: .68rem .8rem !important;
	text-align: center;
}

/* Chinese and English remain on one shared title line. */
.aa-memory-option-copy,
.aa-memory-more-details-copy {
	display: inline-flex !important;
	flex-flow: row nowrap;
	align-items: baseline;
	justify-content: center;
	gap: .35rem;
	max-width: 100%;
	text-align: center;
	white-space: nowrap;
}

.aa-memory-option-copy > span:first-child,
.aa-memory-more-details-copy > span:first-child {
	font-family: var(--aa-display-font);
	font-size: clamp(.78rem, 1.15vw, .9rem) !important;
	line-height: 1.25;
}

.aa-memory-option-copy > span:nth-child(2),
.aa-memory-more-details-copy > span:nth-child(2) {
	font-family: var(--aa-sans-stack);
	font-size: clamp(.54rem, .78vw, .62rem) !important;
	line-height: 1.25;
	letter-spacing: 0;
}

/* Match “Image Specifications” rather than the former module-title scale. */
.aa-memory-option-action,
.aa-memory-publication-change,
.aa-memory-more-details-action {
	gap: .38rem;
	font-family: var(--aa-sans-stack);
	font-size: .64rem !important;
	line-height: 1.35;
}

.aa-memory-option-icon,
.aa-memory-more-details-icon {
	width: 1.28rem;
	height: 1.28rem;
	font-size: .76rem;
}

/* Keep expanded fields unchanged; only the closed header becomes quieter. */
.aa-memory-option-panel[open] > summary {
	border-bottom: 0;
}

@media (max-width: 860px) {
	.aa-memory-submission .aa-memory-option-panel > summary {
		gap: .34rem;
		padding: .62rem .65rem !important;
	}

	.aa-memory-option-copy > span:first-child,
	.aa-memory-more-details-copy > span:first-child {
		font-size: .74rem !important;
	}

	.aa-memory-option-copy > span:nth-child(2),
	.aa-memory-more-details-copy > span:nth-child(2) {
		font-size: .52rem !important;
	}

	.aa-memory-option-action,
	.aa-memory-publication-change,
	.aa-memory-more-details-action {
		font-size: .62rem !important;
	}

	.aa-memory-option-icon,
	.aa-memory-more-details-icon {
		width: 1.22rem;
		height: 1.22rem;
	}
}

@media (max-width: 380px) {
	.aa-memory-option-copy,
	.aa-memory-more-details-copy {
		gap: .24rem;
	}

	.aa-memory-option-copy > span:first-child,
	.aa-memory-more-details-copy > span:first-child {
		font-size: .68rem !important;
	}

	.aa-memory-option-copy > span:nth-child(2),
	.aa-memory-more-details-copy > span:nth-child(2) {
		font-size: .47rem !important;
	}
}


/* v3.7 — quiet homepage subscription module */
.home .recent-section {
	padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.home-subscribe-section {
	padding: 0 0 clamp(4rem, 8vw, 6.5rem);
}

.home-subscribe-module {
	display: grid;
	grid-template-columns: minmax(220px, .9fr) minmax(0, 1.45fr);
	gap: clamp(1.5rem, 4vw, 4rem);
	align-items: start;
	padding: clamp(1.7rem, 3.5vw, 2.5rem) 0;
	border-top: 1px solid var(--aa-line);
	border-bottom: 1px solid var(--aa-line);
}

.home-subscribe-heading h2 {
	margin: 0;
	font-family: var(--aa-display-font);
	font-size: clamp(1.35rem, 2.4vw, 1.85rem);
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: -.02em;
}

.home-subscribe-heading > span {
	display: block;
	margin-top: .38rem;
	color: var(--aa-muted);
	font-family: var(--aa-sans-stack);
	font-size: .64rem;
	letter-spacing: .035em;
}

.home-subscribe-content > p {
	display: grid;
	gap: .32rem;
	max-width: 38rem;
	margin: 0 0 1.2rem;
	line-height: 1.65;
}

.home-subscribe-content > p > span:first-child {
	font-family: var(--aa-body-font);
	font-size: .88rem;
}

.home-subscribe-content > p > span:last-child {
	color: var(--aa-muted);
	font-family: var(--aa-sans-stack);
	font-size: .66rem;
}

.home-subscribe-disclosure {
	max-width: 38rem;
}

.home-subscribe-disclosure > summary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .65rem;
	min-height: 2.75rem;
	padding: .62rem .9rem;
	border: 1px solid var(--aa-text);
	cursor: pointer;
	list-style: none;
	font-family: var(--aa-sans-stack);
	font-size: .7rem;
	line-height: 1;
}

.home-subscribe-disclosure > summary::-webkit-details-marker {
	display: none;
}

.home-subscribe-plus {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: .9rem;
	transition: transform .18s ease;
}

.home-subscribe-disclosure[open] .home-subscribe-plus {
	transform: rotate(45deg);
}

.home-subscribe-form {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--aa-line);
}

.home-subscribe-form .widget-title,
.home-subscribe-form h2,
.home-subscribe-form h3,
.home-subscribe-form #subscribe-text,
.home-subscribe-form .subscribe-text {
	display: none !important;
}

.home-subscribe-form form,
.home-subscribe-form #subscribe-blog {
	display: flex;
	align-items: stretch;
	gap: .65rem;
	margin: 0;
}

.home-subscribe-form #subscribe-email,
.home-subscribe-form #subscribe-submit {
	margin: 0;
}

.home-subscribe-form input[type="email"] {
	width: min(100%, 22rem);
	min-height: 2.8rem;
	padding: .62rem .72rem;
	border: 1px solid var(--aa-line);
	border-radius: 0;
	background: transparent;
	color: var(--aa-text);
	font: inherit;
}

.home-subscribe-form input[type="submit"],
.home-subscribe-form button[type="submit"] {
	min-height: 2.8rem;
	padding: .62rem .9rem;
	border: 1px solid var(--aa-text);
	border-radius: 0;
	background: var(--aa-text);
	color: var(--aa-paper);
	font-family: var(--aa-sans-stack);
	font-size: .68rem;
	cursor: pointer;
}

.home-subscribe-form p {
	margin: 0;
}

.home-subscribe-setup-note {
	max-width: 38rem;
	padding: .75rem;
	border: 1px dashed var(--aa-line);
	color: var(--aa-muted);
	font-family: var(--aa-sans-stack);
	font-size: .66rem;
	line-height: 1.6;
}

@media (hover: hover) and (pointer: fine) {
	.home-subscribe-disclosure > summary:hover,
	.home-subscribe-form input[type="submit"]:hover,
	.home-subscribe-form button[type="submit"]:hover {
		opacity: .72;
	}
}

@media (max-width: 860px) {
	.home-subscribe-module {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.home-subscribe-content > p {
		margin-bottom: 1rem;
	}

	.home-subscribe-form form,
	.home-subscribe-form #subscribe-blog {
		flex-direction: column;
	}

	.home-subscribe-form input[type="email"],
	.home-subscribe-form input[type="submit"],
	.home-subscribe-form button[type="submit"] {
		width: 100%;
	}
}


/* v3.8 — framed homepage subscription module aligned with Recent Archives */
.home-subscribe-grid {
	display: grid;
	grid-template-columns: 160px minmax(0, 1fr);
	gap: clamp(1.5rem, 4vw, 4rem);
	align-items: start;
}

.home-subscribe-module {
	display: grid;
	grid-template-columns: minmax(180px, .72fr) minmax(0, 1.48fr);
	gap: clamp(1.5rem, 4vw, 3.5rem);
	align-items: center;
	padding: clamp(1.35rem, 2.8vw, 2rem);
	border: 1px solid var(--aa-line);
}

.home-subscribe-heading {
	align-self: start;
	padding-top: .05rem;
}

.home-subscribe-heading h2 {
	font-size: clamp(1.28rem, 2.1vw, 1.7rem);
	line-height: 1.18;
}

.home-subscribe-heading > span {
	margin-top: .3rem;
}

.home-subscribe-content {
	min-width: 0;
}

.home-subscribe-content > p {
	margin-bottom: 1rem;
}

.home-subscribe-disclosure {
	max-width: 100%;
}

.home-subscribe-form {
	max-width: 38rem;
}

@media (max-width: 860px) {
	.home-subscribe-grid {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.home-subscribe-spacer {
		display: none;
	}

	.home-subscribe-module {
		grid-template-columns: 1fr;
		gap: 1rem;
		padding: 1.15rem;
	}

	.home-subscribe-heading {
		padding-top: 0;
	}

	.home-subscribe-heading h2 {
		font-size: 1.35rem;
	}
}


/* v3.9 — visual archive index for 影像 / Image */
.aa-category-hub--image .aa-category-hub-nav {
	margin-bottom: 0;
}

.aa-image-archive-list {
	border-top: 1px solid var(--aa-text);
}

.aa-image-archive-item {
	display: grid;
	grid-template-columns: minmax(260px, .9fr) minmax(0, 1.2fr);
	gap: clamp(1.6rem, 4vw, 4rem);
	align-items: start;
	padding: clamp(1.5rem, 3.5vw, 3rem) 0;
	border-bottom: 1px solid var(--aa-line);
}

.aa-image-archive-media,
.aa-image-archive-copy {
	min-width: 0;
}

.aa-image-archive-visual {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border: 1px solid var(--aa-line);
	background: transparent;
	text-decoration: none;
}

.aa-image-archive-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: opacity .18s ease;
}

.aa-image-archive-visual--text {
	flex-direction: column;
	gap: .75rem;
	padding: clamp(1.2rem, 3vw, 2.4rem);
	text-align: center;
}

.aa-image-text-cover-title {
	max-width: 22rem;
	font-family: var(--aa-display-font);
	font-size: clamp(1.2rem, 2.6vw, 2rem);
	line-height: 1.3;
}

.aa-image-text-cover-year {
	color: var(--aa-muted);
	font-family: var(--aa-sans-stack);
	font-size: .7rem;
	letter-spacing: .08em;
}

.aa-image-archive-meta {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	padding-bottom: .85rem;
	border-bottom: 1px solid var(--aa-line);
	color: var(--aa-muted);
	font-family: var(--aa-sans-stack);
	font-size: .68rem;
	line-height: 1.45;
}

.aa-image-archive-meta > span {
	text-align: right;
}

.aa-image-archive-copy h2 {
	margin: clamp(1.1rem, 2.4vw, 1.8rem) 0 0;
	font-family: var(--aa-display-font);
	font-size: clamp(1.55rem, 3.2vw, 2.7rem);
	font-weight: 400;
	line-height: 1.2;
	overflow-wrap: anywhere;
}

.aa-image-archive-copy h2 a {
	text-decoration-thickness: 1px;
	text-underline-offset: .15em;
}

.aa-image-archive-copy > p {
	max-width: 42rem;
	margin: 1rem 0 0;
	color: var(--aa-muted);
	font-family: var(--aa-body-font);
	font-size: .9rem;
	line-height: 1.78;
}

.aa-image-archive-link {
	display: inline-block;
	margin-top: clamp(1.3rem, 3vw, 2.2rem);
	font-family: var(--aa-sans-stack);
	font-size: .7rem;
	text-underline-offset: .25em;
}

.aa-image-archive-empty {
	padding: 1.5rem 0;
	border-bottom: 1px solid var(--aa-line);
}

@media (hover: hover) and (pointer: fine) {
	.aa-image-archive-visual:hover {
		opacity: 1;
	}

	.aa-image-archive-visual:hover .aa-image-archive-img {
		opacity: .78;
	}
}

@media (max-width: 860px) {
	.aa-image-archive-item {
		grid-template-columns: 1fr;
		gap: 1.15rem;
		padding: 1.35rem 0 1.6rem;
	}

	.aa-image-archive-visual--portrait {
		width: 72%;
		aspect-ratio: 3 / 4;
		margin: 0 auto;
	}

	.aa-image-archive-meta {
		padding-bottom: .65rem;
	}

	.aa-image-archive-copy h2 {
		margin-top: .9rem;
		font-size: clamp(1.45rem, 8vw, 2rem);
	}

	.aa-image-archive-copy > p {
		margin-top: .75rem;
		font-size: .88rem;
		line-height: 1.72;
	}

	.aa-image-archive-link {
		margin-top: 1rem;
	}
}


/* v4.0 — simplify line hierarchy on the Image archive page */
.aa-image-archive-list {
	display: grid;
	gap: clamp(1rem, 2.2vw, 1.6rem);
	border-top: 0;
}

.aa-image-archive-item {
	padding: clamp(1rem, 2.4vw, 1.5rem);
	border: 1px solid var(--aa-line);
}

/* Date and category sit above the title without an extra divider. */
.aa-image-archive-meta {
	padding-bottom: 0;
	border-bottom: 0;
}

/* The outer archive frame now carries the main boundary. */
.aa-image-archive-visual {
	border-color: color-mix(in srgb, var(--aa-line) 74%, transparent);
}

.aa-image-archive-empty {
	padding: 1.25rem;
	border: 1px solid var(--aa-line);
}

@media (max-width: 860px) {
	.aa-image-archive-list {
		gap: 1rem;
	}

	.aa-image-archive-item {
		padding: .9rem;
	}
}


/* v4.1 — add clear gap below Image archive subcategory navigation */
.aa-image-archive-list {
	margin-top: clamp(0.9rem, 1.8vw, 1.4rem);
}

@media (max-width: 860px) {
	.aa-image-archive-list {
		margin-top: 0.85rem;
	}
}


/* v4.2 — structured single Image archive */
.film-archive-main {
	padding-top: clamp(2rem, 5vw, 4rem);
}

.film-info-section,
.film-player-section,
.film-crew-section {
	margin-bottom: clamp(3rem, 7vw, 6rem);
}

.film-section-heading {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: .9rem;
}

.film-section-heading h2 {
	margin: 0;
	font-family: var(--aa-display-font);
	font-size: clamp(1.45rem, 2.7vw, 2.2rem);
	font-weight: 400;
	line-height: 1.15;
}

.film-section-heading > span {
	color: var(--aa-muted);
	font-family: var(--aa-sans-stack);
	font-size: .68rem;
}

.film-info-frame {
	display: grid;
	grid-template-columns: minmax(220px, .75fr) minmax(0, 1.5fr);
	border: 1px solid var(--aa-line);
}

.film-info-primary,
.film-synopsis {
	padding: clamp(1.15rem, 2.8vw, 2rem);
}

.film-info-primary {
	border-right: 1px solid var(--aa-line);
}

.film-facts {
	margin: 0;
}

.film-facts > div + div {
	margin-top: 1.35rem;
}

.film-facts dt,
.film-synopsis h3,
.film-record-group h3 {
	margin: 0 0 .42rem;
	color: var(--aa-muted);
	font-family: var(--aa-sans-stack);
	font-size: .64rem;
	font-weight: 400;
	line-height: 1.45;
}

.film-facts dd {
	margin: 0;
	font-family: var(--aa-body-font);
	font-size: .92rem;
	line-height: 1.65;
}

.film-synopsis p {
	margin: 0;
	font-size: clamp(.94rem, 1.5vw, 1.08rem);
	line-height: 1.8;
}

.film-info-secondary {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	grid-column: 1 / -1;
	border-top: 1px solid var(--aa-line);
}

.film-record-group {
	padding: 1.15rem clamp(1rem, 2.5vw, 1.6rem);
}

.film-record-group + .film-record-group {
	border-left: 1px solid var(--aa-line);
}

.film-record-group ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.film-record-group li {
	font-size: .8rem;
	line-height: 1.65;
}

.film-record-group li + li {
	margin-top: .4rem;
}

.film-link-group a {
	text-underline-offset: .22em;
}

.film-player-frame,
.film-view-link-frame,
.film-unavailable {
	border: 1px solid var(--aa-line);
}

.film-player-frame {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #000;
}

.film-player-frame iframe,
.film-player-frame video,
.film-player-frame embed,
.film-player-frame object {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	border: 0;
}

.film-view-link-frame,
.film-unavailable {
	display: flex;
	min-height: clamp(12rem, 34vw, 26rem);
	align-items: center;
	justify-content: center;
	padding: 2rem;
	text-align: center;
}

.film-view-link-frame a {
	font-family: var(--aa-display-font);
	font-size: clamp(1.25rem, 2.5vw, 2rem);
	text-underline-offset: .22em;
}

.film-unavailable {
	flex-direction: column;
	gap: .35rem;
}

.film-unavailable p {
	margin: 0;
	font-family: var(--aa-display-font);
	font-size: clamp(1.25rem, 2.5vw, 2rem);
}

.film-unavailable span,
.film-crew-empty {
	color: var(--aa-muted);
	font-family: var(--aa-sans-stack);
	font-size: .68rem;
}

.film-notes-section {
	margin-bottom: clamp(3rem, 7vw, 6rem);
	padding-top: clamp(2.5rem, 6vw, 5rem);
	padding-bottom: clamp(2.5rem, 6vw, 5rem);
	border-top: 1px solid var(--aa-line);
	border-bottom: 1px solid var(--aa-line);
}

.film-notes-heading {
	margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.film-notes-content {
	margin-top: 0;
}

.film-crew-list {
	border-top: 1px solid var(--aa-text);
}

.film-crew-row {
	display: grid;
	grid-template-columns: minmax(180px, .75fr) minmax(0, 1.25fr);
	gap: clamp(1rem, 4vw, 4rem);
	padding: .9rem 0;
	border-bottom: 1px solid var(--aa-line);
	align-items: baseline;
}

.film-crew-row span {
	color: var(--aa-muted);
	font-family: var(--aa-sans-stack);
	font-size: .7rem;
}

.film-crew-row strong {
	font-family: var(--aa-body-font);
	font-size: .94rem;
	font-weight: 400;
	line-height: 1.5;
}

.film-crew-empty {
	margin: 0;
	padding: 1rem 0;
	border-bottom: 1px solid var(--aa-line);
}

.film-restricted-content {
	padding-top: clamp(2rem, 5vw, 4rem);
}

@media (max-width: 860px) {
	.film-info-frame {
		grid-template-columns: 1fr;
	}

	.film-info-primary {
		border-right: 0;
		border-bottom: 1px solid var(--aa-line);
	}

	.film-info-secondary {
		grid-template-columns: 1fr;
	}

	.film-record-group + .film-record-group {
		border-left: 0;
		border-top: 1px solid var(--aa-line);
	}

	.film-section-heading {
		align-items: flex-end;
	}

	.film-section-heading h2 {
		font-size: 1.45rem;
	}

	.film-crew-row {
		grid-template-columns: 1fr;
		gap: .3rem;
	}
}


/* v4.3 — optional Image metadata and full-width record rows */
.film-info-frame--synopsis-only {
	grid-template-columns: 1fr;
}

.film-info-frame--synopsis-only .film-synopsis {
	grid-column: 1 / -1;
}

.film-info-secondary {
	grid-template-columns: 1fr;
}

.film-record-group + .film-record-group {
	border-left: 0;
	border-top: 1px solid var(--aa-line);
}

/* Crew / Sources is now absent rather than showing an empty placeholder. */
.film-crew-section:last-child {
	margin-bottom: clamp(3rem, 7vw, 6rem);
}
