/*
 * Template-level styles (front page, author page, shared post cards).
 * Post-card styles are shared — archive/search (T6) should reuse them.
 */

/* ---------- Front page ---------- */

.x0dd0b718 {
	padding-bottom: var(--sn-sp-16);
}

/* ---------- Author page (T5) ---------- */

.x0c0877e1 {
	padding-bottom: var(--sn-sp-16);
}

.x5a7a7230 {
	display: flex;
	flex-direction: column;
	gap: var(--sn-sp-6);
	background: var(--sn-surface);
	border: 0;
	border-radius: var(--sn-radius);
	box-shadow: var(--sn-shadow);
	padding: var(--sn-sp-8) var(--sn-sp-6);
	margin: var(--sn-sp-8) 0;
}

.x2602e726 {
	flex: 0 0 auto;
	width: 96px;
	height: 96px;
	border-radius: 50%; /* round again: MD3 shape is generous and circular */
	/* Petrol ring, matching the H2 marker and the chip marks. On the print skin
	   this was a near-black frame; --sn-border alone is now a warm hairline and
	   would read as no ring at all around a portrait. */
	border: 2px solid var(--sn-primary);
}

.x8b317a85 {
	margin: 0 0 var(--sn-sp-1);
	letter-spacing: .06em;
}

.x3e775083 {
	margin: 0;
}

.xc86df6cd {
	margin: var(--sn-sp-1) 0 0;
	color: var(--sn-text-muted);
}

.x0fc87f25 {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: var(--sn-sp-2);
	margin: var(--sn-sp-3) 0 0;
	padding: 0;
}

.x2c65cfb9 {
	padding: var(--sn-sp-1) var(--sn-sp-3);
	background: var(--sn-secondary-container);
	color: var(--sn-on-secondary-container);
	border: 0;
	border-radius: var(--sn-radius-pill);
	font-size: var(--sn-fs-xs);
	color: var(--sn-text-muted);
}

.xec0bfd37 {
	margin: var(--sn-sp-4) 0 0;
	max-width: 65ch;
}

.xe9b02598 {
	list-style: none;
	display: flex;
	gap: var(--sn-sp-4);
	margin: var(--sn-sp-3) 0 0;
	padding: 0;
	font-size: var(--sn-fs-sm);
}

.x701c77d5 {
	margin: 0 0 var(--sn-sp-6);
}

@media (min-width: 768px) {
	.x5a7a7230 {
		flex-direction: row;
		padding: var(--sn-sp-8);
	}

	.x2602e726 {
		width: 128px;
		height: 128px;
	}
}

/* ---------- Single post / page (T4) ---------- */

.x4d995e31,
.xbc45d98e {
	padding-bottom: var(--sn-sp-16);
}

.xaedec5c8 {
	margin: var(--sn-sp-6) 0 0;
	font-size: var(--sn-fs-xs);
	color: var(--sn-text-muted);
}

.xaedec5c8 a {
	color: var(--sn-text-muted);
}

.xaedec5c8 a:hover,
.xaedec5c8 a:focus {
	color: var(--sn-accent);
}

.x791d7e57 {
	margin: 0 var(--sn-sp-1);
}

.x512fd1c4,
.xb31dc8bf {
	margin: var(--sn-sp-3) 0 var(--sn-sp-6);
}

.xcff0b926 > :first-child {
	margin-top: 0;
}

/* ---------- Post cards (shared with archives, T6) ---------- */

.x959b7319 {
	display: grid;
	gap: var(--sn-sp-6);
	margin-bottom: var(--sn-sp-8);
}

.x05f56ae9 {
	display: flex;
	flex-direction: column;
	background: var(--sn-surface);
	border: 0;
	border-radius: var(--sn-radius);
	box-shadow: var(--sn-shadow);
	overflow: hidden;
}

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

.xf0e60ccb {
	padding: var(--sn-sp-6);
}

.x91270328 {
	margin: 0 0 var(--sn-sp-2);
	font-size: var(--sn-fs-lg);
}

.x91270328 a {
	color: var(--sn-heading);
	text-decoration: none;
}

/* DARKENS, like every hover on this skin: --sn-primary would take the title
   from ink (15.70 on white) UP to 5.97, i.e. it would brighten on hover. That
   is the failure shape that made content links vanish on a sibling skin — the
   direction matters even where both ends happen to pass AA. */
.x91270328 a:hover,
.x91270328 a:focus {
	color: var(--sn-primary-hover);
}

.x0ab9b624 {
	margin: 0 0 var(--sn-sp-3);
}

.xf7a651bd {
	font-size: var(--sn-fs-sm);
}

.xf7a651bd > :last-child {
	margin-bottom: 0;
}

@media (min-width: 768px) {
	.x959b7319 {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Listing cards (archive/search/404/author) take the design's standard card
   interaction: elevation from resting to raised, plus the 1.02 scale. The
   thumbnail zooms slightly inside its own clipped box — the one "image zoom on
   hover" the direction asks for, and the reason .xabbedf0f has
   overflow:hidden. */
.x05f56ae9 {
	transition: transform var(--sn-motion) var(--sn-ease),
	            box-shadow var(--sn-motion) var(--sn-ease);
}

.x959b7319 .x05f56ae9:hover,
.x959b7319 .x05f56ae9:focus-within {
	transform: scale(1.02);
	box-shadow: var(--sn-shadow-md);
}

.xabbedf0f {
	overflow: hidden;
}

.xabbedf0f img {
	transition: transform var(--sn-motion-slow) var(--sn-ease);
}

.x959b7319 .x05f56ae9:hover .xabbedf0f img,
.x959b7319 .x05f56ae9:focus-within .xabbedf0f img {
	transform: scale(1.05);
}

@media (prefers-reduced-motion: reduce) {
	.x05f56ae9,
	.x959b7319 .x05f56ae9:hover,
	.x959b7319 .x05f56ae9:focus-within,
	.xabbedf0f img,
	.x959b7319 .x05f56ae9:hover .xabbedf0f img {
		transform: none;
		transition: none;
	}
}

/* ---------- Archive / Search (T6) ---------- */

.x4059fb29,
.x3db013f0 {
	padding-bottom: var(--sn-sp-16);
}

.x659d9a48 {
	margin: var(--sn-sp-8) 0;
}

.x82b3e556 {
	margin: 0;
}

.x82b3e556 span {
	color: var(--sn-accent);
}

.x436dbb3b {
	margin: var(--sn-sp-3) 0 0;
	max-width: 65ch;
	color: var(--sn-text-muted);
}

.xd5a42ae6 {
	margin-top: var(--sn-sp-4);
	max-width: 520px;
}

.x51e17b68,
.xe6f18bde {
	margin: var(--sn-sp-8) 0;
}

/* ---------- Search form (used by search + 404) ---------- */

.search-form {
	display: flex;
	gap: var(--sn-sp-2);
}

.search-form label {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
}

/* Shape, fill and the 2px bottom rule come from the shared filled-text-field
   rules in base.css — this only sets what is specific to the search row. */
.search-form .search-field {
	width: 100%;
	font-size: var(--sn-fs-base);
}

.search-form .search-field::placeholder {
	color: var(--sn-text-muted);
}

/* No bespoke outline here any more: base.css now has a GLOBAL :focus-visible
   ring, and this rule was a plain :focus, so it also fired on mouse clicks.
   Only the border tint is local; the ring is the shared one. */
.search-form .search-field:focus {
	border-bottom-color: var(--sn-primary);
}

.search-form .search-submit {
	flex: 0 0 auto;
	min-height: 44px;
	padding: var(--sn-sp-3) var(--sn-sp-6);
	border: 0;
	border-radius: var(--sn-radius-pill); /* every button is a pill */
	background: var(--sn-primary);
	color: var(--sn-primary-dark);
	font-family: var(--sn-font);
	font-size: var(--sn-fs-sm);
	font-weight: 500;
	letter-spacing: var(--sn-tracking-label);
	cursor: pointer;
	transition: background var(--sn-motion) var(--sn-ease),
	            box-shadow var(--sn-motion) var(--sn-ease);
}

.search-form .search-submit:hover,
.search-form .search-submit:focus {
	background: var(--sn-primary-hover);
}

/* ---------- Posts navigation (archive/search/author) ---------- */

.posts-navigation {
	margin-top: var(--sn-sp-8);
}

.posts-navigation .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--sn-sp-4);
}

/* Pagination links are outlined pill buttons — same object as .x738abeca,
   restyled here because WordPress prints them as bare anchors. */
.posts-navigation .nav-links a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: var(--sn-sp-2) var(--sn-sp-6);
	background: transparent;
	border: 1px solid var(--sn-border-strong);
	border-radius: var(--sn-radius-pill);
	color: var(--sn-primary);
	font-size: var(--sn-fs-sm);
	font-weight: 500;
	text-decoration: none;
	transition: background var(--sn-motion-fast) var(--sn-ease),
	            border-color var(--sn-motion-fast) var(--sn-ease);
}

.posts-navigation .nav-links a:hover,
.posts-navigation .nav-links a:focus {
	background: var(--sn-state-hover);
	border-color: var(--sn-primary);
	color: var(--sn-primary);
	text-decoration: none;
}

/* ---------- 404 (T6) ---------- */

.xda798d0e {
	padding: var(--sn-sp-12) 0 var(--sn-sp-16);
	text-align: center;
}

.x3133f27b {
	margin: 0;
	font-size: var(--sn-fs-3xl);
	font-weight: 500;
	line-height: 1;
	color: var(--sn-primary);
}

.xa4f41454 {
	margin: var(--sn-sp-3) 0 0;
}

.xa741ddbe {
	margin: var(--sn-sp-3) auto var(--sn-sp-6);
	max-width: 52ch;
	color: var(--sn-text-muted);
}

.x19ff86ed {
	margin: 0 0 var(--sn-sp-6);
}

.xb8461317 {
	max-width: 480px;
	margin: 0 auto var(--sn-sp-12);
}

.x42b25dde {
	margin: 0 0 var(--sn-sp-6);
	text-align: left;
}

/* Card text stays left-aligned inside the centred 404 column. */
.xda798d0e .x05f56ae9 {
	text-align: left;
}
